Tarball tree for barry-0.15.tar.bz2
[barry.git] / configure
blob3874b72e6dd482b09b8332bc468bd7c6128beabd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for barry 0.15.
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'
730 PACKAGE_TARNAME='barry'
731 PACKAGE_VERSION='0.15'
732 PACKAGE_STRING='barry 0.15'
733 PACKAGE_BUGREPORT='barry-devel@lists.sourceforge.net'
735 ac_unique_file="src/barry.h"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
831 CFLAGS
832 LDFLAGS
833 CPPFLAGS
834 ac_ct_CC
835 EXEEXT
836 OBJEXT
837 DEPDIR
838 am__include
839 am__quote
840 AMDEP_TRUE
841 AMDEP_FALSE
842 AMDEPBACKSLASH
843 CCDEPMODE
844 am__fastdepCC_TRUE
845 am__fastdepCC_FALSE
847 GREP
848 EGREP
850 CXXFLAGS
851 ac_ct_CXX
852 CXXDEPMODE
853 am__fastdepCXX_TRUE
854 am__fastdepCXX_FALSE
855 build
856 build_cpu
857 build_vendor
858 build_os
859 host
860 host_cpu
861 host_vendor
862 host_os
864 LN_S
865 ECHO
867 RANLIB
868 DSYMUTIL
869 NMEDIT
870 CXXCPP
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 WITH_GCCVISIBILITY_TRUE
876 WITH_GCCVISIBILITY_FALSE
877 PKG_CONFIG
878 LIBUSB_CFLAGS
879 LIBUSB_LIBS
880 BOOST_LIB_PATH
881 BOOST_INC_PATH
882 BOOST_LDADD
883 WITH_BOOST_TRUE
884 WITH_BOOST_FALSE
885 FUSE_CFLAGS
886 FUSE_LIBS
887 pkgconfigdir
888 WITH_FUSE_TRUE
889 WITH_FUSE_FALSE
890 ZLIB_LIBS
891 LIBICONV
892 LTLIBICONV
893 LIBOBJS
894 subdirs
895 LTLIBOBJS'
896 ac_subst_files=''
897 ac_precious_vars='build_alias
898 host_alias
899 target_alias
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
907 CXXFLAGS
909 CXXCPP
911 FFLAGS
912 PKG_CONFIG
913 LIBUSB_CFLAGS
914 LIBUSB_LIBS
915 FUSE_CFLAGS
916 FUSE_LIBS
917 ZLIB_LIBS'
918 ac_subdirs_all='gui
919 opensync-plugin
920 opensync-plugin-0.4x'
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
968 ac_prev=
969 ac_dashdash=
970 for ac_option
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
979 case $ac_option in
980 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *) ac_optarg=yes ;;
982 esac
984 # Accept the important Cygnus configure options, so we can diagnose typos.
986 case $ac_dashdash$ac_option in
988 ac_dashdash=yes ;;
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 ac_prev=bindir ;;
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 bindir=$ac_optarg ;;
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1010 -datadir | --datadir | --datadi | --datad)
1011 ac_prev=datadir ;;
1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013 datadir=$ac_optarg ;;
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1022 -disable-* | --disable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=no ;;
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1041 -enable-* | --enable-*)
1042 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1048 eval enable_$ac_feature=\$ac_optarg ;;
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1238 -with-* | --with-*)
1239 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_$ac_package=\$ac_optarg ;;
1247 -without-* | --without-*)
1248 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 { echo "$as_me: error: invalid package name: $ac_package" >&2
1252 { (exit 1); exit 1; }; }
1253 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1254 eval with_$ac_package=no ;;
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) { echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 esac
1297 done
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 { echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1305 # Be sure to have absolute directory names.
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1311 eval ac_val=\$$ac_var
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1317 { (exit 1); exit 1; }; }
1318 done
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used." >&2
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 { echo "$as_me: error: Working directory cannot be determined" >&2
1348 { (exit 1); exit 1; }; }
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 { echo "$as_me: error: pwd does not report name of working directory" >&2
1351 { (exit 1); exit 1; }; }
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$0" ||
1359 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$0" : 'X\(//\)[^/]' \| \
1361 X"$0" : 'X\(//\)$' \| \
1362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1363 echo X"$0" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1372 /^X\(\/\/\)$/{
1373 s//\1/
1376 /^X\(\/\).*/{
1377 s//\1/
1380 s/.*/./; q'`
1381 srcdir=$ac_confdir
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 srcdir=..
1385 else
1386 ac_srcdir_defaulted=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1391 { (exit 1); exit 1; }; }
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1396 { (exit 1); exit 1; }; }
1397 pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 srcdir=.
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1416 # Report the --help message.
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1421 cat <<_ACEOF
1422 \`configure' configures barry 0.15 to adapt to many kinds of systems.
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1429 Defaults for the options are specified in brackets.
1431 Configuration:
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 [PREFIX]
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1453 For better control, use the options below.
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/barry]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1475 _ACEOF
1477 cat <<\_ACEOF
1479 Program names:
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of barry 0.15:";;
1493 esac
1494 cat <<\_ACEOF
1496 Optional Features:
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --disable-dependency-tracking speeds up one-time build
1500 --enable-dependency-tracking do not reject slow dependency extractors
1501 --enable-shared[=PKGS] build shared libraries [default=yes]
1502 --enable-static[=PKGS] build static libraries [default=yes]
1503 --enable-fast-install[=PKGS]
1504 optimize for fast installation [default=yes]
1505 --disable-libtool-lock avoid locking (might break parallel builds)
1506 --enable-boost enable Boost support
1507 --disable-rpath do not hardcode runtime library paths
1508 --enable-gui build the gui
1509 --enable-opensync-plugin
1510 build the opensync plugin
1511 --enable-opensync-plugin-4x
1512 build the opensync 0.4x plugin
1514 Optional Packages:
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518 --with-pic try to use only PIC/non-PIC objects [default=use
1519 both]
1520 --with-tags[=TAGS] include additional configurations [automatic]
1521 --with-libusb=<path> root path of libusb installation
1522 --with-boost-include=path
1523 path to Boost include directory in order to make
1524 include <boost/something.hpp> valid (defaults to
1525 system paths)
1526 --with-boost-lib=path path to Boost library directory (defaults to system
1527 paths)
1528 --with-boost-serialization=name
1529 name of serialization library to use with compiler's
1530 -l option (defaults to boost_serialization or
1531 boost_serialization-mt.)
1532 --with-zlib force usage of zlib, and halt if not available
1533 --with-gnu-ld assume the C compiler uses GNU ld default=no
1534 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1535 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CPP C preprocessor
1546 CXX C++ compiler command
1547 CXXFLAGS C++ compiler flags
1548 CXXCPP C++ preprocessor
1549 F77 Fortran 77 compiler command
1550 FFLAGS Fortran 77 compiler flags
1551 PKG_CONFIG path to pkg-config utility
1552 LIBUSB_CFLAGS
1553 C compiler flags for LIBUSB, overriding pkg-config
1554 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1555 FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config
1556 FUSE_LIBS linker flags for FUSE, overriding pkg-config
1557 ZLIB_LIBS Linker options for zlib
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <barry-devel@lists.sourceforge.net>.
1563 _ACEOF
1564 ac_status=$?
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" || continue
1571 ac_builddir=.
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1589 case $srcdir in
1590 .) # We are building in place.
1591 ac_srcdir=.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1598 *) # Relative name.
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 esac
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1613 else
1614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1617 done
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622 cat <<\_ACEOF
1623 barry configure 0.15
1624 generated by GNU Autoconf 2.61
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1630 _ACEOF
1631 exit
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1637 It was created by barry $as_me 0.15, which was
1638 generated by GNU Autoconf 2.61. Invocation command line was
1640 $ $0 $@
1642 _ACEOF
1643 exec 5>>config.log
1645 cat <<_ASUNAME
1646 ## --------- ##
1647 ## Platform. ##
1648 ## --------- ##
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1659 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1660 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1663 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1664 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1665 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1667 _ASUNAME
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 echo "PATH: $as_dir"
1675 done
1676 IFS=$as_save_IFS
1678 } >&5
1680 cat >&5 <<_ACEOF
1683 ## ----------- ##
1684 ## Core tests. ##
1685 ## ----------- ##
1687 _ACEOF
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_configure_args=
1696 ac_configure_args0=
1697 ac_configure_args1=
1698 ac_must_keep_next=false
1699 for ac_pass in 1 2
1701 for ac_arg
1703 case $ac_arg in
1704 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706 | -silent | --silent | --silen | --sile | --sil)
1707 continue ;;
1708 *\'*)
1709 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710 esac
1711 case $ac_pass in
1712 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715 if test $ac_must_keep_next = true; then
1716 ac_must_keep_next=false # Got value, back to normal.
1717 else
1718 case $ac_arg in
1719 *=* | --config-cache | -C | -disable-* | --disable-* \
1720 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722 | -with-* | --with-* | -without-* | --without-* | --x)
1723 case "$ac_configure_args0 " in
1724 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1725 esac
1727 -* ) ac_must_keep_next=true ;;
1728 esac
1730 ac_configure_args="$ac_configure_args '$ac_arg'"
1732 esac
1733 done
1734 done
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log. We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744 # Save into config.log some information that might help in debugging.
1746 echo
1748 cat <<\_ASBOX
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1752 _ASBOX
1753 echo
1754 # The following way of writing the cache mishandles newlines in values,
1756 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in #(
1759 *${as_nl}*)
1760 case $ac_var in #(
1761 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1763 esac
1764 case $ac_var in #(
1765 _ | IFS | as_nl) ;; #(
1766 *) $as_unset $ac_var ;;
1767 esac ;;
1768 esac
1769 done
1770 (set) 2>&1 |
1771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
1773 sed -n \
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776 ;; #(
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1780 esac |
1781 sort
1783 echo
1785 cat <<\_ASBOX
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1789 _ASBOX
1790 echo
1791 for ac_var in $ac_subst_vars
1793 eval ac_val=\$$ac_var
1794 case $ac_val in
1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 esac
1797 echo "$ac_var='\''$ac_val'\''"
1798 done | sort
1799 echo
1801 if test -n "$ac_subst_files"; then
1802 cat <<\_ASBOX
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1806 _ASBOX
1807 echo
1808 for ac_var in $ac_subst_files
1810 eval ac_val=\$$ac_var
1811 case $ac_val in
1812 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 esac
1814 echo "$ac_var='\''$ac_val'\''"
1815 done | sort
1816 echo
1819 if test -s confdefs.h; then
1820 cat <<\_ASBOX
1821 ## ----------- ##
1822 ## confdefs.h. ##
1823 ## ----------- ##
1824 _ASBOX
1825 echo
1826 cat confdefs.h
1827 echo
1829 test "$ac_signal" != 0 &&
1830 echo "$as_me: caught signal $ac_signal"
1831 echo "$as_me: exit $exit_status"
1832 } >&5
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835 exit $exit_status
1837 for ac_signal in 1 2 13 15; do
1838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 done
1840 ac_signal=0
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1845 # Predefined preprocessor variables.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 _ACEOF
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 _ACEOF
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 _ACEOF
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 _ACEOF
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 _ACEOF
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875 set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1878 else
1879 set x "$ac_default_prefix/share/config.site" \
1880 "$ac_default_prefix/etc/config.site"
1882 shift
1883 for ac_site_file
1885 if test -r "$ac_site_file"; then
1886 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 echo "$as_me: loading site script $ac_site_file" >&6;}
1888 sed 's/^/| /' "$ac_site_file" >&5
1889 . "$ac_site_file"
1891 done
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special
1895 # files actually), so we avoid doing that.
1896 if test -f "$cache_file"; then
1897 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 echo "$as_me: loading cache $cache_file" >&6;}
1899 case $cache_file in
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1902 esac
1904 else
1905 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 echo "$as_me: creating cache $cache_file" >&6;}
1907 >$cache_file
1910 # Check that the precious variables saved in the cache have kept the same
1911 # value.
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1919 set,)
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,set)
1924 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1927 ,);;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1933 echo "$as_me: former value: $ac_old_val" >&2;}
1934 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1935 echo "$as_me: current value: $ac_new_val" >&2;}
1936 ac_cache_corrupted=:
1937 fi;;
1938 esac
1939 # Pass precious variables to config.status.
1940 if test "$ac_new_set" = set; then
1941 case $ac_new_val in
1942 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1943 *) ac_arg=$ac_var=$ac_new_val ;;
1944 esac
1945 case " $ac_configure_args " in
1946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1947 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948 esac
1950 done
1951 if $ac_cache_corrupted; then
1952 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1954 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1956 { (exit 1); exit 1; }; }
1983 ac_ext=c
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1990 #AM_CONFIG_HEADER(config.h)
1992 ac_config_headers="$ac_config_headers config.h:config.h.in"
1995 am__api_version="1.9"
1996 ac_aux_dir=
1997 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1998 if test -f "$ac_dir/install-sh"; then
1999 ac_aux_dir=$ac_dir
2000 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 break
2002 elif test -f "$ac_dir/install.sh"; then
2003 ac_aux_dir=$ac_dir
2004 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 break
2006 elif test -f "$ac_dir/shtool"; then
2007 ac_aux_dir=$ac_dir
2008 ac_install_sh="$ac_aux_dir/shtool install -c"
2009 break
2011 done
2012 if test -z "$ac_aux_dir"; then
2013 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2015 { (exit 1); exit 1; }; }
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 # Find a good install program. We prefer a C program (faster),
2028 # so one script is as good as another. But avoid the broken or
2029 # incompatible versions:
2030 # SysV /etc/install, /usr/sbin/install
2031 # SunOS /usr/etc/install
2032 # IRIX /sbin/install
2033 # AIX /bin/install
2034 # AmigaOS /C/install, which installs bootblocks on floppy discs
2035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2038 # OS/2's system install, which has a completely different semantic
2039 # ./install, which can be erroneously created by make from ./install.sh.
2040 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2042 if test -z "$INSTALL"; then
2043 if test "${ac_cv_path_install+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 # Account for people who put trailing slashes in PATH elements.
2052 case $as_dir/ in
2053 ./ | .// | /cC/* | \
2054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2056 /usr/ucb/* ) ;;
2058 # OSF1 and SCO ODT 3.0 have their own names for install.
2059 # Don't use installbsd from OSF since it installs stuff as root
2060 # by default.
2061 for ac_prog in ginstall scoinst install; do
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2064 if test $ac_prog = install &&
2065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066 # AIX install. It has an incompatible calling convention.
2068 elif test $ac_prog = install &&
2069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070 # program-specific install script used by HP pwplus--don't use.
2072 else
2073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2074 break 3
2077 done
2078 done
2080 esac
2081 done
2082 IFS=$as_save_IFS
2086 if test "${ac_cv_path_install+set}" = set; then
2087 INSTALL=$ac_cv_path_install
2088 else
2089 # As a last resort, use the slow shell script. Don't cache a
2090 # value for INSTALL within a source directory, because that will
2091 # break other packages using the cache if that directory is
2092 # removed, or if the value is a relative name.
2093 INSTALL=$ac_install_sh
2096 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2097 echo "${ECHO_T}$INSTALL" >&6; }
2099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100 # It thinks the first close brace ends the variable substitution.
2101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2107 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2109 # Just in case
2110 sleep 1
2111 echo timestamp > conftest.file
2112 # Do `set' in a subshell so we don't clobber the current shell's
2113 # arguments. Must try -L first in case configure is actually a
2114 # symlink; some systems play weird games with the mod time of symlinks
2115 # (eg FreeBSD returns the mod time of the symlink's containing
2116 # directory).
2117 if (
2118 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2119 if test "$*" = "X"; then
2120 # -L didn't work.
2121 set X `ls -t $srcdir/configure conftest.file`
2123 rm -f conftest.file
2124 if test "$*" != "X $srcdir/configure conftest.file" \
2125 && test "$*" != "X conftest.file $srcdir/configure"; then
2127 # If neither matched, then we have a broken ls. This can happen
2128 # if, for instance, CONFIG_SHELL is bash and it inherits a
2129 # broken ls alias from the environment. This has actually
2130 # happened. Such a system could not be considered "sane".
2131 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2132 alias in your environment" >&5
2133 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2134 alias in your environment" >&2;}
2135 { (exit 1); exit 1; }; }
2138 test "$2" = conftest.file
2140 then
2141 # Ok.
2143 else
2144 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2145 Check your system clock" >&5
2146 echo "$as_me: error: newly created file is older than distributed files!
2147 Check your system clock" >&2;}
2148 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6; }
2152 test "$program_prefix" != NONE &&
2153 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2154 # Use a double $ so make ignores it.
2155 test "$program_suffix" != NONE &&
2156 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2157 # Double any \ or $. echo might interpret backslashes.
2158 # By default was `s,x,x', remove it if useless.
2159 cat <<\_ACEOF >conftest.sed
2160 s/[\\$]/&&/g;s/;s,x,x,$//
2161 _ACEOF
2162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2163 rm -f conftest.sed
2165 # expand $ac_aux_dir to an absolute path
2166 am_aux_dir=`cd $ac_aux_dir && pwd`
2168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2169 # Use eval to expand $SHELL
2170 if eval "$MISSING --run true"; then
2171 am_missing_run="$MISSING --run "
2172 else
2173 am_missing_run=
2174 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2178 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2179 # We used to keeping the `.' as first argument, in order to
2180 # allow $(mkdir_p) to be used without argument. As in
2181 # $(mkdir_p) $(somedir)
2182 # where $(somedir) is conditionally defined. However this is wrong
2183 # for two reasons:
2184 # 1. if the package is installed by a user who cannot write `.'
2185 # make install will fail,
2186 # 2. the above comment should most certainly read
2187 # $(mkdir_p) $(DESTDIR)$(somedir)
2188 # so it does not work when $(somedir) is undefined and
2189 # $(DESTDIR) is not.
2190 # To support the latter case, we have to write
2191 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2192 # so the `.' trick is pointless.
2193 mkdir_p='mkdir -p --'
2194 else
2195 # On NextStep and OpenStep, the `mkdir' command does not
2196 # recognize any option. It will interpret all options as
2197 # directories to create, and then abort because `.' already
2198 # exists.
2199 for d in ./-p ./--version;
2201 test -d $d && rmdir $d
2202 done
2203 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2204 if test -f "$ac_aux_dir/mkinstalldirs"; then
2205 mkdir_p='$(mkinstalldirs)'
2206 else
2207 mkdir_p='$(install_sh) -d'
2211 for ac_prog in gawk mawk nawk awk
2213 # Extract the first word of "$ac_prog", so it can be a program name with args.
2214 set dummy $ac_prog; ac_word=$2
2215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217 if test "${ac_cv_prog_AWK+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$AWK"; then
2221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230 ac_cv_prog_AWK="$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2234 done
2235 done
2236 IFS=$as_save_IFS
2240 AWK=$ac_cv_prog_AWK
2241 if test -n "$AWK"; then
2242 { echo "$as_me:$LINENO: result: $AWK" >&5
2243 echo "${ECHO_T}$AWK" >&6; }
2244 else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2250 test -n "$AWK" && break
2251 done
2253 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2254 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2255 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2256 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 cat >conftest.make <<\_ACEOF
2260 SHELL = /bin/sh
2261 all:
2262 @echo '@@@%%%=$(MAKE)=@@@%%%'
2263 _ACEOF
2264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266 *@@@%%%=?*=@@@%%%*)
2267 eval ac_cv_prog_make_${ac_make}_set=yes;;
2269 eval ac_cv_prog_make_${ac_make}_set=no;;
2270 esac
2271 rm -f conftest.make
2273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276 SET_MAKE=
2277 else
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2280 SET_MAKE="MAKE=${MAKE-make}"
2283 rm -rf .tst 2>/dev/null
2284 mkdir .tst 2>/dev/null
2285 if test -d .tst; then
2286 am__leading_dot=.
2287 else
2288 am__leading_dot=_
2290 rmdir .tst 2>/dev/null
2292 # test to see if srcdir already configured
2293 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2294 test -f $srcdir/config.status; then
2295 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2296 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2297 { (exit 1); exit 1; }; }
2300 # test whether we have cygpath
2301 if test -z "$CYGPATH_W"; then
2302 if (cygpath --version) >/dev/null 2>/dev/null; then
2303 CYGPATH_W='cygpath -w'
2304 else
2305 CYGPATH_W=echo
2310 # Define the identity of the package.
2311 PACKAGE='barry'
2312 VERSION='0.15'
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE "$PACKAGE"
2317 _ACEOF
2320 cat >>confdefs.h <<_ACEOF
2321 #define VERSION "$VERSION"
2322 _ACEOF
2324 # Some tools Automake needs.
2326 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2329 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2332 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2335 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2338 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2340 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2342 # Installed binaries are usually stripped using `strip' when the user
2343 # run `make install-strip'. However `strip' might not be the right
2344 # tool to use in cross-compilation environments, therefore Automake
2345 # will honor the `STRIP' environment variable to overrule this program.
2346 if test "$cross_compiling" != no; then
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}strip; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_STRIP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 if test -n "$STRIP"; then
2356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2371 IFS=$as_save_IFS
2375 STRIP=$ac_cv_prog_STRIP
2376 if test -n "$STRIP"; then
2377 { echo "$as_me:$LINENO: result: $STRIP" >&5
2378 echo "${ECHO_T}$STRIP" >&6; }
2379 else
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2386 if test -z "$ac_cv_prog_STRIP"; then
2387 ac_ct_STRIP=$STRIP
2388 # Extract the first word of "strip", so it can be a program name with args.
2389 set dummy strip; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395 if test -n "$ac_ct_STRIP"; then
2396 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_ac_ct_STRIP="strip"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 break 2
2409 done
2410 done
2411 IFS=$as_save_IFS
2415 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2416 if test -n "$ac_ct_STRIP"; then
2417 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2418 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2419 else
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2424 if test "x$ac_ct_STRIP" = x; then
2425 STRIP=":"
2426 else
2427 case $cross_compiling:$ac_tool_warned in
2428 yes:)
2429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet. If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned=yes ;;
2436 esac
2437 STRIP=$ac_ct_STRIP
2439 else
2440 STRIP="$ac_cv_prog_STRIP"
2444 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2446 # We need awk for the "check" target. The system "awk" is bad on
2447 # some platforms.
2448 # Always define AMTAR for backward compatibility.
2450 AMTAR=${AMTAR-"${am_missing_run}tar"}
2452 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2460 cat >>confdefs.h <<\_ACEOF
2461 #define _GNU_SOURCE 1
2462 _ACEOF
2465 DEPDIR="${am__leading_dot}deps"
2467 ac_config_commands="$ac_config_commands depfiles"
2470 am_make=${MAKE-make}
2471 cat > confinc << 'END'
2472 am__doit:
2473 @echo done
2474 .PHONY: am__doit
2476 # If we don't find an include directive, just comment out the code.
2477 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2478 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2479 am__include="#"
2480 am__quote=
2481 _am_result=none
2482 # First try GNU make style include.
2483 echo "include confinc" > confmf
2484 # We grep out `Entering directory' and `Leaving directory'
2485 # messages which can occur if `w' ends up in MAKEFLAGS.
2486 # In particular we don't look at `^make:' because GNU make might
2487 # be invoked under some other name (usually "gmake"), in which
2488 # case it prints its new name instead of `make'.
2489 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2490 am__include=include
2491 am__quote=
2492 _am_result=GNU
2494 # Now try BSD make style include.
2495 if test "$am__include" = "#"; then
2496 echo '.include "confinc"' > confmf
2497 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2498 am__include=.include
2499 am__quote="\""
2500 _am_result=BSD
2505 { echo "$as_me:$LINENO: result: $_am_result" >&5
2506 echo "${ECHO_T}$_am_result" >&6; }
2507 rm -f confinc confmf
2509 # Check whether --enable-dependency-tracking was given.
2510 if test "${enable_dependency_tracking+set}" = set; then
2511 enableval=$enable_dependency_tracking;
2514 if test "x$enable_dependency_tracking" != xno; then
2515 am_depcomp="$ac_aux_dir/depcomp"
2516 AMDEPBACKSLASH='\'
2520 if test "x$enable_dependency_tracking" != xno; then
2521 AMDEP_TRUE=
2522 AMDEP_FALSE='#'
2523 else
2524 AMDEP_TRUE='#'
2525 AMDEP_FALSE=
2530 ac_ext=c
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2557 done
2558 done
2559 IFS=$as_save_IFS
2563 CC=$ac_cv_prog_CC
2564 if test -n "$CC"; then
2565 { echo "$as_me:$LINENO: result: $CC" >&5
2566 echo "${ECHO_T}$CC" >&6; }
2567 else
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2574 if test -z "$ac_cv_prog_CC"; then
2575 ac_ct_CC=$CC
2576 # Extract the first word of "gcc", so it can be a program name with args.
2577 set dummy gcc; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if test -n "$ac_ct_CC"; then
2584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_ac_ct_CC="gcc"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2597 done
2598 done
2599 IFS=$as_save_IFS
2603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2604 if test -n "$ac_ct_CC"; then
2605 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2606 echo "${ECHO_T}$ac_ct_CC" >&6; }
2607 else
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2612 if test "x$ac_ct_CC" = x; then
2613 CC=""
2614 else
2615 case $cross_compiling:$ac_tool_warned in
2616 yes:)
2617 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2618 whose name does not start with the host triplet. If you think this
2619 configuration is useful to you, please write to autoconf@gnu.org." >&5
2620 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2621 whose name does not start with the host triplet. If you think this
2622 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2623 ac_tool_warned=yes ;;
2624 esac
2625 CC=$ac_ct_CC
2627 else
2628 CC="$ac_cv_prog_CC"
2631 if test -z "$CC"; then
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}cc; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_CC="${ac_tool_prefix}cc"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2656 IFS=$as_save_IFS
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662 { echo "$as_me:$LINENO: result: $CC" >&5
2663 echo "${ECHO_T}$CC" >&6; }
2664 else
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2672 if test -z "$CC"; then
2673 # Extract the first word of "cc", so it can be a program name with args.
2674 set dummy cc; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 else
2683 ac_prog_rejected=no
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2692 ac_prog_rejected=yes
2693 continue
2695 ac_cv_prog_CC="cc"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2703 if test $ac_prog_rejected = yes; then
2704 # We found a bogon in the path, so make sure we never use it.
2705 set dummy $ac_cv_prog_CC
2706 shift
2707 if test $# != 0; then
2708 # We chose a different compiler from the bogus one.
2709 # However, it has the same basename, so the bogon will be chosen
2710 # first if we set CC to just the basename; use the full file name.
2711 shift
2712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 { echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6; }
2721 else
2722 { echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6; }
2728 if test -z "$CC"; then
2729 if test -n "$ac_tool_prefix"; then
2730 for ac_prog in cl.exe
2732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2736 if test "${ac_cv_prog_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2753 done
2754 done
2755 IFS=$as_save_IFS
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { echo "$as_me:$LINENO: result: $CC" >&5
2762 echo "${ECHO_T}$CC" >&6; }
2763 else
2764 { echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6; }
2769 test -n "$CC" && break
2770 done
2772 if test -z "$CC"; then
2773 ac_ct_CC=$CC
2774 for ac_prog in cl.exe
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_ac_ct_CC="$ac_prog"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2799 IFS=$as_save_IFS
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6; }
2807 else
2808 { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2813 test -n "$ac_ct_CC" && break
2814 done
2816 if test "x$ac_ct_CC" = x; then
2817 CC=""
2818 else
2819 case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2822 whose name does not start with the host triplet. If you think this
2823 configuration is useful to you, please write to autoconf@gnu.org." >&5
2824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet. If you think this
2826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2827 ac_tool_warned=yes ;;
2828 esac
2829 CC=$ac_ct_CC
2836 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: no acceptable C compiler found in \$PATH
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2842 # Provide some information about the compiler.
2843 echo "$as_me:$LINENO: checking for C compiler version" >&5
2844 ac_compiler=`set X $ac_compile; echo $2`
2845 { (ac_try="$ac_compiler --version >&5"
2846 case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_compiler --version >&5") 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }
2855 { (ac_try="$ac_compiler -v >&5"
2856 case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859 esac
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_compiler -v >&5") 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2865 { (ac_try="$ac_compiler -V >&5"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_compiler -V >&5") 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2884 main ()
2888 return 0;
2890 _ACEOF
2891 ac_clean_files_save=$ac_clean_files
2892 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2893 # Try to create an executable without -o first, disregard a.out.
2894 # It will help us diagnose broken compilers, and finding out an intuition
2895 # of exeext.
2896 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2897 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2898 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2900 # List of possible output files, starting from the most likely.
2901 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2902 # only as a last resort. b.out is created by i960 compilers.
2903 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2905 # The IRIX 6 linker writes into existing files which may not be
2906 # executable, retaining their permissions. Remove them first so a
2907 # subsequent execution test works.
2908 ac_rmfiles=
2909 for ac_file in $ac_files
2911 case $ac_file in
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2913 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2914 esac
2915 done
2916 rm -f $ac_rmfiles
2918 if { (ac_try="$ac_link_default"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_link_default") 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2929 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2930 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2931 # so that the user can short-circuit this test for compilers unknown to
2932 # Autoconf.
2933 for ac_file in $ac_files ''
2935 test -f "$ac_file" || continue
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2939 [ab].out )
2940 # We found the default executable, but exeext='' is most
2941 # certainly right.
2942 break;;
2943 *.* )
2944 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2945 then :; else
2946 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948 # We set ac_cv_exeext here because the later test for it is not
2949 # safe: cross compilers may not add the suffix if given an `-o'
2950 # argument, so we may need to know it at that point already.
2951 # Even if this section looks crufty: it has the advantage of
2952 # actually working.
2953 break;;
2955 break;;
2956 esac
2957 done
2958 test "$ac_cv_exeext" = no && ac_cv_exeext=
2960 else
2961 ac_file=''
2964 { echo "$as_me:$LINENO: result: $ac_file" >&5
2965 echo "${ECHO_T}$ac_file" >&6; }
2966 if test -z "$ac_file"; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: C compiler cannot create executables
2973 See \`config.log' for more details." >&2;}
2974 { (exit 77); exit 77; }; }
2977 ac_exeext=$ac_cv_exeext
2979 # Check that the compiler produces executables we can run. If not, either
2980 # the compiler is broken, or we cross compile.
2981 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2982 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2983 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2984 # If not cross compiling, check that we can run a simple program.
2985 if test "$cross_compiling" != yes; then
2986 if { ac_try='./$ac_file'
2987 { (case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_try") 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 cross_compiling=no
2997 else
2998 if test "$cross_compiling" = maybe; then
2999 cross_compiling=yes
3000 else
3001 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3002 If you meant to cross compile, use \`--host'.
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot run C compiled programs.
3005 If you meant to cross compile, use \`--host'.
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3011 { echo "$as_me:$LINENO: result: yes" >&5
3012 echo "${ECHO_T}yes" >&6; }
3014 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3015 ac_clean_files=$ac_clean_files_save
3016 # Check that the compiler produces executables we can run. If not, either
3017 # the compiler is broken, or we cross compile.
3018 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3019 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3020 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3021 echo "${ECHO_T}$cross_compiling" >&6; }
3023 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3024 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3025 if { (ac_try="$ac_link"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_link") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; then
3035 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3036 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3037 # work properly (i.e., refer to `conftest.exe'), while it won't with
3038 # `rm'.
3039 for ac_file in conftest.exe conftest conftest.*; do
3040 test -f "$ac_file" || continue
3041 case $ac_file in
3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3044 break;;
3045 * ) break;;
3046 esac
3047 done
3048 else
3049 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3050 See \`config.log' for more details." >&5
3051 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3052 See \`config.log' for more details." >&2;}
3053 { (exit 1); exit 1; }; }
3056 rm -f conftest$ac_cv_exeext
3057 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3058 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3060 rm -f conftest.$ac_ext
3061 EXEEXT=$ac_cv_exeext
3062 ac_exeext=$EXEEXT
3063 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3064 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3065 if test "${ac_cv_objext+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3076 main ()
3080 return 0;
3082 _ACEOF
3083 rm -f conftest.o conftest.obj
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; then
3094 for ac_file in conftest.o conftest.obj conftest.*; do
3095 test -f "$ac_file" || continue;
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099 break;;
3100 esac
3101 done
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3109 See \`config.log' for more details." >&2;}
3110 { (exit 1); exit 1; }; }
3113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3115 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3116 echo "${ECHO_T}$ac_cv_objext" >&6; }
3117 OBJEXT=$ac_cv_objext
3118 ac_objext=$OBJEXT
3119 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3120 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3121 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3132 main ()
3134 #ifndef __GNUC__
3135 choke me
3136 #endif
3139 return 0;
3141 _ACEOF
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } && {
3156 test -z "$ac_c_werror_flag" ||
3157 test ! -s conftest.err
3158 } && test -s conftest.$ac_objext; then
3159 ac_compiler_gnu=yes
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_compiler_gnu=no
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3171 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3172 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3173 GCC=`test $ac_compiler_gnu = yes && echo yes`
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3177 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_cc_g+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3183 ac_cv_prog_cc_g=no
3184 CFLAGS="-g"
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3193 main ()
3197 return 0;
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } && {
3214 test -z "$ac_c_werror_flag" ||
3215 test ! -s conftest.err
3216 } && test -s conftest.$ac_objext; then
3217 ac_cv_prog_cc_g=yes
3218 else
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3222 CFLAGS=""
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3231 main ()
3235 return 0;
3237 _ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compile") 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } && {
3252 test -z "$ac_c_werror_flag" ||
3253 test ! -s conftest.err
3254 } && test -s conftest.$ac_objext; then
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3261 CFLAGS="-g"
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3270 main ()
3274 return 0;
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_compile") 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } && {
3291 test -z "$ac_c_werror_flag" ||
3292 test ! -s conftest.err
3293 } && test -s conftest.$ac_objext; then
3294 ac_cv_prog_cc_g=yes
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 ac_c_werror_flag=$ac_save_c_werror_flag
3311 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3313 if test "$ac_test_CFLAGS" = set; then
3314 CFLAGS=$ac_save_CFLAGS
3315 elif test $ac_cv_prog_cc_g = yes; then
3316 if test "$GCC" = yes; then
3317 CFLAGS="-g -O2"
3318 else
3319 CFLAGS="-g"
3321 else
3322 if test "$GCC" = yes; then
3323 CFLAGS="-O2"
3324 else
3325 CFLAGS=
3328 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3329 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3330 if test "${ac_cv_prog_cc_c89+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 ac_cv_prog_cc_c89=no
3334 ac_save_CC=$CC
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <stdarg.h>
3342 #include <stdio.h>
3343 #include <sys/types.h>
3344 #include <sys/stat.h>
3345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3346 struct buf { int x; };
3347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3348 static char *e (p, i)
3349 char **p;
3350 int i;
3352 return p[i];
3354 static char *f (char * (*g) (char **, int), char **p, ...)
3356 char *s;
3357 va_list v;
3358 va_start (v,p);
3359 s = g (p, va_arg (v,int));
3360 va_end (v);
3361 return s;
3364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3365 function prototypes and stuff, but not '\xHH' hex character constants.
3366 These don't provoke an error unfortunately, instead are silently treated
3367 as 'x'. The following induces an error, until -std is added to get
3368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3369 array size at least. It's necessary to write '\x00'==0 to get something
3370 that's true only with -std. */
3371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3373 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3374 inside strings and character constants. */
3375 #define FOO(x) 'x'
3376 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3378 int test (int i, double x);
3379 struct s1 {int (*f) (int a);};
3380 struct s2 {int (*f) (double a);};
3381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3382 int argc;
3383 char **argv;
3385 main ()
3387 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3389 return 0;
3391 _ACEOF
3392 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3395 CC="$ac_save_CC $ac_arg"
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3413 ac_cv_prog_cc_c89=$ac_arg
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3421 rm -f core conftest.err conftest.$ac_objext
3422 test "x$ac_cv_prog_cc_c89" != "xno" && break
3423 done
3424 rm -f conftest.$ac_ext
3425 CC=$ac_save_CC
3428 # AC_CACHE_VAL
3429 case "x$ac_cv_prog_cc_c89" in
3431 { echo "$as_me:$LINENO: result: none needed" >&5
3432 echo "${ECHO_T}none needed" >&6; } ;;
3433 xno)
3434 { echo "$as_me:$LINENO: result: unsupported" >&5
3435 echo "${ECHO_T}unsupported" >&6; } ;;
3437 CC="$CC $ac_cv_prog_cc_c89"
3438 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3439 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3440 esac
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 depcc="$CC" am_compiler_list=
3451 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3452 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3453 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3457 # We make a subdir and do the tests there. Otherwise we can end up
3458 # making bogus files that we don't know about and never remove. For
3459 # instance it was reported that on HP-UX the gcc test will end up
3460 # making a dummy file named `D' -- because `-MD' means `put the output
3461 # in D'.
3462 mkdir conftest.dir
3463 # Copy depcomp to subdir because otherwise we won't find it if we're
3464 # using a relative directory.
3465 cp "$am_depcomp" conftest.dir
3466 cd conftest.dir
3467 # We will build objects and dependencies in a subdirectory because
3468 # it helps to detect inapplicable dependency modes. For instance
3469 # both Tru64's cc and ICC support -MD to output dependencies as a
3470 # side effect of compilation, but ICC will put the dependencies in
3471 # the current directory while Tru64 will put them in the object
3472 # directory.
3473 mkdir sub
3475 am_cv_CC_dependencies_compiler_type=none
3476 if test "$am_compiler_list" = ""; then
3477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3479 for depmode in $am_compiler_list; do
3480 # Setup a source with many dependencies, because some compilers
3481 # like to wrap large dependency lists on column 80 (with \), and
3482 # we should not choose a depcomp mode which is confused by this.
3484 # We need to recreate these files for each test, as the compiler may
3485 # overwrite some of them when testing with obscure command lines.
3486 # This happens at least with the AIX C compiler.
3487 : > sub/conftest.c
3488 for i in 1 2 3 4 5 6; do
3489 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3490 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3491 # Solaris 8's {/usr,}/bin/sh.
3492 touch sub/conftst$i.h
3493 done
3494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3496 case $depmode in
3497 nosideeffect)
3498 # after this tag, mechanisms are not by side-effect, so they'll
3499 # only be used when explicitly requested
3500 if test "x$enable_dependency_tracking" = xyes; then
3501 continue
3502 else
3503 break
3506 none) break ;;
3507 esac
3508 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3509 # mode. It turns out that the SunPro C++ compiler does not properly
3510 # handle `-M -o', and we need to detect this.
3511 if depmode=$depmode \
3512 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3513 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3514 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3515 >/dev/null 2>conftest.err &&
3516 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3517 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3518 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3519 # icc doesn't choke on unknown options, it will just issue warnings
3520 # or remarks (even with -Werror). So we grep stderr for any message
3521 # that says an option was ignored or not supported.
3522 # When given -MP, icc 7.0 and 7.1 complain thusly:
3523 # icc: Command line warning: ignoring option '-M'; no argument required
3524 # The diagnosis changed in icc 8.0:
3525 # icc: Command line remark: option '-MP' not supported
3526 if (grep 'ignoring option' conftest.err ||
3527 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3528 am_cv_CC_dependencies_compiler_type=$depmode
3529 break
3532 done
3534 cd ..
3535 rm -rf conftest.dir
3536 else
3537 am_cv_CC_dependencies_compiler_type=none
3541 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3542 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3543 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3548 test "x$enable_dependency_tracking" != xno \
3549 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3550 am__fastdepCC_TRUE=
3551 am__fastdepCC_FALSE='#'
3552 else
3553 am__fastdepCC_TRUE='#'
3554 am__fastdepCC_FALSE=
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3565 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3566 # On Suns, sometimes $CPP names a directory.
3567 if test -n "$CPP" && test -d "$CPP"; then
3568 CPP=
3570 if test -z "$CPP"; then
3571 if test "${ac_cv_prog_CPP+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 # Double quotes because CPP needs to be expanded
3575 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3577 ac_preproc_ok=false
3578 for ac_c_preproc_warn_flag in '' yes
3580 # Use a header file that comes with gcc, so configuring glibc
3581 # with a fresh cross-compiler works.
3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583 # <limits.h> exists even on freestanding compilers.
3584 # On the NeXT, cc -E runs the code through the compiler's parser,
3585 # not just through cpp. "Syntax error" is here to catch this case.
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #ifdef __STDC__
3593 # include <limits.h>
3594 #else
3595 # include <assert.h>
3596 #endif
3597 Syntax error
3598 _ACEOF
3599 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null && {
3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 }; then
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Broken: fails on valid input.
3621 continue
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ac_nonexistent.h>
3635 _ACEOF
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev/null && {
3649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 }; then
3652 # Broken: success on invalid input.
3653 continue
3654 else
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 # Passes both tests.
3659 ac_preproc_ok=:
3660 break
3663 rm -f conftest.err conftest.$ac_ext
3665 done
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then
3669 break
3672 done
3673 ac_cv_prog_CPP=$CPP
3676 CPP=$ac_cv_prog_CPP
3677 else
3678 ac_cv_prog_CPP=$CPP
3680 { echo "$as_me:$LINENO: result: $CPP" >&5
3681 echo "${ECHO_T}$CPP" >&6; }
3682 ac_preproc_ok=false
3683 for ac_c_preproc_warn_flag in '' yes
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #ifdef __STDC__
3698 # include <limits.h>
3699 #else
3700 # include <assert.h>
3701 #endif
3702 Syntax error
3703 _ACEOF
3704 if { (ac_try="$ac_cpp conftest.$ac_ext"
3705 case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } >/dev/null && {
3717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 }; then
3721 else
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 # Broken: fails on valid input.
3726 continue
3729 rm -f conftest.err conftest.$ac_ext
3731 # OK, works on sane cases. Now check whether nonexistent headers
3732 # can be detected and how.
3733 cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h. */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 #include <ac_nonexistent.h>
3740 _ACEOF
3741 if { (ac_try="$ac_cpp conftest.$ac_ext"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev/null && {
3754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 }; then
3757 # Broken: success on invalid input.
3758 continue
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3768 rm -f conftest.err conftest.$ac_ext
3770 done
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.err conftest.$ac_ext
3773 if $ac_preproc_ok; then
3775 else
3776 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3777 See \`config.log' for more details." >&5
3778 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3779 See \`config.log' for more details." >&2;}
3780 { (exit 1); exit 1; }; }
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3791 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_GREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 # Extract the first word of "grep ggrep" to use in msg output
3796 if test -z "$GREP"; then
3797 set dummy grep ggrep; ac_prog_name=$2
3798 if test "${ac_cv_path_GREP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 ac_path_GREP_found=false
3802 # Loop through the user's path and test for each of PROGNAME-LIST
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_prog in grep ggrep; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3811 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3812 # Check for GNU ac_path_GREP and select it if it is found.
3813 # Check for GNU $ac_path_GREP
3814 case `"$ac_path_GREP" --version 2>&1` in
3815 *GNU*)
3816 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3818 ac_count=0
3819 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3820 while :
3822 cat "conftest.in" "conftest.in" >"conftest.tmp"
3823 mv "conftest.tmp" "conftest.in"
3824 cp "conftest.in" "conftest.nl"
3825 echo 'GREP' >> "conftest.nl"
3826 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3828 ac_count=`expr $ac_count + 1`
3829 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3830 # Best one so far, save it but keep looking for a better one
3831 ac_cv_path_GREP="$ac_path_GREP"
3832 ac_path_GREP_max=$ac_count
3834 # 10*(2^10) chars as input seems more than enough
3835 test $ac_count -gt 10 && break
3836 done
3837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3838 esac
3841 $ac_path_GREP_found && break 3
3842 done
3843 done
3845 done
3846 IFS=$as_save_IFS
3851 GREP="$ac_cv_path_GREP"
3852 if test -z "$GREP"; then
3853 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3855 { (exit 1); exit 1; }; }
3858 else
3859 ac_cv_path_GREP=$GREP
3864 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3865 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3866 GREP="$ac_cv_path_GREP"
3869 { echo "$as_me:$LINENO: checking for egrep" >&5
3870 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3871 if test "${ac_cv_path_EGREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3875 then ac_cv_path_EGREP="$GREP -E"
3876 else
3877 # Extract the first word of "egrep" to use in msg output
3878 if test -z "$EGREP"; then
3879 set dummy egrep; ac_prog_name=$2
3880 if test "${ac_cv_path_EGREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 ac_path_EGREP_found=false
3884 # Loop through the user's path and test for each of PROGNAME-LIST
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in egrep; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3893 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3894 # Check for GNU ac_path_EGREP and select it if it is found.
3895 # Check for GNU $ac_path_EGREP
3896 case `"$ac_path_EGREP" --version 2>&1` in
3897 *GNU*)
3898 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3900 ac_count=0
3901 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3902 while :
3904 cat "conftest.in" "conftest.in" >"conftest.tmp"
3905 mv "conftest.tmp" "conftest.in"
3906 cp "conftest.in" "conftest.nl"
3907 echo 'EGREP' >> "conftest.nl"
3908 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910 ac_count=`expr $ac_count + 1`
3911 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3912 # Best one so far, save it but keep looking for a better one
3913 ac_cv_path_EGREP="$ac_path_EGREP"
3914 ac_path_EGREP_max=$ac_count
3916 # 10*(2^10) chars as input seems more than enough
3917 test $ac_count -gt 10 && break
3918 done
3919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 esac
3923 $ac_path_EGREP_found && break 3
3924 done
3925 done
3927 done
3928 IFS=$as_save_IFS
3933 EGREP="$ac_cv_path_EGREP"
3934 if test -z "$EGREP"; then
3935 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937 { (exit 1); exit 1; }; }
3940 else
3941 ac_cv_path_EGREP=$EGREP
3947 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3948 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3949 EGREP="$ac_cv_path_EGREP"
3953 { echo "$as_me:$LINENO: checking for AIX" >&5
3954 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 #ifdef _AIX
3963 #endif
3965 _ACEOF
3966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3967 $EGREP "yes" >/dev/null 2>&1; then
3968 { echo "$as_me:$LINENO: result: yes" >&5
3969 echo "${ECHO_T}yes" >&6; }
3970 cat >>confdefs.h <<\_ACEOF
3971 #define _ALL_SOURCE 1
3972 _ACEOF
3974 else
3975 { echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6; }
3978 rm -f conftest*
3981 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3983 if test "${ac_cv_header_stdc+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h. */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 #include <stdlib.h>
3993 #include <stdarg.h>
3994 #include <string.h>
3995 #include <float.h>
3998 main ()
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.$ac_objext; then
4022 ac_cv_header_stdc=yes
4023 else
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_cv_header_stdc=no
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 if test $ac_cv_header_stdc = yes; then
4033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #include <string.h>
4042 _ACEOF
4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044 $EGREP "memchr" >/dev/null 2>&1; then
4046 else
4047 ac_cv_header_stdc=no
4049 rm -f conftest*
4053 if test $ac_cv_header_stdc = yes; then
4054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #include <stdlib.h>
4063 _ACEOF
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 $EGREP "free" >/dev/null 2>&1; then
4067 else
4068 ac_cv_header_stdc=no
4070 rm -f conftest*
4074 if test $ac_cv_header_stdc = yes; then
4075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4076 if test "$cross_compiling" = yes; then
4078 else
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <ctype.h>
4086 #include <stdlib.h>
4087 #if ((' ' & 0x0FF) == 0x020)
4088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4090 #else
4091 # define ISLOWER(c) \
4092 (('a' <= (c) && (c) <= 'i') \
4093 || ('j' <= (c) && (c) <= 'r') \
4094 || ('s' <= (c) && (c) <= 'z'))
4095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4096 #endif
4098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4100 main ()
4102 int i;
4103 for (i = 0; i < 256; i++)
4104 if (XOR (islower (i), ISLOWER (i))
4105 || toupper (i) != TOUPPER (i))
4106 return 2;
4107 return 0;
4109 _ACEOF
4110 rm -f conftest$ac_exeext
4111 if { (ac_try="$ac_link"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_link") 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4121 { (case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_try") 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4131 else
4132 echo "$as_me: program exited with status $ac_status" >&5
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 ( exit $ac_status )
4137 ac_cv_header_stdc=no
4139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4147 if test $ac_cv_header_stdc = yes; then
4149 cat >>confdefs.h <<\_ACEOF
4150 #define STDC_HEADERS 1
4151 _ACEOF
4155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4166 inttypes.h stdint.h unistd.h
4168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 $ac_includes_default
4182 #include <$ac_header>
4183 _ACEOF
4184 rm -f conftest.$ac_objext
4185 if { (ac_try="$ac_compile"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_compile") 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && {
4198 test -z "$ac_c_werror_flag" ||
4199 test ! -s conftest.err
4200 } && test -s conftest.$ac_objext; then
4201 eval "$as_ac_Header=yes"
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 eval "$as_ac_Header=no"
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 ac_res=`eval echo '${'$as_ac_Header'}'`
4212 { echo "$as_me:$LINENO: result: $ac_res" >&5
4213 echo "${ECHO_T}$ac_res" >&6; }
4214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4215 cat >>confdefs.h <<_ACEOF
4216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217 _ACEOF
4221 done
4224 if test "${ac_cv_header_minix_config_h+set}" = set; then
4225 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4226 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4227 if test "${ac_cv_header_minix_config_h+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4231 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4232 else
4233 # Is the header compilable?
4234 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4235 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 $ac_includes_default
4243 #include <minix/config.h>
4244 _ACEOF
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4247 case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } && {
4259 test -z "$ac_c_werror_flag" ||
4260 test ! -s conftest.err
4261 } && test -s conftest.$ac_objext; then
4262 ac_header_compiler=yes
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 ac_header_compiler=no
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4272 echo "${ECHO_T}$ac_header_compiler" >&6; }
4274 # Is the header present?
4275 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4276 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <minix/config.h>
4284 _ACEOF
4285 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
4298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4299 test ! -s conftest.err
4300 }; then
4301 ac_header_preproc=yes
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 ac_header_preproc=no
4309 rm -f conftest.err conftest.$ac_ext
4310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4311 echo "${ECHO_T}$ac_header_preproc" >&6; }
4313 # So? What about this header?
4314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4315 yes:no: )
4316 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4317 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4318 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4319 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4320 ac_header_preproc=yes
4322 no:yes:* )
4323 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4324 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4325 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4326 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4327 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4328 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4329 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4330 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4331 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4332 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4333 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4334 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4335 ( cat <<\_ASBOX
4336 ## ------------------------------------------------ ##
4337 ## Report this to barry-devel@lists.sourceforge.net ##
4338 ## ------------------------------------------------ ##
4339 _ASBOX
4340 ) | sed "s/^/$as_me: WARNING: /" >&2
4342 esac
4343 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4344 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4345 if test "${ac_cv_header_minix_config_h+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 ac_cv_header_minix_config_h=$ac_header_preproc
4350 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4351 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4354 if test $ac_cv_header_minix_config_h = yes; then
4355 MINIX=yes
4356 else
4357 MINIX=
4361 if test "$MINIX" = yes; then
4363 cat >>confdefs.h <<\_ACEOF
4364 #define _POSIX_SOURCE 1
4365 _ACEOF
4368 cat >>confdefs.h <<\_ACEOF
4369 #define _POSIX_1_SOURCE 2
4370 _ACEOF
4373 cat >>confdefs.h <<\_ACEOF
4374 #define _MINIX 1
4375 _ACEOF
4389 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4390 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4401 # define __EXTENSIONS__ 1
4402 $ac_includes_default
4404 main ()
4408 return 0;
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_compile") 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
4428 ac_cv_safe_to_define___extensions__=yes
4429 else
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_cv_safe_to_define___extensions__=no
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4439 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4440 test $ac_cv_safe_to_define___extensions__ = yes &&
4441 cat >>confdefs.h <<\_ACEOF
4442 #define __EXTENSIONS__ 1
4443 _ACEOF
4445 cat >>confdefs.h <<\_ACEOF
4446 #define _POSIX_PTHREAD_SEMANTICS 1
4447 _ACEOF
4449 cat >>confdefs.h <<\_ACEOF
4450 #define _TANDEM_SOURCE 1
4451 _ACEOF
4456 # Checks for programs.
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463 if test -n "$ac_tool_prefix"; then
4464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4468 if test "${ac_cv_prog_CC+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 if test -n "$CC"; then
4472 ac_cv_prog_CC="$CC" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4485 done
4486 done
4487 IFS=$as_save_IFS
4491 CC=$ac_cv_prog_CC
4492 if test -n "$CC"; then
4493 { echo "$as_me:$LINENO: result: $CC" >&5
4494 echo "${ECHO_T}$CC" >&6; }
4495 else
4496 { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4502 if test -z "$ac_cv_prog_CC"; then
4503 ac_ct_CC=$CC
4504 # Extract the first word of "gcc", so it can be a program name with args.
4505 set dummy gcc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if test -n "$ac_ct_CC"; then
4512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_prog_ac_ct_CC="gcc"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4527 IFS=$as_save_IFS
4531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4532 if test -n "$ac_ct_CC"; then
4533 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4534 echo "${ECHO_T}$ac_ct_CC" >&6; }
4535 else
4536 { echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6; }
4540 if test "x$ac_ct_CC" = x; then
4541 CC=""
4542 else
4543 case $cross_compiling:$ac_tool_warned in
4544 yes:)
4545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4546 whose name does not start with the host triplet. If you think this
4547 configuration is useful to you, please write to autoconf@gnu.org." >&5
4548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4549 whose name does not start with the host triplet. If you think this
4550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4551 ac_tool_warned=yes ;;
4552 esac
4553 CC=$ac_ct_CC
4555 else
4556 CC="$ac_cv_prog_CC"
4559 if test -z "$CC"; then
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4562 set dummy ${ac_tool_prefix}cc; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_CC="${ac_tool_prefix}cc"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4584 IFS=$as_save_IFS
4588 CC=$ac_cv_prog_CC
4589 if test -n "$CC"; then
4590 { echo "$as_me:$LINENO: result: $CC" >&5
4591 echo "${ECHO_T}$CC" >&6; }
4592 else
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4600 if test -z "$CC"; then
4601 # Extract the first word of "cc", so it can be a program name with args.
4602 set dummy cc; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_CC+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 if test -n "$CC"; then
4609 ac_cv_prog_CC="$CC" # Let the user override the test.
4610 else
4611 ac_prog_rejected=no
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4620 ac_prog_rejected=yes
4621 continue
4623 ac_cv_prog_CC="cc"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4627 done
4628 done
4629 IFS=$as_save_IFS
4631 if test $ac_prog_rejected = yes; then
4632 # We found a bogon in the path, so make sure we never use it.
4633 set dummy $ac_cv_prog_CC
4634 shift
4635 if test $# != 0; then
4636 # We chose a different compiler from the bogus one.
4637 # However, it has the same basename, so the bogon will be chosen
4638 # first if we set CC to just the basename; use the full file name.
4639 shift
4640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4649 else
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4656 if test -z "$CC"; then
4657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in cl.exe
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 CC=$ac_cv_prog_CC
4688 if test -n "$CC"; then
4689 { echo "$as_me:$LINENO: result: $CC" >&5
4690 echo "${ECHO_T}$CC" >&6; }
4691 else
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 test -n "$CC" && break
4698 done
4700 if test -z "$CC"; then
4701 ac_ct_CC=$CC
4702 for ac_prog in cl.exe
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 if test -n "$ac_ct_CC"; then
4712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_ac_ct_CC="$ac_prog"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4727 IFS=$as_save_IFS
4731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4732 if test -n "$ac_ct_CC"; then
4733 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4734 echo "${ECHO_T}$ac_ct_CC" >&6; }
4735 else
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4741 test -n "$ac_ct_CC" && break
4742 done
4744 if test "x$ac_ct_CC" = x; then
4745 CC=""
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4750 whose name does not start with the host triplet. If you think this
4751 configuration is useful to you, please write to autoconf@gnu.org." >&5
4752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4753 whose name does not start with the host triplet. If you think this
4754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4755 ac_tool_warned=yes ;;
4756 esac
4757 CC=$ac_ct_CC
4764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4765 See \`config.log' for more details." >&5
4766 echo "$as_me: error: no acceptable C compiler found in \$PATH
4767 See \`config.log' for more details." >&2;}
4768 { (exit 1); exit 1; }; }
4770 # Provide some information about the compiler.
4771 echo "$as_me:$LINENO: checking for C compiler version" >&5
4772 ac_compiler=`set X $ac_compile; echo $2`
4773 { (ac_try="$ac_compiler --version >&5"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_compiler --version >&5") 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }
4783 { (ac_try="$ac_compiler -v >&5"
4784 case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787 esac
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_compiler -v >&5") 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }
4793 { (ac_try="$ac_compiler -V >&5"
4794 case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_compiler -V >&5") 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }
4804 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h. */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4817 main ()
4819 #ifndef __GNUC__
4820 choke me
4821 #endif
4824 return 0;
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (ac_try="$ac_compile"
4829 case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832 esac
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_compile") 2>conftest.er1
4835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } && {
4841 test -z "$ac_c_werror_flag" ||
4842 test ! -s conftest.err
4843 } && test -s conftest.$ac_objext; then
4844 ac_compiler_gnu=yes
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ac_compiler_gnu=no
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4856 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4857 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4858 GCC=`test $ac_compiler_gnu = yes && echo yes`
4859 ac_test_CFLAGS=${CFLAGS+set}
4860 ac_save_CFLAGS=$CFLAGS
4861 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4862 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_cc_g+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 ac_save_c_werror_flag=$ac_c_werror_flag
4867 ac_c_werror_flag=yes
4868 ac_cv_prog_cc_g=no
4869 CFLAGS="-g"
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4878 main ()
4882 return 0;
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4902 ac_cv_prog_cc_g=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 CFLAGS=""
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4916 main ()
4920 return 0;
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (ac_try="$ac_compile"
4925 case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 ac_c_werror_flag=$ac_save_c_werror_flag
4946 CFLAGS="-g"
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4955 main ()
4959 return 0;
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 ac_cv_prog_cc_g=yes
4980 else
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_c_werror_flag=$ac_save_c_werror_flag
4996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4998 if test "$ac_test_CFLAGS" = set; then
4999 CFLAGS=$ac_save_CFLAGS
5000 elif test $ac_cv_prog_cc_g = yes; then
5001 if test "$GCC" = yes; then
5002 CFLAGS="-g -O2"
5003 else
5004 CFLAGS="-g"
5006 else
5007 if test "$GCC" = yes; then
5008 CFLAGS="-O2"
5009 else
5010 CFLAGS=
5013 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5014 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_cc_c89+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 ac_cv_prog_cc_c89=no
5019 ac_save_CC=$CC
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <stdarg.h>
5027 #include <stdio.h>
5028 #include <sys/types.h>
5029 #include <sys/stat.h>
5030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5031 struct buf { int x; };
5032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5033 static char *e (p, i)
5034 char **p;
5035 int i;
5037 return p[i];
5039 static char *f (char * (*g) (char **, int), char **p, ...)
5041 char *s;
5042 va_list v;
5043 va_start (v,p);
5044 s = g (p, va_arg (v,int));
5045 va_end (v);
5046 return s;
5049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5050 function prototypes and stuff, but not '\xHH' hex character constants.
5051 These don't provoke an error unfortunately, instead are silently treated
5052 as 'x'. The following induces an error, until -std is added to get
5053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5054 array size at least. It's necessary to write '\x00'==0 to get something
5055 that's true only with -std. */
5056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5059 inside strings and character constants. */
5060 #define FOO(x) 'x'
5061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5063 int test (int i, double x);
5064 struct s1 {int (*f) (int a);};
5065 struct s2 {int (*f) (double a);};
5066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5067 int argc;
5068 char **argv;
5070 main ()
5072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5074 return 0;
5076 _ACEOF
5077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5080 CC="$ac_save_CC $ac_arg"
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_compile") 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && {
5095 test -z "$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 } && test -s conftest.$ac_objext; then
5098 ac_cv_prog_cc_c89=$ac_arg
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f core conftest.err conftest.$ac_objext
5107 test "x$ac_cv_prog_cc_c89" != "xno" && break
5108 done
5109 rm -f conftest.$ac_ext
5110 CC=$ac_save_CC
5113 # AC_CACHE_VAL
5114 case "x$ac_cv_prog_cc_c89" in
5116 { echo "$as_me:$LINENO: result: none needed" >&5
5117 echo "${ECHO_T}none needed" >&6; } ;;
5118 xno)
5119 { echo "$as_me:$LINENO: result: unsupported" >&5
5120 echo "${ECHO_T}unsupported" >&6; } ;;
5122 CC="$CC $ac_cv_prog_cc_c89"
5123 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5124 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5125 esac
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134 depcc="$CC" am_compiler_list=
5136 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5137 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5138 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5142 # We make a subdir and do the tests there. Otherwise we can end up
5143 # making bogus files that we don't know about and never remove. For
5144 # instance it was reported that on HP-UX the gcc test will end up
5145 # making a dummy file named `D' -- because `-MD' means `put the output
5146 # in D'.
5147 mkdir conftest.dir
5148 # Copy depcomp to subdir because otherwise we won't find it if we're
5149 # using a relative directory.
5150 cp "$am_depcomp" conftest.dir
5151 cd conftest.dir
5152 # We will build objects and dependencies in a subdirectory because
5153 # it helps to detect inapplicable dependency modes. For instance
5154 # both Tru64's cc and ICC support -MD to output dependencies as a
5155 # side effect of compilation, but ICC will put the dependencies in
5156 # the current directory while Tru64 will put them in the object
5157 # directory.
5158 mkdir sub
5160 am_cv_CC_dependencies_compiler_type=none
5161 if test "$am_compiler_list" = ""; then
5162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5164 for depmode in $am_compiler_list; do
5165 # Setup a source with many dependencies, because some compilers
5166 # like to wrap large dependency lists on column 80 (with \), and
5167 # we should not choose a depcomp mode which is confused by this.
5169 # We need to recreate these files for each test, as the compiler may
5170 # overwrite some of them when testing with obscure command lines.
5171 # This happens at least with the AIX C compiler.
5172 : > sub/conftest.c
5173 for i in 1 2 3 4 5 6; do
5174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5176 # Solaris 8's {/usr,}/bin/sh.
5177 touch sub/conftst$i.h
5178 done
5179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5181 case $depmode in
5182 nosideeffect)
5183 # after this tag, mechanisms are not by side-effect, so they'll
5184 # only be used when explicitly requested
5185 if test "x$enable_dependency_tracking" = xyes; then
5186 continue
5187 else
5188 break
5191 none) break ;;
5192 esac
5193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5194 # mode. It turns out that the SunPro C++ compiler does not properly
5195 # handle `-M -o', and we need to detect this.
5196 if depmode=$depmode \
5197 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5198 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5199 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5200 >/dev/null 2>conftest.err &&
5201 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5202 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5203 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5204 # icc doesn't choke on unknown options, it will just issue warnings
5205 # or remarks (even with -Werror). So we grep stderr for any message
5206 # that says an option was ignored or not supported.
5207 # When given -MP, icc 7.0 and 7.1 complain thusly:
5208 # icc: Command line warning: ignoring option '-M'; no argument required
5209 # The diagnosis changed in icc 8.0:
5210 # icc: Command line remark: option '-MP' not supported
5211 if (grep 'ignoring option' conftest.err ||
5212 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5213 am_cv_CC_dependencies_compiler_type=$depmode
5214 break
5217 done
5219 cd ..
5220 rm -rf conftest.dir
5221 else
5222 am_cv_CC_dependencies_compiler_type=none
5226 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5227 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5228 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5233 test "x$enable_dependency_tracking" != xno \
5234 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5235 am__fastdepCC_TRUE=
5236 am__fastdepCC_FALSE='#'
5237 else
5238 am__fastdepCC_TRUE='#'
5239 am__fastdepCC_FALSE=
5243 ac_ext=cpp
5244 ac_cpp='$CXXCPP $CPPFLAGS'
5245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5248 if test -z "$CXX"; then
5249 if test -n "$CCC"; then
5250 CXX=$CCC
5251 else
5252 if test -n "$ac_tool_prefix"; then
5253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5259 if test "${ac_cv_prog_CXX+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 if test -n "$CXX"; then
5263 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 CXX=$ac_cv_prog_CXX
5283 if test -n "$CXX"; then
5284 { echo "$as_me:$LINENO: result: $CXX" >&5
5285 echo "${ECHO_T}$CXX" >&6; }
5286 else
5287 { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5292 test -n "$CXX" && break
5293 done
5295 if test -z "$CXX"; then
5296 ac_ct_CXX=$CXX
5297 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5299 # Extract the first word of "$ac_prog", so it can be a program name with args.
5300 set dummy $ac_prog; ac_word=$2
5301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5303 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 if test -n "$ac_ct_CXX"; then
5307 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_ac_ct_CXX="$ac_prog"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5326 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5327 if test -n "$ac_ct_CXX"; then
5328 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5329 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5330 else
5331 { echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6; }
5336 test -n "$ac_ct_CXX" && break
5337 done
5339 if test "x$ac_ct_CXX" = x; then
5340 CXX="g++"
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343 yes:)
5344 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5345 whose name does not start with the host triplet. If you think this
5346 configuration is useful to you, please write to autoconf@gnu.org." >&5
5347 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5348 whose name does not start with the host triplet. If you think this
5349 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5350 ac_tool_warned=yes ;;
5351 esac
5352 CXX=$ac_ct_CXX
5358 # Provide some information about the compiler.
5359 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5360 ac_compiler=`set X $ac_compile; echo $2`
5361 { (ac_try="$ac_compiler --version >&5"
5362 case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365 esac
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_compiler --version >&5") 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }
5371 { (ac_try="$ac_compiler -v >&5"
5372 case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compiler -v >&5") 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }
5381 { (ac_try="$ac_compiler -V >&5"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compiler -V >&5") 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }
5392 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5393 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5394 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397 cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h. */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5405 main ()
5407 #ifndef __GNUC__
5408 choke me
5409 #endif
5412 return 0;
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && {
5429 test -z "$ac_cxx_werror_flag" ||
5430 test ! -s conftest.err
5431 } && test -s conftest.$ac_objext; then
5432 ac_compiler_gnu=yes
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 ac_compiler_gnu=no
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5444 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5445 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5446 GXX=`test $ac_compiler_gnu = yes && echo yes`
5447 ac_test_CXXFLAGS=${CXXFLAGS+set}
5448 ac_save_CXXFLAGS=$CXXFLAGS
5449 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5450 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5451 if test "${ac_cv_prog_cxx_g+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5455 ac_cxx_werror_flag=yes
5456 ac_cv_prog_cxx_g=no
5457 CXXFLAGS="-g"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5466 main ()
5470 return 0;
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_cxx_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 ac_cv_prog_cxx_g=yes
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495 CXXFLAGS=""
5496 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5504 main ()
5508 return 0;
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_cxx_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5534 CXXFLAGS="-g"
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5543 main ()
5547 return 0;
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && {
5564 test -z "$ac_cxx_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
5567 ac_cv_prog_cxx_g=yes
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5585 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5586 if test "$ac_test_CXXFLAGS" = set; then
5587 CXXFLAGS=$ac_save_CXXFLAGS
5588 elif test $ac_cv_prog_cxx_g = yes; then
5589 if test "$GXX" = yes; then
5590 CXXFLAGS="-g -O2"
5591 else
5592 CXXFLAGS="-g"
5594 else
5595 if test "$GXX" = yes; then
5596 CXXFLAGS="-O2"
5597 else
5598 CXXFLAGS=
5601 ac_ext=c
5602 ac_cpp='$CPP $CPPFLAGS'
5603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607 depcc="$CXX" am_compiler_list=
5609 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5610 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5611 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5615 # We make a subdir and do the tests there. Otherwise we can end up
5616 # making bogus files that we don't know about and never remove. For
5617 # instance it was reported that on HP-UX the gcc test will end up
5618 # making a dummy file named `D' -- because `-MD' means `put the output
5619 # in D'.
5620 mkdir conftest.dir
5621 # Copy depcomp to subdir because otherwise we won't find it if we're
5622 # using a relative directory.
5623 cp "$am_depcomp" conftest.dir
5624 cd conftest.dir
5625 # We will build objects and dependencies in a subdirectory because
5626 # it helps to detect inapplicable dependency modes. For instance
5627 # both Tru64's cc and ICC support -MD to output dependencies as a
5628 # side effect of compilation, but ICC will put the dependencies in
5629 # the current directory while Tru64 will put them in the object
5630 # directory.
5631 mkdir sub
5633 am_cv_CXX_dependencies_compiler_type=none
5634 if test "$am_compiler_list" = ""; then
5635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5637 for depmode in $am_compiler_list; do
5638 # Setup a source with many dependencies, because some compilers
5639 # like to wrap large dependency lists on column 80 (with \), and
5640 # we should not choose a depcomp mode which is confused by this.
5642 # We need to recreate these files for each test, as the compiler may
5643 # overwrite some of them when testing with obscure command lines.
5644 # This happens at least with the AIX C compiler.
5645 : > sub/conftest.c
5646 for i in 1 2 3 4 5 6; do
5647 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5648 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5649 # Solaris 8's {/usr,}/bin/sh.
5650 touch sub/conftst$i.h
5651 done
5652 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5654 case $depmode in
5655 nosideeffect)
5656 # after this tag, mechanisms are not by side-effect, so they'll
5657 # only be used when explicitly requested
5658 if test "x$enable_dependency_tracking" = xyes; then
5659 continue
5660 else
5661 break
5664 none) break ;;
5665 esac
5666 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5667 # mode. It turns out that the SunPro C++ compiler does not properly
5668 # handle `-M -o', and we need to detect this.
5669 if depmode=$depmode \
5670 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5672 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5673 >/dev/null 2>conftest.err &&
5674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5675 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5677 # icc doesn't choke on unknown options, it will just issue warnings
5678 # or remarks (even with -Werror). So we grep stderr for any message
5679 # that says an option was ignored or not supported.
5680 # When given -MP, icc 7.0 and 7.1 complain thusly:
5681 # icc: Command line warning: ignoring option '-M'; no argument required
5682 # The diagnosis changed in icc 8.0:
5683 # icc: Command line remark: option '-MP' not supported
5684 if (grep 'ignoring option' conftest.err ||
5685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5686 am_cv_CXX_dependencies_compiler_type=$depmode
5687 break
5690 done
5692 cd ..
5693 rm -rf conftest.dir
5694 else
5695 am_cv_CXX_dependencies_compiler_type=none
5699 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5700 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5701 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5706 test "x$enable_dependency_tracking" != xno \
5707 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5708 am__fastdepCXX_TRUE=
5709 am__fastdepCXX_FALSE='#'
5710 else
5711 am__fastdepCXX_TRUE='#'
5712 am__fastdepCXX_FALSE=
5716 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5718 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5719 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 cat >conftest.make <<\_ACEOF
5723 SHELL = /bin/sh
5724 all:
5725 @echo '@@@%%%=$(MAKE)=@@@%%%'
5726 _ACEOF
5727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5729 *@@@%%%=?*=@@@%%%*)
5730 eval ac_cv_prog_make_${ac_make}_set=yes;;
5732 eval ac_cv_prog_make_${ac_make}_set=no;;
5733 esac
5734 rm -f conftest.make
5736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5737 { echo "$as_me:$LINENO: result: yes" >&5
5738 echo "${ECHO_T}yes" >&6; }
5739 SET_MAKE=
5740 else
5741 { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5743 SET_MAKE="MAKE=${MAKE-make}"
5746 # Check whether --enable-shared was given.
5747 if test "${enable_shared+set}" = set; then
5748 enableval=$enable_shared; p=${PACKAGE-default}
5749 case $enableval in
5750 yes) enable_shared=yes ;;
5751 no) enable_shared=no ;;
5753 enable_shared=no
5754 # Look at the argument we got. We use all the common list separators.
5755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5756 for pkg in $enableval; do
5757 IFS="$lt_save_ifs"
5758 if test "X$pkg" = "X$p"; then
5759 enable_shared=yes
5761 done
5762 IFS="$lt_save_ifs"
5764 esac
5765 else
5766 enable_shared=yes
5770 # Check whether --enable-static was given.
5771 if test "${enable_static+set}" = set; then
5772 enableval=$enable_static; p=${PACKAGE-default}
5773 case $enableval in
5774 yes) enable_static=yes ;;
5775 no) enable_static=no ;;
5777 enable_static=no
5778 # Look at the argument we got. We use all the common list separators.
5779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5780 for pkg in $enableval; do
5781 IFS="$lt_save_ifs"
5782 if test "X$pkg" = "X$p"; then
5783 enable_static=yes
5785 done
5786 IFS="$lt_save_ifs"
5788 esac
5789 else
5790 enable_static=yes
5794 # Check whether --enable-fast-install was given.
5795 if test "${enable_fast_install+set}" = set; then
5796 enableval=$enable_fast_install; p=${PACKAGE-default}
5797 case $enableval in
5798 yes) enable_fast_install=yes ;;
5799 no) enable_fast_install=no ;;
5801 enable_fast_install=no
5802 # Look at the argument we got. We use all the common list separators.
5803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5804 for pkg in $enableval; do
5805 IFS="$lt_save_ifs"
5806 if test "X$pkg" = "X$p"; then
5807 enable_fast_install=yes
5809 done
5810 IFS="$lt_save_ifs"
5812 esac
5813 else
5814 enable_fast_install=yes
5818 # Make sure we can run config.sub.
5819 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5820 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5821 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5822 { (exit 1); exit 1; }; }
5824 { echo "$as_me:$LINENO: checking build system type" >&5
5825 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5826 if test "${ac_cv_build+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829 ac_build_alias=$build_alias
5830 test "x$ac_build_alias" = x &&
5831 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5832 test "x$ac_build_alias" = x &&
5833 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5834 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5835 { (exit 1); exit 1; }; }
5836 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5837 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5838 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5839 { (exit 1); exit 1; }; }
5842 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5843 echo "${ECHO_T}$ac_cv_build" >&6; }
5844 case $ac_cv_build in
5845 *-*-*) ;;
5846 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5847 echo "$as_me: error: invalid value of canonical build" >&2;}
5848 { (exit 1); exit 1; }; };;
5849 esac
5850 build=$ac_cv_build
5851 ac_save_IFS=$IFS; IFS='-'
5852 set x $ac_cv_build
5853 shift
5854 build_cpu=$1
5855 build_vendor=$2
5856 shift; shift
5857 # Remember, the first character of IFS is used to create $*,
5858 # except with old shells:
5859 build_os=$*
5860 IFS=$ac_save_IFS
5861 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5864 { echo "$as_me:$LINENO: checking host system type" >&5
5865 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5866 if test "${ac_cv_host+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 if test "x$host_alias" = x; then
5870 ac_cv_host=$ac_cv_build
5871 else
5872 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5873 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5874 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5875 { (exit 1); exit 1; }; }
5879 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5880 echo "${ECHO_T}$ac_cv_host" >&6; }
5881 case $ac_cv_host in
5882 *-*-*) ;;
5883 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5884 echo "$as_me: error: invalid value of canonical host" >&2;}
5885 { (exit 1); exit 1; }; };;
5886 esac
5887 host=$ac_cv_host
5888 ac_save_IFS=$IFS; IFS='-'
5889 set x $ac_cv_host
5890 shift
5891 host_cpu=$1
5892 host_vendor=$2
5893 shift; shift
5894 # Remember, the first character of IFS is used to create $*,
5895 # except with old shells:
5896 host_os=$*
5897 IFS=$ac_save_IFS
5898 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5901 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5902 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5903 if test "${lt_cv_path_SED+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 # Loop through the user's path and test for sed and gsed.
5907 # Then use that list of sed's as ones to test for truncation.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for lt_ac_prog in sed gsed; do
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5916 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5918 done
5919 done
5920 done
5921 IFS=$as_save_IFS
5922 lt_ac_max=0
5923 lt_ac_count=0
5924 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5925 # along with /bin/sed that truncates output.
5926 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5927 test ! -f $lt_ac_sed && continue
5928 cat /dev/null > conftest.in
5929 lt_ac_count=0
5930 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5931 # Check for GNU sed and select it if it is found.
5932 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5933 lt_cv_path_SED=$lt_ac_sed
5934 break
5936 while true; do
5937 cat conftest.in conftest.in >conftest.tmp
5938 mv conftest.tmp conftest.in
5939 cp conftest.in conftest.nl
5940 echo >>conftest.nl
5941 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5942 cmp -s conftest.out conftest.nl || break
5943 # 10000 chars as input seems more than enough
5944 test $lt_ac_count -gt 10 && break
5945 lt_ac_count=`expr $lt_ac_count + 1`
5946 if test $lt_ac_count -gt $lt_ac_max; then
5947 lt_ac_max=$lt_ac_count
5948 lt_cv_path_SED=$lt_ac_sed
5950 done
5951 done
5955 SED=$lt_cv_path_SED
5957 { echo "$as_me:$LINENO: result: $SED" >&5
5958 echo "${ECHO_T}$SED" >&6; }
5961 # Check whether --with-gnu-ld was given.
5962 if test "${with_gnu_ld+set}" = set; then
5963 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5964 else
5965 with_gnu_ld=no
5968 ac_prog=ld
5969 if test "$GCC" = yes; then
5970 # Check if gcc -print-prog-name=ld gives a path.
5971 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5972 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5973 case $host in
5974 *-*-mingw*)
5975 # gcc leaves a trailing carriage return which upsets mingw
5976 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5978 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5979 esac
5980 case $ac_prog in
5981 # Accept absolute paths.
5982 [\\/]* | ?:[\\/]*)
5983 re_direlt='/[^/][^/]*/\.\./'
5984 # Canonicalize the pathname of ld
5985 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5986 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5987 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5988 done
5989 test -z "$LD" && LD="$ac_prog"
5992 # If it fails, then pretend we aren't using GCC.
5993 ac_prog=ld
5996 # If it is relative, then search for the first ld in PATH.
5997 with_gnu_ld=unknown
5999 esac
6000 elif test "$with_gnu_ld" = yes; then
6001 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6002 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6003 else
6004 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6005 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6007 if test "${lt_cv_path_LD+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010 if test -z "$LD"; then
6011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6012 for ac_dir in $PATH; do
6013 IFS="$lt_save_ifs"
6014 test -z "$ac_dir" && ac_dir=.
6015 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6016 lt_cv_path_LD="$ac_dir/$ac_prog"
6017 # Check to see if the program is GNU ld. I'd rather use --version,
6018 # but apparently some variants of GNU ld only accept -v.
6019 # Break only if it was the GNU/non-GNU ld that we prefer.
6020 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6021 *GNU* | *'with BFD'*)
6022 test "$with_gnu_ld" != no && break
6025 test "$with_gnu_ld" != yes && break
6027 esac
6029 done
6030 IFS="$lt_save_ifs"
6031 else
6032 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6036 LD="$lt_cv_path_LD"
6037 if test -n "$LD"; then
6038 { echo "$as_me:$LINENO: result: $LD" >&5
6039 echo "${ECHO_T}$LD" >&6; }
6040 else
6041 { echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6; }
6044 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6045 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6046 { (exit 1); exit 1; }; }
6047 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6048 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6049 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6053 case `$LD -v 2>&1 </dev/null` in
6054 *GNU* | *'with BFD'*)
6055 lt_cv_prog_gnu_ld=yes
6058 lt_cv_prog_gnu_ld=no
6060 esac
6062 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6063 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6064 with_gnu_ld=$lt_cv_prog_gnu_ld
6067 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6068 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6069 if test "${lt_cv_ld_reload_flag+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 lt_cv_ld_reload_flag='-r'
6074 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6075 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6076 reload_flag=$lt_cv_ld_reload_flag
6077 case $reload_flag in
6078 "" | " "*) ;;
6079 *) reload_flag=" $reload_flag" ;;
6080 esac
6081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6082 case $host_os in
6083 darwin*)
6084 if test "$GCC" = yes; then
6085 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6086 else
6087 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6090 esac
6092 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6093 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6094 if test "${lt_cv_path_NM+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 if test -n "$NM"; then
6098 # Let the user override the test.
6099 lt_cv_path_NM="$NM"
6100 else
6101 lt_nm_to_check="${ac_tool_prefix}nm"
6102 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6103 lt_nm_to_check="$lt_nm_to_check nm"
6105 for lt_tmp_nm in $lt_nm_to_check; do
6106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6107 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6108 IFS="$lt_save_ifs"
6109 test -z "$ac_dir" && ac_dir=.
6110 tmp_nm="$ac_dir/$lt_tmp_nm"
6111 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6112 # Check to see if the nm accepts a BSD-compat flag.
6113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6114 # nm: unknown option "B" ignored
6115 # Tru64's nm complains that /dev/null is an invalid object file
6116 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6117 */dev/null* | *'Invalid file or object type'*)
6118 lt_cv_path_NM="$tmp_nm -B"
6119 break
6122 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6123 */dev/null*)
6124 lt_cv_path_NM="$tmp_nm -p"
6125 break
6128 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6129 continue # so that we can try to find one that supports BSD flags
6131 esac
6133 esac
6135 done
6136 IFS="$lt_save_ifs"
6137 done
6138 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6141 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6142 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6143 NM="$lt_cv_path_NM"
6145 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6146 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6147 LN_S=$as_ln_s
6148 if test "$LN_S" = "ln -s"; then
6149 { echo "$as_me:$LINENO: result: yes" >&5
6150 echo "${ECHO_T}yes" >&6; }
6151 else
6152 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6153 echo "${ECHO_T}no, using $LN_S" >&6; }
6156 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6157 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6158 if test "${lt_cv_deplibs_check_method+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 lt_cv_file_magic_cmd='$MAGIC_CMD'
6162 lt_cv_file_magic_test_file=
6163 lt_cv_deplibs_check_method='unknown'
6164 # Need to set the preceding variable on all platforms that support
6165 # interlibrary dependencies.
6166 # 'none' -- dependencies not supported.
6167 # `unknown' -- same as none, but documents that we really don't know.
6168 # 'pass_all' -- all dependencies passed with no checks.
6169 # 'test_compile' -- check by making test program.
6170 # 'file_magic [[regex]]' -- check by looking for files in library path
6171 # which responds to the $file_magic_cmd with a given extended regex.
6172 # If you have `file' or equivalent on your system and you're not sure
6173 # whether `pass_all' will *always* work, you probably want this one.
6175 case $host_os in
6176 aix[4-9]*)
6177 lt_cv_deplibs_check_method=pass_all
6180 beos*)
6181 lt_cv_deplibs_check_method=pass_all
6184 bsdi[45]*)
6185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6186 lt_cv_file_magic_cmd='/usr/bin/file -L'
6187 lt_cv_file_magic_test_file=/shlib/libc.so
6190 cygwin*)
6191 # func_win32_libid is a shell function defined in ltmain.sh
6192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6193 lt_cv_file_magic_cmd='func_win32_libid'
6196 mingw* | pw32*)
6197 # Base MSYS/MinGW do not provide the 'file' command needed by
6198 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6199 # unless we find 'file', for example because we are cross-compiling.
6200 if ( file / ) >/dev/null 2>&1; then
6201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6202 lt_cv_file_magic_cmd='func_win32_libid'
6203 else
6204 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6205 lt_cv_file_magic_cmd='$OBJDUMP -f'
6209 darwin* | rhapsody*)
6210 lt_cv_deplibs_check_method=pass_all
6213 freebsd* | dragonfly*)
6214 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6215 case $host_cpu in
6216 i*86 )
6217 # Not sure whether the presence of OpenBSD here was a mistake.
6218 # Let's accept both of them until this is cleared up.
6219 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6220 lt_cv_file_magic_cmd=/usr/bin/file
6221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6223 esac
6224 else
6225 lt_cv_deplibs_check_method=pass_all
6229 gnu*)
6230 lt_cv_deplibs_check_method=pass_all
6233 hpux10.20* | hpux11*)
6234 lt_cv_file_magic_cmd=/usr/bin/file
6235 case $host_cpu in
6236 ia64*)
6237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6238 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6240 hppa*64*)
6241 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]'
6242 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6246 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6248 esac
6251 interix[3-9]*)
6252 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6256 irix5* | irix6* | nonstopux*)
6257 case $LD in
6258 *-32|*"-32 ") libmagic=32-bit;;
6259 *-n32|*"-n32 ") libmagic=N32;;
6260 *-64|*"-64 ") libmagic=64-bit;;
6261 *) libmagic=never-match;;
6262 esac
6263 lt_cv_deplibs_check_method=pass_all
6266 # This must be Linux ELF.
6267 linux* | k*bsd*-gnu)
6268 lt_cv_deplibs_check_method=pass_all
6271 netbsd* | netbsdelf*-gnu)
6272 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6274 else
6275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6279 newos6*)
6280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6281 lt_cv_file_magic_cmd=/usr/bin/file
6282 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6285 nto-qnx*)
6286 lt_cv_deplibs_check_method=unknown
6289 openbsd*)
6290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6292 else
6293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6297 osf3* | osf4* | osf5*)
6298 lt_cv_deplibs_check_method=pass_all
6301 rdos*)
6302 lt_cv_deplibs_check_method=pass_all
6305 solaris*)
6306 lt_cv_deplibs_check_method=pass_all
6309 sysv4 | sysv4.3*)
6310 case $host_vendor in
6311 motorola)
6312 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]'
6313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6315 ncr)
6316 lt_cv_deplibs_check_method=pass_all
6318 sequent)
6319 lt_cv_file_magic_cmd='/bin/file'
6320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6322 sni)
6323 lt_cv_file_magic_cmd='/bin/file'
6324 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6325 lt_cv_file_magic_test_file=/lib/libc.so
6327 siemens)
6328 lt_cv_deplibs_check_method=pass_all
6331 lt_cv_deplibs_check_method=pass_all
6333 esac
6336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6337 lt_cv_deplibs_check_method=pass_all
6339 esac
6342 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6343 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6344 file_magic_cmd=$lt_cv_file_magic_cmd
6345 deplibs_check_method=$lt_cv_deplibs_check_method
6346 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6351 # If no C compiler was specified, use CC.
6352 LTCC=${LTCC-"$CC"}
6354 # If no C compiler flags were specified, use CFLAGS.
6355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6357 # Allow CC to be a program name with arguments.
6358 compiler=$CC
6360 # Check whether --enable-libtool-lock was given.
6361 if test "${enable_libtool_lock+set}" = set; then
6362 enableval=$enable_libtool_lock;
6365 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6367 # Some flags need to be propagated to the compiler or linker for good
6368 # libtool support.
6369 case $host in
6370 ia64-*-hpux*)
6371 # Find out which ABI we are using.
6372 echo 'int i;' > conftest.$ac_ext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374 (eval $ac_compile) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; then
6378 case `/usr/bin/file conftest.$ac_objext` in
6379 *ELF-32*)
6380 HPUX_IA64_MODE="32"
6382 *ELF-64*)
6383 HPUX_IA64_MODE="64"
6385 esac
6387 rm -rf conftest*
6389 *-*-irix6*)
6390 # Find out which ABI we are using.
6391 echo '#line 6391 "configure"' > conftest.$ac_ext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; then
6397 if test "$lt_cv_prog_gnu_ld" = yes; then
6398 case `/usr/bin/file conftest.$ac_objext` in
6399 *32-bit*)
6400 LD="${LD-ld} -melf32bsmip"
6402 *N32*)
6403 LD="${LD-ld} -melf32bmipn32"
6405 *64-bit*)
6406 LD="${LD-ld} -melf64bmip"
6408 esac
6409 else
6410 case `/usr/bin/file conftest.$ac_objext` in
6411 *32-bit*)
6412 LD="${LD-ld} -32"
6414 *N32*)
6415 LD="${LD-ld} -n32"
6417 *64-bit*)
6418 LD="${LD-ld} -64"
6420 esac
6423 rm -rf conftest*
6426 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6427 s390*-*linux*|sparc*-*linux*)
6428 # Find out which ABI we are using.
6429 echo 'int i;' > conftest.$ac_ext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; then
6435 case `/usr/bin/file conftest.o` in
6436 *32-bit*)
6437 case $host in
6438 x86_64-*kfreebsd*-gnu)
6439 LD="${LD-ld} -m elf_i386_fbsd"
6441 x86_64-*linux*)
6442 LD="${LD-ld} -m elf_i386"
6444 ppc64-*linux*|powerpc64-*linux*)
6445 LD="${LD-ld} -m elf32ppclinux"
6447 s390x-*linux*)
6448 LD="${LD-ld} -m elf_s390"
6450 sparc64-*linux*)
6451 LD="${LD-ld} -m elf32_sparc"
6453 esac
6455 *64-bit*)
6456 case $host in
6457 x86_64-*kfreebsd*-gnu)
6458 LD="${LD-ld} -m elf_x86_64_fbsd"
6460 x86_64-*linux*)
6461 LD="${LD-ld} -m elf_x86_64"
6463 ppc*-*linux*|powerpc*-*linux*)
6464 LD="${LD-ld} -m elf64ppc"
6466 s390*-*linux*)
6467 LD="${LD-ld} -m elf64_s390"
6469 sparc*-*linux*)
6470 LD="${LD-ld} -m elf64_sparc"
6472 esac
6474 esac
6476 rm -rf conftest*
6479 *-*-sco3.2v5*)
6480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6481 SAVE_CFLAGS="$CFLAGS"
6482 CFLAGS="$CFLAGS -belf"
6483 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6484 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6485 if test "${lt_cv_cc_needs_belf+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488 ac_ext=c
6489 ac_cpp='$CPP $CPPFLAGS'
6490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6502 main ()
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (ac_try="$ac_link"
6511 case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_link") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest$ac_exeext &&
6526 $as_test_x conftest$ac_exeext; then
6527 lt_cv_cc_needs_belf=yes
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 lt_cv_cc_needs_belf=no
6535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6536 conftest$ac_exeext conftest.$ac_ext
6537 ac_ext=c
6538 ac_cpp='$CPP $CPPFLAGS'
6539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6545 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6546 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6548 CFLAGS="$SAVE_CFLAGS"
6551 sparc*-*solaris*)
6552 # Find out which ABI we are using.
6553 echo 'int i;' > conftest.$ac_ext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; then
6559 case `/usr/bin/file conftest.o` in
6560 *64-bit*)
6561 case $lt_cv_prog_gnu_ld in
6562 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6564 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6565 LD="${LD-ld} -64"
6568 esac
6570 esac
6572 rm -rf conftest*
6576 esac
6578 need_locks="$enable_libtool_lock"
6582 for ac_header in dlfcn.h
6584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_res=`eval echo '${'$as_ac_Header'}'`
6592 { echo "$as_me:$LINENO: result: $ac_res" >&5
6593 echo "${ECHO_T}$ac_res" >&6; }
6594 else
6595 # Is the header compilable?
6596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 $ac_includes_default
6605 #include <$ac_header>
6606 _ACEOF
6607 rm -f conftest.$ac_objext
6608 if { (ac_try="$ac_compile"
6609 case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_compile") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest.$ac_objext; then
6624 ac_header_compiler=yes
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 ac_header_compiler=no
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6634 echo "${ECHO_T}$ac_header_compiler" >&6; }
6636 # Is the header present?
6637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <$ac_header>
6646 _ACEOF
6647 if { (ac_try="$ac_cpp conftest.$ac_ext"
6648 case "(($ac_try" in
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6651 esac
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } >/dev/null && {
6660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 }; then
6663 ac_header_preproc=yes
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 ac_header_preproc=no
6671 rm -f conftest.err conftest.$ac_ext
6672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6673 echo "${ECHO_T}$ac_header_preproc" >&6; }
6675 # So? What about this header?
6676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6677 yes:no: )
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6682 ac_header_preproc=yes
6684 no:yes:* )
6685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6697 ( cat <<\_ASBOX
6698 ## ------------------------------------------------ ##
6699 ## Report this to barry-devel@lists.sourceforge.net ##
6700 ## ------------------------------------------------ ##
6701 _ASBOX
6702 ) | sed "s/^/$as_me: WARNING: /" >&2
6704 esac
6705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 eval "$as_ac_Header=\$ac_header_preproc"
6712 ac_res=`eval echo '${'$as_ac_Header'}'`
6713 { echo "$as_me:$LINENO: result: $ac_res" >&5
6714 echo "${ECHO_T}$ac_res" >&6; }
6717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6718 cat >>confdefs.h <<_ACEOF
6719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6720 _ACEOF
6724 done
6728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6730 (test "X$CXX" != "Xg++"))) ; then
6731 ac_ext=cpp
6732 ac_cpp='$CXXCPP $CPPFLAGS'
6733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6736 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6737 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6738 if test -z "$CXXCPP"; then
6739 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 # Double quotes because CXXCPP needs to be expanded
6743 for CXXCPP in "$CXX -E" "/lib/cpp"
6745 ac_preproc_ok=false
6746 for ac_cxx_preproc_warn_flag in '' yes
6748 # Use a header file that comes with gcc, so configuring glibc
6749 # with a fresh cross-compiler works.
6750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6751 # <limits.h> exists even on freestanding compilers.
6752 # On the NeXT, cc -E runs the code through the compiler's parser,
6753 # not just through cpp. "Syntax error" is here to catch this case.
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #ifdef __STDC__
6761 # include <limits.h>
6762 #else
6763 # include <assert.h>
6764 #endif
6765 Syntax error
6766 _ACEOF
6767 if { (ac_try="$ac_cpp conftest.$ac_ext"
6768 case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } >/dev/null && {
6780 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6781 test ! -s conftest.err
6782 }; then
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 # Broken: fails on valid input.
6789 continue
6792 rm -f conftest.err conftest.$ac_ext
6794 # OK, works on sane cases. Now check whether nonexistent headers
6795 # can be detected and how.
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <ac_nonexistent.h>
6803 _ACEOF
6804 if { (ac_try="$ac_cpp conftest.$ac_ext"
6805 case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808 esac
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev/null && {
6817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6818 test ! -s conftest.err
6819 }; then
6820 # Broken: success on invalid input.
6821 continue
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 # Passes both tests.
6827 ac_preproc_ok=:
6828 break
6831 rm -f conftest.err conftest.$ac_ext
6833 done
6834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6835 rm -f conftest.err conftest.$ac_ext
6836 if $ac_preproc_ok; then
6837 break
6840 done
6841 ac_cv_prog_CXXCPP=$CXXCPP
6844 CXXCPP=$ac_cv_prog_CXXCPP
6845 else
6846 ac_cv_prog_CXXCPP=$CXXCPP
6848 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6849 echo "${ECHO_T}$CXXCPP" >&6; }
6850 ac_preproc_ok=false
6851 for ac_cxx_preproc_warn_flag in '' yes
6853 # Use a header file that comes with gcc, so configuring glibc
6854 # with a fresh cross-compiler works.
6855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856 # <limits.h> exists even on freestanding compilers.
6857 # On the NeXT, cc -E runs the code through the compiler's parser,
6858 # not just through cpp. "Syntax error" is here to catch this case.
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 #ifdef __STDC__
6866 # include <limits.h>
6867 #else
6868 # include <assert.h>
6869 #endif
6870 Syntax error
6871 _ACEOF
6872 if { (ac_try="$ac_cpp conftest.$ac_ext"
6873 case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876 esac
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } >/dev/null && {
6885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6886 test ! -s conftest.err
6887 }; then
6889 else
6890 echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6893 # Broken: fails on valid input.
6894 continue
6897 rm -f conftest.err conftest.$ac_ext
6899 # OK, works on sane cases. Now check whether nonexistent headers
6900 # can be detected and how.
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h. */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <ac_nonexistent.h>
6908 _ACEOF
6909 if { (ac_try="$ac_cpp conftest.$ac_ext"
6910 case "(($ac_try" in
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null && {
6922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6923 test ! -s conftest.err
6924 }; then
6925 # Broken: success on invalid input.
6926 continue
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 # Passes both tests.
6932 ac_preproc_ok=:
6933 break
6936 rm -f conftest.err conftest.$ac_ext
6938 done
6939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940 rm -f conftest.err conftest.$ac_ext
6941 if $ac_preproc_ok; then
6943 else
6944 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6945 See \`config.log' for more details." >&5
6946 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6947 See \`config.log' for more details." >&2;}
6948 { (exit 1); exit 1; }; }
6951 ac_ext=cpp
6952 ac_cpp='$CXXCPP $CPPFLAGS'
6953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960 ac_ext=f
6961 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6962 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6964 if test -n "$ac_tool_prefix"; then
6965 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
6967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_prog_F77+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 if test -n "$F77"; then
6975 ac_cv_prog_F77="$F77" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6988 done
6989 done
6990 IFS=$as_save_IFS
6994 F77=$ac_cv_prog_F77
6995 if test -n "$F77"; then
6996 { echo "$as_me:$LINENO: result: $F77" >&5
6997 echo "${ECHO_T}$F77" >&6; }
6998 else
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7004 test -n "$F77" && break
7005 done
7007 if test -z "$F77"; then
7008 ac_ct_F77=$F77
7009 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
7011 # Extract the first word of "$ac_prog", so it can be a program name with args.
7012 set dummy $ac_prog; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 if test -n "$ac_ct_F77"; then
7019 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_ac_ct_F77="$ac_prog"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7032 done
7033 done
7034 IFS=$as_save_IFS
7038 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7039 if test -n "$ac_ct_F77"; then
7040 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7041 echo "${ECHO_T}$ac_ct_F77" >&6; }
7042 else
7043 { echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6; }
7048 test -n "$ac_ct_F77" && break
7049 done
7051 if test "x$ac_ct_F77" = x; then
7052 F77=""
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7057 whose name does not start with the host triplet. If you think this
7058 configuration is useful to you, please write to autoconf@gnu.org." >&5
7059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7060 whose name does not start with the host triplet. If you think this
7061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7062 ac_tool_warned=yes ;;
7063 esac
7064 F77=$ac_ct_F77
7069 # Provide some information about the compiler.
7070 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7071 ac_compiler=`set X $ac_compile; echo $2`
7072 { (ac_try="$ac_compiler --version >&5"
7073 case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076 esac
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compiler --version >&5") 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }
7082 { (ac_try="$ac_compiler -v >&5"
7083 case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086 esac
7087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088 (eval "$ac_compiler -v >&5") 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }
7092 { (ac_try="$ac_compiler -V >&5"
7093 case "(($ac_try" in
7094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095 *) ac_try_echo=$ac_try;;
7096 esac
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098 (eval "$ac_compiler -V >&5") 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }
7102 rm -f a.out
7104 # If we don't use `.F' as extension, the preprocessor is not run on the
7105 # input file. (Note that this only needs to work for GNU compilers.)
7106 ac_save_ext=$ac_ext
7107 ac_ext=F
7108 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7109 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7110 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 program main
7115 #ifndef __GNUC__
7116 choke me
7117 #endif
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (ac_try="$ac_compile"
7123 case "(($ac_try" in
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7126 esac
7127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_f77_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_compiler_gnu=yes
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_compiler_gnu=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7150 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7151 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7152 ac_ext=$ac_save_ext
7153 ac_test_FFLAGS=${FFLAGS+set}
7154 ac_save_FFLAGS=$FFLAGS
7155 FFLAGS=
7156 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7157 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7158 if test "${ac_cv_prog_f77_g+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161 FFLAGS=-g
7162 cat >conftest.$ac_ext <<_ACEOF
7163 program main
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (ac_try="$ac_compile"
7169 case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_compile") 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_f77_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest.$ac_objext; then
7184 ac_cv_prog_f77_g=yes
7185 else
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7189 ac_cv_prog_f77_g=no
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7196 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7197 if test "$ac_test_FFLAGS" = set; then
7198 FFLAGS=$ac_save_FFLAGS
7199 elif test $ac_cv_prog_f77_g = yes; then
7200 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7201 FFLAGS="-g -O2"
7202 else
7203 FFLAGS="-g"
7205 else
7206 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7207 FFLAGS="-O2"
7208 else
7209 FFLAGS=
7213 G77=`test $ac_compiler_gnu = yes && echo yes`
7214 ac_ext=c
7215 ac_cpp='$CPP $CPPFLAGS'
7216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7223 # find the maximum length of command line arguments
7224 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7225 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7226 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7230 teststring="ABCD"
7232 case $build_os in
7233 msdosdjgpp*)
7234 # On DJGPP, this test can blow up pretty badly due to problems in libc
7235 # (any single argument exceeding 2000 bytes causes a buffer overrun
7236 # during glob expansion). Even if it were fixed, the result of this
7237 # check would be larger than it should be.
7238 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7241 gnu*)
7242 # Under GNU Hurd, this test is not required because there is
7243 # no limit to the length of command line arguments.
7244 # Libtool will interpret -1 as no limit whatsoever
7245 lt_cv_sys_max_cmd_len=-1;
7248 cygwin* | mingw*)
7249 # On Win9x/ME, this test blows up -- it succeeds, but takes
7250 # about 5 minutes as the teststring grows exponentially.
7251 # Worse, since 9x/ME are not pre-emptively multitasking,
7252 # you end up with a "frozen" computer, even though with patience
7253 # the test eventually succeeds (with a max line length of 256k).
7254 # Instead, let's just punt: use the minimum linelength reported by
7255 # all of the supported platforms: 8192 (on NT/2K/XP).
7256 lt_cv_sys_max_cmd_len=8192;
7259 amigaos*)
7260 # On AmigaOS with pdksh, this test takes hours, literally.
7261 # So we just punt and use a minimum line length of 8192.
7262 lt_cv_sys_max_cmd_len=8192;
7265 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7266 # This has been around since 386BSD, at least. Likely further.
7267 if test -x /sbin/sysctl; then
7268 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7269 elif test -x /usr/sbin/sysctl; then
7270 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7271 else
7272 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7274 # And add a safety zone
7275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7279 interix*)
7280 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7281 lt_cv_sys_max_cmd_len=196608
7284 osf*)
7285 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7286 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7287 # nice to cause kernel panics so lets avoid the loop below.
7288 # First set a reasonable default.
7289 lt_cv_sys_max_cmd_len=16384
7291 if test -x /sbin/sysconfig; then
7292 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7293 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7294 esac
7297 sco3.2v5*)
7298 lt_cv_sys_max_cmd_len=102400
7300 sysv5* | sco5v6* | sysv4.2uw2*)
7301 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7302 if test -n "$kargmax"; then
7303 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7304 else
7305 lt_cv_sys_max_cmd_len=32768
7309 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7310 if test -n "$lt_cv_sys_max_cmd_len"; then
7311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7313 else
7314 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7315 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7316 = "XX$teststring") >/dev/null 2>&1 &&
7317 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7318 lt_cv_sys_max_cmd_len=$new_result &&
7319 test $i != 17 # 1/2 MB should be enough
7321 i=`expr $i + 1`
7322 teststring=$teststring$teststring
7323 done
7324 teststring=
7325 # Add a significant safety factor because C++ compilers can tack on massive
7326 # amounts of additional arguments before passing them to the linker.
7327 # It appears as though 1/2 is a usable value.
7328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7331 esac
7335 if test -n $lt_cv_sys_max_cmd_len ; then
7336 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7337 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7338 else
7339 { echo "$as_me:$LINENO: result: none" >&5
7340 echo "${ECHO_T}none" >&6; }
7347 # Check for command to grab the raw symbol name followed by C symbol from nm.
7348 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7349 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7350 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7354 # These are sane defaults that work on at least a few old systems.
7355 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7357 # Character class describing NM global symbol codes.
7358 symcode='[BCDEGRST]'
7360 # Regexp to match symbols that can be accessed directly from C.
7361 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7363 # Transform an extracted symbol line into a proper C declaration
7364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7366 # Transform an extracted symbol line into symbol name and symbol address
7367 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'"
7369 # Define system-specific variables.
7370 case $host_os in
7371 aix*)
7372 symcode='[BCDT]'
7374 cygwin* | mingw* | pw32*)
7375 symcode='[ABCDGISTW]'
7377 hpux*) # Its linker distinguishes data from code symbols
7378 if test "$host_cpu" = ia64; then
7379 symcode='[ABCDEGRST]'
7381 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7382 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'"
7384 linux* | k*bsd*-gnu)
7385 if test "$host_cpu" = ia64; then
7386 symcode='[ABCDGIRSTW]'
7387 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7388 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'"
7391 irix* | nonstopux*)
7392 symcode='[BCDEGRST]'
7394 osf*)
7395 symcode='[BCDEGQRST]'
7397 solaris*)
7398 symcode='[BDRT]'
7400 sco3.2v5*)
7401 symcode='[DT]'
7403 sysv4.2uw2*)
7404 symcode='[DT]'
7406 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7407 symcode='[ABDT]'
7409 sysv4)
7410 symcode='[DFNSTU]'
7412 esac
7414 # Handle CRLF in mingw tool chain
7415 opt_cr=
7416 case $build_os in
7417 mingw*)
7418 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7420 esac
7422 # If we're using GNU nm, then use its standard symbol codes.
7423 case `$NM -V 2>&1` in
7424 *GNU* | *'with BFD'*)
7425 symcode='[ABCDGIRSTW]' ;;
7426 esac
7428 # Try without a prefix undercore, then with it.
7429 for ac_symprfx in "" "_"; do
7431 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7432 symxfrm="\\1 $ac_symprfx\\2 \\2"
7434 # Write the raw and C identifiers.
7435 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7437 # Check to see that the pipe works correctly.
7438 pipe_works=no
7440 rm -f conftest*
7441 cat > conftest.$ac_ext <<EOF
7442 #ifdef __cplusplus
7443 extern "C" {
7444 #endif
7445 char nm_test_var;
7446 void nm_test_func(){}
7447 #ifdef __cplusplus
7449 #endif
7450 int main(){nm_test_var='a';nm_test_func();return(0);}
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454 (eval $ac_compile) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; then
7458 # Now try to grab the symbols.
7459 nlist=conftest.nm
7460 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7461 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && test -s "$nlist"; then
7465 # Try sorting and uniquifying the output.
7466 if sort "$nlist" | uniq > "$nlist"T; then
7467 mv -f "$nlist"T "$nlist"
7468 else
7469 rm -f "$nlist"T
7472 # Make sure that we snagged all the symbols we need.
7473 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7474 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7475 cat <<EOF > conftest.$ac_ext
7476 #ifdef __cplusplus
7477 extern "C" {
7478 #endif
7481 # Now generate the symbol file.
7482 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7484 cat <<EOF >> conftest.$ac_ext
7485 #if defined (__STDC__) && __STDC__
7486 # define lt_ptr_t void *
7487 #else
7488 # define lt_ptr_t char *
7489 # define const
7490 #endif
7492 /* The mapping between symbol names and symbols. */
7493 const struct {
7494 const char *name;
7495 lt_ptr_t address;
7497 lt_preloaded_symbols[] =
7500 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7501 cat <<\EOF >> conftest.$ac_ext
7502 {0, (lt_ptr_t) 0}
7505 #ifdef __cplusplus
7507 #endif
7509 # Now try linking the two files.
7510 mv conftest.$ac_objext conftstm.$ac_objext
7511 lt_save_LIBS="$LIBS"
7512 lt_save_CFLAGS="$CFLAGS"
7513 LIBS="conftstm.$ac_objext"
7514 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7520 pipe_works=yes
7522 LIBS="$lt_save_LIBS"
7523 CFLAGS="$lt_save_CFLAGS"
7524 else
7525 echo "cannot find nm_test_func in $nlist" >&5
7527 else
7528 echo "cannot find nm_test_var in $nlist" >&5
7530 else
7531 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7533 else
7534 echo "$progname: failed program was:" >&5
7535 cat conftest.$ac_ext >&5
7537 rm -rf conftest* conftst*
7539 # Do not use the global_symbol_pipe unless it works.
7540 if test "$pipe_works" = yes; then
7541 break
7542 else
7543 lt_cv_sys_global_symbol_pipe=
7545 done
7549 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7550 lt_cv_sys_global_symbol_to_cdecl=
7552 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7553 { echo "$as_me:$LINENO: result: failed" >&5
7554 echo "${ECHO_T}failed" >&6; }
7555 else
7556 { echo "$as_me:$LINENO: result: ok" >&5
7557 echo "${ECHO_T}ok" >&6; }
7560 { echo "$as_me:$LINENO: checking for objdir" >&5
7561 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7562 if test "${lt_cv_objdir+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 rm -f .libs 2>/dev/null
7566 mkdir .libs 2>/dev/null
7567 if test -d .libs; then
7568 lt_cv_objdir=.libs
7569 else
7570 # MS-DOS does not allow filenames that begin with a dot.
7571 lt_cv_objdir=_libs
7573 rmdir .libs 2>/dev/null
7575 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7576 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7577 objdir=$lt_cv_objdir
7583 case $host_os in
7584 aix3*)
7585 # AIX sometimes has problems with the GCC collect2 program. For some
7586 # reason, if we set the COLLECT_NAMES environment variable, the problems
7587 # vanish in a puff of smoke.
7588 if test "X${COLLECT_NAMES+set}" != Xset; then
7589 COLLECT_NAMES=
7590 export COLLECT_NAMES
7593 esac
7595 # Sed substitution that helps us do robust quoting. It backslashifies
7596 # metacharacters that are still active within double-quoted strings.
7597 Xsed='sed -e 1s/^X//'
7598 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7600 # Same as above, but do not quote variable references.
7601 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7603 # Sed substitution to delay expansion of an escaped shell variable in a
7604 # double_quote_subst'ed string.
7605 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7607 # Sed substitution to avoid accidental globbing in evaled expressions
7608 no_glob_subst='s/\*/\\\*/g'
7610 # Constants:
7611 rm="rm -f"
7613 # Global variables:
7614 default_ofile=libtool
7615 can_build_shared=yes
7617 # All known linkers require a `.a' archive for static linking (except MSVC,
7618 # which needs '.lib').
7619 libext=a
7620 ltmain="$ac_aux_dir/ltmain.sh"
7621 ofile="$default_ofile"
7622 with_gnu_ld="$lt_cv_prog_gnu_ld"
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}ar; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_prog_AR+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632 if test -n "$AR"; then
7633 ac_cv_prog_AR="$AR" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_prog_AR="${ac_tool_prefix}ar"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7646 done
7647 done
7648 IFS=$as_save_IFS
7652 AR=$ac_cv_prog_AR
7653 if test -n "$AR"; then
7654 { echo "$as_me:$LINENO: result: $AR" >&5
7655 echo "${ECHO_T}$AR" >&6; }
7656 else
7657 { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7663 if test -z "$ac_cv_prog_AR"; then
7664 ac_ct_AR=$AR
7665 # Extract the first word of "ar", so it can be a program name with args.
7666 set dummy ar; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 if test -n "$ac_ct_AR"; then
7673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_prog_ac_ct_AR="ar"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7686 done
7687 done
7688 IFS=$as_save_IFS
7692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7693 if test -n "$ac_ct_AR"; then
7694 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7695 echo "${ECHO_T}$ac_ct_AR" >&6; }
7696 else
7697 { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7701 if test "x$ac_ct_AR" = x; then
7702 AR="false"
7703 else
7704 case $cross_compiling:$ac_tool_warned in
7705 yes:)
7706 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7707 whose name does not start with the host triplet. If you think this
7708 configuration is useful to you, please write to autoconf@gnu.org." >&5
7709 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7710 whose name does not start with the host triplet. If you think this
7711 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714 AR=$ac_ct_AR
7716 else
7717 AR="$ac_cv_prog_AR"
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_prog_RANLIB+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 if test -n "$RANLIB"; then
7729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7742 done
7743 done
7744 IFS=$as_save_IFS
7748 RANLIB=$ac_cv_prog_RANLIB
7749 if test -n "$RANLIB"; then
7750 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7751 echo "${ECHO_T}$RANLIB" >&6; }
7752 else
7753 { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7759 if test -z "$ac_cv_prog_RANLIB"; then
7760 ac_ct_RANLIB=$RANLIB
7761 # Extract the first word of "ranlib", so it can be a program name with args.
7762 set dummy ranlib; ac_word=$2
7763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 if test -n "$ac_ct_RANLIB"; then
7769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_ac_ct_RANLIB="ranlib"
7779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7789 if test -n "$ac_ct_RANLIB"; then
7790 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7791 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7792 else
7793 { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7797 if test "x$ac_ct_RANLIB" = x; then
7798 RANLIB=":"
7799 else
7800 case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7803 whose name does not start with the host triplet. If you think this
7804 configuration is useful to you, please write to autoconf@gnu.org." >&5
7805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7806 whose name does not start with the host triplet. If you think this
7807 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7808 ac_tool_warned=yes ;;
7809 esac
7810 RANLIB=$ac_ct_RANLIB
7812 else
7813 RANLIB="$ac_cv_prog_RANLIB"
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}strip; ac_word=$2
7819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7821 if test "${ac_cv_prog_STRIP+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 if test -n "$STRIP"; then
7825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7844 STRIP=$ac_cv_prog_STRIP
7845 if test -n "$STRIP"; then
7846 { echo "$as_me:$LINENO: result: $STRIP" >&5
7847 echo "${ECHO_T}$STRIP" >&6; }
7848 else
7849 { echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6; }
7855 if test -z "$ac_cv_prog_STRIP"; then
7856 ac_ct_STRIP=$STRIP
7857 # Extract the first word of "strip", so it can be a program name with args.
7858 set dummy strip; ac_word=$2
7859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864 if test -n "$ac_ct_STRIP"; then
7865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_ac_ct_STRIP="strip"
7875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7878 done
7879 done
7880 IFS=$as_save_IFS
7884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7885 if test -n "$ac_ct_STRIP"; then
7886 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7887 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7888 else
7889 { echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6; }
7893 if test "x$ac_ct_STRIP" = x; then
7894 STRIP=":"
7895 else
7896 case $cross_compiling:$ac_tool_warned in
7897 yes:)
7898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7899 whose name does not start with the host triplet. If you think this
7900 configuration is useful to you, please write to autoconf@gnu.org." >&5
7901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7902 whose name does not start with the host triplet. If you think this
7903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7904 ac_tool_warned=yes ;;
7905 esac
7906 STRIP=$ac_ct_STRIP
7908 else
7909 STRIP="$ac_cv_prog_STRIP"
7913 old_CC="$CC"
7914 old_CFLAGS="$CFLAGS"
7916 # Set sane defaults for various variables
7917 test -z "$AR" && AR=ar
7918 test -z "$AR_FLAGS" && AR_FLAGS=cru
7919 test -z "$AS" && AS=as
7920 test -z "$CC" && CC=cc
7921 test -z "$LTCC" && LTCC=$CC
7922 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7923 test -z "$DLLTOOL" && DLLTOOL=dlltool
7924 test -z "$LD" && LD=ld
7925 test -z "$LN_S" && LN_S="ln -s"
7926 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7927 test -z "$NM" && NM=nm
7928 test -z "$SED" && SED=sed
7929 test -z "$OBJDUMP" && OBJDUMP=objdump
7930 test -z "$RANLIB" && RANLIB=:
7931 test -z "$STRIP" && STRIP=:
7932 test -z "$ac_objext" && ac_objext=o
7934 # Determine commands to create old-style static archives.
7935 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7936 old_postinstall_cmds='chmod 644 $oldlib'
7937 old_postuninstall_cmds=
7939 if test -n "$RANLIB"; then
7940 case $host_os in
7941 openbsd*)
7942 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7945 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7947 esac
7948 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7951 for cc_temp in $compiler""; do
7952 case $cc_temp in
7953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7955 \-*) ;;
7956 *) break;;
7957 esac
7958 done
7959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7962 # Only perform the check for file, if the check method requires it
7963 case $deplibs_check_method in
7964 file_magic*)
7965 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7966 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7967 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971 case $MAGIC_CMD in
7972 [\\/*] | ?:[\\/]*)
7973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7976 lt_save_MAGIC_CMD="$MAGIC_CMD"
7977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7979 for ac_dir in $ac_dummy; do
7980 IFS="$lt_save_ifs"
7981 test -z "$ac_dir" && ac_dir=.
7982 if test -f $ac_dir/${ac_tool_prefix}file; then
7983 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7984 if test -n "$file_magic_test_file"; then
7985 case $deplibs_check_method in
7986 "file_magic "*)
7987 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7990 $EGREP "$file_magic_regex" > /dev/null; then
7992 else
7993 cat <<EOF 1>&2
7995 *** Warning: the command libtool uses to detect shared libraries,
7996 *** $file_magic_cmd, produces output that libtool cannot recognize.
7997 *** The result is that libtool may fail to recognize shared libraries
7998 *** as such. This will affect the creation of libtool libraries that
7999 *** depend on shared libraries, but programs linked with such libtool
8000 *** libraries will work regardless of this problem. Nevertheless, you
8001 *** may want to report the problem to your system manager and/or to
8002 *** bug-libtool@gnu.org
8005 fi ;;
8006 esac
8008 break
8010 done
8011 IFS="$lt_save_ifs"
8012 MAGIC_CMD="$lt_save_MAGIC_CMD"
8014 esac
8017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8018 if test -n "$MAGIC_CMD"; then
8019 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8020 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8021 else
8022 { echo "$as_me:$LINENO: result: no" >&5
8023 echo "${ECHO_T}no" >&6; }
8026 if test -z "$lt_cv_path_MAGIC_CMD"; then
8027 if test -n "$ac_tool_prefix"; then
8028 { echo "$as_me:$LINENO: checking for file" >&5
8029 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8030 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 case $MAGIC_CMD in
8034 [\\/*] | ?:[\\/]*)
8035 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8038 lt_save_MAGIC_CMD="$MAGIC_CMD"
8039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8040 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8041 for ac_dir in $ac_dummy; do
8042 IFS="$lt_save_ifs"
8043 test -z "$ac_dir" && ac_dir=.
8044 if test -f $ac_dir/file; then
8045 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8046 if test -n "$file_magic_test_file"; then
8047 case $deplibs_check_method in
8048 "file_magic "*)
8049 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8051 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8052 $EGREP "$file_magic_regex" > /dev/null; then
8054 else
8055 cat <<EOF 1>&2
8057 *** Warning: the command libtool uses to detect shared libraries,
8058 *** $file_magic_cmd, produces output that libtool cannot recognize.
8059 *** The result is that libtool may fail to recognize shared libraries
8060 *** as such. This will affect the creation of libtool libraries that
8061 *** depend on shared libraries, but programs linked with such libtool
8062 *** libraries will work regardless of this problem. Nevertheless, you
8063 *** may want to report the problem to your system manager and/or to
8064 *** bug-libtool@gnu.org
8067 fi ;;
8068 esac
8070 break
8072 done
8073 IFS="$lt_save_ifs"
8074 MAGIC_CMD="$lt_save_MAGIC_CMD"
8076 esac
8079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8080 if test -n "$MAGIC_CMD"; then
8081 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8082 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8083 else
8084 { echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6; }
8088 else
8089 MAGIC_CMD=:
8095 esac
8098 case $host_os in
8099 rhapsody* | darwin*)
8100 if test -n "$ac_tool_prefix"; then
8101 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8102 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8105 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108 if test -n "$DSYMUTIL"; then
8109 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8122 done
8123 done
8124 IFS=$as_save_IFS
8128 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8129 if test -n "$DSYMUTIL"; then
8130 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8131 echo "${ECHO_T}$DSYMUTIL" >&6; }
8132 else
8133 { echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6; }
8139 if test -z "$ac_cv_prog_DSYMUTIL"; then
8140 ac_ct_DSYMUTIL=$DSYMUTIL
8141 # Extract the first word of "dsymutil", so it can be a program name with args.
8142 set dummy dsymutil; ac_word=$2
8143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8145 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 if test -n "$ac_ct_DSYMUTIL"; then
8149 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8162 done
8163 done
8164 IFS=$as_save_IFS
8168 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8169 if test -n "$ac_ct_DSYMUTIL"; then
8170 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8171 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8172 else
8173 { echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6; }
8177 if test "x$ac_ct_DSYMUTIL" = x; then
8178 DSYMUTIL=":"
8179 else
8180 case $cross_compiling:$ac_tool_warned in
8181 yes:)
8182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8183 whose name does not start with the host triplet. If you think this
8184 configuration is useful to you, please write to autoconf@gnu.org." >&5
8185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8186 whose name does not start with the host triplet. If you think this
8187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8188 ac_tool_warned=yes ;;
8189 esac
8190 DSYMUTIL=$ac_ct_DSYMUTIL
8192 else
8193 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8196 if test -n "$ac_tool_prefix"; then
8197 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8198 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8201 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 if test -n "$NMEDIT"; then
8205 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8218 done
8219 done
8220 IFS=$as_save_IFS
8224 NMEDIT=$ac_cv_prog_NMEDIT
8225 if test -n "$NMEDIT"; then
8226 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8227 echo "${ECHO_T}$NMEDIT" >&6; }
8228 else
8229 { echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6; }
8235 if test -z "$ac_cv_prog_NMEDIT"; then
8236 ac_ct_NMEDIT=$NMEDIT
8237 # Extract the first word of "nmedit", so it can be a program name with args.
8238 set dummy nmedit; ac_word=$2
8239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8241 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244 if test -n "$ac_ct_NMEDIT"; then
8245 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8258 done
8259 done
8260 IFS=$as_save_IFS
8264 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8265 if test -n "$ac_ct_NMEDIT"; then
8266 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8267 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8268 else
8269 { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8273 if test "x$ac_ct_NMEDIT" = x; then
8274 NMEDIT=":"
8275 else
8276 case $cross_compiling:$ac_tool_warned in
8277 yes:)
8278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8279 whose name does not start with the host triplet. If you think this
8280 configuration is useful to you, please write to autoconf@gnu.org." >&5
8281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8282 whose name does not start with the host triplet. If you think this
8283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8284 ac_tool_warned=yes ;;
8285 esac
8286 NMEDIT=$ac_ct_NMEDIT
8288 else
8289 NMEDIT="$ac_cv_prog_NMEDIT"
8293 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8294 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8295 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298 lt_cv_apple_cc_single_mod=no
8299 if test -z "${LT_MULTI_MODULE}"; then
8300 # By default we will add the -single_module flag. You can override
8301 # by either setting the environment variable LT_MULTI_MODULE
8302 # non-empty at configure time, or by adding -multi_module to the
8303 # link flags.
8304 echo "int foo(void){return 1;}" > conftest.c
8305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8306 -dynamiclib ${wl}-single_module conftest.c
8307 if test -f libconftest.dylib; then
8308 lt_cv_apple_cc_single_mod=yes
8309 rm -rf libconftest.dylib*
8311 rm conftest.c
8314 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8315 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8316 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8317 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8318 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 lt_cv_ld_exported_symbols_list=no
8322 save_LDFLAGS=$LDFLAGS
8323 echo "_main" > conftest.sym
8324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8333 main ()
8337 return 0;
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8342 case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345 esac
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_link") 2>conftest.er1
8348 ac_status=$?
8349 grep -v '^ *+' conftest.er1 >conftest.err
8350 rm -f conftest.er1
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } && {
8354 test -z "$ac_c_werror_flag" ||
8355 test ! -s conftest.err
8356 } && test -s conftest$ac_exeext &&
8357 $as_test_x conftest$ac_exeext; then
8358 lt_cv_ld_exported_symbols_list=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 lt_cv_ld_exported_symbols_list=no
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8368 LDFLAGS="$save_LDFLAGS"
8371 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8372 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8373 case $host_os in
8374 rhapsody* | darwin1.[0123])
8375 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8376 darwin1.*)
8377 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8378 darwin*)
8379 # if running on 10.5 or later, the deployment target defaults
8380 # to the OS version, if on x86, and 10.4, the deployment
8381 # target defaults to 10.4. Don't you love it?
8382 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8383 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8384 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8385 10.[012]*)
8386 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8387 10.*)
8388 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8389 esac
8391 esac
8392 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8393 _lt_dar_single_mod='$single_module'
8395 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8396 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8397 else
8398 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8400 if test "$DSYMUTIL" != ":"; then
8401 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8402 else
8403 _lt_dsymutil=
8406 esac
8409 enable_dlopen=no
8410 enable_win32_dll=no
8412 # Check whether --enable-libtool-lock was given.
8413 if test "${enable_libtool_lock+set}" = set; then
8414 enableval=$enable_libtool_lock;
8417 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8420 # Check whether --with-pic was given.
8421 if test "${with_pic+set}" = set; then
8422 withval=$with_pic; pic_mode="$withval"
8423 else
8424 pic_mode=default
8427 test -z "$pic_mode" && pic_mode=default
8429 # Use C for the default configuration in the libtool script
8430 tagname=
8431 lt_save_CC="$CC"
8432 ac_ext=c
8433 ac_cpp='$CPP $CPPFLAGS'
8434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8439 # Source file extension for C test sources.
8440 ac_ext=c
8442 # Object file extension for compiled C test sources.
8443 objext=o
8444 objext=$objext
8446 # Code to be used in simple compile tests
8447 lt_simple_compile_test_code="int some_variable = 0;"
8449 # Code to be used in simple link tests
8450 lt_simple_link_test_code='int main(){return(0);}'
8453 # If no C compiler was specified, use CC.
8454 LTCC=${LTCC-"$CC"}
8456 # If no C compiler flags were specified, use CFLAGS.
8457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8459 # Allow CC to be a program name with arguments.
8460 compiler=$CC
8463 # save warnings/boilerplate of simple test code
8464 ac_outfile=conftest.$ac_objext
8465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8467 _lt_compiler_boilerplate=`cat conftest.err`
8468 $rm conftest*
8470 ac_outfile=conftest.$ac_objext
8471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8473 _lt_linker_boilerplate=`cat conftest.err`
8474 $rm -r conftest*
8478 lt_prog_compiler_no_builtin_flag=
8480 if test "$GCC" = yes; then
8481 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8484 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8485 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8486 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 lt_cv_prog_compiler_rtti_exceptions=no
8490 ac_outfile=conftest.$ac_objext
8491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492 lt_compiler_flag="-fno-rtti -fno-exceptions"
8493 # Insert the option either (1) after the last *FLAGS variable, or
8494 # (2) before a word containing "conftest.", or (3) at the end.
8495 # Note that $ac_compile itself does not contain backslashes and begins
8496 # with a dollar sign (not a hyphen), so the echo should work correctly.
8497 # The option is referenced via a variable to avoid confusing sed.
8498 lt_compile=`echo "$ac_compile" | $SED \
8499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501 -e 's:$: $lt_compiler_flag:'`
8502 (eval echo "\"\$as_me:8502: $lt_compile\"" >&5)
8503 (eval "$lt_compile" 2>conftest.err)
8504 ac_status=$?
8505 cat conftest.err >&5
8506 echo "$as_me:8506: \$? = $ac_status" >&5
8507 if (exit $ac_status) && test -s "$ac_outfile"; then
8508 # The compiler can only warn and ignore the option if not recognized
8509 # So say no if there are warnings other than the usual output.
8510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8513 lt_cv_prog_compiler_rtti_exceptions=yes
8516 $rm conftest*
8519 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8520 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8522 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8523 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8524 else
8530 lt_prog_compiler_wl=
8531 lt_prog_compiler_pic=
8532 lt_prog_compiler_static=
8534 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8535 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8537 if test "$GCC" = yes; then
8538 lt_prog_compiler_wl='-Wl,'
8539 lt_prog_compiler_static='-static'
8541 case $host_os in
8542 aix*)
8543 # All AIX code is PIC.
8544 if test "$host_cpu" = ia64; then
8545 # AIX 5 now supports IA64 processor
8546 lt_prog_compiler_static='-Bstatic'
8550 amigaos*)
8551 # FIXME: we need at least 68020 code to build shared libraries, but
8552 # adding the `-m68020' flag to GCC prevents building anything better,
8553 # like `-m68040'.
8554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8557 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8558 # PIC is the default for these OSes.
8561 mingw* | cygwin* | pw32* | os2*)
8562 # This hack is so that the source file can tell whether it is being
8563 # built for inclusion in a dll (and should export symbols for example).
8564 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8565 # (--disable-auto-import) libraries
8566 lt_prog_compiler_pic='-DDLL_EXPORT'
8569 darwin* | rhapsody*)
8570 # PIC is the default on this platform
8571 # Common symbols not allowed in MH_DYLIB files
8572 lt_prog_compiler_pic='-fno-common'
8575 interix[3-9]*)
8576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8577 # Instead, we relocate shared libraries at runtime.
8580 msdosdjgpp*)
8581 # Just because we use GCC doesn't mean we suddenly get shared libraries
8582 # on systems that don't support them.
8583 lt_prog_compiler_can_build_shared=no
8584 enable_shared=no
8587 sysv4*MP*)
8588 if test -d /usr/nec; then
8589 lt_prog_compiler_pic=-Kconform_pic
8593 hpux*)
8594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8595 # not for PA HP-UX.
8596 case $host_cpu in
8597 hppa*64*|ia64*)
8598 # +Z the default
8601 lt_prog_compiler_pic='-fPIC'
8603 esac
8607 lt_prog_compiler_pic='-fPIC'
8609 esac
8610 else
8611 # PORTME Check for flag to pass linker flags through the system compiler.
8612 case $host_os in
8613 aix*)
8614 lt_prog_compiler_wl='-Wl,'
8615 if test "$host_cpu" = ia64; then
8616 # AIX 5 now supports IA64 processor
8617 lt_prog_compiler_static='-Bstatic'
8618 else
8619 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8622 darwin*)
8623 # PIC is the default on this platform
8624 # Common symbols not allowed in MH_DYLIB files
8625 case $cc_basename in
8626 xlc*)
8627 lt_prog_compiler_pic='-qnocommon'
8628 lt_prog_compiler_wl='-Wl,'
8630 esac
8633 mingw* | cygwin* | pw32* | os2*)
8634 # This hack is so that the source file can tell whether it is being
8635 # built for inclusion in a dll (and should export symbols for example).
8636 lt_prog_compiler_pic='-DDLL_EXPORT'
8639 hpux9* | hpux10* | hpux11*)
8640 lt_prog_compiler_wl='-Wl,'
8641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8642 # not for PA HP-UX.
8643 case $host_cpu in
8644 hppa*64*|ia64*)
8645 # +Z the default
8648 lt_prog_compiler_pic='+Z'
8650 esac
8651 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8652 lt_prog_compiler_static='${wl}-a ${wl}archive'
8655 irix5* | irix6* | nonstopux*)
8656 lt_prog_compiler_wl='-Wl,'
8657 # PIC (with -KPIC) is the default.
8658 lt_prog_compiler_static='-non_shared'
8661 newsos6)
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8666 linux* | k*bsd*-gnu)
8667 case $cc_basename in
8668 icc* | ecc*)
8669 lt_prog_compiler_wl='-Wl,'
8670 lt_prog_compiler_pic='-KPIC'
8671 lt_prog_compiler_static='-static'
8673 pgcc* | pgf77* | pgf90* | pgf95*)
8674 # Portland Group compilers (*not* the Pentium gcc compiler,
8675 # which looks to be a dead project)
8676 lt_prog_compiler_wl='-Wl,'
8677 lt_prog_compiler_pic='-fpic'
8678 lt_prog_compiler_static='-Bstatic'
8680 ccc*)
8681 lt_prog_compiler_wl='-Wl,'
8682 # All Alpha code is PIC.
8683 lt_prog_compiler_static='-non_shared'
8686 case `$CC -V 2>&1 | sed 5q` in
8687 *Sun\ C*)
8688 # Sun C 5.9
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8691 lt_prog_compiler_wl='-Wl,'
8693 *Sun\ F*)
8694 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 lt_prog_compiler_wl=''
8699 esac
8701 esac
8704 osf3* | osf4* | osf5*)
8705 lt_prog_compiler_wl='-Wl,'
8706 # All OSF/1 code is PIC.
8707 lt_prog_compiler_static='-non_shared'
8710 rdos*)
8711 lt_prog_compiler_static='-non_shared'
8714 solaris*)
8715 lt_prog_compiler_pic='-KPIC'
8716 lt_prog_compiler_static='-Bstatic'
8717 case $cc_basename in
8718 f77* | f90* | f95*)
8719 lt_prog_compiler_wl='-Qoption ld ';;
8721 lt_prog_compiler_wl='-Wl,';;
8722 esac
8725 sunos4*)
8726 lt_prog_compiler_wl='-Qoption ld '
8727 lt_prog_compiler_pic='-PIC'
8728 lt_prog_compiler_static='-Bstatic'
8731 sysv4 | sysv4.2uw2* | sysv4.3*)
8732 lt_prog_compiler_wl='-Wl,'
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8737 sysv4*MP*)
8738 if test -d /usr/nec ;then
8739 lt_prog_compiler_pic='-Kconform_pic'
8740 lt_prog_compiler_static='-Bstatic'
8744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-KPIC'
8747 lt_prog_compiler_static='-Bstatic'
8750 unicos*)
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_can_build_shared=no
8755 uts4*)
8756 lt_prog_compiler_pic='-pic'
8757 lt_prog_compiler_static='-Bstatic'
8761 lt_prog_compiler_can_build_shared=no
8763 esac
8766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8767 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8770 # Check to make sure the PIC flag actually works.
8772 if test -n "$lt_prog_compiler_pic"; then
8774 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8775 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8776 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 lt_cv_prog_compiler_pic_works=no
8780 ac_outfile=conftest.$ac_objext
8781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8782 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8783 # Insert the option either (1) after the last *FLAGS variable, or
8784 # (2) before a word containing "conftest.", or (3) at the end.
8785 # Note that $ac_compile itself does not contain backslashes and begins
8786 # with a dollar sign (not a hyphen), so the echo should work correctly.
8787 # The option is referenced via a variable to avoid confusing sed.
8788 lt_compile=`echo "$ac_compile" | $SED \
8789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8791 -e 's:$: $lt_compiler_flag:'`
8792 (eval echo "\"\$as_me:8792: $lt_compile\"" >&5)
8793 (eval "$lt_compile" 2>conftest.err)
8794 ac_status=$?
8795 cat conftest.err >&5
8796 echo "$as_me:8796: \$? = $ac_status" >&5
8797 if (exit $ac_status) && test -s "$ac_outfile"; then
8798 # The compiler can only warn and ignore the option if not recognized
8799 # So say no if there are warnings other than the usual output.
8800 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8802 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8803 lt_cv_prog_compiler_pic_works=yes
8806 $rm conftest*
8809 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8810 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8812 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8813 case $lt_prog_compiler_pic in
8814 "" | " "*) ;;
8815 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8816 esac
8817 else
8818 lt_prog_compiler_pic=
8819 lt_prog_compiler_can_build_shared=no
8823 case $host_os in
8824 # For platforms which do not support PIC, -DPIC is meaningless:
8825 *djgpp*)
8826 lt_prog_compiler_pic=
8829 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8831 esac
8834 # Check to make sure the static flag actually works.
8836 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8837 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8838 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8839 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842 lt_cv_prog_compiler_static_works=no
8843 save_LDFLAGS="$LDFLAGS"
8844 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8845 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8846 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8847 # The linker can only warn and ignore the option if not recognized
8848 # So say no if there are warnings
8849 if test -s conftest.err; then
8850 # Append any errors to the config.log.
8851 cat conftest.err 1>&5
8852 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8854 if diff conftest.exp conftest.er2 >/dev/null; then
8855 lt_cv_prog_compiler_static_works=yes
8857 else
8858 lt_cv_prog_compiler_static_works=yes
8861 $rm -r conftest*
8862 LDFLAGS="$save_LDFLAGS"
8865 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8866 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8868 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8870 else
8871 lt_prog_compiler_static=
8875 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8876 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8877 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880 lt_cv_prog_compiler_c_o=no
8881 $rm -r conftest 2>/dev/null
8882 mkdir conftest
8883 cd conftest
8884 mkdir out
8885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8887 lt_compiler_flag="-o out/conftest2.$ac_objext"
8888 # Insert the option either (1) after the last *FLAGS variable, or
8889 # (2) before a word containing "conftest.", or (3) at the end.
8890 # Note that $ac_compile itself does not contain backslashes and begins
8891 # with a dollar sign (not a hyphen), so the echo should work correctly.
8892 lt_compile=`echo "$ac_compile" | $SED \
8893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8895 -e 's:$: $lt_compiler_flag:'`
8896 (eval echo "\"\$as_me:8896: $lt_compile\"" >&5)
8897 (eval "$lt_compile" 2>out/conftest.err)
8898 ac_status=$?
8899 cat out/conftest.err >&5
8900 echo "$as_me:8900: \$? = $ac_status" >&5
8901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8902 then
8903 # The compiler can only warn and ignore the option if not recognized
8904 # So say no if there are warnings
8905 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8908 lt_cv_prog_compiler_c_o=yes
8911 chmod u+w . 2>&5
8912 $rm conftest*
8913 # SGI C++ compiler will create directory out/ii_files/ for
8914 # template instantiation
8915 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8916 $rm out/* && rmdir out
8917 cd ..
8918 rmdir conftest
8919 $rm conftest*
8922 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8923 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8926 hard_links="nottested"
8927 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8928 # do not overwrite the value of need_locks provided by the user
8929 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8930 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8931 hard_links=yes
8932 $rm conftest*
8933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934 touch conftest.a
8935 ln conftest.a conftest.b 2>&5 || hard_links=no
8936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8937 { echo "$as_me:$LINENO: result: $hard_links" >&5
8938 echo "${ECHO_T}$hard_links" >&6; }
8939 if test "$hard_links" = no; then
8940 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8941 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8942 need_locks=warn
8944 else
8945 need_locks=no
8948 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8949 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8951 runpath_var=
8952 allow_undefined_flag=
8953 enable_shared_with_static_runtimes=no
8954 archive_cmds=
8955 archive_expsym_cmds=
8956 old_archive_From_new_cmds=
8957 old_archive_from_expsyms_cmds=
8958 export_dynamic_flag_spec=
8959 whole_archive_flag_spec=
8960 thread_safe_flag_spec=
8961 hardcode_libdir_flag_spec=
8962 hardcode_libdir_flag_spec_ld=
8963 hardcode_libdir_separator=
8964 hardcode_direct=no
8965 hardcode_minus_L=no
8966 hardcode_shlibpath_var=unsupported
8967 link_all_deplibs=unknown
8968 hardcode_automatic=no
8969 module_cmds=
8970 module_expsym_cmds=
8971 always_export_symbols=no
8972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8973 # include_expsyms should be a list of space-separated symbols to be *always*
8974 # included in the symbol list
8975 include_expsyms=
8976 # exclude_expsyms can be an extended regexp of symbols to exclude
8977 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8978 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8979 # as well as any symbol that contains `d'.
8980 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8981 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8982 # platforms (ab)use it in PIC code, but their linkers get confused if
8983 # the symbol is explicitly referenced. Since portable code cannot
8984 # rely on this symbol name, it's probably fine to never include it in
8985 # preloaded symbol tables.
8986 # Exclude shared library initialization/finalization symbols.
8987 extract_expsyms_cmds=
8988 # Just being paranoid about ensuring that cc_basename is set.
8989 for cc_temp in $compiler""; do
8990 case $cc_temp in
8991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8993 \-*) ;;
8994 *) break;;
8995 esac
8996 done
8997 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8999 case $host_os in
9000 cygwin* | mingw* | pw32*)
9001 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9002 # When not using gcc, we currently assume that we are using
9003 # Microsoft Visual C++.
9004 if test "$GCC" != yes; then
9005 with_gnu_ld=no
9008 interix*)
9009 # we just hope/assume this is gcc and not c89 (= MSVC++)
9010 with_gnu_ld=yes
9012 openbsd*)
9013 with_gnu_ld=no
9015 esac
9017 ld_shlibs=yes
9018 if test "$with_gnu_ld" = yes; then
9019 # If archive_cmds runs LD, not CC, wlarc should be empty
9020 wlarc='${wl}'
9022 # Set some defaults for GNU ld with shared library support. These
9023 # are reset later if shared libraries are not supported. Putting them
9024 # here allows them to be overridden if necessary.
9025 runpath_var=LD_RUN_PATH
9026 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9027 export_dynamic_flag_spec='${wl}--export-dynamic'
9028 # ancient GNU ld didn't support --whole-archive et. al.
9029 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9030 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9031 else
9032 whole_archive_flag_spec=
9034 supports_anon_versioning=no
9035 case `$LD -v 2>/dev/null` in
9036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9039 *\ 2.11.*) ;; # other 2.11 versions
9040 *) supports_anon_versioning=yes ;;
9041 esac
9043 # See if GNU ld supports shared libraries.
9044 case $host_os in
9045 aix[3-9]*)
9046 # On AIX/PPC, the GNU linker is very broken
9047 if test "$host_cpu" != ia64; then
9048 ld_shlibs=no
9049 cat <<EOF 1>&2
9051 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9052 *** to be unable to reliably create shared libraries on AIX.
9053 *** Therefore, libtool is disabling shared libraries support. If you
9054 *** really care for shared libraries, you may want to modify your PATH
9055 *** so that a non-GNU linker is found, and then restart.
9061 amigaos*)
9062 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)'
9063 hardcode_libdir_flag_spec='-L$libdir'
9064 hardcode_minus_L=yes
9066 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9067 # that the semantics of dynamic libraries on AmigaOS, at least up
9068 # to version 4, is to share data among multiple programs linked
9069 # with the same dynamic library. Since this doesn't match the
9070 # behavior of shared libraries on other platforms, we can't use
9071 # them.
9072 ld_shlibs=no
9075 beos*)
9076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9077 allow_undefined_flag=unsupported
9078 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9079 # support --undefined. This deserves some investigation. FIXME
9080 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 else
9082 ld_shlibs=no
9086 cygwin* | mingw* | pw32*)
9087 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9088 # as there is no search path for DLLs.
9089 hardcode_libdir_flag_spec='-L$libdir'
9090 allow_undefined_flag=unsupported
9091 always_export_symbols=no
9092 enable_shared_with_static_runtimes=yes
9093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9095 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9097 # If the export-symbols file already is a .def file (1st line
9098 # is EXPORTS), use it as is; otherwise, prepend...
9099 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9100 cp $export_symbols $output_objdir/$soname.def;
9101 else
9102 echo EXPORTS > $output_objdir/$soname.def;
9103 cat $export_symbols >> $output_objdir/$soname.def;
9105 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9106 else
9107 ld_shlibs=no
9111 interix[3-9]*)
9112 hardcode_direct=no
9113 hardcode_shlibpath_var=no
9114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9115 export_dynamic_flag_spec='${wl}-E'
9116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9117 # Instead, shared libraries are loaded at an image base (0x10000000 by
9118 # default) and relocated if they conflict, which is a slow very memory
9119 # consuming and fragmenting process. To avoid this, we pick a random,
9120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9123 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'
9126 gnu* | linux* | k*bsd*-gnu)
9127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9128 tmp_addflag=
9129 case $cc_basename,$host_cpu in
9130 pgcc*) # Portland Group C compiler
9131 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'
9132 tmp_addflag=' $pic_flag'
9134 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9135 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'
9136 tmp_addflag=' $pic_flag -Mnomain' ;;
9137 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9138 tmp_addflag=' -i_dynamic' ;;
9139 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9140 tmp_addflag=' -i_dynamic -nofor_main' ;;
9141 ifc* | ifort*) # Intel Fortran compiler
9142 tmp_addflag=' -nofor_main' ;;
9143 esac
9144 case `$CC -V 2>&1 | sed 5q` in
9145 *Sun\ C*) # Sun C 5.9
9146 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'
9147 tmp_sharedflag='-G' ;;
9148 *Sun\ F*) # Sun Fortran 8.3
9149 tmp_sharedflag='-G' ;;
9151 tmp_sharedflag='-shared' ;;
9152 esac
9153 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9155 if test $supports_anon_versioning = yes; then
9156 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9158 $echo "local: *; };" >> $output_objdir/$libname.ver~
9159 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9161 link_all_deplibs=no
9162 else
9163 ld_shlibs=no
9167 netbsd* | netbsdelf*-gnu)
9168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9169 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9170 wlarc=
9171 else
9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9177 solaris*)
9178 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9179 ld_shlibs=no
9180 cat <<EOF 1>&2
9182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9183 *** create shared libraries on Solaris systems. Therefore, libtool
9184 *** is disabling shared libraries support. We urge you to upgrade GNU
9185 *** binutils to release 2.9.1 or newer. Another option is to modify
9186 *** your PATH or compiler configuration so that the native linker is
9187 *** used, and then restart.
9190 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9193 else
9194 ld_shlibs=no
9198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9199 case `$LD -v 2>&1` in
9200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9201 ld_shlibs=no
9202 cat <<_LT_EOF 1>&2
9204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9205 *** reliably create shared libraries on SCO systems. Therefore, libtool
9206 *** is disabling shared libraries support. We urge you to upgrade GNU
9207 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9208 *** your PATH or compiler configuration so that the native linker is
9209 *** used, and then restart.
9211 _LT_EOF
9214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9215 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9218 else
9219 ld_shlibs=no
9222 esac
9225 sunos4*)
9226 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227 wlarc=
9228 hardcode_direct=yes
9229 hardcode_shlibpath_var=no
9233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9236 else
9237 ld_shlibs=no
9240 esac
9242 if test "$ld_shlibs" = no; then
9243 runpath_var=
9244 hardcode_libdir_flag_spec=
9245 export_dynamic_flag_spec=
9246 whole_archive_flag_spec=
9248 else
9249 # PORTME fill in a description of your system's linker (not GNU ld)
9250 case $host_os in
9251 aix3*)
9252 allow_undefined_flag=unsupported
9253 always_export_symbols=yes
9254 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'
9255 # Note: this linker hardcodes the directories in LIBPATH if there
9256 # are no directories specified by -L.
9257 hardcode_minus_L=yes
9258 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9259 # Neither direct hardcoding nor static linking is supported with a
9260 # broken collect2.
9261 hardcode_direct=unsupported
9265 aix[4-9]*)
9266 if test "$host_cpu" = ia64; then
9267 # On IA64, the linker does run time linking by default, so we don't
9268 # have to do anything special.
9269 aix_use_runtimelinking=no
9270 exp_sym_flag='-Bexport'
9271 no_entry_flag=""
9272 else
9273 # If we're using GNU nm, then we don't want the "-C" option.
9274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9275 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9276 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'
9277 else
9278 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'
9280 aix_use_runtimelinking=no
9282 # Test if we are trying to use run time linking or normal
9283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9284 # need to do runtime linking.
9285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9286 for ld_flag in $LDFLAGS; do
9287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9288 aix_use_runtimelinking=yes
9289 break
9291 done
9293 esac
9295 exp_sym_flag='-bexport'
9296 no_entry_flag='-bnoentry'
9299 # When large executables or shared objects are built, AIX ld can
9300 # have problems creating the table of contents. If linking a library
9301 # or program results in "error TOC overflow" add -mminimal-toc to
9302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9305 archive_cmds=''
9306 hardcode_direct=yes
9307 hardcode_libdir_separator=':'
9308 link_all_deplibs=yes
9310 if test "$GCC" = yes; then
9311 case $host_os in aix4.[012]|aix4.[012].*)
9312 # We only want to do this on AIX 4.2 and lower, the check
9313 # below for broken collect2 doesn't work under 4.3+
9314 collect2name=`${CC} -print-prog-name=collect2`
9315 if test -f "$collect2name" && \
9316 strings "$collect2name" | grep resolve_lib_name >/dev/null
9317 then
9318 # We have reworked collect2
9320 else
9321 # We have old collect2
9322 hardcode_direct=unsupported
9323 # It fails to find uninstalled libraries when the uninstalled
9324 # path is not listed in the libpath. Setting hardcode_minus_L
9325 # to unsupported forces relinking
9326 hardcode_minus_L=yes
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_libdir_separator=
9331 esac
9332 shared_flag='-shared'
9333 if test "$aix_use_runtimelinking" = yes; then
9334 shared_flag="$shared_flag "'${wl}-G'
9336 else
9337 # not using gcc
9338 if test "$host_cpu" = ia64; then
9339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9340 # chokes on -Wl,-G. The following line is correct:
9341 shared_flag='-G'
9342 else
9343 if test "$aix_use_runtimelinking" = yes; then
9344 shared_flag='${wl}-G'
9345 else
9346 shared_flag='${wl}-bM:SRE'
9351 # It seems that -bexpall does not export symbols beginning with
9352 # underscore (_), so it is better to generate a list of symbols to export.
9353 always_export_symbols=yes
9354 if test "$aix_use_runtimelinking" = yes; then
9355 # Warning - without using the other runtime loading flags (-brtl),
9356 # -berok will link without error, but may produce a broken library.
9357 allow_undefined_flag='-berok'
9358 # Determine the default libpath from the value encoded in an empty executable.
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9367 main ()
9371 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext conftest$ac_exeext
9375 if { (ac_try="$ac_link"
9376 case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_link") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } && {
9388 test -z "$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 } && test -s conftest$ac_exeext &&
9391 $as_test_x conftest$ac_exeext; then
9393 lt_aix_libpath_sed='
9394 /Import File Strings/,/^$/ {
9395 /^0/ {
9396 s/^0 *\(.*\)$/\1/
9400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9401 # Check for a 64-bit object if we didn't find anything.
9402 if test -z "$aix_libpath"; then
9403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405 else
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9413 conftest$ac_exeext conftest.$ac_ext
9414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9416 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9417 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"
9418 else
9419 if test "$host_cpu" = ia64; then
9420 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9421 allow_undefined_flag="-z nodefs"
9422 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"
9423 else
9424 # Determine the default libpath from the value encoded in an empty executable.
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9433 main ()
9437 return 0;
9439 _ACEOF
9440 rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (ac_try="$ac_link"
9442 case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_link") 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest$ac_exeext &&
9457 $as_test_x conftest$ac_exeext; then
9459 lt_aix_libpath_sed='
9460 /Import File Strings/,/^$/ {
9461 /^0/ {
9462 s/^0 *\(.*\)$/\1/
9466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9467 # Check for a 64-bit object if we didn't find anything.
9468 if test -z "$aix_libpath"; then
9469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9471 else
9472 echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9479 conftest$ac_exeext conftest.$ac_ext
9480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9482 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9483 # Warning - without using the other run time loading flags,
9484 # -berok will link without error, but may produce a broken library.
9485 no_undefined_flag=' ${wl}-bernotok'
9486 allow_undefined_flag=' ${wl}-berok'
9487 # Exported symbols can be pulled into shared objects from archives
9488 whole_archive_flag_spec='$convenience'
9489 archive_cmds_need_lc=yes
9490 # This is similar to how AIX traditionally builds its shared libraries.
9491 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'
9496 amigaos*)
9497 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)'
9498 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_minus_L=yes
9500 # see comment about different semantics on the GNU ld section
9501 ld_shlibs=no
9504 bsdi[45]*)
9505 export_dynamic_flag_spec=-rdynamic
9508 cygwin* | mingw* | pw32*)
9509 # When not using gcc, we currently assume that we are using
9510 # Microsoft Visual C++.
9511 # hardcode_libdir_flag_spec is actually meaningless, as there is
9512 # no search path for DLLs.
9513 hardcode_libdir_flag_spec=' '
9514 allow_undefined_flag=unsupported
9515 # Tell ltmain to make .lib files, not .a files.
9516 libext=lib
9517 # Tell ltmain to make .dll files, not .so files.
9518 shrext_cmds=".dll"
9519 # FIXME: Setting linknames here is a bad hack.
9520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9521 # The linker will automatically build a .lib file if we build a DLL.
9522 old_archive_From_new_cmds='true'
9523 # FIXME: Should let the user specify the lib program.
9524 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9525 fix_srcfile_path='`cygpath -w "$srcfile"`'
9526 enable_shared_with_static_runtimes=yes
9529 darwin* | rhapsody*)
9530 case $host_os in
9531 rhapsody* | darwin1.[012])
9532 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9534 *) # Darwin 1.3 on
9535 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9536 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9537 else
9538 case ${MACOSX_DEPLOYMENT_TARGET} in
9539 10.[012])
9540 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9542 10.*)
9543 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9545 esac
9548 esac
9549 archive_cmds_need_lc=no
9550 hardcode_direct=no
9551 hardcode_automatic=yes
9552 hardcode_shlibpath_var=unsupported
9553 whole_archive_flag_spec=''
9554 link_all_deplibs=yes
9555 if test "$GCC" = yes ; then
9556 output_verbose_link_cmd='echo'
9557 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9558 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9559 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}"
9560 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}"
9561 else
9562 case $cc_basename in
9563 xlc*)
9564 output_verbose_link_cmd='echo'
9565 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9566 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9568 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}'
9569 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}'
9572 ld_shlibs=no
9574 esac
9578 dgux*)
9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_shlibpath_var=no
9584 freebsd1*)
9585 ld_shlibs=no
9588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9589 # support. Future versions do this automatically, but an explicit c++rt0.o
9590 # does not break anything, and helps significantly (at the cost of a little
9591 # extra space).
9592 freebsd2.2*)
9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9600 freebsd2*)
9601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9602 hardcode_direct=yes
9603 hardcode_minus_L=yes
9604 hardcode_shlibpath_var=no
9607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9608 freebsd* | dragonfly*)
9609 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9610 hardcode_libdir_flag_spec='-R$libdir'
9611 hardcode_direct=yes
9612 hardcode_shlibpath_var=no
9615 hpux9*)
9616 if test "$GCC" = yes; then
9617 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'
9618 else
9619 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'
9621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9622 hardcode_libdir_separator=:
9623 hardcode_direct=yes
9625 # hardcode_minus_L: Not really in the search PATH,
9626 # but as the default location of the library.
9627 hardcode_minus_L=yes
9628 export_dynamic_flag_spec='${wl}-E'
9631 hpux10*)
9632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9633 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9634 else
9635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9637 if test "$with_gnu_ld" = no; then
9638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9639 hardcode_libdir_separator=:
9641 hardcode_direct=yes
9642 export_dynamic_flag_spec='${wl}-E'
9644 # hardcode_minus_L: Not really in the search PATH,
9645 # but as the default location of the library.
9646 hardcode_minus_L=yes
9650 hpux11*)
9651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9652 case $host_cpu in
9653 hppa*64*)
9654 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 ia64*)
9657 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9660 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9662 esac
9663 else
9664 case $host_cpu in
9665 hppa*64*)
9666 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 ia64*)
9669 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9674 esac
9676 if test "$with_gnu_ld" = no; then
9677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9678 hardcode_libdir_separator=:
9680 case $host_cpu in
9681 hppa*64*|ia64*)
9682 hardcode_libdir_flag_spec_ld='+b $libdir'
9683 hardcode_direct=no
9684 hardcode_shlibpath_var=no
9687 hardcode_direct=yes
9688 export_dynamic_flag_spec='${wl}-E'
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9694 esac
9698 irix5* | irix6* | nonstopux*)
9699 if test "$GCC" = yes; then
9700 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'
9701 else
9702 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'
9703 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9706 hardcode_libdir_separator=:
9707 link_all_deplibs=yes
9710 netbsd* | netbsdelf*-gnu)
9711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9713 else
9714 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9716 hardcode_libdir_flag_spec='-R$libdir'
9717 hardcode_direct=yes
9718 hardcode_shlibpath_var=no
9721 newsos6)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_direct=yes
9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725 hardcode_libdir_separator=:
9726 hardcode_shlibpath_var=no
9729 openbsd*)
9730 if test -f /usr/libexec/ld.so; then
9731 hardcode_direct=yes
9732 hardcode_shlibpath_var=no
9733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9737 export_dynamic_flag_spec='${wl}-E'
9738 else
9739 case $host_os in
9740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_libdir_flag_spec='-R$libdir'
9745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9748 esac
9750 else
9751 ld_shlibs=no
9755 os2*)
9756 hardcode_libdir_flag_spec='-L$libdir'
9757 hardcode_minus_L=yes
9758 allow_undefined_flag=unsupported
9759 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'
9760 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9763 osf3*)
9764 if test "$GCC" = yes; then
9765 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9766 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'
9767 else
9768 allow_undefined_flag=' -expect_unresolved \*'
9769 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'
9771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9772 hardcode_libdir_separator=:
9775 osf4* | osf5*) # as osf3* with the addition of -msym flag
9776 if test "$GCC" = yes; then
9777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9778 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'
9779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9780 else
9781 allow_undefined_flag=' -expect_unresolved \*'
9782 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'
9783 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9784 $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'
9786 # Both c and cxx compiler support -rpath directly
9787 hardcode_libdir_flag_spec='-rpath $libdir'
9789 hardcode_libdir_separator=:
9792 solaris*)
9793 no_undefined_flag=' -z text'
9794 if test "$GCC" = yes; then
9795 wlarc='${wl}'
9796 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9799 else
9800 wlarc=''
9801 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9805 hardcode_libdir_flag_spec='-R$libdir'
9806 hardcode_shlibpath_var=no
9807 case $host_os in
9808 solaris2.[0-5] | solaris2.[0-5].*) ;;
9810 # The compiler driver will combine and reorder linker options,
9811 # but understands `-z linker_flag'. GCC discards it without `$wl',
9812 # but is careful enough not to reorder.
9813 # Supported since Solaris 2.6 (maybe 2.5.1?)
9814 if test "$GCC" = yes; then
9815 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9816 else
9817 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9820 esac
9821 link_all_deplibs=yes
9824 sunos4*)
9825 if test "x$host_vendor" = xsequent; then
9826 # Use $CC to link under sequent, because it throws in some extra .o
9827 # files that make .init and .fini sections work.
9828 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9829 else
9830 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_direct=yes
9834 hardcode_minus_L=yes
9835 hardcode_shlibpath_var=no
9838 sysv4)
9839 case $host_vendor in
9840 sni)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_direct=yes # is this really true???
9844 siemens)
9845 ## LD is ld it makes a PLAMLIB
9846 ## CC just makes a GrossModule.
9847 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9848 reload_cmds='$CC -r -o $output$reload_objs'
9849 hardcode_direct=no
9851 motorola)
9852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9855 esac
9856 runpath_var='LD_RUN_PATH'
9857 hardcode_shlibpath_var=no
9860 sysv4.3*)
9861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_shlibpath_var=no
9863 export_dynamic_flag_spec='-Bexport'
9866 sysv4*MP*)
9867 if test -d /usr/nec; then
9868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 hardcode_shlibpath_var=no
9870 runpath_var=LD_RUN_PATH
9871 hardcode_runpath_var=yes
9872 ld_shlibs=yes
9876 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9877 no_undefined_flag='${wl}-z,text'
9878 archive_cmds_need_lc=no
9879 hardcode_shlibpath_var=no
9880 runpath_var='LD_RUN_PATH'
9882 if test "$GCC" = yes; then
9883 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9885 else
9886 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 sysv5* | sco3.2v5* | sco5v6*)
9892 # Note: We can NOT use -z defs as we might desire, because we do not
9893 # link with -lc, and that would cause any symbols used from libc to
9894 # always be unresolved, which means just about no library would
9895 # ever link correctly. If we're not using GNU ld we use -z text
9896 # though, which does catch some bad symbols but isn't as heavy-handed
9897 # as -z defs.
9898 no_undefined_flag='${wl}-z,text'
9899 allow_undefined_flag='${wl}-z,nodefs'
9900 archive_cmds_need_lc=no
9901 hardcode_shlibpath_var=no
9902 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9903 hardcode_libdir_separator=':'
9904 link_all_deplibs=yes
9905 export_dynamic_flag_spec='${wl}-Bexport'
9906 runpath_var='LD_RUN_PATH'
9908 if test "$GCC" = yes; then
9909 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9910 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9911 else
9912 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 uts4*)
9918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919 hardcode_libdir_flag_spec='-L$libdir'
9920 hardcode_shlibpath_var=no
9924 ld_shlibs=no
9926 esac
9929 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9930 echo "${ECHO_T}$ld_shlibs" >&6; }
9931 test "$ld_shlibs" = no && can_build_shared=no
9934 # Do we need to explicitly link libc?
9936 case "x$archive_cmds_need_lc" in
9937 x|xyes)
9938 # Assume -lc should be added
9939 archive_cmds_need_lc=yes
9941 if test "$enable_shared" = yes && test "$GCC" = yes; then
9942 case $archive_cmds in
9943 *'~'*)
9944 # FIXME: we may have to deal with multi-command sequences.
9946 '$CC '*)
9947 # Test whether the compiler implicitly links with -lc since on some
9948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9949 # to ld, don't add -lc before -lgcc.
9950 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9952 $rm conftest*
9953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9956 (eval $ac_compile) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } 2>conftest.err; then
9960 soname=conftest
9961 lib=conftest
9962 libobjs=conftest.$ac_objext
9963 deplibs=
9964 wl=$lt_prog_compiler_wl
9965 pic_flag=$lt_prog_compiler_pic
9966 compiler_flags=-v
9967 linker_flags=-v
9968 verstring=
9969 output_objdir=.
9970 libname=conftest
9971 lt_save_allow_undefined_flag=$allow_undefined_flag
9972 allow_undefined_flag=
9973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9974 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }
9978 then
9979 archive_cmds_need_lc=no
9980 else
9981 archive_cmds_need_lc=yes
9983 allow_undefined_flag=$lt_save_allow_undefined_flag
9984 else
9985 cat conftest.err 1>&5
9987 $rm conftest*
9988 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9989 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9991 esac
9994 esac
9996 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9998 library_names_spec=
9999 libname_spec='lib$name'
10000 soname_spec=
10001 shrext_cmds=".so"
10002 postinstall_cmds=
10003 postuninstall_cmds=
10004 finish_cmds=
10005 finish_eval=
10006 shlibpath_var=
10007 shlibpath_overrides_runpath=unknown
10008 version_type=none
10009 dynamic_linker="$host_os ld.so"
10010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10012 if test "$GCC" = yes; then
10013 case $host_os in
10014 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10015 *) lt_awk_arg="/^libraries:/" ;;
10016 esac
10017 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10018 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10019 # if the path contains ";" then we assume it to be the separator
10020 # otherwise default to the standard path separator (i.e. ":") - it is
10021 # assumed that no part of a normal pathname contains ";" but that should
10022 # okay in the real world where ";" in dirpaths is itself problematic.
10023 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10024 else
10025 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10027 # Ok, now we have the path, separated by spaces, we can step through it
10028 # and add multilib dir if necessary.
10029 lt_tmp_lt_search_path_spec=
10030 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10031 for lt_sys_path in $lt_search_path_spec; do
10032 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10034 else
10035 test -d "$lt_sys_path" && \
10036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10038 done
10039 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10040 BEGIN {RS=" "; FS="/|\n";} {
10041 lt_foo="";
10042 lt_count=0;
10043 for (lt_i = NF; lt_i > 0; lt_i--) {
10044 if ($lt_i != "" && $lt_i != ".") {
10045 if ($lt_i == "..") {
10046 lt_count++;
10047 } else {
10048 if (lt_count == 0) {
10049 lt_foo="/" $lt_i lt_foo;
10050 } else {
10051 lt_count--;
10056 if (lt_foo != "") { lt_freq[lt_foo]++; }
10057 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10059 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10060 else
10061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10063 need_lib_prefix=unknown
10064 hardcode_into_libs=no
10066 # when you set need_version to no, make sure it does not cause -set_version
10067 # flags to be left without arguments
10068 need_version=unknown
10070 case $host_os in
10071 aix3*)
10072 version_type=linux
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10074 shlibpath_var=LIBPATH
10076 # AIX 3 has no versioning support, so we append a major version to the name.
10077 soname_spec='${libname}${release}${shared_ext}$major'
10080 aix[4-9]*)
10081 version_type=linux
10082 need_lib_prefix=no
10083 need_version=no
10084 hardcode_into_libs=yes
10085 if test "$host_cpu" = ia64; then
10086 # AIX 5 supports IA64
10087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 else
10090 # With GCC up to 2.95.x, collect2 would create an import file
10091 # for dependence libraries. The import file would start with
10092 # the line `#! .'. This would cause the generated library to
10093 # depend on `.', always an invalid library. This was fixed in
10094 # development snapshots of GCC prior to 3.0.
10095 case $host_os in
10096 aix4 | aix4.[01] | aix4.[01].*)
10097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10098 echo ' yes '
10099 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10101 else
10102 can_build_shared=no
10105 esac
10106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10107 # soname into executable. Probably we can add versioning support to
10108 # collect2, so additional links can be useful in future.
10109 if test "$aix_use_runtimelinking" = yes; then
10110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10111 # instead of lib<name>.a to let people know that these are not
10112 # typical AIX shared libraries.
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 else
10115 # We preserve .a as extension for shared libraries through AIX4.2
10116 # and later when we are not doing run time linking.
10117 library_names_spec='${libname}${release}.a $libname.a'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10120 shlibpath_var=LIBPATH
10124 amigaos*)
10125 library_names_spec='$libname.ixlibrary $libname.a'
10126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10127 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'
10130 beos*)
10131 library_names_spec='${libname}${shared_ext}'
10132 dynamic_linker="$host_os ld.so"
10133 shlibpath_var=LIBRARY_PATH
10136 bsdi[45]*)
10137 version_type=linux
10138 need_version=no
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10145 # the default ld.so.conf also contains /usr/contrib/lib and
10146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10147 # libtool to hard-code these into programs
10150 cygwin* | mingw* | pw32*)
10151 version_type=windows
10152 shrext_cmds=".dll"
10153 need_version=no
10154 need_lib_prefix=no
10156 case $GCC,$host_os in
10157 yes,cygwin* | yes,mingw* | yes,pw32*)
10158 library_names_spec='$libname.dll.a'
10159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10160 postinstall_cmds='base_file=`basename \${file}`~
10161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10162 dldir=$destdir/`dirname \$dlpath`~
10163 test -d \$dldir || mkdir -p \$dldir~
10164 $install_prog $dir/$dlname \$dldir/$dlname~
10165 chmod a+x \$dldir/$dlname'
10166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10167 dlpath=$dir/\$dldll~
10168 $rm \$dlpath'
10169 shlibpath_overrides_runpath=yes
10171 case $host_os in
10172 cygwin*)
10173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10175 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10177 mingw*)
10178 # MinGW DLLs use traditional 'lib' prefix
10179 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10181 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10182 # It is most probably a Windows format PATH printed by
10183 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10184 # path with ; separators, and with drive letters. We can handle the
10185 # drive letters (cygwin fileutils understands them), so leave them,
10186 # especially as we might pass files found there to a mingw objdump,
10187 # which wouldn't understand a cygwinified path. Ahh.
10188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10189 else
10190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10193 pw32*)
10194 # pw32 DLLs use 'pw' prefix rather than 'lib'
10195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10197 esac
10201 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10203 esac
10204 dynamic_linker='Win32 ld.exe'
10205 # FIXME: first we should search . and the directory the executable is in
10206 shlibpath_var=PATH
10209 darwin* | rhapsody*)
10210 dynamic_linker="$host_os dyld"
10211 version_type=darwin
10212 need_lib_prefix=no
10213 need_version=no
10214 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10215 soname_spec='${libname}${release}${major}$shared_ext'
10216 shlibpath_overrides_runpath=yes
10217 shlibpath_var=DYLD_LIBRARY_PATH
10218 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10220 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10224 dgux*)
10225 version_type=linux
10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LD_LIBRARY_PATH
10233 freebsd1*)
10234 dynamic_linker=no
10237 freebsd* | dragonfly*)
10238 # DragonFly does not have aout. When/if they implement a new
10239 # versioning mechanism, adjust this.
10240 if test -x /usr/bin/objformat; then
10241 objformat=`/usr/bin/objformat`
10242 else
10243 case $host_os in
10244 freebsd[123]*) objformat=aout ;;
10245 *) objformat=elf ;;
10246 esac
10248 version_type=freebsd-$objformat
10249 case $version_type in
10250 freebsd-elf*)
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10252 need_version=no
10253 need_lib_prefix=no
10255 freebsd-*)
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10257 need_version=yes
10259 esac
10260 shlibpath_var=LD_LIBRARY_PATH
10261 case $host_os in
10262 freebsd2*)
10263 shlibpath_overrides_runpath=yes
10265 freebsd3.[01]* | freebsdelf3.[01]*)
10266 shlibpath_overrides_runpath=yes
10267 hardcode_into_libs=yes
10269 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10270 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10271 shlibpath_overrides_runpath=no
10272 hardcode_into_libs=yes
10274 *) # from 4.6 on, and DragonFly
10275 shlibpath_overrides_runpath=yes
10276 hardcode_into_libs=yes
10278 esac
10281 gnu*)
10282 version_type=linux
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 hardcode_into_libs=yes
10291 hpux9* | hpux10* | hpux11*)
10292 # Give a soname corresponding to the major version so that dld.sl refuses to
10293 # link against other versions.
10294 version_type=sunos
10295 need_lib_prefix=no
10296 need_version=no
10297 case $host_cpu in
10298 ia64*)
10299 shrext_cmds='.so'
10300 hardcode_into_libs=yes
10301 dynamic_linker="$host_os dld.so"
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 if test "X$HPUX_IA64_MODE" = X32; then
10307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10308 else
10309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10313 hppa*64*)
10314 shrext_cmds='.sl'
10315 hardcode_into_libs=yes
10316 dynamic_linker="$host_os dld.sl"
10317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10325 shrext_cmds='.sl'
10326 dynamic_linker="$host_os dld.sl"
10327 shlibpath_var=SHLIB_PATH
10328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10332 esac
10333 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10334 postinstall_cmds='chmod 555 $lib'
10337 interix[3-9]*)
10338 version_type=linux
10339 need_lib_prefix=no
10340 need_version=no
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 shlibpath_overrides_runpath=no
10346 hardcode_into_libs=yes
10349 irix5* | irix6* | nonstopux*)
10350 case $host_os in
10351 nonstopux*) version_type=nonstopux ;;
10353 if test "$lt_cv_prog_gnu_ld" = yes; then
10354 version_type=linux
10355 else
10356 version_type=irix
10357 fi ;;
10358 esac
10359 need_lib_prefix=no
10360 need_version=no
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10363 case $host_os in
10364 irix5* | nonstopux*)
10365 libsuff= shlibsuff=
10368 case $LD in # libtool.m4 will add one of these switches to LD
10369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10370 libsuff= shlibsuff= libmagic=32-bit;;
10371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10372 libsuff=32 shlibsuff=N32 libmagic=N32;;
10373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10374 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10375 *) libsuff= shlibsuff= libmagic=never-match;;
10376 esac
10378 esac
10379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10380 shlibpath_overrides_runpath=no
10381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10383 hardcode_into_libs=yes
10386 # No shared lib support for Linux oldld, aout, or coff.
10387 linux*oldld* | linux*aout* | linux*coff*)
10388 dynamic_linker=no
10391 # This must be Linux ELF.
10392 linux* | k*bsd*-gnu)
10393 version_type=linux
10394 need_lib_prefix=no
10395 need_version=no
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=no
10401 # This implies no fast_install, which is unacceptable.
10402 # Some rework will be needed to allow for fast_install
10403 # before this can be enabled.
10404 hardcode_into_libs=yes
10406 # Append ld.so.conf contents to the search path
10407 if test -f /etc/ld.so.conf; then
10408 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' ' '`
10409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10412 # We used to test for /lib/ld.so.1 and disable shared libraries on
10413 # powerpc, because MkLinux only supported shared libraries with the
10414 # GNU dynamic linker. Since this was broken with cross compilers,
10415 # most powerpc-linux boxes support dynamic linking these days and
10416 # people can always --disable-shared, the test was removed, and we
10417 # assume the GNU/Linux dynamic linker is in use.
10418 dynamic_linker='GNU/Linux ld.so'
10421 netbsdelf*-gnu)
10422 version_type=linux
10423 need_lib_prefix=no
10424 need_version=no
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 hardcode_into_libs=yes
10430 dynamic_linker='NetBSD ld.elf_so'
10433 netbsd*)
10434 version_type=sunos
10435 need_lib_prefix=no
10436 need_version=no
10437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10440 dynamic_linker='NetBSD (a.out) ld.so'
10441 else
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 dynamic_linker='NetBSD ld.elf_so'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 shlibpath_overrides_runpath=yes
10448 hardcode_into_libs=yes
10451 newsos6)
10452 version_type=linux
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 shlibpath_var=LD_LIBRARY_PATH
10455 shlibpath_overrides_runpath=yes
10458 nto-qnx*)
10459 version_type=linux
10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=yes
10468 openbsd*)
10469 version_type=sunos
10470 sys_lib_dlsearch_path_spec="/usr/lib"
10471 need_lib_prefix=no
10472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10473 case $host_os in
10474 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10475 *) need_version=no ;;
10476 esac
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10481 case $host_os in
10482 openbsd2.[89] | openbsd2.[89].*)
10483 shlibpath_overrides_runpath=no
10486 shlibpath_overrides_runpath=yes
10488 esac
10489 else
10490 shlibpath_overrides_runpath=yes
10494 os2*)
10495 libname_spec='$name'
10496 shrext_cmds=".dll"
10497 need_lib_prefix=no
10498 library_names_spec='$libname${shared_ext} $libname.a'
10499 dynamic_linker='OS/2 ld.exe'
10500 shlibpath_var=LIBPATH
10503 osf3* | osf4* | osf5*)
10504 version_type=osf
10505 need_lib_prefix=no
10506 need_version=no
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10511 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10514 rdos*)
10515 dynamic_linker=no
10518 solaris*)
10519 version_type=linux
10520 need_lib_prefix=no
10521 need_version=no
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10526 hardcode_into_libs=yes
10527 # ldd complains unless libraries are executable
10528 postinstall_cmds='chmod +x $lib'
10531 sunos4*)
10532 version_type=sunos
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10534 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes
10537 if test "$with_gnu_ld" = yes; then
10538 need_lib_prefix=no
10540 need_version=yes
10543 sysv4 | sysv4.3*)
10544 version_type=linux
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 case $host_vendor in
10549 sni)
10550 shlibpath_overrides_runpath=no
10551 need_lib_prefix=no
10552 export_dynamic_flag_spec='${wl}-Blargedynsym'
10553 runpath_var=LD_RUN_PATH
10555 siemens)
10556 need_lib_prefix=no
10558 motorola)
10559 need_lib_prefix=no
10560 need_version=no
10561 shlibpath_overrides_runpath=no
10562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10564 esac
10567 sysv4*MP*)
10568 if test -d /usr/nec ;then
10569 version_type=linux
10570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10571 soname_spec='$libname${shared_ext}.$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10577 version_type=freebsd-elf
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 hardcode_into_libs=yes
10584 if test "$with_gnu_ld" = yes; then
10585 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10586 shlibpath_overrides_runpath=no
10587 else
10588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10589 shlibpath_overrides_runpath=yes
10590 case $host_os in
10591 sco3.2v5*)
10592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10594 esac
10596 sys_lib_dlsearch_path_spec='/usr/lib'
10599 uts4*)
10600 version_type=linux
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 shlibpath_var=LD_LIBRARY_PATH
10607 dynamic_linker=no
10609 esac
10610 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10611 echo "${ECHO_T}$dynamic_linker" >&6; }
10612 test "$dynamic_linker" = no && can_build_shared=no
10614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10620 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10621 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10627 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10630 if test "$GCC" = yes; then
10631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10634 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10635 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10636 hardcode_action=
10637 if test -n "$hardcode_libdir_flag_spec" || \
10638 test -n "$runpath_var" || \
10639 test "X$hardcode_automatic" = "Xyes" ; then
10641 # We can hardcode non-existant directories.
10642 if test "$hardcode_direct" != no &&
10643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10644 # have to relink, otherwise we might link with an installed library
10645 # when we should be linking with a yet-to-be-installed one
10646 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10647 test "$hardcode_minus_L" != no; then
10648 # Linking always hardcodes the temporary library directory.
10649 hardcode_action=relink
10650 else
10651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10652 hardcode_action=immediate
10654 else
10655 # We cannot hardcode anything, or else we can only hardcode existing
10656 # directories.
10657 hardcode_action=unsupported
10659 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10660 echo "${ECHO_T}$hardcode_action" >&6; }
10662 if test "$hardcode_action" = relink; then
10663 # Fast installation is not supported
10664 enable_fast_install=no
10665 elif test "$shlibpath_overrides_runpath" = yes ||
10666 test "$enable_shared" = no; then
10667 # Fast installation is not necessary
10668 enable_fast_install=needless
10671 striplib=
10672 old_striplib=
10673 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10674 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10675 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10678 { echo "$as_me:$LINENO: result: yes" >&5
10679 echo "${ECHO_T}yes" >&6; }
10680 else
10681 # FIXME - insert some real tests, host_os isn't really good enough
10682 case $host_os in
10683 darwin*)
10684 if test -n "$STRIP" ; then
10685 striplib="$STRIP -x"
10686 old_striplib="$STRIP -S"
10687 { echo "$as_me:$LINENO: result: yes" >&5
10688 echo "${ECHO_T}yes" >&6; }
10689 else
10690 { echo "$as_me:$LINENO: result: no" >&5
10691 echo "${ECHO_T}no" >&6; }
10695 { echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6; }
10698 esac
10701 if test "x$enable_dlopen" != xyes; then
10702 enable_dlopen=unknown
10703 enable_dlopen_self=unknown
10704 enable_dlopen_self_static=unknown
10705 else
10706 lt_cv_dlopen=no
10707 lt_cv_dlopen_libs=
10709 case $host_os in
10710 beos*)
10711 lt_cv_dlopen="load_add_on"
10712 lt_cv_dlopen_libs=
10713 lt_cv_dlopen_self=yes
10716 mingw* | pw32*)
10717 lt_cv_dlopen="LoadLibrary"
10718 lt_cv_dlopen_libs=
10721 cygwin*)
10722 lt_cv_dlopen="dlopen"
10723 lt_cv_dlopen_libs=
10726 darwin*)
10727 # if libdl is installed we need to link against it
10728 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldl $LIBS"
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h. */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 char dlopen ();
10750 main ()
10752 return dlopen ();
10754 return 0;
10756 _ACEOF
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_link") 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest$ac_exeext &&
10774 $as_test_x conftest$ac_exeext; then
10775 ac_cv_lib_dl_dlopen=yes
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_lib_dl_dlopen=no
10783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10787 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10788 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10789 if test $ac_cv_lib_dl_dlopen = yes; then
10790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10791 else
10793 lt_cv_dlopen="dyld"
10794 lt_cv_dlopen_libs=
10795 lt_cv_dlopen_self=yes
10802 { echo "$as_me:$LINENO: checking for shl_load" >&5
10803 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10804 if test "${ac_cv_func_shl_load+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10815 #define shl_load innocuous_shl_load
10817 /* System header to define __stub macros and hopefully few prototypes,
10818 which can conflict with char shl_load (); below.
10819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10820 <limits.h> exists even on freestanding compilers. */
10822 #ifdef __STDC__
10823 # include <limits.h>
10824 #else
10825 # include <assert.h>
10826 #endif
10828 #undef shl_load
10830 /* Override any GCC internal prototype to avoid an error.
10831 Use char because int might match the return type of a GCC
10832 builtin and then its argument prototype would still apply. */
10833 #ifdef __cplusplus
10834 extern "C"
10835 #endif
10836 char shl_load ();
10837 /* The GNU C library defines this for functions which it implements
10838 to always fail with ENOSYS. Some functions are actually named
10839 something starting with __ and the normal name is an alias. */
10840 #if defined __stub_shl_load || defined __stub___shl_load
10841 choke me
10842 #endif
10845 main ()
10847 return shl_load ();
10849 return 0;
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_link") 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_c_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest$ac_exeext &&
10869 $as_test_x conftest$ac_exeext; then
10870 ac_cv_func_shl_load=yes
10871 else
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 ac_cv_func_shl_load=no
10878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10879 conftest$ac_exeext conftest.$ac_ext
10881 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10883 if test $ac_cv_func_shl_load = yes; then
10884 lt_cv_dlopen="shl_load"
10885 else
10886 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10887 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-ldld $LIBS"
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10903 #ifdef __cplusplus
10904 extern "C"
10905 #endif
10906 char shl_load ();
10908 main ()
10910 return shl_load ();
10912 return 0;
10914 _ACEOF
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (ac_try="$ac_link"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_link") 2>conftest.er1
10923 ac_status=$?
10924 grep -v '^ *+' conftest.er1 >conftest.err
10925 rm -f conftest.er1
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest$ac_exeext &&
10932 $as_test_x conftest$ac_exeext; then
10933 ac_cv_lib_dld_shl_load=yes
10934 else
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_cv_lib_dld_shl_load=no
10941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10942 conftest$ac_exeext conftest.$ac_ext
10943 LIBS=$ac_check_lib_save_LIBS
10945 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10946 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10947 if test $ac_cv_lib_dld_shl_load = yes; then
10948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10949 else
10950 { echo "$as_me:$LINENO: checking for dlopen" >&5
10951 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10952 if test "${ac_cv_func_dlopen+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10963 #define dlopen innocuous_dlopen
10965 /* System header to define __stub macros and hopefully few prototypes,
10966 which can conflict with char dlopen (); below.
10967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10968 <limits.h> exists even on freestanding compilers. */
10970 #ifdef __STDC__
10971 # include <limits.h>
10972 #else
10973 # include <assert.h>
10974 #endif
10976 #undef dlopen
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char dlopen ();
10985 /* The GNU C library defines this for functions which it implements
10986 to always fail with ENOSYS. Some functions are actually named
10987 something starting with __ and the normal name is an alias. */
10988 #if defined __stub_dlopen || defined __stub___dlopen
10989 choke me
10990 #endif
10993 main ()
10995 return dlopen ();
10997 return 0;
10999 _ACEOF
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_link") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest$ac_exeext &&
11017 $as_test_x conftest$ac_exeext; then
11018 ac_cv_func_dlopen=yes
11019 else
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11023 ac_cv_func_dlopen=no
11026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11027 conftest$ac_exeext conftest.$ac_ext
11029 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11030 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11031 if test $ac_cv_func_dlopen = yes; then
11032 lt_cv_dlopen="dlopen"
11033 else
11034 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 ac_check_lib_save_LIBS=$LIBS
11040 LIBS="-ldl $LIBS"
11041 cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h. */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11051 #ifdef __cplusplus
11052 extern "C"
11053 #endif
11054 char dlopen ();
11056 main ()
11058 return dlopen ();
11060 return 0;
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_link") 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } && {
11077 test -z "$ac_c_werror_flag" ||
11078 test ! -s conftest.err
11079 } && test -s conftest$ac_exeext &&
11080 $as_test_x conftest$ac_exeext; then
11081 ac_cv_lib_dl_dlopen=yes
11082 else
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_cv_lib_dl_dlopen=no
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_lib_save_LIBS
11093 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11094 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11095 if test $ac_cv_lib_dl_dlopen = yes; then
11096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11097 else
11098 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11099 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11100 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-lsvld $LIBS"
11105 cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h. */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 char dlopen ();
11120 main ()
11122 return dlopen ();
11124 return 0;
11126 _ACEOF
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (ac_try="$ac_link"
11129 case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_link") 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } && {
11141 test -z "$ac_c_werror_flag" ||
11142 test ! -s conftest.err
11143 } && test -s conftest$ac_exeext &&
11144 $as_test_x conftest$ac_exeext; then
11145 ac_cv_lib_svld_dlopen=yes
11146 else
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_lib_svld_dlopen=no
11153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11154 conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11157 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11158 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11159 if test $ac_cv_lib_svld_dlopen = yes; then
11160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11161 else
11162 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11163 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11164 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167 ac_check_lib_save_LIBS=$LIBS
11168 LIBS="-ldld $LIBS"
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h. */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char dld_link ();
11184 main ()
11186 return dld_link ();
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext conftest$ac_exeext
11192 if { (ac_try="$ac_link"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_link") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest$ac_exeext &&
11208 $as_test_x conftest$ac_exeext; then
11209 ac_cv_lib_dld_dld_link=yes
11210 else
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 ac_cv_lib_dld_dld_link=no
11217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11218 conftest$ac_exeext conftest.$ac_ext
11219 LIBS=$ac_check_lib_save_LIBS
11221 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11222 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11223 if test $ac_cv_lib_dld_dld_link = yes; then
11224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11243 esac
11245 if test "x$lt_cv_dlopen" != xno; then
11246 enable_dlopen=yes
11247 else
11248 enable_dlopen=no
11251 case $lt_cv_dlopen in
11252 dlopen)
11253 save_CPPFLAGS="$CPPFLAGS"
11254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11256 save_LDFLAGS="$LDFLAGS"
11257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11259 save_LIBS="$LIBS"
11260 LIBS="$lt_cv_dlopen_libs $LIBS"
11262 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11263 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11264 if test "${lt_cv_dlopen_self+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 if test "$cross_compiling" = yes; then :
11268 lt_cv_dlopen_self=cross
11269 else
11270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11271 lt_status=$lt_dlunknown
11272 cat > conftest.$ac_ext <<EOF
11273 #line 11273 "configure"
11274 #include "confdefs.h"
11276 #if HAVE_DLFCN_H
11277 #include <dlfcn.h>
11278 #endif
11280 #include <stdio.h>
11282 #ifdef RTLD_GLOBAL
11283 # define LT_DLGLOBAL RTLD_GLOBAL
11284 #else
11285 # ifdef DL_GLOBAL
11286 # define LT_DLGLOBAL DL_GLOBAL
11287 # else
11288 # define LT_DLGLOBAL 0
11289 # endif
11290 #endif
11292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11293 find out it does not work in some platform. */
11294 #ifndef LT_DLLAZY_OR_NOW
11295 # ifdef RTLD_LAZY
11296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11297 # else
11298 # ifdef DL_LAZY
11299 # define LT_DLLAZY_OR_NOW DL_LAZY
11300 # else
11301 # ifdef RTLD_NOW
11302 # define LT_DLLAZY_OR_NOW RTLD_NOW
11303 # else
11304 # ifdef DL_NOW
11305 # define LT_DLLAZY_OR_NOW DL_NOW
11306 # else
11307 # define LT_DLLAZY_OR_NOW 0
11308 # endif
11309 # endif
11310 # endif
11311 # endif
11312 #endif
11314 #ifdef __cplusplus
11315 extern "C" void exit (int);
11316 #endif
11318 void fnord() { int i=42;}
11319 int main ()
11321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11322 int status = $lt_dlunknown;
11324 if (self)
11326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11328 /* dlclose (self); */
11330 else
11331 puts (dlerror ());
11333 exit (status);
11336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11337 (eval $ac_link) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11341 (./conftest; exit; ) >&5 2>/dev/null
11342 lt_status=$?
11343 case x$lt_status in
11344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11346 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11347 esac
11348 else :
11349 # compilation failed
11350 lt_cv_dlopen_self=no
11353 rm -fr conftest*
11357 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11358 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11360 if test "x$lt_cv_dlopen_self" = xyes; then
11361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11362 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11363 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11364 if test "${lt_cv_dlopen_self_static+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367 if test "$cross_compiling" = yes; then :
11368 lt_cv_dlopen_self_static=cross
11369 else
11370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11371 lt_status=$lt_dlunknown
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11373 "configure"
11374 #include "confdefs.h"
11376 #if HAVE_DLFCN_H
11377 #include <dlfcn.h>
11378 #endif
11380 #include <stdio.h>
11382 #ifdef RTLD_GLOBAL
11383 # define LT_DLGLOBAL RTLD_GLOBAL
11384 #else
11385 # ifdef DL_GLOBAL
11386 # define LT_DLGLOBAL DL_GLOBAL
11387 # else
11388 # define LT_DLGLOBAL 0
11389 # endif
11390 #endif
11392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11393 find out it does not work in some platform. */
11394 #ifndef LT_DLLAZY_OR_NOW
11395 # ifdef RTLD_LAZY
11396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11397 # else
11398 # ifdef DL_LAZY
11399 # define LT_DLLAZY_OR_NOW DL_LAZY
11400 # else
11401 # ifdef RTLD_NOW
11402 # define LT_DLLAZY_OR_NOW RTLD_NOW
11403 # else
11404 # ifdef DL_NOW
11405 # define LT_DLLAZY_OR_NOW DL_NOW
11406 # else
11407 # define LT_DLLAZY_OR_NOW 0
11408 # endif
11409 # endif
11410 # endif
11411 # endif
11412 #endif
11414 #ifdef __cplusplus
11415 extern "C" void exit (int);
11416 #endif
11418 void fnord() { int i=42;}
11419 int main ()
11421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11422 int status = $lt_dlunknown;
11424 if (self)
11426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11428 /* dlclose (self); */
11430 else
11431 puts (dlerror ());
11433 exit (status);
11436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11437 (eval $ac_link) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11441 (./conftest; exit; ) >&5 2>/dev/null
11442 lt_status=$?
11443 case x$lt_status in
11444 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11445 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11446 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11447 esac
11448 else :
11449 # compilation failed
11450 lt_cv_dlopen_self_static=no
11453 rm -fr conftest*
11457 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11458 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11461 CPPFLAGS="$save_CPPFLAGS"
11462 LDFLAGS="$save_LDFLAGS"
11463 LIBS="$save_LIBS"
11465 esac
11467 case $lt_cv_dlopen_self in
11468 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11469 *) enable_dlopen_self=unknown ;;
11470 esac
11472 case $lt_cv_dlopen_self_static in
11473 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11474 *) enable_dlopen_self_static=unknown ;;
11475 esac
11479 # Report which library types will actually be built
11480 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11481 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11482 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11483 echo "${ECHO_T}$can_build_shared" >&6; }
11485 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11486 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11487 test "$can_build_shared" = "no" && enable_shared=no
11489 # On AIX, shared libraries and static libraries use the same namespace, and
11490 # are all built from PIC.
11491 case $host_os in
11492 aix3*)
11493 test "$enable_shared" = yes && enable_static=no
11494 if test -n "$RANLIB"; then
11495 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11496 postinstall_cmds='$RANLIB $lib'
11500 aix[4-9]*)
11501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11502 test "$enable_shared" = yes && enable_static=no
11505 esac
11506 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11507 echo "${ECHO_T}$enable_shared" >&6; }
11509 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11510 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11511 # Make sure either enable_shared or enable_static is yes.
11512 test "$enable_shared" = yes || enable_static=yes
11513 { echo "$as_me:$LINENO: result: $enable_static" >&5
11514 echo "${ECHO_T}$enable_static" >&6; }
11516 # The else clause should only fire when bootstrapping the
11517 # libtool distribution, otherwise you forgot to ship ltmain.sh
11518 # with your package, and you will get complaints that there are
11519 # no rules to generate ltmain.sh.
11520 if test -f "$ltmain"; then
11521 # See if we are running on zsh, and set the options which allow our commands through
11522 # without removal of \ escapes.
11523 if test -n "${ZSH_VERSION+set}" ; then
11524 setopt NO_GLOB_SUBST
11526 # Now quote all the things that may contain metacharacters while being
11527 # careful not to overquote the AC_SUBSTed values. We take copies of the
11528 # variables and quote the copies for generation of the libtool script.
11529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11530 SED SHELL STRIP \
11531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11533 deplibs_check_method reload_flag reload_cmds need_locks \
11534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11535 lt_cv_sys_global_symbol_to_c_name_address \
11536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11537 old_postinstall_cmds old_postuninstall_cmds \
11538 compiler \
11539 CC \
11540 LD \
11541 lt_prog_compiler_wl \
11542 lt_prog_compiler_pic \
11543 lt_prog_compiler_static \
11544 lt_prog_compiler_no_builtin_flag \
11545 export_dynamic_flag_spec \
11546 thread_safe_flag_spec \
11547 whole_archive_flag_spec \
11548 enable_shared_with_static_runtimes \
11549 old_archive_cmds \
11550 old_archive_from_new_cmds \
11551 predep_objects \
11552 postdep_objects \
11553 predeps \
11554 postdeps \
11555 compiler_lib_search_path \
11556 compiler_lib_search_dirs \
11557 archive_cmds \
11558 archive_expsym_cmds \
11559 postinstall_cmds \
11560 postuninstall_cmds \
11561 old_archive_from_expsyms_cmds \
11562 allow_undefined_flag \
11563 no_undefined_flag \
11564 export_symbols_cmds \
11565 hardcode_libdir_flag_spec \
11566 hardcode_libdir_flag_spec_ld \
11567 hardcode_libdir_separator \
11568 hardcode_automatic \
11569 module_cmds \
11570 module_expsym_cmds \
11571 lt_cv_prog_compiler_c_o \
11572 fix_srcfile_path \
11573 exclude_expsyms \
11574 include_expsyms; do
11576 case $var in
11577 old_archive_cmds | \
11578 old_archive_from_new_cmds | \
11579 archive_cmds | \
11580 archive_expsym_cmds | \
11581 module_cmds | \
11582 module_expsym_cmds | \
11583 old_archive_from_expsyms_cmds | \
11584 export_symbols_cmds | \
11585 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11586 postinstall_cmds | postuninstall_cmds | \
11587 old_postinstall_cmds | old_postuninstall_cmds | \
11588 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11589 # Double-quote double-evaled strings.
11590 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11595 esac
11596 done
11598 case $lt_echo in
11599 *'\$0 --fallback-echo"')
11600 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11602 esac
11604 cfgfile="${ofile}T"
11605 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11606 $rm -f "$cfgfile"
11607 { echo "$as_me:$LINENO: creating $ofile" >&5
11608 echo "$as_me: creating $ofile" >&6;}
11610 cat <<__EOF__ >> "$cfgfile"
11611 #! $SHELL
11613 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11614 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11615 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11617 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11618 # Free Software Foundation, Inc.
11620 # This file is part of GNU Libtool:
11621 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11623 # This program is free software; you can redistribute it and/or modify
11624 # it under the terms of the GNU General Public License as published by
11625 # the Free Software Foundation; either version 2 of the License, or
11626 # (at your option) any later version.
11628 # This program is distributed in the hope that it will be useful, but
11629 # WITHOUT ANY WARRANTY; without even the implied warranty of
11630 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11631 # General Public License for more details.
11633 # You should have received a copy of the GNU General Public License
11634 # along with this program; if not, write to the Free Software
11635 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11637 # As a special exception to the GNU General Public License, if you
11638 # distribute this file as part of a program that contains a
11639 # configuration script generated by Autoconf, you may include it under
11640 # the same distribution terms that you use for the rest of that program.
11642 # A sed program that does not truncate output.
11643 SED=$lt_SED
11645 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11646 Xsed="$SED -e 1s/^X//"
11648 # The HP-UX ksh and POSIX shell print the target directory to stdout
11649 # if CDPATH is set.
11650 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11652 # The names of the tagged configurations supported by this script.
11653 available_tags=
11655 # ### BEGIN LIBTOOL CONFIG
11657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11659 # Shell to use when invoking shell scripts.
11660 SHELL=$lt_SHELL
11662 # Whether or not to build shared libraries.
11663 build_libtool_libs=$enable_shared
11665 # Whether or not to build static libraries.
11666 build_old_libs=$enable_static
11668 # Whether or not to add -lc for building shared libraries.
11669 build_libtool_need_lc=$archive_cmds_need_lc
11671 # Whether or not to disallow shared libs when runtime libs are static
11672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11674 # Whether or not to optimize for fast installation.
11675 fast_install=$enable_fast_install
11677 # The host system.
11678 host_alias=$host_alias
11679 host=$host
11680 host_os=$host_os
11682 # The build system.
11683 build_alias=$build_alias
11684 build=$build
11685 build_os=$build_os
11687 # An echo program that does not interpret backslashes.
11688 echo=$lt_echo
11690 # The archiver.
11691 AR=$lt_AR
11692 AR_FLAGS=$lt_AR_FLAGS
11694 # A C compiler.
11695 LTCC=$lt_LTCC
11697 # LTCC compiler flags.
11698 LTCFLAGS=$lt_LTCFLAGS
11700 # A language-specific compiler.
11701 CC=$lt_compiler
11703 # Is the compiler the GNU C compiler?
11704 with_gcc=$GCC
11706 # An ERE matcher.
11707 EGREP=$lt_EGREP
11709 # The linker used to build libraries.
11710 LD=$lt_LD
11712 # Whether we need hard or soft links.
11713 LN_S=$lt_LN_S
11715 # A BSD-compatible nm program.
11716 NM=$lt_NM
11718 # A symbol stripping program
11719 STRIP=$lt_STRIP
11721 # Used to examine libraries when file_magic_cmd begins "file"
11722 MAGIC_CMD=$MAGIC_CMD
11724 # Used on cygwin: DLL creation program.
11725 DLLTOOL="$DLLTOOL"
11727 # Used on cygwin: object dumper.
11728 OBJDUMP="$OBJDUMP"
11730 # Used on cygwin: assembler.
11731 AS="$AS"
11733 # The name of the directory that contains temporary libtool files.
11734 objdir=$objdir
11736 # How to create reloadable object files.
11737 reload_flag=$lt_reload_flag
11738 reload_cmds=$lt_reload_cmds
11740 # How to pass a linker flag through the compiler.
11741 wl=$lt_lt_prog_compiler_wl
11743 # Object file suffix (normally "o").
11744 objext="$ac_objext"
11746 # Old archive suffix (normally "a").
11747 libext="$libext"
11749 # Shared library suffix (normally ".so").
11750 shrext_cmds='$shrext_cmds'
11752 # Executable file suffix (normally "").
11753 exeext="$exeext"
11755 # Additional compiler flags for building library objects.
11756 pic_flag=$lt_lt_prog_compiler_pic
11757 pic_mode=$pic_mode
11759 # What is the maximum length of a command?
11760 max_cmd_len=$lt_cv_sys_max_cmd_len
11762 # Does compiler simultaneously support -c and -o options?
11763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11765 # Must we lock files when doing compilation?
11766 need_locks=$lt_need_locks
11768 # Do we need the lib prefix for modules?
11769 need_lib_prefix=$need_lib_prefix
11771 # Do we need a version for libraries?
11772 need_version=$need_version
11774 # Whether dlopen is supported.
11775 dlopen_support=$enable_dlopen
11777 # Whether dlopen of programs is supported.
11778 dlopen_self=$enable_dlopen_self
11780 # Whether dlopen of statically linked programs is supported.
11781 dlopen_self_static=$enable_dlopen_self_static
11783 # Compiler flag to prevent dynamic linking.
11784 link_static_flag=$lt_lt_prog_compiler_static
11786 # Compiler flag to turn off builtin functions.
11787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11789 # Compiler flag to allow reflexive dlopens.
11790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11792 # Compiler flag to generate shared objects directly from archives.
11793 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11795 # Compiler flag to generate thread-safe objects.
11796 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11798 # Library versioning type.
11799 version_type=$version_type
11801 # Format of library name prefix.
11802 libname_spec=$lt_libname_spec
11804 # List of archive names. First name is the real one, the rest are links.
11805 # The last name is the one that the linker finds with -lNAME.
11806 library_names_spec=$lt_library_names_spec
11808 # The coded name of the library, if different from the real name.
11809 soname_spec=$lt_soname_spec
11811 # Commands used to build and install an old-style archive.
11812 RANLIB=$lt_RANLIB
11813 old_archive_cmds=$lt_old_archive_cmds
11814 old_postinstall_cmds=$lt_old_postinstall_cmds
11815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11817 # Create an old-style archive from a shared archive.
11818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11820 # Create a temporary old-style archive to link instead of a shared archive.
11821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11823 # Commands used to build and install a shared archive.
11824 archive_cmds=$lt_archive_cmds
11825 archive_expsym_cmds=$lt_archive_expsym_cmds
11826 postinstall_cmds=$lt_postinstall_cmds
11827 postuninstall_cmds=$lt_postuninstall_cmds
11829 # Commands used to build a loadable module (assumed same as above if empty)
11830 module_cmds=$lt_module_cmds
11831 module_expsym_cmds=$lt_module_expsym_cmds
11833 # Commands to strip libraries.
11834 old_striplib=$lt_old_striplib
11835 striplib=$lt_striplib
11837 # Dependencies to place before the objects being linked to create a
11838 # shared library.
11839 predep_objects=$lt_predep_objects
11841 # Dependencies to place after the objects being linked to create a
11842 # shared library.
11843 postdep_objects=$lt_postdep_objects
11845 # Dependencies to place before the objects being linked to create a
11846 # shared library.
11847 predeps=$lt_predeps
11849 # Dependencies to place after the objects being linked to create a
11850 # shared library.
11851 postdeps=$lt_postdeps
11853 # The directories searched by this compiler when creating a shared
11854 # library
11855 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11857 # The library search path used internally by the compiler when linking
11858 # a shared library.
11859 compiler_lib_search_path=$lt_compiler_lib_search_path
11861 # Method to check whether dependent libraries are shared objects.
11862 deplibs_check_method=$lt_deplibs_check_method
11864 # Command to use when deplibs_check_method == file_magic.
11865 file_magic_cmd=$lt_file_magic_cmd
11867 # Flag that allows shared libraries with undefined symbols to be built.
11868 allow_undefined_flag=$lt_allow_undefined_flag
11870 # Flag that forces no undefined symbols.
11871 no_undefined_flag=$lt_no_undefined_flag
11873 # Commands used to finish a libtool library installation in a directory.
11874 finish_cmds=$lt_finish_cmds
11876 # Same as above, but a single script fragment to be evaled but not shown.
11877 finish_eval=$lt_finish_eval
11879 # Take the output of nm and produce a listing of raw symbols and C names.
11880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11882 # Transform the output of nm in a proper C declaration
11883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11885 # Transform the output of nm in a C name address pair
11886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11888 # This is the shared library runtime path variable.
11889 runpath_var=$runpath_var
11891 # This is the shared library path variable.
11892 shlibpath_var=$shlibpath_var
11894 # Is shlibpath searched before the hard-coded library search path?
11895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11897 # How to hardcode a shared library path into an executable.
11898 hardcode_action=$hardcode_action
11900 # Whether we should hardcode library paths into libraries.
11901 hardcode_into_libs=$hardcode_into_libs
11903 # Flag to hardcode \$libdir into a binary during linking.
11904 # This must work even if \$libdir does not exist.
11905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11907 # If ld is used when linking, flag to hardcode \$libdir into
11908 # a binary during linking. This must work even if \$libdir does
11909 # not exist.
11910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11912 # Whether we need a single -rpath flag with a separated argument.
11913 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11916 # resulting binary.
11917 hardcode_direct=$hardcode_direct
11919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11920 # resulting binary.
11921 hardcode_minus_L=$hardcode_minus_L
11923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11924 # the resulting binary.
11925 hardcode_shlibpath_var=$hardcode_shlibpath_var
11927 # Set to yes if building a shared library automatically hardcodes DIR into the library
11928 # and all subsequent libraries and executables linked against it.
11929 hardcode_automatic=$hardcode_automatic
11931 # Variables whose values should be saved in libtool wrapper scripts and
11932 # restored at relink time.
11933 variables_saved_for_relink="$variables_saved_for_relink"
11935 # Whether libtool must link a program against all its dependency libraries.
11936 link_all_deplibs=$link_all_deplibs
11938 # Compile-time system search path for libraries
11939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11941 # Run-time system search path for libraries
11942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11944 # Fix the shell variable \$srcfile for the compiler.
11945 fix_srcfile_path=$lt_fix_srcfile_path
11947 # Set to yes if exported symbols are required.
11948 always_export_symbols=$always_export_symbols
11950 # The commands to list exported symbols.
11951 export_symbols_cmds=$lt_export_symbols_cmds
11953 # The commands to extract the exported symbol list from a shared archive.
11954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11956 # Symbols that should not be listed in the preloaded symbols.
11957 exclude_expsyms=$lt_exclude_expsyms
11959 # Symbols that must always be exported.
11960 include_expsyms=$lt_include_expsyms
11962 # ### END LIBTOOL CONFIG
11964 __EOF__
11967 case $host_os in
11968 aix3*)
11969 cat <<\EOF >> "$cfgfile"
11971 # AIX sometimes has problems with the GCC collect2 program. For some
11972 # reason, if we set the COLLECT_NAMES environment variable, the problems
11973 # vanish in a puff of smoke.
11974 if test "X${COLLECT_NAMES+set}" != Xset; then
11975 COLLECT_NAMES=
11976 export COLLECT_NAMES
11980 esac
11982 # We use sed instead of cat because bash on DJGPP gets confused if
11983 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11984 # text mode, it properly converts lines to CR/LF. This bash problem
11985 # is reportedly fixed, but why not run on old versions too?
11986 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11988 mv -f "$cfgfile" "$ofile" || \
11989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11990 chmod +x "$ofile"
11992 else
11993 # If there is no Makefile yet, we rely on a make rule to execute
11994 # `config.status --recheck' to rerun these tests and create the
11995 # libtool script then.
11996 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11997 if test -f "$ltmain_in"; then
11998 test -f Makefile && make "$ltmain"
12003 ac_ext=c
12004 ac_cpp='$CPP $CPPFLAGS'
12005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12009 CC="$lt_save_CC"
12012 # Check whether --with-tags was given.
12013 if test "${with_tags+set}" = set; then
12014 withval=$with_tags; tagnames="$withval"
12018 if test -f "$ltmain" && test -n "$tagnames"; then
12019 if test ! -f "${ofile}"; then
12020 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12021 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12024 if test -z "$LTCC"; then
12025 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12026 if test -z "$LTCC"; then
12027 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12028 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12029 else
12030 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12031 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12034 if test -z "$LTCFLAGS"; then
12035 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12038 # Extract list of available tagged configurations in $ofile.
12039 # Note that this assumes the entire list is on one line.
12040 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12043 for tagname in $tagnames; do
12044 IFS="$lt_save_ifs"
12045 # Check whether tagname contains only valid characters
12046 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12047 "") ;;
12048 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12049 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12050 { (exit 1); exit 1; }; }
12052 esac
12054 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12055 then
12056 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12057 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12058 { (exit 1); exit 1; }; }
12061 # Update the list of available tags.
12062 if test -n "$tagname"; then
12063 echo appending configuration tag \"$tagname\" to $ofile
12065 case $tagname in
12066 CXX)
12067 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12068 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12069 (test "X$CXX" != "Xg++"))) ; then
12070 ac_ext=cpp
12071 ac_cpp='$CXXCPP $CPPFLAGS'
12072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12079 archive_cmds_need_lc_CXX=no
12080 allow_undefined_flag_CXX=
12081 always_export_symbols_CXX=no
12082 archive_expsym_cmds_CXX=
12083 export_dynamic_flag_spec_CXX=
12084 hardcode_direct_CXX=no
12085 hardcode_libdir_flag_spec_CXX=
12086 hardcode_libdir_flag_spec_ld_CXX=
12087 hardcode_libdir_separator_CXX=
12088 hardcode_minus_L_CXX=no
12089 hardcode_shlibpath_var_CXX=unsupported
12090 hardcode_automatic_CXX=no
12091 module_cmds_CXX=
12092 module_expsym_cmds_CXX=
12093 link_all_deplibs_CXX=unknown
12094 old_archive_cmds_CXX=$old_archive_cmds
12095 no_undefined_flag_CXX=
12096 whole_archive_flag_spec_CXX=
12097 enable_shared_with_static_runtimes_CXX=no
12099 # Dependencies to place before and after the object being linked:
12100 predep_objects_CXX=
12101 postdep_objects_CXX=
12102 predeps_CXX=
12103 postdeps_CXX=
12104 compiler_lib_search_path_CXX=
12105 compiler_lib_search_dirs_CXX=
12107 # Source file extension for C++ test sources.
12108 ac_ext=cpp
12110 # Object file extension for compiled C++ test sources.
12111 objext=o
12112 objext_CXX=$objext
12114 # Code to be used in simple compile tests
12115 lt_simple_compile_test_code="int some_variable = 0;"
12117 # Code to be used in simple link tests
12118 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12122 # If no C compiler was specified, use CC.
12123 LTCC=${LTCC-"$CC"}
12125 # If no C compiler flags were specified, use CFLAGS.
12126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12128 # Allow CC to be a program name with arguments.
12129 compiler=$CC
12132 # save warnings/boilerplate of simple test code
12133 ac_outfile=conftest.$ac_objext
12134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12136 _lt_compiler_boilerplate=`cat conftest.err`
12137 $rm conftest*
12139 ac_outfile=conftest.$ac_objext
12140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12142 _lt_linker_boilerplate=`cat conftest.err`
12143 $rm -r conftest*
12146 # Allow CC to be a program name with arguments.
12147 lt_save_CC=$CC
12148 lt_save_LD=$LD
12149 lt_save_GCC=$GCC
12150 GCC=$GXX
12151 lt_save_with_gnu_ld=$with_gnu_ld
12152 lt_save_path_LD=$lt_cv_path_LD
12153 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12154 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12155 else
12156 $as_unset lt_cv_prog_gnu_ld
12158 if test -n "${lt_cv_path_LDCXX+set}"; then
12159 lt_cv_path_LD=$lt_cv_path_LDCXX
12160 else
12161 $as_unset lt_cv_path_LD
12163 test -z "${LDCXX+set}" || LD=$LDCXX
12164 CC=${CXX-"c++"}
12165 compiler=$CC
12166 compiler_CXX=$CC
12167 for cc_temp in $compiler""; do
12168 case $cc_temp in
12169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12171 \-*) ;;
12172 *) break;;
12173 esac
12174 done
12175 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12178 # We don't want -fno-exception wen compiling C++ code, so set the
12179 # no_builtin_flag separately
12180 if test "$GXX" = yes; then
12181 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12182 else
12183 lt_prog_compiler_no_builtin_flag_CXX=
12186 if test "$GXX" = yes; then
12187 # Set up default GNU C++ configuration
12190 # Check whether --with-gnu-ld was given.
12191 if test "${with_gnu_ld+set}" = set; then
12192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12193 else
12194 with_gnu_ld=no
12197 ac_prog=ld
12198 if test "$GCC" = yes; then
12199 # Check if gcc -print-prog-name=ld gives a path.
12200 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12201 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12202 case $host in
12203 *-*-mingw*)
12204 # gcc leaves a trailing carriage return which upsets mingw
12205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12208 esac
12209 case $ac_prog in
12210 # Accept absolute paths.
12211 [\\/]* | ?:[\\/]*)
12212 re_direlt='/[^/][^/]*/\.\./'
12213 # Canonicalize the pathname of ld
12214 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12215 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12216 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12217 done
12218 test -z "$LD" && LD="$ac_prog"
12221 # If it fails, then pretend we aren't using GCC.
12222 ac_prog=ld
12225 # If it is relative, then search for the first ld in PATH.
12226 with_gnu_ld=unknown
12228 esac
12229 elif test "$with_gnu_ld" = yes; then
12230 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12231 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12232 else
12233 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12234 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12236 if test "${lt_cv_path_LD+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 if test -z "$LD"; then
12240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12241 for ac_dir in $PATH; do
12242 IFS="$lt_save_ifs"
12243 test -z "$ac_dir" && ac_dir=.
12244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12245 lt_cv_path_LD="$ac_dir/$ac_prog"
12246 # Check to see if the program is GNU ld. I'd rather use --version,
12247 # but apparently some variants of GNU ld only accept -v.
12248 # Break only if it was the GNU/non-GNU ld that we prefer.
12249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12250 *GNU* | *'with BFD'*)
12251 test "$with_gnu_ld" != no && break
12254 test "$with_gnu_ld" != yes && break
12256 esac
12258 done
12259 IFS="$lt_save_ifs"
12260 else
12261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12265 LD="$lt_cv_path_LD"
12266 if test -n "$LD"; then
12267 { echo "$as_me:$LINENO: result: $LD" >&5
12268 echo "${ECHO_T}$LD" >&6; }
12269 else
12270 { echo "$as_me:$LINENO: result: no" >&5
12271 echo "${ECHO_T}no" >&6; }
12273 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12274 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12275 { (exit 1); exit 1; }; }
12276 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12277 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12278 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12282 case `$LD -v 2>&1 </dev/null` in
12283 *GNU* | *'with BFD'*)
12284 lt_cv_prog_gnu_ld=yes
12287 lt_cv_prog_gnu_ld=no
12289 esac
12291 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12292 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12293 with_gnu_ld=$lt_cv_prog_gnu_ld
12297 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12298 # archiving commands below assume that GNU ld is being used.
12299 if test "$with_gnu_ld" = yes; then
12300 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12301 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'
12303 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12306 # If archive_cmds runs LD, not CC, wlarc should be empty
12307 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12308 # investigate it a little bit more. (MM)
12309 wlarc='${wl}'
12311 # ancient GNU ld didn't support --whole-archive et. al.
12312 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12313 grep 'no-whole-archive' > /dev/null; then
12314 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12315 else
12316 whole_archive_flag_spec_CXX=
12318 else
12319 with_gnu_ld=no
12320 wlarc=
12322 # A generic and very simple default shared library creation
12323 # command for GNU C++ for the case where it uses the native
12324 # linker, instead of GNU ld. If possible, this setting should
12325 # overridden to take advantage of the native linker features on
12326 # the platform it is being used on.
12327 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12330 # Commands to make compiler produce verbose output that lists
12331 # what "hidden" libraries, object files and flags are used when
12332 # linking a shared library.
12333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12335 else
12336 GXX=no
12337 with_gnu_ld=no
12338 wlarc=
12341 # PORTME: fill in a description of your system's C++ link characteristics
12342 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12343 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12344 ld_shlibs_CXX=yes
12345 case $host_os in
12346 aix3*)
12347 # FIXME: insert proper C++ library support
12348 ld_shlibs_CXX=no
12350 aix[4-9]*)
12351 if test "$host_cpu" = ia64; then
12352 # On IA64, the linker does run time linking by default, so we don't
12353 # have to do anything special.
12354 aix_use_runtimelinking=no
12355 exp_sym_flag='-Bexport'
12356 no_entry_flag=""
12357 else
12358 aix_use_runtimelinking=no
12360 # Test if we are trying to use run time linking or normal
12361 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12362 # need to do runtime linking.
12363 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12364 for ld_flag in $LDFLAGS; do
12365 case $ld_flag in
12366 *-brtl*)
12367 aix_use_runtimelinking=yes
12368 break
12370 esac
12371 done
12373 esac
12375 exp_sym_flag='-bexport'
12376 no_entry_flag='-bnoentry'
12379 # When large executables or shared objects are built, AIX ld can
12380 # have problems creating the table of contents. If linking a library
12381 # or program results in "error TOC overflow" add -mminimal-toc to
12382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12385 archive_cmds_CXX=''
12386 hardcode_direct_CXX=yes
12387 hardcode_libdir_separator_CXX=':'
12388 link_all_deplibs_CXX=yes
12390 if test "$GXX" = yes; then
12391 case $host_os in aix4.[012]|aix4.[012].*)
12392 # We only want to do this on AIX 4.2 and lower, the check
12393 # below for broken collect2 doesn't work under 4.3+
12394 collect2name=`${CC} -print-prog-name=collect2`
12395 if test -f "$collect2name" && \
12396 strings "$collect2name" | grep resolve_lib_name >/dev/null
12397 then
12398 # We have reworked collect2
12400 else
12401 # We have old collect2
12402 hardcode_direct_CXX=unsupported
12403 # It fails to find uninstalled libraries when the uninstalled
12404 # path is not listed in the libpath. Setting hardcode_minus_L
12405 # to unsupported forces relinking
12406 hardcode_minus_L_CXX=yes
12407 hardcode_libdir_flag_spec_CXX='-L$libdir'
12408 hardcode_libdir_separator_CXX=
12411 esac
12412 shared_flag='-shared'
12413 if test "$aix_use_runtimelinking" = yes; then
12414 shared_flag="$shared_flag "'${wl}-G'
12416 else
12417 # not using gcc
12418 if test "$host_cpu" = ia64; then
12419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12420 # chokes on -Wl,-G. The following line is correct:
12421 shared_flag='-G'
12422 else
12423 if test "$aix_use_runtimelinking" = yes; then
12424 shared_flag='${wl}-G'
12425 else
12426 shared_flag='${wl}-bM:SRE'
12431 # It seems that -bexpall does not export symbols beginning with
12432 # underscore (_), so it is better to generate a list of symbols to export.
12433 always_export_symbols_CXX=yes
12434 if test "$aix_use_runtimelinking" = yes; then
12435 # Warning - without using the other runtime loading flags (-brtl),
12436 # -berok will link without error, but may produce a broken library.
12437 allow_undefined_flag_CXX='-berok'
12438 # Determine the default libpath from the value encoded in an empty executable.
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12447 main ()
12451 return 0;
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (ac_try="$ac_link"
12456 case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_link") 2>conftest.er1
12462 ac_status=$?
12463 grep -v '^ *+' conftest.er1 >conftest.err
12464 rm -f conftest.er1
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } && {
12468 test -z "$ac_cxx_werror_flag" ||
12469 test ! -s conftest.err
12470 } && test -s conftest$ac_exeext &&
12471 $as_test_x conftest$ac_exeext; then
12473 lt_aix_libpath_sed='
12474 /Import File Strings/,/^$/ {
12475 /^0/ {
12476 s/^0 *\(.*\)$/\1/
12480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12481 # Check for a 64-bit object if we didn't find anything.
12482 if test -z "$aix_libpath"; then
12483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12493 conftest$ac_exeext conftest.$ac_ext
12494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12498 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"
12499 else
12500 if test "$host_cpu" = ia64; then
12501 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12502 allow_undefined_flag_CXX="-z nodefs"
12503 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"
12504 else
12505 # Determine the default libpath from the value encoded in an empty executable.
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h. */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12514 main ()
12518 return 0;
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (ac_try="$ac_link"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_link") 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_cxx_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest$ac_exeext &&
12538 $as_test_x conftest$ac_exeext; then
12540 lt_aix_libpath_sed='
12541 /Import File Strings/,/^$/ {
12542 /^0/ {
12543 s/^0 *\(.*\)$/\1/
12547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12548 # Check for a 64-bit object if we didn't find anything.
12549 if test -z "$aix_libpath"; then
12550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12560 conftest$ac_exeext conftest.$ac_ext
12561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12563 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12564 # Warning - without using the other run time loading flags,
12565 # -berok will link without error, but may produce a broken library.
12566 no_undefined_flag_CXX=' ${wl}-bernotok'
12567 allow_undefined_flag_CXX=' ${wl}-berok'
12568 # Exported symbols can be pulled into shared objects from archives
12569 whole_archive_flag_spec_CXX='$convenience'
12570 archive_cmds_need_lc_CXX=yes
12571 # This is similar to how AIX traditionally builds its shared libraries.
12572 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'
12577 beos*)
12578 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12579 allow_undefined_flag_CXX=unsupported
12580 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12581 # support --undefined. This deserves some investigation. FIXME
12582 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12583 else
12584 ld_shlibs_CXX=no
12588 chorus*)
12589 case $cc_basename in
12591 # FIXME: insert proper C++ library support
12592 ld_shlibs_CXX=no
12594 esac
12597 cygwin* | mingw* | pw32*)
12598 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12599 # as there is no search path for DLLs.
12600 hardcode_libdir_flag_spec_CXX='-L$libdir'
12601 allow_undefined_flag_CXX=unsupported
12602 always_export_symbols_CXX=no
12603 enable_shared_with_static_runtimes_CXX=yes
12605 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12606 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'
12607 # If the export-symbols file already is a .def file (1st line
12608 # is EXPORTS), use it as is; otherwise, prepend...
12609 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12610 cp $export_symbols $output_objdir/$soname.def;
12611 else
12612 echo EXPORTS > $output_objdir/$soname.def;
12613 cat $export_symbols >> $output_objdir/$soname.def;
12615 $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'
12616 else
12617 ld_shlibs_CXX=no
12620 darwin* | rhapsody*)
12621 archive_cmds_need_lc_CXX=no
12622 hardcode_direct_CXX=no
12623 hardcode_automatic_CXX=yes
12624 hardcode_shlibpath_var_CXX=unsupported
12625 whole_archive_flag_spec_CXX=''
12626 link_all_deplibs_CXX=yes
12627 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12628 if test "$GXX" = yes ; then
12629 output_verbose_link_cmd='echo'
12630 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}"
12631 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12632 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}"
12633 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}"
12634 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12635 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}"
12636 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}"
12638 else
12639 case $cc_basename in
12640 xlc*)
12641 output_verbose_link_cmd='echo'
12642 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'
12643 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12644 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12645 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}'
12646 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}'
12649 ld_shlibs_CXX=no
12651 esac
12655 dgux*)
12656 case $cc_basename in
12657 ec++*)
12658 # FIXME: insert proper C++ library support
12659 ld_shlibs_CXX=no
12661 ghcx*)
12662 # Green Hills C++ Compiler
12663 # FIXME: insert proper C++ library support
12664 ld_shlibs_CXX=no
12667 # FIXME: insert proper C++ library support
12668 ld_shlibs_CXX=no
12670 esac
12672 freebsd[12]*)
12673 # C++ shared libraries reported to be fairly broken before switch to ELF
12674 ld_shlibs_CXX=no
12676 freebsd-elf*)
12677 archive_cmds_need_lc_CXX=no
12679 freebsd* | dragonfly*)
12680 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12681 # conventions
12682 ld_shlibs_CXX=yes
12684 gnu*)
12686 hpux9*)
12687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12688 hardcode_libdir_separator_CXX=:
12689 export_dynamic_flag_spec_CXX='${wl}-E'
12690 hardcode_direct_CXX=yes
12691 hardcode_minus_L_CXX=yes # Not in the search PATH,
12692 # but as the default
12693 # location of the library.
12695 case $cc_basename in
12696 CC*)
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12700 aCC*)
12701 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'
12702 # Commands to make compiler produce verbose output that lists
12703 # what "hidden" libraries, object files and flags are used when
12704 # linking a shared library.
12706 # There doesn't appear to be a way to prevent this compiler from
12707 # explicitly linking system object files so we need to strip them
12708 # from the output so that they don't get included in the library
12709 # dependencies.
12710 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'
12713 if test "$GXX" = yes; then
12714 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'
12715 else
12716 # FIXME: insert proper C++ library support
12717 ld_shlibs_CXX=no
12720 esac
12722 hpux10*|hpux11*)
12723 if test $with_gnu_ld = no; then
12724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12725 hardcode_libdir_separator_CXX=:
12727 case $host_cpu in
12728 hppa*64*|ia64*) ;;
12730 export_dynamic_flag_spec_CXX='${wl}-E'
12732 esac
12734 case $host_cpu in
12735 hppa*64*|ia64*)
12736 hardcode_direct_CXX=no
12737 hardcode_shlibpath_var_CXX=no
12740 hardcode_direct_CXX=yes
12741 hardcode_minus_L_CXX=yes # Not in the search PATH,
12742 # but as the default
12743 # location of the library.
12745 esac
12747 case $cc_basename in
12748 CC*)
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12752 aCC*)
12753 case $host_cpu in
12754 hppa*64*)
12755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12757 ia64*)
12758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12761 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12763 esac
12764 # Commands to make compiler produce verbose output that lists
12765 # what "hidden" libraries, object files and flags are used when
12766 # linking a shared library.
12768 # There doesn't appear to be a way to prevent this compiler from
12769 # explicitly linking system object files so we need to strip them
12770 # from the output so that they don't get included in the library
12771 # dependencies.
12772 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'
12775 if test "$GXX" = yes; then
12776 if test $with_gnu_ld = no; then
12777 case $host_cpu in
12778 hppa*64*)
12779 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12781 ia64*)
12782 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12785 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'
12787 esac
12789 else
12790 # FIXME: insert proper C++ library support
12791 ld_shlibs_CXX=no
12794 esac
12796 interix[3-9]*)
12797 hardcode_direct_CXX=no
12798 hardcode_shlibpath_var_CXX=no
12799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12800 export_dynamic_flag_spec_CXX='${wl}-E'
12801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12802 # Instead, shared libraries are loaded at an image base (0x10000000 by
12803 # default) and relocated if they conflict, which is a slow very memory
12804 # consuming and fragmenting process. To avoid this, we pick a random,
12805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12807 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'
12808 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'
12810 irix5* | irix6*)
12811 case $cc_basename in
12812 CC*)
12813 # SGI C++
12814 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'
12816 # Archives containing C++ object files must be created using
12817 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12818 # necessary to make sure instantiated templates are included
12819 # in the archive.
12820 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12823 if test "$GXX" = yes; then
12824 if test "$with_gnu_ld" = no; then
12825 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'
12826 else
12827 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'
12830 link_all_deplibs_CXX=yes
12832 esac
12833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12834 hardcode_libdir_separator_CXX=:
12836 linux* | k*bsd*-gnu)
12837 case $cc_basename in
12838 KCC*)
12839 # Kuck and Associates, Inc. (KAI) C++ Compiler
12841 # KCC will only create a shared library if the output file
12842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12843 # to its proper name (with version) after linking.
12844 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'
12845 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'
12846 # Commands to make compiler produce verbose output that lists
12847 # what "hidden" libraries, object files and flags are used when
12848 # linking a shared library.
12850 # There doesn't appear to be a way to prevent this compiler from
12851 # explicitly linking system object files so we need to strip them
12852 # from the output so that they don't get included in the library
12853 # dependencies.
12854 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'
12856 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12859 # Archives containing C++ object files must be created using
12860 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12861 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12863 icpc*)
12864 # Intel C++
12865 with_gnu_ld=yes
12866 # version 8.0 and above of icpc choke on multiply defined symbols
12867 # if we add $predep_objects and $postdep_objects, however 7.1 and
12868 # earlier do not add the objects themselves.
12869 case `$CC -V 2>&1` in
12870 *"Version 7."*)
12871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12872 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'
12874 *) # Version 8.0 or newer
12875 tmp_idyn=
12876 case $host_cpu in
12877 ia64*) tmp_idyn=' -i_dynamic';;
12878 esac
12879 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880 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'
12882 esac
12883 archive_cmds_need_lc_CXX=no
12884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12886 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12888 pgCC* | pgcpp*)
12889 # Portland Group C++ compiler
12890 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12891 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'
12893 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12895 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'
12897 cxx*)
12898 # Compaq C++
12899 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12900 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'
12902 runpath_var=LD_RUN_PATH
12903 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12904 hardcode_libdir_separator_CXX=:
12906 # Commands to make compiler produce verbose output that lists
12907 # what "hidden" libraries, object files and flags are used when
12908 # linking a shared library.
12910 # There doesn't appear to be a way to prevent this compiler from
12911 # explicitly linking system object files so we need to strip them
12912 # from the output so that they don't get included in the library
12913 # dependencies.
12914 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'
12917 case `$CC -V 2>&1 | sed 5q` in
12918 *Sun\ C*)
12919 # Sun C++ 5.9
12920 no_undefined_flag_CXX=' -zdefs'
12921 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12922 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'
12923 hardcode_libdir_flag_spec_CXX='-R$libdir'
12924 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'
12926 # Not sure whether something based on
12927 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12928 # would be better.
12929 output_verbose_link_cmd='echo'
12931 # Archives containing C++ object files must be created using
12932 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12933 # necessary to make sure instantiated templates are included
12934 # in the archive.
12935 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12937 esac
12939 esac
12941 lynxos*)
12942 # FIXME: insert proper C++ library support
12943 ld_shlibs_CXX=no
12945 m88k*)
12946 # FIXME: insert proper C++ library support
12947 ld_shlibs_CXX=no
12949 mvs*)
12950 case $cc_basename in
12951 cxx*)
12952 # FIXME: insert proper C++ library support
12953 ld_shlibs_CXX=no
12956 # FIXME: insert proper C++ library support
12957 ld_shlibs_CXX=no
12959 esac
12961 netbsd* | netbsdelf*-gnu)
12962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12963 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12964 wlarc=
12965 hardcode_libdir_flag_spec_CXX='-R$libdir'
12966 hardcode_direct_CXX=yes
12967 hardcode_shlibpath_var_CXX=no
12969 # Workaround some broken pre-1.5 toolchains
12970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12972 openbsd2*)
12973 # C++ shared libraries are fairly broken
12974 ld_shlibs_CXX=no
12976 openbsd*)
12977 if test -f /usr/libexec/ld.so; then
12978 hardcode_direct_CXX=yes
12979 hardcode_shlibpath_var_CXX=no
12980 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12981 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12983 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12984 export_dynamic_flag_spec_CXX='${wl}-E'
12985 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12987 output_verbose_link_cmd='echo'
12988 else
12989 ld_shlibs_CXX=no
12992 osf3*)
12993 case $cc_basename in
12994 KCC*)
12995 # Kuck and Associates, Inc. (KAI) C++ Compiler
12997 # KCC will only create a shared library if the output file
12998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12999 # to its proper name (with version) after linking.
13000 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'
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13003 hardcode_libdir_separator_CXX=:
13005 # Archives containing C++ object files must be created using
13006 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13007 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13010 RCC*)
13011 # Rational C++ 2.4.1
13012 # FIXME: insert proper C++ library support
13013 ld_shlibs_CXX=no
13015 cxx*)
13016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13017 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'
13019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13020 hardcode_libdir_separator_CXX=:
13022 # Commands to make compiler produce verbose output that lists
13023 # what "hidden" libraries, object files and flags are used when
13024 # linking a shared library.
13026 # There doesn't appear to be a way to prevent this compiler from
13027 # explicitly linking system object files so we need to strip them
13028 # from the output so that they don't get included in the library
13029 # dependencies.
13030 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'
13033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13034 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13035 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'
13037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13038 hardcode_libdir_separator_CXX=:
13040 # Commands to make compiler produce verbose output that lists
13041 # what "hidden" libraries, object files and flags are used when
13042 # linking a shared library.
13043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13045 else
13046 # FIXME: insert proper C++ library support
13047 ld_shlibs_CXX=no
13050 esac
13052 osf4* | osf5*)
13053 case $cc_basename in
13054 KCC*)
13055 # Kuck and Associates, Inc. (KAI) C++ Compiler
13057 # KCC will only create a shared library if the output file
13058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13059 # to its proper name (with version) after linking.
13060 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'
13062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13063 hardcode_libdir_separator_CXX=:
13065 # Archives containing C++ object files must be created using
13066 # the KAI C++ compiler.
13067 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13069 RCC*)
13070 # Rational C++ 2.4.1
13071 # FIXME: insert proper C++ library support
13072 ld_shlibs_CXX=no
13074 cxx*)
13075 allow_undefined_flag_CXX=' -expect_unresolved \*'
13076 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'
13077 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13078 echo "-hidden">> $lib.exp~
13079 $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~
13080 $rm $lib.exp'
13082 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13083 hardcode_libdir_separator_CXX=:
13085 # Commands to make compiler produce verbose output that lists
13086 # what "hidden" libraries, object files and flags are used when
13087 # linking a shared library.
13089 # There doesn't appear to be a way to prevent this compiler from
13090 # explicitly linking system object files so we need to strip them
13091 # from the output so that they don't get included in the library
13092 # dependencies.
13093 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'
13096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13098 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'
13100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13101 hardcode_libdir_separator_CXX=:
13103 # Commands to make compiler produce verbose output that lists
13104 # what "hidden" libraries, object files and flags are used when
13105 # linking a shared library.
13106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13108 else
13109 # FIXME: insert proper C++ library support
13110 ld_shlibs_CXX=no
13113 esac
13115 psos*)
13116 # FIXME: insert proper C++ library support
13117 ld_shlibs_CXX=no
13119 sunos4*)
13120 case $cc_basename in
13121 CC*)
13122 # Sun C++ 4.x
13123 # FIXME: insert proper C++ library support
13124 ld_shlibs_CXX=no
13126 lcc*)
13127 # Lucid
13128 # FIXME: insert proper C++ library support
13129 ld_shlibs_CXX=no
13132 # FIXME: insert proper C++ library support
13133 ld_shlibs_CXX=no
13135 esac
13137 solaris*)
13138 case $cc_basename in
13139 CC*)
13140 # Sun C++ 4.2, 5.x and Centerline C++
13141 archive_cmds_need_lc_CXX=yes
13142 no_undefined_flag_CXX=' -zdefs'
13143 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13144 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13145 $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'
13147 hardcode_libdir_flag_spec_CXX='-R$libdir'
13148 hardcode_shlibpath_var_CXX=no
13149 case $host_os in
13150 solaris2.[0-5] | solaris2.[0-5].*) ;;
13152 # The compiler driver will combine and reorder linker options,
13153 # but understands `-z linker_flag'.
13154 # Supported since Solaris 2.6 (maybe 2.5.1?)
13155 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13157 esac
13158 link_all_deplibs_CXX=yes
13160 output_verbose_link_cmd='echo'
13162 # Archives containing C++ object files must be created using
13163 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13164 # necessary to make sure instantiated templates are included
13165 # in the archive.
13166 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13168 gcx*)
13169 # Green Hills C++ Compiler
13170 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13172 # The C++ compiler must be used to create the archive.
13173 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13176 # GNU C++ compiler with Solaris linker
13177 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13178 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13179 if $CC --version | grep -v '^2\.7' > /dev/null; then
13180 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13181 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13182 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13184 # Commands to make compiler produce verbose output that lists
13185 # what "hidden" libraries, object files and flags are used when
13186 # linking a shared library.
13187 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13188 else
13189 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13190 # platform.
13191 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13192 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13193 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13195 # Commands to make compiler produce verbose output that lists
13196 # what "hidden" libraries, object files and flags are used when
13197 # linking a shared library.
13198 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13201 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13202 case $host_os in
13203 solaris2.[0-5] | solaris2.[0-5].*) ;;
13205 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13207 esac
13210 esac
13212 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13213 no_undefined_flag_CXX='${wl}-z,text'
13214 archive_cmds_need_lc_CXX=no
13215 hardcode_shlibpath_var_CXX=no
13216 runpath_var='LD_RUN_PATH'
13218 case $cc_basename in
13219 CC*)
13220 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13221 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13224 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13225 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 esac
13229 sysv5* | sco3.2v5* | sco5v6*)
13230 # Note: We can NOT use -z defs as we might desire, because we do not
13231 # link with -lc, and that would cause any symbols used from libc to
13232 # always be unresolved, which means just about no library would
13233 # ever link correctly. If we're not using GNU ld we use -z text
13234 # though, which does catch some bad symbols but isn't as heavy-handed
13235 # as -z defs.
13236 # For security reasons, it is highly recommended that you always
13237 # use absolute paths for naming shared libraries, and exclude the
13238 # DT_RUNPATH tag from executables and libraries. But doing so
13239 # requires that you compile everything twice, which is a pain.
13240 # So that behaviour is only enabled if SCOABSPATH is set to a
13241 # non-empty value in the environment. Most likely only useful for
13242 # creating official distributions of packages.
13243 # This is a hack until libtool officially supports absolute path
13244 # names for shared libraries.
13245 no_undefined_flag_CXX='${wl}-z,text'
13246 allow_undefined_flag_CXX='${wl}-z,nodefs'
13247 archive_cmds_need_lc_CXX=no
13248 hardcode_shlibpath_var_CXX=no
13249 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13250 hardcode_libdir_separator_CXX=':'
13251 link_all_deplibs_CXX=yes
13252 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13253 runpath_var='LD_RUN_PATH'
13255 case $cc_basename in
13256 CC*)
13257 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13258 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13261 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13262 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13264 esac
13266 tandem*)
13267 case $cc_basename in
13268 NCC*)
13269 # NonStop-UX NCC 3.20
13270 # FIXME: insert proper C++ library support
13271 ld_shlibs_CXX=no
13274 # FIXME: insert proper C++ library support
13275 ld_shlibs_CXX=no
13277 esac
13279 vxworks*)
13280 # FIXME: insert proper C++ library support
13281 ld_shlibs_CXX=no
13284 # FIXME: insert proper C++ library support
13285 ld_shlibs_CXX=no
13287 esac
13288 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13289 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13290 test "$ld_shlibs_CXX" = no && can_build_shared=no
13292 GCC_CXX="$GXX"
13293 LD_CXX="$LD"
13295 cat > conftest.$ac_ext <<EOF
13296 class Foo
13298 public:
13299 Foo (void) { a = 0; }
13300 private:
13301 int a;
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; then
13310 # Parse the compiler output and extract the necessary
13311 # objects, libraries and library flags.
13313 # Sentinel used to keep track of whether or not we are before
13314 # the conftest object file.
13315 pre_test_object_deps_done=no
13317 # The `*' in the case matches for architectures that use `case' in
13318 # $output_verbose_cmd can trigger glob expansion during the loop
13319 # eval without this substitution.
13320 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13322 for p in `eval $output_verbose_link_cmd`; do
13323 case $p in
13325 -L* | -R* | -l*)
13326 # Some compilers place space between "-{L,R}" and the path.
13327 # Remove the space.
13328 if test $p = "-L" \
13329 || test $p = "-R"; then
13330 prev=$p
13331 continue
13332 else
13333 prev=
13336 if test "$pre_test_object_deps_done" = no; then
13337 case $p in
13338 -L* | -R*)
13339 # Internal compiler library paths should come after those
13340 # provided the user. The postdeps already come after the
13341 # user supplied libs so there is no need to process them.
13342 if test -z "$compiler_lib_search_path_CXX"; then
13343 compiler_lib_search_path_CXX="${prev}${p}"
13344 else
13345 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13348 # The "-l" case would never come before the object being
13349 # linked, so don't bother handling this case.
13350 esac
13351 else
13352 if test -z "$postdeps_CXX"; then
13353 postdeps_CXX="${prev}${p}"
13354 else
13355 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13360 *.$objext)
13361 # This assumes that the test object file only shows up
13362 # once in the compiler output.
13363 if test "$p" = "conftest.$objext"; then
13364 pre_test_object_deps_done=yes
13365 continue
13368 if test "$pre_test_object_deps_done" = no; then
13369 if test -z "$predep_objects_CXX"; then
13370 predep_objects_CXX="$p"
13371 else
13372 predep_objects_CXX="$predep_objects_CXX $p"
13374 else
13375 if test -z "$postdep_objects_CXX"; then
13376 postdep_objects_CXX="$p"
13377 else
13378 postdep_objects_CXX="$postdep_objects_CXX $p"
13383 *) ;; # Ignore the rest.
13385 esac
13386 done
13388 # Clean up.
13389 rm -f a.out a.exe
13390 else
13391 echo "libtool.m4: error: problem compiling CXX test program"
13394 $rm -f confest.$objext
13396 compiler_lib_search_dirs_CXX=
13397 if test -n "$compiler_lib_search_path_CXX"; then
13398 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13401 # PORTME: override above test on systems where it is broken
13402 case $host_os in
13403 interix[3-9]*)
13404 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13405 # hack all around it, let's just trust "g++" to DTRT.
13406 predep_objects_CXX=
13407 postdep_objects_CXX=
13408 postdeps_CXX=
13411 linux*)
13412 case `$CC -V 2>&1 | sed 5q` in
13413 *Sun\ C*)
13414 # Sun C++ 5.9
13416 # The more standards-conforming stlport4 library is
13417 # incompatible with the Cstd library. Avoid specifying
13418 # it if it's in CXXFLAGS. Ignore libCrun as
13419 # -library=stlport4 depends on it.
13420 case " $CXX $CXXFLAGS " in
13421 *" -library=stlport4 "*)
13422 solaris_use_stlport4=yes
13424 esac
13425 if test "$solaris_use_stlport4" != yes; then
13426 postdeps_CXX='-library=Cstd -library=Crun'
13429 esac
13432 solaris*)
13433 case $cc_basename in
13434 CC*)
13435 # The more standards-conforming stlport4 library is
13436 # incompatible with the Cstd library. Avoid specifying
13437 # it if it's in CXXFLAGS. Ignore libCrun as
13438 # -library=stlport4 depends on it.
13439 case " $CXX $CXXFLAGS " in
13440 *" -library=stlport4 "*)
13441 solaris_use_stlport4=yes
13443 esac
13445 # Adding this requires a known-good setup of shared libraries for
13446 # Sun compiler versions before 5.6, else PIC objects from an old
13447 # archive will be linked into the output, leading to subtle bugs.
13448 if test "$solaris_use_stlport4" != yes; then
13449 postdeps_CXX='-library=Cstd -library=Crun'
13452 esac
13454 esac
13456 case " $postdeps_CXX " in
13457 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13458 esac
13460 lt_prog_compiler_wl_CXX=
13461 lt_prog_compiler_pic_CXX=
13462 lt_prog_compiler_static_CXX=
13464 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13465 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13467 # C++ specific cases for pic, static, wl, etc.
13468 if test "$GXX" = yes; then
13469 lt_prog_compiler_wl_CXX='-Wl,'
13470 lt_prog_compiler_static_CXX='-static'
13472 case $host_os in
13473 aix*)
13474 # All AIX code is PIC.
13475 if test "$host_cpu" = ia64; then
13476 # AIX 5 now supports IA64 processor
13477 lt_prog_compiler_static_CXX='-Bstatic'
13480 amigaos*)
13481 # FIXME: we need at least 68020 code to build shared libraries, but
13482 # adding the `-m68020' flag to GCC prevents building anything better,
13483 # like `-m68040'.
13484 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13486 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13487 # PIC is the default for these OSes.
13489 mingw* | cygwin* | os2* | pw32*)
13490 # This hack is so that the source file can tell whether it is being
13491 # built for inclusion in a dll (and should export symbols for example).
13492 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13493 # (--disable-auto-import) libraries
13494 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13496 darwin* | rhapsody*)
13497 # PIC is the default on this platform
13498 # Common symbols not allowed in MH_DYLIB files
13499 lt_prog_compiler_pic_CXX='-fno-common'
13501 *djgpp*)
13502 # DJGPP does not support shared libraries at all
13503 lt_prog_compiler_pic_CXX=
13505 interix[3-9]*)
13506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13507 # Instead, we relocate shared libraries at runtime.
13509 sysv4*MP*)
13510 if test -d /usr/nec; then
13511 lt_prog_compiler_pic_CXX=-Kconform_pic
13514 hpux*)
13515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13516 # not for PA HP-UX.
13517 case $host_cpu in
13518 hppa*64*|ia64*)
13521 lt_prog_compiler_pic_CXX='-fPIC'
13523 esac
13526 lt_prog_compiler_pic_CXX='-fPIC'
13528 esac
13529 else
13530 case $host_os in
13531 aix[4-9]*)
13532 # All AIX code is PIC.
13533 if test "$host_cpu" = ia64; then
13534 # AIX 5 now supports IA64 processor
13535 lt_prog_compiler_static_CXX='-Bstatic'
13536 else
13537 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13540 chorus*)
13541 case $cc_basename in
13542 cxch68*)
13543 # Green Hills C++ Compiler
13544 # _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"
13546 esac
13548 darwin*)
13549 # PIC is the default on this platform
13550 # Common symbols not allowed in MH_DYLIB files
13551 case $cc_basename in
13552 xlc*)
13553 lt_prog_compiler_pic_CXX='-qnocommon'
13554 lt_prog_compiler_wl_CXX='-Wl,'
13556 esac
13558 dgux*)
13559 case $cc_basename in
13560 ec++*)
13561 lt_prog_compiler_pic_CXX='-KPIC'
13563 ghcx*)
13564 # Green Hills C++ Compiler
13565 lt_prog_compiler_pic_CXX='-pic'
13569 esac
13571 freebsd* | dragonfly*)
13572 # FreeBSD uses GNU C++
13574 hpux9* | hpux10* | hpux11*)
13575 case $cc_basename in
13576 CC*)
13577 lt_prog_compiler_wl_CXX='-Wl,'
13578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13579 if test "$host_cpu" != ia64; then
13580 lt_prog_compiler_pic_CXX='+Z'
13583 aCC*)
13584 lt_prog_compiler_wl_CXX='-Wl,'
13585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13586 case $host_cpu in
13587 hppa*64*|ia64*)
13588 # +Z the default
13591 lt_prog_compiler_pic_CXX='+Z'
13593 esac
13597 esac
13599 interix*)
13600 # This is c89, which is MS Visual C++ (no shared libs)
13601 # Anyone wants to do a port?
13603 irix5* | irix6* | nonstopux*)
13604 case $cc_basename in
13605 CC*)
13606 lt_prog_compiler_wl_CXX='-Wl,'
13607 lt_prog_compiler_static_CXX='-non_shared'
13608 # CC pic flag -KPIC is the default.
13612 esac
13614 linux* | k*bsd*-gnu)
13615 case $cc_basename in
13616 KCC*)
13617 # KAI C++ Compiler
13618 lt_prog_compiler_wl_CXX='--backend -Wl,'
13619 lt_prog_compiler_pic_CXX='-fPIC'
13621 icpc* | ecpc*)
13622 # Intel C++
13623 lt_prog_compiler_wl_CXX='-Wl,'
13624 lt_prog_compiler_pic_CXX='-KPIC'
13625 lt_prog_compiler_static_CXX='-static'
13627 pgCC* | pgcpp*)
13628 # Portland Group C++ compiler.
13629 lt_prog_compiler_wl_CXX='-Wl,'
13630 lt_prog_compiler_pic_CXX='-fpic'
13631 lt_prog_compiler_static_CXX='-Bstatic'
13633 cxx*)
13634 # Compaq C++
13635 # Make sure the PIC flag is empty. It appears that all Alpha
13636 # Linux and Compaq Tru64 Unix objects are PIC.
13637 lt_prog_compiler_pic_CXX=
13638 lt_prog_compiler_static_CXX='-non_shared'
13641 case `$CC -V 2>&1 | sed 5q` in
13642 *Sun\ C*)
13643 # Sun C++ 5.9
13644 lt_prog_compiler_pic_CXX='-KPIC'
13645 lt_prog_compiler_static_CXX='-Bstatic'
13646 lt_prog_compiler_wl_CXX='-Qoption ld '
13648 esac
13650 esac
13652 lynxos*)
13654 m88k*)
13656 mvs*)
13657 case $cc_basename in
13658 cxx*)
13659 lt_prog_compiler_pic_CXX='-W c,exportall'
13663 esac
13665 netbsd* | netbsdelf*-gnu)
13667 osf3* | osf4* | osf5*)
13668 case $cc_basename in
13669 KCC*)
13670 lt_prog_compiler_wl_CXX='--backend -Wl,'
13672 RCC*)
13673 # Rational C++ 2.4.1
13674 lt_prog_compiler_pic_CXX='-pic'
13676 cxx*)
13677 # Digital/Compaq C++
13678 lt_prog_compiler_wl_CXX='-Wl,'
13679 # Make sure the PIC flag is empty. It appears that all Alpha
13680 # Linux and Compaq Tru64 Unix objects are PIC.
13681 lt_prog_compiler_pic_CXX=
13682 lt_prog_compiler_static_CXX='-non_shared'
13686 esac
13688 psos*)
13690 solaris*)
13691 case $cc_basename in
13692 CC*)
13693 # Sun C++ 4.2, 5.x and Centerline C++
13694 lt_prog_compiler_pic_CXX='-KPIC'
13695 lt_prog_compiler_static_CXX='-Bstatic'
13696 lt_prog_compiler_wl_CXX='-Qoption ld '
13698 gcx*)
13699 # Green Hills C++ Compiler
13700 lt_prog_compiler_pic_CXX='-PIC'
13704 esac
13706 sunos4*)
13707 case $cc_basename in
13708 CC*)
13709 # Sun C++ 4.x
13710 lt_prog_compiler_pic_CXX='-pic'
13711 lt_prog_compiler_static_CXX='-Bstatic'
13713 lcc*)
13714 # Lucid
13715 lt_prog_compiler_pic_CXX='-pic'
13719 esac
13721 tandem*)
13722 case $cc_basename in
13723 NCC*)
13724 # NonStop-UX NCC 3.20
13725 lt_prog_compiler_pic_CXX='-KPIC'
13729 esac
13731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13732 case $cc_basename in
13733 CC*)
13734 lt_prog_compiler_wl_CXX='-Wl,'
13735 lt_prog_compiler_pic_CXX='-KPIC'
13736 lt_prog_compiler_static_CXX='-Bstatic'
13738 esac
13740 vxworks*)
13743 lt_prog_compiler_can_build_shared_CXX=no
13745 esac
13748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13749 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13752 # Check to make sure the PIC flag actually works.
13754 if test -n "$lt_prog_compiler_pic_CXX"; then
13756 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13758 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761 lt_cv_prog_compiler_pic_works_CXX=no
13762 ac_outfile=conftest.$ac_objext
13763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13764 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13765 # Insert the option either (1) after the last *FLAGS variable, or
13766 # (2) before a word containing "conftest.", or (3) at the end.
13767 # Note that $ac_compile itself does not contain backslashes and begins
13768 # with a dollar sign (not a hyphen), so the echo should work correctly.
13769 # The option is referenced via a variable to avoid confusing sed.
13770 lt_compile=`echo "$ac_compile" | $SED \
13771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13773 -e 's:$: $lt_compiler_flag:'`
13774 (eval echo "\"\$as_me:13774: $lt_compile\"" >&5)
13775 (eval "$lt_compile" 2>conftest.err)
13776 ac_status=$?
13777 cat conftest.err >&5
13778 echo "$as_me:13778: \$? = $ac_status" >&5
13779 if (exit $ac_status) && test -s "$ac_outfile"; then
13780 # The compiler can only warn and ignore the option if not recognized
13781 # So say no if there are warnings other than the usual output.
13782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13785 lt_cv_prog_compiler_pic_works_CXX=yes
13788 $rm conftest*
13791 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13792 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13794 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13795 case $lt_prog_compiler_pic_CXX in
13796 "" | " "*) ;;
13797 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13798 esac
13799 else
13800 lt_prog_compiler_pic_CXX=
13801 lt_prog_compiler_can_build_shared_CXX=no
13805 case $host_os in
13806 # For platforms which do not support PIC, -DPIC is meaningless:
13807 *djgpp*)
13808 lt_prog_compiler_pic_CXX=
13811 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13813 esac
13816 # Check to make sure the static flag actually works.
13818 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13821 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824 lt_cv_prog_compiler_static_works_CXX=no
13825 save_LDFLAGS="$LDFLAGS"
13826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13827 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13829 # The linker can only warn and ignore the option if not recognized
13830 # So say no if there are warnings
13831 if test -s conftest.err; then
13832 # Append any errors to the config.log.
13833 cat conftest.err 1>&5
13834 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13836 if diff conftest.exp conftest.er2 >/dev/null; then
13837 lt_cv_prog_compiler_static_works_CXX=yes
13839 else
13840 lt_cv_prog_compiler_static_works_CXX=yes
13843 $rm -r conftest*
13844 LDFLAGS="$save_LDFLAGS"
13847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13848 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13850 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13852 else
13853 lt_prog_compiler_static_CXX=
13857 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13858 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13859 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862 lt_cv_prog_compiler_c_o_CXX=no
13863 $rm -r conftest 2>/dev/null
13864 mkdir conftest
13865 cd conftest
13866 mkdir out
13867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13869 lt_compiler_flag="-o out/conftest2.$ac_objext"
13870 # Insert the option either (1) after the last *FLAGS variable, or
13871 # (2) before a word containing "conftest.", or (3) at the end.
13872 # Note that $ac_compile itself does not contain backslashes and begins
13873 # with a dollar sign (not a hyphen), so the echo should work correctly.
13874 lt_compile=`echo "$ac_compile" | $SED \
13875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13877 -e 's:$: $lt_compiler_flag:'`
13878 (eval echo "\"\$as_me:13878: $lt_compile\"" >&5)
13879 (eval "$lt_compile" 2>out/conftest.err)
13880 ac_status=$?
13881 cat out/conftest.err >&5
13882 echo "$as_me:13882: \$? = $ac_status" >&5
13883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13884 then
13885 # The compiler can only warn and ignore the option if not recognized
13886 # So say no if there are warnings
13887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13890 lt_cv_prog_compiler_c_o_CXX=yes
13893 chmod u+w . 2>&5
13894 $rm conftest*
13895 # SGI C++ compiler will create directory out/ii_files/ for
13896 # template instantiation
13897 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13898 $rm out/* && rmdir out
13899 cd ..
13900 rmdir conftest
13901 $rm conftest*
13904 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13908 hard_links="nottested"
13909 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13910 # do not overwrite the value of need_locks provided by the user
13911 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13912 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13913 hard_links=yes
13914 $rm conftest*
13915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13916 touch conftest.a
13917 ln conftest.a conftest.b 2>&5 || hard_links=no
13918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13919 { echo "$as_me:$LINENO: result: $hard_links" >&5
13920 echo "${ECHO_T}$hard_links" >&6; }
13921 if test "$hard_links" = no; then
13922 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13923 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13924 need_locks=warn
13926 else
13927 need_locks=no
13930 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13931 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13934 case $host_os in
13935 aix[4-9]*)
13936 # If we're using GNU nm, then we don't want the "-C" option.
13937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13938 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13939 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'
13940 else
13941 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'
13944 pw32*)
13945 export_symbols_cmds_CXX="$ltdll_cmds"
13947 cygwin* | mingw*)
13948 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'
13950 linux* | k*bsd*-gnu)
13951 link_all_deplibs_CXX=no
13954 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13956 esac
13957 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13959 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13960 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13961 test "$ld_shlibs_CXX" = no && can_build_shared=no
13964 # Do we need to explicitly link libc?
13966 case "x$archive_cmds_need_lc_CXX" in
13967 x|xyes)
13968 # Assume -lc should be added
13969 archive_cmds_need_lc_CXX=yes
13971 if test "$enable_shared" = yes && test "$GCC" = yes; then
13972 case $archive_cmds_CXX in
13973 *'~'*)
13974 # FIXME: we may have to deal with multi-command sequences.
13976 '$CC '*)
13977 # Test whether the compiler implicitly links with -lc since on some
13978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13979 # to ld, don't add -lc before -lgcc.
13980 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13982 $rm conftest*
13983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13986 (eval $ac_compile) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } 2>conftest.err; then
13990 soname=conftest
13991 lib=conftest
13992 libobjs=conftest.$ac_objext
13993 deplibs=
13994 wl=$lt_prog_compiler_wl_CXX
13995 pic_flag=$lt_prog_compiler_pic_CXX
13996 compiler_flags=-v
13997 linker_flags=-v
13998 verstring=
13999 output_objdir=.
14000 libname=conftest
14001 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14002 allow_undefined_flag_CXX=
14003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14004 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }
14008 then
14009 archive_cmds_need_lc_CXX=no
14010 else
14011 archive_cmds_need_lc_CXX=yes
14013 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14014 else
14015 cat conftest.err 1>&5
14017 $rm conftest*
14018 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14019 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14021 esac
14024 esac
14026 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14028 library_names_spec=
14029 libname_spec='lib$name'
14030 soname_spec=
14031 shrext_cmds=".so"
14032 postinstall_cmds=
14033 postuninstall_cmds=
14034 finish_cmds=
14035 finish_eval=
14036 shlibpath_var=
14037 shlibpath_overrides_runpath=unknown
14038 version_type=none
14039 dynamic_linker="$host_os ld.so"
14040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14042 need_lib_prefix=unknown
14043 hardcode_into_libs=no
14045 # when you set need_version to no, make sure it does not cause -set_version
14046 # flags to be left without arguments
14047 need_version=unknown
14049 case $host_os in
14050 aix3*)
14051 version_type=linux
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14053 shlibpath_var=LIBPATH
14055 # AIX 3 has no versioning support, so we append a major version to the name.
14056 soname_spec='${libname}${release}${shared_ext}$major'
14059 aix[4-9]*)
14060 version_type=linux
14061 need_lib_prefix=no
14062 need_version=no
14063 hardcode_into_libs=yes
14064 if test "$host_cpu" = ia64; then
14065 # AIX 5 supports IA64
14066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14067 shlibpath_var=LD_LIBRARY_PATH
14068 else
14069 # With GCC up to 2.95.x, collect2 would create an import file
14070 # for dependence libraries. The import file would start with
14071 # the line `#! .'. This would cause the generated library to
14072 # depend on `.', always an invalid library. This was fixed in
14073 # development snapshots of GCC prior to 3.0.
14074 case $host_os in
14075 aix4 | aix4.[01] | aix4.[01].*)
14076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14077 echo ' yes '
14078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14080 else
14081 can_build_shared=no
14084 esac
14085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14086 # soname into executable. Probably we can add versioning support to
14087 # collect2, so additional links can be useful in future.
14088 if test "$aix_use_runtimelinking" = yes; then
14089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14090 # instead of lib<name>.a to let people know that these are not
14091 # typical AIX shared libraries.
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093 else
14094 # We preserve .a as extension for shared libraries through AIX4.2
14095 # and later when we are not doing run time linking.
14096 library_names_spec='${libname}${release}.a $libname.a'
14097 soname_spec='${libname}${release}${shared_ext}$major'
14099 shlibpath_var=LIBPATH
14103 amigaos*)
14104 library_names_spec='$libname.ixlibrary $libname.a'
14105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14106 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'
14109 beos*)
14110 library_names_spec='${libname}${shared_ext}'
14111 dynamic_linker="$host_os ld.so"
14112 shlibpath_var=LIBRARY_PATH
14115 bsdi[45]*)
14116 version_type=linux
14117 need_version=no
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14124 # the default ld.so.conf also contains /usr/contrib/lib and
14125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14126 # libtool to hard-code these into programs
14129 cygwin* | mingw* | pw32*)
14130 version_type=windows
14131 shrext_cmds=".dll"
14132 need_version=no
14133 need_lib_prefix=no
14135 case $GCC,$host_os in
14136 yes,cygwin* | yes,mingw* | yes,pw32*)
14137 library_names_spec='$libname.dll.a'
14138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14139 postinstall_cmds='base_file=`basename \${file}`~
14140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14141 dldir=$destdir/`dirname \$dlpath`~
14142 test -d \$dldir || mkdir -p \$dldir~
14143 $install_prog $dir/$dlname \$dldir/$dlname~
14144 chmod a+x \$dldir/$dlname'
14145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14146 dlpath=$dir/\$dldll~
14147 $rm \$dlpath'
14148 shlibpath_overrides_runpath=yes
14150 case $host_os in
14151 cygwin*)
14152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14156 mingw*)
14157 # MinGW DLLs use traditional 'lib' prefix
14158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14161 # It is most probably a Windows format PATH printed by
14162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14163 # path with ; separators, and with drive letters. We can handle the
14164 # drive letters (cygwin fileutils understands them), so leave them,
14165 # especially as we might pass files found there to a mingw objdump,
14166 # which wouldn't understand a cygwinified path. Ahh.
14167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14168 else
14169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14172 pw32*)
14173 # pw32 DLLs use 'pw' prefix rather than 'lib'
14174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14176 esac
14180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14182 esac
14183 dynamic_linker='Win32 ld.exe'
14184 # FIXME: first we should search . and the directory the executable is in
14185 shlibpath_var=PATH
14188 darwin* | rhapsody*)
14189 dynamic_linker="$host_os dyld"
14190 version_type=darwin
14191 need_lib_prefix=no
14192 need_version=no
14193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14194 soname_spec='${libname}${release}${major}$shared_ext'
14195 shlibpath_overrides_runpath=yes
14196 shlibpath_var=DYLD_LIBRARY_PATH
14197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14202 dgux*)
14203 version_type=linux
14204 need_lib_prefix=no
14205 need_version=no
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14207 soname_spec='${libname}${release}${shared_ext}$major'
14208 shlibpath_var=LD_LIBRARY_PATH
14211 freebsd1*)
14212 dynamic_linker=no
14215 freebsd* | dragonfly*)
14216 # DragonFly does not have aout. When/if they implement a new
14217 # versioning mechanism, adjust this.
14218 if test -x /usr/bin/objformat; then
14219 objformat=`/usr/bin/objformat`
14220 else
14221 case $host_os in
14222 freebsd[123]*) objformat=aout ;;
14223 *) objformat=elf ;;
14224 esac
14226 version_type=freebsd-$objformat
14227 case $version_type in
14228 freebsd-elf*)
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14230 need_version=no
14231 need_lib_prefix=no
14233 freebsd-*)
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14235 need_version=yes
14237 esac
14238 shlibpath_var=LD_LIBRARY_PATH
14239 case $host_os in
14240 freebsd2*)
14241 shlibpath_overrides_runpath=yes
14243 freebsd3.[01]* | freebsdelf3.[01]*)
14244 shlibpath_overrides_runpath=yes
14245 hardcode_into_libs=yes
14247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14249 shlibpath_overrides_runpath=no
14250 hardcode_into_libs=yes
14252 *) # from 4.6 on, and DragonFly
14253 shlibpath_overrides_runpath=yes
14254 hardcode_into_libs=yes
14256 esac
14259 gnu*)
14260 version_type=linux
14261 need_lib_prefix=no
14262 need_version=no
14263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14264 soname_spec='${libname}${release}${shared_ext}$major'
14265 shlibpath_var=LD_LIBRARY_PATH
14266 hardcode_into_libs=yes
14269 hpux9* | hpux10* | hpux11*)
14270 # Give a soname corresponding to the major version so that dld.sl refuses to
14271 # link against other versions.
14272 version_type=sunos
14273 need_lib_prefix=no
14274 need_version=no
14275 case $host_cpu in
14276 ia64*)
14277 shrext_cmds='.so'
14278 hardcode_into_libs=yes
14279 dynamic_linker="$host_os dld.so"
14280 shlibpath_var=LD_LIBRARY_PATH
14281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 if test "X$HPUX_IA64_MODE" = X32; then
14285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14286 else
14287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14291 hppa*64*)
14292 shrext_cmds='.sl'
14293 hardcode_into_libs=yes
14294 dynamic_linker="$host_os dld.sl"
14295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298 soname_spec='${libname}${release}${shared_ext}$major'
14299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14303 shrext_cmds='.sl'
14304 dynamic_linker="$host_os dld.sl"
14305 shlibpath_var=SHLIB_PATH
14306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14310 esac
14311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14312 postinstall_cmds='chmod 555 $lib'
14315 interix[3-9]*)
14316 version_type=linux
14317 need_lib_prefix=no
14318 need_version=no
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14320 soname_spec='${libname}${release}${shared_ext}$major'
14321 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14322 shlibpath_var=LD_LIBRARY_PATH
14323 shlibpath_overrides_runpath=no
14324 hardcode_into_libs=yes
14327 irix5* | irix6* | nonstopux*)
14328 case $host_os in
14329 nonstopux*) version_type=nonstopux ;;
14331 if test "$lt_cv_prog_gnu_ld" = yes; then
14332 version_type=linux
14333 else
14334 version_type=irix
14335 fi ;;
14336 esac
14337 need_lib_prefix=no
14338 need_version=no
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14341 case $host_os in
14342 irix5* | nonstopux*)
14343 libsuff= shlibsuff=
14346 case $LD in # libtool.m4 will add one of these switches to LD
14347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14348 libsuff= shlibsuff= libmagic=32-bit;;
14349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14350 libsuff=32 shlibsuff=N32 libmagic=N32;;
14351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14352 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14353 *) libsuff= shlibsuff= libmagic=never-match;;
14354 esac
14356 esac
14357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14358 shlibpath_overrides_runpath=no
14359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14361 hardcode_into_libs=yes
14364 # No shared lib support for Linux oldld, aout, or coff.
14365 linux*oldld* | linux*aout* | linux*coff*)
14366 dynamic_linker=no
14369 # This must be Linux ELF.
14370 linux* | k*bsd*-gnu)
14371 version_type=linux
14372 need_lib_prefix=no
14373 need_version=no
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 shlibpath_overrides_runpath=no
14379 # This implies no fast_install, which is unacceptable.
14380 # Some rework will be needed to allow for fast_install
14381 # before this can be enabled.
14382 hardcode_into_libs=yes
14384 # Append ld.so.conf contents to the search path
14385 if test -f /etc/ld.so.conf; then
14386 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' ' '`
14387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14390 # We used to test for /lib/ld.so.1 and disable shared libraries on
14391 # powerpc, because MkLinux only supported shared libraries with the
14392 # GNU dynamic linker. Since this was broken with cross compilers,
14393 # most powerpc-linux boxes support dynamic linking these days and
14394 # people can always --disable-shared, the test was removed, and we
14395 # assume the GNU/Linux dynamic linker is in use.
14396 dynamic_linker='GNU/Linux ld.so'
14399 netbsdelf*-gnu)
14400 version_type=linux
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=no
14407 hardcode_into_libs=yes
14408 dynamic_linker='NetBSD ld.elf_so'
14411 netbsd*)
14412 version_type=sunos
14413 need_lib_prefix=no
14414 need_version=no
14415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14418 dynamic_linker='NetBSD (a.out) ld.so'
14419 else
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 dynamic_linker='NetBSD ld.elf_so'
14424 shlibpath_var=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath=yes
14426 hardcode_into_libs=yes
14429 newsos6)
14430 version_type=linux
14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=yes
14436 nto-qnx*)
14437 version_type=linux
14438 need_lib_prefix=no
14439 need_version=no
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=yes
14446 openbsd*)
14447 version_type=sunos
14448 sys_lib_dlsearch_path_spec="/usr/lib"
14449 need_lib_prefix=no
14450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14451 case $host_os in
14452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14453 *) need_version=no ;;
14454 esac
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14459 case $host_os in
14460 openbsd2.[89] | openbsd2.[89].*)
14461 shlibpath_overrides_runpath=no
14464 shlibpath_overrides_runpath=yes
14466 esac
14467 else
14468 shlibpath_overrides_runpath=yes
14472 os2*)
14473 libname_spec='$name'
14474 shrext_cmds=".dll"
14475 need_lib_prefix=no
14476 library_names_spec='$libname${shared_ext} $libname.a'
14477 dynamic_linker='OS/2 ld.exe'
14478 shlibpath_var=LIBPATH
14481 osf3* | osf4* | osf5*)
14482 version_type=osf
14483 need_lib_prefix=no
14484 need_version=no
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14492 rdos*)
14493 dynamic_linker=no
14496 solaris*)
14497 version_type=linux
14498 need_lib_prefix=no
14499 need_version=no
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 soname_spec='${libname}${release}${shared_ext}$major'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 shlibpath_overrides_runpath=yes
14504 hardcode_into_libs=yes
14505 # ldd complains unless libraries are executable
14506 postinstall_cmds='chmod +x $lib'
14509 sunos4*)
14510 version_type=sunos
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 shlibpath_overrides_runpath=yes
14515 if test "$with_gnu_ld" = yes; then
14516 need_lib_prefix=no
14518 need_version=yes
14521 sysv4 | sysv4.3*)
14522 version_type=linux
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 case $host_vendor in
14527 sni)
14528 shlibpath_overrides_runpath=no
14529 need_lib_prefix=no
14530 export_dynamic_flag_spec='${wl}-Blargedynsym'
14531 runpath_var=LD_RUN_PATH
14533 siemens)
14534 need_lib_prefix=no
14536 motorola)
14537 need_lib_prefix=no
14538 need_version=no
14539 shlibpath_overrides_runpath=no
14540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14542 esac
14545 sysv4*MP*)
14546 if test -d /usr/nec ;then
14547 version_type=linux
14548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14549 soname_spec='$libname${shared_ext}.$major'
14550 shlibpath_var=LD_LIBRARY_PATH
14554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14555 version_type=freebsd-elf
14556 need_lib_prefix=no
14557 need_version=no
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 hardcode_into_libs=yes
14562 if test "$with_gnu_ld" = yes; then
14563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14564 shlibpath_overrides_runpath=no
14565 else
14566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14567 shlibpath_overrides_runpath=yes
14568 case $host_os in
14569 sco3.2v5*)
14570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14572 esac
14574 sys_lib_dlsearch_path_spec='/usr/lib'
14577 uts4*)
14578 version_type=linux
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 shlibpath_var=LD_LIBRARY_PATH
14585 dynamic_linker=no
14587 esac
14588 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14589 echo "${ECHO_T}$dynamic_linker" >&6; }
14590 test "$dynamic_linker" = no && can_build_shared=no
14592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14598 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14608 if test "$GCC" = yes; then
14609 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14612 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14614 hardcode_action_CXX=
14615 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14616 test -n "$runpath_var_CXX" || \
14617 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14619 # We can hardcode non-existant directories.
14620 if test "$hardcode_direct_CXX" != no &&
14621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14622 # have to relink, otherwise we might link with an installed library
14623 # when we should be linking with a yet-to-be-installed one
14624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14625 test "$hardcode_minus_L_CXX" != no; then
14626 # Linking always hardcodes the temporary library directory.
14627 hardcode_action_CXX=relink
14628 else
14629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14630 hardcode_action_CXX=immediate
14632 else
14633 # We cannot hardcode anything, or else we can only hardcode existing
14634 # directories.
14635 hardcode_action_CXX=unsupported
14637 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14638 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14640 if test "$hardcode_action_CXX" = relink; then
14641 # Fast installation is not supported
14642 enable_fast_install=no
14643 elif test "$shlibpath_overrides_runpath" = yes ||
14644 test "$enable_shared" = no; then
14645 # Fast installation is not necessary
14646 enable_fast_install=needless
14650 # The else clause should only fire when bootstrapping the
14651 # libtool distribution, otherwise you forgot to ship ltmain.sh
14652 # with your package, and you will get complaints that there are
14653 # no rules to generate ltmain.sh.
14654 if test -f "$ltmain"; then
14655 # See if we are running on zsh, and set the options which allow our commands through
14656 # without removal of \ escapes.
14657 if test -n "${ZSH_VERSION+set}" ; then
14658 setopt NO_GLOB_SUBST
14660 # Now quote all the things that may contain metacharacters while being
14661 # careful not to overquote the AC_SUBSTed values. We take copies of the
14662 # variables and quote the copies for generation of the libtool script.
14663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14664 SED SHELL STRIP \
14665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14667 deplibs_check_method reload_flag reload_cmds need_locks \
14668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14669 lt_cv_sys_global_symbol_to_c_name_address \
14670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14671 old_postinstall_cmds old_postuninstall_cmds \
14672 compiler_CXX \
14673 CC_CXX \
14674 LD_CXX \
14675 lt_prog_compiler_wl_CXX \
14676 lt_prog_compiler_pic_CXX \
14677 lt_prog_compiler_static_CXX \
14678 lt_prog_compiler_no_builtin_flag_CXX \
14679 export_dynamic_flag_spec_CXX \
14680 thread_safe_flag_spec_CXX \
14681 whole_archive_flag_spec_CXX \
14682 enable_shared_with_static_runtimes_CXX \
14683 old_archive_cmds_CXX \
14684 old_archive_from_new_cmds_CXX \
14685 predep_objects_CXX \
14686 postdep_objects_CXX \
14687 predeps_CXX \
14688 postdeps_CXX \
14689 compiler_lib_search_path_CXX \
14690 compiler_lib_search_dirs_CXX \
14691 archive_cmds_CXX \
14692 archive_expsym_cmds_CXX \
14693 postinstall_cmds_CXX \
14694 postuninstall_cmds_CXX \
14695 old_archive_from_expsyms_cmds_CXX \
14696 allow_undefined_flag_CXX \
14697 no_undefined_flag_CXX \
14698 export_symbols_cmds_CXX \
14699 hardcode_libdir_flag_spec_CXX \
14700 hardcode_libdir_flag_spec_ld_CXX \
14701 hardcode_libdir_separator_CXX \
14702 hardcode_automatic_CXX \
14703 module_cmds_CXX \
14704 module_expsym_cmds_CXX \
14705 lt_cv_prog_compiler_c_o_CXX \
14706 fix_srcfile_path_CXX \
14707 exclude_expsyms_CXX \
14708 include_expsyms_CXX; do
14710 case $var in
14711 old_archive_cmds_CXX | \
14712 old_archive_from_new_cmds_CXX | \
14713 archive_cmds_CXX | \
14714 archive_expsym_cmds_CXX | \
14715 module_cmds_CXX | \
14716 module_expsym_cmds_CXX | \
14717 old_archive_from_expsyms_cmds_CXX | \
14718 export_symbols_cmds_CXX | \
14719 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14720 postinstall_cmds | postuninstall_cmds | \
14721 old_postinstall_cmds | old_postuninstall_cmds | \
14722 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14723 # Double-quote double-evaled strings.
14724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14729 esac
14730 done
14732 case $lt_echo in
14733 *'\$0 --fallback-echo"')
14734 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14736 esac
14738 cfgfile="$ofile"
14740 cat <<__EOF__ >> "$cfgfile"
14741 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14745 # Shell to use when invoking shell scripts.
14746 SHELL=$lt_SHELL
14748 # Whether or not to build shared libraries.
14749 build_libtool_libs=$enable_shared
14751 # Whether or not to build static libraries.
14752 build_old_libs=$enable_static
14754 # Whether or not to add -lc for building shared libraries.
14755 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14757 # Whether or not to disallow shared libs when runtime libs are static
14758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14760 # Whether or not to optimize for fast installation.
14761 fast_install=$enable_fast_install
14763 # The host system.
14764 host_alias=$host_alias
14765 host=$host
14766 host_os=$host_os
14768 # The build system.
14769 build_alias=$build_alias
14770 build=$build
14771 build_os=$build_os
14773 # An echo program that does not interpret backslashes.
14774 echo=$lt_echo
14776 # The archiver.
14777 AR=$lt_AR
14778 AR_FLAGS=$lt_AR_FLAGS
14780 # A C compiler.
14781 LTCC=$lt_LTCC
14783 # LTCC compiler flags.
14784 LTCFLAGS=$lt_LTCFLAGS
14786 # A language-specific compiler.
14787 CC=$lt_compiler_CXX
14789 # Is the compiler the GNU C compiler?
14790 with_gcc=$GCC_CXX
14792 # An ERE matcher.
14793 EGREP=$lt_EGREP
14795 # The linker used to build libraries.
14796 LD=$lt_LD_CXX
14798 # Whether we need hard or soft links.
14799 LN_S=$lt_LN_S
14801 # A BSD-compatible nm program.
14802 NM=$lt_NM
14804 # A symbol stripping program
14805 STRIP=$lt_STRIP
14807 # Used to examine libraries when file_magic_cmd begins "file"
14808 MAGIC_CMD=$MAGIC_CMD
14810 # Used on cygwin: DLL creation program.
14811 DLLTOOL="$DLLTOOL"
14813 # Used on cygwin: object dumper.
14814 OBJDUMP="$OBJDUMP"
14816 # Used on cygwin: assembler.
14817 AS="$AS"
14819 # The name of the directory that contains temporary libtool files.
14820 objdir=$objdir
14822 # How to create reloadable object files.
14823 reload_flag=$lt_reload_flag
14824 reload_cmds=$lt_reload_cmds
14826 # How to pass a linker flag through the compiler.
14827 wl=$lt_lt_prog_compiler_wl_CXX
14829 # Object file suffix (normally "o").
14830 objext="$ac_objext"
14832 # Old archive suffix (normally "a").
14833 libext="$libext"
14835 # Shared library suffix (normally ".so").
14836 shrext_cmds='$shrext_cmds'
14838 # Executable file suffix (normally "").
14839 exeext="$exeext"
14841 # Additional compiler flags for building library objects.
14842 pic_flag=$lt_lt_prog_compiler_pic_CXX
14843 pic_mode=$pic_mode
14845 # What is the maximum length of a command?
14846 max_cmd_len=$lt_cv_sys_max_cmd_len
14848 # Does compiler simultaneously support -c and -o options?
14849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14851 # Must we lock files when doing compilation?
14852 need_locks=$lt_need_locks
14854 # Do we need the lib prefix for modules?
14855 need_lib_prefix=$need_lib_prefix
14857 # Do we need a version for libraries?
14858 need_version=$need_version
14860 # Whether dlopen is supported.
14861 dlopen_support=$enable_dlopen
14863 # Whether dlopen of programs is supported.
14864 dlopen_self=$enable_dlopen_self
14866 # Whether dlopen of statically linked programs is supported.
14867 dlopen_self_static=$enable_dlopen_self_static
14869 # Compiler flag to prevent dynamic linking.
14870 link_static_flag=$lt_lt_prog_compiler_static_CXX
14872 # Compiler flag to turn off builtin functions.
14873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14875 # Compiler flag to allow reflexive dlopens.
14876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14878 # Compiler flag to generate shared objects directly from archives.
14879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14881 # Compiler flag to generate thread-safe objects.
14882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14884 # Library versioning type.
14885 version_type=$version_type
14887 # Format of library name prefix.
14888 libname_spec=$lt_libname_spec
14890 # List of archive names. First name is the real one, the rest are links.
14891 # The last name is the one that the linker finds with -lNAME.
14892 library_names_spec=$lt_library_names_spec
14894 # The coded name of the library, if different from the real name.
14895 soname_spec=$lt_soname_spec
14897 # Commands used to build and install an old-style archive.
14898 RANLIB=$lt_RANLIB
14899 old_archive_cmds=$lt_old_archive_cmds_CXX
14900 old_postinstall_cmds=$lt_old_postinstall_cmds
14901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14903 # Create an old-style archive from a shared archive.
14904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14906 # Create a temporary old-style archive to link instead of a shared archive.
14907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14909 # Commands used to build and install a shared archive.
14910 archive_cmds=$lt_archive_cmds_CXX
14911 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14912 postinstall_cmds=$lt_postinstall_cmds
14913 postuninstall_cmds=$lt_postuninstall_cmds
14915 # Commands used to build a loadable module (assumed same as above if empty)
14916 module_cmds=$lt_module_cmds_CXX
14917 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14919 # Commands to strip libraries.
14920 old_striplib=$lt_old_striplib
14921 striplib=$lt_striplib
14923 # Dependencies to place before the objects being linked to create a
14924 # shared library.
14925 predep_objects=$lt_predep_objects_CXX
14927 # Dependencies to place after the objects being linked to create a
14928 # shared library.
14929 postdep_objects=$lt_postdep_objects_CXX
14931 # Dependencies to place before the objects being linked to create a
14932 # shared library.
14933 predeps=$lt_predeps_CXX
14935 # Dependencies to place after the objects being linked to create a
14936 # shared library.
14937 postdeps=$lt_postdeps_CXX
14939 # The directories searched by this compiler when creating a shared
14940 # library
14941 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14943 # The library search path used internally by the compiler when linking
14944 # a shared library.
14945 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14947 # Method to check whether dependent libraries are shared objects.
14948 deplibs_check_method=$lt_deplibs_check_method
14950 # Command to use when deplibs_check_method == file_magic.
14951 file_magic_cmd=$lt_file_magic_cmd
14953 # Flag that allows shared libraries with undefined symbols to be built.
14954 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14956 # Flag that forces no undefined symbols.
14957 no_undefined_flag=$lt_no_undefined_flag_CXX
14959 # Commands used to finish a libtool library installation in a directory.
14960 finish_cmds=$lt_finish_cmds
14962 # Same as above, but a single script fragment to be evaled but not shown.
14963 finish_eval=$lt_finish_eval
14965 # Take the output of nm and produce a listing of raw symbols and C names.
14966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14968 # Transform the output of nm in a proper C declaration
14969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14971 # Transform the output of nm in a C name address pair
14972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14974 # This is the shared library runtime path variable.
14975 runpath_var=$runpath_var
14977 # This is the shared library path variable.
14978 shlibpath_var=$shlibpath_var
14980 # Is shlibpath searched before the hard-coded library search path?
14981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14983 # How to hardcode a shared library path into an executable.
14984 hardcode_action=$hardcode_action_CXX
14986 # Whether we should hardcode library paths into libraries.
14987 hardcode_into_libs=$hardcode_into_libs
14989 # Flag to hardcode \$libdir into a binary during linking.
14990 # This must work even if \$libdir does not exist.
14991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14993 # If ld is used when linking, flag to hardcode \$libdir into
14994 # a binary during linking. This must work even if \$libdir does
14995 # not exist.
14996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14998 # Whether we need a single -rpath flag with a separated argument.
14999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15002 # resulting binary.
15003 hardcode_direct=$hardcode_direct_CXX
15005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15006 # resulting binary.
15007 hardcode_minus_L=$hardcode_minus_L_CXX
15009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15010 # the resulting binary.
15011 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15013 # Set to yes if building a shared library automatically hardcodes DIR into the library
15014 # and all subsequent libraries and executables linked against it.
15015 hardcode_automatic=$hardcode_automatic_CXX
15017 # Variables whose values should be saved in libtool wrapper scripts and
15018 # restored at relink time.
15019 variables_saved_for_relink="$variables_saved_for_relink"
15021 # Whether libtool must link a program against all its dependency libraries.
15022 link_all_deplibs=$link_all_deplibs_CXX
15024 # Compile-time system search path for libraries
15025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15027 # Run-time system search path for libraries
15028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15030 # Fix the shell variable \$srcfile for the compiler.
15031 fix_srcfile_path=$lt_fix_srcfile_path
15033 # Set to yes if exported symbols are required.
15034 always_export_symbols=$always_export_symbols_CXX
15036 # The commands to list exported symbols.
15037 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15039 # The commands to extract the exported symbol list from a shared archive.
15040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15042 # Symbols that should not be listed in the preloaded symbols.
15043 exclude_expsyms=$lt_exclude_expsyms_CXX
15045 # Symbols that must always be exported.
15046 include_expsyms=$lt_include_expsyms_CXX
15048 # ### END LIBTOOL TAG CONFIG: $tagname
15050 __EOF__
15053 else
15054 # If there is no Makefile yet, we rely on a make rule to execute
15055 # `config.status --recheck' to rerun these tests and create the
15056 # libtool script then.
15057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15058 if test -f "$ltmain_in"; then
15059 test -f Makefile && make "$ltmain"
15064 ac_ext=c
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15070 CC=$lt_save_CC
15071 LDCXX=$LD
15072 LD=$lt_save_LD
15073 GCC=$lt_save_GCC
15074 with_gnu_ldcxx=$with_gnu_ld
15075 with_gnu_ld=$lt_save_with_gnu_ld
15076 lt_cv_path_LDCXX=$lt_cv_path_LD
15077 lt_cv_path_LD=$lt_save_path_LD
15078 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15079 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15081 else
15082 tagname=""
15086 F77)
15087 if test -n "$F77" && test "X$F77" != "Xno"; then
15089 ac_ext=f
15090 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15091 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15092 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15095 archive_cmds_need_lc_F77=no
15096 allow_undefined_flag_F77=
15097 always_export_symbols_F77=no
15098 archive_expsym_cmds_F77=
15099 export_dynamic_flag_spec_F77=
15100 hardcode_direct_F77=no
15101 hardcode_libdir_flag_spec_F77=
15102 hardcode_libdir_flag_spec_ld_F77=
15103 hardcode_libdir_separator_F77=
15104 hardcode_minus_L_F77=no
15105 hardcode_automatic_F77=no
15106 module_cmds_F77=
15107 module_expsym_cmds_F77=
15108 link_all_deplibs_F77=unknown
15109 old_archive_cmds_F77=$old_archive_cmds
15110 no_undefined_flag_F77=
15111 whole_archive_flag_spec_F77=
15112 enable_shared_with_static_runtimes_F77=no
15114 # Source file extension for f77 test sources.
15115 ac_ext=f
15117 # Object file extension for compiled f77 test sources.
15118 objext=o
15119 objext_F77=$objext
15121 # Code to be used in simple compile tests
15122 lt_simple_compile_test_code="\
15123 subroutine t
15124 return
15128 # Code to be used in simple link tests
15129 lt_simple_link_test_code="\
15130 program t
15134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15136 # If no C compiler was specified, use CC.
15137 LTCC=${LTCC-"$CC"}
15139 # If no C compiler flags were specified, use CFLAGS.
15140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15142 # Allow CC to be a program name with arguments.
15143 compiler=$CC
15146 # save warnings/boilerplate of simple test code
15147 ac_outfile=conftest.$ac_objext
15148 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15149 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15150 _lt_compiler_boilerplate=`cat conftest.err`
15151 $rm conftest*
15153 ac_outfile=conftest.$ac_objext
15154 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15155 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15156 _lt_linker_boilerplate=`cat conftest.err`
15157 $rm -r conftest*
15160 # Allow CC to be a program name with arguments.
15161 lt_save_CC="$CC"
15162 CC=${F77-"f77"}
15163 compiler=$CC
15164 compiler_F77=$CC
15165 for cc_temp in $compiler""; do
15166 case $cc_temp in
15167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15169 \-*) ;;
15170 *) break;;
15171 esac
15172 done
15173 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15176 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15177 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15178 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15179 echo "${ECHO_T}$can_build_shared" >&6; }
15181 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15182 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15183 test "$can_build_shared" = "no" && enable_shared=no
15185 # On AIX, shared libraries and static libraries use the same namespace, and
15186 # are all built from PIC.
15187 case $host_os in
15188 aix3*)
15189 test "$enable_shared" = yes && enable_static=no
15190 if test -n "$RANLIB"; then
15191 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15192 postinstall_cmds='$RANLIB $lib'
15195 aix[4-9]*)
15196 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15197 test "$enable_shared" = yes && enable_static=no
15200 esac
15201 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15202 echo "${ECHO_T}$enable_shared" >&6; }
15204 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15205 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15206 # Make sure either enable_shared or enable_static is yes.
15207 test "$enable_shared" = yes || enable_static=yes
15208 { echo "$as_me:$LINENO: result: $enable_static" >&5
15209 echo "${ECHO_T}$enable_static" >&6; }
15211 GCC_F77="$G77"
15212 LD_F77="$LD"
15214 lt_prog_compiler_wl_F77=
15215 lt_prog_compiler_pic_F77=
15216 lt_prog_compiler_static_F77=
15218 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15219 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15221 if test "$GCC" = yes; then
15222 lt_prog_compiler_wl_F77='-Wl,'
15223 lt_prog_compiler_static_F77='-static'
15225 case $host_os in
15226 aix*)
15227 # All AIX code is PIC.
15228 if test "$host_cpu" = ia64; then
15229 # AIX 5 now supports IA64 processor
15230 lt_prog_compiler_static_F77='-Bstatic'
15234 amigaos*)
15235 # FIXME: we need at least 68020 code to build shared libraries, but
15236 # adding the `-m68020' flag to GCC prevents building anything better,
15237 # like `-m68040'.
15238 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15241 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15242 # PIC is the default for these OSes.
15245 mingw* | cygwin* | pw32* | os2*)
15246 # This hack is so that the source file can tell whether it is being
15247 # built for inclusion in a dll (and should export symbols for example).
15248 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15249 # (--disable-auto-import) libraries
15250 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15253 darwin* | rhapsody*)
15254 # PIC is the default on this platform
15255 # Common symbols not allowed in MH_DYLIB files
15256 lt_prog_compiler_pic_F77='-fno-common'
15259 interix[3-9]*)
15260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15261 # Instead, we relocate shared libraries at runtime.
15264 msdosdjgpp*)
15265 # Just because we use GCC doesn't mean we suddenly get shared libraries
15266 # on systems that don't support them.
15267 lt_prog_compiler_can_build_shared_F77=no
15268 enable_shared=no
15271 sysv4*MP*)
15272 if test -d /usr/nec; then
15273 lt_prog_compiler_pic_F77=-Kconform_pic
15277 hpux*)
15278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15279 # not for PA HP-UX.
15280 case $host_cpu in
15281 hppa*64*|ia64*)
15282 # +Z the default
15285 lt_prog_compiler_pic_F77='-fPIC'
15287 esac
15291 lt_prog_compiler_pic_F77='-fPIC'
15293 esac
15294 else
15295 # PORTME Check for flag to pass linker flags through the system compiler.
15296 case $host_os in
15297 aix*)
15298 lt_prog_compiler_wl_F77='-Wl,'
15299 if test "$host_cpu" = ia64; then
15300 # AIX 5 now supports IA64 processor
15301 lt_prog_compiler_static_F77='-Bstatic'
15302 else
15303 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15306 darwin*)
15307 # PIC is the default on this platform
15308 # Common symbols not allowed in MH_DYLIB files
15309 case $cc_basename in
15310 xlc*)
15311 lt_prog_compiler_pic_F77='-qnocommon'
15312 lt_prog_compiler_wl_F77='-Wl,'
15314 esac
15317 mingw* | cygwin* | pw32* | os2*)
15318 # This hack is so that the source file can tell whether it is being
15319 # built for inclusion in a dll (and should export symbols for example).
15320 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15323 hpux9* | hpux10* | hpux11*)
15324 lt_prog_compiler_wl_F77='-Wl,'
15325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15326 # not for PA HP-UX.
15327 case $host_cpu in
15328 hppa*64*|ia64*)
15329 # +Z the default
15332 lt_prog_compiler_pic_F77='+Z'
15334 esac
15335 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15336 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15339 irix5* | irix6* | nonstopux*)
15340 lt_prog_compiler_wl_F77='-Wl,'
15341 # PIC (with -KPIC) is the default.
15342 lt_prog_compiler_static_F77='-non_shared'
15345 newsos6)
15346 lt_prog_compiler_pic_F77='-KPIC'
15347 lt_prog_compiler_static_F77='-Bstatic'
15350 linux* | k*bsd*-gnu)
15351 case $cc_basename in
15352 icc* | ecc*)
15353 lt_prog_compiler_wl_F77='-Wl,'
15354 lt_prog_compiler_pic_F77='-KPIC'
15355 lt_prog_compiler_static_F77='-static'
15357 pgcc* | pgf77* | pgf90* | pgf95*)
15358 # Portland Group compilers (*not* the Pentium gcc compiler,
15359 # which looks to be a dead project)
15360 lt_prog_compiler_wl_F77='-Wl,'
15361 lt_prog_compiler_pic_F77='-fpic'
15362 lt_prog_compiler_static_F77='-Bstatic'
15364 ccc*)
15365 lt_prog_compiler_wl_F77='-Wl,'
15366 # All Alpha code is PIC.
15367 lt_prog_compiler_static_F77='-non_shared'
15370 case `$CC -V 2>&1 | sed 5q` in
15371 *Sun\ C*)
15372 # Sun C 5.9
15373 lt_prog_compiler_pic_F77='-KPIC'
15374 lt_prog_compiler_static_F77='-Bstatic'
15375 lt_prog_compiler_wl_F77='-Wl,'
15377 *Sun\ F*)
15378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15379 lt_prog_compiler_pic_F77='-KPIC'
15380 lt_prog_compiler_static_F77='-Bstatic'
15381 lt_prog_compiler_wl_F77=''
15383 esac
15385 esac
15388 osf3* | osf4* | osf5*)
15389 lt_prog_compiler_wl_F77='-Wl,'
15390 # All OSF/1 code is PIC.
15391 lt_prog_compiler_static_F77='-non_shared'
15394 rdos*)
15395 lt_prog_compiler_static_F77='-non_shared'
15398 solaris*)
15399 lt_prog_compiler_pic_F77='-KPIC'
15400 lt_prog_compiler_static_F77='-Bstatic'
15401 case $cc_basename in
15402 f77* | f90* | f95*)
15403 lt_prog_compiler_wl_F77='-Qoption ld ';;
15405 lt_prog_compiler_wl_F77='-Wl,';;
15406 esac
15409 sunos4*)
15410 lt_prog_compiler_wl_F77='-Qoption ld '
15411 lt_prog_compiler_pic_F77='-PIC'
15412 lt_prog_compiler_static_F77='-Bstatic'
15415 sysv4 | sysv4.2uw2* | sysv4.3*)
15416 lt_prog_compiler_wl_F77='-Wl,'
15417 lt_prog_compiler_pic_F77='-KPIC'
15418 lt_prog_compiler_static_F77='-Bstatic'
15421 sysv4*MP*)
15422 if test -d /usr/nec ;then
15423 lt_prog_compiler_pic_F77='-Kconform_pic'
15424 lt_prog_compiler_static_F77='-Bstatic'
15428 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15429 lt_prog_compiler_wl_F77='-Wl,'
15430 lt_prog_compiler_pic_F77='-KPIC'
15431 lt_prog_compiler_static_F77='-Bstatic'
15434 unicos*)
15435 lt_prog_compiler_wl_F77='-Wl,'
15436 lt_prog_compiler_can_build_shared_F77=no
15439 uts4*)
15440 lt_prog_compiler_pic_F77='-pic'
15441 lt_prog_compiler_static_F77='-Bstatic'
15445 lt_prog_compiler_can_build_shared_F77=no
15447 esac
15450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15451 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15454 # Check to make sure the PIC flag actually works.
15456 if test -n "$lt_prog_compiler_pic_F77"; then
15458 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15459 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15460 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463 lt_cv_prog_compiler_pic_works_F77=no
15464 ac_outfile=conftest.$ac_objext
15465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15466 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15467 # Insert the option either (1) after the last *FLAGS variable, or
15468 # (2) before a word containing "conftest.", or (3) at the end.
15469 # Note that $ac_compile itself does not contain backslashes and begins
15470 # with a dollar sign (not a hyphen), so the echo should work correctly.
15471 # The option is referenced via a variable to avoid confusing sed.
15472 lt_compile=`echo "$ac_compile" | $SED \
15473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15475 -e 's:$: $lt_compiler_flag:'`
15476 (eval echo "\"\$as_me:15476: $lt_compile\"" >&5)
15477 (eval "$lt_compile" 2>conftest.err)
15478 ac_status=$?
15479 cat conftest.err >&5
15480 echo "$as_me:15480: \$? = $ac_status" >&5
15481 if (exit $ac_status) && test -s "$ac_outfile"; then
15482 # The compiler can only warn and ignore the option if not recognized
15483 # So say no if there are warnings other than the usual output.
15484 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15487 lt_cv_prog_compiler_pic_works_F77=yes
15490 $rm conftest*
15493 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15494 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15496 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15497 case $lt_prog_compiler_pic_F77 in
15498 "" | " "*) ;;
15499 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15500 esac
15501 else
15502 lt_prog_compiler_pic_F77=
15503 lt_prog_compiler_can_build_shared_F77=no
15507 case $host_os in
15508 # For platforms which do not support PIC, -DPIC is meaningless:
15509 *djgpp*)
15510 lt_prog_compiler_pic_F77=
15513 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15515 esac
15518 # Check to make sure the static flag actually works.
15520 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15521 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15522 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15523 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526 lt_cv_prog_compiler_static_works_F77=no
15527 save_LDFLAGS="$LDFLAGS"
15528 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15529 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15530 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15531 # The linker can only warn and ignore the option if not recognized
15532 # So say no if there are warnings
15533 if test -s conftest.err; then
15534 # Append any errors to the config.log.
15535 cat conftest.err 1>&5
15536 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15538 if diff conftest.exp conftest.er2 >/dev/null; then
15539 lt_cv_prog_compiler_static_works_F77=yes
15541 else
15542 lt_cv_prog_compiler_static_works_F77=yes
15545 $rm -r conftest*
15546 LDFLAGS="$save_LDFLAGS"
15549 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15550 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15552 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15554 else
15555 lt_prog_compiler_static_F77=
15559 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15560 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15561 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564 lt_cv_prog_compiler_c_o_F77=no
15565 $rm -r conftest 2>/dev/null
15566 mkdir conftest
15567 cd conftest
15568 mkdir out
15569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15571 lt_compiler_flag="-o out/conftest2.$ac_objext"
15572 # Insert the option either (1) after the last *FLAGS variable, or
15573 # (2) before a word containing "conftest.", or (3) at the end.
15574 # Note that $ac_compile itself does not contain backslashes and begins
15575 # with a dollar sign (not a hyphen), so the echo should work correctly.
15576 lt_compile=`echo "$ac_compile" | $SED \
15577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15579 -e 's:$: $lt_compiler_flag:'`
15580 (eval echo "\"\$as_me:15580: $lt_compile\"" >&5)
15581 (eval "$lt_compile" 2>out/conftest.err)
15582 ac_status=$?
15583 cat out/conftest.err >&5
15584 echo "$as_me:15584: \$? = $ac_status" >&5
15585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15586 then
15587 # The compiler can only warn and ignore the option if not recognized
15588 # So say no if there are warnings
15589 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15592 lt_cv_prog_compiler_c_o_F77=yes
15595 chmod u+w . 2>&5
15596 $rm conftest*
15597 # SGI C++ compiler will create directory out/ii_files/ for
15598 # template instantiation
15599 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15600 $rm out/* && rmdir out
15601 cd ..
15602 rmdir conftest
15603 $rm conftest*
15606 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15607 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15610 hard_links="nottested"
15611 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15612 # do not overwrite the value of need_locks provided by the user
15613 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15614 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15615 hard_links=yes
15616 $rm conftest*
15617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15618 touch conftest.a
15619 ln conftest.a conftest.b 2>&5 || hard_links=no
15620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15621 { echo "$as_me:$LINENO: result: $hard_links" >&5
15622 echo "${ECHO_T}$hard_links" >&6; }
15623 if test "$hard_links" = no; then
15624 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15625 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15626 need_locks=warn
15628 else
15629 need_locks=no
15632 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15633 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15635 runpath_var=
15636 allow_undefined_flag_F77=
15637 enable_shared_with_static_runtimes_F77=no
15638 archive_cmds_F77=
15639 archive_expsym_cmds_F77=
15640 old_archive_From_new_cmds_F77=
15641 old_archive_from_expsyms_cmds_F77=
15642 export_dynamic_flag_spec_F77=
15643 whole_archive_flag_spec_F77=
15644 thread_safe_flag_spec_F77=
15645 hardcode_libdir_flag_spec_F77=
15646 hardcode_libdir_flag_spec_ld_F77=
15647 hardcode_libdir_separator_F77=
15648 hardcode_direct_F77=no
15649 hardcode_minus_L_F77=no
15650 hardcode_shlibpath_var_F77=unsupported
15651 link_all_deplibs_F77=unknown
15652 hardcode_automatic_F77=no
15653 module_cmds_F77=
15654 module_expsym_cmds_F77=
15655 always_export_symbols_F77=no
15656 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15657 # include_expsyms should be a list of space-separated symbols to be *always*
15658 # included in the symbol list
15659 include_expsyms_F77=
15660 # exclude_expsyms can be an extended regexp of symbols to exclude
15661 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15662 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15663 # as well as any symbol that contains `d'.
15664 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15666 # platforms (ab)use it in PIC code, but their linkers get confused if
15667 # the symbol is explicitly referenced. Since portable code cannot
15668 # rely on this symbol name, it's probably fine to never include it in
15669 # preloaded symbol tables.
15670 # Exclude shared library initialization/finalization symbols.
15671 extract_expsyms_cmds=
15672 # Just being paranoid about ensuring that cc_basename is set.
15673 for cc_temp in $compiler""; do
15674 case $cc_temp in
15675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15677 \-*) ;;
15678 *) break;;
15679 esac
15680 done
15681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15683 case $host_os in
15684 cygwin* | mingw* | pw32*)
15685 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15686 # When not using gcc, we currently assume that we are using
15687 # Microsoft Visual C++.
15688 if test "$GCC" != yes; then
15689 with_gnu_ld=no
15692 interix*)
15693 # we just hope/assume this is gcc and not c89 (= MSVC++)
15694 with_gnu_ld=yes
15696 openbsd*)
15697 with_gnu_ld=no
15699 esac
15701 ld_shlibs_F77=yes
15702 if test "$with_gnu_ld" = yes; then
15703 # If archive_cmds runs LD, not CC, wlarc should be empty
15704 wlarc='${wl}'
15706 # Set some defaults for GNU ld with shared library support. These
15707 # are reset later if shared libraries are not supported. Putting them
15708 # here allows them to be overridden if necessary.
15709 runpath_var=LD_RUN_PATH
15710 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15711 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15712 # ancient GNU ld didn't support --whole-archive et. al.
15713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15714 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15715 else
15716 whole_archive_flag_spec_F77=
15718 supports_anon_versioning=no
15719 case `$LD -v 2>/dev/null` in
15720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15723 *\ 2.11.*) ;; # other 2.11 versions
15724 *) supports_anon_versioning=yes ;;
15725 esac
15727 # See if GNU ld supports shared libraries.
15728 case $host_os in
15729 aix[3-9]*)
15730 # On AIX/PPC, the GNU linker is very broken
15731 if test "$host_cpu" != ia64; then
15732 ld_shlibs_F77=no
15733 cat <<EOF 1>&2
15735 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15736 *** to be unable to reliably create shared libraries on AIX.
15737 *** Therefore, libtool is disabling shared libraries support. If you
15738 *** really care for shared libraries, you may want to modify your PATH
15739 *** so that a non-GNU linker is found, and then restart.
15745 amigaos*)
15746 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)'
15747 hardcode_libdir_flag_spec_F77='-L$libdir'
15748 hardcode_minus_L_F77=yes
15750 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15751 # that the semantics of dynamic libraries on AmigaOS, at least up
15752 # to version 4, is to share data among multiple programs linked
15753 # with the same dynamic library. Since this doesn't match the
15754 # behavior of shared libraries on other platforms, we can't use
15755 # them.
15756 ld_shlibs_F77=no
15759 beos*)
15760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15761 allow_undefined_flag_F77=unsupported
15762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15763 # support --undefined. This deserves some investigation. FIXME
15764 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15765 else
15766 ld_shlibs_F77=no
15770 cygwin* | mingw* | pw32*)
15771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15772 # as there is no search path for DLLs.
15773 hardcode_libdir_flag_spec_F77='-L$libdir'
15774 allow_undefined_flag_F77=unsupported
15775 always_export_symbols_F77=no
15776 enable_shared_with_static_runtimes_F77=yes
15777 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15781 # If the export-symbols file already is a .def file (1st line
15782 # is EXPORTS), use it as is; otherwise, prepend...
15783 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15784 cp $export_symbols $output_objdir/$soname.def;
15785 else
15786 echo EXPORTS > $output_objdir/$soname.def;
15787 cat $export_symbols >> $output_objdir/$soname.def;
15789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15790 else
15791 ld_shlibs_F77=no
15795 interix[3-9]*)
15796 hardcode_direct_F77=no
15797 hardcode_shlibpath_var_F77=no
15798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15799 export_dynamic_flag_spec_F77='${wl}-E'
15800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15801 # Instead, shared libraries are loaded at an image base (0x10000000 by
15802 # default) and relocated if they conflict, which is a slow very memory
15803 # consuming and fragmenting process. To avoid this, we pick a random,
15804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15806 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'
15807 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'
15810 gnu* | linux* | k*bsd*-gnu)
15811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15812 tmp_addflag=
15813 case $cc_basename,$host_cpu in
15814 pgcc*) # Portland Group C compiler
15815 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'
15816 tmp_addflag=' $pic_flag'
15818 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15819 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'
15820 tmp_addflag=' $pic_flag -Mnomain' ;;
15821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15822 tmp_addflag=' -i_dynamic' ;;
15823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15824 tmp_addflag=' -i_dynamic -nofor_main' ;;
15825 ifc* | ifort*) # Intel Fortran compiler
15826 tmp_addflag=' -nofor_main' ;;
15827 esac
15828 case `$CC -V 2>&1 | sed 5q` in
15829 *Sun\ C*) # Sun C 5.9
15830 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'
15831 tmp_sharedflag='-G' ;;
15832 *Sun\ F*) # Sun Fortran 8.3
15833 tmp_sharedflag='-G' ;;
15835 tmp_sharedflag='-shared' ;;
15836 esac
15837 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15839 if test $supports_anon_versioning = yes; then
15840 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15842 $echo "local: *; };" >> $output_objdir/$libname.ver~
15843 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15845 link_all_deplibs_F77=no
15846 else
15847 ld_shlibs_F77=no
15851 netbsd* | netbsdelf*-gnu)
15852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15853 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15854 wlarc=
15855 else
15856 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15857 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15861 solaris*)
15862 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15863 ld_shlibs_F77=no
15864 cat <<EOF 1>&2
15866 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15867 *** create shared libraries on Solaris systems. Therefore, libtool
15868 *** is disabling shared libraries support. We urge you to upgrade GNU
15869 *** binutils to release 2.9.1 or newer. Another option is to modify
15870 *** your PATH or compiler configuration so that the native linker is
15871 *** used, and then restart.
15874 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15876 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15877 else
15878 ld_shlibs_F77=no
15882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15883 case `$LD -v 2>&1` in
15884 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15885 ld_shlibs_F77=no
15886 cat <<_LT_EOF 1>&2
15888 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15889 *** reliably create shared libraries on SCO systems. Therefore, libtool
15890 *** is disabling shared libraries support. We urge you to upgrade GNU
15891 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15892 *** your PATH or compiler configuration so that the native linker is
15893 *** used, and then restart.
15895 _LT_EOF
15898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15899 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15900 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15901 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15902 else
15903 ld_shlibs_F77=no
15906 esac
15909 sunos4*)
15910 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15911 wlarc=
15912 hardcode_direct_F77=yes
15913 hardcode_shlibpath_var_F77=no
15917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15920 else
15921 ld_shlibs_F77=no
15924 esac
15926 if test "$ld_shlibs_F77" = no; then
15927 runpath_var=
15928 hardcode_libdir_flag_spec_F77=
15929 export_dynamic_flag_spec_F77=
15930 whole_archive_flag_spec_F77=
15932 else
15933 # PORTME fill in a description of your system's linker (not GNU ld)
15934 case $host_os in
15935 aix3*)
15936 allow_undefined_flag_F77=unsupported
15937 always_export_symbols_F77=yes
15938 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'
15939 # Note: this linker hardcodes the directories in LIBPATH if there
15940 # are no directories specified by -L.
15941 hardcode_minus_L_F77=yes
15942 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15943 # Neither direct hardcoding nor static linking is supported with a
15944 # broken collect2.
15945 hardcode_direct_F77=unsupported
15949 aix[4-9]*)
15950 if test "$host_cpu" = ia64; then
15951 # On IA64, the linker does run time linking by default, so we don't
15952 # have to do anything special.
15953 aix_use_runtimelinking=no
15954 exp_sym_flag='-Bexport'
15955 no_entry_flag=""
15956 else
15957 # If we're using GNU nm, then we don't want the "-C" option.
15958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15959 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15960 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'
15961 else
15962 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'
15964 aix_use_runtimelinking=no
15966 # Test if we are trying to use run time linking or normal
15967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15968 # need to do runtime linking.
15969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15970 for ld_flag in $LDFLAGS; do
15971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15972 aix_use_runtimelinking=yes
15973 break
15975 done
15977 esac
15979 exp_sym_flag='-bexport'
15980 no_entry_flag='-bnoentry'
15983 # When large executables or shared objects are built, AIX ld can
15984 # have problems creating the table of contents. If linking a library
15985 # or program results in "error TOC overflow" add -mminimal-toc to
15986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15989 archive_cmds_F77=''
15990 hardcode_direct_F77=yes
15991 hardcode_libdir_separator_F77=':'
15992 link_all_deplibs_F77=yes
15994 if test "$GCC" = yes; then
15995 case $host_os in aix4.[012]|aix4.[012].*)
15996 # We only want to do this on AIX 4.2 and lower, the check
15997 # below for broken collect2 doesn't work under 4.3+
15998 collect2name=`${CC} -print-prog-name=collect2`
15999 if test -f "$collect2name" && \
16000 strings "$collect2name" | grep resolve_lib_name >/dev/null
16001 then
16002 # We have reworked collect2
16004 else
16005 # We have old collect2
16006 hardcode_direct_F77=unsupported
16007 # It fails to find uninstalled libraries when the uninstalled
16008 # path is not listed in the libpath. Setting hardcode_minus_L
16009 # to unsupported forces relinking
16010 hardcode_minus_L_F77=yes
16011 hardcode_libdir_flag_spec_F77='-L$libdir'
16012 hardcode_libdir_separator_F77=
16015 esac
16016 shared_flag='-shared'
16017 if test "$aix_use_runtimelinking" = yes; then
16018 shared_flag="$shared_flag "'${wl}-G'
16020 else
16021 # not using gcc
16022 if test "$host_cpu" = ia64; then
16023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16024 # chokes on -Wl,-G. The following line is correct:
16025 shared_flag='-G'
16026 else
16027 if test "$aix_use_runtimelinking" = yes; then
16028 shared_flag='${wl}-G'
16029 else
16030 shared_flag='${wl}-bM:SRE'
16035 # It seems that -bexpall does not export symbols beginning with
16036 # underscore (_), so it is better to generate a list of symbols to export.
16037 always_export_symbols_F77=yes
16038 if test "$aix_use_runtimelinking" = yes; then
16039 # Warning - without using the other runtime loading flags (-brtl),
16040 # -berok will link without error, but may produce a broken library.
16041 allow_undefined_flag_F77='-berok'
16042 # Determine the default libpath from the value encoded in an empty executable.
16043 cat >conftest.$ac_ext <<_ACEOF
16044 program main
16047 _ACEOF
16048 rm -f conftest.$ac_objext conftest$ac_exeext
16049 if { (ac_try="$ac_link"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16053 esac
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_link") 2>conftest.er1
16056 ac_status=$?
16057 grep -v '^ *+' conftest.er1 >conftest.err
16058 rm -f conftest.er1
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_f77_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest$ac_exeext &&
16065 $as_test_x conftest$ac_exeext; then
16067 lt_aix_libpath_sed='
16068 /Import File Strings/,/^$/ {
16069 /^0/ {
16070 s/^0 *\(.*\)$/\1/
16074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16075 # Check for a 64-bit object if we didn't find anything.
16076 if test -z "$aix_libpath"; then
16077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16079 else
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087 conftest$ac_exeext conftest.$ac_ext
16088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16090 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16091 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"
16092 else
16093 if test "$host_cpu" = ia64; then
16094 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16095 allow_undefined_flag_F77="-z nodefs"
16096 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"
16097 else
16098 # Determine the default libpath from the value encoded in an empty executable.
16099 cat >conftest.$ac_ext <<_ACEOF
16100 program main
16103 _ACEOF
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (ac_try="$ac_link"
16106 case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_link") 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && {
16118 test -z "$ac_f77_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest$ac_exeext &&
16121 $as_test_x conftest$ac_exeext; then
16123 lt_aix_libpath_sed='
16124 /Import File Strings/,/^$/ {
16125 /^0/ {
16126 s/^0 *\(.*\)$/\1/
16130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16131 # Check for a 64-bit object if we didn't find anything.
16132 if test -z "$aix_libpath"; then
16133 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16135 else
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143 conftest$ac_exeext conftest.$ac_ext
16144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16146 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16147 # Warning - without using the other run time loading flags,
16148 # -berok will link without error, but may produce a broken library.
16149 no_undefined_flag_F77=' ${wl}-bernotok'
16150 allow_undefined_flag_F77=' ${wl}-berok'
16151 # Exported symbols can be pulled into shared objects from archives
16152 whole_archive_flag_spec_F77='$convenience'
16153 archive_cmds_need_lc_F77=yes
16154 # This is similar to how AIX traditionally builds its shared libraries.
16155 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'
16160 amigaos*)
16161 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)'
16162 hardcode_libdir_flag_spec_F77='-L$libdir'
16163 hardcode_minus_L_F77=yes
16164 # see comment about different semantics on the GNU ld section
16165 ld_shlibs_F77=no
16168 bsdi[45]*)
16169 export_dynamic_flag_spec_F77=-rdynamic
16172 cygwin* | mingw* | pw32*)
16173 # When not using gcc, we currently assume that we are using
16174 # Microsoft Visual C++.
16175 # hardcode_libdir_flag_spec is actually meaningless, as there is
16176 # no search path for DLLs.
16177 hardcode_libdir_flag_spec_F77=' '
16178 allow_undefined_flag_F77=unsupported
16179 # Tell ltmain to make .lib files, not .a files.
16180 libext=lib
16181 # Tell ltmain to make .dll files, not .so files.
16182 shrext_cmds=".dll"
16183 # FIXME: Setting linknames here is a bad hack.
16184 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16185 # The linker will automatically build a .lib file if we build a DLL.
16186 old_archive_From_new_cmds_F77='true'
16187 # FIXME: Should let the user specify the lib program.
16188 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16189 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16190 enable_shared_with_static_runtimes_F77=yes
16193 darwin* | rhapsody*)
16194 case $host_os in
16195 rhapsody* | darwin1.[012])
16196 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16198 *) # Darwin 1.3 on
16199 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16200 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16201 else
16202 case ${MACOSX_DEPLOYMENT_TARGET} in
16203 10.[012])
16204 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16206 10.*)
16207 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16209 esac
16212 esac
16213 archive_cmds_need_lc_F77=no
16214 hardcode_direct_F77=no
16215 hardcode_automatic_F77=yes
16216 hardcode_shlibpath_var_F77=unsupported
16217 whole_archive_flag_spec_F77=''
16218 link_all_deplibs_F77=yes
16219 if test "$GCC" = yes ; then
16220 output_verbose_link_cmd='echo'
16221 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}"
16222 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16223 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}"
16224 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}"
16225 else
16226 case $cc_basename in
16227 xlc*)
16228 output_verbose_link_cmd='echo'
16229 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16230 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16232 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}'
16233 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}'
16236 ld_shlibs_F77=no
16238 esac
16242 dgux*)
16243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16244 hardcode_libdir_flag_spec_F77='-L$libdir'
16245 hardcode_shlibpath_var_F77=no
16248 freebsd1*)
16249 ld_shlibs_F77=no
16252 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16253 # support. Future versions do this automatically, but an explicit c++rt0.o
16254 # does not break anything, and helps significantly (at the cost of a little
16255 # extra space).
16256 freebsd2.2*)
16257 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16258 hardcode_libdir_flag_spec_F77='-R$libdir'
16259 hardcode_direct_F77=yes
16260 hardcode_shlibpath_var_F77=no
16263 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16264 freebsd2*)
16265 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_direct_F77=yes
16267 hardcode_minus_L_F77=yes
16268 hardcode_shlibpath_var_F77=no
16271 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16272 freebsd* | dragonfly*)
16273 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16274 hardcode_libdir_flag_spec_F77='-R$libdir'
16275 hardcode_direct_F77=yes
16276 hardcode_shlibpath_var_F77=no
16279 hpux9*)
16280 if test "$GCC" = yes; then
16281 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'
16282 else
16283 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'
16285 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16286 hardcode_libdir_separator_F77=:
16287 hardcode_direct_F77=yes
16289 # hardcode_minus_L: Not really in the search PATH,
16290 # but as the default location of the library.
16291 hardcode_minus_L_F77=yes
16292 export_dynamic_flag_spec_F77='${wl}-E'
16295 hpux10*)
16296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16297 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16298 else
16299 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16301 if test "$with_gnu_ld" = no; then
16302 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16303 hardcode_libdir_separator_F77=:
16305 hardcode_direct_F77=yes
16306 export_dynamic_flag_spec_F77='${wl}-E'
16308 # hardcode_minus_L: Not really in the search PATH,
16309 # but as the default location of the library.
16310 hardcode_minus_L_F77=yes
16314 hpux11*)
16315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16316 case $host_cpu in
16317 hppa*64*)
16318 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16320 ia64*)
16321 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16324 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16326 esac
16327 else
16328 case $host_cpu in
16329 hppa*64*)
16330 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16332 ia64*)
16333 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16336 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16338 esac
16340 if test "$with_gnu_ld" = no; then
16341 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16342 hardcode_libdir_separator_F77=:
16344 case $host_cpu in
16345 hppa*64*|ia64*)
16346 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16347 hardcode_direct_F77=no
16348 hardcode_shlibpath_var_F77=no
16351 hardcode_direct_F77=yes
16352 export_dynamic_flag_spec_F77='${wl}-E'
16354 # hardcode_minus_L: Not really in the search PATH,
16355 # but as the default location of the library.
16356 hardcode_minus_L_F77=yes
16358 esac
16362 irix5* | irix6* | nonstopux*)
16363 if test "$GCC" = yes; then
16364 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'
16365 else
16366 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'
16367 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16370 hardcode_libdir_separator_F77=:
16371 link_all_deplibs_F77=yes
16374 netbsd* | netbsdelf*-gnu)
16375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16376 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16377 else
16378 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16380 hardcode_libdir_flag_spec_F77='-R$libdir'
16381 hardcode_direct_F77=yes
16382 hardcode_shlibpath_var_F77=no
16385 newsos6)
16386 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_direct_F77=yes
16388 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16389 hardcode_libdir_separator_F77=:
16390 hardcode_shlibpath_var_F77=no
16393 openbsd*)
16394 if test -f /usr/libexec/ld.so; then
16395 hardcode_direct_F77=yes
16396 hardcode_shlibpath_var_F77=no
16397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16398 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16399 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16401 export_dynamic_flag_spec_F77='${wl}-E'
16402 else
16403 case $host_os in
16404 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16406 hardcode_libdir_flag_spec_F77='-R$libdir'
16409 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16410 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16412 esac
16414 else
16415 ld_shlibs_F77=no
16419 os2*)
16420 hardcode_libdir_flag_spec_F77='-L$libdir'
16421 hardcode_minus_L_F77=yes
16422 allow_undefined_flag_F77=unsupported
16423 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'
16424 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16427 osf3*)
16428 if test "$GCC" = yes; then
16429 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16430 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'
16431 else
16432 allow_undefined_flag_F77=' -expect_unresolved \*'
16433 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'
16435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16436 hardcode_libdir_separator_F77=:
16439 osf4* | osf5*) # as osf3* with the addition of -msym flag
16440 if test "$GCC" = yes; then
16441 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16442 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'
16443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16444 else
16445 allow_undefined_flag_F77=' -expect_unresolved \*'
16446 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'
16447 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~
16448 $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'
16450 # Both c and cxx compiler support -rpath directly
16451 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16453 hardcode_libdir_separator_F77=:
16456 solaris*)
16457 no_undefined_flag_F77=' -z text'
16458 if test "$GCC" = yes; then
16459 wlarc='${wl}'
16460 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16461 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16462 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16463 else
16464 wlarc=''
16465 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16467 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16469 hardcode_libdir_flag_spec_F77='-R$libdir'
16470 hardcode_shlibpath_var_F77=no
16471 case $host_os in
16472 solaris2.[0-5] | solaris2.[0-5].*) ;;
16474 # The compiler driver will combine and reorder linker options,
16475 # but understands `-z linker_flag'. GCC discards it without `$wl',
16476 # but is careful enough not to reorder.
16477 # Supported since Solaris 2.6 (maybe 2.5.1?)
16478 if test "$GCC" = yes; then
16479 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16480 else
16481 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16484 esac
16485 link_all_deplibs_F77=yes
16488 sunos4*)
16489 if test "x$host_vendor" = xsequent; then
16490 # Use $CC to link under sequent, because it throws in some extra .o
16491 # files that make .init and .fini sections work.
16492 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16493 else
16494 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16496 hardcode_libdir_flag_spec_F77='-L$libdir'
16497 hardcode_direct_F77=yes
16498 hardcode_minus_L_F77=yes
16499 hardcode_shlibpath_var_F77=no
16502 sysv4)
16503 case $host_vendor in
16504 sni)
16505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506 hardcode_direct_F77=yes # is this really true???
16508 siemens)
16509 ## LD is ld it makes a PLAMLIB
16510 ## CC just makes a GrossModule.
16511 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16512 reload_cmds_F77='$CC -r -o $output$reload_objs'
16513 hardcode_direct_F77=no
16515 motorola)
16516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16519 esac
16520 runpath_var='LD_RUN_PATH'
16521 hardcode_shlibpath_var_F77=no
16524 sysv4.3*)
16525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16526 hardcode_shlibpath_var_F77=no
16527 export_dynamic_flag_spec_F77='-Bexport'
16530 sysv4*MP*)
16531 if test -d /usr/nec; then
16532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_shlibpath_var_F77=no
16534 runpath_var=LD_RUN_PATH
16535 hardcode_runpath_var=yes
16536 ld_shlibs_F77=yes
16540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16541 no_undefined_flag_F77='${wl}-z,text'
16542 archive_cmds_need_lc_F77=no
16543 hardcode_shlibpath_var_F77=no
16544 runpath_var='LD_RUN_PATH'
16546 if test "$GCC" = yes; then
16547 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16548 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16549 else
16550 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16551 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16555 sysv5* | sco3.2v5* | sco5v6*)
16556 # Note: We can NOT use -z defs as we might desire, because we do not
16557 # link with -lc, and that would cause any symbols used from libc to
16558 # always be unresolved, which means just about no library would
16559 # ever link correctly. If we're not using GNU ld we use -z text
16560 # though, which does catch some bad symbols but isn't as heavy-handed
16561 # as -z defs.
16562 no_undefined_flag_F77='${wl}-z,text'
16563 allow_undefined_flag_F77='${wl}-z,nodefs'
16564 archive_cmds_need_lc_F77=no
16565 hardcode_shlibpath_var_F77=no
16566 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16567 hardcode_libdir_separator_F77=':'
16568 link_all_deplibs_F77=yes
16569 export_dynamic_flag_spec_F77='${wl}-Bexport'
16570 runpath_var='LD_RUN_PATH'
16572 if test "$GCC" = yes; then
16573 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16574 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16575 else
16576 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16577 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16581 uts4*)
16582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16583 hardcode_libdir_flag_spec_F77='-L$libdir'
16584 hardcode_shlibpath_var_F77=no
16588 ld_shlibs_F77=no
16590 esac
16593 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16594 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16595 test "$ld_shlibs_F77" = no && can_build_shared=no
16598 # Do we need to explicitly link libc?
16600 case "x$archive_cmds_need_lc_F77" in
16601 x|xyes)
16602 # Assume -lc should be added
16603 archive_cmds_need_lc_F77=yes
16605 if test "$enable_shared" = yes && test "$GCC" = yes; then
16606 case $archive_cmds_F77 in
16607 *'~'*)
16608 # FIXME: we may have to deal with multi-command sequences.
16610 '$CC '*)
16611 # Test whether the compiler implicitly links with -lc since on some
16612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16613 # to ld, don't add -lc before -lgcc.
16614 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16615 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16616 $rm conftest*
16617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620 (eval $ac_compile) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } 2>conftest.err; then
16624 soname=conftest
16625 lib=conftest
16626 libobjs=conftest.$ac_objext
16627 deplibs=
16628 wl=$lt_prog_compiler_wl_F77
16629 pic_flag=$lt_prog_compiler_pic_F77
16630 compiler_flags=-v
16631 linker_flags=-v
16632 verstring=
16633 output_objdir=.
16634 libname=conftest
16635 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16636 allow_undefined_flag_F77=
16637 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16638 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }
16642 then
16643 archive_cmds_need_lc_F77=no
16644 else
16645 archive_cmds_need_lc_F77=yes
16647 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16648 else
16649 cat conftest.err 1>&5
16651 $rm conftest*
16652 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16653 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16655 esac
16658 esac
16660 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16661 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16662 library_names_spec=
16663 libname_spec='lib$name'
16664 soname_spec=
16665 shrext_cmds=".so"
16666 postinstall_cmds=
16667 postuninstall_cmds=
16668 finish_cmds=
16669 finish_eval=
16670 shlibpath_var=
16671 shlibpath_overrides_runpath=unknown
16672 version_type=none
16673 dynamic_linker="$host_os ld.so"
16674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16676 need_lib_prefix=unknown
16677 hardcode_into_libs=no
16679 # when you set need_version to no, make sure it does not cause -set_version
16680 # flags to be left without arguments
16681 need_version=unknown
16683 case $host_os in
16684 aix3*)
16685 version_type=linux
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16687 shlibpath_var=LIBPATH
16689 # AIX 3 has no versioning support, so we append a major version to the name.
16690 soname_spec='${libname}${release}${shared_ext}$major'
16693 aix[4-9]*)
16694 version_type=linux
16695 need_lib_prefix=no
16696 need_version=no
16697 hardcode_into_libs=yes
16698 if test "$host_cpu" = ia64; then
16699 # AIX 5 supports IA64
16700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16701 shlibpath_var=LD_LIBRARY_PATH
16702 else
16703 # With GCC up to 2.95.x, collect2 would create an import file
16704 # for dependence libraries. The import file would start with
16705 # the line `#! .'. This would cause the generated library to
16706 # depend on `.', always an invalid library. This was fixed in
16707 # development snapshots of GCC prior to 3.0.
16708 case $host_os in
16709 aix4 | aix4.[01] | aix4.[01].*)
16710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16711 echo ' yes '
16712 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16714 else
16715 can_build_shared=no
16718 esac
16719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16720 # soname into executable. Probably we can add versioning support to
16721 # collect2, so additional links can be useful in future.
16722 if test "$aix_use_runtimelinking" = yes; then
16723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16724 # instead of lib<name>.a to let people know that these are not
16725 # typical AIX shared libraries.
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 else
16728 # We preserve .a as extension for shared libraries through AIX4.2
16729 # and later when we are not doing run time linking.
16730 library_names_spec='${libname}${release}.a $libname.a'
16731 soname_spec='${libname}${release}${shared_ext}$major'
16733 shlibpath_var=LIBPATH
16737 amigaos*)
16738 library_names_spec='$libname.ixlibrary $libname.a'
16739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16740 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'
16743 beos*)
16744 library_names_spec='${libname}${shared_ext}'
16745 dynamic_linker="$host_os ld.so"
16746 shlibpath_var=LIBRARY_PATH
16749 bsdi[45]*)
16750 version_type=linux
16751 need_version=no
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16758 # the default ld.so.conf also contains /usr/contrib/lib and
16759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16760 # libtool to hard-code these into programs
16763 cygwin* | mingw* | pw32*)
16764 version_type=windows
16765 shrext_cmds=".dll"
16766 need_version=no
16767 need_lib_prefix=no
16769 case $GCC,$host_os in
16770 yes,cygwin* | yes,mingw* | yes,pw32*)
16771 library_names_spec='$libname.dll.a'
16772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16773 postinstall_cmds='base_file=`basename \${file}`~
16774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16775 dldir=$destdir/`dirname \$dlpath`~
16776 test -d \$dldir || mkdir -p \$dldir~
16777 $install_prog $dir/$dlname \$dldir/$dlname~
16778 chmod a+x \$dldir/$dlname'
16779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16780 dlpath=$dir/\$dldll~
16781 $rm \$dlpath'
16782 shlibpath_overrides_runpath=yes
16784 case $host_os in
16785 cygwin*)
16786 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16787 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16788 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16790 mingw*)
16791 # MinGW DLLs use traditional 'lib' prefix
16792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16794 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16795 # It is most probably a Windows format PATH printed by
16796 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16797 # path with ; separators, and with drive letters. We can handle the
16798 # drive letters (cygwin fileutils understands them), so leave them,
16799 # especially as we might pass files found there to a mingw objdump,
16800 # which wouldn't understand a cygwinified path. Ahh.
16801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16802 else
16803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16806 pw32*)
16807 # pw32 DLLs use 'pw' prefix rather than 'lib'
16808 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16810 esac
16814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16816 esac
16817 dynamic_linker='Win32 ld.exe'
16818 # FIXME: first we should search . and the directory the executable is in
16819 shlibpath_var=PATH
16822 darwin* | rhapsody*)
16823 dynamic_linker="$host_os dyld"
16824 version_type=darwin
16825 need_lib_prefix=no
16826 need_version=no
16827 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16828 soname_spec='${libname}${release}${major}$shared_ext'
16829 shlibpath_overrides_runpath=yes
16830 shlibpath_var=DYLD_LIBRARY_PATH
16831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16833 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16836 dgux*)
16837 version_type=linux
16838 need_lib_prefix=no
16839 need_version=no
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LD_LIBRARY_PATH
16845 freebsd1*)
16846 dynamic_linker=no
16849 freebsd* | dragonfly*)
16850 # DragonFly does not have aout. When/if they implement a new
16851 # versioning mechanism, adjust this.
16852 if test -x /usr/bin/objformat; then
16853 objformat=`/usr/bin/objformat`
16854 else
16855 case $host_os in
16856 freebsd[123]*) objformat=aout ;;
16857 *) objformat=elf ;;
16858 esac
16860 version_type=freebsd-$objformat
16861 case $version_type in
16862 freebsd-elf*)
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16864 need_version=no
16865 need_lib_prefix=no
16867 freebsd-*)
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16869 need_version=yes
16871 esac
16872 shlibpath_var=LD_LIBRARY_PATH
16873 case $host_os in
16874 freebsd2*)
16875 shlibpath_overrides_runpath=yes
16877 freebsd3.[01]* | freebsdelf3.[01]*)
16878 shlibpath_overrides_runpath=yes
16879 hardcode_into_libs=yes
16881 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16882 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16883 shlibpath_overrides_runpath=no
16884 hardcode_into_libs=yes
16886 *) # from 4.6 on, and DragonFly
16887 shlibpath_overrides_runpath=yes
16888 hardcode_into_libs=yes
16890 esac
16893 gnu*)
16894 version_type=linux
16895 need_lib_prefix=no
16896 need_version=no
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16898 soname_spec='${libname}${release}${shared_ext}$major'
16899 shlibpath_var=LD_LIBRARY_PATH
16900 hardcode_into_libs=yes
16903 hpux9* | hpux10* | hpux11*)
16904 # Give a soname corresponding to the major version so that dld.sl refuses to
16905 # link against other versions.
16906 version_type=sunos
16907 need_lib_prefix=no
16908 need_version=no
16909 case $host_cpu in
16910 ia64*)
16911 shrext_cmds='.so'
16912 hardcode_into_libs=yes
16913 dynamic_linker="$host_os dld.so"
16914 shlibpath_var=LD_LIBRARY_PATH
16915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 if test "X$HPUX_IA64_MODE" = X32; then
16919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16920 else
16921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16925 hppa*64*)
16926 shrext_cmds='.sl'
16927 hardcode_into_libs=yes
16928 dynamic_linker="$host_os dld.sl"
16929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16937 shrext_cmds='.sl'
16938 dynamic_linker="$host_os dld.sl"
16939 shlibpath_var=SHLIB_PATH
16940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 soname_spec='${libname}${release}${shared_ext}$major'
16944 esac
16945 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16946 postinstall_cmds='chmod 555 $lib'
16949 interix[3-9]*)
16950 version_type=linux
16951 need_lib_prefix=no
16952 need_version=no
16953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16954 soname_spec='${libname}${release}${shared_ext}$major'
16955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 shlibpath_overrides_runpath=no
16958 hardcode_into_libs=yes
16961 irix5* | irix6* | nonstopux*)
16962 case $host_os in
16963 nonstopux*) version_type=nonstopux ;;
16965 if test "$lt_cv_prog_gnu_ld" = yes; then
16966 version_type=linux
16967 else
16968 version_type=irix
16969 fi ;;
16970 esac
16971 need_lib_prefix=no
16972 need_version=no
16973 soname_spec='${libname}${release}${shared_ext}$major'
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16975 case $host_os in
16976 irix5* | nonstopux*)
16977 libsuff= shlibsuff=
16980 case $LD in # libtool.m4 will add one of these switches to LD
16981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16982 libsuff= shlibsuff= libmagic=32-bit;;
16983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16984 libsuff=32 shlibsuff=N32 libmagic=N32;;
16985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16987 *) libsuff= shlibsuff= libmagic=never-match;;
16988 esac
16990 esac
16991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16992 shlibpath_overrides_runpath=no
16993 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16994 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16995 hardcode_into_libs=yes
16998 # No shared lib support for Linux oldld, aout, or coff.
16999 linux*oldld* | linux*aout* | linux*coff*)
17000 dynamic_linker=no
17003 # This must be Linux ELF.
17004 linux* | k*bsd*-gnu)
17005 version_type=linux
17006 need_lib_prefix=no
17007 need_version=no
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009 soname_spec='${libname}${release}${shared_ext}$major'
17010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 shlibpath_overrides_runpath=no
17013 # This implies no fast_install, which is unacceptable.
17014 # Some rework will be needed to allow for fast_install
17015 # before this can be enabled.
17016 hardcode_into_libs=yes
17018 # Append ld.so.conf contents to the search path
17019 if test -f /etc/ld.so.conf; then
17020 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' ' '`
17021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17024 # We used to test for /lib/ld.so.1 and disable shared libraries on
17025 # powerpc, because MkLinux only supported shared libraries with the
17026 # GNU dynamic linker. Since this was broken with cross compilers,
17027 # most powerpc-linux boxes support dynamic linking these days and
17028 # people can always --disable-shared, the test was removed, and we
17029 # assume the GNU/Linux dynamic linker is in use.
17030 dynamic_linker='GNU/Linux ld.so'
17033 netbsdelf*-gnu)
17034 version_type=linux
17035 need_lib_prefix=no
17036 need_version=no
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 shlibpath_var=LD_LIBRARY_PATH
17040 shlibpath_overrides_runpath=no
17041 hardcode_into_libs=yes
17042 dynamic_linker='NetBSD ld.elf_so'
17045 netbsd*)
17046 version_type=sunos
17047 need_lib_prefix=no
17048 need_version=no
17049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17052 dynamic_linker='NetBSD (a.out) ld.so'
17053 else
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 dynamic_linker='NetBSD ld.elf_so'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 shlibpath_overrides_runpath=yes
17060 hardcode_into_libs=yes
17063 newsos6)
17064 version_type=linux
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=yes
17070 nto-qnx*)
17071 version_type=linux
17072 need_lib_prefix=no
17073 need_version=no
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 shlibpath_var=LD_LIBRARY_PATH
17077 shlibpath_overrides_runpath=yes
17080 openbsd*)
17081 version_type=sunos
17082 sys_lib_dlsearch_path_spec="/usr/lib"
17083 need_lib_prefix=no
17084 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17085 case $host_os in
17086 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17087 *) need_version=no ;;
17088 esac
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17091 shlibpath_var=LD_LIBRARY_PATH
17092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17093 case $host_os in
17094 openbsd2.[89] | openbsd2.[89].*)
17095 shlibpath_overrides_runpath=no
17098 shlibpath_overrides_runpath=yes
17100 esac
17101 else
17102 shlibpath_overrides_runpath=yes
17106 os2*)
17107 libname_spec='$name'
17108 shrext_cmds=".dll"
17109 need_lib_prefix=no
17110 library_names_spec='$libname${shared_ext} $libname.a'
17111 dynamic_linker='OS/2 ld.exe'
17112 shlibpath_var=LIBPATH
17115 osf3* | osf4* | osf5*)
17116 version_type=osf
17117 need_lib_prefix=no
17118 need_version=no
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17123 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17126 rdos*)
17127 dynamic_linker=no
17130 solaris*)
17131 version_type=linux
17132 need_lib_prefix=no
17133 need_version=no
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath=yes
17138 hardcode_into_libs=yes
17139 # ldd complains unless libraries are executable
17140 postinstall_cmds='chmod +x $lib'
17143 sunos4*)
17144 version_type=sunos
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17146 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17149 if test "$with_gnu_ld" = yes; then
17150 need_lib_prefix=no
17152 need_version=yes
17155 sysv4 | sysv4.3*)
17156 version_type=linux
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 case $host_vendor in
17161 sni)
17162 shlibpath_overrides_runpath=no
17163 need_lib_prefix=no
17164 export_dynamic_flag_spec='${wl}-Blargedynsym'
17165 runpath_var=LD_RUN_PATH
17167 siemens)
17168 need_lib_prefix=no
17170 motorola)
17171 need_lib_prefix=no
17172 need_version=no
17173 shlibpath_overrides_runpath=no
17174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17176 esac
17179 sysv4*MP*)
17180 if test -d /usr/nec ;then
17181 version_type=linux
17182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17183 soname_spec='$libname${shared_ext}.$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17189 version_type=freebsd-elf
17190 need_lib_prefix=no
17191 need_version=no
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 shlibpath_var=LD_LIBRARY_PATH
17195 hardcode_into_libs=yes
17196 if test "$with_gnu_ld" = yes; then
17197 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17198 shlibpath_overrides_runpath=no
17199 else
17200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17201 shlibpath_overrides_runpath=yes
17202 case $host_os in
17203 sco3.2v5*)
17204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17206 esac
17208 sys_lib_dlsearch_path_spec='/usr/lib'
17211 uts4*)
17212 version_type=linux
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 shlibpath_var=LD_LIBRARY_PATH
17219 dynamic_linker=no
17221 esac
17222 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17223 echo "${ECHO_T}$dynamic_linker" >&6; }
17224 test "$dynamic_linker" = no && can_build_shared=no
17226 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17232 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 else
17236 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17239 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17242 if test "$GCC" = yes; then
17243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17246 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17248 hardcode_action_F77=
17249 if test -n "$hardcode_libdir_flag_spec_F77" || \
17250 test -n "$runpath_var_F77" || \
17251 test "X$hardcode_automatic_F77" = "Xyes" ; then
17253 # We can hardcode non-existant directories.
17254 if test "$hardcode_direct_F77" != no &&
17255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17256 # have to relink, otherwise we might link with an installed library
17257 # when we should be linking with a yet-to-be-installed one
17258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17259 test "$hardcode_minus_L_F77" != no; then
17260 # Linking always hardcodes the temporary library directory.
17261 hardcode_action_F77=relink
17262 else
17263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17264 hardcode_action_F77=immediate
17266 else
17267 # We cannot hardcode anything, or else we can only hardcode existing
17268 # directories.
17269 hardcode_action_F77=unsupported
17271 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17272 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17274 if test "$hardcode_action_F77" = relink; then
17275 # Fast installation is not supported
17276 enable_fast_install=no
17277 elif test "$shlibpath_overrides_runpath" = yes ||
17278 test "$enable_shared" = no; then
17279 # Fast installation is not necessary
17280 enable_fast_install=needless
17284 # The else clause should only fire when bootstrapping the
17285 # libtool distribution, otherwise you forgot to ship ltmain.sh
17286 # with your package, and you will get complaints that there are
17287 # no rules to generate ltmain.sh.
17288 if test -f "$ltmain"; then
17289 # See if we are running on zsh, and set the options which allow our commands through
17290 # without removal of \ escapes.
17291 if test -n "${ZSH_VERSION+set}" ; then
17292 setopt NO_GLOB_SUBST
17294 # Now quote all the things that may contain metacharacters while being
17295 # careful not to overquote the AC_SUBSTed values. We take copies of the
17296 # variables and quote the copies for generation of the libtool script.
17297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17298 SED SHELL STRIP \
17299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17301 deplibs_check_method reload_flag reload_cmds need_locks \
17302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17303 lt_cv_sys_global_symbol_to_c_name_address \
17304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17305 old_postinstall_cmds old_postuninstall_cmds \
17306 compiler_F77 \
17307 CC_F77 \
17308 LD_F77 \
17309 lt_prog_compiler_wl_F77 \
17310 lt_prog_compiler_pic_F77 \
17311 lt_prog_compiler_static_F77 \
17312 lt_prog_compiler_no_builtin_flag_F77 \
17313 export_dynamic_flag_spec_F77 \
17314 thread_safe_flag_spec_F77 \
17315 whole_archive_flag_spec_F77 \
17316 enable_shared_with_static_runtimes_F77 \
17317 old_archive_cmds_F77 \
17318 old_archive_from_new_cmds_F77 \
17319 predep_objects_F77 \
17320 postdep_objects_F77 \
17321 predeps_F77 \
17322 postdeps_F77 \
17323 compiler_lib_search_path_F77 \
17324 compiler_lib_search_dirs_F77 \
17325 archive_cmds_F77 \
17326 archive_expsym_cmds_F77 \
17327 postinstall_cmds_F77 \
17328 postuninstall_cmds_F77 \
17329 old_archive_from_expsyms_cmds_F77 \
17330 allow_undefined_flag_F77 \
17331 no_undefined_flag_F77 \
17332 export_symbols_cmds_F77 \
17333 hardcode_libdir_flag_spec_F77 \
17334 hardcode_libdir_flag_spec_ld_F77 \
17335 hardcode_libdir_separator_F77 \
17336 hardcode_automatic_F77 \
17337 module_cmds_F77 \
17338 module_expsym_cmds_F77 \
17339 lt_cv_prog_compiler_c_o_F77 \
17340 fix_srcfile_path_F77 \
17341 exclude_expsyms_F77 \
17342 include_expsyms_F77; do
17344 case $var in
17345 old_archive_cmds_F77 | \
17346 old_archive_from_new_cmds_F77 | \
17347 archive_cmds_F77 | \
17348 archive_expsym_cmds_F77 | \
17349 module_cmds_F77 | \
17350 module_expsym_cmds_F77 | \
17351 old_archive_from_expsyms_cmds_F77 | \
17352 export_symbols_cmds_F77 | \
17353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17354 postinstall_cmds | postuninstall_cmds | \
17355 old_postinstall_cmds | old_postuninstall_cmds | \
17356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17357 # Double-quote double-evaled strings.
17358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17363 esac
17364 done
17366 case $lt_echo in
17367 *'\$0 --fallback-echo"')
17368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17370 esac
17372 cfgfile="$ofile"
17374 cat <<__EOF__ >> "$cfgfile"
17375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17379 # Shell to use when invoking shell scripts.
17380 SHELL=$lt_SHELL
17382 # Whether or not to build shared libraries.
17383 build_libtool_libs=$enable_shared
17385 # Whether or not to build static libraries.
17386 build_old_libs=$enable_static
17388 # Whether or not to add -lc for building shared libraries.
17389 build_libtool_need_lc=$archive_cmds_need_lc_F77
17391 # Whether or not to disallow shared libs when runtime libs are static
17392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17394 # Whether or not to optimize for fast installation.
17395 fast_install=$enable_fast_install
17397 # The host system.
17398 host_alias=$host_alias
17399 host=$host
17400 host_os=$host_os
17402 # The build system.
17403 build_alias=$build_alias
17404 build=$build
17405 build_os=$build_os
17407 # An echo program that does not interpret backslashes.
17408 echo=$lt_echo
17410 # The archiver.
17411 AR=$lt_AR
17412 AR_FLAGS=$lt_AR_FLAGS
17414 # A C compiler.
17415 LTCC=$lt_LTCC
17417 # LTCC compiler flags.
17418 LTCFLAGS=$lt_LTCFLAGS
17420 # A language-specific compiler.
17421 CC=$lt_compiler_F77
17423 # Is the compiler the GNU C compiler?
17424 with_gcc=$GCC_F77
17426 # An ERE matcher.
17427 EGREP=$lt_EGREP
17429 # The linker used to build libraries.
17430 LD=$lt_LD_F77
17432 # Whether we need hard or soft links.
17433 LN_S=$lt_LN_S
17435 # A BSD-compatible nm program.
17436 NM=$lt_NM
17438 # A symbol stripping program
17439 STRIP=$lt_STRIP
17441 # Used to examine libraries when file_magic_cmd begins "file"
17442 MAGIC_CMD=$MAGIC_CMD
17444 # Used on cygwin: DLL creation program.
17445 DLLTOOL="$DLLTOOL"
17447 # Used on cygwin: object dumper.
17448 OBJDUMP="$OBJDUMP"
17450 # Used on cygwin: assembler.
17451 AS="$AS"
17453 # The name of the directory that contains temporary libtool files.
17454 objdir=$objdir
17456 # How to create reloadable object files.
17457 reload_flag=$lt_reload_flag
17458 reload_cmds=$lt_reload_cmds
17460 # How to pass a linker flag through the compiler.
17461 wl=$lt_lt_prog_compiler_wl_F77
17463 # Object file suffix (normally "o").
17464 objext="$ac_objext"
17466 # Old archive suffix (normally "a").
17467 libext="$libext"
17469 # Shared library suffix (normally ".so").
17470 shrext_cmds='$shrext_cmds'
17472 # Executable file suffix (normally "").
17473 exeext="$exeext"
17475 # Additional compiler flags for building library objects.
17476 pic_flag=$lt_lt_prog_compiler_pic_F77
17477 pic_mode=$pic_mode
17479 # What is the maximum length of a command?
17480 max_cmd_len=$lt_cv_sys_max_cmd_len
17482 # Does compiler simultaneously support -c and -o options?
17483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17485 # Must we lock files when doing compilation?
17486 need_locks=$lt_need_locks
17488 # Do we need the lib prefix for modules?
17489 need_lib_prefix=$need_lib_prefix
17491 # Do we need a version for libraries?
17492 need_version=$need_version
17494 # Whether dlopen is supported.
17495 dlopen_support=$enable_dlopen
17497 # Whether dlopen of programs is supported.
17498 dlopen_self=$enable_dlopen_self
17500 # Whether dlopen of statically linked programs is supported.
17501 dlopen_self_static=$enable_dlopen_self_static
17503 # Compiler flag to prevent dynamic linking.
17504 link_static_flag=$lt_lt_prog_compiler_static_F77
17506 # Compiler flag to turn off builtin functions.
17507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17509 # Compiler flag to allow reflexive dlopens.
17510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17512 # Compiler flag to generate shared objects directly from archives.
17513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17515 # Compiler flag to generate thread-safe objects.
17516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17518 # Library versioning type.
17519 version_type=$version_type
17521 # Format of library name prefix.
17522 libname_spec=$lt_libname_spec
17524 # List of archive names. First name is the real one, the rest are links.
17525 # The last name is the one that the linker finds with -lNAME.
17526 library_names_spec=$lt_library_names_spec
17528 # The coded name of the library, if different from the real name.
17529 soname_spec=$lt_soname_spec
17531 # Commands used to build and install an old-style archive.
17532 RANLIB=$lt_RANLIB
17533 old_archive_cmds=$lt_old_archive_cmds_F77
17534 old_postinstall_cmds=$lt_old_postinstall_cmds
17535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17537 # Create an old-style archive from a shared archive.
17538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17540 # Create a temporary old-style archive to link instead of a shared archive.
17541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17543 # Commands used to build and install a shared archive.
17544 archive_cmds=$lt_archive_cmds_F77
17545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17546 postinstall_cmds=$lt_postinstall_cmds
17547 postuninstall_cmds=$lt_postuninstall_cmds
17549 # Commands used to build a loadable module (assumed same as above if empty)
17550 module_cmds=$lt_module_cmds_F77
17551 module_expsym_cmds=$lt_module_expsym_cmds_F77
17553 # Commands to strip libraries.
17554 old_striplib=$lt_old_striplib
17555 striplib=$lt_striplib
17557 # Dependencies to place before the objects being linked to create a
17558 # shared library.
17559 predep_objects=$lt_predep_objects_F77
17561 # Dependencies to place after the objects being linked to create a
17562 # shared library.
17563 postdep_objects=$lt_postdep_objects_F77
17565 # Dependencies to place before the objects being linked to create a
17566 # shared library.
17567 predeps=$lt_predeps_F77
17569 # Dependencies to place after the objects being linked to create a
17570 # shared library.
17571 postdeps=$lt_postdeps_F77
17573 # The directories searched by this compiler when creating a shared
17574 # library
17575 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17577 # The library search path used internally by the compiler when linking
17578 # a shared library.
17579 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17581 # Method to check whether dependent libraries are shared objects.
17582 deplibs_check_method=$lt_deplibs_check_method
17584 # Command to use when deplibs_check_method == file_magic.
17585 file_magic_cmd=$lt_file_magic_cmd
17587 # Flag that allows shared libraries with undefined symbols to be built.
17588 allow_undefined_flag=$lt_allow_undefined_flag_F77
17590 # Flag that forces no undefined symbols.
17591 no_undefined_flag=$lt_no_undefined_flag_F77
17593 # Commands used to finish a libtool library installation in a directory.
17594 finish_cmds=$lt_finish_cmds
17596 # Same as above, but a single script fragment to be evaled but not shown.
17597 finish_eval=$lt_finish_eval
17599 # Take the output of nm and produce a listing of raw symbols and C names.
17600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17602 # Transform the output of nm in a proper C declaration
17603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17605 # Transform the output of nm in a C name address pair
17606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17608 # This is the shared library runtime path variable.
17609 runpath_var=$runpath_var
17611 # This is the shared library path variable.
17612 shlibpath_var=$shlibpath_var
17614 # Is shlibpath searched before the hard-coded library search path?
17615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17617 # How to hardcode a shared library path into an executable.
17618 hardcode_action=$hardcode_action_F77
17620 # Whether we should hardcode library paths into libraries.
17621 hardcode_into_libs=$hardcode_into_libs
17623 # Flag to hardcode \$libdir into a binary during linking.
17624 # This must work even if \$libdir does not exist.
17625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17627 # If ld is used when linking, flag to hardcode \$libdir into
17628 # a binary during linking. This must work even if \$libdir does
17629 # not exist.
17630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17632 # Whether we need a single -rpath flag with a separated argument.
17633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17636 # resulting binary.
17637 hardcode_direct=$hardcode_direct_F77
17639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17640 # resulting binary.
17641 hardcode_minus_L=$hardcode_minus_L_F77
17643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17644 # the resulting binary.
17645 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17647 # Set to yes if building a shared library automatically hardcodes DIR into the library
17648 # and all subsequent libraries and executables linked against it.
17649 hardcode_automatic=$hardcode_automatic_F77
17651 # Variables whose values should be saved in libtool wrapper scripts and
17652 # restored at relink time.
17653 variables_saved_for_relink="$variables_saved_for_relink"
17655 # Whether libtool must link a program against all its dependency libraries.
17656 link_all_deplibs=$link_all_deplibs_F77
17658 # Compile-time system search path for libraries
17659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17661 # Run-time system search path for libraries
17662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17664 # Fix the shell variable \$srcfile for the compiler.
17665 fix_srcfile_path=$lt_fix_srcfile_path
17667 # Set to yes if exported symbols are required.
17668 always_export_symbols=$always_export_symbols_F77
17670 # The commands to list exported symbols.
17671 export_symbols_cmds=$lt_export_symbols_cmds_F77
17673 # The commands to extract the exported symbol list from a shared archive.
17674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17676 # Symbols that should not be listed in the preloaded symbols.
17677 exclude_expsyms=$lt_exclude_expsyms_F77
17679 # Symbols that must always be exported.
17680 include_expsyms=$lt_include_expsyms_F77
17682 # ### END LIBTOOL TAG CONFIG: $tagname
17684 __EOF__
17687 else
17688 # If there is no Makefile yet, we rely on a make rule to execute
17689 # `config.status --recheck' to rerun these tests and create the
17690 # libtool script then.
17691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17692 if test -f "$ltmain_in"; then
17693 test -f Makefile && make "$ltmain"
17698 ac_ext=c
17699 ac_cpp='$CPP $CPPFLAGS'
17700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704 CC="$lt_save_CC"
17706 else
17707 tagname=""
17711 GCJ)
17712 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17715 # Source file extension for Java test sources.
17716 ac_ext=java
17718 # Object file extension for compiled Java test sources.
17719 objext=o
17720 objext_GCJ=$objext
17722 # Code to be used in simple compile tests
17723 lt_simple_compile_test_code="class foo {}"
17725 # Code to be used in simple link tests
17726 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17730 # If no C compiler was specified, use CC.
17731 LTCC=${LTCC-"$CC"}
17733 # If no C compiler flags were specified, use CFLAGS.
17734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17736 # Allow CC to be a program name with arguments.
17737 compiler=$CC
17740 # save warnings/boilerplate of simple test code
17741 ac_outfile=conftest.$ac_objext
17742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17744 _lt_compiler_boilerplate=`cat conftest.err`
17745 $rm conftest*
17747 ac_outfile=conftest.$ac_objext
17748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17750 _lt_linker_boilerplate=`cat conftest.err`
17751 $rm -r conftest*
17754 # Allow CC to be a program name with arguments.
17755 lt_save_CC="$CC"
17756 CC=${GCJ-"gcj"}
17757 compiler=$CC
17758 compiler_GCJ=$CC
17759 for cc_temp in $compiler""; do
17760 case $cc_temp in
17761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17763 \-*) ;;
17764 *) break;;
17765 esac
17766 done
17767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17770 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17771 archive_cmds_need_lc_GCJ=no
17773 old_archive_cmds_GCJ=$old_archive_cmds
17776 lt_prog_compiler_no_builtin_flag_GCJ=
17778 if test "$GCC" = yes; then
17779 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17782 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17783 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17784 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787 lt_cv_prog_compiler_rtti_exceptions=no
17788 ac_outfile=conftest.$ac_objext
17789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17790 lt_compiler_flag="-fno-rtti -fno-exceptions"
17791 # Insert the option either (1) after the last *FLAGS variable, or
17792 # (2) before a word containing "conftest.", or (3) at the end.
17793 # Note that $ac_compile itself does not contain backslashes and begins
17794 # with a dollar sign (not a hyphen), so the echo should work correctly.
17795 # The option is referenced via a variable to avoid confusing sed.
17796 lt_compile=`echo "$ac_compile" | $SED \
17797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17799 -e 's:$: $lt_compiler_flag:'`
17800 (eval echo "\"\$as_me:17800: $lt_compile\"" >&5)
17801 (eval "$lt_compile" 2>conftest.err)
17802 ac_status=$?
17803 cat conftest.err >&5
17804 echo "$as_me:17804: \$? = $ac_status" >&5
17805 if (exit $ac_status) && test -s "$ac_outfile"; then
17806 # The compiler can only warn and ignore the option if not recognized
17807 # So say no if there are warnings other than the usual output.
17808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17811 lt_cv_prog_compiler_rtti_exceptions=yes
17814 $rm conftest*
17817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17818 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17820 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17821 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17822 else
17828 lt_prog_compiler_wl_GCJ=
17829 lt_prog_compiler_pic_GCJ=
17830 lt_prog_compiler_static_GCJ=
17832 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17833 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17835 if test "$GCC" = yes; then
17836 lt_prog_compiler_wl_GCJ='-Wl,'
17837 lt_prog_compiler_static_GCJ='-static'
17839 case $host_os in
17840 aix*)
17841 # All AIX code is PIC.
17842 if test "$host_cpu" = ia64; then
17843 # AIX 5 now supports IA64 processor
17844 lt_prog_compiler_static_GCJ='-Bstatic'
17848 amigaos*)
17849 # FIXME: we need at least 68020 code to build shared libraries, but
17850 # adding the `-m68020' flag to GCC prevents building anything better,
17851 # like `-m68040'.
17852 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17855 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17856 # PIC is the default for these OSes.
17859 mingw* | cygwin* | pw32* | os2*)
17860 # This hack is so that the source file can tell whether it is being
17861 # built for inclusion in a dll (and should export symbols for example).
17862 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17863 # (--disable-auto-import) libraries
17867 darwin* | rhapsody*)
17868 # PIC is the default on this platform
17869 # Common symbols not allowed in MH_DYLIB files
17870 lt_prog_compiler_pic_GCJ='-fno-common'
17873 interix[3-9]*)
17874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17875 # Instead, we relocate shared libraries at runtime.
17878 msdosdjgpp*)
17879 # Just because we use GCC doesn't mean we suddenly get shared libraries
17880 # on systems that don't support them.
17881 lt_prog_compiler_can_build_shared_GCJ=no
17882 enable_shared=no
17885 sysv4*MP*)
17886 if test -d /usr/nec; then
17887 lt_prog_compiler_pic_GCJ=-Kconform_pic
17891 hpux*)
17892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17893 # not for PA HP-UX.
17894 case $host_cpu in
17895 hppa*64*|ia64*)
17896 # +Z the default
17899 lt_prog_compiler_pic_GCJ='-fPIC'
17901 esac
17905 lt_prog_compiler_pic_GCJ='-fPIC'
17907 esac
17908 else
17909 # PORTME Check for flag to pass linker flags through the system compiler.
17910 case $host_os in
17911 aix*)
17912 lt_prog_compiler_wl_GCJ='-Wl,'
17913 if test "$host_cpu" = ia64; then
17914 # AIX 5 now supports IA64 processor
17915 lt_prog_compiler_static_GCJ='-Bstatic'
17916 else
17917 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17920 darwin*)
17921 # PIC is the default on this platform
17922 # Common symbols not allowed in MH_DYLIB files
17923 case $cc_basename in
17924 xlc*)
17925 lt_prog_compiler_pic_GCJ='-qnocommon'
17926 lt_prog_compiler_wl_GCJ='-Wl,'
17928 esac
17931 mingw* | cygwin* | pw32* | os2*)
17932 # This hack is so that the source file can tell whether it is being
17933 # built for inclusion in a dll (and should export symbols for example).
17937 hpux9* | hpux10* | hpux11*)
17938 lt_prog_compiler_wl_GCJ='-Wl,'
17939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17940 # not for PA HP-UX.
17941 case $host_cpu in
17942 hppa*64*|ia64*)
17943 # +Z the default
17946 lt_prog_compiler_pic_GCJ='+Z'
17948 esac
17949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17950 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17953 irix5* | irix6* | nonstopux*)
17954 lt_prog_compiler_wl_GCJ='-Wl,'
17955 # PIC (with -KPIC) is the default.
17956 lt_prog_compiler_static_GCJ='-non_shared'
17959 newsos6)
17960 lt_prog_compiler_pic_GCJ='-KPIC'
17961 lt_prog_compiler_static_GCJ='-Bstatic'
17964 linux* | k*bsd*-gnu)
17965 case $cc_basename in
17966 icc* | ecc*)
17967 lt_prog_compiler_wl_GCJ='-Wl,'
17968 lt_prog_compiler_pic_GCJ='-KPIC'
17969 lt_prog_compiler_static_GCJ='-static'
17971 pgcc* | pgf77* | pgf90* | pgf95*)
17972 # Portland Group compilers (*not* the Pentium gcc compiler,
17973 # which looks to be a dead project)
17974 lt_prog_compiler_wl_GCJ='-Wl,'
17975 lt_prog_compiler_pic_GCJ='-fpic'
17976 lt_prog_compiler_static_GCJ='-Bstatic'
17978 ccc*)
17979 lt_prog_compiler_wl_GCJ='-Wl,'
17980 # All Alpha code is PIC.
17981 lt_prog_compiler_static_GCJ='-non_shared'
17984 case `$CC -V 2>&1 | sed 5q` in
17985 *Sun\ C*)
17986 # Sun C 5.9
17987 lt_prog_compiler_pic_GCJ='-KPIC'
17988 lt_prog_compiler_static_GCJ='-Bstatic'
17989 lt_prog_compiler_wl_GCJ='-Wl,'
17991 *Sun\ F*)
17992 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17993 lt_prog_compiler_pic_GCJ='-KPIC'
17994 lt_prog_compiler_static_GCJ='-Bstatic'
17995 lt_prog_compiler_wl_GCJ=''
17997 esac
17999 esac
18002 osf3* | osf4* | osf5*)
18003 lt_prog_compiler_wl_GCJ='-Wl,'
18004 # All OSF/1 code is PIC.
18005 lt_prog_compiler_static_GCJ='-non_shared'
18008 rdos*)
18009 lt_prog_compiler_static_GCJ='-non_shared'
18012 solaris*)
18013 lt_prog_compiler_pic_GCJ='-KPIC'
18014 lt_prog_compiler_static_GCJ='-Bstatic'
18015 case $cc_basename in
18016 f77* | f90* | f95*)
18017 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18019 lt_prog_compiler_wl_GCJ='-Wl,';;
18020 esac
18023 sunos4*)
18024 lt_prog_compiler_wl_GCJ='-Qoption ld '
18025 lt_prog_compiler_pic_GCJ='-PIC'
18026 lt_prog_compiler_static_GCJ='-Bstatic'
18029 sysv4 | sysv4.2uw2* | sysv4.3*)
18030 lt_prog_compiler_wl_GCJ='-Wl,'
18031 lt_prog_compiler_pic_GCJ='-KPIC'
18032 lt_prog_compiler_static_GCJ='-Bstatic'
18035 sysv4*MP*)
18036 if test -d /usr/nec ;then
18037 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18038 lt_prog_compiler_static_GCJ='-Bstatic'
18042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18043 lt_prog_compiler_wl_GCJ='-Wl,'
18044 lt_prog_compiler_pic_GCJ='-KPIC'
18045 lt_prog_compiler_static_GCJ='-Bstatic'
18048 unicos*)
18049 lt_prog_compiler_wl_GCJ='-Wl,'
18050 lt_prog_compiler_can_build_shared_GCJ=no
18053 uts4*)
18054 lt_prog_compiler_pic_GCJ='-pic'
18055 lt_prog_compiler_static_GCJ='-Bstatic'
18059 lt_prog_compiler_can_build_shared_GCJ=no
18061 esac
18064 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18065 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18068 # Check to make sure the PIC flag actually works.
18070 if test -n "$lt_prog_compiler_pic_GCJ"; then
18072 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18073 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18074 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 else
18077 lt_cv_prog_compiler_pic_works_GCJ=no
18078 ac_outfile=conftest.$ac_objext
18079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18080 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18081 # Insert the option either (1) after the last *FLAGS variable, or
18082 # (2) before a word containing "conftest.", or (3) at the end.
18083 # Note that $ac_compile itself does not contain backslashes and begins
18084 # with a dollar sign (not a hyphen), so the echo should work correctly.
18085 # The option is referenced via a variable to avoid confusing sed.
18086 lt_compile=`echo "$ac_compile" | $SED \
18087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18089 -e 's:$: $lt_compiler_flag:'`
18090 (eval echo "\"\$as_me:18090: $lt_compile\"" >&5)
18091 (eval "$lt_compile" 2>conftest.err)
18092 ac_status=$?
18093 cat conftest.err >&5
18094 echo "$as_me:18094: \$? = $ac_status" >&5
18095 if (exit $ac_status) && test -s "$ac_outfile"; then
18096 # The compiler can only warn and ignore the option if not recognized
18097 # So say no if there are warnings other than the usual output.
18098 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18101 lt_cv_prog_compiler_pic_works_GCJ=yes
18104 $rm conftest*
18107 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18108 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18110 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18111 case $lt_prog_compiler_pic_GCJ in
18112 "" | " "*) ;;
18113 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18114 esac
18115 else
18116 lt_prog_compiler_pic_GCJ=
18117 lt_prog_compiler_can_build_shared_GCJ=no
18121 case $host_os in
18122 # For platforms which do not support PIC, -DPIC is meaningless:
18123 *djgpp*)
18124 lt_prog_compiler_pic_GCJ=
18127 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18129 esac
18132 # Check to make sure the static flag actually works.
18134 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18135 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18136 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18137 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140 lt_cv_prog_compiler_static_works_GCJ=no
18141 save_LDFLAGS="$LDFLAGS"
18142 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18143 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18144 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18145 # The linker can only warn and ignore the option if not recognized
18146 # So say no if there are warnings
18147 if test -s conftest.err; then
18148 # Append any errors to the config.log.
18149 cat conftest.err 1>&5
18150 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18152 if diff conftest.exp conftest.er2 >/dev/null; then
18153 lt_cv_prog_compiler_static_works_GCJ=yes
18155 else
18156 lt_cv_prog_compiler_static_works_GCJ=yes
18159 $rm -r conftest*
18160 LDFLAGS="$save_LDFLAGS"
18163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18164 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18166 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18168 else
18169 lt_prog_compiler_static_GCJ=
18173 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18174 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18175 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178 lt_cv_prog_compiler_c_o_GCJ=no
18179 $rm -r conftest 2>/dev/null
18180 mkdir conftest
18181 cd conftest
18182 mkdir out
18183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18185 lt_compiler_flag="-o out/conftest2.$ac_objext"
18186 # Insert the option either (1) after the last *FLAGS variable, or
18187 # (2) before a word containing "conftest.", or (3) at the end.
18188 # Note that $ac_compile itself does not contain backslashes and begins
18189 # with a dollar sign (not a hyphen), so the echo should work correctly.
18190 lt_compile=`echo "$ac_compile" | $SED \
18191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18193 -e 's:$: $lt_compiler_flag:'`
18194 (eval echo "\"\$as_me:18194: $lt_compile\"" >&5)
18195 (eval "$lt_compile" 2>out/conftest.err)
18196 ac_status=$?
18197 cat out/conftest.err >&5
18198 echo "$as_me:18198: \$? = $ac_status" >&5
18199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18200 then
18201 # The compiler can only warn and ignore the option if not recognized
18202 # So say no if there are warnings
18203 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18206 lt_cv_prog_compiler_c_o_GCJ=yes
18209 chmod u+w . 2>&5
18210 $rm conftest*
18211 # SGI C++ compiler will create directory out/ii_files/ for
18212 # template instantiation
18213 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18214 $rm out/* && rmdir out
18215 cd ..
18216 rmdir conftest
18217 $rm conftest*
18220 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18221 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18224 hard_links="nottested"
18225 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18226 # do not overwrite the value of need_locks provided by the user
18227 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18228 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18229 hard_links=yes
18230 $rm conftest*
18231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18232 touch conftest.a
18233 ln conftest.a conftest.b 2>&5 || hard_links=no
18234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18235 { echo "$as_me:$LINENO: result: $hard_links" >&5
18236 echo "${ECHO_T}$hard_links" >&6; }
18237 if test "$hard_links" = no; then
18238 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18239 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18240 need_locks=warn
18242 else
18243 need_locks=no
18246 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18247 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18249 runpath_var=
18250 allow_undefined_flag_GCJ=
18251 enable_shared_with_static_runtimes_GCJ=no
18252 archive_cmds_GCJ=
18253 archive_expsym_cmds_GCJ=
18254 old_archive_From_new_cmds_GCJ=
18255 old_archive_from_expsyms_cmds_GCJ=
18256 export_dynamic_flag_spec_GCJ=
18257 whole_archive_flag_spec_GCJ=
18258 thread_safe_flag_spec_GCJ=
18259 hardcode_libdir_flag_spec_GCJ=
18260 hardcode_libdir_flag_spec_ld_GCJ=
18261 hardcode_libdir_separator_GCJ=
18262 hardcode_direct_GCJ=no
18263 hardcode_minus_L_GCJ=no
18264 hardcode_shlibpath_var_GCJ=unsupported
18265 link_all_deplibs_GCJ=unknown
18266 hardcode_automatic_GCJ=no
18267 module_cmds_GCJ=
18268 module_expsym_cmds_GCJ=
18269 always_export_symbols_GCJ=no
18270 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18271 # include_expsyms should be a list of space-separated symbols to be *always*
18272 # included in the symbol list
18273 include_expsyms_GCJ=
18274 # exclude_expsyms can be an extended regexp of symbols to exclude
18275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18277 # as well as any symbol that contains `d'.
18278 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18280 # platforms (ab)use it in PIC code, but their linkers get confused if
18281 # the symbol is explicitly referenced. Since portable code cannot
18282 # rely on this symbol name, it's probably fine to never include it in
18283 # preloaded symbol tables.
18284 # Exclude shared library initialization/finalization symbols.
18285 extract_expsyms_cmds=
18286 # Just being paranoid about ensuring that cc_basename is set.
18287 for cc_temp in $compiler""; do
18288 case $cc_temp in
18289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18291 \-*) ;;
18292 *) break;;
18293 esac
18294 done
18295 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18297 case $host_os in
18298 cygwin* | mingw* | pw32*)
18299 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18300 # When not using gcc, we currently assume that we are using
18301 # Microsoft Visual C++.
18302 if test "$GCC" != yes; then
18303 with_gnu_ld=no
18306 interix*)
18307 # we just hope/assume this is gcc and not c89 (= MSVC++)
18308 with_gnu_ld=yes
18310 openbsd*)
18311 with_gnu_ld=no
18313 esac
18315 ld_shlibs_GCJ=yes
18316 if test "$with_gnu_ld" = yes; then
18317 # If archive_cmds runs LD, not CC, wlarc should be empty
18318 wlarc='${wl}'
18320 # Set some defaults for GNU ld with shared library support. These
18321 # are reset later if shared libraries are not supported. Putting them
18322 # here allows them to be overridden if necessary.
18323 runpath_var=LD_RUN_PATH
18324 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18325 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18326 # ancient GNU ld didn't support --whole-archive et. al.
18327 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18328 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18329 else
18330 whole_archive_flag_spec_GCJ=
18332 supports_anon_versioning=no
18333 case `$LD -v 2>/dev/null` in
18334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18337 *\ 2.11.*) ;; # other 2.11 versions
18338 *) supports_anon_versioning=yes ;;
18339 esac
18341 # See if GNU ld supports shared libraries.
18342 case $host_os in
18343 aix[3-9]*)
18344 # On AIX/PPC, the GNU linker is very broken
18345 if test "$host_cpu" != ia64; then
18346 ld_shlibs_GCJ=no
18347 cat <<EOF 1>&2
18349 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18350 *** to be unable to reliably create shared libraries on AIX.
18351 *** Therefore, libtool is disabling shared libraries support. If you
18352 *** really care for shared libraries, you may want to modify your PATH
18353 *** so that a non-GNU linker is found, and then restart.
18359 amigaos*)
18360 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)'
18361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18362 hardcode_minus_L_GCJ=yes
18364 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18365 # that the semantics of dynamic libraries on AmigaOS, at least up
18366 # to version 4, is to share data among multiple programs linked
18367 # with the same dynamic library. Since this doesn't match the
18368 # behavior of shared libraries on other platforms, we can't use
18369 # them.
18370 ld_shlibs_GCJ=no
18373 beos*)
18374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18375 allow_undefined_flag_GCJ=unsupported
18376 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18377 # support --undefined. This deserves some investigation. FIXME
18378 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18379 else
18380 ld_shlibs_GCJ=no
18384 cygwin* | mingw* | pw32*)
18385 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18386 # as there is no search path for DLLs.
18387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18388 allow_undefined_flag_GCJ=unsupported
18389 always_export_symbols_GCJ=no
18390 enable_shared_with_static_runtimes_GCJ=yes
18391 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18393 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18394 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18395 # If the export-symbols file already is a .def file (1st line
18396 # is EXPORTS), use it as is; otherwise, prepend...
18397 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18398 cp $export_symbols $output_objdir/$soname.def;
18399 else
18400 echo EXPORTS > $output_objdir/$soname.def;
18401 cat $export_symbols >> $output_objdir/$soname.def;
18403 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18404 else
18405 ld_shlibs_GCJ=no
18409 interix[3-9]*)
18410 hardcode_direct_GCJ=no
18411 hardcode_shlibpath_var_GCJ=no
18412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18413 export_dynamic_flag_spec_GCJ='${wl}-E'
18414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18415 # Instead, shared libraries are loaded at an image base (0x10000000 by
18416 # default) and relocated if they conflict, which is a slow very memory
18417 # consuming and fragmenting process. To avoid this, we pick a random,
18418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18420 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'
18421 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'
18424 gnu* | linux* | k*bsd*-gnu)
18425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18426 tmp_addflag=
18427 case $cc_basename,$host_cpu in
18428 pgcc*) # Portland Group C compiler
18429 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'
18430 tmp_addflag=' $pic_flag'
18432 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18433 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'
18434 tmp_addflag=' $pic_flag -Mnomain' ;;
18435 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18436 tmp_addflag=' -i_dynamic' ;;
18437 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18438 tmp_addflag=' -i_dynamic -nofor_main' ;;
18439 ifc* | ifort*) # Intel Fortran compiler
18440 tmp_addflag=' -nofor_main' ;;
18441 esac
18442 case `$CC -V 2>&1 | sed 5q` in
18443 *Sun\ C*) # Sun C 5.9
18444 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'
18445 tmp_sharedflag='-G' ;;
18446 *Sun\ F*) # Sun Fortran 8.3
18447 tmp_sharedflag='-G' ;;
18449 tmp_sharedflag='-shared' ;;
18450 esac
18451 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18453 if test $supports_anon_versioning = yes; then
18454 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18456 $echo "local: *; };" >> $output_objdir/$libname.ver~
18457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18459 link_all_deplibs_GCJ=no
18460 else
18461 ld_shlibs_GCJ=no
18465 netbsd* | netbsdelf*-gnu)
18466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18467 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18468 wlarc=
18469 else
18470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18471 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18475 solaris*)
18476 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18477 ld_shlibs_GCJ=no
18478 cat <<EOF 1>&2
18480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18481 *** create shared libraries on Solaris systems. Therefore, libtool
18482 *** is disabling shared libraries support. We urge you to upgrade GNU
18483 *** binutils to release 2.9.1 or newer. Another option is to modify
18484 *** your PATH or compiler configuration so that the native linker is
18485 *** used, and then restart.
18488 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18489 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18490 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18491 else
18492 ld_shlibs_GCJ=no
18496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18497 case `$LD -v 2>&1` in
18498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18499 ld_shlibs_GCJ=no
18500 cat <<_LT_EOF 1>&2
18502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18503 *** reliably create shared libraries on SCO systems. Therefore, libtool
18504 *** is disabling shared libraries support. We urge you to upgrade GNU
18505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18506 *** your PATH or compiler configuration so that the native linker is
18507 *** used, and then restart.
18509 _LT_EOF
18512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18513 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18514 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18515 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18516 else
18517 ld_shlibs_GCJ=no
18520 esac
18523 sunos4*)
18524 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18525 wlarc=
18526 hardcode_direct_GCJ=yes
18527 hardcode_shlibpath_var_GCJ=no
18531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18534 else
18535 ld_shlibs_GCJ=no
18538 esac
18540 if test "$ld_shlibs_GCJ" = no; then
18541 runpath_var=
18542 hardcode_libdir_flag_spec_GCJ=
18543 export_dynamic_flag_spec_GCJ=
18544 whole_archive_flag_spec_GCJ=
18546 else
18547 # PORTME fill in a description of your system's linker (not GNU ld)
18548 case $host_os in
18549 aix3*)
18550 allow_undefined_flag_GCJ=unsupported
18551 always_export_symbols_GCJ=yes
18552 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'
18553 # Note: this linker hardcodes the directories in LIBPATH if there
18554 # are no directories specified by -L.
18555 hardcode_minus_L_GCJ=yes
18556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18557 # Neither direct hardcoding nor static linking is supported with a
18558 # broken collect2.
18559 hardcode_direct_GCJ=unsupported
18563 aix[4-9]*)
18564 if test "$host_cpu" = ia64; then
18565 # On IA64, the linker does run time linking by default, so we don't
18566 # have to do anything special.
18567 aix_use_runtimelinking=no
18568 exp_sym_flag='-Bexport'
18569 no_entry_flag=""
18570 else
18571 # If we're using GNU nm, then we don't want the "-C" option.
18572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18573 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18574 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'
18575 else
18576 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'
18578 aix_use_runtimelinking=no
18580 # Test if we are trying to use run time linking or normal
18581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18582 # need to do runtime linking.
18583 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18584 for ld_flag in $LDFLAGS; do
18585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18586 aix_use_runtimelinking=yes
18587 break
18589 done
18591 esac
18593 exp_sym_flag='-bexport'
18594 no_entry_flag='-bnoentry'
18597 # When large executables or shared objects are built, AIX ld can
18598 # have problems creating the table of contents. If linking a library
18599 # or program results in "error TOC overflow" add -mminimal-toc to
18600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18603 archive_cmds_GCJ=''
18604 hardcode_direct_GCJ=yes
18605 hardcode_libdir_separator_GCJ=':'
18606 link_all_deplibs_GCJ=yes
18608 if test "$GCC" = yes; then
18609 case $host_os in aix4.[012]|aix4.[012].*)
18610 # We only want to do this on AIX 4.2 and lower, the check
18611 # below for broken collect2 doesn't work under 4.3+
18612 collect2name=`${CC} -print-prog-name=collect2`
18613 if test -f "$collect2name" && \
18614 strings "$collect2name" | grep resolve_lib_name >/dev/null
18615 then
18616 # We have reworked collect2
18618 else
18619 # We have old collect2
18620 hardcode_direct_GCJ=unsupported
18621 # It fails to find uninstalled libraries when the uninstalled
18622 # path is not listed in the libpath. Setting hardcode_minus_L
18623 # to unsupported forces relinking
18624 hardcode_minus_L_GCJ=yes
18625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18626 hardcode_libdir_separator_GCJ=
18629 esac
18630 shared_flag='-shared'
18631 if test "$aix_use_runtimelinking" = yes; then
18632 shared_flag="$shared_flag "'${wl}-G'
18634 else
18635 # not using gcc
18636 if test "$host_cpu" = ia64; then
18637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18638 # chokes on -Wl,-G. The following line is correct:
18639 shared_flag='-G'
18640 else
18641 if test "$aix_use_runtimelinking" = yes; then
18642 shared_flag='${wl}-G'
18643 else
18644 shared_flag='${wl}-bM:SRE'
18649 # It seems that -bexpall does not export symbols beginning with
18650 # underscore (_), so it is better to generate a list of symbols to export.
18651 always_export_symbols_GCJ=yes
18652 if test "$aix_use_runtimelinking" = yes; then
18653 # Warning - without using the other runtime loading flags (-brtl),
18654 # -berok will link without error, but may produce a broken library.
18655 allow_undefined_flag_GCJ='-berok'
18656 # Determine the default libpath from the value encoded in an empty executable.
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18665 main ()
18669 return 0;
18671 _ACEOF
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (ac_try="$ac_link"
18674 case "(($ac_try" in
18675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676 *) ac_try_echo=$ac_try;;
18677 esac
18678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679 (eval "$ac_link") 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest$ac_exeext &&
18689 $as_test_x conftest$ac_exeext; then
18691 lt_aix_libpath_sed='
18692 /Import File Strings/,/^$/ {
18693 /^0/ {
18694 s/^0 *\(.*\)$/\1/
18698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18699 # Check for a 64-bit object if we didn't find anything.
18700 if test -z "$aix_libpath"; then
18701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18703 else
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18711 conftest$ac_exeext conftest.$ac_ext
18712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18714 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18715 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"
18716 else
18717 if test "$host_cpu" = ia64; then
18718 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18719 allow_undefined_flag_GCJ="-z nodefs"
18720 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"
18721 else
18722 # Determine the default libpath from the value encoded in an empty executable.
18723 cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h. */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18731 main ()
18735 return 0;
18737 _ACEOF
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_link") 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } && {
18752 test -z "$ac_c_werror_flag" ||
18753 test ! -s conftest.err
18754 } && test -s conftest$ac_exeext &&
18755 $as_test_x conftest$ac_exeext; then
18757 lt_aix_libpath_sed='
18758 /Import File Strings/,/^$/ {
18759 /^0/ {
18760 s/^0 *\(.*\)$/\1/
18764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18765 # Check for a 64-bit object if we didn't find anything.
18766 if test -z "$aix_libpath"; then
18767 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18769 else
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18777 conftest$ac_exeext conftest.$ac_ext
18778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18780 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18781 # Warning - without using the other run time loading flags,
18782 # -berok will link without error, but may produce a broken library.
18783 no_undefined_flag_GCJ=' ${wl}-bernotok'
18784 allow_undefined_flag_GCJ=' ${wl}-berok'
18785 # Exported symbols can be pulled into shared objects from archives
18786 whole_archive_flag_spec_GCJ='$convenience'
18787 archive_cmds_need_lc_GCJ=yes
18788 # This is similar to how AIX traditionally builds its shared libraries.
18789 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'
18794 amigaos*)
18795 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)'
18796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18797 hardcode_minus_L_GCJ=yes
18798 # see comment about different semantics on the GNU ld section
18799 ld_shlibs_GCJ=no
18802 bsdi[45]*)
18803 export_dynamic_flag_spec_GCJ=-rdynamic
18806 cygwin* | mingw* | pw32*)
18807 # When not using gcc, we currently assume that we are using
18808 # Microsoft Visual C++.
18809 # hardcode_libdir_flag_spec is actually meaningless, as there is
18810 # no search path for DLLs.
18811 hardcode_libdir_flag_spec_GCJ=' '
18812 allow_undefined_flag_GCJ=unsupported
18813 # Tell ltmain to make .lib files, not .a files.
18814 libext=lib
18815 # Tell ltmain to make .dll files, not .so files.
18816 shrext_cmds=".dll"
18817 # FIXME: Setting linknames here is a bad hack.
18818 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18819 # The linker will automatically build a .lib file if we build a DLL.
18820 old_archive_From_new_cmds_GCJ='true'
18821 # FIXME: Should let the user specify the lib program.
18822 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18823 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18824 enable_shared_with_static_runtimes_GCJ=yes
18827 darwin* | rhapsody*)
18828 case $host_os in
18829 rhapsody* | darwin1.[012])
18830 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18832 *) # Darwin 1.3 on
18833 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18835 else
18836 case ${MACOSX_DEPLOYMENT_TARGET} in
18837 10.[012])
18838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18840 10.*)
18841 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18843 esac
18846 esac
18847 archive_cmds_need_lc_GCJ=no
18848 hardcode_direct_GCJ=no
18849 hardcode_automatic_GCJ=yes
18850 hardcode_shlibpath_var_GCJ=unsupported
18851 whole_archive_flag_spec_GCJ=''
18852 link_all_deplibs_GCJ=yes
18853 if test "$GCC" = yes ; then
18854 output_verbose_link_cmd='echo'
18855 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}"
18856 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18857 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}"
18858 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}"
18859 else
18860 case $cc_basename in
18861 xlc*)
18862 output_verbose_link_cmd='echo'
18863 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18864 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18866 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}'
18867 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}'
18870 ld_shlibs_GCJ=no
18872 esac
18876 dgux*)
18877 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18879 hardcode_shlibpath_var_GCJ=no
18882 freebsd1*)
18883 ld_shlibs_GCJ=no
18886 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18887 # support. Future versions do this automatically, but an explicit c++rt0.o
18888 # does not break anything, and helps significantly (at the cost of a little
18889 # extra space).
18890 freebsd2.2*)
18891 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18892 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18893 hardcode_direct_GCJ=yes
18894 hardcode_shlibpath_var_GCJ=no
18897 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18898 freebsd2*)
18899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18900 hardcode_direct_GCJ=yes
18901 hardcode_minus_L_GCJ=yes
18902 hardcode_shlibpath_var_GCJ=no
18905 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18906 freebsd* | dragonfly*)
18907 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18908 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18909 hardcode_direct_GCJ=yes
18910 hardcode_shlibpath_var_GCJ=no
18913 hpux9*)
18914 if test "$GCC" = yes; then
18915 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'
18916 else
18917 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'
18919 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18920 hardcode_libdir_separator_GCJ=:
18921 hardcode_direct_GCJ=yes
18923 # hardcode_minus_L: Not really in the search PATH,
18924 # but as the default location of the library.
18925 hardcode_minus_L_GCJ=yes
18926 export_dynamic_flag_spec_GCJ='${wl}-E'
18929 hpux10*)
18930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18931 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18932 else
18933 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18935 if test "$with_gnu_ld" = no; then
18936 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18937 hardcode_libdir_separator_GCJ=:
18939 hardcode_direct_GCJ=yes
18940 export_dynamic_flag_spec_GCJ='${wl}-E'
18942 # hardcode_minus_L: Not really in the search PATH,
18943 # but as the default location of the library.
18944 hardcode_minus_L_GCJ=yes
18948 hpux11*)
18949 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18950 case $host_cpu in
18951 hppa*64*)
18952 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18954 ia64*)
18955 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18958 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18960 esac
18961 else
18962 case $host_cpu in
18963 hppa*64*)
18964 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18966 ia64*)
18967 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18970 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18972 esac
18974 if test "$with_gnu_ld" = no; then
18975 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18976 hardcode_libdir_separator_GCJ=:
18978 case $host_cpu in
18979 hppa*64*|ia64*)
18980 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18981 hardcode_direct_GCJ=no
18982 hardcode_shlibpath_var_GCJ=no
18985 hardcode_direct_GCJ=yes
18986 export_dynamic_flag_spec_GCJ='${wl}-E'
18988 # hardcode_minus_L: Not really in the search PATH,
18989 # but as the default location of the library.
18990 hardcode_minus_L_GCJ=yes
18992 esac
18996 irix5* | irix6* | nonstopux*)
18997 if test "$GCC" = yes; then
18998 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'
18999 else
19000 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'
19001 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19004 hardcode_libdir_separator_GCJ=:
19005 link_all_deplibs_GCJ=yes
19008 netbsd* | netbsdelf*-gnu)
19009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19010 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19011 else
19012 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19014 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19015 hardcode_direct_GCJ=yes
19016 hardcode_shlibpath_var_GCJ=no
19019 newsos6)
19020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19021 hardcode_direct_GCJ=yes
19022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19023 hardcode_libdir_separator_GCJ=:
19024 hardcode_shlibpath_var_GCJ=no
19027 openbsd*)
19028 if test -f /usr/libexec/ld.so; then
19029 hardcode_direct_GCJ=yes
19030 hardcode_shlibpath_var_GCJ=no
19031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19032 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19033 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19035 export_dynamic_flag_spec_GCJ='${wl}-E'
19036 else
19037 case $host_os in
19038 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19039 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19040 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19043 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19044 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19046 esac
19048 else
19049 ld_shlibs_GCJ=no
19053 os2*)
19054 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19055 hardcode_minus_L_GCJ=yes
19056 allow_undefined_flag_GCJ=unsupported
19057 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'
19058 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19061 osf3*)
19062 if test "$GCC" = yes; then
19063 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19064 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'
19065 else
19066 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19067 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'
19069 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19070 hardcode_libdir_separator_GCJ=:
19073 osf4* | osf5*) # as osf3* with the addition of -msym flag
19074 if test "$GCC" = yes; then
19075 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19076 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'
19077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19078 else
19079 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19080 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'
19081 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~
19082 $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'
19084 # Both c and cxx compiler support -rpath directly
19085 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19087 hardcode_libdir_separator_GCJ=:
19090 solaris*)
19091 no_undefined_flag_GCJ=' -z text'
19092 if test "$GCC" = yes; then
19093 wlarc='${wl}'
19094 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19095 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19096 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19097 else
19098 wlarc=''
19099 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19100 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19101 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19104 hardcode_shlibpath_var_GCJ=no
19105 case $host_os in
19106 solaris2.[0-5] | solaris2.[0-5].*) ;;
19108 # The compiler driver will combine and reorder linker options,
19109 # but understands `-z linker_flag'. GCC discards it without `$wl',
19110 # but is careful enough not to reorder.
19111 # Supported since Solaris 2.6 (maybe 2.5.1?)
19112 if test "$GCC" = yes; then
19113 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19114 else
19115 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19118 esac
19119 link_all_deplibs_GCJ=yes
19122 sunos4*)
19123 if test "x$host_vendor" = xsequent; then
19124 # Use $CC to link under sequent, because it throws in some extra .o
19125 # files that make .init and .fini sections work.
19126 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19127 else
19128 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19131 hardcode_direct_GCJ=yes
19132 hardcode_minus_L_GCJ=yes
19133 hardcode_shlibpath_var_GCJ=no
19136 sysv4)
19137 case $host_vendor in
19138 sni)
19139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19140 hardcode_direct_GCJ=yes # is this really true???
19142 siemens)
19143 ## LD is ld it makes a PLAMLIB
19144 ## CC just makes a GrossModule.
19145 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19146 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19147 hardcode_direct_GCJ=no
19149 motorola)
19150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19151 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19153 esac
19154 runpath_var='LD_RUN_PATH'
19155 hardcode_shlibpath_var_GCJ=no
19158 sysv4.3*)
19159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19160 hardcode_shlibpath_var_GCJ=no
19161 export_dynamic_flag_spec_GCJ='-Bexport'
19164 sysv4*MP*)
19165 if test -d /usr/nec; then
19166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19167 hardcode_shlibpath_var_GCJ=no
19168 runpath_var=LD_RUN_PATH
19169 hardcode_runpath_var=yes
19170 ld_shlibs_GCJ=yes
19174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19175 no_undefined_flag_GCJ='${wl}-z,text'
19176 archive_cmds_need_lc_GCJ=no
19177 hardcode_shlibpath_var_GCJ=no
19178 runpath_var='LD_RUN_PATH'
19180 if test "$GCC" = yes; then
19181 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19182 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19183 else
19184 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19185 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19189 sysv5* | sco3.2v5* | sco5v6*)
19190 # Note: We can NOT use -z defs as we might desire, because we do not
19191 # link with -lc, and that would cause any symbols used from libc to
19192 # always be unresolved, which means just about no library would
19193 # ever link correctly. If we're not using GNU ld we use -z text
19194 # though, which does catch some bad symbols but isn't as heavy-handed
19195 # as -z defs.
19196 no_undefined_flag_GCJ='${wl}-z,text'
19197 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19198 archive_cmds_need_lc_GCJ=no
19199 hardcode_shlibpath_var_GCJ=no
19200 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19201 hardcode_libdir_separator_GCJ=':'
19202 link_all_deplibs_GCJ=yes
19203 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19204 runpath_var='LD_RUN_PATH'
19206 if test "$GCC" = yes; then
19207 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19208 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19209 else
19210 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19211 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19215 uts4*)
19216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19218 hardcode_shlibpath_var_GCJ=no
19222 ld_shlibs_GCJ=no
19224 esac
19227 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19228 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19229 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19232 # Do we need to explicitly link libc?
19234 case "x$archive_cmds_need_lc_GCJ" in
19235 x|xyes)
19236 # Assume -lc should be added
19237 archive_cmds_need_lc_GCJ=yes
19239 if test "$enable_shared" = yes && test "$GCC" = yes; then
19240 case $archive_cmds_GCJ in
19241 *'~'*)
19242 # FIXME: we may have to deal with multi-command sequences.
19244 '$CC '*)
19245 # Test whether the compiler implicitly links with -lc since on some
19246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19247 # to ld, don't add -lc before -lgcc.
19248 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19249 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19250 $rm conftest*
19251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19254 (eval $ac_compile) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } 2>conftest.err; then
19258 soname=conftest
19259 lib=conftest
19260 libobjs=conftest.$ac_objext
19261 deplibs=
19262 wl=$lt_prog_compiler_wl_GCJ
19263 pic_flag=$lt_prog_compiler_pic_GCJ
19264 compiler_flags=-v
19265 linker_flags=-v
19266 verstring=
19267 output_objdir=.
19268 libname=conftest
19269 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19270 allow_undefined_flag_GCJ=
19271 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19272 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }
19276 then
19277 archive_cmds_need_lc_GCJ=no
19278 else
19279 archive_cmds_need_lc_GCJ=yes
19281 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19282 else
19283 cat conftest.err 1>&5
19285 $rm conftest*
19286 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19287 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19289 esac
19292 esac
19294 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19295 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19296 library_names_spec=
19297 libname_spec='lib$name'
19298 soname_spec=
19299 shrext_cmds=".so"
19300 postinstall_cmds=
19301 postuninstall_cmds=
19302 finish_cmds=
19303 finish_eval=
19304 shlibpath_var=
19305 shlibpath_overrides_runpath=unknown
19306 version_type=none
19307 dynamic_linker="$host_os ld.so"
19308 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19310 need_lib_prefix=unknown
19311 hardcode_into_libs=no
19313 # when you set need_version to no, make sure it does not cause -set_version
19314 # flags to be left without arguments
19315 need_version=unknown
19317 case $host_os in
19318 aix3*)
19319 version_type=linux
19320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19321 shlibpath_var=LIBPATH
19323 # AIX 3 has no versioning support, so we append a major version to the name.
19324 soname_spec='${libname}${release}${shared_ext}$major'
19327 aix[4-9]*)
19328 version_type=linux
19329 need_lib_prefix=no
19330 need_version=no
19331 hardcode_into_libs=yes
19332 if test "$host_cpu" = ia64; then
19333 # AIX 5 supports IA64
19334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19335 shlibpath_var=LD_LIBRARY_PATH
19336 else
19337 # With GCC up to 2.95.x, collect2 would create an import file
19338 # for dependence libraries. The import file would start with
19339 # the line `#! .'. This would cause the generated library to
19340 # depend on `.', always an invalid library. This was fixed in
19341 # development snapshots of GCC prior to 3.0.
19342 case $host_os in
19343 aix4 | aix4.[01] | aix4.[01].*)
19344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19345 echo ' yes '
19346 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19348 else
19349 can_build_shared=no
19352 esac
19353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19354 # soname into executable. Probably we can add versioning support to
19355 # collect2, so additional links can be useful in future.
19356 if test "$aix_use_runtimelinking" = yes; then
19357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19358 # instead of lib<name>.a to let people know that these are not
19359 # typical AIX shared libraries.
19360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19361 else
19362 # We preserve .a as extension for shared libraries through AIX4.2
19363 # and later when we are not doing run time linking.
19364 library_names_spec='${libname}${release}.a $libname.a'
19365 soname_spec='${libname}${release}${shared_ext}$major'
19367 shlibpath_var=LIBPATH
19371 amigaos*)
19372 library_names_spec='$libname.ixlibrary $libname.a'
19373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19374 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'
19377 beos*)
19378 library_names_spec='${libname}${shared_ext}'
19379 dynamic_linker="$host_os ld.so"
19380 shlibpath_var=LIBRARY_PATH
19383 bsdi[45]*)
19384 version_type=linux
19385 need_version=no
19386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19387 soname_spec='${libname}${release}${shared_ext}$major'
19388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19389 shlibpath_var=LD_LIBRARY_PATH
19390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19392 # the default ld.so.conf also contains /usr/contrib/lib and
19393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19394 # libtool to hard-code these into programs
19397 cygwin* | mingw* | pw32*)
19398 version_type=windows
19399 shrext_cmds=".dll"
19400 need_version=no
19401 need_lib_prefix=no
19403 case $GCC,$host_os in
19404 yes,cygwin* | yes,mingw* | yes,pw32*)
19405 library_names_spec='$libname.dll.a'
19406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19407 postinstall_cmds='base_file=`basename \${file}`~
19408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19409 dldir=$destdir/`dirname \$dlpath`~
19410 test -d \$dldir || mkdir -p \$dldir~
19411 $install_prog $dir/$dlname \$dldir/$dlname~
19412 chmod a+x \$dldir/$dlname'
19413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19414 dlpath=$dir/\$dldll~
19415 $rm \$dlpath'
19416 shlibpath_overrides_runpath=yes
19418 case $host_os in
19419 cygwin*)
19420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19422 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19424 mingw*)
19425 # MinGW DLLs use traditional 'lib' prefix
19426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19428 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19429 # It is most probably a Windows format PATH printed by
19430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19431 # path with ; separators, and with drive letters. We can handle the
19432 # drive letters (cygwin fileutils understands them), so leave them,
19433 # especially as we might pass files found there to a mingw objdump,
19434 # which wouldn't understand a cygwinified path. Ahh.
19435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19436 else
19437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19440 pw32*)
19441 # pw32 DLLs use 'pw' prefix rather than 'lib'
19442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19444 esac
19448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19450 esac
19451 dynamic_linker='Win32 ld.exe'
19452 # FIXME: first we should search . and the directory the executable is in
19453 shlibpath_var=PATH
19456 darwin* | rhapsody*)
19457 dynamic_linker="$host_os dyld"
19458 version_type=darwin
19459 need_lib_prefix=no
19460 need_version=no
19461 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19462 soname_spec='${libname}${release}${major}$shared_ext'
19463 shlibpath_overrides_runpath=yes
19464 shlibpath_var=DYLD_LIBRARY_PATH
19465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19470 dgux*)
19471 version_type=linux
19472 need_lib_prefix=no
19473 need_version=no
19474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19475 soname_spec='${libname}${release}${shared_ext}$major'
19476 shlibpath_var=LD_LIBRARY_PATH
19479 freebsd1*)
19480 dynamic_linker=no
19483 freebsd* | dragonfly*)
19484 # DragonFly does not have aout. When/if they implement a new
19485 # versioning mechanism, adjust this.
19486 if test -x /usr/bin/objformat; then
19487 objformat=`/usr/bin/objformat`
19488 else
19489 case $host_os in
19490 freebsd[123]*) objformat=aout ;;
19491 *) objformat=elf ;;
19492 esac
19494 version_type=freebsd-$objformat
19495 case $version_type in
19496 freebsd-elf*)
19497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19498 need_version=no
19499 need_lib_prefix=no
19501 freebsd-*)
19502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19503 need_version=yes
19505 esac
19506 shlibpath_var=LD_LIBRARY_PATH
19507 case $host_os in
19508 freebsd2*)
19509 shlibpath_overrides_runpath=yes
19511 freebsd3.[01]* | freebsdelf3.[01]*)
19512 shlibpath_overrides_runpath=yes
19513 hardcode_into_libs=yes
19515 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19516 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19517 shlibpath_overrides_runpath=no
19518 hardcode_into_libs=yes
19520 *) # from 4.6 on, and DragonFly
19521 shlibpath_overrides_runpath=yes
19522 hardcode_into_libs=yes
19524 esac
19527 gnu*)
19528 version_type=linux
19529 need_lib_prefix=no
19530 need_version=no
19531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19532 soname_spec='${libname}${release}${shared_ext}$major'
19533 shlibpath_var=LD_LIBRARY_PATH
19534 hardcode_into_libs=yes
19537 hpux9* | hpux10* | hpux11*)
19538 # Give a soname corresponding to the major version so that dld.sl refuses to
19539 # link against other versions.
19540 version_type=sunos
19541 need_lib_prefix=no
19542 need_version=no
19543 case $host_cpu in
19544 ia64*)
19545 shrext_cmds='.so'
19546 hardcode_into_libs=yes
19547 dynamic_linker="$host_os dld.so"
19548 shlibpath_var=LD_LIBRARY_PATH
19549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551 soname_spec='${libname}${release}${shared_ext}$major'
19552 if test "X$HPUX_IA64_MODE" = X32; then
19553 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19554 else
19555 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19559 hppa*64*)
19560 shrext_cmds='.sl'
19561 hardcode_into_libs=yes
19562 dynamic_linker="$host_os dld.sl"
19563 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19566 soname_spec='${libname}${release}${shared_ext}$major'
19567 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19571 shrext_cmds='.sl'
19572 dynamic_linker="$host_os dld.sl"
19573 shlibpath_var=SHLIB_PATH
19574 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19576 soname_spec='${libname}${release}${shared_ext}$major'
19578 esac
19579 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19580 postinstall_cmds='chmod 555 $lib'
19583 interix[3-9]*)
19584 version_type=linux
19585 need_lib_prefix=no
19586 need_version=no
19587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19588 soname_spec='${libname}${release}${shared_ext}$major'
19589 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 shlibpath_overrides_runpath=no
19592 hardcode_into_libs=yes
19595 irix5* | irix6* | nonstopux*)
19596 case $host_os in
19597 nonstopux*) version_type=nonstopux ;;
19599 if test "$lt_cv_prog_gnu_ld" = yes; then
19600 version_type=linux
19601 else
19602 version_type=irix
19603 fi ;;
19604 esac
19605 need_lib_prefix=no
19606 need_version=no
19607 soname_spec='${libname}${release}${shared_ext}$major'
19608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19609 case $host_os in
19610 irix5* | nonstopux*)
19611 libsuff= shlibsuff=
19614 case $LD in # libtool.m4 will add one of these switches to LD
19615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19616 libsuff= shlibsuff= libmagic=32-bit;;
19617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19618 libsuff=32 shlibsuff=N32 libmagic=N32;;
19619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19620 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19621 *) libsuff= shlibsuff= libmagic=never-match;;
19622 esac
19624 esac
19625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19626 shlibpath_overrides_runpath=no
19627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19629 hardcode_into_libs=yes
19632 # No shared lib support for Linux oldld, aout, or coff.
19633 linux*oldld* | linux*aout* | linux*coff*)
19634 dynamic_linker=no
19637 # This must be Linux ELF.
19638 linux* | k*bsd*-gnu)
19639 version_type=linux
19640 need_lib_prefix=no
19641 need_version=no
19642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19643 soname_spec='${libname}${release}${shared_ext}$major'
19644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19645 shlibpath_var=LD_LIBRARY_PATH
19646 shlibpath_overrides_runpath=no
19647 # This implies no fast_install, which is unacceptable.
19648 # Some rework will be needed to allow for fast_install
19649 # before this can be enabled.
19650 hardcode_into_libs=yes
19652 # Append ld.so.conf contents to the search path
19653 if test -f /etc/ld.so.conf; then
19654 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' ' '`
19655 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19658 # We used to test for /lib/ld.so.1 and disable shared libraries on
19659 # powerpc, because MkLinux only supported shared libraries with the
19660 # GNU dynamic linker. Since this was broken with cross compilers,
19661 # most powerpc-linux boxes support dynamic linking these days and
19662 # people can always --disable-shared, the test was removed, and we
19663 # assume the GNU/Linux dynamic linker is in use.
19664 dynamic_linker='GNU/Linux ld.so'
19667 netbsdelf*-gnu)
19668 version_type=linux
19669 need_lib_prefix=no
19670 need_version=no
19671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19672 soname_spec='${libname}${release}${shared_ext}$major'
19673 shlibpath_var=LD_LIBRARY_PATH
19674 shlibpath_overrides_runpath=no
19675 hardcode_into_libs=yes
19676 dynamic_linker='NetBSD ld.elf_so'
19679 netbsd*)
19680 version_type=sunos
19681 need_lib_prefix=no
19682 need_version=no
19683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19686 dynamic_linker='NetBSD (a.out) ld.so'
19687 else
19688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19689 soname_spec='${libname}${release}${shared_ext}$major'
19690 dynamic_linker='NetBSD ld.elf_so'
19692 shlibpath_var=LD_LIBRARY_PATH
19693 shlibpath_overrides_runpath=yes
19694 hardcode_into_libs=yes
19697 newsos6)
19698 version_type=linux
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19700 shlibpath_var=LD_LIBRARY_PATH
19701 shlibpath_overrides_runpath=yes
19704 nto-qnx*)
19705 version_type=linux
19706 need_lib_prefix=no
19707 need_version=no
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709 soname_spec='${libname}${release}${shared_ext}$major'
19710 shlibpath_var=LD_LIBRARY_PATH
19711 shlibpath_overrides_runpath=yes
19714 openbsd*)
19715 version_type=sunos
19716 sys_lib_dlsearch_path_spec="/usr/lib"
19717 need_lib_prefix=no
19718 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19719 case $host_os in
19720 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19721 *) need_version=no ;;
19722 esac
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19725 shlibpath_var=LD_LIBRARY_PATH
19726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19727 case $host_os in
19728 openbsd2.[89] | openbsd2.[89].*)
19729 shlibpath_overrides_runpath=no
19732 shlibpath_overrides_runpath=yes
19734 esac
19735 else
19736 shlibpath_overrides_runpath=yes
19740 os2*)
19741 libname_spec='$name'
19742 shrext_cmds=".dll"
19743 need_lib_prefix=no
19744 library_names_spec='$libname${shared_ext} $libname.a'
19745 dynamic_linker='OS/2 ld.exe'
19746 shlibpath_var=LIBPATH
19749 osf3* | osf4* | osf5*)
19750 version_type=osf
19751 need_lib_prefix=no
19752 need_version=no
19753 soname_spec='${libname}${release}${shared_ext}$major'
19754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19755 shlibpath_var=LD_LIBRARY_PATH
19756 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19757 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19760 rdos*)
19761 dynamic_linker=no
19764 solaris*)
19765 version_type=linux
19766 need_lib_prefix=no
19767 need_version=no
19768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19769 soname_spec='${libname}${release}${shared_ext}$major'
19770 shlibpath_var=LD_LIBRARY_PATH
19771 shlibpath_overrides_runpath=yes
19772 hardcode_into_libs=yes
19773 # ldd complains unless libraries are executable
19774 postinstall_cmds='chmod +x $lib'
19777 sunos4*)
19778 version_type=sunos
19779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19780 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19781 shlibpath_var=LD_LIBRARY_PATH
19782 shlibpath_overrides_runpath=yes
19783 if test "$with_gnu_ld" = yes; then
19784 need_lib_prefix=no
19786 need_version=yes
19789 sysv4 | sysv4.3*)
19790 version_type=linux
19791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19792 soname_spec='${libname}${release}${shared_ext}$major'
19793 shlibpath_var=LD_LIBRARY_PATH
19794 case $host_vendor in
19795 sni)
19796 shlibpath_overrides_runpath=no
19797 need_lib_prefix=no
19798 export_dynamic_flag_spec='${wl}-Blargedynsym'
19799 runpath_var=LD_RUN_PATH
19801 siemens)
19802 need_lib_prefix=no
19804 motorola)
19805 need_lib_prefix=no
19806 need_version=no
19807 shlibpath_overrides_runpath=no
19808 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19810 esac
19813 sysv4*MP*)
19814 if test -d /usr/nec ;then
19815 version_type=linux
19816 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19817 soname_spec='$libname${shared_ext}.$major'
19818 shlibpath_var=LD_LIBRARY_PATH
19822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19823 version_type=freebsd-elf
19824 need_lib_prefix=no
19825 need_version=no
19826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19827 soname_spec='${libname}${release}${shared_ext}$major'
19828 shlibpath_var=LD_LIBRARY_PATH
19829 hardcode_into_libs=yes
19830 if test "$with_gnu_ld" = yes; then
19831 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19832 shlibpath_overrides_runpath=no
19833 else
19834 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19835 shlibpath_overrides_runpath=yes
19836 case $host_os in
19837 sco3.2v5*)
19838 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19840 esac
19842 sys_lib_dlsearch_path_spec='/usr/lib'
19845 uts4*)
19846 version_type=linux
19847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19848 soname_spec='${libname}${release}${shared_ext}$major'
19849 shlibpath_var=LD_LIBRARY_PATH
19853 dynamic_linker=no
19855 esac
19856 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19857 echo "${ECHO_T}$dynamic_linker" >&6; }
19858 test "$dynamic_linker" = no && can_build_shared=no
19860 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19866 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19867 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 else
19870 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19873 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19875 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19876 if test "$GCC" = yes; then
19877 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19880 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19882 hardcode_action_GCJ=
19883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19884 test -n "$runpath_var_GCJ" || \
19885 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19887 # We can hardcode non-existant directories.
19888 if test "$hardcode_direct_GCJ" != no &&
19889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19890 # have to relink, otherwise we might link with an installed library
19891 # when we should be linking with a yet-to-be-installed one
19892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19893 test "$hardcode_minus_L_GCJ" != no; then
19894 # Linking always hardcodes the temporary library directory.
19895 hardcode_action_GCJ=relink
19896 else
19897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19898 hardcode_action_GCJ=immediate
19900 else
19901 # We cannot hardcode anything, or else we can only hardcode existing
19902 # directories.
19903 hardcode_action_GCJ=unsupported
19905 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19906 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19908 if test "$hardcode_action_GCJ" = relink; then
19909 # Fast installation is not supported
19910 enable_fast_install=no
19911 elif test "$shlibpath_overrides_runpath" = yes ||
19912 test "$enable_shared" = no; then
19913 # Fast installation is not necessary
19914 enable_fast_install=needless
19918 # The else clause should only fire when bootstrapping the
19919 # libtool distribution, otherwise you forgot to ship ltmain.sh
19920 # with your package, and you will get complaints that there are
19921 # no rules to generate ltmain.sh.
19922 if test -f "$ltmain"; then
19923 # See if we are running on zsh, and set the options which allow our commands through
19924 # without removal of \ escapes.
19925 if test -n "${ZSH_VERSION+set}" ; then
19926 setopt NO_GLOB_SUBST
19928 # Now quote all the things that may contain metacharacters while being
19929 # careful not to overquote the AC_SUBSTed values. We take copies of the
19930 # variables and quote the copies for generation of the libtool script.
19931 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19932 SED SHELL STRIP \
19933 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19934 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19935 deplibs_check_method reload_flag reload_cmds need_locks \
19936 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19937 lt_cv_sys_global_symbol_to_c_name_address \
19938 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19939 old_postinstall_cmds old_postuninstall_cmds \
19940 compiler_GCJ \
19941 CC_GCJ \
19942 LD_GCJ \
19943 lt_prog_compiler_wl_GCJ \
19944 lt_prog_compiler_pic_GCJ \
19945 lt_prog_compiler_static_GCJ \
19946 lt_prog_compiler_no_builtin_flag_GCJ \
19947 export_dynamic_flag_spec_GCJ \
19948 thread_safe_flag_spec_GCJ \
19949 whole_archive_flag_spec_GCJ \
19950 enable_shared_with_static_runtimes_GCJ \
19951 old_archive_cmds_GCJ \
19952 old_archive_from_new_cmds_GCJ \
19953 predep_objects_GCJ \
19954 postdep_objects_GCJ \
19955 predeps_GCJ \
19956 postdeps_GCJ \
19957 compiler_lib_search_path_GCJ \
19958 compiler_lib_search_dirs_GCJ \
19959 archive_cmds_GCJ \
19960 archive_expsym_cmds_GCJ \
19961 postinstall_cmds_GCJ \
19962 postuninstall_cmds_GCJ \
19963 old_archive_from_expsyms_cmds_GCJ \
19964 allow_undefined_flag_GCJ \
19965 no_undefined_flag_GCJ \
19966 export_symbols_cmds_GCJ \
19967 hardcode_libdir_flag_spec_GCJ \
19968 hardcode_libdir_flag_spec_ld_GCJ \
19969 hardcode_libdir_separator_GCJ \
19970 hardcode_automatic_GCJ \
19971 module_cmds_GCJ \
19972 module_expsym_cmds_GCJ \
19973 lt_cv_prog_compiler_c_o_GCJ \
19974 fix_srcfile_path_GCJ \
19975 exclude_expsyms_GCJ \
19976 include_expsyms_GCJ; do
19978 case $var in
19979 old_archive_cmds_GCJ | \
19980 old_archive_from_new_cmds_GCJ | \
19981 archive_cmds_GCJ | \
19982 archive_expsym_cmds_GCJ | \
19983 module_cmds_GCJ | \
19984 module_expsym_cmds_GCJ | \
19985 old_archive_from_expsyms_cmds_GCJ | \
19986 export_symbols_cmds_GCJ | \
19987 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19988 postinstall_cmds | postuninstall_cmds | \
19989 old_postinstall_cmds | old_postuninstall_cmds | \
19990 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19991 # Double-quote double-evaled strings.
19992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19997 esac
19998 done
20000 case $lt_echo in
20001 *'\$0 --fallback-echo"')
20002 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20004 esac
20006 cfgfile="$ofile"
20008 cat <<__EOF__ >> "$cfgfile"
20009 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20013 # Shell to use when invoking shell scripts.
20014 SHELL=$lt_SHELL
20016 # Whether or not to build shared libraries.
20017 build_libtool_libs=$enable_shared
20019 # Whether or not to build static libraries.
20020 build_old_libs=$enable_static
20022 # Whether or not to add -lc for building shared libraries.
20023 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20025 # Whether or not to disallow shared libs when runtime libs are static
20026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20028 # Whether or not to optimize for fast installation.
20029 fast_install=$enable_fast_install
20031 # The host system.
20032 host_alias=$host_alias
20033 host=$host
20034 host_os=$host_os
20036 # The build system.
20037 build_alias=$build_alias
20038 build=$build
20039 build_os=$build_os
20041 # An echo program that does not interpret backslashes.
20042 echo=$lt_echo
20044 # The archiver.
20045 AR=$lt_AR
20046 AR_FLAGS=$lt_AR_FLAGS
20048 # A C compiler.
20049 LTCC=$lt_LTCC
20051 # LTCC compiler flags.
20052 LTCFLAGS=$lt_LTCFLAGS
20054 # A language-specific compiler.
20055 CC=$lt_compiler_GCJ
20057 # Is the compiler the GNU C compiler?
20058 with_gcc=$GCC_GCJ
20060 # An ERE matcher.
20061 EGREP=$lt_EGREP
20063 # The linker used to build libraries.
20064 LD=$lt_LD_GCJ
20066 # Whether we need hard or soft links.
20067 LN_S=$lt_LN_S
20069 # A BSD-compatible nm program.
20070 NM=$lt_NM
20072 # A symbol stripping program
20073 STRIP=$lt_STRIP
20075 # Used to examine libraries when file_magic_cmd begins "file"
20076 MAGIC_CMD=$MAGIC_CMD
20078 # Used on cygwin: DLL creation program.
20079 DLLTOOL="$DLLTOOL"
20081 # Used on cygwin: object dumper.
20082 OBJDUMP="$OBJDUMP"
20084 # Used on cygwin: assembler.
20085 AS="$AS"
20087 # The name of the directory that contains temporary libtool files.
20088 objdir=$objdir
20090 # How to create reloadable object files.
20091 reload_flag=$lt_reload_flag
20092 reload_cmds=$lt_reload_cmds
20094 # How to pass a linker flag through the compiler.
20095 wl=$lt_lt_prog_compiler_wl_GCJ
20097 # Object file suffix (normally "o").
20098 objext="$ac_objext"
20100 # Old archive suffix (normally "a").
20101 libext="$libext"
20103 # Shared library suffix (normally ".so").
20104 shrext_cmds='$shrext_cmds'
20106 # Executable file suffix (normally "").
20107 exeext="$exeext"
20109 # Additional compiler flags for building library objects.
20110 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20111 pic_mode=$pic_mode
20113 # What is the maximum length of a command?
20114 max_cmd_len=$lt_cv_sys_max_cmd_len
20116 # Does compiler simultaneously support -c and -o options?
20117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20119 # Must we lock files when doing compilation?
20120 need_locks=$lt_need_locks
20122 # Do we need the lib prefix for modules?
20123 need_lib_prefix=$need_lib_prefix
20125 # Do we need a version for libraries?
20126 need_version=$need_version
20128 # Whether dlopen is supported.
20129 dlopen_support=$enable_dlopen
20131 # Whether dlopen of programs is supported.
20132 dlopen_self=$enable_dlopen_self
20134 # Whether dlopen of statically linked programs is supported.
20135 dlopen_self_static=$enable_dlopen_self_static
20137 # Compiler flag to prevent dynamic linking.
20138 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20140 # Compiler flag to turn off builtin functions.
20141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20143 # Compiler flag to allow reflexive dlopens.
20144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20146 # Compiler flag to generate shared objects directly from archives.
20147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20149 # Compiler flag to generate thread-safe objects.
20150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20152 # Library versioning type.
20153 version_type=$version_type
20155 # Format of library name prefix.
20156 libname_spec=$lt_libname_spec
20158 # List of archive names. First name is the real one, the rest are links.
20159 # The last name is the one that the linker finds with -lNAME.
20160 library_names_spec=$lt_library_names_spec
20162 # The coded name of the library, if different from the real name.
20163 soname_spec=$lt_soname_spec
20165 # Commands used to build and install an old-style archive.
20166 RANLIB=$lt_RANLIB
20167 old_archive_cmds=$lt_old_archive_cmds_GCJ
20168 old_postinstall_cmds=$lt_old_postinstall_cmds
20169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20171 # Create an old-style archive from a shared archive.
20172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20174 # Create a temporary old-style archive to link instead of a shared archive.
20175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20177 # Commands used to build and install a shared archive.
20178 archive_cmds=$lt_archive_cmds_GCJ
20179 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20180 postinstall_cmds=$lt_postinstall_cmds
20181 postuninstall_cmds=$lt_postuninstall_cmds
20183 # Commands used to build a loadable module (assumed same as above if empty)
20184 module_cmds=$lt_module_cmds_GCJ
20185 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20187 # Commands to strip libraries.
20188 old_striplib=$lt_old_striplib
20189 striplib=$lt_striplib
20191 # Dependencies to place before the objects being linked to create a
20192 # shared library.
20193 predep_objects=$lt_predep_objects_GCJ
20195 # Dependencies to place after the objects being linked to create a
20196 # shared library.
20197 postdep_objects=$lt_postdep_objects_GCJ
20199 # Dependencies to place before the objects being linked to create a
20200 # shared library.
20201 predeps=$lt_predeps_GCJ
20203 # Dependencies to place after the objects being linked to create a
20204 # shared library.
20205 postdeps=$lt_postdeps_GCJ
20207 # The directories searched by this compiler when creating a shared
20208 # library
20209 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20211 # The library search path used internally by the compiler when linking
20212 # a shared library.
20213 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20215 # Method to check whether dependent libraries are shared objects.
20216 deplibs_check_method=$lt_deplibs_check_method
20218 # Command to use when deplibs_check_method == file_magic.
20219 file_magic_cmd=$lt_file_magic_cmd
20221 # Flag that allows shared libraries with undefined symbols to be built.
20222 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20224 # Flag that forces no undefined symbols.
20225 no_undefined_flag=$lt_no_undefined_flag_GCJ
20227 # Commands used to finish a libtool library installation in a directory.
20228 finish_cmds=$lt_finish_cmds
20230 # Same as above, but a single script fragment to be evaled but not shown.
20231 finish_eval=$lt_finish_eval
20233 # Take the output of nm and produce a listing of raw symbols and C names.
20234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20236 # Transform the output of nm in a proper C declaration
20237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20239 # Transform the output of nm in a C name address pair
20240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20242 # This is the shared library runtime path variable.
20243 runpath_var=$runpath_var
20245 # This is the shared library path variable.
20246 shlibpath_var=$shlibpath_var
20248 # Is shlibpath searched before the hard-coded library search path?
20249 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20251 # How to hardcode a shared library path into an executable.
20252 hardcode_action=$hardcode_action_GCJ
20254 # Whether we should hardcode library paths into libraries.
20255 hardcode_into_libs=$hardcode_into_libs
20257 # Flag to hardcode \$libdir into a binary during linking.
20258 # This must work even if \$libdir does not exist.
20259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20261 # If ld is used when linking, flag to hardcode \$libdir into
20262 # a binary during linking. This must work even if \$libdir does
20263 # not exist.
20264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20266 # Whether we need a single -rpath flag with a separated argument.
20267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20269 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20270 # resulting binary.
20271 hardcode_direct=$hardcode_direct_GCJ
20273 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20274 # resulting binary.
20275 hardcode_minus_L=$hardcode_minus_L_GCJ
20277 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20278 # the resulting binary.
20279 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20281 # Set to yes if building a shared library automatically hardcodes DIR into the library
20282 # and all subsequent libraries and executables linked against it.
20283 hardcode_automatic=$hardcode_automatic_GCJ
20285 # Variables whose values should be saved in libtool wrapper scripts and
20286 # restored at relink time.
20287 variables_saved_for_relink="$variables_saved_for_relink"
20289 # Whether libtool must link a program against all its dependency libraries.
20290 link_all_deplibs=$link_all_deplibs_GCJ
20292 # Compile-time system search path for libraries
20293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20295 # Run-time system search path for libraries
20296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20298 # Fix the shell variable \$srcfile for the compiler.
20299 fix_srcfile_path=$lt_fix_srcfile_path
20301 # Set to yes if exported symbols are required.
20302 always_export_symbols=$always_export_symbols_GCJ
20304 # The commands to list exported symbols.
20305 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20307 # The commands to extract the exported symbol list from a shared archive.
20308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20310 # Symbols that should not be listed in the preloaded symbols.
20311 exclude_expsyms=$lt_exclude_expsyms_GCJ
20313 # Symbols that must always be exported.
20314 include_expsyms=$lt_include_expsyms_GCJ
20316 # ### END LIBTOOL TAG CONFIG: $tagname
20318 __EOF__
20321 else
20322 # If there is no Makefile yet, we rely on a make rule to execute
20323 # `config.status --recheck' to rerun these tests and create the
20324 # libtool script then.
20325 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20326 if test -f "$ltmain_in"; then
20327 test -f Makefile && make "$ltmain"
20332 ac_ext=c
20333 ac_cpp='$CPP $CPPFLAGS'
20334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20338 CC="$lt_save_CC"
20340 else
20341 tagname=""
20348 # Source file extension for RC test sources.
20349 ac_ext=rc
20351 # Object file extension for compiled RC test sources.
20352 objext=o
20353 objext_RC=$objext
20355 # Code to be used in simple compile tests
20356 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20358 # Code to be used in simple link tests
20359 lt_simple_link_test_code="$lt_simple_compile_test_code"
20361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20363 # If no C compiler was specified, use CC.
20364 LTCC=${LTCC-"$CC"}
20366 # If no C compiler flags were specified, use CFLAGS.
20367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20369 # Allow CC to be a program name with arguments.
20370 compiler=$CC
20373 # save warnings/boilerplate of simple test code
20374 ac_outfile=conftest.$ac_objext
20375 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20377 _lt_compiler_boilerplate=`cat conftest.err`
20378 $rm conftest*
20380 ac_outfile=conftest.$ac_objext
20381 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20383 _lt_linker_boilerplate=`cat conftest.err`
20384 $rm -r conftest*
20387 # Allow CC to be a program name with arguments.
20388 lt_save_CC="$CC"
20389 CC=${RC-"windres"}
20390 compiler=$CC
20391 compiler_RC=$CC
20392 for cc_temp in $compiler""; do
20393 case $cc_temp in
20394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20396 \-*) ;;
20397 *) break;;
20398 esac
20399 done
20400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20402 lt_cv_prog_compiler_c_o_RC=yes
20404 # The else clause should only fire when bootstrapping the
20405 # libtool distribution, otherwise you forgot to ship ltmain.sh
20406 # with your package, and you will get complaints that there are
20407 # no rules to generate ltmain.sh.
20408 if test -f "$ltmain"; then
20409 # See if we are running on zsh, and set the options which allow our commands through
20410 # without removal of \ escapes.
20411 if test -n "${ZSH_VERSION+set}" ; then
20412 setopt NO_GLOB_SUBST
20414 # Now quote all the things that may contain metacharacters while being
20415 # careful not to overquote the AC_SUBSTed values. We take copies of the
20416 # variables and quote the copies for generation of the libtool script.
20417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20418 SED SHELL STRIP \
20419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20421 deplibs_check_method reload_flag reload_cmds need_locks \
20422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20423 lt_cv_sys_global_symbol_to_c_name_address \
20424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20425 old_postinstall_cmds old_postuninstall_cmds \
20426 compiler_RC \
20427 CC_RC \
20428 LD_RC \
20429 lt_prog_compiler_wl_RC \
20430 lt_prog_compiler_pic_RC \
20431 lt_prog_compiler_static_RC \
20432 lt_prog_compiler_no_builtin_flag_RC \
20433 export_dynamic_flag_spec_RC \
20434 thread_safe_flag_spec_RC \
20435 whole_archive_flag_spec_RC \
20436 enable_shared_with_static_runtimes_RC \
20437 old_archive_cmds_RC \
20438 old_archive_from_new_cmds_RC \
20439 predep_objects_RC \
20440 postdep_objects_RC \
20441 predeps_RC \
20442 postdeps_RC \
20443 compiler_lib_search_path_RC \
20444 compiler_lib_search_dirs_RC \
20445 archive_cmds_RC \
20446 archive_expsym_cmds_RC \
20447 postinstall_cmds_RC \
20448 postuninstall_cmds_RC \
20449 old_archive_from_expsyms_cmds_RC \
20450 allow_undefined_flag_RC \
20451 no_undefined_flag_RC \
20452 export_symbols_cmds_RC \
20453 hardcode_libdir_flag_spec_RC \
20454 hardcode_libdir_flag_spec_ld_RC \
20455 hardcode_libdir_separator_RC \
20456 hardcode_automatic_RC \
20457 module_cmds_RC \
20458 module_expsym_cmds_RC \
20459 lt_cv_prog_compiler_c_o_RC \
20460 fix_srcfile_path_RC \
20461 exclude_expsyms_RC \
20462 include_expsyms_RC; do
20464 case $var in
20465 old_archive_cmds_RC | \
20466 old_archive_from_new_cmds_RC | \
20467 archive_cmds_RC | \
20468 archive_expsym_cmds_RC | \
20469 module_cmds_RC | \
20470 module_expsym_cmds_RC | \
20471 old_archive_from_expsyms_cmds_RC | \
20472 export_symbols_cmds_RC | \
20473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20474 postinstall_cmds | postuninstall_cmds | \
20475 old_postinstall_cmds | old_postuninstall_cmds | \
20476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20477 # Double-quote double-evaled strings.
20478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20483 esac
20484 done
20486 case $lt_echo in
20487 *'\$0 --fallback-echo"')
20488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20490 esac
20492 cfgfile="$ofile"
20494 cat <<__EOF__ >> "$cfgfile"
20495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20499 # Shell to use when invoking shell scripts.
20500 SHELL=$lt_SHELL
20502 # Whether or not to build shared libraries.
20503 build_libtool_libs=$enable_shared
20505 # Whether or not to build static libraries.
20506 build_old_libs=$enable_static
20508 # Whether or not to add -lc for building shared libraries.
20509 build_libtool_need_lc=$archive_cmds_need_lc_RC
20511 # Whether or not to disallow shared libs when runtime libs are static
20512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20514 # Whether or not to optimize for fast installation.
20515 fast_install=$enable_fast_install
20517 # The host system.
20518 host_alias=$host_alias
20519 host=$host
20520 host_os=$host_os
20522 # The build system.
20523 build_alias=$build_alias
20524 build=$build
20525 build_os=$build_os
20527 # An echo program that does not interpret backslashes.
20528 echo=$lt_echo
20530 # The archiver.
20531 AR=$lt_AR
20532 AR_FLAGS=$lt_AR_FLAGS
20534 # A C compiler.
20535 LTCC=$lt_LTCC
20537 # LTCC compiler flags.
20538 LTCFLAGS=$lt_LTCFLAGS
20540 # A language-specific compiler.
20541 CC=$lt_compiler_RC
20543 # Is the compiler the GNU C compiler?
20544 with_gcc=$GCC_RC
20546 # An ERE matcher.
20547 EGREP=$lt_EGREP
20549 # The linker used to build libraries.
20550 LD=$lt_LD_RC
20552 # Whether we need hard or soft links.
20553 LN_S=$lt_LN_S
20555 # A BSD-compatible nm program.
20556 NM=$lt_NM
20558 # A symbol stripping program
20559 STRIP=$lt_STRIP
20561 # Used to examine libraries when file_magic_cmd begins "file"
20562 MAGIC_CMD=$MAGIC_CMD
20564 # Used on cygwin: DLL creation program.
20565 DLLTOOL="$DLLTOOL"
20567 # Used on cygwin: object dumper.
20568 OBJDUMP="$OBJDUMP"
20570 # Used on cygwin: assembler.
20571 AS="$AS"
20573 # The name of the directory that contains temporary libtool files.
20574 objdir=$objdir
20576 # How to create reloadable object files.
20577 reload_flag=$lt_reload_flag
20578 reload_cmds=$lt_reload_cmds
20580 # How to pass a linker flag through the compiler.
20581 wl=$lt_lt_prog_compiler_wl_RC
20583 # Object file suffix (normally "o").
20584 objext="$ac_objext"
20586 # Old archive suffix (normally "a").
20587 libext="$libext"
20589 # Shared library suffix (normally ".so").
20590 shrext_cmds='$shrext_cmds'
20592 # Executable file suffix (normally "").
20593 exeext="$exeext"
20595 # Additional compiler flags for building library objects.
20596 pic_flag=$lt_lt_prog_compiler_pic_RC
20597 pic_mode=$pic_mode
20599 # What is the maximum length of a command?
20600 max_cmd_len=$lt_cv_sys_max_cmd_len
20602 # Does compiler simultaneously support -c and -o options?
20603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20605 # Must we lock files when doing compilation?
20606 need_locks=$lt_need_locks
20608 # Do we need the lib prefix for modules?
20609 need_lib_prefix=$need_lib_prefix
20611 # Do we need a version for libraries?
20612 need_version=$need_version
20614 # Whether dlopen is supported.
20615 dlopen_support=$enable_dlopen
20617 # Whether dlopen of programs is supported.
20618 dlopen_self=$enable_dlopen_self
20620 # Whether dlopen of statically linked programs is supported.
20621 dlopen_self_static=$enable_dlopen_self_static
20623 # Compiler flag to prevent dynamic linking.
20624 link_static_flag=$lt_lt_prog_compiler_static_RC
20626 # Compiler flag to turn off builtin functions.
20627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20629 # Compiler flag to allow reflexive dlopens.
20630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20632 # Compiler flag to generate shared objects directly from archives.
20633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20635 # Compiler flag to generate thread-safe objects.
20636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20638 # Library versioning type.
20639 version_type=$version_type
20641 # Format of library name prefix.
20642 libname_spec=$lt_libname_spec
20644 # List of archive names. First name is the real one, the rest are links.
20645 # The last name is the one that the linker finds with -lNAME.
20646 library_names_spec=$lt_library_names_spec
20648 # The coded name of the library, if different from the real name.
20649 soname_spec=$lt_soname_spec
20651 # Commands used to build and install an old-style archive.
20652 RANLIB=$lt_RANLIB
20653 old_archive_cmds=$lt_old_archive_cmds_RC
20654 old_postinstall_cmds=$lt_old_postinstall_cmds
20655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20657 # Create an old-style archive from a shared archive.
20658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20660 # Create a temporary old-style archive to link instead of a shared archive.
20661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20663 # Commands used to build and install a shared archive.
20664 archive_cmds=$lt_archive_cmds_RC
20665 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20666 postinstall_cmds=$lt_postinstall_cmds
20667 postuninstall_cmds=$lt_postuninstall_cmds
20669 # Commands used to build a loadable module (assumed same as above if empty)
20670 module_cmds=$lt_module_cmds_RC
20671 module_expsym_cmds=$lt_module_expsym_cmds_RC
20673 # Commands to strip libraries.
20674 old_striplib=$lt_old_striplib
20675 striplib=$lt_striplib
20677 # Dependencies to place before the objects being linked to create a
20678 # shared library.
20679 predep_objects=$lt_predep_objects_RC
20681 # Dependencies to place after the objects being linked to create a
20682 # shared library.
20683 postdep_objects=$lt_postdep_objects_RC
20685 # Dependencies to place before the objects being linked to create a
20686 # shared library.
20687 predeps=$lt_predeps_RC
20689 # Dependencies to place after the objects being linked to create a
20690 # shared library.
20691 postdeps=$lt_postdeps_RC
20693 # The directories searched by this compiler when creating a shared
20694 # library
20695 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20697 # The library search path used internally by the compiler when linking
20698 # a shared library.
20699 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20701 # Method to check whether dependent libraries are shared objects.
20702 deplibs_check_method=$lt_deplibs_check_method
20704 # Command to use when deplibs_check_method == file_magic.
20705 file_magic_cmd=$lt_file_magic_cmd
20707 # Flag that allows shared libraries with undefined symbols to be built.
20708 allow_undefined_flag=$lt_allow_undefined_flag_RC
20710 # Flag that forces no undefined symbols.
20711 no_undefined_flag=$lt_no_undefined_flag_RC
20713 # Commands used to finish a libtool library installation in a directory.
20714 finish_cmds=$lt_finish_cmds
20716 # Same as above, but a single script fragment to be evaled but not shown.
20717 finish_eval=$lt_finish_eval
20719 # Take the output of nm and produce a listing of raw symbols and C names.
20720 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20722 # Transform the output of nm in a proper C declaration
20723 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20725 # Transform the output of nm in a C name address pair
20726 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20728 # This is the shared library runtime path variable.
20729 runpath_var=$runpath_var
20731 # This is the shared library path variable.
20732 shlibpath_var=$shlibpath_var
20734 # Is shlibpath searched before the hard-coded library search path?
20735 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20737 # How to hardcode a shared library path into an executable.
20738 hardcode_action=$hardcode_action_RC
20740 # Whether we should hardcode library paths into libraries.
20741 hardcode_into_libs=$hardcode_into_libs
20743 # Flag to hardcode \$libdir into a binary during linking.
20744 # This must work even if \$libdir does not exist.
20745 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20747 # If ld is used when linking, flag to hardcode \$libdir into
20748 # a binary during linking. This must work even if \$libdir does
20749 # not exist.
20750 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20752 # Whether we need a single -rpath flag with a separated argument.
20753 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20755 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20756 # resulting binary.
20757 hardcode_direct=$hardcode_direct_RC
20759 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20760 # resulting binary.
20761 hardcode_minus_L=$hardcode_minus_L_RC
20763 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20764 # the resulting binary.
20765 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20767 # Set to yes if building a shared library automatically hardcodes DIR into the library
20768 # and all subsequent libraries and executables linked against it.
20769 hardcode_automatic=$hardcode_automatic_RC
20771 # Variables whose values should be saved in libtool wrapper scripts and
20772 # restored at relink time.
20773 variables_saved_for_relink="$variables_saved_for_relink"
20775 # Whether libtool must link a program against all its dependency libraries.
20776 link_all_deplibs=$link_all_deplibs_RC
20778 # Compile-time system search path for libraries
20779 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20781 # Run-time system search path for libraries
20782 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20784 # Fix the shell variable \$srcfile for the compiler.
20785 fix_srcfile_path=$lt_fix_srcfile_path
20787 # Set to yes if exported symbols are required.
20788 always_export_symbols=$always_export_symbols_RC
20790 # The commands to list exported symbols.
20791 export_symbols_cmds=$lt_export_symbols_cmds_RC
20793 # The commands to extract the exported symbol list from a shared archive.
20794 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20796 # Symbols that should not be listed in the preloaded symbols.
20797 exclude_expsyms=$lt_exclude_expsyms_RC
20799 # Symbols that must always be exported.
20800 include_expsyms=$lt_include_expsyms_RC
20802 # ### END LIBTOOL TAG CONFIG: $tagname
20804 __EOF__
20807 else
20808 # If there is no Makefile yet, we rely on a make rule to execute
20809 # `config.status --recheck' to rerun these tests and create the
20810 # libtool script then.
20811 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20812 if test -f "$ltmain_in"; then
20813 test -f Makefile && make "$ltmain"
20818 ac_ext=c
20819 ac_cpp='$CPP $CPPFLAGS'
20820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824 CC="$lt_save_CC"
20829 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20830 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20831 { (exit 1); exit 1; }; }
20833 esac
20835 # Append the new tag name to the list of available tags.
20836 if test -n "$tagname" ; then
20837 available_tags="$available_tags $tagname"
20840 done
20841 IFS="$lt_save_ifs"
20843 # Now substitute the updated list of available tags.
20844 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20845 mv "${ofile}T" "$ofile"
20846 chmod +x "$ofile"
20847 else
20848 rm -f "${ofile}T"
20849 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20850 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20851 { (exit 1); exit 1; }; }
20857 # This can be used to rebuild libtool when needed
20858 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20860 # Always use our own libtool.
20861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20863 # Prevent multiple expansion
20885 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
20886 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
20887 if test "${ac_cv_path_SED+set}" = set; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 else
20890 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
20891 for ac_i in 1 2 3 4 5 6 7; do
20892 ac_script="$ac_script$as_nl$ac_script"
20893 done
20894 echo "$ac_script" | sed 99q >conftest.sed
20895 $as_unset ac_script || ac_script=
20896 # Extract the first word of "sed gsed" to use in msg output
20897 if test -z "$SED"; then
20898 set dummy sed gsed; ac_prog_name=$2
20899 if test "${ac_cv_path_SED+set}" = set; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 else
20902 ac_path_SED_found=false
20903 # Loop through the user's path and test for each of PROGNAME-LIST
20904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20905 for as_dir in $PATH
20907 IFS=$as_save_IFS
20908 test -z "$as_dir" && as_dir=.
20909 for ac_prog in sed gsed; do
20910 for ac_exec_ext in '' $ac_executable_extensions; do
20911 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
20912 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
20913 # Check for GNU ac_path_SED and select it if it is found.
20914 # Check for GNU $ac_path_SED
20915 case `"$ac_path_SED" --version 2>&1` in
20916 *GNU*)
20917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
20919 ac_count=0
20920 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
20921 while :
20923 cat "conftest.in" "conftest.in" >"conftest.tmp"
20924 mv "conftest.tmp" "conftest.in"
20925 cp "conftest.in" "conftest.nl"
20926 echo '' >> "conftest.nl"
20927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
20928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20929 ac_count=`expr $ac_count + 1`
20930 if test $ac_count -gt ${ac_path_SED_max-0}; then
20931 # Best one so far, save it but keep looking for a better one
20932 ac_cv_path_SED="$ac_path_SED"
20933 ac_path_SED_max=$ac_count
20935 # 10*(2^10) chars as input seems more than enough
20936 test $ac_count -gt 10 && break
20937 done
20938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20939 esac
20942 $ac_path_SED_found && break 3
20943 done
20944 done
20946 done
20947 IFS=$as_save_IFS
20952 SED="$ac_cv_path_SED"
20953 if test -z "$SED"; then
20954 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
20955 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
20956 { (exit 1); exit 1; }; }
20959 else
20960 ac_cv_path_SED=$SED
20964 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
20965 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
20966 SED="$ac_cv_path_SED"
20967 rm -f conftest.sed
20974 flag=`echo "-fvisibility=hidden" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
20976 { echo "$as_me:$LINENO: checking whether the C compiler accepts the -fvisibility=hidden flag" >&5
20977 echo $ECHO_N "checking whether the C compiler accepts the -fvisibility=hidden flag... $ECHO_C" >&6; }
20978 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 else
20983 ac_ext=c
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990 save_CFLAGS="$CFLAGS"
20991 CFLAGS="$CFLAGS -fvisibility=hidden"
20992 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h. */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
21001 main ()
21005 return 0;
21008 _ACEOF
21009 rm -f conftest.$ac_objext
21010 if { (ac_try="$ac_compile"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_compile") 2>conftest.er1
21017 ac_status=$?
21018 grep -v '^ *+' conftest.er1 >conftest.err
21019 rm -f conftest.er1
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } && {
21023 test -z "$ac_c_werror_flag" ||
21024 test ! -s conftest.err
21025 } && test -s conftest.$ac_objext; then
21027 eval "ax_cv_c_check_flag_$flag=yes"
21029 else
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21034 eval "ax_cv_c_check_flag_$flag=no"
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 CFLAGS="$save_CFLAGS"
21042 ac_ext=c
21043 ac_cpp='$CPP $CPPFLAGS'
21044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21051 ac_res=`eval echo '${'ax_cv_c_check_flag_$flag'}'`
21052 { echo "$as_me:$LINENO: result: $ac_res" >&5
21053 echo "${ECHO_T}$ac_res" >&6; }
21055 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
21058 HAVE_C_GCCVISIBILITY=1
21060 else
21063 HAVE_C_GCCVISIBILITY=0
21073 flag=`echo "-fvisibility=hidden" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
21075 { echo "$as_me:$LINENO: checking whether the C++ compiler accepts the -fvisibility=hidden flag" >&5
21076 echo $ECHO_N "checking whether the C++ compiler accepts the -fvisibility=hidden flag... $ECHO_C" >&6; }
21077 if { as_var=ax_cv_cxx_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21082 ac_ext=cpp
21083 ac_cpp='$CXXCPP $CPPFLAGS'
21084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21089 save_CXXFLAGS="$CXXFLAGS"
21090 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
21091 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h. */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21100 main ()
21104 return 0;
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_compile") 2>conftest.er1
21116 ac_status=$?
21117 grep -v '^ *+' conftest.er1 >conftest.err
21118 rm -f conftest.er1
21119 cat conftest.err >&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_cxx_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest.$ac_objext; then
21126 eval "ax_cv_cxx_check_flag_$flag=yes"
21128 else
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21133 eval "ax_cv_cxx_check_flag_$flag=no"
21137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 CXXFLAGS="$save_CXXFLAGS"
21141 ac_ext=c
21142 ac_cpp='$CPP $CPPFLAGS'
21143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21150 ac_res=`eval echo '${'ax_cv_cxx_check_flag_$flag'}'`
21151 { echo "$as_me:$LINENO: result: $ac_res" >&5
21152 echo "${ECHO_T}$ac_res" >&6; }
21154 if eval "test \"`echo '$ax_cv_cxx_check_flag_'$flag`\" = yes"; then
21157 HAVE_CXX_GCCVISIBILITY=1
21159 else
21162 HAVE_CXX_GCCVISIBILITY=0
21169 if test "$HAVE_C_GCCVISIBILITY" = "1" -a "$HAVE_CXX_GCCVISIBILITY" = "1"; then
21170 WITH_GCCVISIBILITY_TRUE=
21171 WITH_GCCVISIBILITY_FALSE='#'
21172 else
21173 WITH_GCCVISIBILITY_TRUE='#'
21174 WITH_GCCVISIBILITY_FALSE=
21178 ac_ext=cpp
21179 ac_cpp='$CXXCPP $CPPFLAGS'
21180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21186 # Checks for libraries.
21189 # generates LIBUSB_CFLAGS and LIBUSB_LIBS for us
21192 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21193 if test -n "$ac_tool_prefix"; then
21194 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21195 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 else
21201 case $PKG_CONFIG in
21202 [\\/]* | ?:[\\/]*)
21203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21207 for as_dir in $PATH
21209 IFS=$as_save_IFS
21210 test -z "$as_dir" && as_dir=.
21211 for ac_exec_ext in '' $ac_executable_extensions; do
21212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21215 break 2
21217 done
21218 done
21219 IFS=$as_save_IFS
21222 esac
21224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21225 if test -n "$PKG_CONFIG"; then
21226 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21227 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21228 else
21229 { echo "$as_me:$LINENO: result: no" >&5
21230 echo "${ECHO_T}no" >&6; }
21235 if test -z "$ac_cv_path_PKG_CONFIG"; then
21236 ac_pt_PKG_CONFIG=$PKG_CONFIG
21237 # Extract the first word of "pkg-config", so it can be a program name with args.
21238 set dummy pkg-config; ac_word=$2
21239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21241 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244 case $ac_pt_PKG_CONFIG in
21245 [\\/]* | ?:[\\/]*)
21246 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21250 for as_dir in $PATH
21252 IFS=$as_save_IFS
21253 test -z "$as_dir" && as_dir=.
21254 for ac_exec_ext in '' $ac_executable_extensions; do
21255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21256 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21258 break 2
21260 done
21261 done
21262 IFS=$as_save_IFS
21265 esac
21267 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21268 if test -n "$ac_pt_PKG_CONFIG"; then
21269 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21270 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21271 else
21272 { echo "$as_me:$LINENO: result: no" >&5
21273 echo "${ECHO_T}no" >&6; }
21276 if test "x$ac_pt_PKG_CONFIG" = x; then
21277 PKG_CONFIG=""
21278 else
21279 case $cross_compiling:$ac_tool_warned in
21280 yes:)
21281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21282 whose name does not start with the host triplet. If you think this
21283 configuration is useful to you, please write to autoconf@gnu.org." >&5
21284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21285 whose name does not start with the host triplet. If you think this
21286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21287 ac_tool_warned=yes ;;
21288 esac
21289 PKG_CONFIG=$ac_pt_PKG_CONFIG
21291 else
21292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21296 if test -n "$PKG_CONFIG"; then
21297 _pkg_min_version=0.9.0
21298 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21299 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21301 { echo "$as_me:$LINENO: result: yes" >&5
21302 echo "${ECHO_T}yes" >&6; }
21303 else
21304 { echo "$as_me:$LINENO: result: no" >&5
21305 echo "${ECHO_T}no" >&6; }
21306 PKG_CONFIG=""
21311 pkg_failed=no
21312 { echo "$as_me:$LINENO: checking for LIBUSB" >&5
21313 echo $ECHO_N "checking for LIBUSB... $ECHO_C" >&6; }
21315 if test -n "$PKG_CONFIG"; then
21316 if test -n "$LIBUSB_CFLAGS"; then
21317 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
21318 else
21319 if test -n "$PKG_CONFIG" && \
21320 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
21321 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; then
21325 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null`
21326 else
21327 pkg_failed=yes
21330 else
21331 pkg_failed=untried
21333 if test -n "$PKG_CONFIG"; then
21334 if test -n "$LIBUSB_LIBS"; then
21335 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
21336 else
21337 if test -n "$PKG_CONFIG" && \
21338 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
21339 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; then
21343 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb" 2>/dev/null`
21344 else
21345 pkg_failed=yes
21348 else
21349 pkg_failed=untried
21354 if test $pkg_failed = yes; then
21356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21357 _pkg_short_errors_supported=yes
21358 else
21359 _pkg_short_errors_supported=no
21361 if test $_pkg_short_errors_supported = yes; then
21362 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb"`
21363 else
21364 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb"`
21366 # Put the nasty error message in config.log where it belongs
21367 echo "$LIBUSB_PKG_ERRORS" >&5
21369 { echo "$as_me:$LINENO: result: no" >&5
21370 echo "${ECHO_T}no" >&6; }
21371 echo "ERROR: Libusb not found automatically... build may fail if you don't specify --with-libusb";LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb"
21372 elif test $pkg_failed = untried; then
21373 echo "ERROR: Libusb not found automatically... build may fail if you don't specify --with-libusb";LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb"
21374 else
21375 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
21376 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
21377 { echo "$as_me:$LINENO: result: yes" >&5
21378 echo "${ECHO_T}yes" >&6; }
21383 # Check whether --with-libusb was given.
21384 if test "${with_libusb+set}" = set; then
21385 withval=$with_libusb; LIBUSB_CFLAGS="-I$with_libusb/include"
21386 LIBUSB_LIBS="-L$with_libusb/lib -lusb"
21391 # Boost library configuration
21393 # Ok, the requirements:
21395 # - let the user enable/disable Boost support from configure
21396 # - default to disabled
21397 # - if enabled, and not available, error
21399 # - let user specify include path, and lib path, separately,
21400 # since some Boost installations have an additional boost-1.34.1
21401 # style directory in them
21402 # - default to using no path overrides, assuming everything
21403 # that is needed is in default distro locations
21405 # - let user specify the name of the serialization library, since
21406 # the name of the library can change whether you're building
21407 # from source or not
21408 # - default to searching for boost_serialization or
21409 # boost_serialization-mt, and error if not found
21411 # Therefore:
21413 # --enable-boost Handles enable/disable
21414 # --with-boost-include=path Override the include path
21415 # --with-boost-lib=path Override the lib path
21416 # --with-boost-serialization=name Override the name of serialization
21417 # library to link with
21420 # Check whether --enable-boost was given.
21421 if test "${enable_boost+set}" = set; then
21422 enableval=$enable_boost;
21423 if test x"$enableval" = "xno" ; then
21424 BOOST_ENABLED=no
21425 else
21426 BOOST_ENABLED=yes
21429 else
21430 BOOST_ENABLED=no
21435 # Check whether --with-boost-include was given.
21436 if test "${with_boost_include+set}" = set; then
21437 withval=$with_boost_include; BOOST_INC_PATH="-I$withval"
21438 else
21439 BOOST_INC_PATH=""
21444 # Check whether --with-boost-lib was given.
21445 if test "${with_boost_lib+set}" = set; then
21446 withval=$with_boost_lib; BOOST_LIB_PATH="-L$withval"
21447 else
21448 BOOST_LIB_PATH=""
21453 # Check whether --with-boost-serialization was given.
21454 if test "${with_boost_serialization+set}" = set; then
21455 withval=$with_boost_serialization; boost_serialization_name=$withval
21456 else
21457 boost_serialization_name="boost_serialization"
21461 { echo "$as_me:$LINENO: using BOOST library... $BOOST_ENABLED" >&5
21462 echo "$as_me: using BOOST library... $BOOST_ENABLED" >&6;}
21463 if test x"$BOOST_INC_PATH$BOOST_LIB_PATH" != x ; then
21464 { echo "$as_me:$LINENO: BOOST include options: $BOOST_INC_PATH" >&5
21465 echo "$as_me: BOOST include options: $BOOST_INC_PATH" >&6;}
21466 { echo "$as_me:$LINENO: BOOST library options: $BOOST_LIB_PATH" >&5
21467 echo "$as_me: BOOST library options: $BOOST_LIB_PATH" >&6;}
21470 if test x"$BOOST_ENABLED" = "xyes" ; then
21471 # Only $BOOST_LIB_PATH is given for this check, since no
21472 # headers are included in the autoconf main() test snippet.
21473 as_ac_Lib=`echo "ac_cv_lib_$boost_serialization_name''_main" | $as_tr_sh`
21474 { echo "$as_me:$LINENO: checking for main in -l$boost_serialization_name" >&5
21475 echo $ECHO_N "checking for main in -l$boost_serialization_name... $ECHO_C" >&6; }
21476 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479 ac_check_lib_save_LIBS=$LIBS
21480 LIBS="-l$boost_serialization_name $BOOST_LIB_PATH $LIBS"
21481 cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h. */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21490 main ()
21492 return main ();
21494 return 0;
21496 _ACEOF
21497 rm -f conftest.$ac_objext conftest$ac_exeext
21498 if { (ac_try="$ac_link"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_link") 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_cxx_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest$ac_exeext &&
21514 $as_test_x conftest$ac_exeext; then
21515 eval "$as_ac_Lib=yes"
21516 else
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 eval "$as_ac_Lib=no"
21523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21524 conftest$ac_exeext conftest.$ac_ext
21525 LIBS=$ac_check_lib_save_LIBS
21527 ac_res=`eval echo '${'$as_ac_Lib'}'`
21528 { echo "$as_me:$LINENO: result: $ac_res" >&5
21529 echo "${ECHO_T}$ac_res" >&6; }
21530 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21531 BOOST_LDADD="-l$boost_serialization_name"
21532 else
21534 { echo "$as_me:$LINENO: checking for main in -lboost_serialization-mt" >&5
21535 echo $ECHO_N "checking for main in -lboost_serialization-mt... $ECHO_C" >&6; }
21536 if test "${ac_cv_lib_boost_serialization_mt_main+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 else
21539 ac_check_lib_save_LIBS=$LIBS
21540 LIBS="-lboost_serialization-mt $BOOST_LIB_PATH
21541 $LIBS"
21542 cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h. */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21551 main ()
21553 return main ();
21555 return 0;
21557 _ACEOF
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (ac_try="$ac_link"
21560 case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21563 esac
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_link") 2>conftest.er1
21566 ac_status=$?
21567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } && {
21572 test -z "$ac_cxx_werror_flag" ||
21573 test ! -s conftest.err
21574 } && test -s conftest$ac_exeext &&
21575 $as_test_x conftest$ac_exeext; then
21576 ac_cv_lib_boost_serialization_mt_main=yes
21577 else
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 ac_cv_lib_boost_serialization_mt_main=no
21584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21585 conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_lib_save_LIBS
21588 { echo "$as_me:$LINENO: result: $ac_cv_lib_boost_serialization_mt_main" >&5
21589 echo "${ECHO_T}$ac_cv_lib_boost_serialization_mt_main" >&6; }
21590 if test $ac_cv_lib_boost_serialization_mt_main = yes; then
21591 BOOST_LDADD="-lboost_serialization-mt"
21592 else
21593 { { echo "$as_me:$LINENO: error: boost_serialization not found" >&5
21594 echo "$as_me: error: boost_serialization not found" >&2;}
21595 { (exit 1); exit 1; }; }
21602 if test x"$BOOST_LDADD" != x ; then
21603 { echo "$as_me:$LINENO: BOOST library name: $BOOST_LDADD" >&5
21604 echo "$as_me: BOOST library name: $BOOST_LDADD" >&6;}
21605 else
21606 { { echo "$as_me:$LINENO: error: boost_serialization library not found" >&5
21607 echo "$as_me: error: boost_serialization library not found" >&2;}
21608 { (exit 1); exit 1; }; }
21617 if test "$BOOST_ENABLED" = "yes"; then
21618 WITH_BOOST_TRUE=
21619 WITH_BOOST_FALSE='#'
21620 else
21621 WITH_BOOST_TRUE='#'
21622 WITH_BOOST_FALSE=
21627 #PKG_CHECK_MODULES([OPENSSL], [openssl])
21630 pkg_failed=no
21631 { echo "$as_me:$LINENO: checking for FUSE" >&5
21632 echo $ECHO_N "checking for FUSE... $ECHO_C" >&6; }
21634 if test -n "$PKG_CONFIG"; then
21635 if test -n "$FUSE_CFLAGS"; then
21636 pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
21637 else
21638 if test -n "$PKG_CONFIG" && \
21639 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.5\"") >&5
21640 ($PKG_CONFIG --exists --print-errors "fuse >= 2.5") 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; then
21644 pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.5" 2>/dev/null`
21645 else
21646 pkg_failed=yes
21649 else
21650 pkg_failed=untried
21652 if test -n "$PKG_CONFIG"; then
21653 if test -n "$FUSE_LIBS"; then
21654 pkg_cv_FUSE_LIBS="$FUSE_LIBS"
21655 else
21656 if test -n "$PKG_CONFIG" && \
21657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.5\"") >&5
21658 ($PKG_CONFIG --exists --print-errors "fuse >= 2.5") 2>&5
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; then
21662 pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.5" 2>/dev/null`
21663 else
21664 pkg_failed=yes
21667 else
21668 pkg_failed=untried
21673 if test $pkg_failed = yes; then
21675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21676 _pkg_short_errors_supported=yes
21677 else
21678 _pkg_short_errors_supported=no
21680 if test $_pkg_short_errors_supported = yes; then
21681 FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fuse >= 2.5"`
21682 else
21683 FUSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fuse >= 2.5"`
21685 # Put the nasty error message in config.log where it belongs
21686 echo "$FUSE_PKG_ERRORS" >&5
21688 { echo "$as_me:$LINENO: result: no" >&5
21689 echo "${ECHO_T}no" >&6; }
21690 echo "FUSE library not found, skipping fuse module."; FUSE_FOUND=0
21692 elif test $pkg_failed = untried; then
21693 echo "FUSE library not found, skipping fuse module."; FUSE_FOUND=0
21695 else
21696 FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
21697 FUSE_LIBS=$pkg_cv_FUSE_LIBS
21698 { echo "$as_me:$LINENO: result: yes" >&5
21699 echo "${ECHO_T}yes" >&6; }
21700 FUSE_FOUND=1
21703 pkgconfigdir=${libdir}/pkgconfig
21711 if test "$FUSE_FOUND" = "1"; then
21712 WITH_FUSE_TRUE=
21713 WITH_FUSE_FALSE='#'
21714 else
21715 WITH_FUSE_TRUE='#'
21716 WITH_FUSE_FALSE=
21720 #AC_CHECK_LIB([IOKit], [main])
21721 #AC_CHECK_LIB([libusb], [libusb_init])
21723 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
21724 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
21725 if test "${ac_cv_lib_pthread_main+set}" = set; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 else
21728 ac_check_lib_save_LIBS=$LIBS
21729 LIBS="-lpthread $LIBS"
21730 cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h. */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21739 main ()
21741 return main ();
21743 return 0;
21745 _ACEOF
21746 rm -f conftest.$ac_objext conftest$ac_exeext
21747 if { (ac_try="$ac_link"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21751 esac
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_link") 2>conftest.er1
21754 ac_status=$?
21755 grep -v '^ *+' conftest.er1 >conftest.err
21756 rm -f conftest.er1
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } && {
21760 test -z "$ac_cxx_werror_flag" ||
21761 test ! -s conftest.err
21762 } && test -s conftest$ac_exeext &&
21763 $as_test_x conftest$ac_exeext; then
21764 ac_cv_lib_pthread_main=yes
21765 else
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_cv_lib_pthread_main=no
21772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21773 conftest$ac_exeext conftest.$ac_ext
21774 LIBS=$ac_check_lib_save_LIBS
21776 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
21777 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
21778 if test $ac_cv_lib_pthread_main = yes; then
21779 cat >>confdefs.h <<_ACEOF
21780 #define HAVE_LIBPTHREAD 1
21781 _ACEOF
21783 LIBS="-lpthread $LIBS"
21789 # Check whether --with-zlib was given.
21790 if test "${with_zlib+set}" = set; then
21791 withval=$with_zlib; force_zlib=$withval
21792 else
21793 force_zlib=no
21797 { echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
21798 echo $ECHO_N "checking for crc32 in -lz... $ECHO_C" >&6; }
21799 if test "${ac_cv_lib_z_crc32+set}" = set; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 else
21802 ac_check_lib_save_LIBS=$LIBS
21803 LIBS="-lz $LIBS"
21804 cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h. */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21811 /* Override any GCC internal prototype to avoid an error.
21812 Use char because int might match the return type of a GCC
21813 builtin and then its argument prototype would still apply. */
21814 #ifdef __cplusplus
21815 extern "C"
21816 #endif
21817 char crc32 ();
21819 main ()
21821 return crc32 ();
21823 return 0;
21825 _ACEOF
21826 rm -f conftest.$ac_objext conftest$ac_exeext
21827 if { (ac_try="$ac_link"
21828 case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_link") 2>conftest.er1
21834 ac_status=$?
21835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_cxx_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest$ac_exeext &&
21843 $as_test_x conftest$ac_exeext; then
21844 ac_cv_lib_z_crc32=yes
21845 else
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_cv_lib_z_crc32=no
21852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21853 conftest$ac_exeext conftest.$ac_ext
21854 LIBS=$ac_check_lib_save_LIBS
21856 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
21857 echo "${ECHO_T}$ac_cv_lib_z_crc32" >&6; }
21858 if test $ac_cv_lib_z_crc32 = yes; then
21861 cat >>confdefs.h <<\_ACEOF
21862 #define HAVE_ZLIB 1
21863 _ACEOF
21866 ZLIB_LIBS="-lz"
21868 else
21870 echo "*****************************************************************"
21871 echo "WARNING: zlib not found... packed .cod files will fail crc checks"
21872 echo "*****************************************************************"
21874 ZLIB_LIBS=""
21875 if test "x$force_zlib" != xno ; then
21876 { { echo "$as_me:$LINENO: error: --with-zlib specified, but zlib not found
21877 See \`config.log' for more details." >&5
21878 echo "$as_me: error: --with-zlib specified, but zlib not found
21879 See \`config.log' for more details." >&2;}
21880 { (exit 1); exit 1; }; }
21888 if test "X$prefix" = "XNONE"; then
21889 acl_final_prefix="$ac_default_prefix"
21890 else
21891 acl_final_prefix="$prefix"
21893 if test "X$exec_prefix" = "XNONE"; then
21894 acl_final_exec_prefix='${prefix}'
21895 else
21896 acl_final_exec_prefix="$exec_prefix"
21898 acl_save_prefix="$prefix"
21899 prefix="$acl_final_prefix"
21900 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21901 prefix="$acl_save_prefix"
21904 # Check whether --with-gnu-ld was given.
21905 if test "${with_gnu_ld+set}" = set; then
21906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21907 else
21908 with_gnu_ld=no
21911 # Prepare PATH_SEPARATOR.
21912 # The user is always right.
21913 if test "${PATH_SEPARATOR+set}" != set; then
21914 echo "#! /bin/sh" >conf$$.sh
21915 echo "exit 0" >>conf$$.sh
21916 chmod +x conf$$.sh
21917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21918 PATH_SEPARATOR=';'
21919 else
21920 PATH_SEPARATOR=:
21922 rm -f conf$$.sh
21924 ac_prog=ld
21925 if test "$GCC" = yes; then
21926 # Check if gcc -print-prog-name=ld gives a path.
21927 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21928 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
21929 case $host in
21930 *-*-mingw*)
21931 # gcc leaves a trailing carriage return which upsets mingw
21932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21935 esac
21936 case $ac_prog in
21937 # Accept absolute paths.
21938 [\\/]* | [A-Za-z]:[\\/]*)
21939 re_direlt='/[^/][^/]*/\.\./'
21940 # Canonicalize the path of ld
21941 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21943 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21944 done
21945 test -z "$LD" && LD="$ac_prog"
21948 # If it fails, then pretend we aren't using GCC.
21949 ac_prog=ld
21952 # If it is relative, then search for the first ld in PATH.
21953 with_gnu_ld=unknown
21955 esac
21956 elif test "$with_gnu_ld" = yes; then
21957 { echo "$as_me:$LINENO: checking for GNU ld" >&5
21958 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
21959 else
21960 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21961 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
21963 if test "${acl_cv_path_LD+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966 if test -z "$LD"; then
21967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21968 for ac_dir in $PATH; do
21969 test -z "$ac_dir" && ac_dir=.
21970 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21971 acl_cv_path_LD="$ac_dir/$ac_prog"
21972 # Check to see if the program is GNU ld. I'd rather use --version,
21973 # but apparently some GNU ld's only accept -v.
21974 # Break only if it was the GNU/non-GNU ld that we prefer.
21975 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21976 *GNU* | *'with BFD'*)
21977 test "$with_gnu_ld" != no && break ;;
21979 test "$with_gnu_ld" != yes && break ;;
21980 esac
21982 done
21983 IFS="$ac_save_ifs"
21984 else
21985 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21989 LD="$acl_cv_path_LD"
21990 if test -n "$LD"; then
21991 { echo "$as_me:$LINENO: result: $LD" >&5
21992 echo "${ECHO_T}$LD" >&6; }
21993 else
21994 { echo "$as_me:$LINENO: result: no" >&5
21995 echo "${ECHO_T}no" >&6; }
21997 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21998 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21999 { (exit 1); exit 1; }; }
22000 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22001 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
22002 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22005 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22006 case `$LD -v 2>&1 </dev/null` in
22007 *GNU* | *'with BFD'*)
22008 acl_cv_prog_gnu_ld=yes ;;
22010 acl_cv_prog_gnu_ld=no ;;
22011 esac
22013 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22014 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
22015 with_gnu_ld=$acl_cv_prog_gnu_ld
22020 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22021 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
22022 if test "${acl_cv_rpath+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22026 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22027 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22028 . ./conftest.sh
22029 rm -f ./conftest.sh
22030 acl_cv_rpath=done
22033 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22034 echo "${ECHO_T}$acl_cv_rpath" >&6; }
22035 wl="$acl_cv_wl"
22036 acl_libext="$acl_cv_libext"
22037 acl_shlibext="$acl_cv_shlibext"
22038 acl_libname_spec="$acl_cv_libname_spec"
22039 acl_library_names_spec="$acl_cv_library_names_spec"
22040 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22041 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22042 acl_hardcode_direct="$acl_cv_hardcode_direct"
22043 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
22044 # Check whether --enable-rpath was given.
22045 if test "${enable_rpath+set}" = set; then
22046 enableval=$enable_rpath; :
22047 else
22048 enable_rpath=yes
22053 acl_libdirstem=lib
22054 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
22055 if test -n "$searchpath"; then
22056 acl_save_IFS="${IFS= }"; IFS=":"
22057 for searchdir in $searchpath; do
22058 if test -d "$searchdir"; then
22059 case "$searchdir" in
22060 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
22061 *) searchdir=`cd "$searchdir" && pwd`
22062 case "$searchdir" in
22063 */lib64 ) acl_libdirstem=lib64 ;;
22064 esac ;;
22065 esac
22067 done
22068 IFS="$acl_save_IFS"
22079 use_additional=yes
22081 acl_save_prefix="$prefix"
22082 prefix="$acl_final_prefix"
22083 acl_save_exec_prefix="$exec_prefix"
22084 exec_prefix="$acl_final_exec_prefix"
22086 eval additional_includedir=\"$includedir\"
22087 eval additional_libdir=\"$libdir\"
22089 exec_prefix="$acl_save_exec_prefix"
22090 prefix="$acl_save_prefix"
22093 # Check whether --with-libiconv-prefix was given.
22094 if test "${with_libiconv_prefix+set}" = set; then
22095 withval=$with_libiconv_prefix;
22096 if test "X$withval" = "Xno"; then
22097 use_additional=no
22098 else
22099 if test "X$withval" = "X"; then
22101 acl_save_prefix="$prefix"
22102 prefix="$acl_final_prefix"
22103 acl_save_exec_prefix="$exec_prefix"
22104 exec_prefix="$acl_final_exec_prefix"
22106 eval additional_includedir=\"$includedir\"
22107 eval additional_libdir=\"$libdir\"
22109 exec_prefix="$acl_save_exec_prefix"
22110 prefix="$acl_save_prefix"
22112 else
22113 additional_includedir="$withval/include"
22114 additional_libdir="$withval/$acl_libdirstem"
22120 LIBICONV=
22121 LTLIBICONV=
22122 INCICONV=
22123 LIBICONV_PREFIX=
22124 rpathdirs=
22125 ltrpathdirs=
22126 names_already_handled=
22127 names_next_round='iconv '
22128 while test -n "$names_next_round"; do
22129 names_this_round="$names_next_round"
22130 names_next_round=
22131 for name in $names_this_round; do
22132 already_handled=
22133 for n in $names_already_handled; do
22134 if test "$n" = "$name"; then
22135 already_handled=yes
22136 break
22138 done
22139 if test -z "$already_handled"; then
22140 names_already_handled="$names_already_handled $name"
22141 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22142 eval value=\"\$HAVE_LIB$uppername\"
22143 if test -n "$value"; then
22144 if test "$value" = yes; then
22145 eval value=\"\$LIB$uppername\"
22146 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22147 eval value=\"\$LTLIB$uppername\"
22148 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22149 else
22152 else
22153 found_dir=
22154 found_la=
22155 found_so=
22156 found_a=
22157 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22158 if test -n "$acl_shlibext"; then
22159 shrext=".$acl_shlibext" # typically: shrext=.so
22160 else
22161 shrext=
22163 if test $use_additional = yes; then
22164 dir="$additional_libdir"
22165 if test -n "$acl_shlibext"; then
22166 if test -f "$dir/$libname$shrext"; then
22167 found_dir="$dir"
22168 found_so="$dir/$libname$shrext"
22169 else
22170 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22171 ver=`(cd "$dir" && \
22172 for f in "$libname$shrext".*; do echo "$f"; done \
22173 | sed -e "s,^$libname$shrext\\\\.,," \
22174 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22175 | sed 1q ) 2>/dev/null`
22176 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22177 found_dir="$dir"
22178 found_so="$dir/$libname$shrext.$ver"
22180 else
22181 eval library_names=\"$acl_library_names_spec\"
22182 for f in $library_names; do
22183 if test -f "$dir/$f"; then
22184 found_dir="$dir"
22185 found_so="$dir/$f"
22186 break
22188 done
22192 if test "X$found_dir" = "X"; then
22193 if test -f "$dir/$libname.$acl_libext"; then
22194 found_dir="$dir"
22195 found_a="$dir/$libname.$acl_libext"
22198 if test "X$found_dir" != "X"; then
22199 if test -f "$dir/$libname.la"; then
22200 found_la="$dir/$libname.la"
22204 if test "X$found_dir" = "X"; then
22205 for x in $LDFLAGS $LTLIBICONV; do
22207 acl_save_prefix="$prefix"
22208 prefix="$acl_final_prefix"
22209 acl_save_exec_prefix="$exec_prefix"
22210 exec_prefix="$acl_final_exec_prefix"
22211 eval x=\"$x\"
22212 exec_prefix="$acl_save_exec_prefix"
22213 prefix="$acl_save_prefix"
22215 case "$x" in
22216 -L*)
22217 dir=`echo "X$x" | sed -e 's/^X-L//'`
22218 if test -n "$acl_shlibext"; then
22219 if test -f "$dir/$libname$shrext"; then
22220 found_dir="$dir"
22221 found_so="$dir/$libname$shrext"
22222 else
22223 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22224 ver=`(cd "$dir" && \
22225 for f in "$libname$shrext".*; do echo "$f"; done \
22226 | sed -e "s,^$libname$shrext\\\\.,," \
22227 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22228 | sed 1q ) 2>/dev/null`
22229 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22230 found_dir="$dir"
22231 found_so="$dir/$libname$shrext.$ver"
22233 else
22234 eval library_names=\"$acl_library_names_spec\"
22235 for f in $library_names; do
22236 if test -f "$dir/$f"; then
22237 found_dir="$dir"
22238 found_so="$dir/$f"
22239 break
22241 done
22245 if test "X$found_dir" = "X"; then
22246 if test -f "$dir/$libname.$acl_libext"; then
22247 found_dir="$dir"
22248 found_a="$dir/$libname.$acl_libext"
22251 if test "X$found_dir" != "X"; then
22252 if test -f "$dir/$libname.la"; then
22253 found_la="$dir/$libname.la"
22257 esac
22258 if test "X$found_dir" != "X"; then
22259 break
22261 done
22263 if test "X$found_dir" != "X"; then
22264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22265 if test "X$found_so" != "X"; then
22266 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22267 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22268 else
22269 haveit=
22270 for x in $ltrpathdirs; do
22271 if test "X$x" = "X$found_dir"; then
22272 haveit=yes
22273 break
22275 done
22276 if test -z "$haveit"; then
22277 ltrpathdirs="$ltrpathdirs $found_dir"
22279 if test "$acl_hardcode_direct" = yes; then
22280 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22281 else
22282 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22283 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22284 haveit=
22285 for x in $rpathdirs; do
22286 if test "X$x" = "X$found_dir"; then
22287 haveit=yes
22288 break
22290 done
22291 if test -z "$haveit"; then
22292 rpathdirs="$rpathdirs $found_dir"
22294 else
22295 haveit=
22296 for x in $LDFLAGS $LIBICONV; do
22298 acl_save_prefix="$prefix"
22299 prefix="$acl_final_prefix"
22300 acl_save_exec_prefix="$exec_prefix"
22301 exec_prefix="$acl_final_exec_prefix"
22302 eval x=\"$x\"
22303 exec_prefix="$acl_save_exec_prefix"
22304 prefix="$acl_save_prefix"
22306 if test "X$x" = "X-L$found_dir"; then
22307 haveit=yes
22308 break
22310 done
22311 if test -z "$haveit"; then
22312 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22314 if test "$acl_hardcode_minus_L" != no; then
22315 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22316 else
22317 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22322 else
22323 if test "X$found_a" != "X"; then
22324 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22325 else
22326 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22329 additional_includedir=
22330 case "$found_dir" in
22331 */$acl_libdirstem | */$acl_libdirstem/)
22332 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22333 LIBICONV_PREFIX="$basedir"
22334 additional_includedir="$basedir/include"
22336 esac
22337 if test "X$additional_includedir" != "X"; then
22338 if test "X$additional_includedir" != "X/usr/include"; then
22339 haveit=
22340 if test "X$additional_includedir" = "X/usr/local/include"; then
22341 if test -n "$GCC"; then
22342 case $host_os in
22343 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22344 esac
22347 if test -z "$haveit"; then
22348 for x in $CPPFLAGS $INCICONV; do
22350 acl_save_prefix="$prefix"
22351 prefix="$acl_final_prefix"
22352 acl_save_exec_prefix="$exec_prefix"
22353 exec_prefix="$acl_final_exec_prefix"
22354 eval x=\"$x\"
22355 exec_prefix="$acl_save_exec_prefix"
22356 prefix="$acl_save_prefix"
22358 if test "X$x" = "X-I$additional_includedir"; then
22359 haveit=yes
22360 break
22362 done
22363 if test -z "$haveit"; then
22364 if test -d "$additional_includedir"; then
22365 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22371 if test -n "$found_la"; then
22372 save_libdir="$libdir"
22373 case "$found_la" in
22374 */* | *\\*) . "$found_la" ;;
22375 *) . "./$found_la" ;;
22376 esac
22377 libdir="$save_libdir"
22378 for dep in $dependency_libs; do
22379 case "$dep" in
22380 -L*)
22381 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22382 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22383 haveit=
22384 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22385 if test -n "$GCC"; then
22386 case $host_os in
22387 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22388 esac
22391 if test -z "$haveit"; then
22392 haveit=
22393 for x in $LDFLAGS $LIBICONV; do
22395 acl_save_prefix="$prefix"
22396 prefix="$acl_final_prefix"
22397 acl_save_exec_prefix="$exec_prefix"
22398 exec_prefix="$acl_final_exec_prefix"
22399 eval x=\"$x\"
22400 exec_prefix="$acl_save_exec_prefix"
22401 prefix="$acl_save_prefix"
22403 if test "X$x" = "X-L$additional_libdir"; then
22404 haveit=yes
22405 break
22407 done
22408 if test -z "$haveit"; then
22409 if test -d "$additional_libdir"; then
22410 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22413 haveit=
22414 for x in $LDFLAGS $LTLIBICONV; do
22416 acl_save_prefix="$prefix"
22417 prefix="$acl_final_prefix"
22418 acl_save_exec_prefix="$exec_prefix"
22419 exec_prefix="$acl_final_exec_prefix"
22420 eval x=\"$x\"
22421 exec_prefix="$acl_save_exec_prefix"
22422 prefix="$acl_save_prefix"
22424 if test "X$x" = "X-L$additional_libdir"; then
22425 haveit=yes
22426 break
22428 done
22429 if test -z "$haveit"; then
22430 if test -d "$additional_libdir"; then
22431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22437 -R*)
22438 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22439 if test "$enable_rpath" != no; then
22440 haveit=
22441 for x in $rpathdirs; do
22442 if test "X$x" = "X$dir"; then
22443 haveit=yes
22444 break
22446 done
22447 if test -z "$haveit"; then
22448 rpathdirs="$rpathdirs $dir"
22450 haveit=
22451 for x in $ltrpathdirs; do
22452 if test "X$x" = "X$dir"; then
22453 haveit=yes
22454 break
22456 done
22457 if test -z "$haveit"; then
22458 ltrpathdirs="$ltrpathdirs $dir"
22462 -l*)
22463 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22465 *.la)
22466 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22469 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22470 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22472 esac
22473 done
22475 else
22476 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22481 done
22482 done
22483 if test "X$rpathdirs" != "X"; then
22484 if test -n "$acl_hardcode_libdir_separator"; then
22485 alldirs=
22486 for found_dir in $rpathdirs; do
22487 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22488 done
22489 acl_save_libdir="$libdir"
22490 libdir="$alldirs"
22491 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22492 libdir="$acl_save_libdir"
22493 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22494 else
22495 for found_dir in $rpathdirs; do
22496 acl_save_libdir="$libdir"
22497 libdir="$found_dir"
22498 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22499 libdir="$acl_save_libdir"
22500 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22501 done
22504 if test "X$ltrpathdirs" != "X"; then
22505 for found_dir in $ltrpathdirs; do
22506 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22507 done
22516 am_save_CPPFLAGS="$CPPFLAGS"
22518 for element in $INCICONV; do
22519 haveit=
22520 for x in $CPPFLAGS; do
22522 acl_save_prefix="$prefix"
22523 prefix="$acl_final_prefix"
22524 acl_save_exec_prefix="$exec_prefix"
22525 exec_prefix="$acl_final_exec_prefix"
22526 eval x=\"$x\"
22527 exec_prefix="$acl_save_exec_prefix"
22528 prefix="$acl_save_prefix"
22530 if test "X$x" = "X$element"; then
22531 haveit=yes
22532 break
22534 done
22535 if test -z "$haveit"; then
22536 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22538 done
22541 { echo "$as_me:$LINENO: checking for iconv" >&5
22542 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22543 if test "${am_cv_func_iconv+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22545 else
22547 am_cv_func_iconv="no, consider installing GNU libiconv"
22548 am_cv_lib_iconv=no
22549 cat >conftest.$ac_ext <<_ACEOF
22550 /* confdefs.h. */
22551 _ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h. */
22555 #include <stdlib.h>
22556 #include <iconv.h>
22558 main ()
22560 iconv_t cd = iconv_open("","");
22561 iconv(cd,NULL,NULL,NULL,NULL);
22562 iconv_close(cd);
22564 return 0;
22566 _ACEOF
22567 rm -f conftest.$ac_objext conftest$ac_exeext
22568 if { (ac_try="$ac_link"
22569 case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22572 esac
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_link") 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } && {
22581 test -z "$ac_cxx_werror_flag" ||
22582 test ! -s conftest.err
22583 } && test -s conftest$ac_exeext &&
22584 $as_test_x conftest$ac_exeext; then
22585 am_cv_func_iconv=yes
22586 else
22587 echo "$as_me: failed program was:" >&5
22588 sed 's/^/| /' conftest.$ac_ext >&5
22593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22594 conftest$ac_exeext conftest.$ac_ext
22595 if test "$am_cv_func_iconv" != yes; then
22596 am_save_LIBS="$LIBS"
22597 LIBS="$LIBS $LIBICONV"
22598 cat >conftest.$ac_ext <<_ACEOF
22599 /* confdefs.h. */
22600 _ACEOF
22601 cat confdefs.h >>conftest.$ac_ext
22602 cat >>conftest.$ac_ext <<_ACEOF
22603 /* end confdefs.h. */
22604 #include <stdlib.h>
22605 #include <iconv.h>
22607 main ()
22609 iconv_t cd = iconv_open("","");
22610 iconv(cd,NULL,NULL,NULL,NULL);
22611 iconv_close(cd);
22613 return 0;
22615 _ACEOF
22616 rm -f conftest.$ac_objext conftest$ac_exeext
22617 if { (ac_try="$ac_link"
22618 case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22621 esac
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_link") 2>conftest.er1
22624 ac_status=$?
22625 grep -v '^ *+' conftest.er1 >conftest.err
22626 rm -f conftest.er1
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } && {
22630 test -z "$ac_cxx_werror_flag" ||
22631 test ! -s conftest.err
22632 } && test -s conftest$ac_exeext &&
22633 $as_test_x conftest$ac_exeext; then
22634 am_cv_lib_iconv=yes
22635 am_cv_func_iconv=yes
22636 else
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22644 conftest$ac_exeext conftest.$ac_ext
22645 LIBS="$am_save_LIBS"
22649 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22650 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22651 if test "$am_cv_func_iconv" = yes; then
22652 { echo "$as_me:$LINENO: checking for working iconv" >&5
22653 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
22654 if test "${am_cv_func_iconv_works+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22658 am_save_LIBS="$LIBS"
22659 if test $am_cv_lib_iconv = yes; then
22660 LIBS="$LIBS $LIBICONV"
22662 if test "$cross_compiling" = yes; then
22663 case "$host_os" in
22664 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
22665 *) am_cv_func_iconv_works="guessing yes" ;;
22666 esac
22667 else
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22675 #include <iconv.h>
22676 #include <string.h>
22677 int main ()
22679 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
22680 returns. */
22682 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
22683 if (cd_utf8_to_88591 != (iconv_t)(-1))
22685 static const char input[] = "\342\202\254"; /* EURO SIGN */
22686 char buf[10];
22687 const char *inptr = input;
22688 size_t inbytesleft = strlen (input);
22689 char *outptr = buf;
22690 size_t outbytesleft = sizeof (buf);
22691 size_t res = iconv (cd_utf8_to_88591,
22692 (char **) &inptr, &inbytesleft,
22693 &outptr, &outbytesleft);
22694 if (res == 0)
22695 return 1;
22698 #if 0 /* This bug could be worked around by the caller. */
22699 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
22701 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22702 if (cd_88591_to_utf8 != (iconv_t)(-1))
22704 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22705 char buf[50];
22706 const char *inptr = input;
22707 size_t inbytesleft = strlen (input);
22708 char *outptr = buf;
22709 size_t outbytesleft = sizeof (buf);
22710 size_t res = iconv (cd_88591_to_utf8,
22711 (char **) &inptr, &inbytesleft,
22712 &outptr, &outbytesleft);
22713 if ((int)res > 0)
22714 return 1;
22717 #endif
22718 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22719 provided. */
22720 if (/* Try standardized names. */
22721 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
22722 /* Try IRIX, OSF/1 names. */
22723 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
22724 /* Try AIX names. */
22725 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
22726 /* Try HP-UX names. */
22727 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
22728 return 1;
22729 return 0;
22731 _ACEOF
22732 rm -f conftest$ac_exeext
22733 if { (ac_try="$ac_link"
22734 case "(($ac_try" in
22735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22737 esac
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739 (eval "$ac_link") 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22743 { (case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_try") 2>&5
22749 ac_status=$?
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; }; then
22752 am_cv_func_iconv_works=yes
22753 else
22754 echo "$as_me: program exited with status $ac_status" >&5
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22758 ( exit $ac_status )
22759 am_cv_func_iconv_works=no
22761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22765 LIBS="$am_save_LIBS"
22768 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
22769 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
22770 case "$am_cv_func_iconv_works" in
22771 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
22772 *) am_func_iconv=yes ;;
22773 esac
22774 else
22775 am_func_iconv=no am_cv_lib_iconv=no
22777 if test "$am_func_iconv" = yes; then
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_ICONV 1
22781 _ACEOF
22784 if test "$am_cv_lib_iconv" = yes; then
22785 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22786 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22787 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22788 echo "${ECHO_T}$LIBICONV" >&6; }
22789 else
22790 CPPFLAGS="$am_save_CPPFLAGS"
22791 LIBICONV=
22792 LTLIBICONV=
22797 if test "$am_cv_func_iconv" = yes; then
22798 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22799 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22800 if test "${am_cv_proto_iconv+set}" = set; then
22801 echo $ECHO_N "(cached) $ECHO_C" >&6
22802 else
22804 cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h. */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22811 #include <stdlib.h>
22812 #include <iconv.h>
22813 extern
22814 #ifdef __cplusplus
22816 #endif
22817 #if defined(__STDC__) || defined(__cplusplus)
22818 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22819 #else
22820 size_t iconv();
22821 #endif
22824 main ()
22828 return 0;
22830 _ACEOF
22831 rm -f conftest.$ac_objext
22832 if { (ac_try="$ac_compile"
22833 case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22836 esac
22837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22838 (eval "$ac_compile") 2>conftest.er1
22839 ac_status=$?
22840 grep -v '^ *+' conftest.er1 >conftest.err
22841 rm -f conftest.er1
22842 cat conftest.err >&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } && {
22845 test -z "$ac_cxx_werror_flag" ||
22846 test ! -s conftest.err
22847 } && test -s conftest.$ac_objext; then
22848 am_cv_proto_iconv_arg1=""
22849 else
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22853 am_cv_proto_iconv_arg1="const"
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22860 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22861 { echo "$as_me:$LINENO: result: ${ac_t:-
22862 }$am_cv_proto_iconv" >&5
22863 echo "${ECHO_T}${ac_t:-
22864 }$am_cv_proto_iconv" >&6; }
22866 cat >>confdefs.h <<_ACEOF
22867 #define ICONV_CONST $am_cv_proto_iconv_arg1
22868 _ACEOF
22875 # Checks for header files.
22882 ac_header_dirent=no
22883 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22884 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22885 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22886 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22889 else
22890 cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h. */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22896 #include <sys/types.h>
22897 #include <$ac_hdr>
22900 main ()
22902 if ((DIR *) 0)
22903 return 0;
22905 return 0;
22907 _ACEOF
22908 rm -f conftest.$ac_objext
22909 if { (ac_try="$ac_compile"
22910 case "(($ac_try" in
22911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912 *) ac_try_echo=$ac_try;;
22913 esac
22914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915 (eval "$ac_compile") 2>conftest.er1
22916 ac_status=$?
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } && {
22922 test -z "$ac_cxx_werror_flag" ||
22923 test ! -s conftest.err
22924 } && test -s conftest.$ac_objext; then
22925 eval "$as_ac_Header=yes"
22926 else
22927 echo "$as_me: failed program was:" >&5
22928 sed 's/^/| /' conftest.$ac_ext >&5
22930 eval "$as_ac_Header=no"
22933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935 ac_res=`eval echo '${'$as_ac_Header'}'`
22936 { echo "$as_me:$LINENO: result: $ac_res" >&5
22937 echo "${ECHO_T}$ac_res" >&6; }
22938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22939 cat >>confdefs.h <<_ACEOF
22940 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22941 _ACEOF
22943 ac_header_dirent=$ac_hdr; break
22946 done
22947 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22948 if test $ac_header_dirent = dirent.h; then
22949 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22950 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22951 if test "${ac_cv_search_opendir+set}" = set; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 else
22954 ac_func_search_save_LIBS=$LIBS
22955 cat >conftest.$ac_ext <<_ACEOF
22956 /* confdefs.h. */
22957 _ACEOF
22958 cat confdefs.h >>conftest.$ac_ext
22959 cat >>conftest.$ac_ext <<_ACEOF
22960 /* end confdefs.h. */
22962 /* Override any GCC internal prototype to avoid an error.
22963 Use char because int might match the return type of a GCC
22964 builtin and then its argument prototype would still apply. */
22965 #ifdef __cplusplus
22966 extern "C"
22967 #endif
22968 char opendir ();
22970 main ()
22972 return opendir ();
22974 return 0;
22976 _ACEOF
22977 for ac_lib in '' dir; do
22978 if test -z "$ac_lib"; then
22979 ac_res="none required"
22980 else
22981 ac_res=-l$ac_lib
22982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22984 rm -f conftest.$ac_objext conftest$ac_exeext
22985 if { (ac_try="$ac_link"
22986 case "(($ac_try" in
22987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_link") 2>conftest.er1
22992 ac_status=$?
22993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } && {
22998 test -z "$ac_cxx_werror_flag" ||
22999 test ! -s conftest.err
23000 } && test -s conftest$ac_exeext &&
23001 $as_test_x conftest$ac_exeext; then
23002 ac_cv_search_opendir=$ac_res
23003 else
23004 echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23011 conftest$ac_exeext
23012 if test "${ac_cv_search_opendir+set}" = set; then
23013 break
23015 done
23016 if test "${ac_cv_search_opendir+set}" = set; then
23018 else
23019 ac_cv_search_opendir=no
23021 rm conftest.$ac_ext
23022 LIBS=$ac_func_search_save_LIBS
23024 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23025 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23026 ac_res=$ac_cv_search_opendir
23027 if test "$ac_res" != no; then
23028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23032 else
23033 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23035 if test "${ac_cv_search_opendir+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 else
23038 ac_func_search_save_LIBS=$LIBS
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h. */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23046 /* Override any GCC internal prototype to avoid an error.
23047 Use char because int might match the return type of a GCC
23048 builtin and then its argument prototype would still apply. */
23049 #ifdef __cplusplus
23050 extern "C"
23051 #endif
23052 char opendir ();
23054 main ()
23056 return opendir ();
23058 return 0;
23060 _ACEOF
23061 for ac_lib in '' x; do
23062 if test -z "$ac_lib"; then
23063 ac_res="none required"
23064 else
23065 ac_res=-l$ac_lib
23066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (ac_try="$ac_link"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_link") 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_cxx_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest$ac_exeext &&
23085 $as_test_x conftest$ac_exeext; then
23086 ac_cv_search_opendir=$ac_res
23087 else
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23095 conftest$ac_exeext
23096 if test "${ac_cv_search_opendir+set}" = set; then
23097 break
23099 done
23100 if test "${ac_cv_search_opendir+set}" = set; then
23102 else
23103 ac_cv_search_opendir=no
23105 rm conftest.$ac_ext
23106 LIBS=$ac_func_search_save_LIBS
23108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23110 ac_res=$ac_cv_search_opendir
23111 if test "$ac_res" != no; then
23112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23121 if test "${ac_cv_header_stdc+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124 cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h. */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 #include <stdlib.h>
23131 #include <stdarg.h>
23132 #include <string.h>
23133 #include <float.h>
23136 main ()
23140 return 0;
23142 _ACEOF
23143 rm -f conftest.$ac_objext
23144 if { (ac_try="$ac_compile"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_compile") 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_cxx_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest.$ac_objext; then
23160 ac_cv_header_stdc=yes
23161 else
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 ac_cv_header_stdc=no
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 if test $ac_cv_header_stdc = yes; then
23171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23172 cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h. */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23178 #include <string.h>
23180 _ACEOF
23181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23182 $EGREP "memchr" >/dev/null 2>&1; then
23184 else
23185 ac_cv_header_stdc=no
23187 rm -f conftest*
23191 if test $ac_cv_header_stdc = yes; then
23192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23193 cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h. */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h. */
23199 #include <stdlib.h>
23201 _ACEOF
23202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23203 $EGREP "free" >/dev/null 2>&1; then
23205 else
23206 ac_cv_header_stdc=no
23208 rm -f conftest*
23212 if test $ac_cv_header_stdc = yes; then
23213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23214 if test "$cross_compiling" = yes; then
23216 else
23217 cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h. */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h. */
23223 #include <ctype.h>
23224 #include <stdlib.h>
23225 #if ((' ' & 0x0FF) == 0x020)
23226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23228 #else
23229 # define ISLOWER(c) \
23230 (('a' <= (c) && (c) <= 'i') \
23231 || ('j' <= (c) && (c) <= 'r') \
23232 || ('s' <= (c) && (c) <= 'z'))
23233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23234 #endif
23236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23238 main ()
23240 int i;
23241 for (i = 0; i < 256; i++)
23242 if (XOR (islower (i), ISLOWER (i))
23243 || toupper (i) != TOUPPER (i))
23244 return 2;
23245 return 0;
23247 _ACEOF
23248 rm -f conftest$ac_exeext
23249 if { (ac_try="$ac_link"
23250 case "(($ac_try" in
23251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252 *) ac_try_echo=$ac_try;;
23253 esac
23254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255 (eval "$ac_link") 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259 { (case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_try") 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23269 else
23270 echo "$as_me: program exited with status $ac_status" >&5
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ( exit $ac_status )
23275 ac_cv_header_stdc=no
23277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23283 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23285 if test $ac_cv_header_stdc = yes; then
23287 cat >>confdefs.h <<\_ACEOF
23288 #define STDC_HEADERS 1
23289 _ACEOF
23296 for ac_header in assert.h stdint.h time.h
23298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23305 ac_res=`eval echo '${'$as_ac_Header'}'`
23306 { echo "$as_me:$LINENO: result: $ac_res" >&5
23307 echo "${ECHO_T}$ac_res" >&6; }
23308 else
23309 # Is the header compilable?
23310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23312 cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h. */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 $ac_includes_default
23319 #include <$ac_header>
23320 _ACEOF
23321 rm -f conftest.$ac_objext
23322 if { (ac_try="$ac_compile"
23323 case "(($ac_try" in
23324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325 *) ac_try_echo=$ac_try;;
23326 esac
23327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23328 (eval "$ac_compile") 2>conftest.er1
23329 ac_status=$?
23330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } && {
23335 test -z "$ac_cxx_werror_flag" ||
23336 test ! -s conftest.err
23337 } && test -s conftest.$ac_objext; then
23338 ac_header_compiler=yes
23339 else
23340 echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23343 ac_header_compiler=no
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23348 echo "${ECHO_T}$ac_header_compiler" >&6; }
23350 # Is the header present?
23351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23353 cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h. */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 #include <$ac_header>
23360 _ACEOF
23361 if { (ac_try="$ac_cpp conftest.$ac_ext"
23362 case "(($ac_try" in
23363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364 *) ac_try_echo=$ac_try;;
23365 esac
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23368 ac_status=$?
23369 grep -v '^ *+' conftest.er1 >conftest.err
23370 rm -f conftest.er1
23371 cat conftest.err >&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } >/dev/null && {
23374 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
23375 test ! -s conftest.err
23376 }; then
23377 ac_header_preproc=yes
23378 else
23379 echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ac_header_preproc=no
23385 rm -f conftest.err conftest.$ac_ext
23386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23387 echo "${ECHO_T}$ac_header_preproc" >&6; }
23389 # So? What about this header?
23390 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23391 yes:no: )
23392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23396 ac_header_preproc=yes
23398 no:yes:* )
23399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23411 ( cat <<\_ASBOX
23412 ## ------------------------------------------------ ##
23413 ## Report this to barry-devel@lists.sourceforge.net ##
23414 ## ------------------------------------------------ ##
23415 _ASBOX
23416 ) | sed "s/^/$as_me: WARNING: /" >&2
23418 esac
23419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424 eval "$as_ac_Header=\$ac_header_preproc"
23426 ac_res=`eval echo '${'$as_ac_Header'}'`
23427 { echo "$as_me:$LINENO: result: $ac_res" >&5
23428 echo "${ECHO_T}$ac_res" >&6; }
23431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23432 cat >>confdefs.h <<_ACEOF
23433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23434 _ACEOF
23438 done
23442 # Checks for typedefs, structures, and compiler characteristics.
23444 #AC_TYPE_SIZE_T
23445 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23446 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23447 if test "${ac_cv_header_time+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23449 else
23450 cat >conftest.$ac_ext <<_ACEOF
23451 /* confdefs.h. */
23452 _ACEOF
23453 cat confdefs.h >>conftest.$ac_ext
23454 cat >>conftest.$ac_ext <<_ACEOF
23455 /* end confdefs.h. */
23456 #include <sys/types.h>
23457 #include <sys/time.h>
23458 #include <time.h>
23461 main ()
23463 if ((struct tm *) 0)
23464 return 0;
23466 return 0;
23468 _ACEOF
23469 rm -f conftest.$ac_objext
23470 if { (ac_try="$ac_compile"
23471 case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23474 esac
23475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476 (eval "$ac_compile") 2>conftest.er1
23477 ac_status=$?
23478 grep -v '^ *+' conftest.er1 >conftest.err
23479 rm -f conftest.er1
23480 cat conftest.err >&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && {
23483 test -z "$ac_cxx_werror_flag" ||
23484 test ! -s conftest.err
23485 } && test -s conftest.$ac_objext; then
23486 ac_cv_header_time=yes
23487 else
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23491 ac_cv_header_time=no
23494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23496 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23497 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23498 if test $ac_cv_header_time = yes; then
23500 cat >>confdefs.h <<\_ACEOF
23501 #define TIME_WITH_SYS_TIME 1
23502 _ACEOF
23506 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23508 if test "${ac_cv_struct_tm+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23510 else
23511 cat >conftest.$ac_ext <<_ACEOF
23512 /* confdefs.h. */
23513 _ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h. */
23517 #include <sys/types.h>
23518 #include <time.h>
23521 main ()
23523 struct tm tm;
23524 int *p = &tm.tm_sec;
23525 return !p;
23527 return 0;
23529 _ACEOF
23530 rm -f conftest.$ac_objext
23531 if { (ac_try="$ac_compile"
23532 case "(($ac_try" in
23533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534 *) ac_try_echo=$ac_try;;
23535 esac
23536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_cxx_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 ac_cv_struct_tm=time.h
23548 else
23549 echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 ac_cv_struct_tm=sys/time.h
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23558 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23559 if test $ac_cv_struct_tm = sys/time.h; then
23561 cat >>confdefs.h <<\_ACEOF
23562 #define TM_IN_SYS_TIME 1
23563 _ACEOF
23569 # Checks for library functions.
23572 # checks that are buggy and need a C compiler only
23573 ac_ext=c
23574 ac_cpp='$CPP $CPPFLAGS'
23575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23579 # AC_FUNC_STRNLEN changes linker options for us, and depends on a src/strnlen.c
23580 { echo "$as_me:$LINENO: checking for working strnlen" >&5
23581 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
23582 if test "${ac_cv_func_strnlen_working+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 else
23585 if test "$cross_compiling" = yes; then
23586 ac_cv_func_strnlen_working=no
23587 else
23588 cat >conftest.$ac_ext <<_ACEOF
23589 /* confdefs.h. */
23590 _ACEOF
23591 cat confdefs.h >>conftest.$ac_ext
23592 cat >>conftest.$ac_ext <<_ACEOF
23593 /* end confdefs.h. */
23594 $ac_includes_default
23596 main ()
23599 #define S "foobar"
23600 #define S_LEN (sizeof S - 1)
23602 /* At least one implementation is buggy: that of AIX 4.3 would
23603 give strnlen (S, 1) == 3. */
23605 int i;
23606 for (i = 0; i < S_LEN + 1; ++i)
23608 int expected = i <= S_LEN ? i : S_LEN;
23609 if (strnlen (S, i) != expected)
23610 return 1;
23612 return 0;
23615 return 0;
23617 _ACEOF
23618 rm -f conftest$ac_exeext
23619 if { (ac_try="$ac_link"
23620 case "(($ac_try" in
23621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622 *) ac_try_echo=$ac_try;;
23623 esac
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625 (eval "$ac_link") 2>&5
23626 ac_status=$?
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23629 { (case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23632 esac
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_try") 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; }; then
23638 ac_cv_func_strnlen_working=yes
23639 else
23640 echo "$as_me: program exited with status $ac_status" >&5
23641 echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23644 ( exit $ac_status )
23645 ac_cv_func_strnlen_working=no
23647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23652 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
23653 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
23654 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
23655 *" strnlen.$ac_objext "* ) ;;
23656 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
23658 esac
23661 if test $ac_cv_func_strnlen_working = yes ; then
23663 cat >>confdefs.h <<\_ACEOF
23664 #define HAVE_WORKING_STRNLEN 1
23665 _ACEOF
23668 if test $ac_cv_func_strnlen_working = no ; then
23670 cat >>confdefs.h <<\_ACEOF
23671 #define HAVE_WORKING_STRNLEN 0
23672 _ACEOF
23676 # checks that work with C++
23677 ac_ext=cpp
23678 ac_cpp='$CXXCPP $CPPFLAGS'
23679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23683 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23684 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
23685 if test "${ac_cv_func_closedir_void+set}" = set; then
23686 echo $ECHO_N "(cached) $ECHO_C" >&6
23687 else
23688 if test "$cross_compiling" = yes; then
23689 ac_cv_func_closedir_void=yes
23690 else
23691 cat >conftest.$ac_ext <<_ACEOF
23692 /* confdefs.h. */
23693 _ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h. */
23697 $ac_includes_default
23698 #include <$ac_header_dirent>
23699 #ifndef __cplusplus
23700 int closedir ();
23701 #endif
23704 main ()
23706 return closedir (opendir (".")) != 0;
23708 return 0;
23710 _ACEOF
23711 rm -f conftest$ac_exeext
23712 if { (ac_try="$ac_link"
23713 case "(($ac_try" in
23714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715 *) ac_try_echo=$ac_try;;
23716 esac
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718 (eval "$ac_link") 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23722 { (case "(($ac_try" in
23723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724 *) ac_try_echo=$ac_try;;
23725 esac
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727 (eval "$ac_try") 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 ac_cv_func_closedir_void=no
23732 else
23733 echo "$as_me: program exited with status $ac_status" >&5
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23737 ( exit $ac_status )
23738 ac_cv_func_closedir_void=yes
23740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23745 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23746 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
23747 if test $ac_cv_func_closedir_void = yes; then
23749 cat >>confdefs.h <<\_ACEOF
23750 #define CLOSEDIR_VOID 1
23751 _ACEOF
23755 if test $ac_cv_c_compiler_gnu = yes; then
23756 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
23757 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
23758 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
23759 echo $ECHO_N "(cached) $ECHO_C" >&6
23760 else
23761 ac_pattern="Autoconf.*'x'"
23762 cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h. */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 #include <sgtty.h>
23769 Autoconf TIOCGETP
23770 _ACEOF
23771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23772 $EGREP "$ac_pattern" >/dev/null 2>&1; then
23773 ac_cv_prog_gcc_traditional=yes
23774 else
23775 ac_cv_prog_gcc_traditional=no
23777 rm -f conftest*
23780 if test $ac_cv_prog_gcc_traditional = no; then
23781 cat >conftest.$ac_ext <<_ACEOF
23782 /* confdefs.h. */
23783 _ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h. */
23787 #include <termio.h>
23788 Autoconf TCGETA
23789 _ACEOF
23790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23791 $EGREP "$ac_pattern" >/dev/null 2>&1; then
23792 ac_cv_prog_gcc_traditional=yes
23794 rm -f conftest*
23798 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
23799 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
23800 if test $ac_cv_prog_gcc_traditional = yes; then
23801 CC="$CC -traditional"
23805 #AC_FUNC_MALLOC
23806 #AC_FUNC_MKTIME
23807 #AC_FUNC_REALLOC
23810 for ac_header in sys/select.h sys/socket.h
23812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23817 echo $ECHO_N "(cached) $ECHO_C" >&6
23819 ac_res=`eval echo '${'$as_ac_Header'}'`
23820 { echo "$as_me:$LINENO: result: $ac_res" >&5
23821 echo "${ECHO_T}$ac_res" >&6; }
23822 else
23823 # Is the header compilable?
23824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23826 cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h. */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 $ac_includes_default
23833 #include <$ac_header>
23834 _ACEOF
23835 rm -f conftest.$ac_objext
23836 if { (ac_try="$ac_compile"
23837 case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23840 esac
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_compile") 2>conftest.er1
23843 ac_status=$?
23844 grep -v '^ *+' conftest.er1 >conftest.err
23845 rm -f conftest.er1
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_cxx_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest.$ac_objext; then
23852 ac_header_compiler=yes
23853 else
23854 echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23857 ac_header_compiler=no
23860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23862 echo "${ECHO_T}$ac_header_compiler" >&6; }
23864 # Is the header present?
23865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23867 cat >conftest.$ac_ext <<_ACEOF
23868 /* confdefs.h. */
23869 _ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h. */
23873 #include <$ac_header>
23874 _ACEOF
23875 if { (ac_try="$ac_cpp conftest.$ac_ext"
23876 case "(($ac_try" in
23877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878 *) ac_try_echo=$ac_try;;
23879 esac
23880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23882 ac_status=$?
23883 grep -v '^ *+' conftest.er1 >conftest.err
23884 rm -f conftest.er1
23885 cat conftest.err >&5
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } >/dev/null && {
23888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
23889 test ! -s conftest.err
23890 }; then
23891 ac_header_preproc=yes
23892 else
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 ac_header_preproc=no
23899 rm -f conftest.err conftest.$ac_ext
23900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23901 echo "${ECHO_T}$ac_header_preproc" >&6; }
23903 # So? What about this header?
23904 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23905 yes:no: )
23906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23910 ac_header_preproc=yes
23912 no:yes:* )
23913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23925 ( cat <<\_ASBOX
23926 ## ------------------------------------------------ ##
23927 ## Report this to barry-devel@lists.sourceforge.net ##
23928 ## ------------------------------------------------ ##
23929 _ASBOX
23930 ) | sed "s/^/$as_me: WARNING: /" >&2
23932 esac
23933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938 eval "$as_ac_Header=\$ac_header_preproc"
23940 ac_res=`eval echo '${'$as_ac_Header'}'`
23941 { echo "$as_me:$LINENO: result: $ac_res" >&5
23942 echo "${ECHO_T}$ac_res" >&6; }
23945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23946 cat >>confdefs.h <<_ACEOF
23947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23948 _ACEOF
23952 done
23954 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
23955 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
23956 if test "${ac_cv_func_select_args+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23958 else
23959 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23960 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23961 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23962 cat >conftest.$ac_ext <<_ACEOF
23963 /* confdefs.h. */
23964 _ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h. */
23968 $ac_includes_default
23969 #ifdef HAVE_SYS_SELECT_H
23970 # include <sys/select.h>
23971 #endif
23972 #ifdef HAVE_SYS_SOCKET_H
23973 # include <sys/socket.h>
23974 #endif
23977 main ()
23979 extern int select ($ac_arg1,
23980 $ac_arg234, $ac_arg234, $ac_arg234,
23981 $ac_arg5);
23983 return 0;
23985 _ACEOF
23986 rm -f conftest.$ac_objext
23987 if { (ac_try="$ac_compile"
23988 case "(($ac_try" in
23989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23990 *) ac_try_echo=$ac_try;;
23991 esac
23992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23994 ac_status=$?
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_cxx_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24004 else
24005 echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012 done
24013 done
24014 done
24015 # Provide a safe default value.
24016 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
24019 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
24020 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
24021 ac_save_IFS=$IFS; IFS=','
24022 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24023 IFS=$ac_save_IFS
24024 shift
24026 cat >>confdefs.h <<_ACEOF
24027 #define SELECT_TYPE_ARG1 $1
24028 _ACEOF
24031 cat >>confdefs.h <<_ACEOF
24032 #define SELECT_TYPE_ARG234 ($2)
24033 _ACEOF
24036 cat >>confdefs.h <<_ACEOF
24037 #define SELECT_TYPE_ARG5 ($3)
24038 _ACEOF
24040 rm -f conftest*
24042 #AC_FUNC_STAT
24053 for ac_func in bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul
24055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061 cat >conftest.$ac_ext <<_ACEOF
24062 /* confdefs.h. */
24063 _ACEOF
24064 cat confdefs.h >>conftest.$ac_ext
24065 cat >>conftest.$ac_ext <<_ACEOF
24066 /* end confdefs.h. */
24067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24069 #define $ac_func innocuous_$ac_func
24071 /* System header to define __stub macros and hopefully few prototypes,
24072 which can conflict with char $ac_func (); below.
24073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24074 <limits.h> exists even on freestanding compilers. */
24076 #ifdef __STDC__
24077 # include <limits.h>
24078 #else
24079 # include <assert.h>
24080 #endif
24082 #undef $ac_func
24084 /* Override any GCC internal prototype to avoid an error.
24085 Use char because int might match the return type of a GCC
24086 builtin and then its argument prototype would still apply. */
24087 #ifdef __cplusplus
24088 extern "C"
24089 #endif
24090 char $ac_func ();
24091 /* The GNU C library defines this for functions which it implements
24092 to always fail with ENOSYS. Some functions are actually named
24093 something starting with __ and the normal name is an alias. */
24094 #if defined __stub_$ac_func || defined __stub___$ac_func
24095 choke me
24096 #endif
24099 main ()
24101 return $ac_func ();
24103 return 0;
24105 _ACEOF
24106 rm -f conftest.$ac_objext conftest$ac_exeext
24107 if { (ac_try="$ac_link"
24108 case "(($ac_try" in
24109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24110 *) ac_try_echo=$ac_try;;
24111 esac
24112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24113 (eval "$ac_link") 2>conftest.er1
24114 ac_status=$?
24115 grep -v '^ *+' conftest.er1 >conftest.err
24116 rm -f conftest.er1
24117 cat conftest.err >&5
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); } && {
24120 test -z "$ac_cxx_werror_flag" ||
24121 test ! -s conftest.err
24122 } && test -s conftest$ac_exeext &&
24123 $as_test_x conftest$ac_exeext; then
24124 eval "$as_ac_var=yes"
24125 else
24126 echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24129 eval "$as_ac_var=no"
24132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24133 conftest$ac_exeext conftest.$ac_ext
24135 ac_res=`eval echo '${'$as_ac_var'}'`
24136 { echo "$as_me:$LINENO: result: $ac_res" >&5
24137 echo "${ECHO_T}$ac_res" >&6; }
24138 if test `eval echo '${'$as_ac_var'}'` = yes; then
24139 cat >>confdefs.h <<_ACEOF
24140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24141 _ACEOF
24144 done
24146 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24147 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24148 if test "${ac_cv_c_bigendian+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150 else
24151 # See if sys/param.h defines the BYTE_ORDER macro.
24152 cat >conftest.$ac_ext <<_ACEOF
24153 /* confdefs.h. */
24154 _ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24158 #include <sys/types.h>
24159 #include <sys/param.h>
24162 main ()
24164 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24165 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24166 bogus endian macros
24167 #endif
24170 return 0;
24172 _ACEOF
24173 rm -f conftest.$ac_objext
24174 if { (ac_try="$ac_compile"
24175 case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24178 esac
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_compile") 2>conftest.er1
24181 ac_status=$?
24182 grep -v '^ *+' conftest.er1 >conftest.err
24183 rm -f conftest.er1
24184 cat conftest.err >&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && {
24187 test -z "$ac_cxx_werror_flag" ||
24188 test ! -s conftest.err
24189 } && test -s conftest.$ac_objext; then
24190 # It does; now see whether it defined to BIG_ENDIAN or not.
24191 cat >conftest.$ac_ext <<_ACEOF
24192 /* confdefs.h. */
24193 _ACEOF
24194 cat confdefs.h >>conftest.$ac_ext
24195 cat >>conftest.$ac_ext <<_ACEOF
24196 /* end confdefs.h. */
24197 #include <sys/types.h>
24198 #include <sys/param.h>
24201 main ()
24203 #if BYTE_ORDER != BIG_ENDIAN
24204 not big endian
24205 #endif
24208 return 0;
24210 _ACEOF
24211 rm -f conftest.$ac_objext
24212 if { (ac_try="$ac_compile"
24213 case "(($ac_try" in
24214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24216 esac
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218 (eval "$ac_compile") 2>conftest.er1
24219 ac_status=$?
24220 grep -v '^ *+' conftest.er1 >conftest.err
24221 rm -f conftest.er1
24222 cat conftest.err >&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } && {
24225 test -z "$ac_cxx_werror_flag" ||
24226 test ! -s conftest.err
24227 } && test -s conftest.$ac_objext; then
24228 ac_cv_c_bigendian=yes
24229 else
24230 echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 ac_cv_c_bigendian=no
24236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24237 else
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 # It does not; compile a test program.
24242 if test "$cross_compiling" = yes; then
24243 # try to guess the endianness by grepping values into an object file
24244 ac_cv_c_bigendian=unknown
24245 cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h. */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24251 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24252 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24253 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24254 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24255 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24256 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24258 main ()
24260 _ascii (); _ebcdic ();
24262 return 0;
24264 _ACEOF
24265 rm -f conftest.$ac_objext
24266 if { (ac_try="$ac_compile"
24267 case "(($ac_try" in
24268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269 *) ac_try_echo=$ac_try;;
24270 esac
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272 (eval "$ac_compile") 2>conftest.er1
24273 ac_status=$?
24274 grep -v '^ *+' conftest.er1 >conftest.err
24275 rm -f conftest.er1
24276 cat conftest.err >&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); } && {
24279 test -z "$ac_cxx_werror_flag" ||
24280 test ! -s conftest.err
24281 } && test -s conftest.$ac_objext; then
24282 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24283 ac_cv_c_bigendian=yes
24285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24286 if test "$ac_cv_c_bigendian" = unknown; then
24287 ac_cv_c_bigendian=no
24288 else
24289 # finding both strings is unlikely to happen, but who knows?
24290 ac_cv_c_bigendian=unknown
24293 else
24294 echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24301 else
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h. */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 $ac_includes_default
24310 main ()
24313 /* Are we little or big endian? From Harbison&Steele. */
24314 union
24316 long int l;
24317 char c[sizeof (long int)];
24318 } u;
24319 u.l = 1;
24320 return u.c[sizeof (long int) - 1] == 1;
24323 return 0;
24325 _ACEOF
24326 rm -f conftest$ac_exeext
24327 if { (ac_try="$ac_link"
24328 case "(($ac_try" in
24329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24330 *) ac_try_echo=$ac_try;;
24331 esac
24332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24333 (eval "$ac_link") 2>&5
24334 ac_status=$?
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24337 { (case "(($ac_try" in
24338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24340 esac
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342 (eval "$ac_try") 2>&5
24343 ac_status=$?
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; }; then
24346 ac_cv_c_bigendian=no
24347 else
24348 echo "$as_me: program exited with status $ac_status" >&5
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 ( exit $ac_status )
24353 ac_cv_c_bigendian=yes
24355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24363 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24365 case $ac_cv_c_bigendian in
24366 yes)
24368 cat >>confdefs.h <<\_ACEOF
24369 #define WORDS_BIGENDIAN 1
24370 _ACEOF
24375 { { echo "$as_me:$LINENO: error: unknown endianness
24376 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24377 echo "$as_me: error: unknown endianness
24378 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24379 { (exit 1); exit 1; }; } ;;
24380 esac
24383 ac_config_files="$ac_config_files Makefile src/Makefile tools/Makefile examples/Makefile man/Makefile libbarry-0.pc"
24387 # nested packages
24389 # Check whether --enable-gui was given.
24390 if test "${enable_gui+set}" = set; then
24391 enableval=$enable_gui;
24394 if test "$enable_gui" = yes; then
24395 subdirs="$subdirs gui"
24398 # Check whether --enable-opensync-plugin was given.
24399 if test "${enable_opensync_plugin+set}" = set; then
24400 enableval=$enable_opensync_plugin;
24403 if test "$enable_opensync_plugin" = yes; then
24404 subdirs="$subdirs opensync-plugin"
24407 # Check whether --enable-opensync-plugin-4x was given.
24408 if test "${enable_opensync_plugin_4x+set}" = set; then
24409 enableval=$enable_opensync_plugin_4x;
24412 if test "$enable_opensync_plugin_4x" = yes; then
24413 subdirs="$subdirs opensync-plugin-0.4x"
24416 if test "$enable_gui" = yes || test "$enable_opensync_plugin" = yes || test "$enable_opensync_plugin_4x" = yes; then
24417 export TREE_BUILD_CXXFLAGS="-I`pwd`"
24418 export TREE_BUILD_LDFLAGS="-L`pwd`/src"
24419 export PKG_CONFIG_PATH="`pwd`:$PKG_CONFIG_PATH"
24422 cat >confcache <<\_ACEOF
24423 # This file is a shell script that caches the results of configure
24424 # tests run on this system so they can be shared between configure
24425 # scripts and configure runs, see configure's option --config-cache.
24426 # It is not useful on other systems. If it contains results you don't
24427 # want to keep, you may remove or edit it.
24429 # config.status only pays attention to the cache file if you give it
24430 # the --recheck option to rerun configure.
24432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24434 # following values.
24436 _ACEOF
24438 # The following way of writing the cache mishandles newlines in values,
24439 # but we know of no workaround that is simple, portable, and efficient.
24440 # So, we kill variables containing newlines.
24441 # Ultrix sh set writes to stderr and can't be redirected directly,
24442 # and sets the high bit in the cache file unless we assign to the vars.
24444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24445 eval ac_val=\$$ac_var
24446 case $ac_val in #(
24447 *${as_nl}*)
24448 case $ac_var in #(
24449 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24450 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24451 esac
24452 case $ac_var in #(
24453 _ | IFS | as_nl) ;; #(
24454 *) $as_unset $ac_var ;;
24455 esac ;;
24456 esac
24457 done
24459 (set) 2>&1 |
24460 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24461 *${as_nl}ac_space=\ *)
24462 # `set' does not quote correctly, so add quotes (double-quote
24463 # substitution turns \\\\ into \\, and sed turns \\ into \).
24464 sed -n \
24465 "s/'/'\\\\''/g;
24466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24467 ;; #(
24469 # `set' quotes correctly as required by POSIX, so do not add quotes.
24470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24472 esac |
24473 sort
24475 sed '
24476 /^ac_cv_env_/b end
24477 t clear
24478 :clear
24479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24480 t end
24481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24482 :end' >>confcache
24483 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24484 if test -w "$cache_file"; then
24485 test "x$cache_file" != "x/dev/null" &&
24486 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24487 echo "$as_me: updating cache $cache_file" >&6;}
24488 cat confcache >$cache_file
24489 else
24490 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24491 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24494 rm -f confcache
24496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24497 # Let make expand exec_prefix.
24498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24500 DEFS=-DHAVE_CONFIG_H
24502 ac_libobjs=
24503 ac_ltlibobjs=
24504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24505 # 1. Remove the extension, and $U if already installed.
24506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24507 ac_i=`echo "$ac_i" | sed "$ac_script"`
24508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24509 # will be set to the directory where LIBOBJS objects are built.
24510 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24511 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24512 done
24513 LIBOBJS=$ac_libobjs
24515 LTLIBOBJS=$ac_ltlibobjs
24518 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24519 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24520 Usually this means the macro was only invoked conditionally." >&5
24521 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24522 Usually this means the macro was only invoked conditionally." >&2;}
24523 { (exit 1); exit 1; }; }
24525 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24526 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24527 Usually this means the macro was only invoked conditionally." >&5
24528 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24529 Usually this means the macro was only invoked conditionally." >&2;}
24530 { (exit 1); exit 1; }; }
24532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24533 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24534 Usually this means the macro was only invoked conditionally." >&5
24535 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24536 Usually this means the macro was only invoked conditionally." >&2;}
24537 { (exit 1); exit 1; }; }
24539 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24540 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24541 Usually this means the macro was only invoked conditionally." >&5
24542 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24543 Usually this means the macro was only invoked conditionally." >&2;}
24544 { (exit 1); exit 1; }; }
24546 if test -z "${WITH_GCCVISIBILITY_TRUE}" && test -z "${WITH_GCCVISIBILITY_FALSE}"; then
24547 { { echo "$as_me:$LINENO: error: conditional \"WITH_GCCVISIBILITY\" was never defined.
24548 Usually this means the macro was only invoked conditionally." >&5
24549 echo "$as_me: error: conditional \"WITH_GCCVISIBILITY\" was never defined.
24550 Usually this means the macro was only invoked conditionally." >&2;}
24551 { (exit 1); exit 1; }; }
24553 if test -z "${WITH_BOOST_TRUE}" && test -z "${WITH_BOOST_FALSE}"; then
24554 { { echo "$as_me:$LINENO: error: conditional \"WITH_BOOST\" was never defined.
24555 Usually this means the macro was only invoked conditionally." >&5
24556 echo "$as_me: error: conditional \"WITH_BOOST\" was never defined.
24557 Usually this means the macro was only invoked conditionally." >&2;}
24558 { (exit 1); exit 1; }; }
24560 if test -z "${WITH_FUSE_TRUE}" && test -z "${WITH_FUSE_FALSE}"; then
24561 { { echo "$as_me:$LINENO: error: conditional \"WITH_FUSE\" was never defined.
24562 Usually this means the macro was only invoked conditionally." >&5
24563 echo "$as_me: error: conditional \"WITH_FUSE\" was never defined.
24564 Usually this means the macro was only invoked conditionally." >&2;}
24565 { (exit 1); exit 1; }; }
24568 : ${CONFIG_STATUS=./config.status}
24569 ac_clean_files_save=$ac_clean_files
24570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24571 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24572 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24573 cat >$CONFIG_STATUS <<_ACEOF
24574 #! $SHELL
24575 # Generated by $as_me.
24576 # Run this file to recreate the current configuration.
24577 # Compiler output produced by configure, useful for debugging
24578 # configure, is in config.log if it exists.
24580 debug=false
24581 ac_cs_recheck=false
24582 ac_cs_silent=false
24583 SHELL=\${CONFIG_SHELL-$SHELL}
24584 _ACEOF
24586 cat >>$CONFIG_STATUS <<\_ACEOF
24587 ## --------------------- ##
24588 ## M4sh Initialization. ##
24589 ## --------------------- ##
24591 # Be more Bourne compatible
24592 DUALCASE=1; export DUALCASE # for MKS sh
24593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24594 emulate sh
24595 NULLCMD=:
24596 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24597 # is contrary to our usage. Disable this feature.
24598 alias -g '${1+"$@"}'='"$@"'
24599 setopt NO_GLOB_SUBST
24600 else
24601 case `(set -o) 2>/dev/null` in
24602 *posix*) set -o posix ;;
24603 esac
24610 # PATH needs CR
24611 # Avoid depending upon Character Ranges.
24612 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24615 as_cr_digits='0123456789'
24616 as_cr_alnum=$as_cr_Letters$as_cr_digits
24618 # The user is always right.
24619 if test "${PATH_SEPARATOR+set}" != set; then
24620 echo "#! /bin/sh" >conf$$.sh
24621 echo "exit 0" >>conf$$.sh
24622 chmod +x conf$$.sh
24623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24624 PATH_SEPARATOR=';'
24625 else
24626 PATH_SEPARATOR=:
24628 rm -f conf$$.sh
24631 # Support unset when possible.
24632 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24633 as_unset=unset
24634 else
24635 as_unset=false
24639 # IFS
24640 # We need space, tab and new line, in precisely that order. Quoting is
24641 # there to prevent editors from complaining about space-tab.
24642 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24643 # splitting by setting IFS to empty value.)
24644 as_nl='
24646 IFS=" "" $as_nl"
24648 # Find who we are. Look in the path if we contain no directory separator.
24649 case $0 in
24650 *[\\/]* ) as_myself=$0 ;;
24651 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24652 for as_dir in $PATH
24654 IFS=$as_save_IFS
24655 test -z "$as_dir" && as_dir=.
24656 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24657 done
24658 IFS=$as_save_IFS
24661 esac
24662 # We did not find ourselves, most probably we were run as `sh COMMAND'
24663 # in which case we are not to be found in the path.
24664 if test "x$as_myself" = x; then
24665 as_myself=$0
24667 if test ! -f "$as_myself"; then
24668 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24669 { (exit 1); exit 1; }
24672 # Work around bugs in pre-3.0 UWIN ksh.
24673 for as_var in ENV MAIL MAILPATH
24674 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24675 done
24676 PS1='$ '
24677 PS2='> '
24678 PS4='+ '
24680 # NLS nuisances.
24681 for as_var in \
24682 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24683 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24684 LC_TELEPHONE LC_TIME
24686 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24687 eval $as_var=C; export $as_var
24688 else
24689 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24691 done
24693 # Required to use basename.
24694 if expr a : '\(a\)' >/dev/null 2>&1 &&
24695 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24696 as_expr=expr
24697 else
24698 as_expr=false
24701 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24702 as_basename=basename
24703 else
24704 as_basename=false
24708 # Name of the executable.
24709 as_me=`$as_basename -- "$0" ||
24710 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24711 X"$0" : 'X\(//\)$' \| \
24712 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24713 echo X/"$0" |
24714 sed '/^.*\/\([^/][^/]*\)\/*$/{
24715 s//\1/
24718 /^X\/\(\/\/\)$/{
24719 s//\1/
24722 /^X\/\(\/\).*/{
24723 s//\1/
24726 s/.*/./; q'`
24728 # CDPATH.
24729 $as_unset CDPATH
24733 as_lineno_1=$LINENO
24734 as_lineno_2=$LINENO
24735 test "x$as_lineno_1" != "x$as_lineno_2" &&
24736 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24738 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24739 # uniformly replaced by the line number. The first 'sed' inserts a
24740 # line-number line after each line using $LINENO; the second 'sed'
24741 # does the real work. The second script uses 'N' to pair each
24742 # line-number line with the line containing $LINENO, and appends
24743 # trailing '-' during substitution so that $LINENO is not a special
24744 # case at line end.
24745 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24746 # scripts with optimization help from Paolo Bonzini. Blame Lee
24747 # E. McMahon (1931-1989) for sed's syntax. :-)
24748 sed -n '
24750 /[$]LINENO/=
24751 ' <$as_myself |
24752 sed '
24753 s/[$]LINENO.*/&-/
24754 t lineno
24756 :lineno
24758 :loop
24759 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24760 t loop
24761 s/-\n.*//
24762 ' >$as_me.lineno &&
24763 chmod +x "$as_me.lineno" ||
24764 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24765 { (exit 1); exit 1; }; }
24767 # Don't try to exec as it changes $[0], causing all sort of problems
24768 # (the dirname of $[0] is not the place where we might find the
24769 # original and so on. Autoconf is especially sensitive to this).
24770 . "./$as_me.lineno"
24771 # Exit status is that of the last command.
24772 exit
24776 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24777 as_dirname=dirname
24778 else
24779 as_dirname=false
24782 ECHO_C= ECHO_N= ECHO_T=
24783 case `echo -n x` in
24784 -n*)
24785 case `echo 'x\c'` in
24786 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24787 *) ECHO_C='\c';;
24788 esac;;
24790 ECHO_N='-n';;
24791 esac
24793 if expr a : '\(a\)' >/dev/null 2>&1 &&
24794 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24795 as_expr=expr
24796 else
24797 as_expr=false
24800 rm -f conf$$ conf$$.exe conf$$.file
24801 if test -d conf$$.dir; then
24802 rm -f conf$$.dir/conf$$.file
24803 else
24804 rm -f conf$$.dir
24805 mkdir conf$$.dir
24807 echo >conf$$.file
24808 if ln -s conf$$.file conf$$ 2>/dev/null; then
24809 as_ln_s='ln -s'
24810 # ... but there are two gotchas:
24811 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24812 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24813 # In both cases, we have to default to `cp -p'.
24814 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24815 as_ln_s='cp -p'
24816 elif ln conf$$.file conf$$ 2>/dev/null; then
24817 as_ln_s=ln
24818 else
24819 as_ln_s='cp -p'
24821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24822 rmdir conf$$.dir 2>/dev/null
24824 if mkdir -p . 2>/dev/null; then
24825 as_mkdir_p=:
24826 else
24827 test -d ./-p && rmdir ./-p
24828 as_mkdir_p=false
24831 if test -x / >/dev/null 2>&1; then
24832 as_test_x='test -x'
24833 else
24834 if ls -dL / >/dev/null 2>&1; then
24835 as_ls_L_option=L
24836 else
24837 as_ls_L_option=
24839 as_test_x='
24840 eval sh -c '\''
24841 if test -d "$1"; then
24842 test -d "$1/.";
24843 else
24844 case $1 in
24845 -*)set "./$1";;
24846 esac;
24847 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24848 ???[sx]*):;;*)false;;esac;fi
24849 '\'' sh
24852 as_executable_p=$as_test_x
24854 # Sed expression to map a string onto a valid CPP name.
24855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24857 # Sed expression to map a string onto a valid variable name.
24858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24861 exec 6>&1
24863 # Save the log message, to keep $[0] and so on meaningful, and to
24864 # report actual input values of CONFIG_FILES etc. instead of their
24865 # values after options handling.
24866 ac_log="
24867 This file was extended by barry $as_me 0.15, which was
24868 generated by GNU Autoconf 2.61. Invocation command line was
24870 CONFIG_FILES = $CONFIG_FILES
24871 CONFIG_HEADERS = $CONFIG_HEADERS
24872 CONFIG_LINKS = $CONFIG_LINKS
24873 CONFIG_COMMANDS = $CONFIG_COMMANDS
24874 $ $0 $@
24876 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24879 _ACEOF
24881 cat >>$CONFIG_STATUS <<_ACEOF
24882 # Files that config.status was made for.
24883 config_files="$ac_config_files"
24884 config_headers="$ac_config_headers"
24885 config_commands="$ac_config_commands"
24887 _ACEOF
24889 cat >>$CONFIG_STATUS <<\_ACEOF
24890 ac_cs_usage="\
24891 \`$as_me' instantiates files from templates according to the
24892 current configuration.
24894 Usage: $0 [OPTIONS] [FILE]...
24896 -h, --help print this help, then exit
24897 -V, --version print version number and configuration settings, then exit
24898 -q, --quiet do not print progress messages
24899 -d, --debug don't remove temporary files
24900 --recheck update $as_me by reconfiguring in the same conditions
24901 --file=FILE[:TEMPLATE]
24902 instantiate the configuration file FILE
24903 --header=FILE[:TEMPLATE]
24904 instantiate the configuration header FILE
24906 Configuration files:
24907 $config_files
24909 Configuration headers:
24910 $config_headers
24912 Configuration commands:
24913 $config_commands
24915 Report bugs to <bug-autoconf@gnu.org>."
24917 _ACEOF
24918 cat >>$CONFIG_STATUS <<_ACEOF
24919 ac_cs_version="\\
24920 barry config.status 0.15
24921 configured by $0, generated by GNU Autoconf 2.61,
24922 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24924 Copyright (C) 2006 Free Software Foundation, Inc.
24925 This config.status script is free software; the Free Software Foundation
24926 gives unlimited permission to copy, distribute and modify it."
24928 ac_pwd='$ac_pwd'
24929 srcdir='$srcdir'
24930 INSTALL='$INSTALL'
24931 _ACEOF
24933 cat >>$CONFIG_STATUS <<\_ACEOF
24934 # If no file are specified by the user, then we need to provide default
24935 # value. By we need to know if files were specified by the user.
24936 ac_need_defaults=:
24937 while test $# != 0
24939 case $1 in
24940 --*=*)
24941 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24942 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24943 ac_shift=:
24946 ac_option=$1
24947 ac_optarg=$2
24948 ac_shift=shift
24950 esac
24952 case $ac_option in
24953 # Handling of the options.
24954 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24955 ac_cs_recheck=: ;;
24956 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24957 echo "$ac_cs_version"; exit ;;
24958 --debug | --debu | --deb | --de | --d | -d )
24959 debug=: ;;
24960 --file | --fil | --fi | --f )
24961 $ac_shift
24962 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24963 ac_need_defaults=false;;
24964 --header | --heade | --head | --hea )
24965 $ac_shift
24966 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24967 ac_need_defaults=false;;
24968 --he | --h)
24969 # Conflict between --help and --header
24970 { echo "$as_me: error: ambiguous option: $1
24971 Try \`$0 --help' for more information." >&2
24972 { (exit 1); exit 1; }; };;
24973 --help | --hel | -h )
24974 echo "$ac_cs_usage"; exit ;;
24975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24977 ac_cs_silent=: ;;
24979 # This is an error.
24980 -*) { echo "$as_me: error: unrecognized option: $1
24981 Try \`$0 --help' for more information." >&2
24982 { (exit 1); exit 1; }; } ;;
24984 *) ac_config_targets="$ac_config_targets $1"
24985 ac_need_defaults=false ;;
24987 esac
24988 shift
24989 done
24991 ac_configure_extra_args=
24993 if $ac_cs_silent; then
24994 exec 6>/dev/null
24995 ac_configure_extra_args="$ac_configure_extra_args --silent"
24998 _ACEOF
24999 cat >>$CONFIG_STATUS <<_ACEOF
25000 if \$ac_cs_recheck; then
25001 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25002 CONFIG_SHELL=$SHELL
25003 export CONFIG_SHELL
25004 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25007 _ACEOF
25008 cat >>$CONFIG_STATUS <<\_ACEOF
25009 exec 5>>config.log
25011 echo
25012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25013 ## Running $as_me. ##
25014 _ASBOX
25015 echo "$ac_log"
25016 } >&5
25018 _ACEOF
25019 cat >>$CONFIG_STATUS <<_ACEOF
25021 # INIT-COMMANDS
25023 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25025 _ACEOF
25027 cat >>$CONFIG_STATUS <<\_ACEOF
25029 # Handling of arguments.
25030 for ac_config_target in $ac_config_targets
25032 case $ac_config_target in
25033 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
25034 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25035 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25036 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25037 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25038 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25039 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25040 "libbarry-0.pc") CONFIG_FILES="$CONFIG_FILES libbarry-0.pc" ;;
25042 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25043 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25044 { (exit 1); exit 1; }; };;
25045 esac
25046 done
25049 # If the user did not use the arguments to specify the items to instantiate,
25050 # then the envvar interface is used. Set only those that are not.
25051 # We use the long form for the default assignment because of an extremely
25052 # bizarre bug on SunOS 4.1.3.
25053 if $ac_need_defaults; then
25054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25055 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25059 # Have a temporary directory for convenience. Make it in the build tree
25060 # simply because there is no reason against having it here, and in addition,
25061 # creating and moving files from /tmp can sometimes cause problems.
25062 # Hook for its removal unless debugging.
25063 # Note that there is a small window in which the directory will not be cleaned:
25064 # after its creation but before its name has been assigned to `$tmp'.
25065 $debug ||
25067 tmp=
25068 trap 'exit_status=$?
25069 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25071 trap '{ (exit 1); exit 1; }' 1 2 13 15
25073 # Create a (secure) tmp directory for tmp files.
25076 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25077 test -n "$tmp" && test -d "$tmp"
25078 } ||
25080 tmp=./conf$$-$RANDOM
25081 (umask 077 && mkdir "$tmp")
25082 } ||
25084 echo "$me: cannot create a temporary directory in ." >&2
25085 { (exit 1); exit 1; }
25089 # Set up the sed scripts for CONFIG_FILES section.
25092 # No need to generate the scripts if there are no CONFIG_FILES.
25093 # This happens for instance when ./config.status config.h
25094 if test -n "$CONFIG_FILES"; then
25096 _ACEOF
25100 ac_delim='%!_!# '
25101 for ac_last_try in false false false false false :; do
25102 cat >conf$$subs.sed <<_ACEOF
25103 SHELL!$SHELL$ac_delim
25104 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25105 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25106 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25107 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25108 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25109 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25110 exec_prefix!$exec_prefix$ac_delim
25111 prefix!$prefix$ac_delim
25112 program_transform_name!$program_transform_name$ac_delim
25113 bindir!$bindir$ac_delim
25114 sbindir!$sbindir$ac_delim
25115 libexecdir!$libexecdir$ac_delim
25116 datarootdir!$datarootdir$ac_delim
25117 datadir!$datadir$ac_delim
25118 sysconfdir!$sysconfdir$ac_delim
25119 sharedstatedir!$sharedstatedir$ac_delim
25120 localstatedir!$localstatedir$ac_delim
25121 includedir!$includedir$ac_delim
25122 oldincludedir!$oldincludedir$ac_delim
25123 docdir!$docdir$ac_delim
25124 infodir!$infodir$ac_delim
25125 htmldir!$htmldir$ac_delim
25126 dvidir!$dvidir$ac_delim
25127 pdfdir!$pdfdir$ac_delim
25128 psdir!$psdir$ac_delim
25129 libdir!$libdir$ac_delim
25130 localedir!$localedir$ac_delim
25131 mandir!$mandir$ac_delim
25132 DEFS!$DEFS$ac_delim
25133 ECHO_C!$ECHO_C$ac_delim
25134 ECHO_N!$ECHO_N$ac_delim
25135 ECHO_T!$ECHO_T$ac_delim
25136 LIBS!$LIBS$ac_delim
25137 build_alias!$build_alias$ac_delim
25138 host_alias!$host_alias$ac_delim
25139 target_alias!$target_alias$ac_delim
25140 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25141 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25142 INSTALL_DATA!$INSTALL_DATA$ac_delim
25143 CYGPATH_W!$CYGPATH_W$ac_delim
25144 PACKAGE!$PACKAGE$ac_delim
25145 VERSION!$VERSION$ac_delim
25146 ACLOCAL!$ACLOCAL$ac_delim
25147 AUTOCONF!$AUTOCONF$ac_delim
25148 AUTOMAKE!$AUTOMAKE$ac_delim
25149 AUTOHEADER!$AUTOHEADER$ac_delim
25150 MAKEINFO!$MAKEINFO$ac_delim
25151 install_sh!$install_sh$ac_delim
25152 STRIP!$STRIP$ac_delim
25153 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25154 mkdir_p!$mkdir_p$ac_delim
25155 AWK!$AWK$ac_delim
25156 SET_MAKE!$SET_MAKE$ac_delim
25157 am__leading_dot!$am__leading_dot$ac_delim
25158 AMTAR!$AMTAR$ac_delim
25159 am__tar!$am__tar$ac_delim
25160 am__untar!$am__untar$ac_delim
25161 CC!$CC$ac_delim
25162 CFLAGS!$CFLAGS$ac_delim
25163 LDFLAGS!$LDFLAGS$ac_delim
25164 CPPFLAGS!$CPPFLAGS$ac_delim
25165 ac_ct_CC!$ac_ct_CC$ac_delim
25166 EXEEXT!$EXEEXT$ac_delim
25167 OBJEXT!$OBJEXT$ac_delim
25168 DEPDIR!$DEPDIR$ac_delim
25169 am__include!$am__include$ac_delim
25170 am__quote!$am__quote$ac_delim
25171 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25172 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25173 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25174 CCDEPMODE!$CCDEPMODE$ac_delim
25175 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25176 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25177 CPP!$CPP$ac_delim
25178 GREP!$GREP$ac_delim
25179 EGREP!$EGREP$ac_delim
25180 CXX!$CXX$ac_delim
25181 CXXFLAGS!$CXXFLAGS$ac_delim
25182 ac_ct_CXX!$ac_ct_CXX$ac_delim
25183 CXXDEPMODE!$CXXDEPMODE$ac_delim
25184 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25185 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25186 build!$build$ac_delim
25187 build_cpu!$build_cpu$ac_delim
25188 build_vendor!$build_vendor$ac_delim
25189 build_os!$build_os$ac_delim
25190 host!$host$ac_delim
25191 host_cpu!$host_cpu$ac_delim
25192 host_vendor!$host_vendor$ac_delim
25193 host_os!$host_os$ac_delim
25194 SED!$SED$ac_delim
25195 LN_S!$LN_S$ac_delim
25196 ECHO!$ECHO$ac_delim
25197 AR!$AR$ac_delim
25198 RANLIB!$RANLIB$ac_delim
25199 DSYMUTIL!$DSYMUTIL$ac_delim
25200 _ACEOF
25202 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25203 break
25204 elif $ac_last_try; then
25205 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25206 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25207 { (exit 1); exit 1; }; }
25208 else
25209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25211 done
25213 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25214 if test -n "$ac_eof"; then
25215 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25216 ac_eof=`expr $ac_eof + 1`
25219 cat >>$CONFIG_STATUS <<_ACEOF
25220 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25222 _ACEOF
25223 sed '
25224 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25225 s/^/s,@/; s/!/@,|#_!!_#|/
25228 s/'"$ac_delim"'$/,g/; t
25229 s/$/\\/; p
25230 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25231 ' >>$CONFIG_STATUS <conf$$subs.sed
25232 rm -f conf$$subs.sed
25233 cat >>$CONFIG_STATUS <<_ACEOF
25234 CEOF$ac_eof
25235 _ACEOF
25238 ac_delim='%!_!# '
25239 for ac_last_try in false false false false false :; do
25240 cat >conf$$subs.sed <<_ACEOF
25241 NMEDIT!$NMEDIT$ac_delim
25242 CXXCPP!$CXXCPP$ac_delim
25243 F77!$F77$ac_delim
25244 FFLAGS!$FFLAGS$ac_delim
25245 ac_ct_F77!$ac_ct_F77$ac_delim
25246 LIBTOOL!$LIBTOOL$ac_delim
25247 WITH_GCCVISIBILITY_TRUE!$WITH_GCCVISIBILITY_TRUE$ac_delim
25248 WITH_GCCVISIBILITY_FALSE!$WITH_GCCVISIBILITY_FALSE$ac_delim
25249 PKG_CONFIG!$PKG_CONFIG$ac_delim
25250 LIBUSB_CFLAGS!$LIBUSB_CFLAGS$ac_delim
25251 LIBUSB_LIBS!$LIBUSB_LIBS$ac_delim
25252 BOOST_LIB_PATH!$BOOST_LIB_PATH$ac_delim
25253 BOOST_INC_PATH!$BOOST_INC_PATH$ac_delim
25254 BOOST_LDADD!$BOOST_LDADD$ac_delim
25255 WITH_BOOST_TRUE!$WITH_BOOST_TRUE$ac_delim
25256 WITH_BOOST_FALSE!$WITH_BOOST_FALSE$ac_delim
25257 FUSE_CFLAGS!$FUSE_CFLAGS$ac_delim
25258 FUSE_LIBS!$FUSE_LIBS$ac_delim
25259 pkgconfigdir!$pkgconfigdir$ac_delim
25260 WITH_FUSE_TRUE!$WITH_FUSE_TRUE$ac_delim
25261 WITH_FUSE_FALSE!$WITH_FUSE_FALSE$ac_delim
25262 ZLIB_LIBS!$ZLIB_LIBS$ac_delim
25263 LIBICONV!$LIBICONV$ac_delim
25264 LTLIBICONV!$LTLIBICONV$ac_delim
25265 LIBOBJS!$LIBOBJS$ac_delim
25266 subdirs!$subdirs$ac_delim
25267 LTLIBOBJS!$LTLIBOBJS$ac_delim
25268 _ACEOF
25270 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
25271 break
25272 elif $ac_last_try; then
25273 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25274 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25275 { (exit 1); exit 1; }; }
25276 else
25277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25279 done
25281 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25282 if test -n "$ac_eof"; then
25283 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25284 ac_eof=`expr $ac_eof + 1`
25287 cat >>$CONFIG_STATUS <<_ACEOF
25288 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25290 _ACEOF
25291 sed '
25292 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25293 s/^/s,@/; s/!/@,|#_!!_#|/
25296 s/'"$ac_delim"'$/,g/; t
25297 s/$/\\/; p
25298 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25299 ' >>$CONFIG_STATUS <conf$$subs.sed
25300 rm -f conf$$subs.sed
25301 cat >>$CONFIG_STATUS <<_ACEOF
25302 :end
25303 s/|#_!!_#|//g
25304 CEOF$ac_eof
25305 _ACEOF
25308 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25309 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25310 # trailing colons and then remove the whole line if VPATH becomes empty
25311 # (actually we leave an empty line to preserve line numbers).
25312 if test "x$srcdir" = x.; then
25313 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25314 s/:*\$(srcdir):*/:/
25315 s/:*\${srcdir}:*/:/
25316 s/:*@srcdir@:*/:/
25317 s/^\([^=]*=[ ]*\):*/\1/
25318 s/:*$//
25319 s/^[^=]*=[ ]*$//
25323 cat >>$CONFIG_STATUS <<\_ACEOF
25324 fi # test -n "$CONFIG_FILES"
25327 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25329 case $ac_tag in
25330 :[FHLC]) ac_mode=$ac_tag; continue;;
25331 esac
25332 case $ac_mode$ac_tag in
25333 :[FHL]*:*);;
25334 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25335 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25336 { (exit 1); exit 1; }; };;
25337 :[FH]-) ac_tag=-:-;;
25338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25339 esac
25340 ac_save_IFS=$IFS
25341 IFS=:
25342 set x $ac_tag
25343 IFS=$ac_save_IFS
25344 shift
25345 ac_file=$1
25346 shift
25348 case $ac_mode in
25349 :L) ac_source=$1;;
25350 :[FH])
25351 ac_file_inputs=
25352 for ac_f
25354 case $ac_f in
25355 -) ac_f="$tmp/stdin";;
25356 *) # Look for the file first in the build tree, then in the source tree
25357 # (if the path is not absolute). The absolute path cannot be DOS-style,
25358 # because $ac_f cannot contain `:'.
25359 test -f "$ac_f" ||
25360 case $ac_f in
25361 [\\/$]*) false;;
25362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25363 esac ||
25364 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25365 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25366 { (exit 1); exit 1; }; };;
25367 esac
25368 ac_file_inputs="$ac_file_inputs $ac_f"
25369 done
25371 # Let's still pretend it is `configure' which instantiates (i.e., don't
25372 # use $as_me), people would be surprised to read:
25373 # /* config.h. Generated by config.status. */
25374 configure_input="Generated from "`IFS=:
25375 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25376 if test x"$ac_file" != x-; then
25377 configure_input="$ac_file. $configure_input"
25378 { echo "$as_me:$LINENO: creating $ac_file" >&5
25379 echo "$as_me: creating $ac_file" >&6;}
25382 case $ac_tag in
25383 *:-:* | *:-) cat >"$tmp/stdin";;
25384 esac
25386 esac
25388 ac_dir=`$as_dirname -- "$ac_file" ||
25389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25390 X"$ac_file" : 'X\(//\)[^/]' \| \
25391 X"$ac_file" : 'X\(//\)$' \| \
25392 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25393 echo X"$ac_file" |
25394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25395 s//\1/
25398 /^X\(\/\/\)[^/].*/{
25399 s//\1/
25402 /^X\(\/\/\)$/{
25403 s//\1/
25406 /^X\(\/\).*/{
25407 s//\1/
25410 s/.*/./; q'`
25411 { as_dir="$ac_dir"
25412 case $as_dir in #(
25413 -*) as_dir=./$as_dir;;
25414 esac
25415 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25416 as_dirs=
25417 while :; do
25418 case $as_dir in #(
25419 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25420 *) as_qdir=$as_dir;;
25421 esac
25422 as_dirs="'$as_qdir' $as_dirs"
25423 as_dir=`$as_dirname -- "$as_dir" ||
25424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25425 X"$as_dir" : 'X\(//\)[^/]' \| \
25426 X"$as_dir" : 'X\(//\)$' \| \
25427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25428 echo X"$as_dir" |
25429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25430 s//\1/
25433 /^X\(\/\/\)[^/].*/{
25434 s//\1/
25437 /^X\(\/\/\)$/{
25438 s//\1/
25441 /^X\(\/\).*/{
25442 s//\1/
25445 s/.*/./; q'`
25446 test -d "$as_dir" && break
25447 done
25448 test -z "$as_dirs" || eval "mkdir $as_dirs"
25449 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25450 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25451 { (exit 1); exit 1; }; }; }
25452 ac_builddir=.
25454 case "$ac_dir" in
25455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25457 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25458 # A ".." for each directory in $ac_dir_suffix.
25459 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25460 case $ac_top_builddir_sub in
25461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25463 esac ;;
25464 esac
25465 ac_abs_top_builddir=$ac_pwd
25466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25467 # for backward compatibility:
25468 ac_top_builddir=$ac_top_build_prefix
25470 case $srcdir in
25471 .) # We are building in place.
25472 ac_srcdir=.
25473 ac_top_srcdir=$ac_top_builddir_sub
25474 ac_abs_top_srcdir=$ac_pwd ;;
25475 [\\/]* | ?:[\\/]* ) # Absolute name.
25476 ac_srcdir=$srcdir$ac_dir_suffix;
25477 ac_top_srcdir=$srcdir
25478 ac_abs_top_srcdir=$srcdir ;;
25479 *) # Relative name.
25480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25481 ac_top_srcdir=$ac_top_build_prefix$srcdir
25482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25483 esac
25484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25487 case $ac_mode in
25490 # CONFIG_FILE
25493 case $INSTALL in
25494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25495 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25496 esac
25497 _ACEOF
25499 cat >>$CONFIG_STATUS <<\_ACEOF
25500 # If the template does not know about datarootdir, expand it.
25501 # FIXME: This hack should be removed a few years after 2.60.
25502 ac_datarootdir_hack=; ac_datarootdir_seen=
25504 case `sed -n '/datarootdir/ {
25508 /@datadir@/p
25509 /@docdir@/p
25510 /@infodir@/p
25511 /@localedir@/p
25512 /@mandir@/p
25513 ' $ac_file_inputs` in
25514 *datarootdir*) ac_datarootdir_seen=yes;;
25515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25516 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25517 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25518 _ACEOF
25519 cat >>$CONFIG_STATUS <<_ACEOF
25520 ac_datarootdir_hack='
25521 s&@datadir@&$datadir&g
25522 s&@docdir@&$docdir&g
25523 s&@infodir@&$infodir&g
25524 s&@localedir@&$localedir&g
25525 s&@mandir@&$mandir&g
25526 s&\\\${datarootdir}&$datarootdir&g' ;;
25527 esac
25528 _ACEOF
25530 # Neutralize VPATH when `$srcdir' = `.'.
25531 # Shell code in configure.ac might set extrasub.
25532 # FIXME: do we really want to maintain this feature?
25533 cat >>$CONFIG_STATUS <<_ACEOF
25534 sed "$ac_vpsub
25535 $extrasub
25536 _ACEOF
25537 cat >>$CONFIG_STATUS <<\_ACEOF
25539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25540 s&@configure_input@&$configure_input&;t t
25541 s&@top_builddir@&$ac_top_builddir_sub&;t t
25542 s&@srcdir@&$ac_srcdir&;t t
25543 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25544 s&@top_srcdir@&$ac_top_srcdir&;t t
25545 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25546 s&@builddir@&$ac_builddir&;t t
25547 s&@abs_builddir@&$ac_abs_builddir&;t t
25548 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25549 s&@INSTALL@&$ac_INSTALL&;t t
25550 $ac_datarootdir_hack
25551 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25553 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25554 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25555 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25556 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25557 which seems to be undefined. Please make sure it is defined." >&5
25558 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25559 which seems to be undefined. Please make sure it is defined." >&2;}
25561 rm -f "$tmp/stdin"
25562 case $ac_file in
25563 -) cat "$tmp/out"; rm -f "$tmp/out";;
25564 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25565 esac
25569 # CONFIG_HEADER
25571 _ACEOF
25573 # Transform confdefs.h into a sed script `conftest.defines', that
25574 # substitutes the proper values into config.h.in to produce config.h.
25575 rm -f conftest.defines conftest.tail
25576 # First, append a space to every undef/define line, to ease matching.
25577 echo 's/$/ /' >conftest.defines
25578 # Then, protect against being on the right side of a sed subst, or in
25579 # an unquoted here document, in config.status. If some macros were
25580 # called several times there might be several #defines for the same
25581 # symbol, which is useless. But do not sort them, since the last
25582 # AC_DEFINE must be honored.
25583 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25584 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25585 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25586 # PARAMS is the parameter list in the macro definition--in most cases, it's
25587 # just an empty string.
25588 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25589 ac_dB='\\)[ (].*,\\1define\\2'
25590 ac_dC=' '
25591 ac_dD=' ,'
25593 uniq confdefs.h |
25594 sed -n '
25595 t rset
25596 :rset
25597 s/^[ ]*#[ ]*define[ ][ ]*//
25598 t ok
25601 s/[\\&,]/\\&/g
25602 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25603 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25604 ' >>conftest.defines
25606 # Remove the space that was appended to ease matching.
25607 # Then replace #undef with comments. This is necessary, for
25608 # example, in the case of _POSIX_SOURCE, which is predefined and required
25609 # on some systems where configure will not decide to define it.
25610 # (The regexp can be short, since the line contains either #define or #undef.)
25611 echo 's/ $//
25612 s,^[ #]*u.*,/* & */,' >>conftest.defines
25614 # Break up conftest.defines:
25615 ac_max_sed_lines=50
25617 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25618 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25619 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25620 # et cetera.
25621 ac_in='$ac_file_inputs'
25622 ac_out='"$tmp/out1"'
25623 ac_nxt='"$tmp/out2"'
25625 while :
25627 # Write a here document:
25628 cat >>$CONFIG_STATUS <<_ACEOF
25629 # First, check the format of the line:
25630 cat >"\$tmp/defines.sed" <<\\CEOF
25631 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25632 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25634 :def
25635 _ACEOF
25636 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25637 echo 'CEOF
25638 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25639 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25640 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25641 grep . conftest.tail >/dev/null || break
25642 rm -f conftest.defines
25643 mv conftest.tail conftest.defines
25644 done
25645 rm -f conftest.defines conftest.tail
25647 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25648 cat >>$CONFIG_STATUS <<\_ACEOF
25649 if test x"$ac_file" != x-; then
25650 echo "/* $configure_input */" >"$tmp/config.h"
25651 cat "$ac_result" >>"$tmp/config.h"
25652 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25653 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25654 echo "$as_me: $ac_file is unchanged" >&6;}
25655 else
25656 rm -f $ac_file
25657 mv "$tmp/config.h" $ac_file
25659 else
25660 echo "/* $configure_input */"
25661 cat "$ac_result"
25663 rm -f "$tmp/out12"
25664 # Compute $ac_file's index in $config_headers.
25665 _am_stamp_count=1
25666 for _am_header in $config_headers :; do
25667 case $_am_header in
25668 $ac_file | $ac_file:* )
25669 break ;;
25671 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25672 esac
25673 done
25674 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25675 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25676 X$ac_file : 'X\(//\)[^/]' \| \
25677 X$ac_file : 'X\(//\)$' \| \
25678 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25679 echo X$ac_file |
25680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25681 s//\1/
25684 /^X\(\/\/\)[^/].*/{
25685 s//\1/
25688 /^X\(\/\/\)$/{
25689 s//\1/
25692 /^X\(\/\).*/{
25693 s//\1/
25696 s/.*/./; q'`/stamp-h$_am_stamp_count
25699 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25700 echo "$as_me: executing $ac_file commands" >&6;}
25702 esac
25705 case $ac_file$ac_mode in
25706 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25707 # Strip MF so we end up with the name of the file.
25708 mf=`echo "$mf" | sed -e 's/:.*$//'`
25709 # Check whether this is an Automake generated Makefile or not.
25710 # We used to match only the files named `Makefile.in', but
25711 # some people rename them; so instead we look at the file content.
25712 # Grep'ing the first line is not enough: some people post-process
25713 # each Makefile.in and add a new line on top of each file to say so.
25714 # So let's grep whole file.
25715 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25716 dirpart=`$as_dirname -- "$mf" ||
25717 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25718 X"$mf" : 'X\(//\)[^/]' \| \
25719 X"$mf" : 'X\(//\)$' \| \
25720 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25721 echo X"$mf" |
25722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25723 s//\1/
25726 /^X\(\/\/\)[^/].*/{
25727 s//\1/
25730 /^X\(\/\/\)$/{
25731 s//\1/
25734 /^X\(\/\).*/{
25735 s//\1/
25738 s/.*/./; q'`
25739 else
25740 continue
25742 # Extract the definition of DEPDIR, am__include, and am__quote
25743 # from the Makefile without running `make'.
25744 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25745 test -z "$DEPDIR" && continue
25746 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25747 test -z "am__include" && continue
25748 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25749 # When using ansi2knr, U may be empty or an underscore; expand it
25750 U=`sed -n 's/^U = //p' < "$mf"`
25751 # Find all dependency output files, they are included files with
25752 # $(DEPDIR) in their names. We invoke sed twice because it is the
25753 # simplest approach to changing $(DEPDIR) to its actual value in the
25754 # expansion.
25755 for file in `sed -n "
25756 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25757 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25758 # Make sure the directory exists.
25759 test -f "$dirpart/$file" && continue
25760 fdir=`$as_dirname -- "$file" ||
25761 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25762 X"$file" : 'X\(//\)[^/]' \| \
25763 X"$file" : 'X\(//\)$' \| \
25764 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25765 echo X"$file" |
25766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25767 s//\1/
25770 /^X\(\/\/\)[^/].*/{
25771 s//\1/
25774 /^X\(\/\/\)$/{
25775 s//\1/
25778 /^X\(\/\).*/{
25779 s//\1/
25782 s/.*/./; q'`
25783 { as_dir=$dirpart/$fdir
25784 case $as_dir in #(
25785 -*) as_dir=./$as_dir;;
25786 esac
25787 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25788 as_dirs=
25789 while :; do
25790 case $as_dir in #(
25791 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25792 *) as_qdir=$as_dir;;
25793 esac
25794 as_dirs="'$as_qdir' $as_dirs"
25795 as_dir=`$as_dirname -- "$as_dir" ||
25796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25797 X"$as_dir" : 'X\(//\)[^/]' \| \
25798 X"$as_dir" : 'X\(//\)$' \| \
25799 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25800 echo X"$as_dir" |
25801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25802 s//\1/
25805 /^X\(\/\/\)[^/].*/{
25806 s//\1/
25809 /^X\(\/\/\)$/{
25810 s//\1/
25813 /^X\(\/\).*/{
25814 s//\1/
25817 s/.*/./; q'`
25818 test -d "$as_dir" && break
25819 done
25820 test -z "$as_dirs" || eval "mkdir $as_dirs"
25821 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25822 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25823 { (exit 1); exit 1; }; }; }
25824 # echo "creating $dirpart/$file"
25825 echo '# dummy' > "$dirpart/$file"
25826 done
25827 done
25830 esac
25831 done # for ac_tag
25834 { (exit 0); exit 0; }
25835 _ACEOF
25836 chmod +x $CONFIG_STATUS
25837 ac_clean_files=$ac_clean_files_save
25840 # configure is writing to config.log, and then calls config.status.
25841 # config.status does its own redirection, appending to config.log.
25842 # Unfortunately, on DOS this fails, as config.log is still kept open
25843 # by configure, so config.status won't be able to write to it; its
25844 # output is simply discarded. So we exec the FD to /dev/null,
25845 # effectively closing config.log, so it can be properly (re)opened and
25846 # appended to by config.status. When coming back to configure, we
25847 # need to make the FD available again.
25848 if test "$no_create" != yes; then
25849 ac_cs_success=:
25850 ac_config_status_args=
25851 test "$silent" = yes &&
25852 ac_config_status_args="$ac_config_status_args --quiet"
25853 exec 5>/dev/null
25854 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25855 exec 5>>config.log
25856 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25857 # would make configure fail if this is the last instruction.
25858 $ac_cs_success || { (exit 1); exit 1; }
25862 # CONFIG_SUBDIRS section.
25864 if test "$no_recursion" != yes; then
25866 # Remove --cache-file and --srcdir arguments so they do not pile up.
25867 ac_sub_configure_args=
25868 ac_prev=
25869 eval "set x $ac_configure_args"
25870 shift
25871 for ac_arg
25873 if test -n "$ac_prev"; then
25874 ac_prev=
25875 continue
25877 case $ac_arg in
25878 -cache-file | --cache-file | --cache-fil | --cache-fi \
25879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25880 ac_prev=cache_file ;;
25881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25883 | --c=*)
25885 --config-cache | -C)
25887 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25888 ac_prev=srcdir ;;
25889 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25891 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25892 ac_prev=prefix ;;
25893 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25896 case $ac_arg in
25897 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25898 esac
25899 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25900 esac
25901 done
25903 # Always prepend --prefix to ensure using the same prefix
25904 # in subdir configurations.
25905 ac_arg="--prefix=$prefix"
25906 case $ac_arg in
25907 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25908 esac
25909 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25911 # Pass --silent
25912 if test "$silent" = yes; then
25913 ac_sub_configure_args="--silent $ac_sub_configure_args"
25916 ac_popdir=`pwd`
25917 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25919 # Do not complain, so a configure script can configure whichever
25920 # parts of a large source tree are present.
25921 test -d "$srcdir/$ac_dir" || continue
25923 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25924 echo "$as_me:$LINENO: $ac_msg" >&5
25925 echo "$ac_msg" >&6
25926 { as_dir="$ac_dir"
25927 case $as_dir in #(
25928 -*) as_dir=./$as_dir;;
25929 esac
25930 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25931 as_dirs=
25932 while :; do
25933 case $as_dir in #(
25934 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25935 *) as_qdir=$as_dir;;
25936 esac
25937 as_dirs="'$as_qdir' $as_dirs"
25938 as_dir=`$as_dirname -- "$as_dir" ||
25939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25940 X"$as_dir" : 'X\(//\)[^/]' \| \
25941 X"$as_dir" : 'X\(//\)$' \| \
25942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25943 echo X"$as_dir" |
25944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25945 s//\1/
25948 /^X\(\/\/\)[^/].*/{
25949 s//\1/
25952 /^X\(\/\/\)$/{
25953 s//\1/
25956 /^X\(\/\).*/{
25957 s//\1/
25960 s/.*/./; q'`
25961 test -d "$as_dir" && break
25962 done
25963 test -z "$as_dirs" || eval "mkdir $as_dirs"
25964 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25965 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25966 { (exit 1); exit 1; }; }; }
25967 ac_builddir=.
25969 case "$ac_dir" in
25970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25973 # A ".." for each directory in $ac_dir_suffix.
25974 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25975 case $ac_top_builddir_sub in
25976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25978 esac ;;
25979 esac
25980 ac_abs_top_builddir=$ac_pwd
25981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25982 # for backward compatibility:
25983 ac_top_builddir=$ac_top_build_prefix
25985 case $srcdir in
25986 .) # We are building in place.
25987 ac_srcdir=.
25988 ac_top_srcdir=$ac_top_builddir_sub
25989 ac_abs_top_srcdir=$ac_pwd ;;
25990 [\\/]* | ?:[\\/]* ) # Absolute name.
25991 ac_srcdir=$srcdir$ac_dir_suffix;
25992 ac_top_srcdir=$srcdir
25993 ac_abs_top_srcdir=$srcdir ;;
25994 *) # Relative name.
25995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25996 ac_top_srcdir=$ac_top_build_prefix$srcdir
25997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25998 esac
25999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26002 cd "$ac_dir"
26004 # Check for guested configure; otherwise get Cygnus style configure.
26005 if test -f "$ac_srcdir/configure.gnu"; then
26006 ac_sub_configure=$ac_srcdir/configure.gnu
26007 elif test -f "$ac_srcdir/configure"; then
26008 ac_sub_configure=$ac_srcdir/configure
26009 elif test -f "$ac_srcdir/configure.in"; then
26010 # This should be Cygnus configure.
26011 ac_sub_configure=$ac_aux_dir/configure
26012 else
26013 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26014 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26015 ac_sub_configure=
26018 # The recursion is here.
26019 if test -n "$ac_sub_configure"; then
26020 # Make the cache file name correct relative to the subdirectory.
26021 case $cache_file in
26022 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26023 *) # Relative name.
26024 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26025 esac
26027 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26028 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26029 # The eval makes quoting arguments work.
26030 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26031 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26032 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26033 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26034 { (exit 1); exit 1; }; }
26037 cd "$ac_popdir"
26038 done