ntfs-3g version 2010.3.6
[tomato.git] / release / src / router / ntfs-3g / configure
blob51328b5d30b9c1aa35739fa7e5c1e6befb3fd7b8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for ntfs-3g 2010.3.6.
5 # Report bugs to <ntfs-3g-devel@lists.sf.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='ntfs-3g'
730 PACKAGE_TARNAME='ntfs-3g'
731 PACKAGE_VERSION='2010.3.6'
732 PACKAGE_STRING='ntfs-3g 2010.3.6'
733 PACKAGE_BUGREPORT='ntfs-3g-devel@lists.sf.net'
735 ac_unique_file="src/ntfs-3g.c"
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_header_list=
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 am__isrc
826 CYGPATH_W
827 PACKAGE
828 VERSION
829 ACLOCAL
830 AUTOCONF
831 AUTOMAKE
832 AUTOHEADER
833 MAKEINFO
834 install_sh
835 STRIP
836 INSTALL_STRIP_PROGRAM
837 mkdir_p
839 SET_MAKE
840 am__leading_dot
841 AMTAR
842 am__tar
843 am__untar
844 MAINTAINER_MODE_TRUE
845 MAINTAINER_MODE_FALSE
846 MAINT
848 CFLAGS
849 LDFLAGS
850 CPPFLAGS
851 ac_ct_CC
852 EXEEXT
853 OBJEXT
854 DEPDIR
855 am__include
856 am__quote
857 AMDEP_TRUE
858 AMDEP_FALSE
859 AMDEPBACKSLASH
860 CCDEPMODE
861 am__fastdepCC_TRUE
862 am__fastdepCC_FALSE
863 LN_S
865 GREP
866 EGREP
867 ECHO
869 RANLIB
870 DSYMUTIL
871 NMEDIT
874 CXXFLAGS
875 ac_ct_CXX
876 CXXDEPMODE
877 am__fastdepCXX_TRUE
878 am__fastdepCXX_FALSE
879 CXXCPP
881 FFLAGS
882 ac_ct_F77
883 LIBTOOL
886 LDCONFIG
887 PKG_CONFIG
888 FUSE_MODULE_CFLAGS
889 FUSE_MODULE_LIBS
890 LIBOBJS
891 pkgconfigdir
892 ntfs3gincludedir
893 rootbindir
894 rootsbindir
895 rootlibdir
896 LIBNTFS_3G_VERSION
897 LIBFUSE_LITE_LIBS
898 OUTPUT_FORMAT
899 FUSE_INTERNAL_TRUE
900 FUSE_INTERNAL_FALSE
901 GENERATE_LDSCRIPT_TRUE
902 GENERATE_LDSCRIPT_FALSE
903 WINDOWS_TRUE
904 WINDOWS_FALSE
905 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE
906 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE
907 RUN_LDCONFIG_TRUE
908 RUN_LDCONFIG_FALSE
909 REALLYSTATIC_TRUE
910 REALLYSTATIC_FALSE
911 INSTALL_LIBRARY_TRUE
912 INSTALL_LIBRARY_FALSE
913 ENABLE_MOUNT_HELPER_TRUE
914 ENABLE_MOUNT_HELPER_FALSE
915 MKDIR_P
916 LTLIBOBJS'
917 ac_subst_files=''
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
928 CXXFLAGS
930 CXXCPP
932 FFLAGS
933 LDCONFIG
934 PKG_CONFIG
935 FUSE_MODULE_CFLAGS
936 FUSE_MODULE_LIBS'
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
985 ac_prev=
986 ac_dashdash=
987 for ac_option
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1005 ac_dashdash=yes ;;
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046 eval enable_$ac_feature=no ;;
1048 -docdir | --docdir | --docdi | --doc | --do)
1049 ac_prev=docdir ;;
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051 docdir=$ac_optarg ;;
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054 ac_prev=dvidir ;;
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056 dvidir=$ac_optarg ;;
1058 -enable-* | --enable-*)
1059 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1065 eval enable_$ac_feature=\$ac_optarg ;;
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 ac_prev=sbindir ;;
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 | --sbi=* | --sb=*)
1214 sbindir=$ac_optarg ;;
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1219 | --sha | --sh)
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 | --sha=* | --sh=*)
1225 sharedstatedir=$ac_optarg ;;
1227 -site | --site | --sit)
1228 ac_prev=site ;;
1229 -site=* | --site=* | --sit=*)
1230 site=$ac_optarg ;;
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 ac_prev=srcdir ;;
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 verbose=yes ;;
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1255 -with-* | --with-*)
1256 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid package name: $ac_package" >&2
1260 { (exit 1); exit 1; }; }
1261 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262 eval with_$ac_package=\$ac_optarg ;;
1264 -without-* | --without-*)
1265 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271 eval with_$ac_package=no ;;
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) { echo "$as_me: error: unrecognized option: $ac_option
1292 Try \`$0 --help' for more information." >&2
1293 { (exit 1); exit 1; }; }
1296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301 { (exit 1); exit 1; }; }
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1313 esac
1314 done
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 { echo "$as_me: error: missing argument to $ac_option" >&2
1319 { (exit 1); exit 1; }; }
1322 # Be sure to have absolute directory names.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1334 { (exit 1); exit 1; }; }
1335 done
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 { echo "$as_me: error: Working directory cannot be determined" >&2
1365 { (exit 1); exit 1; }; }
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 { echo "$as_me: error: pwd does not report name of working directory" >&2
1368 { (exit 1); exit 1; }; }
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$0" ||
1376 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$0" : 'X\(//\)[^/]' \| \
1378 X"$0" : 'X\(//\)$' \| \
1379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1380 echo X"$0" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1389 /^X\(\/\/\)$/{
1390 s//\1/
1393 /^X\(\/\).*/{
1394 s//\1/
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1402 else
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1408 { (exit 1); exit 1; }; }
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1413 { (exit 1); exit 1; }; }
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures ntfs-3g 2010.3.6 to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/ntfs-3g]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1492 _ACEOF
1494 cat <<\_ACEOF
1496 Program names:
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501 System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 --target=TARGET configure for building compilers for TARGET [HOST]
1505 _ACEOF
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of ntfs-3g 2010.3.6:";;
1511 esac
1512 cat <<\_ACEOF
1514 Optional Features:
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-maintainer-mode enable make rules and dependencies not useful
1518 (and sometimes confusing) to the casual installer
1519 --enable-debug enable debugging code and output
1520 --enable-warnings enable lots of compiler warnings
1521 --enable-pedantic enable compile pedantic mode
1522 --enable-really-static create fully static binaries
1523 --enable-mount-helper install mount helper [default=enabled for linux]
1524 --enable-ldscript use ldscript instead of .so symlink
1525 --disable-ldconfig do not update dynamic linker cache using ldconfig
1526 --disable-library do not install libntfs-3g but link it into ntfs-3g
1527 --disable-mtab disable and ignore usage of /etc/mtab
1528 --enable-posix-acls enable POSIX ACL support
1529 --disable-device-default-io-ops
1530 install default IO ops
1531 --disable-nfconv disable the 'nfconv' patch, which adds support for
1532 Unicode normalization form conversion when built on
1533 Mac OS X [default=enabled for Mac OS X]
1534 --disable-dependency-tracking speeds up one-time build
1535 --enable-dependency-tracking do not reject slow dependency extractors
1536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes]
1538 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes]
1540 --disable-libtool-lock avoid locking (might break parallel builds)
1541 --disable-largefile omit support for large files
1543 Optional Packages:
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 --with-pic try to use only PIC/non-PIC objects [default=use
1548 both]
1549 --with-tags[=TAGS] include additional configurations [automatic]
1550 --with-fuse=<internal|external>
1551 Select FUSE library: internal or external
1552 [default=internal]
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1562 CPP C preprocessor
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
1565 CXXCPP C++ preprocessor
1566 F77 Fortran 77 compiler command
1567 FFLAGS Fortran 77 compiler flags
1568 LDCONFIG ldconfig utility
1569 PKG_CONFIG path to pkg-config utility
1570 FUSE_MODULE_CFLAGS
1571 C compiler flags for FUSE_MODULE, overriding pkg-config
1572 FUSE_MODULE_LIBS
1573 linker flags for FUSE_MODULE, overriding pkg-config
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1578 Report bugs to <ntfs-3g-devel@lists.sf.net>.
1579 _ACEOF
1580 ac_status=$?
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" || continue
1587 ac_builddir=.
1589 case "$ac_dir" in
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1593 # A ".." for each directory in $ac_dir_suffix.
1594 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1595 case $ac_top_builddir_sub in
1596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598 esac ;;
1599 esac
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1605 case $srcdir in
1606 .) # We are building in place.
1607 ac_srcdir=.
1608 ac_top_srcdir=$ac_top_builddir_sub
1609 ac_abs_top_srcdir=$ac_pwd ;;
1610 [\\/]* | ?:[\\/]* ) # Absolute name.
1611 ac_srcdir=$srcdir$ac_dir_suffix;
1612 ac_top_srcdir=$srcdir
1613 ac_abs_top_srcdir=$srcdir ;;
1614 *) # Relative name.
1615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616 ac_top_srcdir=$ac_top_build_prefix$srcdir
1617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 esac
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621 cd "$ac_dir" || { ac_status=$?; continue; }
1622 # Check for guested configure.
1623 if test -f "$ac_srcdir/configure.gnu"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626 elif test -f "$ac_srcdir/configure"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure" --help=recursive
1629 else
1630 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631 fi || ac_status=$?
1632 cd "$ac_pwd" || { ac_status=$?; break; }
1633 done
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1638 cat <<\_ACEOF
1639 ntfs-3g configure 2010.3.6
1640 generated by GNU Autoconf 2.61
1642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1643 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1646 _ACEOF
1647 exit
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by ntfs-3g $as_me 2010.3.6, which was
1654 generated by GNU Autoconf 2.61. Invocation command line was
1656 $ $0 $@
1658 _ACEOF
1659 exec 5>>config.log
1661 cat <<_ASUNAME
1662 ## --------- ##
1663 ## Platform. ##
1664 ## --------- ##
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1683 _ASUNAME
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1691 done
1692 IFS=$as_save_IFS
1694 } >&5
1696 cat >&5 <<_ACEOF
1699 ## ----------- ##
1700 ## Core tests. ##
1701 ## ----------- ##
1703 _ACEOF
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_configure_args=
1712 ac_configure_args0=
1713 ac_configure_args1=
1714 ac_must_keep_next=false
1715 for ac_pass in 1 2
1717 for ac_arg
1719 case $ac_arg in
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1723 continue ;;
1724 *\'*)
1725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726 esac
1727 case $ac_pass in
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1733 else
1734 case $ac_arg in
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741 esac
1743 -* ) ac_must_keep_next=true ;;
1744 esac
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1748 esac
1749 done
1750 done
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1762 echo
1764 cat <<\_ASBOX
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1768 _ASBOX
1769 echo
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1774 case $ac_val in #(
1775 *${as_nl}*)
1776 case $ac_var in #(
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1779 esac
1780 case $ac_var in #(
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1783 esac ;;
1784 esac
1785 done
1786 (set) 2>&1 |
1787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1789 sed -n \
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792 ;; #(
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 esac |
1797 sort
1799 echo
1801 cat <<\_ASBOX
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1805 _ASBOX
1806 echo
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1810 case $ac_val in
1811 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 esac
1813 echo "$ac_var='\''$ac_val'\''"
1814 done | sort
1815 echo
1817 if test -n "$ac_subst_files"; then
1818 cat <<\_ASBOX
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_files
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1835 if test -s confdefs.h; then
1836 cat <<\_ASBOX
1837 ## ----------- ##
1838 ## confdefs.h. ##
1839 ## ----------- ##
1840 _ASBOX
1841 echo
1842 cat confdefs.h
1843 echo
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1848 } >&5
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851 exit $exit_status
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 done
1856 ac_signal=0
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1861 # Predefined preprocessor variables.
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 _ACEOF
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 _ACEOF
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 _ACEOF
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 _ACEOF
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 _ACEOF
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 else
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
1898 shift
1899 for ac_site_file
1901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1905 . "$ac_site_file"
1907 done
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1915 case $cache_file in
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1918 esac
1920 else
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1923 >$cache_file
1926 ac_header_list="$ac_header_list utime.h"
1927 # Check that the precious variables saved in the cache have kept the same
1928 # value.
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932 eval ac_new_set=\$ac_env_${ac_var}_set
1933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934 eval ac_new_val=\$ac_env_${ac_var}_value
1935 case $ac_old_set,$ac_new_set in
1936 set,)
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1940 ,set)
1941 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1942 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1944 ,);;
1946 if test "x$ac_old_val" != "x$ac_new_val"; then
1947 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1950 echo "$as_me: former value: $ac_old_val" >&2;}
1951 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1952 echo "$as_me: current value: $ac_new_val" >&2;}
1953 ac_cache_corrupted=:
1954 fi;;
1955 esac
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1958 case $ac_new_val in
1959 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1961 esac
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965 esac
1967 done
1968 if $ac_cache_corrupted; then
1969 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 LIBNTFS_3G_VERSION="75"
2010 # Environment
2011 ac_aux_dir=
2012 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2013 if test -f "$ac_dir/install-sh"; then
2014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/install-sh -c"
2016 break
2017 elif test -f "$ac_dir/install.sh"; then
2018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/install.sh -c"
2020 break
2021 elif test -f "$ac_dir/shtool"; then
2022 ac_aux_dir=$ac_dir
2023 ac_install_sh="$ac_aux_dir/shtool install -c"
2024 break
2026 done
2027 if test -z "$ac_aux_dir"; then
2028 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2029 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2030 { (exit 1); exit 1; }; }
2033 # These three variables are undocumented and unsupported,
2034 # and are intended to be withdrawn in a future Autoconf release.
2035 # They can cause serious problems if a builder's source tree is in a directory
2036 # whose full name contains unusual characters.
2037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2042 # Make sure we can run config.sub.
2043 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2044 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2045 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2046 { (exit 1); exit 1; }; }
2048 { echo "$as_me:$LINENO: checking build system type" >&5
2049 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2050 if test "${ac_cv_build+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 ac_build_alias=$build_alias
2054 test "x$ac_build_alias" = x &&
2055 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2056 test "x$ac_build_alias" = x &&
2057 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2058 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2059 { (exit 1); exit 1; }; }
2060 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2061 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2062 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2063 { (exit 1); exit 1; }; }
2066 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2067 echo "${ECHO_T}$ac_cv_build" >&6; }
2068 case $ac_cv_build in
2069 *-*-*) ;;
2070 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2071 echo "$as_me: error: invalid value of canonical build" >&2;}
2072 { (exit 1); exit 1; }; };;
2073 esac
2074 build=$ac_cv_build
2075 ac_save_IFS=$IFS; IFS='-'
2076 set x $ac_cv_build
2077 shift
2078 build_cpu=$1
2079 build_vendor=$2
2080 shift; shift
2081 # Remember, the first character of IFS is used to create $*,
2082 # except with old shells:
2083 build_os=$*
2084 IFS=$ac_save_IFS
2085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2088 { echo "$as_me:$LINENO: checking host system type" >&5
2089 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2090 if test "${ac_cv_host+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test "x$host_alias" = x; then
2094 ac_cv_host=$ac_cv_build
2095 else
2096 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2097 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2098 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2099 { (exit 1); exit 1; }; }
2103 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2104 echo "${ECHO_T}$ac_cv_host" >&6; }
2105 case $ac_cv_host in
2106 *-*-*) ;;
2107 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2108 echo "$as_me: error: invalid value of canonical host" >&2;}
2109 { (exit 1); exit 1; }; };;
2110 esac
2111 host=$ac_cv_host
2112 ac_save_IFS=$IFS; IFS='-'
2113 set x $ac_cv_host
2114 shift
2115 host_cpu=$1
2116 host_vendor=$2
2117 shift; shift
2118 # Remember, the first character of IFS is used to create $*,
2119 # except with old shells:
2120 host_os=$*
2121 IFS=$ac_save_IFS
2122 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2125 { echo "$as_me:$LINENO: checking target system type" >&5
2126 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2127 if test "${ac_cv_target+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 if test "x$target_alias" = x; then
2131 ac_cv_target=$ac_cv_host
2132 else
2133 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2140 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2141 echo "${ECHO_T}$ac_cv_target" >&6; }
2142 case $ac_cv_target in
2143 *-*-*) ;;
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2145 echo "$as_me: error: invalid value of canonical target" >&2;}
2146 { (exit 1); exit 1; }; };;
2147 esac
2148 target=$ac_cv_target
2149 ac_save_IFS=$IFS; IFS='-'
2150 set x $ac_cv_target
2151 shift
2152 target_cpu=$1
2153 target_vendor=$2
2154 shift; shift
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2157 target_os=$*
2158 IFS=$ac_save_IFS
2159 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2162 # The aliases save the names the user supplied, while $host etc.
2163 # will get canonicalized.
2164 test -n "$target_alias" &&
2165 test "$program_prefix$program_suffix$program_transform_name" = \
2166 NONENONEs,x,x, &&
2167 program_prefix=${target_alias}-
2169 # Automake
2170 am__api_version='1.10'
2172 # Find a good install program. We prefer a C program (faster),
2173 # so one script is as good as another. But avoid the broken or
2174 # incompatible versions:
2175 # SysV /etc/install, /usr/sbin/install
2176 # SunOS /usr/etc/install
2177 # IRIX /sbin/install
2178 # AIX /bin/install
2179 # AmigaOS /C/install, which installs bootblocks on floppy discs
2180 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2183 # OS/2's system install, which has a completely different semantic
2184 # ./install, which can be erroneously created by make from ./install.sh.
2185 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2186 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2187 if test -z "$INSTALL"; then
2188 if test "${ac_cv_path_install+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 # Account for people who put trailing slashes in PATH elements.
2197 case $as_dir/ in
2198 ./ | .// | /cC/* | \
2199 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2200 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2201 /usr/ucb/* ) ;;
2203 # OSF1 and SCO ODT 3.0 have their own names for install.
2204 # Don't use installbsd from OSF since it installs stuff as root
2205 # by default.
2206 for ac_prog in ginstall scoinst install; do
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2209 if test $ac_prog = install &&
2210 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2211 # AIX install. It has an incompatible calling convention.
2213 elif test $ac_prog = install &&
2214 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215 # program-specific install script used by HP pwplus--don't use.
2217 else
2218 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2219 break 3
2222 done
2223 done
2225 esac
2226 done
2227 IFS=$as_save_IFS
2231 if test "${ac_cv_path_install+set}" = set; then
2232 INSTALL=$ac_cv_path_install
2233 else
2234 # As a last resort, use the slow shell script. Don't cache a
2235 # value for INSTALL within a source directory, because that will
2236 # break other packages using the cache if that directory is
2237 # removed, or if the value is a relative name.
2238 INSTALL=$ac_install_sh
2241 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2242 echo "${ECHO_T}$INSTALL" >&6; }
2244 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2245 # It thinks the first close brace ends the variable substitution.
2246 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2248 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2250 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2252 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2253 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2254 # Just in case
2255 sleep 1
2256 echo timestamp > conftest.file
2257 # Do `set' in a subshell so we don't clobber the current shell's
2258 # arguments. Must try -L first in case configure is actually a
2259 # symlink; some systems play weird games with the mod time of symlinks
2260 # (eg FreeBSD returns the mod time of the symlink's containing
2261 # directory).
2262 if (
2263 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2264 if test "$*" = "X"; then
2265 # -L didn't work.
2266 set X `ls -t $srcdir/configure conftest.file`
2268 rm -f conftest.file
2269 if test "$*" != "X $srcdir/configure conftest.file" \
2270 && test "$*" != "X conftest.file $srcdir/configure"; then
2272 # If neither matched, then we have a broken ls. This can happen
2273 # if, for instance, CONFIG_SHELL is bash and it inherits a
2274 # broken ls alias from the environment. This has actually
2275 # happened. Such a system could not be considered "sane".
2276 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2277 alias in your environment" >&5
2278 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2279 alias in your environment" >&2;}
2280 { (exit 1); exit 1; }; }
2283 test "$2" = conftest.file
2285 then
2286 # Ok.
2288 else
2289 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2290 Check your system clock" >&5
2291 echo "$as_me: error: newly created file is older than distributed files!
2292 Check your system clock" >&2;}
2293 { (exit 1); exit 1; }; }
2295 { echo "$as_me:$LINENO: result: yes" >&5
2296 echo "${ECHO_T}yes" >&6; }
2297 test "$program_prefix" != NONE &&
2298 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2299 # Use a double $ so make ignores it.
2300 test "$program_suffix" != NONE &&
2301 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2302 # Double any \ or $. echo might interpret backslashes.
2303 # By default was `s,x,x', remove it if useless.
2304 cat <<\_ACEOF >conftest.sed
2305 s/[\\$]/&&/g;s/;s,x,x,$//
2306 _ACEOF
2307 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2308 rm -f conftest.sed
2310 # expand $ac_aux_dir to an absolute path
2311 am_aux_dir=`cd $ac_aux_dir && pwd`
2313 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2314 # Use eval to expand $SHELL
2315 if eval "$MISSING --run true"; then
2316 am_missing_run="$MISSING --run "
2317 else
2318 am_missing_run=
2319 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2320 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2323 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2324 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2325 if test -z "$MKDIR_P"; then
2326 if test "${ac_cv_path_mkdir+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_prog in mkdir gmkdir; do
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2337 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2338 'mkdir (GNU coreutils) '* | \
2339 'mkdir (coreutils) '* | \
2340 'mkdir (fileutils) '4.1*)
2341 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2342 break 3;;
2343 esac
2344 done
2345 done
2346 done
2347 IFS=$as_save_IFS
2351 if test "${ac_cv_path_mkdir+set}" = set; then
2352 MKDIR_P="$ac_cv_path_mkdir -p"
2353 else
2354 # As a last resort, use the slow shell script. Don't cache a
2355 # value for MKDIR_P within a source directory, because that will
2356 # break other packages using the cache if that directory is
2357 # removed, or if the value is a relative name.
2358 test -d ./--version && rmdir ./--version
2359 MKDIR_P="$ac_install_sh -d"
2362 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2363 echo "${ECHO_T}$MKDIR_P" >&6; }
2365 mkdir_p="$MKDIR_P"
2366 case $mkdir_p in
2367 [\\/$]* | ?:[\\/]*) ;;
2368 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2369 esac
2371 for ac_prog in gawk mawk nawk awk
2373 # Extract the first word of "$ac_prog", so it can be a program name with args.
2374 set dummy $ac_prog; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_AWK+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$AWK"; then
2381 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_AWK="$ac_prog"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2394 done
2395 done
2396 IFS=$as_save_IFS
2400 AWK=$ac_cv_prog_AWK
2401 if test -n "$AWK"; then
2402 { echo "$as_me:$LINENO: result: $AWK" >&5
2403 echo "${ECHO_T}$AWK" >&6; }
2404 else
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2410 test -n "$AWK" && break
2411 done
2413 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2414 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2415 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2416 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 cat >conftest.make <<\_ACEOF
2420 SHELL = /bin/sh
2421 all:
2422 @echo '@@@%%%=$(MAKE)=@@@%%%'
2423 _ACEOF
2424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2425 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2426 *@@@%%%=?*=@@@%%%*)
2427 eval ac_cv_prog_make_${ac_make}_set=yes;;
2429 eval ac_cv_prog_make_${ac_make}_set=no;;
2430 esac
2431 rm -f conftest.make
2433 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2434 { echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6; }
2436 SET_MAKE=
2437 else
2438 { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2440 SET_MAKE="MAKE=${MAKE-make}"
2443 rm -rf .tst 2>/dev/null
2444 mkdir .tst 2>/dev/null
2445 if test -d .tst; then
2446 am__leading_dot=.
2447 else
2448 am__leading_dot=_
2450 rmdir .tst 2>/dev/null
2452 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2453 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2454 # is not polluted with repeated "-I."
2455 am__isrc=' -I$(srcdir)'
2456 # test to see if srcdir already configured
2457 if test -f $srcdir/config.status; then
2458 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2459 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2460 { (exit 1); exit 1; }; }
2464 # test whether we have cygpath
2465 if test -z "$CYGPATH_W"; then
2466 if (cygpath --version) >/dev/null 2>/dev/null; then
2467 CYGPATH_W='cygpath -w'
2468 else
2469 CYGPATH_W=echo
2474 # Define the identity of the package.
2475 PACKAGE=${PACKAGE_NAME}
2476 VERSION=${PACKAGE_VERSION}
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE "$PACKAGE"
2481 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define VERSION "$VERSION"
2486 _ACEOF
2488 # Some tools Automake needs.
2490 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2493 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2496 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2499 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2502 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2504 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2506 # Installed binaries are usually stripped using `strip' when the user
2507 # run `make install-strip'. However `strip' might not be the right
2508 # tool to use in cross-compilation environments, therefore Automake
2509 # will honor the `STRIP' environment variable to overrule this program.
2510 if test "$cross_compiling" != no; then
2511 if test -n "$ac_tool_prefix"; then
2512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}strip; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_STRIP+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 if test -n "$STRIP"; then
2520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2533 done
2534 done
2535 IFS=$as_save_IFS
2539 STRIP=$ac_cv_prog_STRIP
2540 if test -n "$STRIP"; then
2541 { echo "$as_me:$LINENO: result: $STRIP" >&5
2542 echo "${ECHO_T}$STRIP" >&6; }
2543 else
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2550 if test -z "$ac_cv_prog_STRIP"; then
2551 ac_ct_STRIP=$STRIP
2552 # Extract the first word of "strip", so it can be a program name with args.
2553 set dummy strip; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559 if test -n "$ac_ct_STRIP"; then
2560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_ac_ct_STRIP="strip"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2573 done
2574 done
2575 IFS=$as_save_IFS
2579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2580 if test -n "$ac_ct_STRIP"; then
2581 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2582 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2583 else
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2588 if test "x$ac_ct_STRIP" = x; then
2589 STRIP=":"
2590 else
2591 case $cross_compiling:$ac_tool_warned in
2592 yes:)
2593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2594 whose name does not start with the host triplet. If you think this
2595 configuration is useful to you, please write to autoconf@gnu.org." >&5
2596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2597 whose name does not start with the host triplet. If you think this
2598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2599 ac_tool_warned=yes ;;
2600 esac
2601 STRIP=$ac_ct_STRIP
2603 else
2604 STRIP="$ac_cv_prog_STRIP"
2608 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2610 # We need awk for the "check" target. The system "awk" is bad on
2611 # some platforms.
2612 # Always define AMTAR for backward compatibility.
2614 AMTAR=${AMTAR-"${am_missing_run}tar"}
2616 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2622 ac_config_headers="$ac_config_headers config.h"
2625 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2626 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2627 # Check whether --enable-maintainer-mode was given.
2628 if test "${enable_maintainer_mode+set}" = set; then
2629 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2630 else
2631 USE_MAINTAINER_MODE=no
2634 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2635 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2636 if test $USE_MAINTAINER_MODE = yes; then
2637 MAINTAINER_MODE_TRUE=
2638 MAINTAINER_MODE_FALSE='#'
2639 else
2640 MAINTAINER_MODE_TRUE='#'
2641 MAINTAINER_MODE_FALSE=
2644 MAINT=$MAINTAINER_MODE_TRUE
2648 # Options
2649 # Check whether --enable-debug was given.
2650 if test "${enable_debug+set}" = set; then
2651 enableval=$enable_debug;
2652 else
2653 enable_debug="no"
2658 # Check whether --enable-warnings was given.
2659 if test "${enable_warnings+set}" = set; then
2660 enableval=$enable_warnings;
2661 else
2662 enable_warnings="no"
2667 # Check whether --enable-pedantic was given.
2668 if test "${enable_pedantic+set}" = set; then
2669 enableval=$enable_pedantic;
2670 else
2671 enable_pedantic="no"
2676 # Check whether --enable-really-static was given.
2677 if test "${enable_really_static+set}" = set; then
2678 enableval=$enable_really_static;
2679 else
2680 enable_really_static="no"
2685 # Check whether --enable-mount-helper was given.
2686 if test "${enable_mount_helper+set}" = set; then
2687 enableval=$enable_mount_helper;
2688 else
2690 case "${target_os}" in
2691 linux*) enable_mount_helper="yes" ;;
2692 *) enable_mount_helper="no" ;;
2693 esac
2699 # Check whether --enable-ldscript was given.
2700 if test "${enable_ldscript+set}" = set; then
2701 enableval=$enable_ldscript;
2702 else
2703 enable_ldscript="no"
2708 # Check whether --enable-ldconfig was given.
2709 if test "${enable_ldconfig+set}" = set; then
2710 enableval=$enable_ldconfig;
2711 else
2712 enable_ldconfig="yes"
2717 # Check whether --enable-library was given.
2718 if test "${enable_library+set}" = set; then
2719 enableval=$enable_library;
2720 else
2721 enable_library="yes"
2726 # Check whether --enable-mtab was given.
2727 if test "${enable_mtab+set}" = set; then
2728 enableval=$enable_mtab;
2729 else
2730 enable_mtab="yes"
2735 # Check whether --enable-posix-acls was given.
2736 if test "${enable_posix_acls+set}" = set; then
2737 enableval=$enable_posix_acls;
2738 else
2739 enable_posix_acls="no"
2744 # Check whether --enable-device-default-io-ops was given.
2745 if test "${enable_device_default_io_ops+set}" = set; then
2746 enableval=$enable_device_default_io_ops;
2747 else
2748 enable_device_default_io_ops="yes"
2753 # Check whether --enable-nfconv was given.
2754 if test "${enable_nfconv+set}" = set; then
2755 enableval=$enable_nfconv; enable_nfconv="no"
2756 else
2758 case "${target_os}" in
2759 darwin*) enable_nfconv="yes" ;;
2760 *) enable_nfconv="no" ;;
2761 esac
2767 # pthread_rwlock_t requires _GNU_SOURCE
2769 cat >>confdefs.h <<\_ACEOF
2770 #define _GNU_SOURCE 1
2771 _ACEOF
2775 # Programs
2776 ac_ext=c
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782 for ac_prog in gcc cc
2784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_CC+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2805 done
2806 done
2807 IFS=$as_save_IFS
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { echo "$as_me:$LINENO: result: $CC" >&5
2814 echo "${ECHO_T}$CC" >&6; }
2815 else
2816 { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2821 test -n "$CC" && break
2822 done
2824 if test -z "$CC"; then
2825 ac_ct_CC=$CC
2826 for ac_prog in gcc cc
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CC="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2858 echo "${ECHO_T}$ac_ct_CC" >&6; }
2859 else
2860 { echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6; }
2865 test -n "$ac_ct_CC" && break
2866 done
2868 if test "x$ac_ct_CC" = x; then
2869 CC=""
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872 yes:)
2873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2874 whose name does not start with the host triplet. If you think this
2875 configuration is useful to you, please write to autoconf@gnu.org." >&5
2876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet. If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2879 ac_tool_warned=yes ;;
2880 esac
2881 CC=$ac_ct_CC
2886 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: no acceptable C compiler found in \$PATH
2889 See \`config.log' for more details." >&2;}
2890 { (exit 1); exit 1; }; }
2892 # Provide some information about the compiler.
2893 echo "$as_me:$LINENO: checking for C compiler version" >&5
2894 ac_compiler=`set X $ac_compile; echo $2`
2895 { (ac_try="$ac_compiler --version >&5"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler --version >&5") 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905 { (ac_try="$ac_compiler -v >&5"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler -v >&5") 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915 { (ac_try="$ac_compiler -V >&5"
2916 case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler -V >&5") 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2934 main ()
2938 return 0;
2940 _ACEOF
2941 ac_clean_files_save=$ac_clean_files
2942 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2943 # Try to create an executable without -o first, disregard a.out.
2944 # It will help us diagnose broken compilers, and finding out an intuition
2945 # of exeext.
2946 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2947 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2948 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2950 # List of possible output files, starting from the most likely.
2951 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2952 # only as a last resort. b.out is created by i960 compilers.
2953 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2955 # The IRIX 6 linker writes into existing files which may not be
2956 # executable, retaining their permissions. Remove them first so a
2957 # subsequent execution test works.
2958 ac_rmfiles=
2959 for ac_file in $ac_files
2961 case $ac_file in
2962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2963 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2964 esac
2965 done
2966 rm -f $ac_rmfiles
2968 if { (ac_try="$ac_link_default"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_link_default") 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; then
2978 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2980 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2981 # so that the user can short-circuit this test for compilers unknown to
2982 # Autoconf.
2983 for ac_file in $ac_files ''
2985 test -f "$ac_file" || continue
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2989 [ab].out )
2990 # We found the default executable, but exeext='' is most
2991 # certainly right.
2992 break;;
2993 *.* )
2994 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2995 then :; else
2996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998 # We set ac_cv_exeext here because the later test for it is not
2999 # safe: cross compilers may not add the suffix if given an `-o'
3000 # argument, so we may need to know it at that point already.
3001 # Even if this section looks crufty: it has the advantage of
3002 # actually working.
3003 break;;
3005 break;;
3006 esac
3007 done
3008 test "$ac_cv_exeext" = no && ac_cv_exeext=
3010 else
3011 ac_file=''
3014 { echo "$as_me:$LINENO: result: $ac_file" >&5
3015 echo "${ECHO_T}$ac_file" >&6; }
3016 if test -z "$ac_file"; then
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: C compiler cannot create executables
3023 See \`config.log' for more details." >&2;}
3024 { (exit 77); exit 77; }; }
3027 ac_exeext=$ac_cv_exeext
3029 # Check that the compiler produces executables we can run. If not, either
3030 # the compiler is broken, or we cross compile.
3031 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3032 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3033 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3034 # If not cross compiling, check that we can run a simple program.
3035 if test "$cross_compiling" != yes; then
3036 if { ac_try='./$ac_file'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 cross_compiling=no
3047 else
3048 if test "$cross_compiling" = maybe; then
3049 cross_compiling=yes
3050 else
3051 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: cannot run C compiled programs.
3055 If you meant to cross compile, use \`--host'.
3056 See \`config.log' for more details." >&2;}
3057 { (exit 1); exit 1; }; }
3061 { echo "$as_me:$LINENO: result: yes" >&5
3062 echo "${ECHO_T}yes" >&6; }
3064 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3065 ac_clean_files=$ac_clean_files_save
3066 # Check that the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3069 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3070 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3071 echo "${ECHO_T}$cross_compiling" >&6; }
3073 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3074 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3075 if { (ac_try="$ac_link"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_link") 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3086 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3087 # work properly (i.e., refer to `conftest.exe'), while it won't with
3088 # `rm'.
3089 for ac_file in conftest.exe conftest conftest.*; do
3090 test -f "$ac_file" || continue
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3093 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3094 break;;
3095 * ) break;;
3096 esac
3097 done
3098 else
3099 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3102 See \`config.log' for more details." >&2;}
3103 { (exit 1); exit 1; }; }
3106 rm -f conftest$ac_cv_exeext
3107 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3108 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3110 rm -f conftest.$ac_ext
3111 EXEEXT=$ac_cv_exeext
3112 ac_exeext=$EXEEXT
3113 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3114 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3115 if test "${ac_cv_objext+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3126 main ()
3130 return 0;
3132 _ACEOF
3133 rm -f conftest.o conftest.obj
3134 if { (ac_try="$ac_compile"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; then
3144 for ac_file in conftest.o conftest.obj conftest.*; do
3145 test -f "$ac_file" || continue;
3146 case $ac_file in
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3148 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149 break;;
3150 esac
3151 done
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3165 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3166 echo "${ECHO_T}$ac_cv_objext" >&6; }
3167 OBJEXT=$ac_cv_objext
3168 ac_objext=$OBJEXT
3169 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3170 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3171 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3182 main ()
3184 #ifndef __GNUC__
3185 choke me
3186 #endif
3189 return 0;
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && {
3206 test -z "$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 } && test -s conftest.$ac_objext; then
3209 ac_compiler_gnu=yes
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 ac_compiler_gnu=no
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3221 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3222 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3223 GCC=`test $ac_compiler_gnu = yes && echo yes`
3224 ac_test_CFLAGS=${CFLAGS+set}
3225 ac_save_CFLAGS=$CFLAGS
3226 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3227 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3228 if test "${ac_cv_prog_cc_g+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 ac_save_c_werror_flag=$ac_c_werror_flag
3232 ac_c_werror_flag=yes
3233 ac_cv_prog_cc_g=no
3234 CFLAGS="-g"
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3243 main ()
3247 return 0;
3249 _ACEOF
3250 rm -f conftest.$ac_objext
3251 if { (ac_try="$ac_compile"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_compile") 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } && {
3264 test -z "$ac_c_werror_flag" ||
3265 test ! -s conftest.err
3266 } && test -s conftest.$ac_objext; then
3267 ac_cv_prog_cc_g=yes
3268 else
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3272 CFLAGS=""
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3281 main ()
3285 return 0;
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (ac_try="$ac_compile"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_compile") 2>conftest.er1
3296 ac_status=$?
3297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } && {
3302 test -z "$ac_c_werror_flag" ||
3303 test ! -s conftest.err
3304 } && test -s conftest.$ac_objext; then
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3311 CFLAGS="-g"
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3320 main ()
3324 return 0;
3326 _ACEOF
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && {
3341 test -z "$ac_c_werror_flag" ||
3342 test ! -s conftest.err
3343 } && test -s conftest.$ac_objext; then
3344 ac_cv_prog_cc_g=yes
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 ac_c_werror_flag=$ac_save_c_werror_flag
3361 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3367 CFLAGS="-g -O2"
3368 else
3369 CFLAGS="-g"
3371 else
3372 if test "$GCC" = yes; then
3373 CFLAGS="-O2"
3374 else
3375 CFLAGS=
3378 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3379 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_cc_c89+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 ac_cv_prog_cc_c89=no
3384 ac_save_CC=$CC
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <stdarg.h>
3392 #include <stdio.h>
3393 #include <sys/types.h>
3394 #include <sys/stat.h>
3395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3396 struct buf { int x; };
3397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398 static char *e (p, i)
3399 char **p;
3400 int i;
3402 return p[i];
3404 static char *f (char * (*g) (char **, int), char **p, ...)
3406 char *s;
3407 va_list v;
3408 va_start (v,p);
3409 s = g (p, va_arg (v,int));
3410 va_end (v);
3411 return s;
3414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3415 function prototypes and stuff, but not '\xHH' hex character constants.
3416 These don't provoke an error unfortunately, instead are silently treated
3417 as 'x'. The following induces an error, until -std is added to get
3418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3419 array size at least. It's necessary to write '\x00'==0 to get something
3420 that's true only with -std. */
3421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3424 inside strings and character constants. */
3425 #define FOO(x) 'x'
3426 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3428 int test (int i, double x);
3429 struct s1 {int (*f) (int a);};
3430 struct s2 {int (*f) (double a);};
3431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432 int argc;
3433 char **argv;
3435 main ()
3437 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 return 0;
3441 _ACEOF
3442 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3443 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445 CC="$ac_save_CC $ac_arg"
3446 rm -f conftest.$ac_objext
3447 if { (ac_try="$ac_compile"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_compile") 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } && {
3460 test -z "$ac_c_werror_flag" ||
3461 test ! -s conftest.err
3462 } && test -s conftest.$ac_objext; then
3463 ac_cv_prog_cc_c89=$ac_arg
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3471 rm -f core conftest.err conftest.$ac_objext
3472 test "x$ac_cv_prog_cc_c89" != "xno" && break
3473 done
3474 rm -f conftest.$ac_ext
3475 CC=$ac_save_CC
3478 # AC_CACHE_VAL
3479 case "x$ac_cv_prog_cc_c89" in
3481 { echo "$as_me:$LINENO: result: none needed" >&5
3482 echo "${ECHO_T}none needed" >&6; } ;;
3483 xno)
3484 { echo "$as_me:$LINENO: result: unsupported" >&5
3485 echo "${ECHO_T}unsupported" >&6; } ;;
3487 CC="$CC $ac_cv_prog_cc_c89"
3488 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3489 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3490 esac
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 DEPDIR="${am__leading_dot}deps"
3500 ac_config_commands="$ac_config_commands depfiles"
3503 am_make=${MAKE-make}
3504 cat > confinc << 'END'
3505 am__doit:
3506 @echo done
3507 .PHONY: am__doit
3509 # If we don't find an include directive, just comment out the code.
3510 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3511 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3512 am__include="#"
3513 am__quote=
3514 _am_result=none
3515 # First try GNU make style include.
3516 echo "include confinc" > confmf
3517 # We grep out `Entering directory' and `Leaving directory'
3518 # messages which can occur if `w' ends up in MAKEFLAGS.
3519 # In particular we don't look at `^make:' because GNU make might
3520 # be invoked under some other name (usually "gmake"), in which
3521 # case it prints its new name instead of `make'.
3522 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3523 am__include=include
3524 am__quote=
3525 _am_result=GNU
3527 # Now try BSD make style include.
3528 if test "$am__include" = "#"; then
3529 echo '.include "confinc"' > confmf
3530 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3531 am__include=.include
3532 am__quote="\""
3533 _am_result=BSD
3538 { echo "$as_me:$LINENO: result: $_am_result" >&5
3539 echo "${ECHO_T}$_am_result" >&6; }
3540 rm -f confinc confmf
3542 # Check whether --enable-dependency-tracking was given.
3543 if test "${enable_dependency_tracking+set}" = set; then
3544 enableval=$enable_dependency_tracking;
3547 if test "x$enable_dependency_tracking" != xno; then
3548 am_depcomp="$ac_aux_dir/depcomp"
3549 AMDEPBACKSLASH='\'
3551 if test "x$enable_dependency_tracking" != xno; then
3552 AMDEP_TRUE=
3553 AMDEP_FALSE='#'
3554 else
3555 AMDEP_TRUE='#'
3556 AMDEP_FALSE=
3561 depcc="$CC" am_compiler_list=
3563 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3564 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3565 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3569 # We make a subdir and do the tests there. Otherwise we can end up
3570 # making bogus files that we don't know about and never remove. For
3571 # instance it was reported that on HP-UX the gcc test will end up
3572 # making a dummy file named `D' -- because `-MD' means `put the output
3573 # in D'.
3574 mkdir conftest.dir
3575 # Copy depcomp to subdir because otherwise we won't find it if we're
3576 # using a relative directory.
3577 cp "$am_depcomp" conftest.dir
3578 cd conftest.dir
3579 # We will build objects and dependencies in a subdirectory because
3580 # it helps to detect inapplicable dependency modes. For instance
3581 # both Tru64's cc and ICC support -MD to output dependencies as a
3582 # side effect of compilation, but ICC will put the dependencies in
3583 # the current directory while Tru64 will put them in the object
3584 # directory.
3585 mkdir sub
3587 am_cv_CC_dependencies_compiler_type=none
3588 if test "$am_compiler_list" = ""; then
3589 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591 for depmode in $am_compiler_list; do
3592 # Setup a source with many dependencies, because some compilers
3593 # like to wrap large dependency lists on column 80 (with \), and
3594 # we should not choose a depcomp mode which is confused by this.
3596 # We need to recreate these files for each test, as the compiler may
3597 # overwrite some of them when testing with obscure command lines.
3598 # This happens at least with the AIX C compiler.
3599 : > sub/conftest.c
3600 for i in 1 2 3 4 5 6; do
3601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3602 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3603 # Solaris 8's {/usr,}/bin/sh.
3604 touch sub/conftst$i.h
3605 done
3606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3608 case $depmode in
3609 nosideeffect)
3610 # after this tag, mechanisms are not by side-effect, so they'll
3611 # only be used when explicitly requested
3612 if test "x$enable_dependency_tracking" = xyes; then
3613 continue
3614 else
3615 break
3618 none) break ;;
3619 esac
3620 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621 # mode. It turns out that the SunPro C++ compiler does not properly
3622 # handle `-M -o', and we need to detect this.
3623 if depmode=$depmode \
3624 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3625 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3626 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3627 >/dev/null 2>conftest.err &&
3628 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3629 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3630 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3631 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3632 # icc doesn't choke on unknown options, it will just issue warnings
3633 # or remarks (even with -Werror). So we grep stderr for any message
3634 # that says an option was ignored or not supported.
3635 # When given -MP, icc 7.0 and 7.1 complain thusly:
3636 # icc: Command line warning: ignoring option '-M'; no argument required
3637 # The diagnosis changed in icc 8.0:
3638 # icc: Command line remark: option '-MP' not supported
3639 if (grep 'ignoring option' conftest.err ||
3640 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3641 am_cv_CC_dependencies_compiler_type=$depmode
3642 break
3645 done
3647 cd ..
3648 rm -rf conftest.dir
3649 else
3650 am_cv_CC_dependencies_compiler_type=none
3654 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3655 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3656 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3659 test "x$enable_dependency_tracking" != xno \
3660 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3661 am__fastdepCC_TRUE=
3662 am__fastdepCC_FALSE='#'
3663 else
3664 am__fastdepCC_TRUE='#'
3665 am__fastdepCC_FALSE=
3669 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3670 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3671 LN_S=$as_ln_s
3672 if test "$LN_S" = "ln -s"; then
3673 { echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6; }
3675 else
3676 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3677 echo "${ECHO_T}no, using $LN_S" >&6; }
3680 if test "x$CC" != xcc; then
3681 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3682 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3683 else
3684 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3685 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3687 set dummy $CC; ac_cc=`echo $2 |
3688 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3689 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h. */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3700 main ()
3704 return 0;
3706 _ACEOF
3707 # Make sure it works both with $CC and with simple cc.
3708 # We do the test twice because some compilers refuse to overwrite an
3709 # existing .o file with -o, though they will create one.
3710 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3711 rm -f conftest2.*
3712 if { (case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_try") 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_try") 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); };
3730 then
3731 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3732 if test "x$CC" != xcc; then
3733 # Test first that cc exists at all.
3734 if { ac_try='cc -c conftest.$ac_ext >&5'
3735 { (case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_try") 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3745 rm -f conftest2.*
3746 if { (case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_try") 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3760 (eval "$ac_try") 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); };
3764 then
3765 # cc works too.
3767 else
3768 # cc exists but doesn't like -o.
3769 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3773 else
3774 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3776 rm -f core conftest*
3779 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3780 { echo "$as_me:$LINENO: result: yes" >&5
3781 echo "${ECHO_T}yes" >&6; }
3782 else
3783 { echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6; }
3786 cat >>confdefs.h <<\_ACEOF
3787 #define NO_MINUS_C_MINUS_O 1
3788 _ACEOF
3792 # FIXME: we rely on the cache variable name because
3793 # there is no other way.
3794 set dummy $CC
3795 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3796 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3797 # Losing compiler, so override with the script.
3798 # FIXME: It is wrong to rewrite CC.
3799 # But if we don't then we get into trouble of one sort or another.
3800 # A longer-term fix would be to have automake use am__CC in this case,
3801 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3802 CC="$am_aux_dir/compile $CC"
3807 # Check whether --enable-shared was given.
3808 if test "${enable_shared+set}" = set; then
3809 enableval=$enable_shared; p=${PACKAGE-default}
3810 case $enableval in
3811 yes) enable_shared=yes ;;
3812 no) enable_shared=no ;;
3814 enable_shared=no
3815 # Look at the argument we got. We use all the common list separators.
3816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3817 for pkg in $enableval; do
3818 IFS="$lt_save_ifs"
3819 if test "X$pkg" = "X$p"; then
3820 enable_shared=yes
3822 done
3823 IFS="$lt_save_ifs"
3825 esac
3826 else
3827 enable_shared=yes
3831 # Check whether --enable-static was given.
3832 if test "${enable_static+set}" = set; then
3833 enableval=$enable_static; p=${PACKAGE-default}
3834 case $enableval in
3835 yes) enable_static=yes ;;
3836 no) enable_static=no ;;
3838 enable_static=no
3839 # Look at the argument we got. We use all the common list separators.
3840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3841 for pkg in $enableval; do
3842 IFS="$lt_save_ifs"
3843 if test "X$pkg" = "X$p"; then
3844 enable_static=yes
3846 done
3847 IFS="$lt_save_ifs"
3849 esac
3850 else
3851 enable_static=yes
3855 # Check whether --enable-fast-install was given.
3856 if test "${enable_fast_install+set}" = set; then
3857 enableval=$enable_fast_install; p=${PACKAGE-default}
3858 case $enableval in
3859 yes) enable_fast_install=yes ;;
3860 no) enable_fast_install=no ;;
3862 enable_fast_install=no
3863 # Look at the argument we got. We use all the common list separators.
3864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3865 for pkg in $enableval; do
3866 IFS="$lt_save_ifs"
3867 if test "X$pkg" = "X$p"; then
3868 enable_fast_install=yes
3870 done
3871 IFS="$lt_save_ifs"
3873 esac
3874 else
3875 enable_fast_install=yes
3879 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3880 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3881 if test "${lt_cv_path_SED+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 # Loop through the user's path and test for sed and gsed.
3885 # Then use that list of sed's as ones to test for truncation.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for lt_ac_prog in sed gsed; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3894 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3896 done
3897 done
3898 done
3899 IFS=$as_save_IFS
3900 lt_ac_max=0
3901 lt_ac_count=0
3902 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903 # along with /bin/sed that truncates output.
3904 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3905 test ! -f $lt_ac_sed && continue
3906 cat /dev/null > conftest.in
3907 lt_ac_count=0
3908 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3909 # Check for GNU sed and select it if it is found.
3910 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3911 lt_cv_path_SED=$lt_ac_sed
3912 break
3914 while true; do
3915 cat conftest.in conftest.in >conftest.tmp
3916 mv conftest.tmp conftest.in
3917 cp conftest.in conftest.nl
3918 echo >>conftest.nl
3919 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3920 cmp -s conftest.out conftest.nl || break
3921 # 10000 chars as input seems more than enough
3922 test $lt_ac_count -gt 10 && break
3923 lt_ac_count=`expr $lt_ac_count + 1`
3924 if test $lt_ac_count -gt $lt_ac_max; then
3925 lt_ac_max=$lt_ac_count
3926 lt_cv_path_SED=$lt_ac_sed
3928 done
3929 done
3933 SED=$lt_cv_path_SED
3935 { echo "$as_me:$LINENO: result: $SED" >&5
3936 echo "${ECHO_T}$SED" >&6; }
3938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 # Extract the first word of "grep ggrep" to use in msg output
3944 if test -z "$GREP"; then
3945 set dummy grep ggrep; ac_prog_name=$2
3946 if test "${ac_cv_path_GREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 ac_path_GREP_found=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_prog in grep ggrep; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3963 *GNU*)
3964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3966 ac_count=0
3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3968 while :
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976 ac_count=`expr $ac_count + 1`
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP="$ac_path_GREP"
3980 ac_path_GREP_max=$ac_count
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3984 done
3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986 esac
3989 $ac_path_GREP_found && break 3
3990 done
3991 done
3993 done
3994 IFS=$as_save_IFS
3999 GREP="$ac_cv_path_GREP"
4000 if test -z "$GREP"; then
4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4006 else
4007 ac_cv_path_GREP=$GREP
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4014 GREP="$ac_cv_path_GREP"
4017 { echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023 then ac_cv_path_EGREP="$GREP -E"
4024 else
4025 # Extract the first word of "egrep" to use in msg output
4026 if test -z "$EGREP"; then
4027 set dummy egrep; ac_prog_name=$2
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 ac_path_EGREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in egrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4045 *GNU*)
4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4048 ac_count=0
4049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4050 while :
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 ac_count=`expr $ac_count + 1`
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP="$ac_path_EGREP"
4062 ac_path_EGREP_max=$ac_count
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4071 $ac_path_EGREP_found && break 3
4072 done
4073 done
4075 done
4076 IFS=$as_save_IFS
4081 EGREP="$ac_cv_path_EGREP"
4082 if test -z "$EGREP"; then
4083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4088 else
4089 ac_cv_path_EGREP=$EGREP
4095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
4101 # Check whether --with-gnu-ld was given.
4102 if test "${with_gnu_ld+set}" = set; then
4103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4104 else
4105 with_gnu_ld=no
4108 ac_prog=ld
4109 if test "$GCC" = yes; then
4110 # Check if gcc -print-prog-name=ld gives a path.
4111 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4112 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4113 case $host in
4114 *-*-mingw*)
4115 # gcc leaves a trailing carriage return which upsets mingw
4116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119 esac
4120 case $ac_prog in
4121 # Accept absolute paths.
4122 [\\/]* | ?:[\\/]*)
4123 re_direlt='/[^/][^/]*/\.\./'
4124 # Canonicalize the pathname of ld
4125 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4127 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4128 done
4129 test -z "$LD" && LD="$ac_prog"
4132 # If it fails, then pretend we aren't using GCC.
4133 ac_prog=ld
4136 # If it is relative, then search for the first ld in PATH.
4137 with_gnu_ld=unknown
4139 esac
4140 elif test "$with_gnu_ld" = yes; then
4141 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4142 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4143 else
4144 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4145 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4147 if test "${lt_cv_path_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test -z "$LD"; then
4151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152 for ac_dir in $PATH; do
4153 IFS="$lt_save_ifs"
4154 test -z "$ac_dir" && ac_dir=.
4155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4156 lt_cv_path_LD="$ac_dir/$ac_prog"
4157 # Check to see if the program is GNU ld. I'd rather use --version,
4158 # but apparently some variants of GNU ld only accept -v.
4159 # Break only if it was the GNU/non-GNU ld that we prefer.
4160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4161 *GNU* | *'with BFD'*)
4162 test "$with_gnu_ld" != no && break
4165 test "$with_gnu_ld" != yes && break
4167 esac
4169 done
4170 IFS="$lt_save_ifs"
4171 else
4172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4176 LD="$lt_cv_path_LD"
4177 if test -n "$LD"; then
4178 { echo "$as_me:$LINENO: result: $LD" >&5
4179 echo "${ECHO_T}$LD" >&6; }
4180 else
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186 { (exit 1); exit 1; }; }
4187 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4193 case `$LD -v 2>&1 </dev/null` in
4194 *GNU* | *'with BFD'*)
4195 lt_cv_prog_gnu_ld=yes
4198 lt_cv_prog_gnu_ld=no
4200 esac
4202 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4203 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4204 with_gnu_ld=$lt_cv_prog_gnu_ld
4207 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4208 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4209 if test "${lt_cv_ld_reload_flag+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 lt_cv_ld_reload_flag='-r'
4214 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4215 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4216 reload_flag=$lt_cv_ld_reload_flag
4217 case $reload_flag in
4218 "" | " "*) ;;
4219 *) reload_flag=" $reload_flag" ;;
4220 esac
4221 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4222 case $host_os in
4223 darwin*)
4224 if test "$GCC" = yes; then
4225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4226 else
4227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4230 esac
4232 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4233 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4234 if test "${lt_cv_path_NM+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 if test -n "$NM"; then
4238 # Let the user override the test.
4239 lt_cv_path_NM="$NM"
4240 else
4241 lt_nm_to_check="${ac_tool_prefix}nm"
4242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4243 lt_nm_to_check="$lt_nm_to_check nm"
4245 for lt_tmp_nm in $lt_nm_to_check; do
4246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4247 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4248 IFS="$lt_save_ifs"
4249 test -z "$ac_dir" && ac_dir=.
4250 tmp_nm="$ac_dir/$lt_tmp_nm"
4251 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4252 # Check to see if the nm accepts a BSD-compat flag.
4253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4254 # nm: unknown option "B" ignored
4255 # Tru64's nm complains that /dev/null is an invalid object file
4256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4257 */dev/null* | *'Invalid file or object type'*)
4258 lt_cv_path_NM="$tmp_nm -B"
4259 break
4262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4263 */dev/null*)
4264 lt_cv_path_NM="$tmp_nm -p"
4265 break
4268 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4269 continue # so that we can try to find one that supports BSD flags
4271 esac
4273 esac
4275 done
4276 IFS="$lt_save_ifs"
4277 done
4278 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4281 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4282 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4283 NM="$lt_cv_path_NM"
4285 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4286 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4287 if test "${lt_cv_deplibs_check_method+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 lt_cv_file_magic_cmd='$MAGIC_CMD'
4291 lt_cv_file_magic_test_file=
4292 lt_cv_deplibs_check_method='unknown'
4293 # Need to set the preceding variable on all platforms that support
4294 # interlibrary dependencies.
4295 # 'none' -- dependencies not supported.
4296 # `unknown' -- same as none, but documents that we really don't know.
4297 # 'pass_all' -- all dependencies passed with no checks.
4298 # 'test_compile' -- check by making test program.
4299 # 'file_magic [[regex]]' -- check by looking for files in library path
4300 # which responds to the $file_magic_cmd with a given extended regex.
4301 # If you have `file' or equivalent on your system and you're not sure
4302 # whether `pass_all' will *always* work, you probably want this one.
4304 case $host_os in
4305 aix[4-9]*)
4306 lt_cv_deplibs_check_method=pass_all
4309 beos*)
4310 lt_cv_deplibs_check_method=pass_all
4313 bsdi[45]*)
4314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4315 lt_cv_file_magic_cmd='/usr/bin/file -L'
4316 lt_cv_file_magic_test_file=/shlib/libc.so
4319 cygwin*)
4320 # func_win32_libid is a shell function defined in ltmain.sh
4321 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4322 lt_cv_file_magic_cmd='func_win32_libid'
4325 mingw* | pw32*)
4326 # Base MSYS/MinGW do not provide the 'file' command needed by
4327 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4328 # unless we find 'file', for example because we are cross-compiling.
4329 if ( file / ) >/dev/null 2>&1; then
4330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4331 lt_cv_file_magic_cmd='func_win32_libid'
4332 else
4333 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4334 lt_cv_file_magic_cmd='$OBJDUMP -f'
4338 darwin* | rhapsody*)
4339 lt_cv_deplibs_check_method=pass_all
4342 freebsd* | dragonfly*)
4343 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4344 case $host_cpu in
4345 i*86 )
4346 # Not sure whether the presence of OpenBSD here was a mistake.
4347 # Let's accept both of them until this is cleared up.
4348 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4349 lt_cv_file_magic_cmd=/usr/bin/file
4350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4352 esac
4353 else
4354 lt_cv_deplibs_check_method=pass_all
4358 gnu*)
4359 lt_cv_deplibs_check_method=pass_all
4362 hpux10.20* | hpux11*)
4363 lt_cv_file_magic_cmd=/usr/bin/file
4364 case $host_cpu in
4365 ia64*)
4366 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4367 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4369 hppa*64*)
4370 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]'
4371 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4375 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4377 esac
4380 interix[3-9]*)
4381 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4385 irix5* | irix6* | nonstopux*)
4386 case $LD in
4387 *-32|*"-32 ") libmagic=32-bit;;
4388 *-n32|*"-n32 ") libmagic=N32;;
4389 *-64|*"-64 ") libmagic=64-bit;;
4390 *) libmagic=never-match;;
4391 esac
4392 lt_cv_deplibs_check_method=pass_all
4395 # This must be Linux ELF.
4396 linux* | k*bsd*-gnu)
4397 lt_cv_deplibs_check_method=pass_all
4400 netbsd*)
4401 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4403 else
4404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4408 newos6*)
4409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4410 lt_cv_file_magic_cmd=/usr/bin/file
4411 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4414 nto-qnx*)
4415 lt_cv_deplibs_check_method=unknown
4418 openbsd*)
4419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4421 else
4422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4426 osf3* | osf4* | osf5*)
4427 lt_cv_deplibs_check_method=pass_all
4430 rdos*)
4431 lt_cv_deplibs_check_method=pass_all
4434 solaris*)
4435 lt_cv_deplibs_check_method=pass_all
4438 sysv4 | sysv4.3*)
4439 case $host_vendor in
4440 motorola)
4441 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]'
4442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4444 ncr)
4445 lt_cv_deplibs_check_method=pass_all
4447 sequent)
4448 lt_cv_file_magic_cmd='/bin/file'
4449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4451 sni)
4452 lt_cv_file_magic_cmd='/bin/file'
4453 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4454 lt_cv_file_magic_test_file=/lib/libc.so
4456 siemens)
4457 lt_cv_deplibs_check_method=pass_all
4460 lt_cv_deplibs_check_method=pass_all
4462 esac
4465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4466 lt_cv_deplibs_check_method=pass_all
4468 esac
4471 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4472 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4473 file_magic_cmd=$lt_cv_file_magic_cmd
4474 deplibs_check_method=$lt_cv_deplibs_check_method
4475 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4480 # If no C compiler was specified, use CC.
4481 LTCC=${LTCC-"$CC"}
4483 # If no C compiler flags were specified, use CFLAGS.
4484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4486 # Allow CC to be a program name with arguments.
4487 compiler=$CC
4490 # Check whether --enable-libtool-lock was given.
4491 if test "${enable_libtool_lock+set}" = set; then
4492 enableval=$enable_libtool_lock;
4495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4497 # Some flags need to be propagated to the compiler or linker for good
4498 # libtool support.
4499 case $host in
4500 ia64-*-hpux*)
4501 # Find out which ABI we are using.
4502 echo 'int i;' > conftest.$ac_ext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; then
4508 case `/usr/bin/file conftest.$ac_objext` in
4509 *ELF-32*)
4510 HPUX_IA64_MODE="32"
4512 *ELF-64*)
4513 HPUX_IA64_MODE="64"
4515 esac
4517 rm -rf conftest*
4519 *-*-irix6*)
4520 # Find out which ABI we are using.
4521 echo '#line 4521 "configure"' > conftest.$ac_ext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
4527 if test "$lt_cv_prog_gnu_ld" = yes; then
4528 case `/usr/bin/file conftest.$ac_objext` in
4529 *32-bit*)
4530 LD="${LD-ld} -melf32bsmip"
4532 *N32*)
4533 LD="${LD-ld} -melf32bmipn32"
4535 *64-bit*)
4536 LD="${LD-ld} -melf64bmip"
4538 esac
4539 else
4540 case `/usr/bin/file conftest.$ac_objext` in
4541 *32-bit*)
4542 LD="${LD-ld} -32"
4544 *N32*)
4545 LD="${LD-ld} -n32"
4547 *64-bit*)
4548 LD="${LD-ld} -64"
4550 esac
4553 rm -rf conftest*
4556 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4557 s390*-*linux*|sparc*-*linux*)
4558 # Find out which ABI we are using.
4559 echo 'int i;' > conftest.$ac_ext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; then
4565 case `/usr/bin/file conftest.o` in
4566 *32-bit*)
4567 case $host in
4568 x86_64-*kfreebsd*-gnu)
4569 LD="${LD-ld} -m elf_i386_fbsd"
4571 x86_64-*linux*)
4572 LD="${LD-ld} -m elf_i386"
4574 ppc64-*linux*|powerpc64-*linux*)
4575 LD="${LD-ld} -m elf32ppclinux"
4577 s390x-*linux*)
4578 LD="${LD-ld} -m elf_s390"
4580 sparc64-*linux*)
4581 LD="${LD-ld} -m elf32_sparc"
4583 esac
4585 *64-bit*)
4586 case $host in
4587 x86_64-*kfreebsd*-gnu)
4588 LD="${LD-ld} -m elf_x86_64_fbsd"
4590 x86_64-*linux*)
4591 LD="${LD-ld} -m elf_x86_64"
4593 ppc*-*linux*|powerpc*-*linux*)
4594 LD="${LD-ld} -m elf64ppc"
4596 s390*-*linux*)
4597 LD="${LD-ld} -m elf64_s390"
4599 sparc*-*linux*)
4600 LD="${LD-ld} -m elf64_sparc"
4602 esac
4604 esac
4606 rm -rf conftest*
4609 *-*-sco3.2v5*)
4610 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4611 SAVE_CFLAGS="$CFLAGS"
4612 CFLAGS="$CFLAGS -belf"
4613 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4614 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4615 if test "${lt_cv_cc_needs_belf+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 ac_ext=c
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4632 main ()
4636 return 0;
4638 _ACEOF
4639 rm -f conftest.$ac_objext conftest$ac_exeext
4640 if { (ac_try="$ac_link"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_link") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest$ac_exeext &&
4656 $as_test_x conftest$ac_exeext; then
4657 lt_cv_cc_needs_belf=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 lt_cv_cc_needs_belf=no
4665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4666 conftest$ac_exeext conftest.$ac_ext
4667 ac_ext=c
4668 ac_cpp='$CPP $CPPFLAGS'
4669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4675 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4676 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4677 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4678 CFLAGS="$SAVE_CFLAGS"
4681 sparc*-*solaris*)
4682 # Find out which ABI we are using.
4683 echo 'int i;' > conftest.$ac_ext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; then
4689 case `/usr/bin/file conftest.o` in
4690 *64-bit*)
4691 case $lt_cv_prog_gnu_ld in
4692 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4694 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4695 LD="${LD-ld} -64"
4698 esac
4700 esac
4702 rm -rf conftest*
4706 esac
4708 need_locks="$enable_libtool_lock"
4711 ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4717 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4718 # On Suns, sometimes $CPP names a directory.
4719 if test -n "$CPP" && test -d "$CPP"; then
4720 CPP=
4722 if test -z "$CPP"; then
4723 if test "${ac_cv_prog_CPP+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726 # Double quotes because CPP needs to be expanded
4727 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4729 ac_preproc_ok=false
4730 for ac_c_preproc_warn_flag in '' yes
4732 # Use a header file that comes with gcc, so configuring glibc
4733 # with a fresh cross-compiler works.
4734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4735 # <limits.h> exists even on freestanding compilers.
4736 # On the NeXT, cc -E runs the code through the compiler's parser,
4737 # not just through cpp. "Syntax error" is here to catch this case.
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 #ifdef __STDC__
4745 # include <limits.h>
4746 #else
4747 # include <assert.h>
4748 #endif
4749 Syntax error
4750 _ACEOF
4751 if { (ac_try="$ac_cpp conftest.$ac_ext"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 }; then
4768 else
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 # Broken: fails on valid input.
4773 continue
4776 rm -f conftest.err conftest.$ac_ext
4778 # OK, works on sane cases. Now check whether nonexistent headers
4779 # can be detected and how.
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <ac_nonexistent.h>
4787 _ACEOF
4788 if { (ac_try="$ac_cpp conftest.$ac_ext"
4789 case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792 esac
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } >/dev/null && {
4801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 }; then
4804 # Broken: success on invalid input.
4805 continue
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 # Passes both tests.
4811 ac_preproc_ok=:
4812 break
4815 rm -f conftest.err conftest.$ac_ext
4817 done
4818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4819 rm -f conftest.err conftest.$ac_ext
4820 if $ac_preproc_ok; then
4821 break
4824 done
4825 ac_cv_prog_CPP=$CPP
4828 CPP=$ac_cv_prog_CPP
4829 else
4830 ac_cv_prog_CPP=$CPP
4832 { echo "$as_me:$LINENO: result: $CPP" >&5
4833 echo "${ECHO_T}$CPP" >&6; }
4834 ac_preproc_ok=false
4835 for ac_c_preproc_warn_flag in '' yes
4837 # Use a header file that comes with gcc, so configuring glibc
4838 # with a fresh cross-compiler works.
4839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4840 # <limits.h> exists even on freestanding compilers.
4841 # On the NeXT, cc -E runs the code through the compiler's parser,
4842 # not just through cpp. "Syntax error" is here to catch this case.
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #ifdef __STDC__
4850 # include <limits.h>
4851 #else
4852 # include <assert.h>
4853 #endif
4854 Syntax error
4855 _ACEOF
4856 if { (ac_try="$ac_cpp conftest.$ac_ext"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null && {
4869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 }; then
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 # Broken: fails on valid input.
4878 continue
4881 rm -f conftest.err conftest.$ac_ext
4883 # OK, works on sane cases. Now check whether nonexistent headers
4884 # can be detected and how.
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 #include <ac_nonexistent.h>
4892 _ACEOF
4893 if { (ac_try="$ac_cpp conftest.$ac_ext"
4894 case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } >/dev/null && {
4906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 }; then
4909 # Broken: success on invalid input.
4910 continue
4911 else
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 # Passes both tests.
4916 ac_preproc_ok=:
4917 break
4920 rm -f conftest.err conftest.$ac_ext
4922 done
4923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4924 rm -f conftest.err conftest.$ac_ext
4925 if $ac_preproc_ok; then
4927 else
4928 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4929 See \`config.log' for more details." >&5
4930 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4931 See \`config.log' for more details." >&2;}
4932 { (exit 1); exit 1; }; }
4935 ac_ext=c
4936 ac_cpp='$CPP $CPPFLAGS'
4937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4943 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4944 if test "${ac_cv_header_stdc+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
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. */
4953 #include <stdlib.h>
4954 #include <stdarg.h>
4955 #include <string.h>
4956 #include <float.h>
4959 main ()
4963 return 0;
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4983 ac_cv_header_stdc=yes
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 ac_cv_header_stdc=no
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 if test $ac_cv_header_stdc = yes; then
4994 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #include <string.h>
5003 _ACEOF
5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005 $EGREP "memchr" >/dev/null 2>&1; then
5007 else
5008 ac_cv_header_stdc=no
5010 rm -f conftest*
5014 if test $ac_cv_header_stdc = yes; then
5015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 #include <stdlib.h>
5024 _ACEOF
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 $EGREP "free" >/dev/null 2>&1; then
5028 else
5029 ac_cv_header_stdc=no
5031 rm -f conftest*
5035 if test $ac_cv_header_stdc = yes; then
5036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5037 if test "$cross_compiling" = yes; then
5039 else
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 #include <ctype.h>
5047 #include <stdlib.h>
5048 #if ((' ' & 0x0FF) == 0x020)
5049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5051 #else
5052 # define ISLOWER(c) \
5053 (('a' <= (c) && (c) <= 'i') \
5054 || ('j' <= (c) && (c) <= 'r') \
5055 || ('s' <= (c) && (c) <= 'z'))
5056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5057 #endif
5059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5061 main ()
5063 int i;
5064 for (i = 0; i < 256; i++)
5065 if (XOR (islower (i), ISLOWER (i))
5066 || toupper (i) != TOUPPER (i))
5067 return 2;
5068 return 0;
5070 _ACEOF
5071 rm -f conftest$ac_exeext
5072 if { (ac_try="$ac_link"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_link") 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5082 { (case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_try") 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5092 else
5093 echo "$as_me: program exited with status $ac_status" >&5
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 ( exit $ac_status )
5098 ac_cv_header_stdc=no
5100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5106 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5107 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5108 if test $ac_cv_header_stdc = yes; then
5110 cat >>confdefs.h <<\_ACEOF
5111 #define STDC_HEADERS 1
5112 _ACEOF
5116 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5126 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5127 inttypes.h stdint.h unistd.h
5129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h. */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 $ac_includes_default
5143 #include <$ac_header>
5144 _ACEOF
5145 rm -f conftest.$ac_objext
5146 if { (ac_try="$ac_compile"
5147 case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150 esac
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_compile") 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } && {
5159 test -z "$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5161 } && test -s conftest.$ac_objext; then
5162 eval "$as_ac_Header=yes"
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 eval "$as_ac_Header=no"
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 ac_res=`eval echo '${'$as_ac_Header'}'`
5173 { echo "$as_me:$LINENO: result: $ac_res" >&5
5174 echo "${ECHO_T}$ac_res" >&6; }
5175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5176 cat >>confdefs.h <<_ACEOF
5177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5178 _ACEOF
5182 done
5186 for ac_header in dlfcn.h
5188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 ac_res=`eval echo '${'$as_ac_Header'}'`
5196 { echo "$as_me:$LINENO: result: $ac_res" >&5
5197 echo "${ECHO_T}$ac_res" >&6; }
5198 else
5199 # Is the header compilable?
5200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 $ac_includes_default
5209 #include <$ac_header>
5210 _ACEOF
5211 rm -f conftest.$ac_objext
5212 if { (ac_try="$ac_compile"
5213 case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_compile") 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } && {
5225 test -z "$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5227 } && test -s conftest.$ac_objext; then
5228 ac_header_compiler=yes
5229 else
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_header_compiler=no
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238 echo "${ECHO_T}$ac_header_compiler" >&6; }
5240 # Is the header present?
5241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <$ac_header>
5250 _ACEOF
5251 if { (ac_try="$ac_cpp conftest.$ac_ext"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null && {
5264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 }; then
5267 ac_header_preproc=yes
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 ac_header_preproc=no
5275 rm -f conftest.err conftest.$ac_ext
5276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277 echo "${ECHO_T}$ac_header_preproc" >&6; }
5279 # So? What about this header?
5280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5281 yes:no: )
5282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5286 ac_header_preproc=yes
5288 no:yes:* )
5289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5301 ( cat <<\_ASBOX
5302 ## ----------------------------------------- ##
5303 ## Report this to ntfs-3g-devel@lists.sf.net ##
5304 ## ----------------------------------------- ##
5305 _ASBOX
5306 ) | sed "s/^/$as_me: WARNING: /" >&2
5308 esac
5309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 eval "$as_ac_Header=\$ac_header_preproc"
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5322 cat >>confdefs.h <<_ACEOF
5323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5324 _ACEOF
5328 done
5330 ac_ext=cpp
5331 ac_cpp='$CXXCPP $CPPFLAGS'
5332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5335 if test -z "$CXX"; then
5336 if test -n "$CCC"; then
5337 CXX=$CCC
5338 else
5339 if test -n "$ac_tool_prefix"; then
5340 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5346 if test "${ac_cv_prog_CXX+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 if test -n "$CXX"; then
5350 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5363 done
5364 done
5365 IFS=$as_save_IFS
5369 CXX=$ac_cv_prog_CXX
5370 if test -n "$CXX"; then
5371 { echo "$as_me:$LINENO: result: $CXX" >&5
5372 echo "${ECHO_T}$CXX" >&6; }
5373 else
5374 { echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6; }
5379 test -n "$CXX" && break
5380 done
5382 if test -z "$CXX"; then
5383 ac_ct_CXX=$CXX
5384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 if test -n "$ac_ct_CXX"; then
5394 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_ac_ct_CXX="$ac_prog"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5414 if test -n "$ac_ct_CXX"; then
5415 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5416 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5417 else
5418 { echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6; }
5423 test -n "$ac_ct_CXX" && break
5424 done
5426 if test "x$ac_ct_CXX" = x; then
5427 CXX="g++"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5432 whose name does not start with the host triplet. If you think this
5433 configuration is useful to you, please write to autoconf@gnu.org." >&5
5434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5435 whose name does not start with the host triplet. If you think this
5436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 CXX=$ac_ct_CXX
5445 # Provide some information about the compiler.
5446 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5447 ac_compiler=`set X $ac_compile; echo $2`
5448 { (ac_try="$ac_compiler --version >&5"
5449 case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_compiler --version >&5") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }
5458 { (ac_try="$ac_compiler -v >&5"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compiler -v >&5") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }
5468 { (ac_try="$ac_compiler -V >&5"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compiler -V >&5") 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }
5479 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5480 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5481 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5492 main ()
5494 #ifndef __GNUC__
5495 choke me
5496 #endif
5499 return 0;
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_cxx_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 ac_compiler_gnu=yes
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_compiler_gnu=no
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5531 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5532 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5533 GXX=`test $ac_compiler_gnu = yes && echo yes`
5534 ac_test_CXXFLAGS=${CXXFLAGS+set}
5535 ac_save_CXXFLAGS=$CXXFLAGS
5536 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5537 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5538 if test "${ac_cv_prog_cxx_g+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5542 ac_cxx_werror_flag=yes
5543 ac_cv_prog_cxx_g=no
5544 CXXFLAGS="-g"
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5553 main ()
5557 return 0;
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_cxx_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_cv_prog_cxx_g=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 CXXFLAGS=""
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5591 main ()
5595 return 0;
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_cxx_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5621 CXXFLAGS="-g"
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5630 main ()
5634 return 0;
5636 _ACEOF
5637 rm -f conftest.$ac_objext
5638 if { (ac_try="$ac_compile"
5639 case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_compile") 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && {
5651 test -z "$ac_cxx_werror_flag" ||
5652 test ! -s conftest.err
5653 } && test -s conftest.$ac_objext; then
5654 ac_cv_prog_cxx_g=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5671 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5673 if test "$ac_test_CXXFLAGS" = set; then
5674 CXXFLAGS=$ac_save_CXXFLAGS
5675 elif test $ac_cv_prog_cxx_g = yes; then
5676 if test "$GXX" = yes; then
5677 CXXFLAGS="-g -O2"
5678 else
5679 CXXFLAGS="-g"
5681 else
5682 if test "$GXX" = yes; then
5683 CXXFLAGS="-O2"
5684 else
5685 CXXFLAGS=
5688 ac_ext=cpp
5689 ac_cpp='$CXXCPP $CPPFLAGS'
5690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5694 depcc="$CXX" am_compiler_list=
5696 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5697 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5698 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5702 # We make a subdir and do the tests there. Otherwise we can end up
5703 # making bogus files that we don't know about and never remove. For
5704 # instance it was reported that on HP-UX the gcc test will end up
5705 # making a dummy file named `D' -- because `-MD' means `put the output
5706 # in D'.
5707 mkdir conftest.dir
5708 # Copy depcomp to subdir because otherwise we won't find it if we're
5709 # using a relative directory.
5710 cp "$am_depcomp" conftest.dir
5711 cd conftest.dir
5712 # We will build objects and dependencies in a subdirectory because
5713 # it helps to detect inapplicable dependency modes. For instance
5714 # both Tru64's cc and ICC support -MD to output dependencies as a
5715 # side effect of compilation, but ICC will put the dependencies in
5716 # the current directory while Tru64 will put them in the object
5717 # directory.
5718 mkdir sub
5720 am_cv_CXX_dependencies_compiler_type=none
5721 if test "$am_compiler_list" = ""; then
5722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5724 for depmode in $am_compiler_list; do
5725 # Setup a source with many dependencies, because some compilers
5726 # like to wrap large dependency lists on column 80 (with \), and
5727 # we should not choose a depcomp mode which is confused by this.
5729 # We need to recreate these files for each test, as the compiler may
5730 # overwrite some of them when testing with obscure command lines.
5731 # This happens at least with the AIX C compiler.
5732 : > sub/conftest.c
5733 for i in 1 2 3 4 5 6; do
5734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5736 # Solaris 8's {/usr,}/bin/sh.
5737 touch sub/conftst$i.h
5738 done
5739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5741 case $depmode in
5742 nosideeffect)
5743 # after this tag, mechanisms are not by side-effect, so they'll
5744 # only be used when explicitly requested
5745 if test "x$enable_dependency_tracking" = xyes; then
5746 continue
5747 else
5748 break
5751 none) break ;;
5752 esac
5753 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5754 # mode. It turns out that the SunPro C++ compiler does not properly
5755 # handle `-M -o', and we need to detect this.
5756 if depmode=$depmode \
5757 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5759 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5760 >/dev/null 2>conftest.err &&
5761 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5763 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5765 # icc doesn't choke on unknown options, it will just issue warnings
5766 # or remarks (even with -Werror). So we grep stderr for any message
5767 # that says an option was ignored or not supported.
5768 # When given -MP, icc 7.0 and 7.1 complain thusly:
5769 # icc: Command line warning: ignoring option '-M'; no argument required
5770 # The diagnosis changed in icc 8.0:
5771 # icc: Command line remark: option '-MP' not supported
5772 if (grep 'ignoring option' conftest.err ||
5773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5774 am_cv_CXX_dependencies_compiler_type=$depmode
5775 break
5778 done
5780 cd ..
5781 rm -rf conftest.dir
5782 else
5783 am_cv_CXX_dependencies_compiler_type=none
5787 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5788 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5789 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5792 test "x$enable_dependency_tracking" != xno \
5793 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5794 am__fastdepCXX_TRUE=
5795 am__fastdepCXX_FALSE='#'
5796 else
5797 am__fastdepCXX_TRUE='#'
5798 am__fastdepCXX_FALSE=
5804 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5805 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5806 (test "X$CXX" != "Xg++"))) ; then
5807 ac_ext=cpp
5808 ac_cpp='$CXXCPP $CPPFLAGS'
5809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5813 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5814 if test -z "$CXXCPP"; then
5815 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 # Double quotes because CXXCPP needs to be expanded
5819 for CXXCPP in "$CXX -E" "/lib/cpp"
5821 ac_preproc_ok=false
5822 for ac_cxx_preproc_warn_flag in '' yes
5824 # Use a header file that comes with gcc, so configuring glibc
5825 # with a fresh cross-compiler works.
5826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5827 # <limits.h> exists even on freestanding compilers.
5828 # On the NeXT, cc -E runs the code through the compiler's parser,
5829 # not just through cpp. "Syntax error" is here to catch this case.
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #ifdef __STDC__
5837 # include <limits.h>
5838 #else
5839 # include <assert.h>
5840 #endif
5841 Syntax error
5842 _ACEOF
5843 if { (ac_try="$ac_cpp conftest.$ac_ext"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } >/dev/null && {
5856 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5857 test ! -s conftest.err
5858 }; then
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 # Broken: fails on valid input.
5865 continue
5868 rm -f conftest.err conftest.$ac_ext
5870 # OK, works on sane cases. Now check whether nonexistent headers
5871 # can be detected and how.
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 #include <ac_nonexistent.h>
5879 _ACEOF
5880 if { (ac_try="$ac_cpp conftest.$ac_ext"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null && {
5893 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5894 test ! -s conftest.err
5895 }; then
5896 # Broken: success on invalid input.
5897 continue
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 # Passes both tests.
5903 ac_preproc_ok=:
5904 break
5907 rm -f conftest.err conftest.$ac_ext
5909 done
5910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911 rm -f conftest.err conftest.$ac_ext
5912 if $ac_preproc_ok; then
5913 break
5916 done
5917 ac_cv_prog_CXXCPP=$CXXCPP
5920 CXXCPP=$ac_cv_prog_CXXCPP
5921 else
5922 ac_cv_prog_CXXCPP=$CXXCPP
5924 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5925 echo "${ECHO_T}$CXXCPP" >&6; }
5926 ac_preproc_ok=false
5927 for ac_cxx_preproc_warn_flag in '' yes
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #ifdef __STDC__
5942 # include <limits.h>
5943 #else
5944 # include <assert.h>
5945 #endif
5946 Syntax error
5947 _ACEOF
5948 if { (ac_try="$ac_cpp conftest.$ac_ext"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } >/dev/null && {
5961 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5962 test ! -s conftest.err
5963 }; then
5965 else
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 # Broken: fails on valid input.
5970 continue
5973 rm -f conftest.err conftest.$ac_ext
5975 # OK, works on sane cases. Now check whether nonexistent headers
5976 # can be detected and how.
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <ac_nonexistent.h>
5984 _ACEOF
5985 if { (ac_try="$ac_cpp conftest.$ac_ext"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } >/dev/null && {
5998 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5999 test ! -s conftest.err
6000 }; then
6001 # Broken: success on invalid input.
6002 continue
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 # Passes both tests.
6008 ac_preproc_ok=:
6009 break
6012 rm -f conftest.err conftest.$ac_ext
6014 done
6015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6016 rm -f conftest.err conftest.$ac_ext
6017 if $ac_preproc_ok; then
6019 else
6020 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6021 See \`config.log' for more details." >&5
6022 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6023 See \`config.log' for more details." >&2;}
6024 { (exit 1); exit 1; }; }
6027 ac_ext=cpp
6028 ac_cpp='$CXXCPP $CPPFLAGS'
6029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6036 ac_ext=f
6037 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6038 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6040 if test -n "$ac_tool_prefix"; then
6041 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
6043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_F77+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 if test -n "$F77"; then
6051 ac_cv_prog_F77="$F77" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6064 done
6065 done
6066 IFS=$as_save_IFS
6070 F77=$ac_cv_prog_F77
6071 if test -n "$F77"; then
6072 { echo "$as_me:$LINENO: result: $F77" >&5
6073 echo "${ECHO_T}$F77" >&6; }
6074 else
6075 { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6080 test -n "$F77" && break
6081 done
6083 if test -z "$F77"; then
6084 ac_ct_F77=$F77
6085 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
6087 # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy $ac_prog; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094 if test -n "$ac_ct_F77"; then
6095 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_ac_ct_F77="$ac_prog"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6108 done
6109 done
6110 IFS=$as_save_IFS
6114 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6115 if test -n "$ac_ct_F77"; then
6116 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6117 echo "${ECHO_T}$ac_ct_F77" >&6; }
6118 else
6119 { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6124 test -n "$ac_ct_F77" && break
6125 done
6127 if test "x$ac_ct_F77" = x; then
6128 F77=""
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet. If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet. If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140 F77=$ac_ct_F77
6145 # Provide some information about the compiler.
6146 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6147 ac_compiler=`set X $ac_compile; echo $2`
6148 { (ac_try="$ac_compiler --version >&5"
6149 case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_compiler --version >&5") 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }
6158 { (ac_try="$ac_compiler -v >&5"
6159 case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162 esac
6163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_compiler -v >&5") 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }
6168 { (ac_try="$ac_compiler -V >&5"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compiler -V >&5") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }
6178 rm -f a.out
6180 # If we don't use `.F' as extension, the preprocessor is not run on the
6181 # input file. (Note that this only needs to work for GNU compilers.)
6182 ac_save_ext=$ac_ext
6183 ac_ext=F
6184 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6185 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6186 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 cat >conftest.$ac_ext <<_ACEOF
6190 program main
6191 #ifndef __GNUC__
6192 choke me
6193 #endif
6196 _ACEOF
6197 rm -f conftest.$ac_objext
6198 if { (ac_try="$ac_compile"
6199 case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_compile") 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } && {
6211 test -z "$ac_f77_werror_flag" ||
6212 test ! -s conftest.err
6213 } && test -s conftest.$ac_objext; then
6214 ac_compiler_gnu=yes
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6219 ac_compiler_gnu=no
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6226 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6227 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6228 ac_ext=$ac_save_ext
6229 ac_test_FFLAGS=${FFLAGS+set}
6230 ac_save_FFLAGS=$FFLAGS
6231 FFLAGS=
6232 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6233 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_f77_g+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 FFLAGS=-g
6238 cat >conftest.$ac_ext <<_ACEOF
6239 program main
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_f77_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_objext; then
6260 ac_cv_prog_f77_g=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_cv_prog_f77_g=no
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6272 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6273 if test "$ac_test_FFLAGS" = set; then
6274 FFLAGS=$ac_save_FFLAGS
6275 elif test $ac_cv_prog_f77_g = yes; then
6276 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6277 FFLAGS="-g -O2"
6278 else
6279 FFLAGS="-g"
6281 else
6282 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6283 FFLAGS="-O2"
6284 else
6285 FFLAGS=
6289 G77=`test $ac_compiler_gnu = yes && echo yes`
6290 ac_ext=c
6291 ac_cpp='$CPP $CPPFLAGS'
6292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6299 # find the maximum length of command line arguments
6300 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6301 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6302 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6306 teststring="ABCD"
6308 case $build_os in
6309 msdosdjgpp*)
6310 # On DJGPP, this test can blow up pretty badly due to problems in libc
6311 # (any single argument exceeding 2000 bytes causes a buffer overrun
6312 # during glob expansion). Even if it were fixed, the result of this
6313 # check would be larger than it should be.
6314 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6317 gnu*)
6318 # Under GNU Hurd, this test is not required because there is
6319 # no limit to the length of command line arguments.
6320 # Libtool will interpret -1 as no limit whatsoever
6321 lt_cv_sys_max_cmd_len=-1;
6324 cygwin* | mingw*)
6325 # On Win9x/ME, this test blows up -- it succeeds, but takes
6326 # about 5 minutes as the teststring grows exponentially.
6327 # Worse, since 9x/ME are not pre-emptively multitasking,
6328 # you end up with a "frozen" computer, even though with patience
6329 # the test eventually succeeds (with a max line length of 256k).
6330 # Instead, let's just punt: use the minimum linelength reported by
6331 # all of the supported platforms: 8192 (on NT/2K/XP).
6332 lt_cv_sys_max_cmd_len=8192;
6335 amigaos*)
6336 # On AmigaOS with pdksh, this test takes hours, literally.
6337 # So we just punt and use a minimum line length of 8192.
6338 lt_cv_sys_max_cmd_len=8192;
6341 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6342 # This has been around since 386BSD, at least. Likely further.
6343 if test -x /sbin/sysctl; then
6344 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6345 elif test -x /usr/sbin/sysctl; then
6346 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6347 else
6348 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6350 # And add a safety zone
6351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6355 interix*)
6356 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6357 lt_cv_sys_max_cmd_len=196608
6360 osf*)
6361 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6362 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6363 # nice to cause kernel panics so lets avoid the loop below.
6364 # First set a reasonable default.
6365 lt_cv_sys_max_cmd_len=16384
6367 if test -x /sbin/sysconfig; then
6368 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6369 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6370 esac
6373 sco3.2v5*)
6374 lt_cv_sys_max_cmd_len=102400
6376 sysv5* | sco5v6* | sysv4.2uw2*)
6377 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6378 if test -n "$kargmax"; then
6379 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6380 else
6381 lt_cv_sys_max_cmd_len=32768
6385 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6386 if test -n "$lt_cv_sys_max_cmd_len"; then
6387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6389 else
6390 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6391 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6392 = "XX$teststring") >/dev/null 2>&1 &&
6393 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6394 lt_cv_sys_max_cmd_len=$new_result &&
6395 test $i != 17 # 1/2 MB should be enough
6397 i=`expr $i + 1`
6398 teststring=$teststring$teststring
6399 done
6400 teststring=
6401 # Add a significant safety factor because C++ compilers can tack on massive
6402 # amounts of additional arguments before passing them to the linker.
6403 # It appears as though 1/2 is a usable value.
6404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6407 esac
6411 if test -n $lt_cv_sys_max_cmd_len ; then
6412 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6413 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6414 else
6415 { echo "$as_me:$LINENO: result: none" >&5
6416 echo "${ECHO_T}none" >&6; }
6423 # Check for command to grab the raw symbol name followed by C symbol from nm.
6424 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6425 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6426 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6430 # These are sane defaults that work on at least a few old systems.
6431 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6433 # Character class describing NM global symbol codes.
6434 symcode='[BCDEGRST]'
6436 # Regexp to match symbols that can be accessed directly from C.
6437 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6439 # Transform an extracted symbol line into a proper C declaration
6440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6442 # Transform an extracted symbol line into symbol name and symbol address
6443 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'"
6445 # Define system-specific variables.
6446 case $host_os in
6447 aix*)
6448 symcode='[BCDT]'
6450 cygwin* | mingw* | pw32*)
6451 symcode='[ABCDGISTW]'
6453 hpux*) # Its linker distinguishes data from code symbols
6454 if test "$host_cpu" = ia64; then
6455 symcode='[ABCDEGRST]'
6457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6458 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'"
6460 linux* | k*bsd*-gnu)
6461 if test "$host_cpu" = ia64; then
6462 symcode='[ABCDGIRSTW]'
6463 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6464 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'"
6467 irix* | nonstopux*)
6468 symcode='[BCDEGRST]'
6470 osf*)
6471 symcode='[BCDEGQRST]'
6473 solaris*)
6474 symcode='[BDRT]'
6476 sco3.2v5*)
6477 symcode='[DT]'
6479 sysv4.2uw2*)
6480 symcode='[DT]'
6482 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6483 symcode='[ABDT]'
6485 sysv4)
6486 symcode='[DFNSTU]'
6488 esac
6490 # Handle CRLF in mingw tool chain
6491 opt_cr=
6492 case $build_os in
6493 mingw*)
6494 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6496 esac
6498 # If we're using GNU nm, then use its standard symbol codes.
6499 case `$NM -V 2>&1` in
6500 *GNU* | *'with BFD'*)
6501 symcode='[ABCDGIRSTW]' ;;
6502 esac
6504 # Try without a prefix undercore, then with it.
6505 for ac_symprfx in "" "_"; do
6507 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6508 symxfrm="\\1 $ac_symprfx\\2 \\2"
6510 # Write the raw and C identifiers.
6511 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6513 # Check to see that the pipe works correctly.
6514 pipe_works=no
6516 rm -f conftest*
6517 cat > conftest.$ac_ext <<EOF
6518 #ifdef __cplusplus
6519 extern "C" {
6520 #endif
6521 char nm_test_var;
6522 void nm_test_func(){}
6523 #ifdef __cplusplus
6525 #endif
6526 int main(){nm_test_var='a';nm_test_func();return(0);}
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; then
6534 # Now try to grab the symbols.
6535 nlist=conftest.nm
6536 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6537 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && test -s "$nlist"; then
6541 # Try sorting and uniquifying the output.
6542 if sort "$nlist" | uniq > "$nlist"T; then
6543 mv -f "$nlist"T "$nlist"
6544 else
6545 rm -f "$nlist"T
6548 # Make sure that we snagged all the symbols we need.
6549 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6550 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6551 cat <<EOF > conftest.$ac_ext
6552 #ifdef __cplusplus
6553 extern "C" {
6554 #endif
6557 # Now generate the symbol file.
6558 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6560 cat <<EOF >> conftest.$ac_ext
6561 #if defined (__STDC__) && __STDC__
6562 # define lt_ptr_t void *
6563 #else
6564 # define lt_ptr_t char *
6565 # define const
6566 #endif
6568 /* The mapping between symbol names and symbols. */
6569 const struct {
6570 const char *name;
6571 lt_ptr_t address;
6573 lt_preloaded_symbols[] =
6576 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6577 cat <<\EOF >> conftest.$ac_ext
6578 {0, (lt_ptr_t) 0}
6581 #ifdef __cplusplus
6583 #endif
6585 # Now try linking the two files.
6586 mv conftest.$ac_objext conftstm.$ac_objext
6587 lt_save_LIBS="$LIBS"
6588 lt_save_CFLAGS="$CFLAGS"
6589 LIBS="conftstm.$ac_objext"
6590 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6596 pipe_works=yes
6598 LIBS="$lt_save_LIBS"
6599 CFLAGS="$lt_save_CFLAGS"
6600 else
6601 echo "cannot find nm_test_func in $nlist" >&5
6603 else
6604 echo "cannot find nm_test_var in $nlist" >&5
6606 else
6607 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6609 else
6610 echo "$progname: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6613 rm -rf conftest* conftst*
6615 # Do not use the global_symbol_pipe unless it works.
6616 if test "$pipe_works" = yes; then
6617 break
6618 else
6619 lt_cv_sys_global_symbol_pipe=
6621 done
6625 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6626 lt_cv_sys_global_symbol_to_cdecl=
6628 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6629 { echo "$as_me:$LINENO: result: failed" >&5
6630 echo "${ECHO_T}failed" >&6; }
6631 else
6632 { echo "$as_me:$LINENO: result: ok" >&5
6633 echo "${ECHO_T}ok" >&6; }
6636 { echo "$as_me:$LINENO: checking for objdir" >&5
6637 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6638 if test "${lt_cv_objdir+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641 rm -f .libs 2>/dev/null
6642 mkdir .libs 2>/dev/null
6643 if test -d .libs; then
6644 lt_cv_objdir=.libs
6645 else
6646 # MS-DOS does not allow filenames that begin with a dot.
6647 lt_cv_objdir=_libs
6649 rmdir .libs 2>/dev/null
6651 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6652 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6653 objdir=$lt_cv_objdir
6659 case $host_os in
6660 aix3*)
6661 # AIX sometimes has problems with the GCC collect2 program. For some
6662 # reason, if we set the COLLECT_NAMES environment variable, the problems
6663 # vanish in a puff of smoke.
6664 if test "X${COLLECT_NAMES+set}" != Xset; then
6665 COLLECT_NAMES=
6666 export COLLECT_NAMES
6669 esac
6671 # Sed substitution that helps us do robust quoting. It backslashifies
6672 # metacharacters that are still active within double-quoted strings.
6673 Xsed='sed -e 1s/^X//'
6674 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6676 # Same as above, but do not quote variable references.
6677 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6679 # Sed substitution to delay expansion of an escaped shell variable in a
6680 # double_quote_subst'ed string.
6681 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6683 # Sed substitution to avoid accidental globbing in evaled expressions
6684 no_glob_subst='s/\*/\\\*/g'
6686 # Constants:
6687 rm="rm -f"
6689 # Global variables:
6690 default_ofile=libtool
6691 can_build_shared=yes
6693 # All known linkers require a `.a' archive for static linking (except MSVC,
6694 # which needs '.lib').
6695 libext=a
6696 ltmain="$ac_aux_dir/ltmain.sh"
6697 ofile="$default_ofile"
6698 with_gnu_ld="$lt_cv_prog_gnu_ld"
6700 if test -n "$ac_tool_prefix"; then
6701 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6702 set dummy ${ac_tool_prefix}ar; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_prog_AR+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 if test -n "$AR"; then
6709 ac_cv_prog_AR="$AR" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_AR="${ac_tool_prefix}ar"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6722 done
6723 done
6724 IFS=$as_save_IFS
6728 AR=$ac_cv_prog_AR
6729 if test -n "$AR"; then
6730 { echo "$as_me:$LINENO: result: $AR" >&5
6731 echo "${ECHO_T}$AR" >&6; }
6732 else
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6739 if test -z "$ac_cv_prog_AR"; then
6740 ac_ct_AR=$AR
6741 # Extract the first word of "ar", so it can be a program name with args.
6742 set dummy ar; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 if test -n "$ac_ct_AR"; then
6749 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_prog_ac_ct_AR="ar"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6762 done
6763 done
6764 IFS=$as_save_IFS
6768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6769 if test -n "$ac_ct_AR"; then
6770 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6771 echo "${ECHO_T}$ac_ct_AR" >&6; }
6772 else
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6777 if test "x$ac_ct_AR" = x; then
6778 AR="false"
6779 else
6780 case $cross_compiling:$ac_tool_warned in
6781 yes:)
6782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6783 whose name does not start with the host triplet. If you think this
6784 configuration is useful to you, please write to autoconf@gnu.org." >&5
6785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6786 whose name does not start with the host triplet. If you think this
6787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6788 ac_tool_warned=yes ;;
6789 esac
6790 AR=$ac_ct_AR
6792 else
6793 AR="$ac_cv_prog_AR"
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_prog_RANLIB+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 if test -n "$RANLIB"; then
6805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6818 done
6819 done
6820 IFS=$as_save_IFS
6824 RANLIB=$ac_cv_prog_RANLIB
6825 if test -n "$RANLIB"; then
6826 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6827 echo "${ECHO_T}$RANLIB" >&6; }
6828 else
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6835 if test -z "$ac_cv_prog_RANLIB"; then
6836 ac_ct_RANLIB=$RANLIB
6837 # Extract the first word of "ranlib", so it can be a program name with args.
6838 set dummy ranlib; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 if test -n "$ac_ct_RANLIB"; then
6845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_prog_ac_ct_RANLIB="ranlib"
6855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6858 done
6859 done
6860 IFS=$as_save_IFS
6864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6865 if test -n "$ac_ct_RANLIB"; then
6866 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6867 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6868 else
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6873 if test "x$ac_ct_RANLIB" = x; then
6874 RANLIB=":"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877 yes:)
6878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6879 whose name does not start with the host triplet. If you think this
6880 configuration is useful to you, please write to autoconf@gnu.org." >&5
6881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6882 whose name does not start with the host triplet. If you think this
6883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886 RANLIB=$ac_ct_RANLIB
6888 else
6889 RANLIB="$ac_cv_prog_RANLIB"
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}strip; ac_word=$2
6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897 if test "${ac_cv_prog_STRIP+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 if test -n "$STRIP"; then
6901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6914 done
6915 done
6916 IFS=$as_save_IFS
6920 STRIP=$ac_cv_prog_STRIP
6921 if test -n "$STRIP"; then
6922 { echo "$as_me:$LINENO: result: $STRIP" >&5
6923 echo "${ECHO_T}$STRIP" >&6; }
6924 else
6925 { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6931 if test -z "$ac_cv_prog_STRIP"; then
6932 ac_ct_STRIP=$STRIP
6933 # Extract the first word of "strip", so it can be a program name with args.
6934 set dummy strip; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 if test -n "$ac_ct_STRIP"; then
6941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950 ac_cv_prog_ac_ct_STRIP="strip"
6951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6954 done
6955 done
6956 IFS=$as_save_IFS
6960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6961 if test -n "$ac_ct_STRIP"; then
6962 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6963 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6964 else
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6969 if test "x$ac_ct_STRIP" = x; then
6970 STRIP=":"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6975 whose name does not start with the host triplet. If you think this
6976 configuration is useful to you, please write to autoconf@gnu.org." >&5
6977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6978 whose name does not start with the host triplet. If you think this
6979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 STRIP=$ac_ct_STRIP
6984 else
6985 STRIP="$ac_cv_prog_STRIP"
6989 old_CC="$CC"
6990 old_CFLAGS="$CFLAGS"
6992 # Set sane defaults for various variables
6993 test -z "$AR" && AR=ar
6994 test -z "$AR_FLAGS" && AR_FLAGS=cru
6995 test -z "$AS" && AS=as
6996 test -z "$CC" && CC=cc
6997 test -z "$LTCC" && LTCC=$CC
6998 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6999 test -z "$DLLTOOL" && DLLTOOL=dlltool
7000 test -z "$LD" && LD=ld
7001 test -z "$LN_S" && LN_S="ln -s"
7002 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7003 test -z "$NM" && NM=nm
7004 test -z "$SED" && SED=sed
7005 test -z "$OBJDUMP" && OBJDUMP=objdump
7006 test -z "$RANLIB" && RANLIB=:
7007 test -z "$STRIP" && STRIP=:
7008 test -z "$ac_objext" && ac_objext=o
7010 # Determine commands to create old-style static archives.
7011 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7012 old_postinstall_cmds='chmod 644 $oldlib'
7013 old_postuninstall_cmds=
7015 if test -n "$RANLIB"; then
7016 case $host_os in
7017 openbsd*)
7018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7021 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7023 esac
7024 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7027 for cc_temp in $compiler""; do
7028 case $cc_temp in
7029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7031 \-*) ;;
7032 *) break;;
7033 esac
7034 done
7035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7038 # Only perform the check for file, if the check method requires it
7039 case $deplibs_check_method in
7040 file_magic*)
7041 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7042 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7043 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 case $MAGIC_CMD in
7048 [\\/*] | ?:[\\/]*)
7049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7052 lt_save_MAGIC_CMD="$MAGIC_CMD"
7053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7055 for ac_dir in $ac_dummy; do
7056 IFS="$lt_save_ifs"
7057 test -z "$ac_dir" && ac_dir=.
7058 if test -f $ac_dir/${ac_tool_prefix}file; then
7059 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7060 if test -n "$file_magic_test_file"; then
7061 case $deplibs_check_method in
7062 "file_magic "*)
7063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7066 $EGREP "$file_magic_regex" > /dev/null; then
7068 else
7069 cat <<EOF 1>&2
7071 *** Warning: the command libtool uses to detect shared libraries,
7072 *** $file_magic_cmd, produces output that libtool cannot recognize.
7073 *** The result is that libtool may fail to recognize shared libraries
7074 *** as such. This will affect the creation of libtool libraries that
7075 *** depend on shared libraries, but programs linked with such libtool
7076 *** libraries will work regardless of this problem. Nevertheless, you
7077 *** may want to report the problem to your system manager and/or to
7078 *** bug-libtool@gnu.org
7081 fi ;;
7082 esac
7084 break
7086 done
7087 IFS="$lt_save_ifs"
7088 MAGIC_CMD="$lt_save_MAGIC_CMD"
7090 esac
7093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7094 if test -n "$MAGIC_CMD"; then
7095 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7096 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7097 else
7098 { echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6; }
7102 if test -z "$lt_cv_path_MAGIC_CMD"; then
7103 if test -n "$ac_tool_prefix"; then
7104 { echo "$as_me:$LINENO: checking for file" >&5
7105 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7106 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 case $MAGIC_CMD in
7110 [\\/*] | ?:[\\/]*)
7111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7114 lt_save_MAGIC_CMD="$MAGIC_CMD"
7115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7116 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7117 for ac_dir in $ac_dummy; do
7118 IFS="$lt_save_ifs"
7119 test -z "$ac_dir" && ac_dir=.
7120 if test -f $ac_dir/file; then
7121 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7122 if test -n "$file_magic_test_file"; then
7123 case $deplibs_check_method in
7124 "file_magic "*)
7125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7128 $EGREP "$file_magic_regex" > /dev/null; then
7130 else
7131 cat <<EOF 1>&2
7133 *** Warning: the command libtool uses to detect shared libraries,
7134 *** $file_magic_cmd, produces output that libtool cannot recognize.
7135 *** The result is that libtool may fail to recognize shared libraries
7136 *** as such. This will affect the creation of libtool libraries that
7137 *** depend on shared libraries, but programs linked with such libtool
7138 *** libraries will work regardless of this problem. Nevertheless, you
7139 *** may want to report the problem to your system manager and/or to
7140 *** bug-libtool@gnu.org
7143 fi ;;
7144 esac
7146 break
7148 done
7149 IFS="$lt_save_ifs"
7150 MAGIC_CMD="$lt_save_MAGIC_CMD"
7152 esac
7155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7156 if test -n "$MAGIC_CMD"; then
7157 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7158 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7159 else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7164 else
7165 MAGIC_CMD=:
7171 esac
7174 case $host_os in
7175 rhapsody* | darwin*)
7176 if test -n "$ac_tool_prefix"; then
7177 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7178 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184 if test -n "$DSYMUTIL"; then
7185 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7198 done
7199 done
7200 IFS=$as_save_IFS
7204 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7205 if test -n "$DSYMUTIL"; then
7206 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7207 echo "${ECHO_T}$DSYMUTIL" >&6; }
7208 else
7209 { echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6; }
7215 if test -z "$ac_cv_prog_DSYMUTIL"; then
7216 ac_ct_DSYMUTIL=$DSYMUTIL
7217 # Extract the first word of "dsymutil", so it can be a program name with args.
7218 set dummy dsymutil; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 if test -n "$ac_ct_DSYMUTIL"; then
7225 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7238 done
7239 done
7240 IFS=$as_save_IFS
7244 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7245 if test -n "$ac_ct_DSYMUTIL"; then
7246 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7247 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7248 else
7249 { echo "$as_me:$LINENO: result: no" >&5
7250 echo "${ECHO_T}no" >&6; }
7253 if test "x$ac_ct_DSYMUTIL" = x; then
7254 DSYMUTIL=":"
7255 else
7256 case $cross_compiling:$ac_tool_warned in
7257 yes:)
7258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7259 whose name does not start with the host triplet. If you think this
7260 configuration is useful to you, please write to autoconf@gnu.org." >&5
7261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7262 whose name does not start with the host triplet. If you think this
7263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7264 ac_tool_warned=yes ;;
7265 esac
7266 DSYMUTIL=$ac_ct_DSYMUTIL
7268 else
7269 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7272 if test -n "$ac_tool_prefix"; then
7273 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7274 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7277 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280 if test -n "$NMEDIT"; then
7281 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7294 done
7295 done
7296 IFS=$as_save_IFS
7300 NMEDIT=$ac_cv_prog_NMEDIT
7301 if test -n "$NMEDIT"; then
7302 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7303 echo "${ECHO_T}$NMEDIT" >&6; }
7304 else
7305 { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7311 if test -z "$ac_cv_prog_NMEDIT"; then
7312 ac_ct_NMEDIT=$NMEDIT
7313 # Extract the first word of "nmedit", so it can be a program name with args.
7314 set dummy nmedit; ac_word=$2
7315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320 if test -n "$ac_ct_NMEDIT"; then
7321 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7334 done
7335 done
7336 IFS=$as_save_IFS
7340 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7341 if test -n "$ac_ct_NMEDIT"; then
7342 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7343 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7344 else
7345 { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7349 if test "x$ac_ct_NMEDIT" = x; then
7350 NMEDIT=":"
7351 else
7352 case $cross_compiling:$ac_tool_warned in
7353 yes:)
7354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7355 whose name does not start with the host triplet. If you think this
7356 configuration is useful to you, please write to autoconf@gnu.org." >&5
7357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7358 whose name does not start with the host triplet. If you think this
7359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362 NMEDIT=$ac_ct_NMEDIT
7364 else
7365 NMEDIT="$ac_cv_prog_NMEDIT"
7369 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7370 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7371 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374 lt_cv_apple_cc_single_mod=no
7375 if test -z "${LT_MULTI_MODULE}"; then
7376 # By default we will add the -single_module flag. You can override
7377 # by either setting the environment variable LT_MULTI_MODULE
7378 # non-empty at configure time, or by adding -multi_module to the
7379 # link flags.
7380 echo "int foo(void){return 1;}" > conftest.c
7381 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7382 -dynamiclib ${wl}-single_module conftest.c
7383 if test -f libconftest.dylib; then
7384 lt_cv_apple_cc_single_mod=yes
7385 rm -rf libconftest.dylib*
7387 rm conftest.c
7390 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7391 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7392 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7393 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7394 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 lt_cv_ld_exported_symbols_list=no
7398 save_LDFLAGS=$LDFLAGS
7399 echo "_main" > conftest.sym
7400 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7409 main ()
7413 return 0;
7415 _ACEOF
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (ac_try="$ac_link"
7418 case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_link") 2>conftest.er1
7424 ac_status=$?
7425 grep -v '^ *+' conftest.er1 >conftest.err
7426 rm -f conftest.er1
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest$ac_exeext &&
7433 $as_test_x conftest$ac_exeext; then
7434 lt_cv_ld_exported_symbols_list=yes
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 lt_cv_ld_exported_symbols_list=no
7442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7443 conftest$ac_exeext conftest.$ac_ext
7444 LDFLAGS="$save_LDFLAGS"
7447 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7448 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7449 case $host_os in
7450 rhapsody* | darwin1.[0123])
7451 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7452 darwin1.*)
7453 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7454 darwin*)
7455 # if running on 10.5 or later, the deployment target defaults
7456 # to the OS version, if on x86, and 10.4, the deployment
7457 # target defaults to 10.4. Don't you love it?
7458 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7459 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7461 10.[012]*)
7462 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7463 10.*)
7464 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7465 esac
7467 esac
7468 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7469 _lt_dar_single_mod='$single_module'
7471 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7472 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7473 else
7474 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7476 if test "$DSYMUTIL" != ":"; then
7477 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7478 else
7479 _lt_dsymutil=
7482 esac
7485 enable_dlopen=no
7486 enable_win32_dll=no
7488 # Check whether --enable-libtool-lock was given.
7489 if test "${enable_libtool_lock+set}" = set; then
7490 enableval=$enable_libtool_lock;
7493 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7496 # Check whether --with-pic was given.
7497 if test "${with_pic+set}" = set; then
7498 withval=$with_pic; pic_mode="$withval"
7499 else
7500 pic_mode=default
7503 test -z "$pic_mode" && pic_mode=default
7505 # Use C for the default configuration in the libtool script
7506 tagname=
7507 lt_save_CC="$CC"
7508 ac_ext=c
7509 ac_cpp='$CPP $CPPFLAGS'
7510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7515 # Source file extension for C test sources.
7516 ac_ext=c
7518 # Object file extension for compiled C test sources.
7519 objext=o
7520 objext=$objext
7522 # Code to be used in simple compile tests
7523 lt_simple_compile_test_code="int some_variable = 0;"
7525 # Code to be used in simple link tests
7526 lt_simple_link_test_code='int main(){return(0);}'
7529 # If no C compiler was specified, use CC.
7530 LTCC=${LTCC-"$CC"}
7532 # If no C compiler flags were specified, use CFLAGS.
7533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7535 # Allow CC to be a program name with arguments.
7536 compiler=$CC
7539 # save warnings/boilerplate of simple test code
7540 ac_outfile=conftest.$ac_objext
7541 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7542 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7543 _lt_compiler_boilerplate=`cat conftest.err`
7544 $rm conftest*
7546 ac_outfile=conftest.$ac_objext
7547 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7548 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7549 _lt_linker_boilerplate=`cat conftest.err`
7550 $rm -r conftest*
7554 lt_prog_compiler_no_builtin_flag=
7556 if test "$GCC" = yes; then
7557 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7560 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7561 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7562 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 lt_cv_prog_compiler_rtti_exceptions=no
7566 ac_outfile=conftest.$ac_objext
7567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7568 lt_compiler_flag="-fno-rtti -fno-exceptions"
7569 # Insert the option either (1) after the last *FLAGS variable, or
7570 # (2) before a word containing "conftest.", or (3) at the end.
7571 # Note that $ac_compile itself does not contain backslashes and begins
7572 # with a dollar sign (not a hyphen), so the echo should work correctly.
7573 # The option is referenced via a variable to avoid confusing sed.
7574 lt_compile=`echo "$ac_compile" | $SED \
7575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7577 -e 's:$: $lt_compiler_flag:'`
7578 (eval echo "\"\$as_me:7578: $lt_compile\"" >&5)
7579 (eval "$lt_compile" 2>conftest.err)
7580 ac_status=$?
7581 cat conftest.err >&5
7582 echo "$as_me:7582: \$? = $ac_status" >&5
7583 if (exit $ac_status) && test -s "$ac_outfile"; then
7584 # The compiler can only warn and ignore the option if not recognized
7585 # So say no if there are warnings other than the usual output.
7586 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7588 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7589 lt_cv_prog_compiler_rtti_exceptions=yes
7592 $rm conftest*
7595 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7596 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7598 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7599 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7600 else
7606 lt_prog_compiler_wl=
7607 lt_prog_compiler_pic=
7608 lt_prog_compiler_static=
7610 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7611 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7613 if test "$GCC" = yes; then
7614 lt_prog_compiler_wl='-Wl,'
7615 lt_prog_compiler_static='-static'
7617 case $host_os in
7618 aix*)
7619 # All AIX code is PIC.
7620 if test "$host_cpu" = ia64; then
7621 # AIX 5 now supports IA64 processor
7622 lt_prog_compiler_static='-Bstatic'
7626 amigaos*)
7627 # FIXME: we need at least 68020 code to build shared libraries, but
7628 # adding the `-m68020' flag to GCC prevents building anything better,
7629 # like `-m68040'.
7630 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7633 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7634 # PIC is the default for these OSes.
7637 mingw* | cygwin* | pw32* | os2*)
7638 # This hack is so that the source file can tell whether it is being
7639 # built for inclusion in a dll (and should export symbols for example).
7640 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7641 # (--disable-auto-import) libraries
7642 lt_prog_compiler_pic='-DDLL_EXPORT'
7645 darwin* | rhapsody*)
7646 # PIC is the default on this platform
7647 # Common symbols not allowed in MH_DYLIB files
7648 lt_prog_compiler_pic='-fno-common'
7651 interix[3-9]*)
7652 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7653 # Instead, we relocate shared libraries at runtime.
7656 msdosdjgpp*)
7657 # Just because we use GCC doesn't mean we suddenly get shared libraries
7658 # on systems that don't support them.
7659 lt_prog_compiler_can_build_shared=no
7660 enable_shared=no
7663 sysv4*MP*)
7664 if test -d /usr/nec; then
7665 lt_prog_compiler_pic=-Kconform_pic
7669 hpux*)
7670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7671 # not for PA HP-UX.
7672 case $host_cpu in
7673 hppa*64*|ia64*)
7674 # +Z the default
7677 lt_prog_compiler_pic='-fPIC'
7679 esac
7683 lt_prog_compiler_pic='-fPIC'
7685 esac
7686 else
7687 # PORTME Check for flag to pass linker flags through the system compiler.
7688 case $host_os in
7689 aix*)
7690 lt_prog_compiler_wl='-Wl,'
7691 if test "$host_cpu" = ia64; then
7692 # AIX 5 now supports IA64 processor
7693 lt_prog_compiler_static='-Bstatic'
7694 else
7695 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7698 darwin*)
7699 # PIC is the default on this platform
7700 # Common symbols not allowed in MH_DYLIB files
7701 case $cc_basename in
7702 xlc*)
7703 lt_prog_compiler_pic='-qnocommon'
7704 lt_prog_compiler_wl='-Wl,'
7706 esac
7709 mingw* | cygwin* | pw32* | os2*)
7710 # This hack is so that the source file can tell whether it is being
7711 # built for inclusion in a dll (and should export symbols for example).
7712 lt_prog_compiler_pic='-DDLL_EXPORT'
7715 hpux9* | hpux10* | hpux11*)
7716 lt_prog_compiler_wl='-Wl,'
7717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7718 # not for PA HP-UX.
7719 case $host_cpu in
7720 hppa*64*|ia64*)
7721 # +Z the default
7724 lt_prog_compiler_pic='+Z'
7726 esac
7727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7728 lt_prog_compiler_static='${wl}-a ${wl}archive'
7731 irix5* | irix6* | nonstopux*)
7732 lt_prog_compiler_wl='-Wl,'
7733 # PIC (with -KPIC) is the default.
7734 lt_prog_compiler_static='-non_shared'
7737 newsos6)
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-Bstatic'
7742 linux* | k*bsd*-gnu)
7743 case $cc_basename in
7744 icc* | ecc*)
7745 lt_prog_compiler_wl='-Wl,'
7746 lt_prog_compiler_pic='-KPIC'
7747 lt_prog_compiler_static='-static'
7749 pgcc* | pgf77* | pgf90* | pgf95*)
7750 # Portland Group compilers (*not* the Pentium gcc compiler,
7751 # which looks to be a dead project)
7752 lt_prog_compiler_wl='-Wl,'
7753 lt_prog_compiler_pic='-fpic'
7754 lt_prog_compiler_static='-Bstatic'
7756 ccc*)
7757 lt_prog_compiler_wl='-Wl,'
7758 # All Alpha code is PIC.
7759 lt_prog_compiler_static='-non_shared'
7762 case `$CC -V 2>&1 | sed 5q` in
7763 *Sun\ C*)
7764 # Sun C 5.9
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-Bstatic'
7767 lt_prog_compiler_wl='-Wl,'
7769 *Sun\ F*)
7770 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7771 lt_prog_compiler_pic='-KPIC'
7772 lt_prog_compiler_static='-Bstatic'
7773 lt_prog_compiler_wl=''
7775 esac
7777 esac
7780 osf3* | osf4* | osf5*)
7781 lt_prog_compiler_wl='-Wl,'
7782 # All OSF/1 code is PIC.
7783 lt_prog_compiler_static='-non_shared'
7786 rdos*)
7787 lt_prog_compiler_static='-non_shared'
7790 solaris*)
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-Bstatic'
7793 case $cc_basename in
7794 f77* | f90* | f95*)
7795 lt_prog_compiler_wl='-Qoption ld ';;
7797 lt_prog_compiler_wl='-Wl,';;
7798 esac
7801 sunos4*)
7802 lt_prog_compiler_wl='-Qoption ld '
7803 lt_prog_compiler_pic='-PIC'
7804 lt_prog_compiler_static='-Bstatic'
7807 sysv4 | sysv4.2uw2* | sysv4.3*)
7808 lt_prog_compiler_wl='-Wl,'
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7813 sysv4*MP*)
7814 if test -d /usr/nec ;then
7815 lt_prog_compiler_pic='-Kconform_pic'
7816 lt_prog_compiler_static='-Bstatic'
7820 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7821 lt_prog_compiler_wl='-Wl,'
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7826 unicos*)
7827 lt_prog_compiler_wl='-Wl,'
7828 lt_prog_compiler_can_build_shared=no
7831 uts4*)
7832 lt_prog_compiler_pic='-pic'
7833 lt_prog_compiler_static='-Bstatic'
7837 lt_prog_compiler_can_build_shared=no
7839 esac
7842 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7843 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7846 # Check to make sure the PIC flag actually works.
7848 if test -n "$lt_prog_compiler_pic"; then
7850 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7851 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7852 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855 lt_cv_prog_compiler_pic_works=no
7856 ac_outfile=conftest.$ac_objext
7857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7859 # Insert the option either (1) after the last *FLAGS variable, or
7860 # (2) before a word containing "conftest.", or (3) at the end.
7861 # Note that $ac_compile itself does not contain backslashes and begins
7862 # with a dollar sign (not a hyphen), so the echo should work correctly.
7863 # The option is referenced via a variable to avoid confusing sed.
7864 lt_compile=`echo "$ac_compile" | $SED \
7865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867 -e 's:$: $lt_compiler_flag:'`
7868 (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869 (eval "$lt_compile" 2>conftest.err)
7870 ac_status=$?
7871 cat conftest.err >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 if (exit $ac_status) && test -s "$ac_outfile"; then
7874 # The compiler can only warn and ignore the option if not recognized
7875 # So say no if there are warnings other than the usual output.
7876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7879 lt_cv_prog_compiler_pic_works=yes
7882 $rm conftest*
7885 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7886 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7888 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7889 case $lt_prog_compiler_pic in
7890 "" | " "*) ;;
7891 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7892 esac
7893 else
7894 lt_prog_compiler_pic=
7895 lt_prog_compiler_can_build_shared=no
7899 case $host_os in
7900 # For platforms which do not support PIC, -DPIC is meaningless:
7901 *djgpp*)
7902 lt_prog_compiler_pic=
7905 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7907 esac
7910 # Check to make sure the static flag actually works.
7912 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7913 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7914 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7915 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 lt_cv_prog_compiler_static_works=no
7919 save_LDFLAGS="$LDFLAGS"
7920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7921 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7923 # The linker can only warn and ignore the option if not recognized
7924 # So say no if there are warnings
7925 if test -s conftest.err; then
7926 # Append any errors to the config.log.
7927 cat conftest.err 1>&5
7928 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7930 if diff conftest.exp conftest.er2 >/dev/null; then
7931 lt_cv_prog_compiler_static_works=yes
7933 else
7934 lt_cv_prog_compiler_static_works=yes
7937 $rm -r conftest*
7938 LDFLAGS="$save_LDFLAGS"
7941 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7942 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7944 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7946 else
7947 lt_prog_compiler_static=
7951 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7952 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7953 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 lt_cv_prog_compiler_c_o=no
7957 $rm -r conftest 2>/dev/null
7958 mkdir conftest
7959 cd conftest
7960 mkdir out
7961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7963 lt_compiler_flag="-o out/conftest2.$ac_objext"
7964 # Insert the option either (1) after the last *FLAGS variable, or
7965 # (2) before a word containing "conftest.", or (3) at the end.
7966 # Note that $ac_compile itself does not contain backslashes and begins
7967 # with a dollar sign (not a hyphen), so the echo should work correctly.
7968 lt_compile=`echo "$ac_compile" | $SED \
7969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7971 -e 's:$: $lt_compiler_flag:'`
7972 (eval echo "\"\$as_me:7972: $lt_compile\"" >&5)
7973 (eval "$lt_compile" 2>out/conftest.err)
7974 ac_status=$?
7975 cat out/conftest.err >&5
7976 echo "$as_me:7976: \$? = $ac_status" >&5
7977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7978 then
7979 # The compiler can only warn and ignore the option if not recognized
7980 # So say no if there are warnings
7981 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7984 lt_cv_prog_compiler_c_o=yes
7987 chmod u+w . 2>&5
7988 $rm conftest*
7989 # SGI C++ compiler will create directory out/ii_files/ for
7990 # template instantiation
7991 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7992 $rm out/* && rmdir out
7993 cd ..
7994 rmdir conftest
7995 $rm conftest*
7998 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7999 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8002 hard_links="nottested"
8003 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8004 # do not overwrite the value of need_locks provided by the user
8005 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8006 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8007 hard_links=yes
8008 $rm conftest*
8009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8010 touch conftest.a
8011 ln conftest.a conftest.b 2>&5 || hard_links=no
8012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8013 { echo "$as_me:$LINENO: result: $hard_links" >&5
8014 echo "${ECHO_T}$hard_links" >&6; }
8015 if test "$hard_links" = no; then
8016 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8017 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8018 need_locks=warn
8020 else
8021 need_locks=no
8024 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8025 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8027 runpath_var=
8028 allow_undefined_flag=
8029 enable_shared_with_static_runtimes=no
8030 archive_cmds=
8031 archive_expsym_cmds=
8032 old_archive_From_new_cmds=
8033 old_archive_from_expsyms_cmds=
8034 export_dynamic_flag_spec=
8035 whole_archive_flag_spec=
8036 thread_safe_flag_spec=
8037 hardcode_libdir_flag_spec=
8038 hardcode_libdir_flag_spec_ld=
8039 hardcode_libdir_separator=
8040 hardcode_direct=no
8041 hardcode_minus_L=no
8042 hardcode_shlibpath_var=unsupported
8043 link_all_deplibs=unknown
8044 hardcode_automatic=no
8045 module_cmds=
8046 module_expsym_cmds=
8047 always_export_symbols=no
8048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8049 # include_expsyms should be a list of space-separated symbols to be *always*
8050 # included in the symbol list
8051 include_expsyms=
8052 # exclude_expsyms can be an extended regexp of symbols to exclude
8053 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8054 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8055 # as well as any symbol that contains `d'.
8056 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8058 # platforms (ab)use it in PIC code, but their linkers get confused if
8059 # the symbol is explicitly referenced. Since portable code cannot
8060 # rely on this symbol name, it's probably fine to never include it in
8061 # preloaded symbol tables.
8062 # Exclude shared library initialization/finalization symbols.
8063 extract_expsyms_cmds=
8064 # Just being paranoid about ensuring that cc_basename is set.
8065 for cc_temp in $compiler""; do
8066 case $cc_temp in
8067 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8068 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8069 \-*) ;;
8070 *) break;;
8071 esac
8072 done
8073 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8075 case $host_os in
8076 cygwin* | mingw* | pw32*)
8077 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8078 # When not using gcc, we currently assume that we are using
8079 # Microsoft Visual C++.
8080 if test "$GCC" != yes; then
8081 with_gnu_ld=no
8084 interix*)
8085 # we just hope/assume this is gcc and not c89 (= MSVC++)
8086 with_gnu_ld=yes
8088 openbsd*)
8089 with_gnu_ld=no
8091 esac
8093 ld_shlibs=yes
8094 if test "$with_gnu_ld" = yes; then
8095 # If archive_cmds runs LD, not CC, wlarc should be empty
8096 wlarc='${wl}'
8098 # Set some defaults for GNU ld with shared library support. These
8099 # are reset later if shared libraries are not supported. Putting them
8100 # here allows them to be overridden if necessary.
8101 runpath_var=LD_RUN_PATH
8102 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8103 export_dynamic_flag_spec='${wl}--export-dynamic'
8104 # ancient GNU ld didn't support --whole-archive et. al.
8105 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8106 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8107 else
8108 whole_archive_flag_spec=
8110 supports_anon_versioning=no
8111 case `$LD -v 2>/dev/null` in
8112 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8113 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8114 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8115 *\ 2.11.*) ;; # other 2.11 versions
8116 *) supports_anon_versioning=yes ;;
8117 esac
8119 # See if GNU ld supports shared libraries.
8120 case $host_os in
8121 aix[3-9]*)
8122 # On AIX/PPC, the GNU linker is very broken
8123 if test "$host_cpu" != ia64; then
8124 ld_shlibs=no
8125 cat <<EOF 1>&2
8127 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8128 *** to be unable to reliably create shared libraries on AIX.
8129 *** Therefore, libtool is disabling shared libraries support. If you
8130 *** really care for shared libraries, you may want to modify your PATH
8131 *** so that a non-GNU linker is found, and then restart.
8137 amigaos*)
8138 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)'
8139 hardcode_libdir_flag_spec='-L$libdir'
8140 hardcode_minus_L=yes
8142 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8143 # that the semantics of dynamic libraries on AmigaOS, at least up
8144 # to version 4, is to share data among multiple programs linked
8145 # with the same dynamic library. Since this doesn't match the
8146 # behavior of shared libraries on other platforms, we can't use
8147 # them.
8148 ld_shlibs=no
8151 beos*)
8152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8153 allow_undefined_flag=unsupported
8154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8155 # support --undefined. This deserves some investigation. FIXME
8156 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157 else
8158 ld_shlibs=no
8162 cygwin* | mingw* | pw32*)
8163 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8164 # as there is no search path for DLLs.
8165 hardcode_libdir_flag_spec='-L$libdir'
8166 allow_undefined_flag=unsupported
8167 always_export_symbols=no
8168 enable_shared_with_static_runtimes=yes
8169 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8171 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8173 # If the export-symbols file already is a .def file (1st line
8174 # is EXPORTS), use it as is; otherwise, prepend...
8175 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8176 cp $export_symbols $output_objdir/$soname.def;
8177 else
8178 echo EXPORTS > $output_objdir/$soname.def;
8179 cat $export_symbols >> $output_objdir/$soname.def;
8181 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8182 else
8183 ld_shlibs=no
8187 interix[3-9]*)
8188 hardcode_direct=no
8189 hardcode_shlibpath_var=no
8190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8191 export_dynamic_flag_spec='${wl}-E'
8192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8193 # Instead, shared libraries are loaded at an image base (0x10000000 by
8194 # default) and relocated if they conflict, which is a slow very memory
8195 # consuming and fragmenting process. To avoid this, we pick a random,
8196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8197 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8199 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'
8202 gnu* | linux* | k*bsd*-gnu)
8203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8204 tmp_addflag=
8205 case $cc_basename,$host_cpu in
8206 pgcc*) # Portland Group C compiler
8207 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'
8208 tmp_addflag=' $pic_flag'
8210 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8211 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'
8212 tmp_addflag=' $pic_flag -Mnomain' ;;
8213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8214 tmp_addflag=' -i_dynamic' ;;
8215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8216 tmp_addflag=' -i_dynamic -nofor_main' ;;
8217 ifc* | ifort*) # Intel Fortran compiler
8218 tmp_addflag=' -nofor_main' ;;
8219 esac
8220 case `$CC -V 2>&1 | sed 5q` in
8221 *Sun\ C*) # Sun C 5.9
8222 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'
8223 tmp_sharedflag='-G' ;;
8224 *Sun\ F*) # Sun Fortran 8.3
8225 tmp_sharedflag='-G' ;;
8227 tmp_sharedflag='-shared' ;;
8228 esac
8229 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231 if test $supports_anon_versioning = yes; then
8232 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8234 $echo "local: *; };" >> $output_objdir/$libname.ver~
8235 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8237 else
8238 ld_shlibs=no
8242 netbsd*)
8243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8244 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8245 wlarc=
8246 else
8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8252 solaris*)
8253 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8254 ld_shlibs=no
8255 cat <<EOF 1>&2
8257 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8258 *** create shared libraries on Solaris systems. Therefore, libtool
8259 *** is disabling shared libraries support. We urge you to upgrade GNU
8260 *** binutils to release 2.9.1 or newer. Another option is to modify
8261 *** your PATH or compiler configuration so that the native linker is
8262 *** used, and then restart.
8265 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8268 else
8269 ld_shlibs=no
8273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8274 case `$LD -v 2>&1` in
8275 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8276 ld_shlibs=no
8277 cat <<_LT_EOF 1>&2
8279 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8280 *** reliably create shared libraries on SCO systems. Therefore, libtool
8281 *** is disabling shared libraries support. We urge you to upgrade GNU
8282 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8283 *** your PATH or compiler configuration so that the native linker is
8284 *** used, and then restart.
8286 _LT_EOF
8289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8290 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8292 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8293 else
8294 ld_shlibs=no
8297 esac
8300 sunos4*)
8301 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8302 wlarc=
8303 hardcode_direct=yes
8304 hardcode_shlibpath_var=no
8308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8311 else
8312 ld_shlibs=no
8315 esac
8317 if test "$ld_shlibs" = no; then
8318 runpath_var=
8319 hardcode_libdir_flag_spec=
8320 export_dynamic_flag_spec=
8321 whole_archive_flag_spec=
8323 else
8324 # PORTME fill in a description of your system's linker (not GNU ld)
8325 case $host_os in
8326 aix3*)
8327 allow_undefined_flag=unsupported
8328 always_export_symbols=yes
8329 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'
8330 # Note: this linker hardcodes the directories in LIBPATH if there
8331 # are no directories specified by -L.
8332 hardcode_minus_L=yes
8333 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8334 # Neither direct hardcoding nor static linking is supported with a
8335 # broken collect2.
8336 hardcode_direct=unsupported
8340 aix[4-9]*)
8341 if test "$host_cpu" = ia64; then
8342 # On IA64, the linker does run time linking by default, so we don't
8343 # have to do anything special.
8344 aix_use_runtimelinking=no
8345 exp_sym_flag='-Bexport'
8346 no_entry_flag=""
8347 else
8348 # If we're using GNU nm, then we don't want the "-C" option.
8349 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8350 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8351 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'
8352 else
8353 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'
8355 aix_use_runtimelinking=no
8357 # Test if we are trying to use run time linking or normal
8358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8359 # need to do runtime linking.
8360 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8361 for ld_flag in $LDFLAGS; do
8362 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8363 aix_use_runtimelinking=yes
8364 break
8366 done
8368 esac
8370 exp_sym_flag='-bexport'
8371 no_entry_flag='-bnoentry'
8374 # When large executables or shared objects are built, AIX ld can
8375 # have problems creating the table of contents. If linking a library
8376 # or program results in "error TOC overflow" add -mminimal-toc to
8377 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8378 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8380 archive_cmds=''
8381 hardcode_direct=yes
8382 hardcode_libdir_separator=':'
8383 link_all_deplibs=yes
8385 if test "$GCC" = yes; then
8386 case $host_os in aix4.[012]|aix4.[012].*)
8387 # We only want to do this on AIX 4.2 and lower, the check
8388 # below for broken collect2 doesn't work under 4.3+
8389 collect2name=`${CC} -print-prog-name=collect2`
8390 if test -f "$collect2name" && \
8391 strings "$collect2name" | grep resolve_lib_name >/dev/null
8392 then
8393 # We have reworked collect2
8395 else
8396 # We have old collect2
8397 hardcode_direct=unsupported
8398 # It fails to find uninstalled libraries when the uninstalled
8399 # path is not listed in the libpath. Setting hardcode_minus_L
8400 # to unsupported forces relinking
8401 hardcode_minus_L=yes
8402 hardcode_libdir_flag_spec='-L$libdir'
8403 hardcode_libdir_separator=
8406 esac
8407 shared_flag='-shared'
8408 if test "$aix_use_runtimelinking" = yes; then
8409 shared_flag="$shared_flag "'${wl}-G'
8411 else
8412 # not using gcc
8413 if test "$host_cpu" = ia64; then
8414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8415 # chokes on -Wl,-G. The following line is correct:
8416 shared_flag='-G'
8417 else
8418 if test "$aix_use_runtimelinking" = yes; then
8419 shared_flag='${wl}-G'
8420 else
8421 shared_flag='${wl}-bM:SRE'
8426 # It seems that -bexpall does not export symbols beginning with
8427 # underscore (_), so it is better to generate a list of symbols to export.
8428 always_export_symbols=yes
8429 if test "$aix_use_runtimelinking" = yes; then
8430 # Warning - without using the other runtime loading flags (-brtl),
8431 # -berok will link without error, but may produce a broken library.
8432 allow_undefined_flag='-berok'
8433 # Determine the default libpath from the value encoded in an empty executable.
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8442 main ()
8446 return 0;
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (ac_try="$ac_link"
8451 case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_link") 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest$ac_exeext &&
8466 $as_test_x conftest$ac_exeext; then
8468 lt_aix_libpath_sed='
8469 /Import File Strings/,/^$/ {
8470 /^0/ {
8471 s/^0 *\(.*\)$/\1/
8475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8476 # Check for a 64-bit object if we didn't find anything.
8477 if test -z "$aix_libpath"; then
8478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8488 conftest$ac_exeext conftest.$ac_ext
8489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8492 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"
8493 else
8494 if test "$host_cpu" = ia64; then
8495 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8496 allow_undefined_flag="-z nodefs"
8497 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"
8498 else
8499 # Determine the default libpath from the value encoded in an empty executable.
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8508 main ()
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (ac_try="$ac_link"
8517 case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_link") 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest$ac_exeext &&
8532 $as_test_x conftest$ac_exeext; then
8534 lt_aix_libpath_sed='
8535 /Import File Strings/,/^$/ {
8536 /^0/ {
8537 s/^0 *\(.*\)$/\1/
8541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8542 # Check for a 64-bit object if we didn't find anything.
8543 if test -z "$aix_libpath"; then
8544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8546 else
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8554 conftest$ac_exeext conftest.$ac_ext
8555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8557 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8558 # Warning - without using the other run time loading flags,
8559 # -berok will link without error, but may produce a broken library.
8560 no_undefined_flag=' ${wl}-bernotok'
8561 allow_undefined_flag=' ${wl}-berok'
8562 # Exported symbols can be pulled into shared objects from archives
8563 whole_archive_flag_spec='$convenience'
8564 archive_cmds_need_lc=yes
8565 # This is similar to how AIX traditionally builds its shared libraries.
8566 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'
8571 amigaos*)
8572 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)'
8573 hardcode_libdir_flag_spec='-L$libdir'
8574 hardcode_minus_L=yes
8575 # see comment about different semantics on the GNU ld section
8576 ld_shlibs=no
8579 bsdi[45]*)
8580 export_dynamic_flag_spec=-rdynamic
8583 cygwin* | mingw* | pw32*)
8584 # When not using gcc, we currently assume that we are using
8585 # Microsoft Visual C++.
8586 # hardcode_libdir_flag_spec is actually meaningless, as there is
8587 # no search path for DLLs.
8588 hardcode_libdir_flag_spec=' '
8589 allow_undefined_flag=unsupported
8590 # Tell ltmain to make .lib files, not .a files.
8591 libext=lib
8592 # Tell ltmain to make .dll files, not .so files.
8593 shrext_cmds=".dll"
8594 # FIXME: Setting linknames here is a bad hack.
8595 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8596 # The linker will automatically build a .lib file if we build a DLL.
8597 old_archive_From_new_cmds='true'
8598 # FIXME: Should let the user specify the lib program.
8599 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8600 fix_srcfile_path='`cygpath -w "$srcfile"`'
8601 enable_shared_with_static_runtimes=yes
8604 darwin* | rhapsody*)
8605 case $host_os in
8606 rhapsody* | darwin1.[012])
8607 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8609 *) # Darwin 1.3 on
8610 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8611 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8612 else
8613 case ${MACOSX_DEPLOYMENT_TARGET} in
8614 10.[012])
8615 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8617 10.*)
8618 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8620 esac
8623 esac
8624 archive_cmds_need_lc=no
8625 hardcode_direct=no
8626 hardcode_automatic=yes
8627 hardcode_shlibpath_var=unsupported
8628 whole_archive_flag_spec=''
8629 link_all_deplibs=yes
8630 if test "$GCC" = yes ; then
8631 output_verbose_link_cmd='echo'
8632 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8633 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8634 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}"
8635 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}"
8636 else
8637 case $cc_basename in
8638 xlc*)
8639 output_verbose_link_cmd='echo'
8640 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8641 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8643 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}'
8644 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}'
8647 ld_shlibs=no
8649 esac
8653 dgux*)
8654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_libdir_flag_spec='-L$libdir'
8656 hardcode_shlibpath_var=no
8659 freebsd1*)
8660 ld_shlibs=no
8663 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8664 # support. Future versions do this automatically, but an explicit c++rt0.o
8665 # does not break anything, and helps significantly (at the cost of a little
8666 # extra space).
8667 freebsd2.2*)
8668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8669 hardcode_libdir_flag_spec='-R$libdir'
8670 hardcode_direct=yes
8671 hardcode_shlibpath_var=no
8674 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8675 freebsd2*)
8676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8677 hardcode_direct=yes
8678 hardcode_minus_L=yes
8679 hardcode_shlibpath_var=no
8682 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8683 freebsd* | dragonfly*)
8684 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8685 hardcode_libdir_flag_spec='-R$libdir'
8686 hardcode_direct=yes
8687 hardcode_shlibpath_var=no
8690 hpux9*)
8691 if test "$GCC" = yes; then
8692 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'
8693 else
8694 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'
8696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8697 hardcode_libdir_separator=:
8698 hardcode_direct=yes
8700 # hardcode_minus_L: Not really in the search PATH,
8701 # but as the default location of the library.
8702 hardcode_minus_L=yes
8703 export_dynamic_flag_spec='${wl}-E'
8706 hpux10*)
8707 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8708 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8709 else
8710 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8712 if test "$with_gnu_ld" = no; then
8713 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8714 hardcode_libdir_separator=:
8716 hardcode_direct=yes
8717 export_dynamic_flag_spec='${wl}-E'
8719 # hardcode_minus_L: Not really in the search PATH,
8720 # but as the default location of the library.
8721 hardcode_minus_L=yes
8725 hpux11*)
8726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8727 case $host_cpu in
8728 hppa*64*)
8729 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8731 ia64*)
8732 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8735 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8737 esac
8738 else
8739 case $host_cpu in
8740 hppa*64*)
8741 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8743 ia64*)
8744 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8749 esac
8751 if test "$with_gnu_ld" = no; then
8752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8753 hardcode_libdir_separator=:
8755 case $host_cpu in
8756 hppa*64*|ia64*)
8757 hardcode_libdir_flag_spec_ld='+b $libdir'
8758 hardcode_direct=no
8759 hardcode_shlibpath_var=no
8762 hardcode_direct=yes
8763 export_dynamic_flag_spec='${wl}-E'
8765 # hardcode_minus_L: Not really in the search PATH,
8766 # but as the default location of the library.
8767 hardcode_minus_L=yes
8769 esac
8773 irix5* | irix6* | nonstopux*)
8774 if test "$GCC" = yes; then
8775 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'
8776 else
8777 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'
8778 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 hardcode_libdir_separator=:
8782 link_all_deplibs=yes
8785 netbsd*)
8786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8788 else
8789 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8791 hardcode_libdir_flag_spec='-R$libdir'
8792 hardcode_direct=yes
8793 hardcode_shlibpath_var=no
8796 newsos6)
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_direct=yes
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 hardcode_libdir_separator=:
8801 hardcode_shlibpath_var=no
8804 openbsd*)
8805 if test -f /usr/libexec/ld.so; then
8806 hardcode_direct=yes
8807 hardcode_shlibpath_var=no
8808 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8810 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8812 export_dynamic_flag_spec='${wl}-E'
8813 else
8814 case $host_os in
8815 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8817 hardcode_libdir_flag_spec='-R$libdir'
8820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8823 esac
8825 else
8826 ld_shlibs=no
8830 os2*)
8831 hardcode_libdir_flag_spec='-L$libdir'
8832 hardcode_minus_L=yes
8833 allow_undefined_flag=unsupported
8834 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'
8835 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8838 osf3*)
8839 if test "$GCC" = yes; then
8840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8841 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'
8842 else
8843 allow_undefined_flag=' -expect_unresolved \*'
8844 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'
8846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847 hardcode_libdir_separator=:
8850 osf4* | osf5*) # as osf3* with the addition of -msym flag
8851 if test "$GCC" = yes; then
8852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8853 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'
8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855 else
8856 allow_undefined_flag=' -expect_unresolved \*'
8857 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'
8858 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8859 $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'
8861 # Both c and cxx compiler support -rpath directly
8862 hardcode_libdir_flag_spec='-rpath $libdir'
8864 hardcode_libdir_separator=:
8867 solaris*)
8868 no_undefined_flag=' -z text'
8869 if test "$GCC" = yes; then
8870 wlarc='${wl}'
8871 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8873 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8874 else
8875 wlarc=''
8876 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8877 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8878 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8880 hardcode_libdir_flag_spec='-R$libdir'
8881 hardcode_shlibpath_var=no
8882 case $host_os in
8883 solaris2.[0-5] | solaris2.[0-5].*) ;;
8885 # The compiler driver will combine and reorder linker options,
8886 # but understands `-z linker_flag'. GCC discards it without `$wl',
8887 # but is careful enough not to reorder.
8888 # Supported since Solaris 2.6 (maybe 2.5.1?)
8889 if test "$GCC" = yes; then
8890 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8891 else
8892 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8895 esac
8896 link_all_deplibs=yes
8899 sunos4*)
8900 if test "x$host_vendor" = xsequent; then
8901 # Use $CC to link under sequent, because it throws in some extra .o
8902 # files that make .init and .fini sections work.
8903 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8904 else
8905 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_libdir_flag_spec='-L$libdir'
8908 hardcode_direct=yes
8909 hardcode_minus_L=yes
8910 hardcode_shlibpath_var=no
8913 sysv4)
8914 case $host_vendor in
8915 sni)
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_direct=yes # is this really true???
8919 siemens)
8920 ## LD is ld it makes a PLAMLIB
8921 ## CC just makes a GrossModule.
8922 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8923 reload_cmds='$CC -r -o $output$reload_objs'
8924 hardcode_direct=no
8926 motorola)
8927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8930 esac
8931 runpath_var='LD_RUN_PATH'
8932 hardcode_shlibpath_var=no
8935 sysv4.3*)
8936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937 hardcode_shlibpath_var=no
8938 export_dynamic_flag_spec='-Bexport'
8941 sysv4*MP*)
8942 if test -d /usr/nec; then
8943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_shlibpath_var=no
8945 runpath_var=LD_RUN_PATH
8946 hardcode_runpath_var=yes
8947 ld_shlibs=yes
8951 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8952 no_undefined_flag='${wl}-z,text'
8953 archive_cmds_need_lc=no
8954 hardcode_shlibpath_var=no
8955 runpath_var='LD_RUN_PATH'
8957 if test "$GCC" = yes; then
8958 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8959 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8960 else
8961 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 sysv5* | sco3.2v5* | sco5v6*)
8967 # Note: We can NOT use -z defs as we might desire, because we do not
8968 # link with -lc, and that would cause any symbols used from libc to
8969 # always be unresolved, which means just about no library would
8970 # ever link correctly. If we're not using GNU ld we use -z text
8971 # though, which does catch some bad symbols but isn't as heavy-handed
8972 # as -z defs.
8973 no_undefined_flag='${wl}-z,text'
8974 allow_undefined_flag='${wl}-z,nodefs'
8975 archive_cmds_need_lc=no
8976 hardcode_shlibpath_var=no
8977 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8978 hardcode_libdir_separator=':'
8979 link_all_deplibs=yes
8980 export_dynamic_flag_spec='${wl}-Bexport'
8981 runpath_var='LD_RUN_PATH'
8983 if test "$GCC" = yes; then
8984 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8986 else
8987 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8992 uts4*)
8993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_shlibpath_var=no
8999 ld_shlibs=no
9001 esac
9004 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9005 echo "${ECHO_T}$ld_shlibs" >&6; }
9006 test "$ld_shlibs" = no && can_build_shared=no
9009 # Do we need to explicitly link libc?
9011 case "x$archive_cmds_need_lc" in
9012 x|xyes)
9013 # Assume -lc should be added
9014 archive_cmds_need_lc=yes
9016 if test "$enable_shared" = yes && test "$GCC" = yes; then
9017 case $archive_cmds in
9018 *'~'*)
9019 # FIXME: we may have to deal with multi-command sequences.
9021 '$CC '*)
9022 # Test whether the compiler implicitly links with -lc since on some
9023 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9024 # to ld, don't add -lc before -lgcc.
9025 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9026 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9027 $rm conftest*
9028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } 2>conftest.err; then
9035 soname=conftest
9036 lib=conftest
9037 libobjs=conftest.$ac_objext
9038 deplibs=
9039 wl=$lt_prog_compiler_wl
9040 pic_flag=$lt_prog_compiler_pic
9041 compiler_flags=-v
9042 linker_flags=-v
9043 verstring=
9044 output_objdir=.
9045 libname=conftest
9046 lt_save_allow_undefined_flag=$allow_undefined_flag
9047 allow_undefined_flag=
9048 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9049 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }
9053 then
9054 archive_cmds_need_lc=no
9055 else
9056 archive_cmds_need_lc=yes
9058 allow_undefined_flag=$lt_save_allow_undefined_flag
9059 else
9060 cat conftest.err 1>&5
9062 $rm conftest*
9063 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9064 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9066 esac
9069 esac
9071 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9072 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9073 library_names_spec=
9074 libname_spec='lib$name'
9075 soname_spec=
9076 shrext_cmds=".so"
9077 postinstall_cmds=
9078 postuninstall_cmds=
9079 finish_cmds=
9080 finish_eval=
9081 shlibpath_var=
9082 shlibpath_overrides_runpath=unknown
9083 version_type=none
9084 dynamic_linker="$host_os ld.so"
9085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9087 if test "$GCC" = yes; then
9088 case $host_os in
9089 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9090 *) lt_awk_arg="/^libraries:/" ;;
9091 esac
9092 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9093 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9094 # if the path contains ";" then we assume it to be the separator
9095 # otherwise default to the standard path separator (i.e. ":") - it is
9096 # assumed that no part of a normal pathname contains ";" but that should
9097 # okay in the real world where ";" in dirpaths is itself problematic.
9098 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9099 else
9100 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9102 # Ok, now we have the path, separated by spaces, we can step through it
9103 # and add multilib dir if necessary.
9104 lt_tmp_lt_search_path_spec=
9105 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9106 for lt_sys_path in $lt_search_path_spec; do
9107 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9108 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9109 else
9110 test -d "$lt_sys_path" && \
9111 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9113 done
9114 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9115 BEGIN {RS=" "; FS="/|\n";} {
9116 lt_foo="";
9117 lt_count=0;
9118 for (lt_i = NF; lt_i > 0; lt_i--) {
9119 if ($lt_i != "" && $lt_i != ".") {
9120 if ($lt_i == "..") {
9121 lt_count++;
9122 } else {
9123 if (lt_count == 0) {
9124 lt_foo="/" $lt_i lt_foo;
9125 } else {
9126 lt_count--;
9131 if (lt_foo != "") { lt_freq[lt_foo]++; }
9132 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9134 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9135 else
9136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9138 need_lib_prefix=unknown
9139 hardcode_into_libs=no
9141 # when you set need_version to no, make sure it does not cause -set_version
9142 # flags to be left without arguments
9143 need_version=unknown
9145 case $host_os in
9146 aix3*)
9147 version_type=linux
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9149 shlibpath_var=LIBPATH
9151 # AIX 3 has no versioning support, so we append a major version to the name.
9152 soname_spec='${libname}${release}${shared_ext}$major'
9155 aix[4-9]*)
9156 version_type=linux
9157 need_lib_prefix=no
9158 need_version=no
9159 hardcode_into_libs=yes
9160 if test "$host_cpu" = ia64; then
9161 # AIX 5 supports IA64
9162 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 else
9165 # With GCC up to 2.95.x, collect2 would create an import file
9166 # for dependence libraries. The import file would start with
9167 # the line `#! .'. This would cause the generated library to
9168 # depend on `.', always an invalid library. This was fixed in
9169 # development snapshots of GCC prior to 3.0.
9170 case $host_os in
9171 aix4 | aix4.[01] | aix4.[01].*)
9172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9173 echo ' yes '
9174 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9176 else
9177 can_build_shared=no
9180 esac
9181 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9182 # soname into executable. Probably we can add versioning support to
9183 # collect2, so additional links can be useful in future.
9184 if test "$aix_use_runtimelinking" = yes; then
9185 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9186 # instead of lib<name>.a to let people know that these are not
9187 # typical AIX shared libraries.
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 else
9190 # We preserve .a as extension for shared libraries through AIX4.2
9191 # and later when we are not doing run time linking.
9192 library_names_spec='${libname}${release}.a $libname.a'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9195 shlibpath_var=LIBPATH
9199 amigaos*)
9200 library_names_spec='$libname.ixlibrary $libname.a'
9201 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9202 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'
9205 beos*)
9206 library_names_spec='${libname}${shared_ext}'
9207 dynamic_linker="$host_os ld.so"
9208 shlibpath_var=LIBRARY_PATH
9211 bsdi[45]*)
9212 version_type=linux
9213 need_version=no
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9220 # the default ld.so.conf also contains /usr/contrib/lib and
9221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9222 # libtool to hard-code these into programs
9225 cygwin* | mingw* | pw32*)
9226 version_type=windows
9227 shrext_cmds=".dll"
9228 need_version=no
9229 need_lib_prefix=no
9231 case $GCC,$host_os in
9232 yes,cygwin* | yes,mingw* | yes,pw32*)
9233 library_names_spec='$libname.dll.a'
9234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9235 postinstall_cmds='base_file=`basename \${file}`~
9236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9237 dldir=$destdir/`dirname \$dlpath`~
9238 test -d \$dldir || mkdir -p \$dldir~
9239 $install_prog $dir/$dlname \$dldir/$dlname~
9240 chmod a+x \$dldir/$dlname'
9241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9242 dlpath=$dir/\$dldll~
9243 $rm \$dlpath'
9244 shlibpath_overrides_runpath=yes
9246 case $host_os in
9247 cygwin*)
9248 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9249 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9250 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9252 mingw*)
9253 # MinGW DLLs use traditional 'lib' prefix
9254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9257 # It is most probably a Windows format PATH printed by
9258 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9259 # path with ; separators, and with drive letters. We can handle the
9260 # drive letters (cygwin fileutils understands them), so leave them,
9261 # especially as we might pass files found there to a mingw objdump,
9262 # which wouldn't understand a cygwinified path. Ahh.
9263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9264 else
9265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9268 pw32*)
9269 # pw32 DLLs use 'pw' prefix rather than 'lib'
9270 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9272 esac
9276 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9278 esac
9279 dynamic_linker='Win32 ld.exe'
9280 # FIXME: first we should search . and the directory the executable is in
9281 shlibpath_var=PATH
9284 darwin* | rhapsody*)
9285 dynamic_linker="$host_os dyld"
9286 version_type=darwin
9287 need_lib_prefix=no
9288 need_version=no
9289 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9290 soname_spec='${libname}${release}${major}$shared_ext'
9291 shlibpath_overrides_runpath=yes
9292 shlibpath_var=DYLD_LIBRARY_PATH
9293 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9295 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9296 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9299 dgux*)
9300 version_type=linux
9301 need_lib_prefix=no
9302 need_version=no
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9308 freebsd1*)
9309 dynamic_linker=no
9312 freebsd* | dragonfly*)
9313 # DragonFly does not have aout. When/if they implement a new
9314 # versioning mechanism, adjust this.
9315 if test -x /usr/bin/objformat; then
9316 objformat=`/usr/bin/objformat`
9317 else
9318 case $host_os in
9319 freebsd[123]*) objformat=aout ;;
9320 *) objformat=elf ;;
9321 esac
9323 version_type=freebsd-$objformat
9324 case $version_type in
9325 freebsd-elf*)
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9327 need_version=no
9328 need_lib_prefix=no
9330 freebsd-*)
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9332 need_version=yes
9334 esac
9335 shlibpath_var=LD_LIBRARY_PATH
9336 case $host_os in
9337 freebsd2*)
9338 shlibpath_overrides_runpath=yes
9340 freebsd3.[01]* | freebsdelf3.[01]*)
9341 shlibpath_overrides_runpath=yes
9342 hardcode_into_libs=yes
9344 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9345 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9346 shlibpath_overrides_runpath=no
9347 hardcode_into_libs=yes
9349 *) # from 4.6 on, and DragonFly
9350 shlibpath_overrides_runpath=yes
9351 hardcode_into_libs=yes
9353 esac
9356 gnu*)
9357 version_type=linux
9358 need_lib_prefix=no
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 hardcode_into_libs=yes
9366 hpux9* | hpux10* | hpux11*)
9367 # Give a soname corresponding to the major version so that dld.sl refuses to
9368 # link against other versions.
9369 version_type=sunos
9370 need_lib_prefix=no
9371 need_version=no
9372 case $host_cpu in
9373 ia64*)
9374 shrext_cmds='.so'
9375 hardcode_into_libs=yes
9376 dynamic_linker="$host_os dld.so"
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 if test "X$HPUX_IA64_MODE" = X32; then
9382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9383 else
9384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9388 hppa*64*)
9389 shrext_cmds='.sl'
9390 hardcode_into_libs=yes
9391 dynamic_linker="$host_os dld.sl"
9392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9400 shrext_cmds='.sl'
9401 dynamic_linker="$host_os dld.sl"
9402 shlibpath_var=SHLIB_PATH
9403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9407 esac
9408 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9409 postinstall_cmds='chmod 555 $lib'
9412 interix[3-9]*)
9413 version_type=linux
9414 need_lib_prefix=no
9415 need_version=no
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=no
9421 hardcode_into_libs=yes
9424 irix5* | irix6* | nonstopux*)
9425 case $host_os in
9426 nonstopux*) version_type=nonstopux ;;
9428 if test "$lt_cv_prog_gnu_ld" = yes; then
9429 version_type=linux
9430 else
9431 version_type=irix
9432 fi ;;
9433 esac
9434 need_lib_prefix=no
9435 need_version=no
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9438 case $host_os in
9439 irix5* | nonstopux*)
9440 libsuff= shlibsuff=
9443 case $LD in # libtool.m4 will add one of these switches to LD
9444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9445 libsuff= shlibsuff= libmagic=32-bit;;
9446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9447 libsuff=32 shlibsuff=N32 libmagic=N32;;
9448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9450 *) libsuff= shlibsuff= libmagic=never-match;;
9451 esac
9453 esac
9454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9455 shlibpath_overrides_runpath=no
9456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9458 hardcode_into_libs=yes
9461 # No shared lib support for Linux oldld, aout, or coff.
9462 linux*oldld* | linux*aout* | linux*coff*)
9463 dynamic_linker=no
9466 # This must be Linux ELF.
9467 linux* | k*bsd*-gnu)
9468 version_type=linux
9469 need_lib_prefix=no
9470 need_version=no
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=no
9476 # This implies no fast_install, which is unacceptable.
9477 # Some rework will be needed to allow for fast_install
9478 # before this can be enabled.
9479 hardcode_into_libs=yes
9481 # Append ld.so.conf contents to the search path
9482 if test -f /etc/ld.so.conf; then
9483 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' ' '`
9484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9487 # We used to test for /lib/ld.so.1 and disable shared libraries on
9488 # powerpc, because MkLinux only supported shared libraries with the
9489 # GNU dynamic linker. Since this was broken with cross compilers,
9490 # most powerpc-linux boxes support dynamic linking these days and
9491 # people can always --disable-shared, the test was removed, and we
9492 # assume the GNU/Linux dynamic linker is in use.
9493 dynamic_linker='GNU/Linux ld.so'
9496 netbsd*)
9497 version_type=sunos
9498 need_lib_prefix=no
9499 need_version=no
9500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9503 dynamic_linker='NetBSD (a.out) ld.so'
9504 else
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 dynamic_linker='NetBSD ld.elf_so'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 shlibpath_overrides_runpath=yes
9511 hardcode_into_libs=yes
9514 newsos6)
9515 version_type=linux
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=yes
9521 nto-qnx*)
9522 version_type=linux
9523 need_lib_prefix=no
9524 need_version=no
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 shlibpath_var=LD_LIBRARY_PATH
9528 shlibpath_overrides_runpath=yes
9531 openbsd*)
9532 version_type=sunos
9533 sys_lib_dlsearch_path_spec="/usr/lib"
9534 need_lib_prefix=no
9535 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9536 case $host_os in
9537 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9538 *) need_version=no ;;
9539 esac
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9544 case $host_os in
9545 openbsd2.[89] | openbsd2.[89].*)
9546 shlibpath_overrides_runpath=no
9549 shlibpath_overrides_runpath=yes
9551 esac
9552 else
9553 shlibpath_overrides_runpath=yes
9557 os2*)
9558 libname_spec='$name'
9559 shrext_cmds=".dll"
9560 need_lib_prefix=no
9561 library_names_spec='$libname${shared_ext} $libname.a'
9562 dynamic_linker='OS/2 ld.exe'
9563 shlibpath_var=LIBPATH
9566 osf3* | osf4* | osf5*)
9567 version_type=osf
9568 need_lib_prefix=no
9569 need_version=no
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9574 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9577 rdos*)
9578 dynamic_linker=no
9581 solaris*)
9582 version_type=linux
9583 need_lib_prefix=no
9584 need_version=no
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath=yes
9589 hardcode_into_libs=yes
9590 # ldd complains unless libraries are executable
9591 postinstall_cmds='chmod +x $lib'
9594 sunos4*)
9595 version_type=sunos
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 shlibpath_overrides_runpath=yes
9600 if test "$with_gnu_ld" = yes; then
9601 need_lib_prefix=no
9603 need_version=yes
9606 sysv4 | sysv4.3*)
9607 version_type=linux
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 shlibpath_var=LD_LIBRARY_PATH
9611 case $host_vendor in
9612 sni)
9613 shlibpath_overrides_runpath=no
9614 need_lib_prefix=no
9615 export_dynamic_flag_spec='${wl}-Blargedynsym'
9616 runpath_var=LD_RUN_PATH
9618 siemens)
9619 need_lib_prefix=no
9621 motorola)
9622 need_lib_prefix=no
9623 need_version=no
9624 shlibpath_overrides_runpath=no
9625 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9627 esac
9630 sysv4*MP*)
9631 if test -d /usr/nec ;then
9632 version_type=linux
9633 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9634 soname_spec='$libname${shared_ext}.$major'
9635 shlibpath_var=LD_LIBRARY_PATH
9639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9640 version_type=freebsd-elf
9641 need_lib_prefix=no
9642 need_version=no
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 hardcode_into_libs=yes
9647 if test "$with_gnu_ld" = yes; then
9648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9649 shlibpath_overrides_runpath=no
9650 else
9651 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9652 shlibpath_overrides_runpath=yes
9653 case $host_os in
9654 sco3.2v5*)
9655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9657 esac
9659 sys_lib_dlsearch_path_spec='/usr/lib'
9662 uts4*)
9663 version_type=linux
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665 soname_spec='${libname}${release}${shared_ext}$major'
9666 shlibpath_var=LD_LIBRARY_PATH
9670 dynamic_linker=no
9672 esac
9673 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9674 echo "${ECHO_T}$dynamic_linker" >&6; }
9675 test "$dynamic_linker" = no && can_build_shared=no
9677 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9683 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9692 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9693 if test "$GCC" = yes; then
9694 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9697 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9698 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9699 hardcode_action=
9700 if test -n "$hardcode_libdir_flag_spec" || \
9701 test -n "$runpath_var" || \
9702 test "X$hardcode_automatic" = "Xyes" ; then
9704 # We can hardcode non-existant directories.
9705 if test "$hardcode_direct" != no &&
9706 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9707 # have to relink, otherwise we might link with an installed library
9708 # when we should be linking with a yet-to-be-installed one
9709 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9710 test "$hardcode_minus_L" != no; then
9711 # Linking always hardcodes the temporary library directory.
9712 hardcode_action=relink
9713 else
9714 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9715 hardcode_action=immediate
9717 else
9718 # We cannot hardcode anything, or else we can only hardcode existing
9719 # directories.
9720 hardcode_action=unsupported
9722 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9723 echo "${ECHO_T}$hardcode_action" >&6; }
9725 if test "$hardcode_action" = relink; then
9726 # Fast installation is not supported
9727 enable_fast_install=no
9728 elif test "$shlibpath_overrides_runpath" = yes ||
9729 test "$enable_shared" = no; then
9730 # Fast installation is not necessary
9731 enable_fast_install=needless
9734 striplib=
9735 old_striplib=
9736 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9737 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9738 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9741 { echo "$as_me:$LINENO: result: yes" >&5
9742 echo "${ECHO_T}yes" >&6; }
9743 else
9744 # FIXME - insert some real tests, host_os isn't really good enough
9745 case $host_os in
9746 darwin*)
9747 if test -n "$STRIP" ; then
9748 striplib="$STRIP -x"
9749 old_striplib="$STRIP -S"
9750 { echo "$as_me:$LINENO: result: yes" >&5
9751 echo "${ECHO_T}yes" >&6; }
9752 else
9753 { echo "$as_me:$LINENO: result: no" >&5
9754 echo "${ECHO_T}no" >&6; }
9758 { echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6; }
9761 esac
9764 if test "x$enable_dlopen" != xyes; then
9765 enable_dlopen=unknown
9766 enable_dlopen_self=unknown
9767 enable_dlopen_self_static=unknown
9768 else
9769 lt_cv_dlopen=no
9770 lt_cv_dlopen_libs=
9772 case $host_os in
9773 beos*)
9774 lt_cv_dlopen="load_add_on"
9775 lt_cv_dlopen_libs=
9776 lt_cv_dlopen_self=yes
9779 mingw* | pw32*)
9780 lt_cv_dlopen="LoadLibrary"
9781 lt_cv_dlopen_libs=
9784 cygwin*)
9785 lt_cv_dlopen="dlopen"
9786 lt_cv_dlopen_libs=
9789 darwin*)
9790 # if libdl is installed we need to link against it
9791 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796 ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-ldl $LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 char dlopen ();
9813 main ()
9815 return dlopen ();
9817 return 0;
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9822 case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && {
9834 test -z "$ac_c_werror_flag" ||
9835 test ! -s conftest.err
9836 } && test -s conftest$ac_exeext &&
9837 $as_test_x conftest$ac_exeext; then
9838 ac_cv_lib_dl_dlopen=yes
9839 else
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_lib_dl_dlopen=no
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847 conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9850 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9851 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9852 if test $ac_cv_lib_dl_dlopen = yes; then
9853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9854 else
9856 lt_cv_dlopen="dyld"
9857 lt_cv_dlopen_libs=
9858 lt_cv_dlopen_self=yes
9865 { echo "$as_me:$LINENO: checking for shl_load" >&5
9866 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9867 if test "${ac_cv_func_shl_load+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h. */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9876 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9878 #define shl_load innocuous_shl_load
9880 /* System header to define __stub macros and hopefully few prototypes,
9881 which can conflict with char shl_load (); below.
9882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9883 <limits.h> exists even on freestanding compilers. */
9885 #ifdef __STDC__
9886 # include <limits.h>
9887 #else
9888 # include <assert.h>
9889 #endif
9891 #undef shl_load
9893 /* Override any GCC internal prototype to avoid an error.
9894 Use char because int might match the return type of a GCC
9895 builtin and then its argument prototype would still apply. */
9896 #ifdef __cplusplus
9897 extern "C"
9898 #endif
9899 char shl_load ();
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined __stub_shl_load || defined __stub___shl_load
9904 choke me
9905 #endif
9908 main ()
9910 return shl_load ();
9912 return 0;
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext &&
9932 $as_test_x conftest$ac_exeext; then
9933 ac_cv_func_shl_load=yes
9934 else
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 ac_cv_func_shl_load=no
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942 conftest$ac_exeext conftest.$ac_ext
9944 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9945 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9946 if test $ac_cv_func_shl_load = yes; then
9947 lt_cv_dlopen="shl_load"
9948 else
9949 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9950 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9951 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954 ac_check_lib_save_LIBS=$LIBS
9955 LIBS="-ldld $LIBS"
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h. */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9963 /* Override any GCC internal prototype to avoid an error.
9964 Use char because int might match the return type of a GCC
9965 builtin and then its argument prototype would still apply. */
9966 #ifdef __cplusplus
9967 extern "C"
9968 #endif
9969 char shl_load ();
9971 main ()
9973 return shl_load ();
9975 return 0;
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9980 case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_link") 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest$ac_exeext &&
9995 $as_test_x conftest$ac_exeext; then
9996 ac_cv_lib_dld_shl_load=yes
9997 else
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10001 ac_cv_lib_dld_shl_load=no
10004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10008 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10009 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10010 if test $ac_cv_lib_dld_shl_load = yes; then
10011 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10012 else
10013 { echo "$as_me:$LINENO: checking for dlopen" >&5
10014 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10015 if test "${ac_cv_func_dlopen+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026 #define dlopen innocuous_dlopen
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char dlopen (); below.
10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 <limits.h> exists even on freestanding compilers. */
10033 #ifdef __STDC__
10034 # include <limits.h>
10035 #else
10036 # include <assert.h>
10037 #endif
10039 #undef dlopen
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 char dlopen ();
10048 /* The GNU C library defines this for functions which it implements
10049 to always fail with ENOSYS. Some functions are actually named
10050 something starting with __ and the normal name is an alias. */
10051 #if defined __stub_dlopen || defined __stub___dlopen
10052 choke me
10053 #endif
10056 main ()
10058 return dlopen ();
10060 return 0;
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_link") 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest$ac_exeext &&
10080 $as_test_x conftest$ac_exeext; then
10081 ac_cv_func_dlopen=yes
10082 else
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 ac_cv_func_dlopen=no
10089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090 conftest$ac_exeext conftest.$ac_ext
10092 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10093 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10094 if test $ac_cv_func_dlopen = yes; then
10095 lt_cv_dlopen="dlopen"
10096 else
10097 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10098 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-ldl $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10111 /* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
10114 #ifdef __cplusplus
10115 extern "C"
10116 #endif
10117 char dlopen ();
10119 main ()
10121 return dlopen ();
10123 return 0;
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_link") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest$ac_exeext &&
10143 $as_test_x conftest$ac_exeext; then
10144 ac_cv_lib_dl_dlopen=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_lib_dl_dlopen=no
10152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10153 conftest$ac_exeext conftest.$ac_ext
10154 LIBS=$ac_check_lib_save_LIBS
10156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10158 if test $ac_cv_lib_dl_dlopen = yes; then
10159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10160 else
10161 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10162 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166 ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-lsvld $LIBS"
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 char dlopen ();
10183 main ()
10185 return dlopen ();
10187 return 0;
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && {
10204 test -z "$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 } && test -s conftest$ac_exeext &&
10207 $as_test_x conftest$ac_exeext; then
10208 ac_cv_lib_svld_dlopen=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_lib_svld_dlopen=no
10216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10220 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10221 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10222 if test $ac_cv_lib_svld_dlopen = yes; then
10223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10224 else
10225 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10226 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10227 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-ldld $LIBS"
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10239 /* Override any GCC internal prototype to avoid an error.
10240 Use char because int might match the return type of a GCC
10241 builtin and then its argument prototype would still apply. */
10242 #ifdef __cplusplus
10243 extern "C"
10244 #endif
10245 char dld_link ();
10247 main ()
10249 return dld_link ();
10251 return 0;
10253 _ACEOF
10254 rm -f conftest.$ac_objext conftest$ac_exeext
10255 if { (ac_try="$ac_link"
10256 case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_link") 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && {
10268 test -z "$ac_c_werror_flag" ||
10269 test ! -s conftest.err
10270 } && test -s conftest$ac_exeext &&
10271 $as_test_x conftest$ac_exeext; then
10272 ac_cv_lib_dld_dld_link=yes
10273 else
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_lib_dld_dld_link=no
10280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10281 conftest$ac_exeext conftest.$ac_ext
10282 LIBS=$ac_check_lib_save_LIBS
10284 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10285 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10286 if test $ac_cv_lib_dld_dld_link = yes; then
10287 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10306 esac
10308 if test "x$lt_cv_dlopen" != xno; then
10309 enable_dlopen=yes
10310 else
10311 enable_dlopen=no
10314 case $lt_cv_dlopen in
10315 dlopen)
10316 save_CPPFLAGS="$CPPFLAGS"
10317 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10319 save_LDFLAGS="$LDFLAGS"
10320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10322 save_LIBS="$LIBS"
10323 LIBS="$lt_cv_dlopen_libs $LIBS"
10325 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10326 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10327 if test "${lt_cv_dlopen_self+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330 if test "$cross_compiling" = yes; then :
10331 lt_cv_dlopen_self=cross
10332 else
10333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10334 lt_status=$lt_dlunknown
10335 cat > conftest.$ac_ext <<EOF
10336 #line 10336 "configure"
10337 #include "confdefs.h"
10339 #if HAVE_DLFCN_H
10340 #include <dlfcn.h>
10341 #endif
10343 #include <stdio.h>
10345 #ifdef RTLD_GLOBAL
10346 # define LT_DLGLOBAL RTLD_GLOBAL
10347 #else
10348 # ifdef DL_GLOBAL
10349 # define LT_DLGLOBAL DL_GLOBAL
10350 # else
10351 # define LT_DLGLOBAL 0
10352 # endif
10353 #endif
10355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10356 find out it does not work in some platform. */
10357 #ifndef LT_DLLAZY_OR_NOW
10358 # ifdef RTLD_LAZY
10359 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10360 # else
10361 # ifdef DL_LAZY
10362 # define LT_DLLAZY_OR_NOW DL_LAZY
10363 # else
10364 # ifdef RTLD_NOW
10365 # define LT_DLLAZY_OR_NOW RTLD_NOW
10366 # else
10367 # ifdef DL_NOW
10368 # define LT_DLLAZY_OR_NOW DL_NOW
10369 # else
10370 # define LT_DLLAZY_OR_NOW 0
10371 # endif
10372 # endif
10373 # endif
10374 # endif
10375 #endif
10377 #ifdef __cplusplus
10378 extern "C" void exit (int);
10379 #endif
10381 void fnord() { int i=42;}
10382 int main ()
10384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10385 int status = $lt_dlunknown;
10387 if (self)
10389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10391 /* dlclose (self); */
10393 else
10394 puts (dlerror ());
10396 exit (status);
10399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400 (eval $ac_link) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10404 (./conftest; exit; ) >&5 2>/dev/null
10405 lt_status=$?
10406 case x$lt_status in
10407 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10408 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10409 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10410 esac
10411 else :
10412 # compilation failed
10413 lt_cv_dlopen_self=no
10416 rm -fr conftest*
10420 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10421 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10423 if test "x$lt_cv_dlopen_self" = xyes; then
10424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10425 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10426 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10427 if test "${lt_cv_dlopen_self_static+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430 if test "$cross_compiling" = yes; then :
10431 lt_cv_dlopen_self_static=cross
10432 else
10433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10434 lt_status=$lt_dlunknown
10435 cat > conftest.$ac_ext <<EOF
10436 #line 10436 "configure"
10437 #include "confdefs.h"
10439 #if HAVE_DLFCN_H
10440 #include <dlfcn.h>
10441 #endif
10443 #include <stdio.h>
10445 #ifdef RTLD_GLOBAL
10446 # define LT_DLGLOBAL RTLD_GLOBAL
10447 #else
10448 # ifdef DL_GLOBAL
10449 # define LT_DLGLOBAL DL_GLOBAL
10450 # else
10451 # define LT_DLGLOBAL 0
10452 # endif
10453 #endif
10455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10456 find out it does not work in some platform. */
10457 #ifndef LT_DLLAZY_OR_NOW
10458 # ifdef RTLD_LAZY
10459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10460 # else
10461 # ifdef DL_LAZY
10462 # define LT_DLLAZY_OR_NOW DL_LAZY
10463 # else
10464 # ifdef RTLD_NOW
10465 # define LT_DLLAZY_OR_NOW RTLD_NOW
10466 # else
10467 # ifdef DL_NOW
10468 # define LT_DLLAZY_OR_NOW DL_NOW
10469 # else
10470 # define LT_DLLAZY_OR_NOW 0
10471 # endif
10472 # endif
10473 # endif
10474 # endif
10475 #endif
10477 #ifdef __cplusplus
10478 extern "C" void exit (int);
10479 #endif
10481 void fnord() { int i=42;}
10482 int main ()
10484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10485 int status = $lt_dlunknown;
10487 if (self)
10489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10490 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10491 /* dlclose (self); */
10493 else
10494 puts (dlerror ());
10496 exit (status);
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10504 (./conftest; exit; ) >&5 2>/dev/null
10505 lt_status=$?
10506 case x$lt_status in
10507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10510 esac
10511 else :
10512 # compilation failed
10513 lt_cv_dlopen_self_static=no
10516 rm -fr conftest*
10520 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10521 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10524 CPPFLAGS="$save_CPPFLAGS"
10525 LDFLAGS="$save_LDFLAGS"
10526 LIBS="$save_LIBS"
10528 esac
10530 case $lt_cv_dlopen_self in
10531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10532 *) enable_dlopen_self=unknown ;;
10533 esac
10535 case $lt_cv_dlopen_self_static in
10536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10537 *) enable_dlopen_self_static=unknown ;;
10538 esac
10542 # Report which library types will actually be built
10543 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10544 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10545 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10546 echo "${ECHO_T}$can_build_shared" >&6; }
10548 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10549 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10550 test "$can_build_shared" = "no" && enable_shared=no
10552 # On AIX, shared libraries and static libraries use the same namespace, and
10553 # are all built from PIC.
10554 case $host_os in
10555 aix3*)
10556 test "$enable_shared" = yes && enable_static=no
10557 if test -n "$RANLIB"; then
10558 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10559 postinstall_cmds='$RANLIB $lib'
10563 aix[4-9]*)
10564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10565 test "$enable_shared" = yes && enable_static=no
10568 esac
10569 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10570 echo "${ECHO_T}$enable_shared" >&6; }
10572 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10573 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10574 # Make sure either enable_shared or enable_static is yes.
10575 test "$enable_shared" = yes || enable_static=yes
10576 { echo "$as_me:$LINENO: result: $enable_static" >&5
10577 echo "${ECHO_T}$enable_static" >&6; }
10579 # The else clause should only fire when bootstrapping the
10580 # libtool distribution, otherwise you forgot to ship ltmain.sh
10581 # with your package, and you will get complaints that there are
10582 # no rules to generate ltmain.sh.
10583 if test -f "$ltmain"; then
10584 # See if we are running on zsh, and set the options which allow our commands through
10585 # without removal of \ escapes.
10586 if test -n "${ZSH_VERSION+set}" ; then
10587 setopt NO_GLOB_SUBST
10589 # Now quote all the things that may contain metacharacters while being
10590 # careful not to overquote the AC_SUBSTed values. We take copies of the
10591 # variables and quote the copies for generation of the libtool script.
10592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10593 SED SHELL STRIP \
10594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10596 deplibs_check_method reload_flag reload_cmds need_locks \
10597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10598 lt_cv_sys_global_symbol_to_c_name_address \
10599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10600 old_postinstall_cmds old_postuninstall_cmds \
10601 compiler \
10602 CC \
10603 LD \
10604 lt_prog_compiler_wl \
10605 lt_prog_compiler_pic \
10606 lt_prog_compiler_static \
10607 lt_prog_compiler_no_builtin_flag \
10608 export_dynamic_flag_spec \
10609 thread_safe_flag_spec \
10610 whole_archive_flag_spec \
10611 enable_shared_with_static_runtimes \
10612 old_archive_cmds \
10613 old_archive_from_new_cmds \
10614 predep_objects \
10615 postdep_objects \
10616 predeps \
10617 postdeps \
10618 compiler_lib_search_path \
10619 compiler_lib_search_dirs \
10620 archive_cmds \
10621 archive_expsym_cmds \
10622 postinstall_cmds \
10623 postuninstall_cmds \
10624 old_archive_from_expsyms_cmds \
10625 allow_undefined_flag \
10626 no_undefined_flag \
10627 export_symbols_cmds \
10628 hardcode_libdir_flag_spec \
10629 hardcode_libdir_flag_spec_ld \
10630 hardcode_libdir_separator \
10631 hardcode_automatic \
10632 module_cmds \
10633 module_expsym_cmds \
10634 lt_cv_prog_compiler_c_o \
10635 fix_srcfile_path \
10636 exclude_expsyms \
10637 include_expsyms; do
10639 case $var in
10640 old_archive_cmds | \
10641 old_archive_from_new_cmds | \
10642 archive_cmds | \
10643 archive_expsym_cmds | \
10644 module_cmds | \
10645 module_expsym_cmds | \
10646 old_archive_from_expsyms_cmds | \
10647 export_symbols_cmds | \
10648 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10649 postinstall_cmds | postuninstall_cmds | \
10650 old_postinstall_cmds | old_postuninstall_cmds | \
10651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10652 # Double-quote double-evaled strings.
10653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10658 esac
10659 done
10661 case $lt_echo in
10662 *'\$0 --fallback-echo"')
10663 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10665 esac
10667 cfgfile="${ofile}T"
10668 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10669 $rm -f "$cfgfile"
10670 { echo "$as_me:$LINENO: creating $ofile" >&5
10671 echo "$as_me: creating $ofile" >&6;}
10673 cat <<__EOF__ >> "$cfgfile"
10674 #! $SHELL
10676 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10677 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10678 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10680 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10681 # Free Software Foundation, Inc.
10683 # This file is part of GNU Libtool:
10684 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10686 # This program is free software; you can redistribute it and/or modify
10687 # it under the terms of the GNU General Public License as published by
10688 # the Free Software Foundation; either version 2 of the License, or
10689 # (at your option) any later version.
10691 # This program is distributed in the hope that it will be useful, but
10692 # WITHOUT ANY WARRANTY; without even the implied warranty of
10693 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10694 # General Public License for more details.
10696 # You should have received a copy of the GNU General Public License
10697 # along with this program; if not, write to the Free Software
10698 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10700 # As a special exception to the GNU General Public License, if you
10701 # distribute this file as part of a program that contains a
10702 # configuration script generated by Autoconf, you may include it under
10703 # the same distribution terms that you use for the rest of that program.
10705 # A sed program that does not truncate output.
10706 SED=$lt_SED
10708 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10709 Xsed="$SED -e 1s/^X//"
10711 # The HP-UX ksh and POSIX shell print the target directory to stdout
10712 # if CDPATH is set.
10713 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10715 # The names of the tagged configurations supported by this script.
10716 available_tags=
10718 # ### BEGIN LIBTOOL CONFIG
10720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10722 # Shell to use when invoking shell scripts.
10723 SHELL=$lt_SHELL
10725 # Whether or not to build shared libraries.
10726 build_libtool_libs=$enable_shared
10728 # Whether or not to build static libraries.
10729 build_old_libs=$enable_static
10731 # Whether or not to add -lc for building shared libraries.
10732 build_libtool_need_lc=$archive_cmds_need_lc
10734 # Whether or not to disallow shared libs when runtime libs are static
10735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10737 # Whether or not to optimize for fast installation.
10738 fast_install=$enable_fast_install
10740 # The host system.
10741 host_alias=$host_alias
10742 host=$host
10743 host_os=$host_os
10745 # The build system.
10746 build_alias=$build_alias
10747 build=$build
10748 build_os=$build_os
10750 # An echo program that does not interpret backslashes.
10751 echo=$lt_echo
10753 # The archiver.
10754 AR=$lt_AR
10755 AR_FLAGS=$lt_AR_FLAGS
10757 # A C compiler.
10758 LTCC=$lt_LTCC
10760 # LTCC compiler flags.
10761 LTCFLAGS=$lt_LTCFLAGS
10763 # A language-specific compiler.
10764 CC=$lt_compiler
10766 # Is the compiler the GNU C compiler?
10767 with_gcc=$GCC
10769 # An ERE matcher.
10770 EGREP=$lt_EGREP
10772 # The linker used to build libraries.
10773 LD=$lt_LD
10775 # Whether we need hard or soft links.
10776 LN_S=$lt_LN_S
10778 # A BSD-compatible nm program.
10779 NM=$lt_NM
10781 # A symbol stripping program
10782 STRIP=$lt_STRIP
10784 # Used to examine libraries when file_magic_cmd begins "file"
10785 MAGIC_CMD=$MAGIC_CMD
10787 # Used on cygwin: DLL creation program.
10788 DLLTOOL="$DLLTOOL"
10790 # Used on cygwin: object dumper.
10791 OBJDUMP="$OBJDUMP"
10793 # Used on cygwin: assembler.
10794 AS="$AS"
10796 # The name of the directory that contains temporary libtool files.
10797 objdir=$objdir
10799 # How to create reloadable object files.
10800 reload_flag=$lt_reload_flag
10801 reload_cmds=$lt_reload_cmds
10803 # How to pass a linker flag through the compiler.
10804 wl=$lt_lt_prog_compiler_wl
10806 # Object file suffix (normally "o").
10807 objext="$ac_objext"
10809 # Old archive suffix (normally "a").
10810 libext="$libext"
10812 # Shared library suffix (normally ".so").
10813 shrext_cmds='$shrext_cmds'
10815 # Executable file suffix (normally "").
10816 exeext="$exeext"
10818 # Additional compiler flags for building library objects.
10819 pic_flag=$lt_lt_prog_compiler_pic
10820 pic_mode=$pic_mode
10822 # What is the maximum length of a command?
10823 max_cmd_len=$lt_cv_sys_max_cmd_len
10825 # Does compiler simultaneously support -c and -o options?
10826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10828 # Must we lock files when doing compilation?
10829 need_locks=$lt_need_locks
10831 # Do we need the lib prefix for modules?
10832 need_lib_prefix=$need_lib_prefix
10834 # Do we need a version for libraries?
10835 need_version=$need_version
10837 # Whether dlopen is supported.
10838 dlopen_support=$enable_dlopen
10840 # Whether dlopen of programs is supported.
10841 dlopen_self=$enable_dlopen_self
10843 # Whether dlopen of statically linked programs is supported.
10844 dlopen_self_static=$enable_dlopen_self_static
10846 # Compiler flag to prevent dynamic linking.
10847 link_static_flag=$lt_lt_prog_compiler_static
10849 # Compiler flag to turn off builtin functions.
10850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10852 # Compiler flag to allow reflexive dlopens.
10853 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10855 # Compiler flag to generate shared objects directly from archives.
10856 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10858 # Compiler flag to generate thread-safe objects.
10859 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10861 # Library versioning type.
10862 version_type=$version_type
10864 # Format of library name prefix.
10865 libname_spec=$lt_libname_spec
10867 # List of archive names. First name is the real one, the rest are links.
10868 # The last name is the one that the linker finds with -lNAME.
10869 library_names_spec=$lt_library_names_spec
10871 # The coded name of the library, if different from the real name.
10872 soname_spec=$lt_soname_spec
10874 # Commands used to build and install an old-style archive.
10875 RANLIB=$lt_RANLIB
10876 old_archive_cmds=$lt_old_archive_cmds
10877 old_postinstall_cmds=$lt_old_postinstall_cmds
10878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10880 # Create an old-style archive from a shared archive.
10881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10883 # Create a temporary old-style archive to link instead of a shared archive.
10884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10886 # Commands used to build and install a shared archive.
10887 archive_cmds=$lt_archive_cmds
10888 archive_expsym_cmds=$lt_archive_expsym_cmds
10889 postinstall_cmds=$lt_postinstall_cmds
10890 postuninstall_cmds=$lt_postuninstall_cmds
10892 # Commands used to build a loadable module (assumed same as above if empty)
10893 module_cmds=$lt_module_cmds
10894 module_expsym_cmds=$lt_module_expsym_cmds
10896 # Commands to strip libraries.
10897 old_striplib=$lt_old_striplib
10898 striplib=$lt_striplib
10900 # Dependencies to place before the objects being linked to create a
10901 # shared library.
10902 predep_objects=$lt_predep_objects
10904 # Dependencies to place after the objects being linked to create a
10905 # shared library.
10906 postdep_objects=$lt_postdep_objects
10908 # Dependencies to place before the objects being linked to create a
10909 # shared library.
10910 predeps=$lt_predeps
10912 # Dependencies to place after the objects being linked to create a
10913 # shared library.
10914 postdeps=$lt_postdeps
10916 # The directories searched by this compiler when creating a shared
10917 # library
10918 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10920 # The library search path used internally by the compiler when linking
10921 # a shared library.
10922 compiler_lib_search_path=$lt_compiler_lib_search_path
10924 # Method to check whether dependent libraries are shared objects.
10925 deplibs_check_method=$lt_deplibs_check_method
10927 # Command to use when deplibs_check_method == file_magic.
10928 file_magic_cmd=$lt_file_magic_cmd
10930 # Flag that allows shared libraries with undefined symbols to be built.
10931 allow_undefined_flag=$lt_allow_undefined_flag
10933 # Flag that forces no undefined symbols.
10934 no_undefined_flag=$lt_no_undefined_flag
10936 # Commands used to finish a libtool library installation in a directory.
10937 finish_cmds=$lt_finish_cmds
10939 # Same as above, but a single script fragment to be evaled but not shown.
10940 finish_eval=$lt_finish_eval
10942 # Take the output of nm and produce a listing of raw symbols and C names.
10943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10945 # Transform the output of nm in a proper C declaration
10946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10948 # Transform the output of nm in a C name address pair
10949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10951 # This is the shared library runtime path variable.
10952 runpath_var=$runpath_var
10954 # This is the shared library path variable.
10955 shlibpath_var=$shlibpath_var
10957 # Is shlibpath searched before the hard-coded library search path?
10958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10960 # How to hardcode a shared library path into an executable.
10961 hardcode_action=$hardcode_action
10963 # Whether we should hardcode library paths into libraries.
10964 hardcode_into_libs=$hardcode_into_libs
10966 # Flag to hardcode \$libdir into a binary during linking.
10967 # This must work even if \$libdir does not exist.
10968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10970 # If ld is used when linking, flag to hardcode \$libdir into
10971 # a binary during linking. This must work even if \$libdir does
10972 # not exist.
10973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10975 # Whether we need a single -rpath flag with a separated argument.
10976 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10979 # resulting binary.
10980 hardcode_direct=$hardcode_direct
10982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10983 # resulting binary.
10984 hardcode_minus_L=$hardcode_minus_L
10986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10987 # the resulting binary.
10988 hardcode_shlibpath_var=$hardcode_shlibpath_var
10990 # Set to yes if building a shared library automatically hardcodes DIR into the library
10991 # and all subsequent libraries and executables linked against it.
10992 hardcode_automatic=$hardcode_automatic
10994 # Variables whose values should be saved in libtool wrapper scripts and
10995 # restored at relink time.
10996 variables_saved_for_relink="$variables_saved_for_relink"
10998 # Whether libtool must link a program against all its dependency libraries.
10999 link_all_deplibs=$link_all_deplibs
11001 # Compile-time system search path for libraries
11002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11004 # Run-time system search path for libraries
11005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11007 # Fix the shell variable \$srcfile for the compiler.
11008 fix_srcfile_path=$lt_fix_srcfile_path
11010 # Set to yes if exported symbols are required.
11011 always_export_symbols=$always_export_symbols
11013 # The commands to list exported symbols.
11014 export_symbols_cmds=$lt_export_symbols_cmds
11016 # The commands to extract the exported symbol list from a shared archive.
11017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11019 # Symbols that should not be listed in the preloaded symbols.
11020 exclude_expsyms=$lt_exclude_expsyms
11022 # Symbols that must always be exported.
11023 include_expsyms=$lt_include_expsyms
11025 # ### END LIBTOOL CONFIG
11027 __EOF__
11030 case $host_os in
11031 aix3*)
11032 cat <<\EOF >> "$cfgfile"
11034 # AIX sometimes has problems with the GCC collect2 program. For some
11035 # reason, if we set the COLLECT_NAMES environment variable, the problems
11036 # vanish in a puff of smoke.
11037 if test "X${COLLECT_NAMES+set}" != Xset; then
11038 COLLECT_NAMES=
11039 export COLLECT_NAMES
11043 esac
11045 # We use sed instead of cat because bash on DJGPP gets confused if
11046 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11047 # text mode, it properly converts lines to CR/LF. This bash problem
11048 # is reportedly fixed, but why not run on old versions too?
11049 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11051 mv -f "$cfgfile" "$ofile" || \
11052 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11053 chmod +x "$ofile"
11055 else
11056 # If there is no Makefile yet, we rely on a make rule to execute
11057 # `config.status --recheck' to rerun these tests and create the
11058 # libtool script then.
11059 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11060 if test -f "$ltmain_in"; then
11061 test -f Makefile && make "$ltmain"
11066 ac_ext=c
11067 ac_cpp='$CPP $CPPFLAGS'
11068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11072 CC="$lt_save_CC"
11075 # Check whether --with-tags was given.
11076 if test "${with_tags+set}" = set; then
11077 withval=$with_tags; tagnames="$withval"
11081 if test -f "$ltmain" && test -n "$tagnames"; then
11082 if test ! -f "${ofile}"; then
11083 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11084 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11087 if test -z "$LTCC"; then
11088 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11089 if test -z "$LTCC"; then
11090 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11091 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11092 else
11093 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11094 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11097 if test -z "$LTCFLAGS"; then
11098 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11101 # Extract list of available tagged configurations in $ofile.
11102 # Note that this assumes the entire list is on one line.
11103 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11106 for tagname in $tagnames; do
11107 IFS="$lt_save_ifs"
11108 # Check whether tagname contains only valid characters
11109 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11110 "") ;;
11111 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11112 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11113 { (exit 1); exit 1; }; }
11115 esac
11117 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11118 then
11119 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11120 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11121 { (exit 1); exit 1; }; }
11124 # Update the list of available tags.
11125 if test -n "$tagname"; then
11126 echo appending configuration tag \"$tagname\" to $ofile
11128 case $tagname in
11129 CXX)
11130 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11131 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11132 (test "X$CXX" != "Xg++"))) ; then
11133 ac_ext=cpp
11134 ac_cpp='$CXXCPP $CPPFLAGS'
11135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11142 archive_cmds_need_lc_CXX=no
11143 allow_undefined_flag_CXX=
11144 always_export_symbols_CXX=no
11145 archive_expsym_cmds_CXX=
11146 export_dynamic_flag_spec_CXX=
11147 hardcode_direct_CXX=no
11148 hardcode_libdir_flag_spec_CXX=
11149 hardcode_libdir_flag_spec_ld_CXX=
11150 hardcode_libdir_separator_CXX=
11151 hardcode_minus_L_CXX=no
11152 hardcode_shlibpath_var_CXX=unsupported
11153 hardcode_automatic_CXX=no
11154 module_cmds_CXX=
11155 module_expsym_cmds_CXX=
11156 link_all_deplibs_CXX=unknown
11157 old_archive_cmds_CXX=$old_archive_cmds
11158 no_undefined_flag_CXX=
11159 whole_archive_flag_spec_CXX=
11160 enable_shared_with_static_runtimes_CXX=no
11162 # Dependencies to place before and after the object being linked:
11163 predep_objects_CXX=
11164 postdep_objects_CXX=
11165 predeps_CXX=
11166 postdeps_CXX=
11167 compiler_lib_search_path_CXX=
11168 compiler_lib_search_dirs_CXX=
11170 # Source file extension for C++ test sources.
11171 ac_ext=cpp
11173 # Object file extension for compiled C++ test sources.
11174 objext=o
11175 objext_CXX=$objext
11177 # Code to be used in simple compile tests
11178 lt_simple_compile_test_code="int some_variable = 0;"
11180 # Code to be used in simple link tests
11181 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11183 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11185 # If no C compiler was specified, use CC.
11186 LTCC=${LTCC-"$CC"}
11188 # If no C compiler flags were specified, use CFLAGS.
11189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11191 # Allow CC to be a program name with arguments.
11192 compiler=$CC
11195 # save warnings/boilerplate of simple test code
11196 ac_outfile=conftest.$ac_objext
11197 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11198 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11199 _lt_compiler_boilerplate=`cat conftest.err`
11200 $rm conftest*
11202 ac_outfile=conftest.$ac_objext
11203 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11204 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11205 _lt_linker_boilerplate=`cat conftest.err`
11206 $rm -r conftest*
11209 # Allow CC to be a program name with arguments.
11210 lt_save_CC=$CC
11211 lt_save_LD=$LD
11212 lt_save_GCC=$GCC
11213 GCC=$GXX
11214 lt_save_with_gnu_ld=$with_gnu_ld
11215 lt_save_path_LD=$lt_cv_path_LD
11216 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11217 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11218 else
11219 $as_unset lt_cv_prog_gnu_ld
11221 if test -n "${lt_cv_path_LDCXX+set}"; then
11222 lt_cv_path_LD=$lt_cv_path_LDCXX
11223 else
11224 $as_unset lt_cv_path_LD
11226 test -z "${LDCXX+set}" || LD=$LDCXX
11227 CC=${CXX-"c++"}
11228 compiler=$CC
11229 compiler_CXX=$CC
11230 for cc_temp in $compiler""; do
11231 case $cc_temp in
11232 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11233 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11234 \-*) ;;
11235 *) break;;
11236 esac
11237 done
11238 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11241 # We don't want -fno-exception wen compiling C++ code, so set the
11242 # no_builtin_flag separately
11243 if test "$GXX" = yes; then
11244 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11245 else
11246 lt_prog_compiler_no_builtin_flag_CXX=
11249 if test "$GXX" = yes; then
11250 # Set up default GNU C++ configuration
11253 # Check whether --with-gnu-ld was given.
11254 if test "${with_gnu_ld+set}" = set; then
11255 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11256 else
11257 with_gnu_ld=no
11260 ac_prog=ld
11261 if test "$GCC" = yes; then
11262 # Check if gcc -print-prog-name=ld gives a path.
11263 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11264 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11265 case $host in
11266 *-*-mingw*)
11267 # gcc leaves a trailing carriage return which upsets mingw
11268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11271 esac
11272 case $ac_prog in
11273 # Accept absolute paths.
11274 [\\/]* | ?:[\\/]*)
11275 re_direlt='/[^/][^/]*/\.\./'
11276 # Canonicalize the pathname of ld
11277 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11278 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11279 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11280 done
11281 test -z "$LD" && LD="$ac_prog"
11284 # If it fails, then pretend we aren't using GCC.
11285 ac_prog=ld
11288 # If it is relative, then search for the first ld in PATH.
11289 with_gnu_ld=unknown
11291 esac
11292 elif test "$with_gnu_ld" = yes; then
11293 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11294 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11295 else
11296 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11297 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11299 if test "${lt_cv_path_LD+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 if test -z "$LD"; then
11303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11304 for ac_dir in $PATH; do
11305 IFS="$lt_save_ifs"
11306 test -z "$ac_dir" && ac_dir=.
11307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11308 lt_cv_path_LD="$ac_dir/$ac_prog"
11309 # Check to see if the program is GNU ld. I'd rather use --version,
11310 # but apparently some variants of GNU ld only accept -v.
11311 # Break only if it was the GNU/non-GNU ld that we prefer.
11312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11313 *GNU* | *'with BFD'*)
11314 test "$with_gnu_ld" != no && break
11317 test "$with_gnu_ld" != yes && break
11319 esac
11321 done
11322 IFS="$lt_save_ifs"
11323 else
11324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11328 LD="$lt_cv_path_LD"
11329 if test -n "$LD"; then
11330 { echo "$as_me:$LINENO: result: $LD" >&5
11331 echo "${ECHO_T}$LD" >&6; }
11332 else
11333 { echo "$as_me:$LINENO: result: no" >&5
11334 echo "${ECHO_T}no" >&6; }
11336 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11337 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11338 { (exit 1); exit 1; }; }
11339 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11340 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11341 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11345 case `$LD -v 2>&1 </dev/null` in
11346 *GNU* | *'with BFD'*)
11347 lt_cv_prog_gnu_ld=yes
11350 lt_cv_prog_gnu_ld=no
11352 esac
11354 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11355 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11356 with_gnu_ld=$lt_cv_prog_gnu_ld
11360 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11361 # archiving commands below assume that GNU ld is being used.
11362 if test "$with_gnu_ld" = yes; then
11363 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11364 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'
11366 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11367 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11369 # If archive_cmds runs LD, not CC, wlarc should be empty
11370 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11371 # investigate it a little bit more. (MM)
11372 wlarc='${wl}'
11374 # ancient GNU ld didn't support --whole-archive et. al.
11375 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11376 grep 'no-whole-archive' > /dev/null; then
11377 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11378 else
11379 whole_archive_flag_spec_CXX=
11381 else
11382 with_gnu_ld=no
11383 wlarc=
11385 # A generic and very simple default shared library creation
11386 # command for GNU C++ for the case where it uses the native
11387 # linker, instead of GNU ld. If possible, this setting should
11388 # overridden to take advantage of the native linker features on
11389 # the platform it is being used on.
11390 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11393 # Commands to make compiler produce verbose output that lists
11394 # what "hidden" libraries, object files and flags are used when
11395 # linking a shared library.
11396 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11398 else
11399 GXX=no
11400 with_gnu_ld=no
11401 wlarc=
11404 # PORTME: fill in a description of your system's C++ link characteristics
11405 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11406 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11407 ld_shlibs_CXX=yes
11408 case $host_os in
11409 aix3*)
11410 # FIXME: insert proper C++ library support
11411 ld_shlibs_CXX=no
11413 aix[4-9]*)
11414 if test "$host_cpu" = ia64; then
11415 # On IA64, the linker does run time linking by default, so we don't
11416 # have to do anything special.
11417 aix_use_runtimelinking=no
11418 exp_sym_flag='-Bexport'
11419 no_entry_flag=""
11420 else
11421 aix_use_runtimelinking=no
11423 # Test if we are trying to use run time linking or normal
11424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11425 # need to do runtime linking.
11426 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11427 for ld_flag in $LDFLAGS; do
11428 case $ld_flag in
11429 *-brtl*)
11430 aix_use_runtimelinking=yes
11431 break
11433 esac
11434 done
11436 esac
11438 exp_sym_flag='-bexport'
11439 no_entry_flag='-bnoentry'
11442 # When large executables or shared objects are built, AIX ld can
11443 # have problems creating the table of contents. If linking a library
11444 # or program results in "error TOC overflow" add -mminimal-toc to
11445 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11446 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11448 archive_cmds_CXX=''
11449 hardcode_direct_CXX=yes
11450 hardcode_libdir_separator_CXX=':'
11451 link_all_deplibs_CXX=yes
11453 if test "$GXX" = yes; then
11454 case $host_os in aix4.[012]|aix4.[012].*)
11455 # We only want to do this on AIX 4.2 and lower, the check
11456 # below for broken collect2 doesn't work under 4.3+
11457 collect2name=`${CC} -print-prog-name=collect2`
11458 if test -f "$collect2name" && \
11459 strings "$collect2name" | grep resolve_lib_name >/dev/null
11460 then
11461 # We have reworked collect2
11463 else
11464 # We have old collect2
11465 hardcode_direct_CXX=unsupported
11466 # It fails to find uninstalled libraries when the uninstalled
11467 # path is not listed in the libpath. Setting hardcode_minus_L
11468 # to unsupported forces relinking
11469 hardcode_minus_L_CXX=yes
11470 hardcode_libdir_flag_spec_CXX='-L$libdir'
11471 hardcode_libdir_separator_CXX=
11474 esac
11475 shared_flag='-shared'
11476 if test "$aix_use_runtimelinking" = yes; then
11477 shared_flag="$shared_flag "'${wl}-G'
11479 else
11480 # not using gcc
11481 if test "$host_cpu" = ia64; then
11482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11483 # chokes on -Wl,-G. The following line is correct:
11484 shared_flag='-G'
11485 else
11486 if test "$aix_use_runtimelinking" = yes; then
11487 shared_flag='${wl}-G'
11488 else
11489 shared_flag='${wl}-bM:SRE'
11494 # It seems that -bexpall does not export symbols beginning with
11495 # underscore (_), so it is better to generate a list of symbols to export.
11496 always_export_symbols_CXX=yes
11497 if test "$aix_use_runtimelinking" = yes; then
11498 # Warning - without using the other runtime loading flags (-brtl),
11499 # -berok will link without error, but may produce a broken library.
11500 allow_undefined_flag_CXX='-berok'
11501 # Determine the default libpath from the value encoded in an empty executable.
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11510 main ()
11514 return 0;
11516 _ACEOF
11517 rm -f conftest.$ac_objext conftest$ac_exeext
11518 if { (ac_try="$ac_link"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_link") 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } && {
11531 test -z "$ac_cxx_werror_flag" ||
11532 test ! -s conftest.err
11533 } && test -s conftest$ac_exeext &&
11534 $as_test_x conftest$ac_exeext; then
11536 lt_aix_libpath_sed='
11537 /Import File Strings/,/^$/ {
11538 /^0/ {
11539 s/^0 *\(.*\)$/\1/
11543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11544 # Check for a 64-bit object if we didn't find anything.
11545 if test -z "$aix_libpath"; then
11546 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11556 conftest$ac_exeext conftest.$ac_ext
11557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11559 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11561 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"
11562 else
11563 if test "$host_cpu" = ia64; then
11564 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11565 allow_undefined_flag_CXX="-z nodefs"
11566 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"
11567 else
11568 # Determine the default libpath from the value encoded in an empty executable.
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h. */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11577 main ()
11581 return 0;
11583 _ACEOF
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11589 esac
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_link") 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } && {
11598 test -z "$ac_cxx_werror_flag" ||
11599 test ! -s conftest.err
11600 } && test -s conftest$ac_exeext &&
11601 $as_test_x conftest$ac_exeext; then
11603 lt_aix_libpath_sed='
11604 /Import File Strings/,/^$/ {
11605 /^0/ {
11606 s/^0 *\(.*\)$/\1/
11610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11611 # Check for a 64-bit object if we didn't find anything.
11612 if test -z "$aix_libpath"; then
11613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11615 else
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11623 conftest$ac_exeext conftest.$ac_ext
11624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11627 # Warning - without using the other run time loading flags,
11628 # -berok will link without error, but may produce a broken library.
11629 no_undefined_flag_CXX=' ${wl}-bernotok'
11630 allow_undefined_flag_CXX=' ${wl}-berok'
11631 # Exported symbols can be pulled into shared objects from archives
11632 whole_archive_flag_spec_CXX='$convenience'
11633 archive_cmds_need_lc_CXX=yes
11634 # This is similar to how AIX traditionally builds its shared libraries.
11635 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'
11640 beos*)
11641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11642 allow_undefined_flag_CXX=unsupported
11643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11644 # support --undefined. This deserves some investigation. FIXME
11645 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11646 else
11647 ld_shlibs_CXX=no
11651 chorus*)
11652 case $cc_basename in
11654 # FIXME: insert proper C++ library support
11655 ld_shlibs_CXX=no
11657 esac
11660 cygwin* | mingw* | pw32*)
11661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11662 # as there is no search path for DLLs.
11663 hardcode_libdir_flag_spec_CXX='-L$libdir'
11664 allow_undefined_flag_CXX=unsupported
11665 always_export_symbols_CXX=no
11666 enable_shared_with_static_runtimes_CXX=yes
11668 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11669 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'
11670 # If the export-symbols file already is a .def file (1st line
11671 # is EXPORTS), use it as is; otherwise, prepend...
11672 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11673 cp $export_symbols $output_objdir/$soname.def;
11674 else
11675 echo EXPORTS > $output_objdir/$soname.def;
11676 cat $export_symbols >> $output_objdir/$soname.def;
11678 $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'
11679 else
11680 ld_shlibs_CXX=no
11683 darwin* | rhapsody*)
11684 archive_cmds_need_lc_CXX=no
11685 hardcode_direct_CXX=no
11686 hardcode_automatic_CXX=yes
11687 hardcode_shlibpath_var_CXX=unsupported
11688 whole_archive_flag_spec_CXX=''
11689 link_all_deplibs_CXX=yes
11690 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11691 if test "$GXX" = yes ; then
11692 output_verbose_link_cmd='echo'
11693 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}"
11694 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11695 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}"
11696 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}"
11697 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11698 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}"
11699 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}"
11701 else
11702 case $cc_basename in
11703 xlc*)
11704 output_verbose_link_cmd='echo'
11705 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'
11706 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11708 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}'
11709 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}'
11712 ld_shlibs_CXX=no
11714 esac
11718 dgux*)
11719 case $cc_basename in
11720 ec++*)
11721 # FIXME: insert proper C++ library support
11722 ld_shlibs_CXX=no
11724 ghcx*)
11725 # Green Hills C++ Compiler
11726 # FIXME: insert proper C++ library support
11727 ld_shlibs_CXX=no
11730 # FIXME: insert proper C++ library support
11731 ld_shlibs_CXX=no
11733 esac
11735 freebsd[12]*)
11736 # C++ shared libraries reported to be fairly broken before switch to ELF
11737 ld_shlibs_CXX=no
11739 freebsd-elf*)
11740 archive_cmds_need_lc_CXX=no
11742 freebsd* | dragonfly*)
11743 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11744 # conventions
11745 ld_shlibs_CXX=yes
11747 gnu*)
11749 hpux9*)
11750 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11751 hardcode_libdir_separator_CXX=:
11752 export_dynamic_flag_spec_CXX='${wl}-E'
11753 hardcode_direct_CXX=yes
11754 hardcode_minus_L_CXX=yes # Not in the search PATH,
11755 # but as the default
11756 # location of the library.
11758 case $cc_basename in
11759 CC*)
11760 # FIXME: insert proper C++ library support
11761 ld_shlibs_CXX=no
11763 aCC*)
11764 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'
11765 # Commands to make compiler produce verbose output that lists
11766 # what "hidden" libraries, object files and flags are used when
11767 # linking a shared library.
11769 # There doesn't appear to be a way to prevent this compiler from
11770 # explicitly linking system object files so we need to strip them
11771 # from the output so that they don't get included in the library
11772 # dependencies.
11773 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'
11776 if test "$GXX" = yes; then
11777 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'
11778 else
11779 # FIXME: insert proper C++ library support
11780 ld_shlibs_CXX=no
11783 esac
11785 hpux10*|hpux11*)
11786 if test $with_gnu_ld = no; then
11787 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11788 hardcode_libdir_separator_CXX=:
11790 case $host_cpu in
11791 hppa*64*|ia64*) ;;
11793 export_dynamic_flag_spec_CXX='${wl}-E'
11795 esac
11797 case $host_cpu in
11798 hppa*64*|ia64*)
11799 hardcode_direct_CXX=no
11800 hardcode_shlibpath_var_CXX=no
11803 hardcode_direct_CXX=yes
11804 hardcode_minus_L_CXX=yes # Not in the search PATH,
11805 # but as the default
11806 # location of the library.
11808 esac
11810 case $cc_basename in
11811 CC*)
11812 # FIXME: insert proper C++ library support
11813 ld_shlibs_CXX=no
11815 aCC*)
11816 case $host_cpu in
11817 hppa*64*)
11818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11820 ia64*)
11821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11824 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11826 esac
11827 # Commands to make compiler produce verbose output that lists
11828 # what "hidden" libraries, object files and flags are used when
11829 # linking a shared library.
11831 # There doesn't appear to be a way to prevent this compiler from
11832 # explicitly linking system object files so we need to strip them
11833 # from the output so that they don't get included in the library
11834 # dependencies.
11835 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'
11838 if test "$GXX" = yes; then
11839 if test $with_gnu_ld = no; then
11840 case $host_cpu in
11841 hppa*64*)
11842 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11844 ia64*)
11845 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11848 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'
11850 esac
11852 else
11853 # FIXME: insert proper C++ library support
11854 ld_shlibs_CXX=no
11857 esac
11859 interix[3-9]*)
11860 hardcode_direct_CXX=no
11861 hardcode_shlibpath_var_CXX=no
11862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11863 export_dynamic_flag_spec_CXX='${wl}-E'
11864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11865 # Instead, shared libraries are loaded at an image base (0x10000000 by
11866 # default) and relocated if they conflict, which is a slow very memory
11867 # consuming and fragmenting process. To avoid this, we pick a random,
11868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11870 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'
11871 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'
11873 irix5* | irix6*)
11874 case $cc_basename in
11875 CC*)
11876 # SGI C++
11877 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'
11879 # Archives containing C++ object files must be created using
11880 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11881 # necessary to make sure instantiated templates are included
11882 # in the archive.
11883 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11886 if test "$GXX" = yes; then
11887 if test "$with_gnu_ld" = no; then
11888 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'
11889 else
11890 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'
11893 link_all_deplibs_CXX=yes
11895 esac
11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11897 hardcode_libdir_separator_CXX=:
11899 linux* | k*bsd*-gnu)
11900 case $cc_basename in
11901 KCC*)
11902 # Kuck and Associates, Inc. (KAI) C++ Compiler
11904 # KCC will only create a shared library if the output file
11905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11906 # to its proper name (with version) after linking.
11907 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'
11908 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'
11909 # Commands to make compiler produce verbose output that lists
11910 # what "hidden" libraries, object files and flags are used when
11911 # linking a shared library.
11913 # There doesn't appear to be a way to prevent this compiler from
11914 # explicitly linking system object files so we need to strip them
11915 # from the output so that they don't get included in the library
11916 # dependencies.
11917 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'
11919 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11922 # Archives containing C++ object files must be created using
11923 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11924 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11926 icpc*)
11927 # Intel C++
11928 with_gnu_ld=yes
11929 # version 8.0 and above of icpc choke on multiply defined symbols
11930 # if we add $predep_objects and $postdep_objects, however 7.1 and
11931 # earlier do not add the objects themselves.
11932 case `$CC -V 2>&1` in
11933 *"Version 7."*)
11934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11935 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'
11937 *) # Version 8.0 or newer
11938 tmp_idyn=
11939 case $host_cpu in
11940 ia64*) tmp_idyn=' -i_dynamic';;
11941 esac
11942 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11943 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'
11945 esac
11946 archive_cmds_need_lc_CXX=no
11947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11949 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11951 pgCC* | pgcpp*)
11952 # Portland Group C++ compiler
11953 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11954 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'
11956 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11957 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11958 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'
11960 cxx*)
11961 # Compaq C++
11962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11963 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'
11965 runpath_var=LD_RUN_PATH
11966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11967 hardcode_libdir_separator_CXX=:
11969 # Commands to make compiler produce verbose output that lists
11970 # what "hidden" libraries, object files and flags are used when
11971 # linking a shared library.
11973 # There doesn't appear to be a way to prevent this compiler from
11974 # explicitly linking system object files so we need to strip them
11975 # from the output so that they don't get included in the library
11976 # dependencies.
11977 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'
11980 case `$CC -V 2>&1 | sed 5q` in
11981 *Sun\ C*)
11982 # Sun C++ 5.9
11983 no_undefined_flag_CXX=' -zdefs'
11984 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11985 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'
11986 hardcode_libdir_flag_spec_CXX='-R$libdir'
11987 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'
11989 # Not sure whether something based on
11990 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11991 # would be better.
11992 output_verbose_link_cmd='echo'
11994 # Archives containing C++ object files must be created using
11995 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11996 # necessary to make sure instantiated templates are included
11997 # in the archive.
11998 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12000 esac
12002 esac
12004 lynxos*)
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12008 m88k*)
12009 # FIXME: insert proper C++ library support
12010 ld_shlibs_CXX=no
12012 mvs*)
12013 case $cc_basename in
12014 cxx*)
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12019 # FIXME: insert proper C++ library support
12020 ld_shlibs_CXX=no
12022 esac
12024 netbsd*)
12025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12026 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12027 wlarc=
12028 hardcode_libdir_flag_spec_CXX='-R$libdir'
12029 hardcode_direct_CXX=yes
12030 hardcode_shlibpath_var_CXX=no
12032 # Workaround some broken pre-1.5 toolchains
12033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12035 openbsd2*)
12036 # C++ shared libraries are fairly broken
12037 ld_shlibs_CXX=no
12039 openbsd*)
12040 if test -f /usr/libexec/ld.so; then
12041 hardcode_direct_CXX=yes
12042 hardcode_shlibpath_var_CXX=no
12043 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12044 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12046 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12047 export_dynamic_flag_spec_CXX='${wl}-E'
12048 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12050 output_verbose_link_cmd='echo'
12051 else
12052 ld_shlibs_CXX=no
12055 osf3*)
12056 case $cc_basename in
12057 KCC*)
12058 # Kuck and Associates, Inc. (KAI) C++ Compiler
12060 # KCC will only create a shared library if the output file
12061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12062 # to its proper name (with version) after linking.
12063 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'
12065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12066 hardcode_libdir_separator_CXX=:
12068 # Archives containing C++ object files must be created using
12069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12073 RCC*)
12074 # Rational C++ 2.4.1
12075 # FIXME: insert proper C++ library support
12076 ld_shlibs_CXX=no
12078 cxx*)
12079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12080 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'
12082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083 hardcode_libdir_separator_CXX=:
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12089 # There doesn't appear to be a way to prevent this compiler from
12090 # explicitly linking system object files so we need to strip them
12091 # from the output so that they don't get included in the library
12092 # dependencies.
12093 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'
12096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12098 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'
12100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12101 hardcode_libdir_separator_CXX=:
12103 # Commands to make compiler produce verbose output that lists
12104 # what "hidden" libraries, object files and flags are used when
12105 # linking a shared library.
12106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12108 else
12109 # FIXME: insert proper C++ library support
12110 ld_shlibs_CXX=no
12113 esac
12115 osf4* | osf5*)
12116 case $cc_basename in
12117 KCC*)
12118 # Kuck and Associates, Inc. (KAI) C++ Compiler
12120 # KCC will only create a shared library if the output file
12121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12122 # to its proper name (with version) after linking.
12123 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'
12125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12126 hardcode_libdir_separator_CXX=:
12128 # Archives containing C++ object files must be created using
12129 # the KAI C++ compiler.
12130 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12132 RCC*)
12133 # Rational C++ 2.4.1
12134 # FIXME: insert proper C++ library support
12135 ld_shlibs_CXX=no
12137 cxx*)
12138 allow_undefined_flag_CXX=' -expect_unresolved \*'
12139 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'
12140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12141 echo "-hidden">> $lib.exp~
12142 $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~
12143 $rm $lib.exp'
12145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12146 hardcode_libdir_separator_CXX=:
12148 # Commands to make compiler produce verbose output that lists
12149 # what "hidden" libraries, object files and flags are used when
12150 # linking a shared library.
12152 # There doesn't appear to be a way to prevent this compiler from
12153 # explicitly linking system object files so we need to strip them
12154 # from the output so that they don't get included in the library
12155 # dependencies.
12156 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'
12159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161 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'
12163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164 hardcode_libdir_separator_CXX=:
12166 # Commands to make compiler produce verbose output that lists
12167 # what "hidden" libraries, object files and flags are used when
12168 # linking a shared library.
12169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12171 else
12172 # FIXME: insert proper C++ library support
12173 ld_shlibs_CXX=no
12176 esac
12178 psos*)
12179 # FIXME: insert proper C++ library support
12180 ld_shlibs_CXX=no
12182 sunos4*)
12183 case $cc_basename in
12184 CC*)
12185 # Sun C++ 4.x
12186 # FIXME: insert proper C++ library support
12187 ld_shlibs_CXX=no
12189 lcc*)
12190 # Lucid
12191 # FIXME: insert proper C++ library support
12192 ld_shlibs_CXX=no
12195 # FIXME: insert proper C++ library support
12196 ld_shlibs_CXX=no
12198 esac
12200 solaris*)
12201 case $cc_basename in
12202 CC*)
12203 # Sun C++ 4.2, 5.x and Centerline C++
12204 archive_cmds_need_lc_CXX=yes
12205 no_undefined_flag_CXX=' -zdefs'
12206 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12207 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12208 $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'
12210 hardcode_libdir_flag_spec_CXX='-R$libdir'
12211 hardcode_shlibpath_var_CXX=no
12212 case $host_os in
12213 solaris2.[0-5] | solaris2.[0-5].*) ;;
12215 # The compiler driver will combine and reorder linker options,
12216 # but understands `-z linker_flag'.
12217 # Supported since Solaris 2.6 (maybe 2.5.1?)
12218 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12220 esac
12221 link_all_deplibs_CXX=yes
12223 output_verbose_link_cmd='echo'
12225 # Archives containing C++ object files must be created using
12226 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12227 # necessary to make sure instantiated templates are included
12228 # in the archive.
12229 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12231 gcx*)
12232 # Green Hills C++ Compiler
12233 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12235 # The C++ compiler must be used to create the archive.
12236 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12239 # GNU C++ compiler with Solaris linker
12240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12241 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12242 if $CC --version | grep -v '^2\.7' > /dev/null; then
12243 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12244 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12245 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12247 # Commands to make compiler produce verbose output that lists
12248 # what "hidden" libraries, object files and flags are used when
12249 # linking a shared library.
12250 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12251 else
12252 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12253 # platform.
12254 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12256 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12258 # Commands to make compiler produce verbose output that lists
12259 # what "hidden" libraries, object files and flags are used when
12260 # linking a shared library.
12261 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12264 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12265 case $host_os in
12266 solaris2.[0-5] | solaris2.[0-5].*) ;;
12268 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12270 esac
12273 esac
12275 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12276 no_undefined_flag_CXX='${wl}-z,text'
12277 archive_cmds_need_lc_CXX=no
12278 hardcode_shlibpath_var_CXX=no
12279 runpath_var='LD_RUN_PATH'
12281 case $cc_basename in
12282 CC*)
12283 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12290 esac
12292 sysv5* | sco3.2v5* | sco5v6*)
12293 # Note: We can NOT use -z defs as we might desire, because we do not
12294 # link with -lc, and that would cause any symbols used from libc to
12295 # always be unresolved, which means just about no library would
12296 # ever link correctly. If we're not using GNU ld we use -z text
12297 # though, which does catch some bad symbols but isn't as heavy-handed
12298 # as -z defs.
12299 # For security reasons, it is highly recommended that you always
12300 # use absolute paths for naming shared libraries, and exclude the
12301 # DT_RUNPATH tag from executables and libraries. But doing so
12302 # requires that you compile everything twice, which is a pain.
12303 # So that behaviour is only enabled if SCOABSPATH is set to a
12304 # non-empty value in the environment. Most likely only useful for
12305 # creating official distributions of packages.
12306 # This is a hack until libtool officially supports absolute path
12307 # names for shared libraries.
12308 no_undefined_flag_CXX='${wl}-z,text'
12309 allow_undefined_flag_CXX='${wl}-z,nodefs'
12310 archive_cmds_need_lc_CXX=no
12311 hardcode_shlibpath_var_CXX=no
12312 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12313 hardcode_libdir_separator_CXX=':'
12314 link_all_deplibs_CXX=yes
12315 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12316 runpath_var='LD_RUN_PATH'
12318 case $cc_basename in
12319 CC*)
12320 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12324 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12327 esac
12329 tandem*)
12330 case $cc_basename in
12331 NCC*)
12332 # NonStop-UX NCC 3.20
12333 # FIXME: insert proper C++ library support
12334 ld_shlibs_CXX=no
12337 # FIXME: insert proper C++ library support
12338 ld_shlibs_CXX=no
12340 esac
12342 vxworks*)
12343 # FIXME: insert proper C++ library support
12344 ld_shlibs_CXX=no
12347 # FIXME: insert proper C++ library support
12348 ld_shlibs_CXX=no
12350 esac
12351 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12352 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12353 test "$ld_shlibs_CXX" = no && can_build_shared=no
12355 GCC_CXX="$GXX"
12356 LD_CXX="$LD"
12358 cat > conftest.$ac_ext <<EOF
12359 class Foo
12361 public:
12362 Foo (void) { a = 0; }
12363 private:
12364 int a;
12368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369 (eval $ac_compile) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; then
12373 # Parse the compiler output and extract the necessary
12374 # objects, libraries and library flags.
12376 # Sentinel used to keep track of whether or not we are before
12377 # the conftest object file.
12378 pre_test_object_deps_done=no
12380 # The `*' in the case matches for architectures that use `case' in
12381 # $output_verbose_cmd can trigger glob expansion during the loop
12382 # eval without this substitution.
12383 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12385 for p in `eval $output_verbose_link_cmd`; do
12386 case $p in
12388 -L* | -R* | -l*)
12389 # Some compilers place space between "-{L,R}" and the path.
12390 # Remove the space.
12391 if test $p = "-L" \
12392 || test $p = "-R"; then
12393 prev=$p
12394 continue
12395 else
12396 prev=
12399 if test "$pre_test_object_deps_done" = no; then
12400 case $p in
12401 -L* | -R*)
12402 # Internal compiler library paths should come after those
12403 # provided the user. The postdeps already come after the
12404 # user supplied libs so there is no need to process them.
12405 if test -z "$compiler_lib_search_path_CXX"; then
12406 compiler_lib_search_path_CXX="${prev}${p}"
12407 else
12408 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12411 # The "-l" case would never come before the object being
12412 # linked, so don't bother handling this case.
12413 esac
12414 else
12415 if test -z "$postdeps_CXX"; then
12416 postdeps_CXX="${prev}${p}"
12417 else
12418 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12423 *.$objext)
12424 # This assumes that the test object file only shows up
12425 # once in the compiler output.
12426 if test "$p" = "conftest.$objext"; then
12427 pre_test_object_deps_done=yes
12428 continue
12431 if test "$pre_test_object_deps_done" = no; then
12432 if test -z "$predep_objects_CXX"; then
12433 predep_objects_CXX="$p"
12434 else
12435 predep_objects_CXX="$predep_objects_CXX $p"
12437 else
12438 if test -z "$postdep_objects_CXX"; then
12439 postdep_objects_CXX="$p"
12440 else
12441 postdep_objects_CXX="$postdep_objects_CXX $p"
12446 *) ;; # Ignore the rest.
12448 esac
12449 done
12451 # Clean up.
12452 rm -f a.out a.exe
12453 else
12454 echo "libtool.m4: error: problem compiling CXX test program"
12457 $rm -f confest.$objext
12459 compiler_lib_search_dirs_CXX=
12460 if test -n "$compiler_lib_search_path_CXX"; then
12461 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12464 # PORTME: override above test on systems where it is broken
12465 case $host_os in
12466 interix[3-9]*)
12467 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12468 # hack all around it, let's just trust "g++" to DTRT.
12469 predep_objects_CXX=
12470 postdep_objects_CXX=
12471 postdeps_CXX=
12474 linux*)
12475 case `$CC -V 2>&1 | sed 5q` in
12476 *Sun\ C*)
12477 # Sun C++ 5.9
12479 # The more standards-conforming stlport4 library is
12480 # incompatible with the Cstd library. Avoid specifying
12481 # it if it's in CXXFLAGS. Ignore libCrun as
12482 # -library=stlport4 depends on it.
12483 case " $CXX $CXXFLAGS " in
12484 *" -library=stlport4 "*)
12485 solaris_use_stlport4=yes
12487 esac
12488 if test "$solaris_use_stlport4" != yes; then
12489 postdeps_CXX='-library=Cstd -library=Crun'
12492 esac
12495 solaris*)
12496 case $cc_basename in
12497 CC*)
12498 # The more standards-conforming stlport4 library is
12499 # incompatible with the Cstd library. Avoid specifying
12500 # it if it's in CXXFLAGS. Ignore libCrun as
12501 # -library=stlport4 depends on it.
12502 case " $CXX $CXXFLAGS " in
12503 *" -library=stlport4 "*)
12504 solaris_use_stlport4=yes
12506 esac
12508 # Adding this requires a known-good setup of shared libraries for
12509 # Sun compiler versions before 5.6, else PIC objects from an old
12510 # archive will be linked into the output, leading to subtle bugs.
12511 if test "$solaris_use_stlport4" != yes; then
12512 postdeps_CXX='-library=Cstd -library=Crun'
12515 esac
12517 esac
12519 case " $postdeps_CXX " in
12520 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12521 esac
12523 lt_prog_compiler_wl_CXX=
12524 lt_prog_compiler_pic_CXX=
12525 lt_prog_compiler_static_CXX=
12527 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12528 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12530 # C++ specific cases for pic, static, wl, etc.
12531 if test "$GXX" = yes; then
12532 lt_prog_compiler_wl_CXX='-Wl,'
12533 lt_prog_compiler_static_CXX='-static'
12535 case $host_os in
12536 aix*)
12537 # All AIX code is PIC.
12538 if test "$host_cpu" = ia64; then
12539 # AIX 5 now supports IA64 processor
12540 lt_prog_compiler_static_CXX='-Bstatic'
12543 amigaos*)
12544 # FIXME: we need at least 68020 code to build shared libraries, but
12545 # adding the `-m68020' flag to GCC prevents building anything better,
12546 # like `-m68040'.
12547 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12550 # PIC is the default for these OSes.
12552 mingw* | cygwin* | os2* | pw32*)
12553 # This hack is so that the source file can tell whether it is being
12554 # built for inclusion in a dll (and should export symbols for example).
12555 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12556 # (--disable-auto-import) libraries
12557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12559 darwin* | rhapsody*)
12560 # PIC is the default on this platform
12561 # Common symbols not allowed in MH_DYLIB files
12562 lt_prog_compiler_pic_CXX='-fno-common'
12564 *djgpp*)
12565 # DJGPP does not support shared libraries at all
12566 lt_prog_compiler_pic_CXX=
12568 interix[3-9]*)
12569 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12570 # Instead, we relocate shared libraries at runtime.
12572 sysv4*MP*)
12573 if test -d /usr/nec; then
12574 lt_prog_compiler_pic_CXX=-Kconform_pic
12577 hpux*)
12578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12579 # not for PA HP-UX.
12580 case $host_cpu in
12581 hppa*64*|ia64*)
12584 lt_prog_compiler_pic_CXX='-fPIC'
12586 esac
12589 lt_prog_compiler_pic_CXX='-fPIC'
12591 esac
12592 else
12593 case $host_os in
12594 aix[4-9]*)
12595 # All AIX code is PIC.
12596 if test "$host_cpu" = ia64; then
12597 # AIX 5 now supports IA64 processor
12598 lt_prog_compiler_static_CXX='-Bstatic'
12599 else
12600 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12603 chorus*)
12604 case $cc_basename in
12605 cxch68*)
12606 # Green Hills C++ Compiler
12607 # _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"
12609 esac
12611 darwin*)
12612 # PIC is the default on this platform
12613 # Common symbols not allowed in MH_DYLIB files
12614 case $cc_basename in
12615 xlc*)
12616 lt_prog_compiler_pic_CXX='-qnocommon'
12617 lt_prog_compiler_wl_CXX='-Wl,'
12619 esac
12621 dgux*)
12622 case $cc_basename in
12623 ec++*)
12624 lt_prog_compiler_pic_CXX='-KPIC'
12626 ghcx*)
12627 # Green Hills C++ Compiler
12628 lt_prog_compiler_pic_CXX='-pic'
12632 esac
12634 freebsd* | dragonfly*)
12635 # FreeBSD uses GNU C++
12637 hpux9* | hpux10* | hpux11*)
12638 case $cc_basename in
12639 CC*)
12640 lt_prog_compiler_wl_CXX='-Wl,'
12641 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12642 if test "$host_cpu" != ia64; then
12643 lt_prog_compiler_pic_CXX='+Z'
12646 aCC*)
12647 lt_prog_compiler_wl_CXX='-Wl,'
12648 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12649 case $host_cpu in
12650 hppa*64*|ia64*)
12651 # +Z the default
12654 lt_prog_compiler_pic_CXX='+Z'
12656 esac
12660 esac
12662 interix*)
12663 # This is c89, which is MS Visual C++ (no shared libs)
12664 # Anyone wants to do a port?
12666 irix5* | irix6* | nonstopux*)
12667 case $cc_basename in
12668 CC*)
12669 lt_prog_compiler_wl_CXX='-Wl,'
12670 lt_prog_compiler_static_CXX='-non_shared'
12671 # CC pic flag -KPIC is the default.
12675 esac
12677 linux* | k*bsd*-gnu)
12678 case $cc_basename in
12679 KCC*)
12680 # KAI C++ Compiler
12681 lt_prog_compiler_wl_CXX='--backend -Wl,'
12682 lt_prog_compiler_pic_CXX='-fPIC'
12684 icpc* | ecpc*)
12685 # Intel C++
12686 lt_prog_compiler_wl_CXX='-Wl,'
12687 lt_prog_compiler_pic_CXX='-KPIC'
12688 lt_prog_compiler_static_CXX='-static'
12690 pgCC* | pgcpp*)
12691 # Portland Group C++ compiler.
12692 lt_prog_compiler_wl_CXX='-Wl,'
12693 lt_prog_compiler_pic_CXX='-fpic'
12694 lt_prog_compiler_static_CXX='-Bstatic'
12696 cxx*)
12697 # Compaq C++
12698 # Make sure the PIC flag is empty. It appears that all Alpha
12699 # Linux and Compaq Tru64 Unix objects are PIC.
12700 lt_prog_compiler_pic_CXX=
12701 lt_prog_compiler_static_CXX='-non_shared'
12704 case `$CC -V 2>&1 | sed 5q` in
12705 *Sun\ C*)
12706 # Sun C++ 5.9
12707 lt_prog_compiler_pic_CXX='-KPIC'
12708 lt_prog_compiler_static_CXX='-Bstatic'
12709 lt_prog_compiler_wl_CXX='-Qoption ld '
12711 esac
12713 esac
12715 lynxos*)
12717 m88k*)
12719 mvs*)
12720 case $cc_basename in
12721 cxx*)
12722 lt_prog_compiler_pic_CXX='-W c,exportall'
12726 esac
12728 netbsd*)
12730 osf3* | osf4* | osf5*)
12731 case $cc_basename in
12732 KCC*)
12733 lt_prog_compiler_wl_CXX='--backend -Wl,'
12735 RCC*)
12736 # Rational C++ 2.4.1
12737 lt_prog_compiler_pic_CXX='-pic'
12739 cxx*)
12740 # Digital/Compaq C++
12741 lt_prog_compiler_wl_CXX='-Wl,'
12742 # Make sure the PIC flag is empty. It appears that all Alpha
12743 # Linux and Compaq Tru64 Unix objects are PIC.
12744 lt_prog_compiler_pic_CXX=
12745 lt_prog_compiler_static_CXX='-non_shared'
12749 esac
12751 psos*)
12753 solaris*)
12754 case $cc_basename in
12755 CC*)
12756 # Sun C++ 4.2, 5.x and Centerline C++
12757 lt_prog_compiler_pic_CXX='-KPIC'
12758 lt_prog_compiler_static_CXX='-Bstatic'
12759 lt_prog_compiler_wl_CXX='-Qoption ld '
12761 gcx*)
12762 # Green Hills C++ Compiler
12763 lt_prog_compiler_pic_CXX='-PIC'
12767 esac
12769 sunos4*)
12770 case $cc_basename in
12771 CC*)
12772 # Sun C++ 4.x
12773 lt_prog_compiler_pic_CXX='-pic'
12774 lt_prog_compiler_static_CXX='-Bstatic'
12776 lcc*)
12777 # Lucid
12778 lt_prog_compiler_pic_CXX='-pic'
12782 esac
12784 tandem*)
12785 case $cc_basename in
12786 NCC*)
12787 # NonStop-UX NCC 3.20
12788 lt_prog_compiler_pic_CXX='-KPIC'
12792 esac
12794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12795 case $cc_basename in
12796 CC*)
12797 lt_prog_compiler_wl_CXX='-Wl,'
12798 lt_prog_compiler_pic_CXX='-KPIC'
12799 lt_prog_compiler_static_CXX='-Bstatic'
12801 esac
12803 vxworks*)
12806 lt_prog_compiler_can_build_shared_CXX=no
12808 esac
12811 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12812 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12815 # Check to make sure the PIC flag actually works.
12817 if test -n "$lt_prog_compiler_pic_CXX"; then
12819 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12821 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824 lt_cv_prog_compiler_pic_works_CXX=no
12825 ac_outfile=conftest.$ac_objext
12826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12827 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12828 # Insert the option either (1) after the last *FLAGS variable, or
12829 # (2) before a word containing "conftest.", or (3) at the end.
12830 # Note that $ac_compile itself does not contain backslashes and begins
12831 # with a dollar sign (not a hyphen), so the echo should work correctly.
12832 # The option is referenced via a variable to avoid confusing sed.
12833 lt_compile=`echo "$ac_compile" | $SED \
12834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836 -e 's:$: $lt_compiler_flag:'`
12837 (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
12838 (eval "$lt_compile" 2>conftest.err)
12839 ac_status=$?
12840 cat conftest.err >&5
12841 echo "$as_me:12841: \$? = $ac_status" >&5
12842 if (exit $ac_status) && test -s "$ac_outfile"; then
12843 # The compiler can only warn and ignore the option if not recognized
12844 # So say no if there are warnings other than the usual output.
12845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12848 lt_cv_prog_compiler_pic_works_CXX=yes
12851 $rm conftest*
12854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12855 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12857 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12858 case $lt_prog_compiler_pic_CXX in
12859 "" | " "*) ;;
12860 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12861 esac
12862 else
12863 lt_prog_compiler_pic_CXX=
12864 lt_prog_compiler_can_build_shared_CXX=no
12868 case $host_os in
12869 # For platforms which do not support PIC, -DPIC is meaningless:
12870 *djgpp*)
12871 lt_prog_compiler_pic_CXX=
12874 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12876 esac
12879 # Check to make sure the static flag actually works.
12881 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12882 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12883 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12884 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887 lt_cv_prog_compiler_static_works_CXX=no
12888 save_LDFLAGS="$LDFLAGS"
12889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12892 # The linker can only warn and ignore the option if not recognized
12893 # So say no if there are warnings
12894 if test -s conftest.err; then
12895 # Append any errors to the config.log.
12896 cat conftest.err 1>&5
12897 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12899 if diff conftest.exp conftest.er2 >/dev/null; then
12900 lt_cv_prog_compiler_static_works_CXX=yes
12902 else
12903 lt_cv_prog_compiler_static_works_CXX=yes
12906 $rm -r conftest*
12907 LDFLAGS="$save_LDFLAGS"
12910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12911 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12913 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12915 else
12916 lt_prog_compiler_static_CXX=
12920 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12922 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 lt_cv_prog_compiler_c_o_CXX=no
12926 $rm -r conftest 2>/dev/null
12927 mkdir conftest
12928 cd conftest
12929 mkdir out
12930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12932 lt_compiler_flag="-o out/conftest2.$ac_objext"
12933 # Insert the option either (1) after the last *FLAGS variable, or
12934 # (2) before a word containing "conftest.", or (3) at the end.
12935 # Note that $ac_compile itself does not contain backslashes and begins
12936 # with a dollar sign (not a hyphen), so the echo should work correctly.
12937 lt_compile=`echo "$ac_compile" | $SED \
12938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12940 -e 's:$: $lt_compiler_flag:'`
12941 (eval echo "\"\$as_me:12941: $lt_compile\"" >&5)
12942 (eval "$lt_compile" 2>out/conftest.err)
12943 ac_status=$?
12944 cat out/conftest.err >&5
12945 echo "$as_me:12945: \$? = $ac_status" >&5
12946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12947 then
12948 # The compiler can only warn and ignore the option if not recognized
12949 # So say no if there are warnings
12950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12953 lt_cv_prog_compiler_c_o_CXX=yes
12956 chmod u+w . 2>&5
12957 $rm conftest*
12958 # SGI C++ compiler will create directory out/ii_files/ for
12959 # template instantiation
12960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12961 $rm out/* && rmdir out
12962 cd ..
12963 rmdir conftest
12964 $rm conftest*
12967 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12968 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12971 hard_links="nottested"
12972 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12973 # do not overwrite the value of need_locks provided by the user
12974 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12976 hard_links=yes
12977 $rm conftest*
12978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12979 touch conftest.a
12980 ln conftest.a conftest.b 2>&5 || hard_links=no
12981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12982 { echo "$as_me:$LINENO: result: $hard_links" >&5
12983 echo "${ECHO_T}$hard_links" >&6; }
12984 if test "$hard_links" = no; then
12985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12987 need_locks=warn
12989 else
12990 need_locks=no
12993 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12994 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12997 case $host_os in
12998 aix[4-9]*)
12999 # If we're using GNU nm, then we don't want the "-C" option.
13000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13001 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13002 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'
13003 else
13004 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'
13007 pw32*)
13008 export_symbols_cmds_CXX="$ltdll_cmds"
13010 cygwin* | mingw*)
13011 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'
13014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13016 esac
13017 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13019 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13020 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13021 test "$ld_shlibs_CXX" = no && can_build_shared=no
13024 # Do we need to explicitly link libc?
13026 case "x$archive_cmds_need_lc_CXX" in
13027 x|xyes)
13028 # Assume -lc should be added
13029 archive_cmds_need_lc_CXX=yes
13031 if test "$enable_shared" = yes && test "$GCC" = yes; then
13032 case $archive_cmds_CXX in
13033 *'~'*)
13034 # FIXME: we may have to deal with multi-command sequences.
13036 '$CC '*)
13037 # Test whether the compiler implicitly links with -lc since on some
13038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13039 # to ld, don't add -lc before -lgcc.
13040 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13042 $rm conftest*
13043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } 2>conftest.err; then
13050 soname=conftest
13051 lib=conftest
13052 libobjs=conftest.$ac_objext
13053 deplibs=
13054 wl=$lt_prog_compiler_wl_CXX
13055 pic_flag=$lt_prog_compiler_pic_CXX
13056 compiler_flags=-v
13057 linker_flags=-v
13058 verstring=
13059 output_objdir=.
13060 libname=conftest
13061 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13062 allow_undefined_flag_CXX=
13063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13064 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }
13068 then
13069 archive_cmds_need_lc_CXX=no
13070 else
13071 archive_cmds_need_lc_CXX=yes
13073 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13074 else
13075 cat conftest.err 1>&5
13077 $rm conftest*
13078 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13079 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13081 esac
13084 esac
13086 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13088 library_names_spec=
13089 libname_spec='lib$name'
13090 soname_spec=
13091 shrext_cmds=".so"
13092 postinstall_cmds=
13093 postuninstall_cmds=
13094 finish_cmds=
13095 finish_eval=
13096 shlibpath_var=
13097 shlibpath_overrides_runpath=unknown
13098 version_type=none
13099 dynamic_linker="$host_os ld.so"
13100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13102 need_lib_prefix=unknown
13103 hardcode_into_libs=no
13105 # when you set need_version to no, make sure it does not cause -set_version
13106 # flags to be left without arguments
13107 need_version=unknown
13109 case $host_os in
13110 aix3*)
13111 version_type=linux
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13113 shlibpath_var=LIBPATH
13115 # AIX 3 has no versioning support, so we append a major version to the name.
13116 soname_spec='${libname}${release}${shared_ext}$major'
13119 aix[4-9]*)
13120 version_type=linux
13121 need_lib_prefix=no
13122 need_version=no
13123 hardcode_into_libs=yes
13124 if test "$host_cpu" = ia64; then
13125 # AIX 5 supports IA64
13126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 else
13129 # With GCC up to 2.95.x, collect2 would create an import file
13130 # for dependence libraries. The import file would start with
13131 # the line `#! .'. This would cause the generated library to
13132 # depend on `.', always an invalid library. This was fixed in
13133 # development snapshots of GCC prior to 3.0.
13134 case $host_os in
13135 aix4 | aix4.[01] | aix4.[01].*)
13136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13137 echo ' yes '
13138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13140 else
13141 can_build_shared=no
13144 esac
13145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13146 # soname into executable. Probably we can add versioning support to
13147 # collect2, so additional links can be useful in future.
13148 if test "$aix_use_runtimelinking" = yes; then
13149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13150 # instead of lib<name>.a to let people know that these are not
13151 # typical AIX shared libraries.
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13153 else
13154 # We preserve .a as extension for shared libraries through AIX4.2
13155 # and later when we are not doing run time linking.
13156 library_names_spec='${libname}${release}.a $libname.a'
13157 soname_spec='${libname}${release}${shared_ext}$major'
13159 shlibpath_var=LIBPATH
13163 amigaos*)
13164 library_names_spec='$libname.ixlibrary $libname.a'
13165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13166 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'
13169 beos*)
13170 library_names_spec='${libname}${shared_ext}'
13171 dynamic_linker="$host_os ld.so"
13172 shlibpath_var=LIBRARY_PATH
13175 bsdi[45]*)
13176 version_type=linux
13177 need_version=no
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13179 soname_spec='${libname}${release}${shared_ext}$major'
13180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13184 # the default ld.so.conf also contains /usr/contrib/lib and
13185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13186 # libtool to hard-code these into programs
13189 cygwin* | mingw* | pw32*)
13190 version_type=windows
13191 shrext_cmds=".dll"
13192 need_version=no
13193 need_lib_prefix=no
13195 case $GCC,$host_os in
13196 yes,cygwin* | yes,mingw* | yes,pw32*)
13197 library_names_spec='$libname.dll.a'
13198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13199 postinstall_cmds='base_file=`basename \${file}`~
13200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13201 dldir=$destdir/`dirname \$dlpath`~
13202 test -d \$dldir || mkdir -p \$dldir~
13203 $install_prog $dir/$dlname \$dldir/$dlname~
13204 chmod a+x \$dldir/$dlname'
13205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13206 dlpath=$dir/\$dldll~
13207 $rm \$dlpath'
13208 shlibpath_overrides_runpath=yes
13210 case $host_os in
13211 cygwin*)
13212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13216 mingw*)
13217 # MinGW DLLs use traditional 'lib' prefix
13218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13221 # It is most probably a Windows format PATH printed by
13222 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13223 # path with ; separators, and with drive letters. We can handle the
13224 # drive letters (cygwin fileutils understands them), so leave them,
13225 # especially as we might pass files found there to a mingw objdump,
13226 # which wouldn't understand a cygwinified path. Ahh.
13227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13228 else
13229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13232 pw32*)
13233 # pw32 DLLs use 'pw' prefix rather than 'lib'
13234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13236 esac
13240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13242 esac
13243 dynamic_linker='Win32 ld.exe'
13244 # FIXME: first we should search . and the directory the executable is in
13245 shlibpath_var=PATH
13248 darwin* | rhapsody*)
13249 dynamic_linker="$host_os dyld"
13250 version_type=darwin
13251 need_lib_prefix=no
13252 need_version=no
13253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13254 soname_spec='${libname}${release}${major}$shared_ext'
13255 shlibpath_overrides_runpath=yes
13256 shlibpath_var=DYLD_LIBRARY_PATH
13257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13262 dgux*)
13263 version_type=linux
13264 need_lib_prefix=no
13265 need_version=no
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 shlibpath_var=LD_LIBRARY_PATH
13271 freebsd1*)
13272 dynamic_linker=no
13275 freebsd* | dragonfly*)
13276 # DragonFly does not have aout. When/if they implement a new
13277 # versioning mechanism, adjust this.
13278 if test -x /usr/bin/objformat; then
13279 objformat=`/usr/bin/objformat`
13280 else
13281 case $host_os in
13282 freebsd[123]*) objformat=aout ;;
13283 *) objformat=elf ;;
13284 esac
13286 version_type=freebsd-$objformat
13287 case $version_type in
13288 freebsd-elf*)
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13290 need_version=no
13291 need_lib_prefix=no
13293 freebsd-*)
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13295 need_version=yes
13297 esac
13298 shlibpath_var=LD_LIBRARY_PATH
13299 case $host_os in
13300 freebsd2*)
13301 shlibpath_overrides_runpath=yes
13303 freebsd3.[01]* | freebsdelf3.[01]*)
13304 shlibpath_overrides_runpath=yes
13305 hardcode_into_libs=yes
13307 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13308 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13309 shlibpath_overrides_runpath=no
13310 hardcode_into_libs=yes
13312 *) # from 4.6 on, and DragonFly
13313 shlibpath_overrides_runpath=yes
13314 hardcode_into_libs=yes
13316 esac
13319 gnu*)
13320 version_type=linux
13321 need_lib_prefix=no
13322 need_version=no
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13324 soname_spec='${libname}${release}${shared_ext}$major'
13325 shlibpath_var=LD_LIBRARY_PATH
13326 hardcode_into_libs=yes
13329 hpux9* | hpux10* | hpux11*)
13330 # Give a soname corresponding to the major version so that dld.sl refuses to
13331 # link against other versions.
13332 version_type=sunos
13333 need_lib_prefix=no
13334 need_version=no
13335 case $host_cpu in
13336 ia64*)
13337 shrext_cmds='.so'
13338 hardcode_into_libs=yes
13339 dynamic_linker="$host_os dld.so"
13340 shlibpath_var=LD_LIBRARY_PATH
13341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343 soname_spec='${libname}${release}${shared_ext}$major'
13344 if test "X$HPUX_IA64_MODE" = X32; then
13345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13346 else
13347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13351 hppa*64*)
13352 shrext_cmds='.sl'
13353 hardcode_into_libs=yes
13354 dynamic_linker="$host_os dld.sl"
13355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13358 soname_spec='${libname}${release}${shared_ext}$major'
13359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13363 shrext_cmds='.sl'
13364 dynamic_linker="$host_os dld.sl"
13365 shlibpath_var=SHLIB_PATH
13366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368 soname_spec='${libname}${release}${shared_ext}$major'
13370 esac
13371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13372 postinstall_cmds='chmod 555 $lib'
13375 interix[3-9]*)
13376 version_type=linux
13377 need_lib_prefix=no
13378 need_version=no
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 shlibpath_overrides_runpath=no
13384 hardcode_into_libs=yes
13387 irix5* | irix6* | nonstopux*)
13388 case $host_os in
13389 nonstopux*) version_type=nonstopux ;;
13391 if test "$lt_cv_prog_gnu_ld" = yes; then
13392 version_type=linux
13393 else
13394 version_type=irix
13395 fi ;;
13396 esac
13397 need_lib_prefix=no
13398 need_version=no
13399 soname_spec='${libname}${release}${shared_ext}$major'
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13401 case $host_os in
13402 irix5* | nonstopux*)
13403 libsuff= shlibsuff=
13406 case $LD in # libtool.m4 will add one of these switches to LD
13407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13408 libsuff= shlibsuff= libmagic=32-bit;;
13409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13410 libsuff=32 shlibsuff=N32 libmagic=N32;;
13411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13413 *) libsuff= shlibsuff= libmagic=never-match;;
13414 esac
13416 esac
13417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13418 shlibpath_overrides_runpath=no
13419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13421 hardcode_into_libs=yes
13424 # No shared lib support for Linux oldld, aout, or coff.
13425 linux*oldld* | linux*aout* | linux*coff*)
13426 dynamic_linker=no
13429 # This must be Linux ELF.
13430 linux* | k*bsd*-gnu)
13431 version_type=linux
13432 need_lib_prefix=no
13433 need_version=no
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 shlibpath_overrides_runpath=no
13439 # This implies no fast_install, which is unacceptable.
13440 # Some rework will be needed to allow for fast_install
13441 # before this can be enabled.
13442 hardcode_into_libs=yes
13444 # Append ld.so.conf contents to the search path
13445 if test -f /etc/ld.so.conf; then
13446 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' ' '`
13447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13450 # We used to test for /lib/ld.so.1 and disable shared libraries on
13451 # powerpc, because MkLinux only supported shared libraries with the
13452 # GNU dynamic linker. Since this was broken with cross compilers,
13453 # most powerpc-linux boxes support dynamic linking these days and
13454 # people can always --disable-shared, the test was removed, and we
13455 # assume the GNU/Linux dynamic linker is in use.
13456 dynamic_linker='GNU/Linux ld.so'
13459 netbsd*)
13460 version_type=sunos
13461 need_lib_prefix=no
13462 need_version=no
13463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13466 dynamic_linker='NetBSD (a.out) ld.so'
13467 else
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13469 soname_spec='${libname}${release}${shared_ext}$major'
13470 dynamic_linker='NetBSD ld.elf_so'
13472 shlibpath_var=LD_LIBRARY_PATH
13473 shlibpath_overrides_runpath=yes
13474 hardcode_into_libs=yes
13477 newsos6)
13478 version_type=linux
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480 shlibpath_var=LD_LIBRARY_PATH
13481 shlibpath_overrides_runpath=yes
13484 nto-qnx*)
13485 version_type=linux
13486 need_lib_prefix=no
13487 need_version=no
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 shlibpath_overrides_runpath=yes
13494 openbsd*)
13495 version_type=sunos
13496 sys_lib_dlsearch_path_spec="/usr/lib"
13497 need_lib_prefix=no
13498 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13499 case $host_os in
13500 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13501 *) need_version=no ;;
13502 esac
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13505 shlibpath_var=LD_LIBRARY_PATH
13506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13507 case $host_os in
13508 openbsd2.[89] | openbsd2.[89].*)
13509 shlibpath_overrides_runpath=no
13512 shlibpath_overrides_runpath=yes
13514 esac
13515 else
13516 shlibpath_overrides_runpath=yes
13520 os2*)
13521 libname_spec='$name'
13522 shrext_cmds=".dll"
13523 need_lib_prefix=no
13524 library_names_spec='$libname${shared_ext} $libname.a'
13525 dynamic_linker='OS/2 ld.exe'
13526 shlibpath_var=LIBPATH
13529 osf3* | osf4* | osf5*)
13530 version_type=osf
13531 need_lib_prefix=no
13532 need_version=no
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13540 rdos*)
13541 dynamic_linker=no
13544 solaris*)
13545 version_type=linux
13546 need_lib_prefix=no
13547 need_version=no
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 soname_spec='${libname}${release}${shared_ext}$major'
13550 shlibpath_var=LD_LIBRARY_PATH
13551 shlibpath_overrides_runpath=yes
13552 hardcode_into_libs=yes
13553 # ldd complains unless libraries are executable
13554 postinstall_cmds='chmod +x $lib'
13557 sunos4*)
13558 version_type=sunos
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13560 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13561 shlibpath_var=LD_LIBRARY_PATH
13562 shlibpath_overrides_runpath=yes
13563 if test "$with_gnu_ld" = yes; then
13564 need_lib_prefix=no
13566 need_version=yes
13569 sysv4 | sysv4.3*)
13570 version_type=linux
13571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13572 soname_spec='${libname}${release}${shared_ext}$major'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 case $host_vendor in
13575 sni)
13576 shlibpath_overrides_runpath=no
13577 need_lib_prefix=no
13578 export_dynamic_flag_spec='${wl}-Blargedynsym'
13579 runpath_var=LD_RUN_PATH
13581 siemens)
13582 need_lib_prefix=no
13584 motorola)
13585 need_lib_prefix=no
13586 need_version=no
13587 shlibpath_overrides_runpath=no
13588 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13590 esac
13593 sysv4*MP*)
13594 if test -d /usr/nec ;then
13595 version_type=linux
13596 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13597 soname_spec='$libname${shared_ext}.$major'
13598 shlibpath_var=LD_LIBRARY_PATH
13602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13603 version_type=freebsd-elf
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 hardcode_into_libs=yes
13610 if test "$with_gnu_ld" = yes; then
13611 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13612 shlibpath_overrides_runpath=no
13613 else
13614 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13615 shlibpath_overrides_runpath=yes
13616 case $host_os in
13617 sco3.2v5*)
13618 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13620 esac
13622 sys_lib_dlsearch_path_spec='/usr/lib'
13625 uts4*)
13626 version_type=linux
13627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628 soname_spec='${libname}${release}${shared_ext}$major'
13629 shlibpath_var=LD_LIBRARY_PATH
13633 dynamic_linker=no
13635 esac
13636 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13637 echo "${ECHO_T}$dynamic_linker" >&6; }
13638 test "$dynamic_linker" = no && can_build_shared=no
13640 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13646 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13647 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13653 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13656 if test "$GCC" = yes; then
13657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13660 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13661 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13662 hardcode_action_CXX=
13663 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13664 test -n "$runpath_var_CXX" || \
13665 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13667 # We can hardcode non-existant directories.
13668 if test "$hardcode_direct_CXX" != no &&
13669 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13670 # have to relink, otherwise we might link with an installed library
13671 # when we should be linking with a yet-to-be-installed one
13672 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13673 test "$hardcode_minus_L_CXX" != no; then
13674 # Linking always hardcodes the temporary library directory.
13675 hardcode_action_CXX=relink
13676 else
13677 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13678 hardcode_action_CXX=immediate
13680 else
13681 # We cannot hardcode anything, or else we can only hardcode existing
13682 # directories.
13683 hardcode_action_CXX=unsupported
13685 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13686 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13688 if test "$hardcode_action_CXX" = relink; then
13689 # Fast installation is not supported
13690 enable_fast_install=no
13691 elif test "$shlibpath_overrides_runpath" = yes ||
13692 test "$enable_shared" = no; then
13693 # Fast installation is not necessary
13694 enable_fast_install=needless
13698 # The else clause should only fire when bootstrapping the
13699 # libtool distribution, otherwise you forgot to ship ltmain.sh
13700 # with your package, and you will get complaints that there are
13701 # no rules to generate ltmain.sh.
13702 if test -f "$ltmain"; then
13703 # See if we are running on zsh, and set the options which allow our commands through
13704 # without removal of \ escapes.
13705 if test -n "${ZSH_VERSION+set}" ; then
13706 setopt NO_GLOB_SUBST
13708 # Now quote all the things that may contain metacharacters while being
13709 # careful not to overquote the AC_SUBSTed values. We take copies of the
13710 # variables and quote the copies for generation of the libtool script.
13711 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13712 SED SHELL STRIP \
13713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13715 deplibs_check_method reload_flag reload_cmds need_locks \
13716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13717 lt_cv_sys_global_symbol_to_c_name_address \
13718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13719 old_postinstall_cmds old_postuninstall_cmds \
13720 compiler_CXX \
13721 CC_CXX \
13722 LD_CXX \
13723 lt_prog_compiler_wl_CXX \
13724 lt_prog_compiler_pic_CXX \
13725 lt_prog_compiler_static_CXX \
13726 lt_prog_compiler_no_builtin_flag_CXX \
13727 export_dynamic_flag_spec_CXX \
13728 thread_safe_flag_spec_CXX \
13729 whole_archive_flag_spec_CXX \
13730 enable_shared_with_static_runtimes_CXX \
13731 old_archive_cmds_CXX \
13732 old_archive_from_new_cmds_CXX \
13733 predep_objects_CXX \
13734 postdep_objects_CXX \
13735 predeps_CXX \
13736 postdeps_CXX \
13737 compiler_lib_search_path_CXX \
13738 compiler_lib_search_dirs_CXX \
13739 archive_cmds_CXX \
13740 archive_expsym_cmds_CXX \
13741 postinstall_cmds_CXX \
13742 postuninstall_cmds_CXX \
13743 old_archive_from_expsyms_cmds_CXX \
13744 allow_undefined_flag_CXX \
13745 no_undefined_flag_CXX \
13746 export_symbols_cmds_CXX \
13747 hardcode_libdir_flag_spec_CXX \
13748 hardcode_libdir_flag_spec_ld_CXX \
13749 hardcode_libdir_separator_CXX \
13750 hardcode_automatic_CXX \
13751 module_cmds_CXX \
13752 module_expsym_cmds_CXX \
13753 lt_cv_prog_compiler_c_o_CXX \
13754 fix_srcfile_path_CXX \
13755 exclude_expsyms_CXX \
13756 include_expsyms_CXX; do
13758 case $var in
13759 old_archive_cmds_CXX | \
13760 old_archive_from_new_cmds_CXX | \
13761 archive_cmds_CXX | \
13762 archive_expsym_cmds_CXX | \
13763 module_cmds_CXX | \
13764 module_expsym_cmds_CXX | \
13765 old_archive_from_expsyms_cmds_CXX | \
13766 export_symbols_cmds_CXX | \
13767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13768 postinstall_cmds | postuninstall_cmds | \
13769 old_postinstall_cmds | old_postuninstall_cmds | \
13770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13771 # Double-quote double-evaled strings.
13772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13777 esac
13778 done
13780 case $lt_echo in
13781 *'\$0 --fallback-echo"')
13782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13784 esac
13786 cfgfile="$ofile"
13788 cat <<__EOF__ >> "$cfgfile"
13789 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13791 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13793 # Shell to use when invoking shell scripts.
13794 SHELL=$lt_SHELL
13796 # Whether or not to build shared libraries.
13797 build_libtool_libs=$enable_shared
13799 # Whether or not to build static libraries.
13800 build_old_libs=$enable_static
13802 # Whether or not to add -lc for building shared libraries.
13803 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13805 # Whether or not to disallow shared libs when runtime libs are static
13806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13808 # Whether or not to optimize for fast installation.
13809 fast_install=$enable_fast_install
13811 # The host system.
13812 host_alias=$host_alias
13813 host=$host
13814 host_os=$host_os
13816 # The build system.
13817 build_alias=$build_alias
13818 build=$build
13819 build_os=$build_os
13821 # An echo program that does not interpret backslashes.
13822 echo=$lt_echo
13824 # The archiver.
13825 AR=$lt_AR
13826 AR_FLAGS=$lt_AR_FLAGS
13828 # A C compiler.
13829 LTCC=$lt_LTCC
13831 # LTCC compiler flags.
13832 LTCFLAGS=$lt_LTCFLAGS
13834 # A language-specific compiler.
13835 CC=$lt_compiler_CXX
13837 # Is the compiler the GNU C compiler?
13838 with_gcc=$GCC_CXX
13840 # An ERE matcher.
13841 EGREP=$lt_EGREP
13843 # The linker used to build libraries.
13844 LD=$lt_LD_CXX
13846 # Whether we need hard or soft links.
13847 LN_S=$lt_LN_S
13849 # A BSD-compatible nm program.
13850 NM=$lt_NM
13852 # A symbol stripping program
13853 STRIP=$lt_STRIP
13855 # Used to examine libraries when file_magic_cmd begins "file"
13856 MAGIC_CMD=$MAGIC_CMD
13858 # Used on cygwin: DLL creation program.
13859 DLLTOOL="$DLLTOOL"
13861 # Used on cygwin: object dumper.
13862 OBJDUMP="$OBJDUMP"
13864 # Used on cygwin: assembler.
13865 AS="$AS"
13867 # The name of the directory that contains temporary libtool files.
13868 objdir=$objdir
13870 # How to create reloadable object files.
13871 reload_flag=$lt_reload_flag
13872 reload_cmds=$lt_reload_cmds
13874 # How to pass a linker flag through the compiler.
13875 wl=$lt_lt_prog_compiler_wl_CXX
13877 # Object file suffix (normally "o").
13878 objext="$ac_objext"
13880 # Old archive suffix (normally "a").
13881 libext="$libext"
13883 # Shared library suffix (normally ".so").
13884 shrext_cmds='$shrext_cmds'
13886 # Executable file suffix (normally "").
13887 exeext="$exeext"
13889 # Additional compiler flags for building library objects.
13890 pic_flag=$lt_lt_prog_compiler_pic_CXX
13891 pic_mode=$pic_mode
13893 # What is the maximum length of a command?
13894 max_cmd_len=$lt_cv_sys_max_cmd_len
13896 # Does compiler simultaneously support -c and -o options?
13897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13899 # Must we lock files when doing compilation?
13900 need_locks=$lt_need_locks
13902 # Do we need the lib prefix for modules?
13903 need_lib_prefix=$need_lib_prefix
13905 # Do we need a version for libraries?
13906 need_version=$need_version
13908 # Whether dlopen is supported.
13909 dlopen_support=$enable_dlopen
13911 # Whether dlopen of programs is supported.
13912 dlopen_self=$enable_dlopen_self
13914 # Whether dlopen of statically linked programs is supported.
13915 dlopen_self_static=$enable_dlopen_self_static
13917 # Compiler flag to prevent dynamic linking.
13918 link_static_flag=$lt_lt_prog_compiler_static_CXX
13920 # Compiler flag to turn off builtin functions.
13921 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13923 # Compiler flag to allow reflexive dlopens.
13924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13926 # Compiler flag to generate shared objects directly from archives.
13927 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13929 # Compiler flag to generate thread-safe objects.
13930 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13932 # Library versioning type.
13933 version_type=$version_type
13935 # Format of library name prefix.
13936 libname_spec=$lt_libname_spec
13938 # List of archive names. First name is the real one, the rest are links.
13939 # The last name is the one that the linker finds with -lNAME.
13940 library_names_spec=$lt_library_names_spec
13942 # The coded name of the library, if different from the real name.
13943 soname_spec=$lt_soname_spec
13945 # Commands used to build and install an old-style archive.
13946 RANLIB=$lt_RANLIB
13947 old_archive_cmds=$lt_old_archive_cmds_CXX
13948 old_postinstall_cmds=$lt_old_postinstall_cmds
13949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13951 # Create an old-style archive from a shared archive.
13952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13954 # Create a temporary old-style archive to link instead of a shared archive.
13955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13957 # Commands used to build and install a shared archive.
13958 archive_cmds=$lt_archive_cmds_CXX
13959 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13960 postinstall_cmds=$lt_postinstall_cmds
13961 postuninstall_cmds=$lt_postuninstall_cmds
13963 # Commands used to build a loadable module (assumed same as above if empty)
13964 module_cmds=$lt_module_cmds_CXX
13965 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13967 # Commands to strip libraries.
13968 old_striplib=$lt_old_striplib
13969 striplib=$lt_striplib
13971 # Dependencies to place before the objects being linked to create a
13972 # shared library.
13973 predep_objects=$lt_predep_objects_CXX
13975 # Dependencies to place after the objects being linked to create a
13976 # shared library.
13977 postdep_objects=$lt_postdep_objects_CXX
13979 # Dependencies to place before the objects being linked to create a
13980 # shared library.
13981 predeps=$lt_predeps_CXX
13983 # Dependencies to place after the objects being linked to create a
13984 # shared library.
13985 postdeps=$lt_postdeps_CXX
13987 # The directories searched by this compiler when creating a shared
13988 # library
13989 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13991 # The library search path used internally by the compiler when linking
13992 # a shared library.
13993 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13995 # Method to check whether dependent libraries are shared objects.
13996 deplibs_check_method=$lt_deplibs_check_method
13998 # Command to use when deplibs_check_method == file_magic.
13999 file_magic_cmd=$lt_file_magic_cmd
14001 # Flag that allows shared libraries with undefined symbols to be built.
14002 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14004 # Flag that forces no undefined symbols.
14005 no_undefined_flag=$lt_no_undefined_flag_CXX
14007 # Commands used to finish a libtool library installation in a directory.
14008 finish_cmds=$lt_finish_cmds
14010 # Same as above, but a single script fragment to be evaled but not shown.
14011 finish_eval=$lt_finish_eval
14013 # Take the output of nm and produce a listing of raw symbols and C names.
14014 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14016 # Transform the output of nm in a proper C declaration
14017 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14019 # Transform the output of nm in a C name address pair
14020 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14022 # This is the shared library runtime path variable.
14023 runpath_var=$runpath_var
14025 # This is the shared library path variable.
14026 shlibpath_var=$shlibpath_var
14028 # Is shlibpath searched before the hard-coded library search path?
14029 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14031 # How to hardcode a shared library path into an executable.
14032 hardcode_action=$hardcode_action_CXX
14034 # Whether we should hardcode library paths into libraries.
14035 hardcode_into_libs=$hardcode_into_libs
14037 # Flag to hardcode \$libdir into a binary during linking.
14038 # This must work even if \$libdir does not exist.
14039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14041 # If ld is used when linking, flag to hardcode \$libdir into
14042 # a binary during linking. This must work even if \$libdir does
14043 # not exist.
14044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14046 # Whether we need a single -rpath flag with a separated argument.
14047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14049 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14050 # resulting binary.
14051 hardcode_direct=$hardcode_direct_CXX
14053 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14054 # resulting binary.
14055 hardcode_minus_L=$hardcode_minus_L_CXX
14057 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14058 # the resulting binary.
14059 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14061 # Set to yes if building a shared library automatically hardcodes DIR into the library
14062 # and all subsequent libraries and executables linked against it.
14063 hardcode_automatic=$hardcode_automatic_CXX
14065 # Variables whose values should be saved in libtool wrapper scripts and
14066 # restored at relink time.
14067 variables_saved_for_relink="$variables_saved_for_relink"
14069 # Whether libtool must link a program against all its dependency libraries.
14070 link_all_deplibs=$link_all_deplibs_CXX
14072 # Compile-time system search path for libraries
14073 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14075 # Run-time system search path for libraries
14076 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14078 # Fix the shell variable \$srcfile for the compiler.
14079 fix_srcfile_path=$lt_fix_srcfile_path
14081 # Set to yes if exported symbols are required.
14082 always_export_symbols=$always_export_symbols_CXX
14084 # The commands to list exported symbols.
14085 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14087 # The commands to extract the exported symbol list from a shared archive.
14088 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14090 # Symbols that should not be listed in the preloaded symbols.
14091 exclude_expsyms=$lt_exclude_expsyms_CXX
14093 # Symbols that must always be exported.
14094 include_expsyms=$lt_include_expsyms_CXX
14096 # ### END LIBTOOL TAG CONFIG: $tagname
14098 __EOF__
14101 else
14102 # If there is no Makefile yet, we rely on a make rule to execute
14103 # `config.status --recheck' to rerun these tests and create the
14104 # libtool script then.
14105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14106 if test -f "$ltmain_in"; then
14107 test -f Makefile && make "$ltmain"
14112 ac_ext=c
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14118 CC=$lt_save_CC
14119 LDCXX=$LD
14120 LD=$lt_save_LD
14121 GCC=$lt_save_GCC
14122 with_gnu_ldcxx=$with_gnu_ld
14123 with_gnu_ld=$lt_save_with_gnu_ld
14124 lt_cv_path_LDCXX=$lt_cv_path_LD
14125 lt_cv_path_LD=$lt_save_path_LD
14126 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14127 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14129 else
14130 tagname=""
14134 F77)
14135 if test -n "$F77" && test "X$F77" != "Xno"; then
14137 ac_ext=f
14138 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14139 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14140 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14143 archive_cmds_need_lc_F77=no
14144 allow_undefined_flag_F77=
14145 always_export_symbols_F77=no
14146 archive_expsym_cmds_F77=
14147 export_dynamic_flag_spec_F77=
14148 hardcode_direct_F77=no
14149 hardcode_libdir_flag_spec_F77=
14150 hardcode_libdir_flag_spec_ld_F77=
14151 hardcode_libdir_separator_F77=
14152 hardcode_minus_L_F77=no
14153 hardcode_automatic_F77=no
14154 module_cmds_F77=
14155 module_expsym_cmds_F77=
14156 link_all_deplibs_F77=unknown
14157 old_archive_cmds_F77=$old_archive_cmds
14158 no_undefined_flag_F77=
14159 whole_archive_flag_spec_F77=
14160 enable_shared_with_static_runtimes_F77=no
14162 # Source file extension for f77 test sources.
14163 ac_ext=f
14165 # Object file extension for compiled f77 test sources.
14166 objext=o
14167 objext_F77=$objext
14169 # Code to be used in simple compile tests
14170 lt_simple_compile_test_code="\
14171 subroutine t
14172 return
14176 # Code to be used in simple link tests
14177 lt_simple_link_test_code="\
14178 program t
14182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14184 # If no C compiler was specified, use CC.
14185 LTCC=${LTCC-"$CC"}
14187 # If no C compiler flags were specified, use CFLAGS.
14188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14190 # Allow CC to be a program name with arguments.
14191 compiler=$CC
14194 # save warnings/boilerplate of simple test code
14195 ac_outfile=conftest.$ac_objext
14196 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14198 _lt_compiler_boilerplate=`cat conftest.err`
14199 $rm conftest*
14201 ac_outfile=conftest.$ac_objext
14202 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14204 _lt_linker_boilerplate=`cat conftest.err`
14205 $rm -r conftest*
14208 # Allow CC to be a program name with arguments.
14209 lt_save_CC="$CC"
14210 CC=${F77-"f77"}
14211 compiler=$CC
14212 compiler_F77=$CC
14213 for cc_temp in $compiler""; do
14214 case $cc_temp in
14215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14217 \-*) ;;
14218 *) break;;
14219 esac
14220 done
14221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14224 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14225 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14226 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14227 echo "${ECHO_T}$can_build_shared" >&6; }
14229 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14230 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14231 test "$can_build_shared" = "no" && enable_shared=no
14233 # On AIX, shared libraries and static libraries use the same namespace, and
14234 # are all built from PIC.
14235 case $host_os in
14236 aix3*)
14237 test "$enable_shared" = yes && enable_static=no
14238 if test -n "$RANLIB"; then
14239 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14240 postinstall_cmds='$RANLIB $lib'
14243 aix[4-9]*)
14244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14245 test "$enable_shared" = yes && enable_static=no
14248 esac
14249 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14250 echo "${ECHO_T}$enable_shared" >&6; }
14252 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14253 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14254 # Make sure either enable_shared or enable_static is yes.
14255 test "$enable_shared" = yes || enable_static=yes
14256 { echo "$as_me:$LINENO: result: $enable_static" >&5
14257 echo "${ECHO_T}$enable_static" >&6; }
14259 GCC_F77="$G77"
14260 LD_F77="$LD"
14262 lt_prog_compiler_wl_F77=
14263 lt_prog_compiler_pic_F77=
14264 lt_prog_compiler_static_F77=
14266 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14269 if test "$GCC" = yes; then
14270 lt_prog_compiler_wl_F77='-Wl,'
14271 lt_prog_compiler_static_F77='-static'
14273 case $host_os in
14274 aix*)
14275 # All AIX code is PIC.
14276 if test "$host_cpu" = ia64; then
14277 # AIX 5 now supports IA64 processor
14278 lt_prog_compiler_static_F77='-Bstatic'
14282 amigaos*)
14283 # FIXME: we need at least 68020 code to build shared libraries, but
14284 # adding the `-m68020' flag to GCC prevents building anything better,
14285 # like `-m68040'.
14286 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14290 # PIC is the default for these OSes.
14293 mingw* | cygwin* | pw32* | os2*)
14294 # This hack is so that the source file can tell whether it is being
14295 # built for inclusion in a dll (and should export symbols for example).
14296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14297 # (--disable-auto-import) libraries
14298 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14301 darwin* | rhapsody*)
14302 # PIC is the default on this platform
14303 # Common symbols not allowed in MH_DYLIB files
14304 lt_prog_compiler_pic_F77='-fno-common'
14307 interix[3-9]*)
14308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14309 # Instead, we relocate shared libraries at runtime.
14312 msdosdjgpp*)
14313 # Just because we use GCC doesn't mean we suddenly get shared libraries
14314 # on systems that don't support them.
14315 lt_prog_compiler_can_build_shared_F77=no
14316 enable_shared=no
14319 sysv4*MP*)
14320 if test -d /usr/nec; then
14321 lt_prog_compiler_pic_F77=-Kconform_pic
14325 hpux*)
14326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14327 # not for PA HP-UX.
14328 case $host_cpu in
14329 hppa*64*|ia64*)
14330 # +Z the default
14333 lt_prog_compiler_pic_F77='-fPIC'
14335 esac
14339 lt_prog_compiler_pic_F77='-fPIC'
14341 esac
14342 else
14343 # PORTME Check for flag to pass linker flags through the system compiler.
14344 case $host_os in
14345 aix*)
14346 lt_prog_compiler_wl_F77='-Wl,'
14347 if test "$host_cpu" = ia64; then
14348 # AIX 5 now supports IA64 processor
14349 lt_prog_compiler_static_F77='-Bstatic'
14350 else
14351 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14354 darwin*)
14355 # PIC is the default on this platform
14356 # Common symbols not allowed in MH_DYLIB files
14357 case $cc_basename in
14358 xlc*)
14359 lt_prog_compiler_pic_F77='-qnocommon'
14360 lt_prog_compiler_wl_F77='-Wl,'
14362 esac
14365 mingw* | cygwin* | pw32* | os2*)
14366 # This hack is so that the source file can tell whether it is being
14367 # built for inclusion in a dll (and should export symbols for example).
14368 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14371 hpux9* | hpux10* | hpux11*)
14372 lt_prog_compiler_wl_F77='-Wl,'
14373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14374 # not for PA HP-UX.
14375 case $host_cpu in
14376 hppa*64*|ia64*)
14377 # +Z the default
14380 lt_prog_compiler_pic_F77='+Z'
14382 esac
14383 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14384 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14387 irix5* | irix6* | nonstopux*)
14388 lt_prog_compiler_wl_F77='-Wl,'
14389 # PIC (with -KPIC) is the default.
14390 lt_prog_compiler_static_F77='-non_shared'
14393 newsos6)
14394 lt_prog_compiler_pic_F77='-KPIC'
14395 lt_prog_compiler_static_F77='-Bstatic'
14398 linux* | k*bsd*-gnu)
14399 case $cc_basename in
14400 icc* | ecc*)
14401 lt_prog_compiler_wl_F77='-Wl,'
14402 lt_prog_compiler_pic_F77='-KPIC'
14403 lt_prog_compiler_static_F77='-static'
14405 pgcc* | pgf77* | pgf90* | pgf95*)
14406 # Portland Group compilers (*not* the Pentium gcc compiler,
14407 # which looks to be a dead project)
14408 lt_prog_compiler_wl_F77='-Wl,'
14409 lt_prog_compiler_pic_F77='-fpic'
14410 lt_prog_compiler_static_F77='-Bstatic'
14412 ccc*)
14413 lt_prog_compiler_wl_F77='-Wl,'
14414 # All Alpha code is PIC.
14415 lt_prog_compiler_static_F77='-non_shared'
14418 case `$CC -V 2>&1 | sed 5q` in
14419 *Sun\ C*)
14420 # Sun C 5.9
14421 lt_prog_compiler_pic_F77='-KPIC'
14422 lt_prog_compiler_static_F77='-Bstatic'
14423 lt_prog_compiler_wl_F77='-Wl,'
14425 *Sun\ F*)
14426 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14427 lt_prog_compiler_pic_F77='-KPIC'
14428 lt_prog_compiler_static_F77='-Bstatic'
14429 lt_prog_compiler_wl_F77=''
14431 esac
14433 esac
14436 osf3* | osf4* | osf5*)
14437 lt_prog_compiler_wl_F77='-Wl,'
14438 # All OSF/1 code is PIC.
14439 lt_prog_compiler_static_F77='-non_shared'
14442 rdos*)
14443 lt_prog_compiler_static_F77='-non_shared'
14446 solaris*)
14447 lt_prog_compiler_pic_F77='-KPIC'
14448 lt_prog_compiler_static_F77='-Bstatic'
14449 case $cc_basename in
14450 f77* | f90* | f95*)
14451 lt_prog_compiler_wl_F77='-Qoption ld ';;
14453 lt_prog_compiler_wl_F77='-Wl,';;
14454 esac
14457 sunos4*)
14458 lt_prog_compiler_wl_F77='-Qoption ld '
14459 lt_prog_compiler_pic_F77='-PIC'
14460 lt_prog_compiler_static_F77='-Bstatic'
14463 sysv4 | sysv4.2uw2* | sysv4.3*)
14464 lt_prog_compiler_wl_F77='-Wl,'
14465 lt_prog_compiler_pic_F77='-KPIC'
14466 lt_prog_compiler_static_F77='-Bstatic'
14469 sysv4*MP*)
14470 if test -d /usr/nec ;then
14471 lt_prog_compiler_pic_F77='-Kconform_pic'
14472 lt_prog_compiler_static_F77='-Bstatic'
14476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14477 lt_prog_compiler_wl_F77='-Wl,'
14478 lt_prog_compiler_pic_F77='-KPIC'
14479 lt_prog_compiler_static_F77='-Bstatic'
14482 unicos*)
14483 lt_prog_compiler_wl_F77='-Wl,'
14484 lt_prog_compiler_can_build_shared_F77=no
14487 uts4*)
14488 lt_prog_compiler_pic_F77='-pic'
14489 lt_prog_compiler_static_F77='-Bstatic'
14493 lt_prog_compiler_can_build_shared_F77=no
14495 esac
14498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14499 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14502 # Check to make sure the PIC flag actually works.
14504 if test -n "$lt_prog_compiler_pic_F77"; then
14506 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14507 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14508 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511 lt_cv_prog_compiler_pic_works_F77=no
14512 ac_outfile=conftest.$ac_objext
14513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14514 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14515 # Insert the option either (1) after the last *FLAGS variable, or
14516 # (2) before a word containing "conftest.", or (3) at the end.
14517 # Note that $ac_compile itself does not contain backslashes and begins
14518 # with a dollar sign (not a hyphen), so the echo should work correctly.
14519 # The option is referenced via a variable to avoid confusing sed.
14520 lt_compile=`echo "$ac_compile" | $SED \
14521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14523 -e 's:$: $lt_compiler_flag:'`
14524 (eval echo "\"\$as_me:14524: $lt_compile\"" >&5)
14525 (eval "$lt_compile" 2>conftest.err)
14526 ac_status=$?
14527 cat conftest.err >&5
14528 echo "$as_me:14528: \$? = $ac_status" >&5
14529 if (exit $ac_status) && test -s "$ac_outfile"; then
14530 # The compiler can only warn and ignore the option if not recognized
14531 # So say no if there are warnings other than the usual output.
14532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14535 lt_cv_prog_compiler_pic_works_F77=yes
14538 $rm conftest*
14541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14542 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14544 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14545 case $lt_prog_compiler_pic_F77 in
14546 "" | " "*) ;;
14547 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14548 esac
14549 else
14550 lt_prog_compiler_pic_F77=
14551 lt_prog_compiler_can_build_shared_F77=no
14555 case $host_os in
14556 # For platforms which do not support PIC, -DPIC is meaningless:
14557 *djgpp*)
14558 lt_prog_compiler_pic_F77=
14561 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14563 esac
14566 # Check to make sure the static flag actually works.
14568 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14569 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14570 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14571 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574 lt_cv_prog_compiler_static_works_F77=no
14575 save_LDFLAGS="$LDFLAGS"
14576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14577 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14579 # The linker can only warn and ignore the option if not recognized
14580 # So say no if there are warnings
14581 if test -s conftest.err; then
14582 # Append any errors to the config.log.
14583 cat conftest.err 1>&5
14584 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14586 if diff conftest.exp conftest.er2 >/dev/null; then
14587 lt_cv_prog_compiler_static_works_F77=yes
14589 else
14590 lt_cv_prog_compiler_static_works_F77=yes
14593 $rm -r conftest*
14594 LDFLAGS="$save_LDFLAGS"
14597 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14598 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14600 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14602 else
14603 lt_prog_compiler_static_F77=
14607 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14608 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14609 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612 lt_cv_prog_compiler_c_o_F77=no
14613 $rm -r conftest 2>/dev/null
14614 mkdir conftest
14615 cd conftest
14616 mkdir out
14617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14619 lt_compiler_flag="-o out/conftest2.$ac_objext"
14620 # Insert the option either (1) after the last *FLAGS variable, or
14621 # (2) before a word containing "conftest.", or (3) at the end.
14622 # Note that $ac_compile itself does not contain backslashes and begins
14623 # with a dollar sign (not a hyphen), so the echo should work correctly.
14624 lt_compile=`echo "$ac_compile" | $SED \
14625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14627 -e 's:$: $lt_compiler_flag:'`
14628 (eval echo "\"\$as_me:14628: $lt_compile\"" >&5)
14629 (eval "$lt_compile" 2>out/conftest.err)
14630 ac_status=$?
14631 cat out/conftest.err >&5
14632 echo "$as_me:14632: \$? = $ac_status" >&5
14633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14634 then
14635 # The compiler can only warn and ignore the option if not recognized
14636 # So say no if there are warnings
14637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14640 lt_cv_prog_compiler_c_o_F77=yes
14643 chmod u+w . 2>&5
14644 $rm conftest*
14645 # SGI C++ compiler will create directory out/ii_files/ for
14646 # template instantiation
14647 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14648 $rm out/* && rmdir out
14649 cd ..
14650 rmdir conftest
14651 $rm conftest*
14654 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14655 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14658 hard_links="nottested"
14659 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14660 # do not overwrite the value of need_locks provided by the user
14661 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14662 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14663 hard_links=yes
14664 $rm conftest*
14665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14666 touch conftest.a
14667 ln conftest.a conftest.b 2>&5 || hard_links=no
14668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14669 { echo "$as_me:$LINENO: result: $hard_links" >&5
14670 echo "${ECHO_T}$hard_links" >&6; }
14671 if test "$hard_links" = no; then
14672 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14673 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14674 need_locks=warn
14676 else
14677 need_locks=no
14680 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14681 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14683 runpath_var=
14684 allow_undefined_flag_F77=
14685 enable_shared_with_static_runtimes_F77=no
14686 archive_cmds_F77=
14687 archive_expsym_cmds_F77=
14688 old_archive_From_new_cmds_F77=
14689 old_archive_from_expsyms_cmds_F77=
14690 export_dynamic_flag_spec_F77=
14691 whole_archive_flag_spec_F77=
14692 thread_safe_flag_spec_F77=
14693 hardcode_libdir_flag_spec_F77=
14694 hardcode_libdir_flag_spec_ld_F77=
14695 hardcode_libdir_separator_F77=
14696 hardcode_direct_F77=no
14697 hardcode_minus_L_F77=no
14698 hardcode_shlibpath_var_F77=unsupported
14699 link_all_deplibs_F77=unknown
14700 hardcode_automatic_F77=no
14701 module_cmds_F77=
14702 module_expsym_cmds_F77=
14703 always_export_symbols_F77=no
14704 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14705 # include_expsyms should be a list of space-separated symbols to be *always*
14706 # included in the symbol list
14707 include_expsyms_F77=
14708 # exclude_expsyms can be an extended regexp of symbols to exclude
14709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14711 # as well as any symbol that contains `d'.
14712 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14714 # platforms (ab)use it in PIC code, but their linkers get confused if
14715 # the symbol is explicitly referenced. Since portable code cannot
14716 # rely on this symbol name, it's probably fine to never include it in
14717 # preloaded symbol tables.
14718 # Exclude shared library initialization/finalization symbols.
14719 extract_expsyms_cmds=
14720 # Just being paranoid about ensuring that cc_basename is set.
14721 for cc_temp in $compiler""; do
14722 case $cc_temp in
14723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14725 \-*) ;;
14726 *) break;;
14727 esac
14728 done
14729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14731 case $host_os in
14732 cygwin* | mingw* | pw32*)
14733 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14734 # When not using gcc, we currently assume that we are using
14735 # Microsoft Visual C++.
14736 if test "$GCC" != yes; then
14737 with_gnu_ld=no
14740 interix*)
14741 # we just hope/assume this is gcc and not c89 (= MSVC++)
14742 with_gnu_ld=yes
14744 openbsd*)
14745 with_gnu_ld=no
14747 esac
14749 ld_shlibs_F77=yes
14750 if test "$with_gnu_ld" = yes; then
14751 # If archive_cmds runs LD, not CC, wlarc should be empty
14752 wlarc='${wl}'
14754 # Set some defaults for GNU ld with shared library support. These
14755 # are reset later if shared libraries are not supported. Putting them
14756 # here allows them to be overridden if necessary.
14757 runpath_var=LD_RUN_PATH
14758 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14759 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14760 # ancient GNU ld didn't support --whole-archive et. al.
14761 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14762 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14763 else
14764 whole_archive_flag_spec_F77=
14766 supports_anon_versioning=no
14767 case `$LD -v 2>/dev/null` in
14768 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14769 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14770 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14771 *\ 2.11.*) ;; # other 2.11 versions
14772 *) supports_anon_versioning=yes ;;
14773 esac
14775 # See if GNU ld supports shared libraries.
14776 case $host_os in
14777 aix[3-9]*)
14778 # On AIX/PPC, the GNU linker is very broken
14779 if test "$host_cpu" != ia64; then
14780 ld_shlibs_F77=no
14781 cat <<EOF 1>&2
14783 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14784 *** to be unable to reliably create shared libraries on AIX.
14785 *** Therefore, libtool is disabling shared libraries support. If you
14786 *** really care for shared libraries, you may want to modify your PATH
14787 *** so that a non-GNU linker is found, and then restart.
14793 amigaos*)
14794 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)'
14795 hardcode_libdir_flag_spec_F77='-L$libdir'
14796 hardcode_minus_L_F77=yes
14798 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14799 # that the semantics of dynamic libraries on AmigaOS, at least up
14800 # to version 4, is to share data among multiple programs linked
14801 # with the same dynamic library. Since this doesn't match the
14802 # behavior of shared libraries on other platforms, we can't use
14803 # them.
14804 ld_shlibs_F77=no
14807 beos*)
14808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14809 allow_undefined_flag_F77=unsupported
14810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14811 # support --undefined. This deserves some investigation. FIXME
14812 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813 else
14814 ld_shlibs_F77=no
14818 cygwin* | mingw* | pw32*)
14819 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14820 # as there is no search path for DLLs.
14821 hardcode_libdir_flag_spec_F77='-L$libdir'
14822 allow_undefined_flag_F77=unsupported
14823 always_export_symbols_F77=no
14824 enable_shared_with_static_runtimes_F77=yes
14825 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14827 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14829 # If the export-symbols file already is a .def file (1st line
14830 # is EXPORTS), use it as is; otherwise, prepend...
14831 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14832 cp $export_symbols $output_objdir/$soname.def;
14833 else
14834 echo EXPORTS > $output_objdir/$soname.def;
14835 cat $export_symbols >> $output_objdir/$soname.def;
14837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14838 else
14839 ld_shlibs_F77=no
14843 interix[3-9]*)
14844 hardcode_direct_F77=no
14845 hardcode_shlibpath_var_F77=no
14846 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14847 export_dynamic_flag_spec_F77='${wl}-E'
14848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14849 # Instead, shared libraries are loaded at an image base (0x10000000 by
14850 # default) and relocated if they conflict, which is a slow very memory
14851 # consuming and fragmenting process. To avoid this, we pick a random,
14852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14854 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'
14855 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'
14858 gnu* | linux* | k*bsd*-gnu)
14859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14860 tmp_addflag=
14861 case $cc_basename,$host_cpu in
14862 pgcc*) # Portland Group C compiler
14863 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'
14864 tmp_addflag=' $pic_flag'
14866 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14867 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'
14868 tmp_addflag=' $pic_flag -Mnomain' ;;
14869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14870 tmp_addflag=' -i_dynamic' ;;
14871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14872 tmp_addflag=' -i_dynamic -nofor_main' ;;
14873 ifc* | ifort*) # Intel Fortran compiler
14874 tmp_addflag=' -nofor_main' ;;
14875 esac
14876 case `$CC -V 2>&1 | sed 5q` in
14877 *Sun\ C*) # Sun C 5.9
14878 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'
14879 tmp_sharedflag='-G' ;;
14880 *Sun\ F*) # Sun Fortran 8.3
14881 tmp_sharedflag='-G' ;;
14883 tmp_sharedflag='-shared' ;;
14884 esac
14885 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14887 if test $supports_anon_versioning = yes; then
14888 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14890 $echo "local: *; };" >> $output_objdir/$libname.ver~
14891 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14893 else
14894 ld_shlibs_F77=no
14898 netbsd*)
14899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14900 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14901 wlarc=
14902 else
14903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14908 solaris*)
14909 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14910 ld_shlibs_F77=no
14911 cat <<EOF 1>&2
14913 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14914 *** create shared libraries on Solaris systems. Therefore, libtool
14915 *** is disabling shared libraries support. We urge you to upgrade GNU
14916 *** binutils to release 2.9.1 or newer. Another option is to modify
14917 *** your PATH or compiler configuration so that the native linker is
14918 *** used, and then restart.
14921 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14924 else
14925 ld_shlibs_F77=no
14929 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14930 case `$LD -v 2>&1` in
14931 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14932 ld_shlibs_F77=no
14933 cat <<_LT_EOF 1>&2
14935 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14936 *** reliably create shared libraries on SCO systems. Therefore, libtool
14937 *** is disabling shared libraries support. We urge you to upgrade GNU
14938 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14939 *** your PATH or compiler configuration so that the native linker is
14940 *** used, and then restart.
14942 _LT_EOF
14945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14946 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14948 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14949 else
14950 ld_shlibs_F77=no
14953 esac
14956 sunos4*)
14957 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14958 wlarc=
14959 hardcode_direct_F77=yes
14960 hardcode_shlibpath_var_F77=no
14964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14965 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14967 else
14968 ld_shlibs_F77=no
14971 esac
14973 if test "$ld_shlibs_F77" = no; then
14974 runpath_var=
14975 hardcode_libdir_flag_spec_F77=
14976 export_dynamic_flag_spec_F77=
14977 whole_archive_flag_spec_F77=
14979 else
14980 # PORTME fill in a description of your system's linker (not GNU ld)
14981 case $host_os in
14982 aix3*)
14983 allow_undefined_flag_F77=unsupported
14984 always_export_symbols_F77=yes
14985 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'
14986 # Note: this linker hardcodes the directories in LIBPATH if there
14987 # are no directories specified by -L.
14988 hardcode_minus_L_F77=yes
14989 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14990 # Neither direct hardcoding nor static linking is supported with a
14991 # broken collect2.
14992 hardcode_direct_F77=unsupported
14996 aix[4-9]*)
14997 if test "$host_cpu" = ia64; then
14998 # On IA64, the linker does run time linking by default, so we don't
14999 # have to do anything special.
15000 aix_use_runtimelinking=no
15001 exp_sym_flag='-Bexport'
15002 no_entry_flag=""
15003 else
15004 # If we're using GNU nm, then we don't want the "-C" option.
15005 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15006 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15007 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'
15008 else
15009 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'
15011 aix_use_runtimelinking=no
15013 # Test if we are trying to use run time linking or normal
15014 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15015 # need to do runtime linking.
15016 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15017 for ld_flag in $LDFLAGS; do
15018 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15019 aix_use_runtimelinking=yes
15020 break
15022 done
15024 esac
15026 exp_sym_flag='-bexport'
15027 no_entry_flag='-bnoentry'
15030 # When large executables or shared objects are built, AIX ld can
15031 # have problems creating the table of contents. If linking a library
15032 # or program results in "error TOC overflow" add -mminimal-toc to
15033 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15034 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15036 archive_cmds_F77=''
15037 hardcode_direct_F77=yes
15038 hardcode_libdir_separator_F77=':'
15039 link_all_deplibs_F77=yes
15041 if test "$GCC" = yes; then
15042 case $host_os in aix4.[012]|aix4.[012].*)
15043 # We only want to do this on AIX 4.2 and lower, the check
15044 # below for broken collect2 doesn't work under 4.3+
15045 collect2name=`${CC} -print-prog-name=collect2`
15046 if test -f "$collect2name" && \
15047 strings "$collect2name" | grep resolve_lib_name >/dev/null
15048 then
15049 # We have reworked collect2
15051 else
15052 # We have old collect2
15053 hardcode_direct_F77=unsupported
15054 # It fails to find uninstalled libraries when the uninstalled
15055 # path is not listed in the libpath. Setting hardcode_minus_L
15056 # to unsupported forces relinking
15057 hardcode_minus_L_F77=yes
15058 hardcode_libdir_flag_spec_F77='-L$libdir'
15059 hardcode_libdir_separator_F77=
15062 esac
15063 shared_flag='-shared'
15064 if test "$aix_use_runtimelinking" = yes; then
15065 shared_flag="$shared_flag "'${wl}-G'
15067 else
15068 # not using gcc
15069 if test "$host_cpu" = ia64; then
15070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15071 # chokes on -Wl,-G. The following line is correct:
15072 shared_flag='-G'
15073 else
15074 if test "$aix_use_runtimelinking" = yes; then
15075 shared_flag='${wl}-G'
15076 else
15077 shared_flag='${wl}-bM:SRE'
15082 # It seems that -bexpall does not export symbols beginning with
15083 # underscore (_), so it is better to generate a list of symbols to export.
15084 always_export_symbols_F77=yes
15085 if test "$aix_use_runtimelinking" = yes; then
15086 # Warning - without using the other runtime loading flags (-brtl),
15087 # -berok will link without error, but may produce a broken library.
15088 allow_undefined_flag_F77='-berok'
15089 # Determine the default libpath from the value encoded in an empty executable.
15090 cat >conftest.$ac_ext <<_ACEOF
15091 program main
15094 _ACEOF
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (ac_try="$ac_link"
15097 case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_link") 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } && {
15109 test -z "$ac_f77_werror_flag" ||
15110 test ! -s conftest.err
15111 } && test -s conftest$ac_exeext &&
15112 $as_test_x conftest$ac_exeext; then
15114 lt_aix_libpath_sed='
15115 /Import File Strings/,/^$/ {
15116 /^0/ {
15117 s/^0 *\(.*\)$/\1/
15121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15122 # Check for a 64-bit object if we didn't find anything.
15123 if test -z "$aix_libpath"; then
15124 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15126 else
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15134 conftest$ac_exeext conftest.$ac_ext
15135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15138 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"
15139 else
15140 if test "$host_cpu" = ia64; then
15141 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15142 allow_undefined_flag_F77="-z nodefs"
15143 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"
15144 else
15145 # Determine the default libpath from the value encoded in an empty executable.
15146 cat >conftest.$ac_ext <<_ACEOF
15147 program main
15150 _ACEOF
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (ac_try="$ac_link"
15153 case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15156 esac
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_link") 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && {
15165 test -z "$ac_f77_werror_flag" ||
15166 test ! -s conftest.err
15167 } && test -s conftest$ac_exeext &&
15168 $as_test_x conftest$ac_exeext; then
15170 lt_aix_libpath_sed='
15171 /Import File Strings/,/^$/ {
15172 /^0/ {
15173 s/^0 *\(.*\)$/\1/
15177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15178 # Check for a 64-bit object if we didn't find anything.
15179 if test -z "$aix_libpath"; then
15180 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182 else
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15190 conftest$ac_exeext conftest.$ac_ext
15191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15193 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15194 # Warning - without using the other run time loading flags,
15195 # -berok will link without error, but may produce a broken library.
15196 no_undefined_flag_F77=' ${wl}-bernotok'
15197 allow_undefined_flag_F77=' ${wl}-berok'
15198 # Exported symbols can be pulled into shared objects from archives
15199 whole_archive_flag_spec_F77='$convenience'
15200 archive_cmds_need_lc_F77=yes
15201 # This is similar to how AIX traditionally builds its shared libraries.
15202 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'
15207 amigaos*)
15208 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)'
15209 hardcode_libdir_flag_spec_F77='-L$libdir'
15210 hardcode_minus_L_F77=yes
15211 # see comment about different semantics on the GNU ld section
15212 ld_shlibs_F77=no
15215 bsdi[45]*)
15216 export_dynamic_flag_spec_F77=-rdynamic
15219 cygwin* | mingw* | pw32*)
15220 # When not using gcc, we currently assume that we are using
15221 # Microsoft Visual C++.
15222 # hardcode_libdir_flag_spec is actually meaningless, as there is
15223 # no search path for DLLs.
15224 hardcode_libdir_flag_spec_F77=' '
15225 allow_undefined_flag_F77=unsupported
15226 # Tell ltmain to make .lib files, not .a files.
15227 libext=lib
15228 # Tell ltmain to make .dll files, not .so files.
15229 shrext_cmds=".dll"
15230 # FIXME: Setting linknames here is a bad hack.
15231 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15232 # The linker will automatically build a .lib file if we build a DLL.
15233 old_archive_From_new_cmds_F77='true'
15234 # FIXME: Should let the user specify the lib program.
15235 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15236 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15237 enable_shared_with_static_runtimes_F77=yes
15240 darwin* | rhapsody*)
15241 case $host_os in
15242 rhapsody* | darwin1.[012])
15243 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15245 *) # Darwin 1.3 on
15246 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15247 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15248 else
15249 case ${MACOSX_DEPLOYMENT_TARGET} in
15250 10.[012])
15251 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15253 10.*)
15254 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15256 esac
15259 esac
15260 archive_cmds_need_lc_F77=no
15261 hardcode_direct_F77=no
15262 hardcode_automatic_F77=yes
15263 hardcode_shlibpath_var_F77=unsupported
15264 whole_archive_flag_spec_F77=''
15265 link_all_deplibs_F77=yes
15266 if test "$GCC" = yes ; then
15267 output_verbose_link_cmd='echo'
15268 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}"
15269 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15270 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}"
15271 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}"
15272 else
15273 case $cc_basename in
15274 xlc*)
15275 output_verbose_link_cmd='echo'
15276 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15277 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15278 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15279 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}'
15280 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}'
15283 ld_shlibs_F77=no
15285 esac
15289 dgux*)
15290 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15291 hardcode_libdir_flag_spec_F77='-L$libdir'
15292 hardcode_shlibpath_var_F77=no
15295 freebsd1*)
15296 ld_shlibs_F77=no
15299 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15300 # support. Future versions do this automatically, but an explicit c++rt0.o
15301 # does not break anything, and helps significantly (at the cost of a little
15302 # extra space).
15303 freebsd2.2*)
15304 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15305 hardcode_libdir_flag_spec_F77='-R$libdir'
15306 hardcode_direct_F77=yes
15307 hardcode_shlibpath_var_F77=no
15310 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15311 freebsd2*)
15312 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15313 hardcode_direct_F77=yes
15314 hardcode_minus_L_F77=yes
15315 hardcode_shlibpath_var_F77=no
15318 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15319 freebsd* | dragonfly*)
15320 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15321 hardcode_libdir_flag_spec_F77='-R$libdir'
15322 hardcode_direct_F77=yes
15323 hardcode_shlibpath_var_F77=no
15326 hpux9*)
15327 if test "$GCC" = yes; then
15328 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'
15329 else
15330 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'
15332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15333 hardcode_libdir_separator_F77=:
15334 hardcode_direct_F77=yes
15336 # hardcode_minus_L: Not really in the search PATH,
15337 # but as the default location of the library.
15338 hardcode_minus_L_F77=yes
15339 export_dynamic_flag_spec_F77='${wl}-E'
15342 hpux10*)
15343 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15344 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15345 else
15346 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15348 if test "$with_gnu_ld" = no; then
15349 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15350 hardcode_libdir_separator_F77=:
15352 hardcode_direct_F77=yes
15353 export_dynamic_flag_spec_F77='${wl}-E'
15355 # hardcode_minus_L: Not really in the search PATH,
15356 # but as the default location of the library.
15357 hardcode_minus_L_F77=yes
15361 hpux11*)
15362 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15363 case $host_cpu in
15364 hppa*64*)
15365 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15367 ia64*)
15368 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15371 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15373 esac
15374 else
15375 case $host_cpu in
15376 hppa*64*)
15377 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15379 ia64*)
15380 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15383 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15385 esac
15387 if test "$with_gnu_ld" = no; then
15388 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15389 hardcode_libdir_separator_F77=:
15391 case $host_cpu in
15392 hppa*64*|ia64*)
15393 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15394 hardcode_direct_F77=no
15395 hardcode_shlibpath_var_F77=no
15398 hardcode_direct_F77=yes
15399 export_dynamic_flag_spec_F77='${wl}-E'
15401 # hardcode_minus_L: Not really in the search PATH,
15402 # but as the default location of the library.
15403 hardcode_minus_L_F77=yes
15405 esac
15409 irix5* | irix6* | nonstopux*)
15410 if test "$GCC" = yes; then
15411 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'
15412 else
15413 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'
15414 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15417 hardcode_libdir_separator_F77=:
15418 link_all_deplibs_F77=yes
15421 netbsd*)
15422 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15423 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15424 else
15425 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15427 hardcode_libdir_flag_spec_F77='-R$libdir'
15428 hardcode_direct_F77=yes
15429 hardcode_shlibpath_var_F77=no
15432 newsos6)
15433 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15434 hardcode_direct_F77=yes
15435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15436 hardcode_libdir_separator_F77=:
15437 hardcode_shlibpath_var_F77=no
15440 openbsd*)
15441 if test -f /usr/libexec/ld.so; then
15442 hardcode_direct_F77=yes
15443 hardcode_shlibpath_var_F77=no
15444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15445 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15446 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15447 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15448 export_dynamic_flag_spec_F77='${wl}-E'
15449 else
15450 case $host_os in
15451 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15452 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_libdir_flag_spec_F77='-R$libdir'
15456 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15457 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15459 esac
15461 else
15462 ld_shlibs_F77=no
15466 os2*)
15467 hardcode_libdir_flag_spec_F77='-L$libdir'
15468 hardcode_minus_L_F77=yes
15469 allow_undefined_flag_F77=unsupported
15470 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'
15471 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15474 osf3*)
15475 if test "$GCC" = yes; then
15476 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15477 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'
15478 else
15479 allow_undefined_flag_F77=' -expect_unresolved \*'
15480 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'
15482 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15483 hardcode_libdir_separator_F77=:
15486 osf4* | osf5*) # as osf3* with the addition of -msym flag
15487 if test "$GCC" = yes; then
15488 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15489 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'
15490 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15491 else
15492 allow_undefined_flag_F77=' -expect_unresolved \*'
15493 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'
15494 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~
15495 $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'
15497 # Both c and cxx compiler support -rpath directly
15498 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15500 hardcode_libdir_separator_F77=:
15503 solaris*)
15504 no_undefined_flag_F77=' -z text'
15505 if test "$GCC" = yes; then
15506 wlarc='${wl}'
15507 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15509 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15510 else
15511 wlarc=''
15512 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15514 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15516 hardcode_libdir_flag_spec_F77='-R$libdir'
15517 hardcode_shlibpath_var_F77=no
15518 case $host_os in
15519 solaris2.[0-5] | solaris2.[0-5].*) ;;
15521 # The compiler driver will combine and reorder linker options,
15522 # but understands `-z linker_flag'. GCC discards it without `$wl',
15523 # but is careful enough not to reorder.
15524 # Supported since Solaris 2.6 (maybe 2.5.1?)
15525 if test "$GCC" = yes; then
15526 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15527 else
15528 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15531 esac
15532 link_all_deplibs_F77=yes
15535 sunos4*)
15536 if test "x$host_vendor" = xsequent; then
15537 # Use $CC to link under sequent, because it throws in some extra .o
15538 # files that make .init and .fini sections work.
15539 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15540 else
15541 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15543 hardcode_libdir_flag_spec_F77='-L$libdir'
15544 hardcode_direct_F77=yes
15545 hardcode_minus_L_F77=yes
15546 hardcode_shlibpath_var_F77=no
15549 sysv4)
15550 case $host_vendor in
15551 sni)
15552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_direct_F77=yes # is this really true???
15555 siemens)
15556 ## LD is ld it makes a PLAMLIB
15557 ## CC just makes a GrossModule.
15558 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15559 reload_cmds_F77='$CC -r -o $output$reload_objs'
15560 hardcode_direct_F77=no
15562 motorola)
15563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15566 esac
15567 runpath_var='LD_RUN_PATH'
15568 hardcode_shlibpath_var_F77=no
15571 sysv4.3*)
15572 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573 hardcode_shlibpath_var_F77=no
15574 export_dynamic_flag_spec_F77='-Bexport'
15577 sysv4*MP*)
15578 if test -d /usr/nec; then
15579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15580 hardcode_shlibpath_var_F77=no
15581 runpath_var=LD_RUN_PATH
15582 hardcode_runpath_var=yes
15583 ld_shlibs_F77=yes
15587 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15588 no_undefined_flag_F77='${wl}-z,text'
15589 archive_cmds_need_lc_F77=no
15590 hardcode_shlibpath_var_F77=no
15591 runpath_var='LD_RUN_PATH'
15593 if test "$GCC" = yes; then
15594 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 else
15597 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 sysv5* | sco3.2v5* | sco5v6*)
15603 # Note: We can NOT use -z defs as we might desire, because we do not
15604 # link with -lc, and that would cause any symbols used from libc to
15605 # always be unresolved, which means just about no library would
15606 # ever link correctly. If we're not using GNU ld we use -z text
15607 # though, which does catch some bad symbols but isn't as heavy-handed
15608 # as -z defs.
15609 no_undefined_flag_F77='${wl}-z,text'
15610 allow_undefined_flag_F77='${wl}-z,nodefs'
15611 archive_cmds_need_lc_F77=no
15612 hardcode_shlibpath_var_F77=no
15613 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15614 hardcode_libdir_separator_F77=':'
15615 link_all_deplibs_F77=yes
15616 export_dynamic_flag_spec_F77='${wl}-Bexport'
15617 runpath_var='LD_RUN_PATH'
15619 if test "$GCC" = yes; then
15620 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 else
15623 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 uts4*)
15629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630 hardcode_libdir_flag_spec_F77='-L$libdir'
15631 hardcode_shlibpath_var_F77=no
15635 ld_shlibs_F77=no
15637 esac
15640 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15641 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15642 test "$ld_shlibs_F77" = no && can_build_shared=no
15645 # Do we need to explicitly link libc?
15647 case "x$archive_cmds_need_lc_F77" in
15648 x|xyes)
15649 # Assume -lc should be added
15650 archive_cmds_need_lc_F77=yes
15652 if test "$enable_shared" = yes && test "$GCC" = yes; then
15653 case $archive_cmds_F77 in
15654 *'~'*)
15655 # FIXME: we may have to deal with multi-command sequences.
15657 '$CC '*)
15658 # Test whether the compiler implicitly links with -lc since on some
15659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15660 # to ld, don't add -lc before -lgcc.
15661 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15662 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15663 $rm conftest*
15664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15667 (eval $ac_compile) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } 2>conftest.err; then
15671 soname=conftest
15672 lib=conftest
15673 libobjs=conftest.$ac_objext
15674 deplibs=
15675 wl=$lt_prog_compiler_wl_F77
15676 pic_flag=$lt_prog_compiler_pic_F77
15677 compiler_flags=-v
15678 linker_flags=-v
15679 verstring=
15680 output_objdir=.
15681 libname=conftest
15682 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15683 allow_undefined_flag_F77=
15684 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15685 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }
15689 then
15690 archive_cmds_need_lc_F77=no
15691 else
15692 archive_cmds_need_lc_F77=yes
15694 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15695 else
15696 cat conftest.err 1>&5
15698 $rm conftest*
15699 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15700 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15702 esac
15705 esac
15707 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15709 library_names_spec=
15710 libname_spec='lib$name'
15711 soname_spec=
15712 shrext_cmds=".so"
15713 postinstall_cmds=
15714 postuninstall_cmds=
15715 finish_cmds=
15716 finish_eval=
15717 shlibpath_var=
15718 shlibpath_overrides_runpath=unknown
15719 version_type=none
15720 dynamic_linker="$host_os ld.so"
15721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15723 need_lib_prefix=unknown
15724 hardcode_into_libs=no
15726 # when you set need_version to no, make sure it does not cause -set_version
15727 # flags to be left without arguments
15728 need_version=unknown
15730 case $host_os in
15731 aix3*)
15732 version_type=linux
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15734 shlibpath_var=LIBPATH
15736 # AIX 3 has no versioning support, so we append a major version to the name.
15737 soname_spec='${libname}${release}${shared_ext}$major'
15740 aix[4-9]*)
15741 version_type=linux
15742 need_lib_prefix=no
15743 need_version=no
15744 hardcode_into_libs=yes
15745 if test "$host_cpu" = ia64; then
15746 # AIX 5 supports IA64
15747 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 else
15750 # With GCC up to 2.95.x, collect2 would create an import file
15751 # for dependence libraries. The import file would start with
15752 # the line `#! .'. This would cause the generated library to
15753 # depend on `.', always an invalid library. This was fixed in
15754 # development snapshots of GCC prior to 3.0.
15755 case $host_os in
15756 aix4 | aix4.[01] | aix4.[01].*)
15757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15758 echo ' yes '
15759 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15761 else
15762 can_build_shared=no
15765 esac
15766 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15767 # soname into executable. Probably we can add versioning support to
15768 # collect2, so additional links can be useful in future.
15769 if test "$aix_use_runtimelinking" = yes; then
15770 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15771 # instead of lib<name>.a to let people know that these are not
15772 # typical AIX shared libraries.
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 else
15775 # We preserve .a as extension for shared libraries through AIX4.2
15776 # and later when we are not doing run time linking.
15777 library_names_spec='${libname}${release}.a $libname.a'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15780 shlibpath_var=LIBPATH
15784 amigaos*)
15785 library_names_spec='$libname.ixlibrary $libname.a'
15786 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15787 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'
15790 beos*)
15791 library_names_spec='${libname}${shared_ext}'
15792 dynamic_linker="$host_os ld.so"
15793 shlibpath_var=LIBRARY_PATH
15796 bsdi[45]*)
15797 version_type=linux
15798 need_version=no
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800 soname_spec='${libname}${release}${shared_ext}$major'
15801 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15802 shlibpath_var=LD_LIBRARY_PATH
15803 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15804 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15805 # the default ld.so.conf also contains /usr/contrib/lib and
15806 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15807 # libtool to hard-code these into programs
15810 cygwin* | mingw* | pw32*)
15811 version_type=windows
15812 shrext_cmds=".dll"
15813 need_version=no
15814 need_lib_prefix=no
15816 case $GCC,$host_os in
15817 yes,cygwin* | yes,mingw* | yes,pw32*)
15818 library_names_spec='$libname.dll.a'
15819 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15820 postinstall_cmds='base_file=`basename \${file}`~
15821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15822 dldir=$destdir/`dirname \$dlpath`~
15823 test -d \$dldir || mkdir -p \$dldir~
15824 $install_prog $dir/$dlname \$dldir/$dlname~
15825 chmod a+x \$dldir/$dlname'
15826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15827 dlpath=$dir/\$dldll~
15828 $rm \$dlpath'
15829 shlibpath_overrides_runpath=yes
15831 case $host_os in
15832 cygwin*)
15833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15835 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15837 mingw*)
15838 # MinGW DLLs use traditional 'lib' prefix
15839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15841 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15842 # It is most probably a Windows format PATH printed by
15843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15844 # path with ; separators, and with drive letters. We can handle the
15845 # drive letters (cygwin fileutils understands them), so leave them,
15846 # especially as we might pass files found there to a mingw objdump,
15847 # which wouldn't understand a cygwinified path. Ahh.
15848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15849 else
15850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15853 pw32*)
15854 # pw32 DLLs use 'pw' prefix rather than 'lib'
15855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15857 esac
15861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15863 esac
15864 dynamic_linker='Win32 ld.exe'
15865 # FIXME: first we should search . and the directory the executable is in
15866 shlibpath_var=PATH
15869 darwin* | rhapsody*)
15870 dynamic_linker="$host_os dyld"
15871 version_type=darwin
15872 need_lib_prefix=no
15873 need_version=no
15874 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15875 soname_spec='${libname}${release}${major}$shared_ext'
15876 shlibpath_overrides_runpath=yes
15877 shlibpath_var=DYLD_LIBRARY_PATH
15878 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15880 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15883 dgux*)
15884 version_type=linux
15885 need_lib_prefix=no
15886 need_version=no
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15888 soname_spec='${libname}${release}${shared_ext}$major'
15889 shlibpath_var=LD_LIBRARY_PATH
15892 freebsd1*)
15893 dynamic_linker=no
15896 freebsd* | dragonfly*)
15897 # DragonFly does not have aout. When/if they implement a new
15898 # versioning mechanism, adjust this.
15899 if test -x /usr/bin/objformat; then
15900 objformat=`/usr/bin/objformat`
15901 else
15902 case $host_os in
15903 freebsd[123]*) objformat=aout ;;
15904 *) objformat=elf ;;
15905 esac
15907 version_type=freebsd-$objformat
15908 case $version_type in
15909 freebsd-elf*)
15910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15911 need_version=no
15912 need_lib_prefix=no
15914 freebsd-*)
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15916 need_version=yes
15918 esac
15919 shlibpath_var=LD_LIBRARY_PATH
15920 case $host_os in
15921 freebsd2*)
15922 shlibpath_overrides_runpath=yes
15924 freebsd3.[01]* | freebsdelf3.[01]*)
15925 shlibpath_overrides_runpath=yes
15926 hardcode_into_libs=yes
15928 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15929 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15930 shlibpath_overrides_runpath=no
15931 hardcode_into_libs=yes
15933 *) # from 4.6 on, and DragonFly
15934 shlibpath_overrides_runpath=yes
15935 hardcode_into_libs=yes
15937 esac
15940 gnu*)
15941 version_type=linux
15942 need_lib_prefix=no
15943 need_version=no
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15945 soname_spec='${libname}${release}${shared_ext}$major'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 hardcode_into_libs=yes
15950 hpux9* | hpux10* | hpux11*)
15951 # Give a soname corresponding to the major version so that dld.sl refuses to
15952 # link against other versions.
15953 version_type=sunos
15954 need_lib_prefix=no
15955 need_version=no
15956 case $host_cpu in
15957 ia64*)
15958 shrext_cmds='.so'
15959 hardcode_into_libs=yes
15960 dynamic_linker="$host_os dld.so"
15961 shlibpath_var=LD_LIBRARY_PATH
15962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15964 soname_spec='${libname}${release}${shared_ext}$major'
15965 if test "X$HPUX_IA64_MODE" = X32; then
15966 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15967 else
15968 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15972 hppa*64*)
15973 shrext_cmds='.sl'
15974 hardcode_into_libs=yes
15975 dynamic_linker="$host_os dld.sl"
15976 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15979 soname_spec='${libname}${release}${shared_ext}$major'
15980 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15984 shrext_cmds='.sl'
15985 dynamic_linker="$host_os dld.sl"
15986 shlibpath_var=SHLIB_PATH
15987 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989 soname_spec='${libname}${release}${shared_ext}$major'
15991 esac
15992 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15993 postinstall_cmds='chmod 555 $lib'
15996 interix[3-9]*)
15997 version_type=linux
15998 need_lib_prefix=no
15999 need_version=no
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16001 soname_spec='${libname}${release}${shared_ext}$major'
16002 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 shlibpath_overrides_runpath=no
16005 hardcode_into_libs=yes
16008 irix5* | irix6* | nonstopux*)
16009 case $host_os in
16010 nonstopux*) version_type=nonstopux ;;
16012 if test "$lt_cv_prog_gnu_ld" = yes; then
16013 version_type=linux
16014 else
16015 version_type=irix
16016 fi ;;
16017 esac
16018 need_lib_prefix=no
16019 need_version=no
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16022 case $host_os in
16023 irix5* | nonstopux*)
16024 libsuff= shlibsuff=
16027 case $LD in # libtool.m4 will add one of these switches to LD
16028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16029 libsuff= shlibsuff= libmagic=32-bit;;
16030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16031 libsuff=32 shlibsuff=N32 libmagic=N32;;
16032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16034 *) libsuff= shlibsuff= libmagic=never-match;;
16035 esac
16037 esac
16038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16039 shlibpath_overrides_runpath=no
16040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16042 hardcode_into_libs=yes
16045 # No shared lib support for Linux oldld, aout, or coff.
16046 linux*oldld* | linux*aout* | linux*coff*)
16047 dynamic_linker=no
16050 # This must be Linux ELF.
16051 linux* | k*bsd*-gnu)
16052 version_type=linux
16053 need_lib_prefix=no
16054 need_version=no
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=no
16060 # This implies no fast_install, which is unacceptable.
16061 # Some rework will be needed to allow for fast_install
16062 # before this can be enabled.
16063 hardcode_into_libs=yes
16065 # Append ld.so.conf contents to the search path
16066 if test -f /etc/ld.so.conf; then
16067 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' ' '`
16068 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16071 # We used to test for /lib/ld.so.1 and disable shared libraries on
16072 # powerpc, because MkLinux only supported shared libraries with the
16073 # GNU dynamic linker. Since this was broken with cross compilers,
16074 # most powerpc-linux boxes support dynamic linking these days and
16075 # people can always --disable-shared, the test was removed, and we
16076 # assume the GNU/Linux dynamic linker is in use.
16077 dynamic_linker='GNU/Linux ld.so'
16080 netbsd*)
16081 version_type=sunos
16082 need_lib_prefix=no
16083 need_version=no
16084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16087 dynamic_linker='NetBSD (a.out) ld.so'
16088 else
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 dynamic_linker='NetBSD ld.elf_so'
16093 shlibpath_var=LD_LIBRARY_PATH
16094 shlibpath_overrides_runpath=yes
16095 hardcode_into_libs=yes
16098 newsos6)
16099 version_type=linux
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes
16105 nto-qnx*)
16106 version_type=linux
16107 need_lib_prefix=no
16108 need_version=no
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=yes
16115 openbsd*)
16116 version_type=sunos
16117 sys_lib_dlsearch_path_spec="/usr/lib"
16118 need_lib_prefix=no
16119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16120 case $host_os in
16121 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16122 *) need_version=no ;;
16123 esac
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16126 shlibpath_var=LD_LIBRARY_PATH
16127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16128 case $host_os in
16129 openbsd2.[89] | openbsd2.[89].*)
16130 shlibpath_overrides_runpath=no
16133 shlibpath_overrides_runpath=yes
16135 esac
16136 else
16137 shlibpath_overrides_runpath=yes
16141 os2*)
16142 libname_spec='$name'
16143 shrext_cmds=".dll"
16144 need_lib_prefix=no
16145 library_names_spec='$libname${shared_ext} $libname.a'
16146 dynamic_linker='OS/2 ld.exe'
16147 shlibpath_var=LIBPATH
16150 osf3* | osf4* | osf5*)
16151 version_type=osf
16152 need_lib_prefix=no
16153 need_version=no
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16161 rdos*)
16162 dynamic_linker=no
16165 solaris*)
16166 version_type=linux
16167 need_lib_prefix=no
16168 need_version=no
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16173 hardcode_into_libs=yes
16174 # ldd complains unless libraries are executable
16175 postinstall_cmds='chmod +x $lib'
16178 sunos4*)
16179 version_type=sunos
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 shlibpath_overrides_runpath=yes
16184 if test "$with_gnu_ld" = yes; then
16185 need_lib_prefix=no
16187 need_version=yes
16190 sysv4 | sysv4.3*)
16191 version_type=linux
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 case $host_vendor in
16196 sni)
16197 shlibpath_overrides_runpath=no
16198 need_lib_prefix=no
16199 export_dynamic_flag_spec='${wl}-Blargedynsym'
16200 runpath_var=LD_RUN_PATH
16202 siemens)
16203 need_lib_prefix=no
16205 motorola)
16206 need_lib_prefix=no
16207 need_version=no
16208 shlibpath_overrides_runpath=no
16209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16211 esac
16214 sysv4*MP*)
16215 if test -d /usr/nec ;then
16216 version_type=linux
16217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218 soname_spec='$libname${shared_ext}.$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224 version_type=freebsd-elf
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 hardcode_into_libs=yes
16231 if test "$with_gnu_ld" = yes; then
16232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16233 shlibpath_overrides_runpath=no
16234 else
16235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236 shlibpath_overrides_runpath=yes
16237 case $host_os in
16238 sco3.2v5*)
16239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16241 esac
16243 sys_lib_dlsearch_path_spec='/usr/lib'
16246 uts4*)
16247 version_type=linux
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16254 dynamic_linker=no
16256 esac
16257 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16258 echo "${ECHO_T}$dynamic_linker" >&6; }
16259 test "$dynamic_linker" = no && can_build_shared=no
16261 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 else
16264 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16267 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16268 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270 else
16271 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16274 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16276 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16277 if test "$GCC" = yes; then
16278 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16281 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16282 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16283 hardcode_action_F77=
16284 if test -n "$hardcode_libdir_flag_spec_F77" || \
16285 test -n "$runpath_var_F77" || \
16286 test "X$hardcode_automatic_F77" = "Xyes" ; then
16288 # We can hardcode non-existant directories.
16289 if test "$hardcode_direct_F77" != no &&
16290 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16291 # have to relink, otherwise we might link with an installed library
16292 # when we should be linking with a yet-to-be-installed one
16293 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16294 test "$hardcode_minus_L_F77" != no; then
16295 # Linking always hardcodes the temporary library directory.
16296 hardcode_action_F77=relink
16297 else
16298 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16299 hardcode_action_F77=immediate
16301 else
16302 # We cannot hardcode anything, or else we can only hardcode existing
16303 # directories.
16304 hardcode_action_F77=unsupported
16306 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16307 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16309 if test "$hardcode_action_F77" = relink; then
16310 # Fast installation is not supported
16311 enable_fast_install=no
16312 elif test "$shlibpath_overrides_runpath" = yes ||
16313 test "$enable_shared" = no; then
16314 # Fast installation is not necessary
16315 enable_fast_install=needless
16319 # The else clause should only fire when bootstrapping the
16320 # libtool distribution, otherwise you forgot to ship ltmain.sh
16321 # with your package, and you will get complaints that there are
16322 # no rules to generate ltmain.sh.
16323 if test -f "$ltmain"; then
16324 # See if we are running on zsh, and set the options which allow our commands through
16325 # without removal of \ escapes.
16326 if test -n "${ZSH_VERSION+set}" ; then
16327 setopt NO_GLOB_SUBST
16329 # Now quote all the things that may contain metacharacters while being
16330 # careful not to overquote the AC_SUBSTed values. We take copies of the
16331 # variables and quote the copies for generation of the libtool script.
16332 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16333 SED SHELL STRIP \
16334 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16335 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16336 deplibs_check_method reload_flag reload_cmds need_locks \
16337 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16338 lt_cv_sys_global_symbol_to_c_name_address \
16339 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16340 old_postinstall_cmds old_postuninstall_cmds \
16341 compiler_F77 \
16342 CC_F77 \
16343 LD_F77 \
16344 lt_prog_compiler_wl_F77 \
16345 lt_prog_compiler_pic_F77 \
16346 lt_prog_compiler_static_F77 \
16347 lt_prog_compiler_no_builtin_flag_F77 \
16348 export_dynamic_flag_spec_F77 \
16349 thread_safe_flag_spec_F77 \
16350 whole_archive_flag_spec_F77 \
16351 enable_shared_with_static_runtimes_F77 \
16352 old_archive_cmds_F77 \
16353 old_archive_from_new_cmds_F77 \
16354 predep_objects_F77 \
16355 postdep_objects_F77 \
16356 predeps_F77 \
16357 postdeps_F77 \
16358 compiler_lib_search_path_F77 \
16359 compiler_lib_search_dirs_F77 \
16360 archive_cmds_F77 \
16361 archive_expsym_cmds_F77 \
16362 postinstall_cmds_F77 \
16363 postuninstall_cmds_F77 \
16364 old_archive_from_expsyms_cmds_F77 \
16365 allow_undefined_flag_F77 \
16366 no_undefined_flag_F77 \
16367 export_symbols_cmds_F77 \
16368 hardcode_libdir_flag_spec_F77 \
16369 hardcode_libdir_flag_spec_ld_F77 \
16370 hardcode_libdir_separator_F77 \
16371 hardcode_automatic_F77 \
16372 module_cmds_F77 \
16373 module_expsym_cmds_F77 \
16374 lt_cv_prog_compiler_c_o_F77 \
16375 fix_srcfile_path_F77 \
16376 exclude_expsyms_F77 \
16377 include_expsyms_F77; do
16379 case $var in
16380 old_archive_cmds_F77 | \
16381 old_archive_from_new_cmds_F77 | \
16382 archive_cmds_F77 | \
16383 archive_expsym_cmds_F77 | \
16384 module_cmds_F77 | \
16385 module_expsym_cmds_F77 | \
16386 old_archive_from_expsyms_cmds_F77 | \
16387 export_symbols_cmds_F77 | \
16388 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16389 postinstall_cmds | postuninstall_cmds | \
16390 old_postinstall_cmds | old_postuninstall_cmds | \
16391 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16392 # Double-quote double-evaled strings.
16393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16398 esac
16399 done
16401 case $lt_echo in
16402 *'\$0 --fallback-echo"')
16403 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16405 esac
16407 cfgfile="$ofile"
16409 cat <<__EOF__ >> "$cfgfile"
16410 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16414 # Shell to use when invoking shell scripts.
16415 SHELL=$lt_SHELL
16417 # Whether or not to build shared libraries.
16418 build_libtool_libs=$enable_shared
16420 # Whether or not to build static libraries.
16421 build_old_libs=$enable_static
16423 # Whether or not to add -lc for building shared libraries.
16424 build_libtool_need_lc=$archive_cmds_need_lc_F77
16426 # Whether or not to disallow shared libs when runtime libs are static
16427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16429 # Whether or not to optimize for fast installation.
16430 fast_install=$enable_fast_install
16432 # The host system.
16433 host_alias=$host_alias
16434 host=$host
16435 host_os=$host_os
16437 # The build system.
16438 build_alias=$build_alias
16439 build=$build
16440 build_os=$build_os
16442 # An echo program that does not interpret backslashes.
16443 echo=$lt_echo
16445 # The archiver.
16446 AR=$lt_AR
16447 AR_FLAGS=$lt_AR_FLAGS
16449 # A C compiler.
16450 LTCC=$lt_LTCC
16452 # LTCC compiler flags.
16453 LTCFLAGS=$lt_LTCFLAGS
16455 # A language-specific compiler.
16456 CC=$lt_compiler_F77
16458 # Is the compiler the GNU C compiler?
16459 with_gcc=$GCC_F77
16461 # An ERE matcher.
16462 EGREP=$lt_EGREP
16464 # The linker used to build libraries.
16465 LD=$lt_LD_F77
16467 # Whether we need hard or soft links.
16468 LN_S=$lt_LN_S
16470 # A BSD-compatible nm program.
16471 NM=$lt_NM
16473 # A symbol stripping program
16474 STRIP=$lt_STRIP
16476 # Used to examine libraries when file_magic_cmd begins "file"
16477 MAGIC_CMD=$MAGIC_CMD
16479 # Used on cygwin: DLL creation program.
16480 DLLTOOL="$DLLTOOL"
16482 # Used on cygwin: object dumper.
16483 OBJDUMP="$OBJDUMP"
16485 # Used on cygwin: assembler.
16486 AS="$AS"
16488 # The name of the directory that contains temporary libtool files.
16489 objdir=$objdir
16491 # How to create reloadable object files.
16492 reload_flag=$lt_reload_flag
16493 reload_cmds=$lt_reload_cmds
16495 # How to pass a linker flag through the compiler.
16496 wl=$lt_lt_prog_compiler_wl_F77
16498 # Object file suffix (normally "o").
16499 objext="$ac_objext"
16501 # Old archive suffix (normally "a").
16502 libext="$libext"
16504 # Shared library suffix (normally ".so").
16505 shrext_cmds='$shrext_cmds'
16507 # Executable file suffix (normally "").
16508 exeext="$exeext"
16510 # Additional compiler flags for building library objects.
16511 pic_flag=$lt_lt_prog_compiler_pic_F77
16512 pic_mode=$pic_mode
16514 # What is the maximum length of a command?
16515 max_cmd_len=$lt_cv_sys_max_cmd_len
16517 # Does compiler simultaneously support -c and -o options?
16518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16520 # Must we lock files when doing compilation?
16521 need_locks=$lt_need_locks
16523 # Do we need the lib prefix for modules?
16524 need_lib_prefix=$need_lib_prefix
16526 # Do we need a version for libraries?
16527 need_version=$need_version
16529 # Whether dlopen is supported.
16530 dlopen_support=$enable_dlopen
16532 # Whether dlopen of programs is supported.
16533 dlopen_self=$enable_dlopen_self
16535 # Whether dlopen of statically linked programs is supported.
16536 dlopen_self_static=$enable_dlopen_self_static
16538 # Compiler flag to prevent dynamic linking.
16539 link_static_flag=$lt_lt_prog_compiler_static_F77
16541 # Compiler flag to turn off builtin functions.
16542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16544 # Compiler flag to allow reflexive dlopens.
16545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16547 # Compiler flag to generate shared objects directly from archives.
16548 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16550 # Compiler flag to generate thread-safe objects.
16551 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16553 # Library versioning type.
16554 version_type=$version_type
16556 # Format of library name prefix.
16557 libname_spec=$lt_libname_spec
16559 # List of archive names. First name is the real one, the rest are links.
16560 # The last name is the one that the linker finds with -lNAME.
16561 library_names_spec=$lt_library_names_spec
16563 # The coded name of the library, if different from the real name.
16564 soname_spec=$lt_soname_spec
16566 # Commands used to build and install an old-style archive.
16567 RANLIB=$lt_RANLIB
16568 old_archive_cmds=$lt_old_archive_cmds_F77
16569 old_postinstall_cmds=$lt_old_postinstall_cmds
16570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16572 # Create an old-style archive from a shared archive.
16573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16575 # Create a temporary old-style archive to link instead of a shared archive.
16576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16578 # Commands used to build and install a shared archive.
16579 archive_cmds=$lt_archive_cmds_F77
16580 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16581 postinstall_cmds=$lt_postinstall_cmds
16582 postuninstall_cmds=$lt_postuninstall_cmds
16584 # Commands used to build a loadable module (assumed same as above if empty)
16585 module_cmds=$lt_module_cmds_F77
16586 module_expsym_cmds=$lt_module_expsym_cmds_F77
16588 # Commands to strip libraries.
16589 old_striplib=$lt_old_striplib
16590 striplib=$lt_striplib
16592 # Dependencies to place before the objects being linked to create a
16593 # shared library.
16594 predep_objects=$lt_predep_objects_F77
16596 # Dependencies to place after the objects being linked to create a
16597 # shared library.
16598 postdep_objects=$lt_postdep_objects_F77
16600 # Dependencies to place before the objects being linked to create a
16601 # shared library.
16602 predeps=$lt_predeps_F77
16604 # Dependencies to place after the objects being linked to create a
16605 # shared library.
16606 postdeps=$lt_postdeps_F77
16608 # The directories searched by this compiler when creating a shared
16609 # library
16610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16612 # The library search path used internally by the compiler when linking
16613 # a shared library.
16614 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16616 # Method to check whether dependent libraries are shared objects.
16617 deplibs_check_method=$lt_deplibs_check_method
16619 # Command to use when deplibs_check_method == file_magic.
16620 file_magic_cmd=$lt_file_magic_cmd
16622 # Flag that allows shared libraries with undefined symbols to be built.
16623 allow_undefined_flag=$lt_allow_undefined_flag_F77
16625 # Flag that forces no undefined symbols.
16626 no_undefined_flag=$lt_no_undefined_flag_F77
16628 # Commands used to finish a libtool library installation in a directory.
16629 finish_cmds=$lt_finish_cmds
16631 # Same as above, but a single script fragment to be evaled but not shown.
16632 finish_eval=$lt_finish_eval
16634 # Take the output of nm and produce a listing of raw symbols and C names.
16635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16637 # Transform the output of nm in a proper C declaration
16638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16640 # Transform the output of nm in a C name address pair
16641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16643 # This is the shared library runtime path variable.
16644 runpath_var=$runpath_var
16646 # This is the shared library path variable.
16647 shlibpath_var=$shlibpath_var
16649 # Is shlibpath searched before the hard-coded library search path?
16650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16652 # How to hardcode a shared library path into an executable.
16653 hardcode_action=$hardcode_action_F77
16655 # Whether we should hardcode library paths into libraries.
16656 hardcode_into_libs=$hardcode_into_libs
16658 # Flag to hardcode \$libdir into a binary during linking.
16659 # This must work even if \$libdir does not exist.
16660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16662 # If ld is used when linking, flag to hardcode \$libdir into
16663 # a binary during linking. This must work even if \$libdir does
16664 # not exist.
16665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16667 # Whether we need a single -rpath flag with a separated argument.
16668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16671 # resulting binary.
16672 hardcode_direct=$hardcode_direct_F77
16674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16675 # resulting binary.
16676 hardcode_minus_L=$hardcode_minus_L_F77
16678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16679 # the resulting binary.
16680 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16682 # Set to yes if building a shared library automatically hardcodes DIR into the library
16683 # and all subsequent libraries and executables linked against it.
16684 hardcode_automatic=$hardcode_automatic_F77
16686 # Variables whose values should be saved in libtool wrapper scripts and
16687 # restored at relink time.
16688 variables_saved_for_relink="$variables_saved_for_relink"
16690 # Whether libtool must link a program against all its dependency libraries.
16691 link_all_deplibs=$link_all_deplibs_F77
16693 # Compile-time system search path for libraries
16694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16696 # Run-time system search path for libraries
16697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16699 # Fix the shell variable \$srcfile for the compiler.
16700 fix_srcfile_path=$lt_fix_srcfile_path
16702 # Set to yes if exported symbols are required.
16703 always_export_symbols=$always_export_symbols_F77
16705 # The commands to list exported symbols.
16706 export_symbols_cmds=$lt_export_symbols_cmds_F77
16708 # The commands to extract the exported symbol list from a shared archive.
16709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16711 # Symbols that should not be listed in the preloaded symbols.
16712 exclude_expsyms=$lt_exclude_expsyms_F77
16714 # Symbols that must always be exported.
16715 include_expsyms=$lt_include_expsyms_F77
16717 # ### END LIBTOOL TAG CONFIG: $tagname
16719 __EOF__
16722 else
16723 # If there is no Makefile yet, we rely on a make rule to execute
16724 # `config.status --recheck' to rerun these tests and create the
16725 # libtool script then.
16726 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16727 if test -f "$ltmain_in"; then
16728 test -f Makefile && make "$ltmain"
16733 ac_ext=c
16734 ac_cpp='$CPP $CPPFLAGS'
16735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16739 CC="$lt_save_CC"
16741 else
16742 tagname=""
16746 GCJ)
16747 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16750 # Source file extension for Java test sources.
16751 ac_ext=java
16753 # Object file extension for compiled Java test sources.
16754 objext=o
16755 objext_GCJ=$objext
16757 # Code to be used in simple compile tests
16758 lt_simple_compile_test_code="class foo {}"
16760 # Code to be used in simple link tests
16761 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16763 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16765 # If no C compiler was specified, use CC.
16766 LTCC=${LTCC-"$CC"}
16768 # If no C compiler flags were specified, use CFLAGS.
16769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16771 # Allow CC to be a program name with arguments.
16772 compiler=$CC
16775 # save warnings/boilerplate of simple test code
16776 ac_outfile=conftest.$ac_objext
16777 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16779 _lt_compiler_boilerplate=`cat conftest.err`
16780 $rm conftest*
16782 ac_outfile=conftest.$ac_objext
16783 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16785 _lt_linker_boilerplate=`cat conftest.err`
16786 $rm -r conftest*
16789 # Allow CC to be a program name with arguments.
16790 lt_save_CC="$CC"
16791 CC=${GCJ-"gcj"}
16792 compiler=$CC
16793 compiler_GCJ=$CC
16794 for cc_temp in $compiler""; do
16795 case $cc_temp in
16796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16798 \-*) ;;
16799 *) break;;
16800 esac
16801 done
16802 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16805 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16806 archive_cmds_need_lc_GCJ=no
16808 old_archive_cmds_GCJ=$old_archive_cmds
16811 lt_prog_compiler_no_builtin_flag_GCJ=
16813 if test "$GCC" = yes; then
16814 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16817 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16818 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16819 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822 lt_cv_prog_compiler_rtti_exceptions=no
16823 ac_outfile=conftest.$ac_objext
16824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16825 lt_compiler_flag="-fno-rtti -fno-exceptions"
16826 # Insert the option either (1) after the last *FLAGS variable, or
16827 # (2) before a word containing "conftest.", or (3) at the end.
16828 # Note that $ac_compile itself does not contain backslashes and begins
16829 # with a dollar sign (not a hyphen), so the echo should work correctly.
16830 # The option is referenced via a variable to avoid confusing sed.
16831 lt_compile=`echo "$ac_compile" | $SED \
16832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16834 -e 's:$: $lt_compiler_flag:'`
16835 (eval echo "\"\$as_me:16835: $lt_compile\"" >&5)
16836 (eval "$lt_compile" 2>conftest.err)
16837 ac_status=$?
16838 cat conftest.err >&5
16839 echo "$as_me:16839: \$? = $ac_status" >&5
16840 if (exit $ac_status) && test -s "$ac_outfile"; then
16841 # The compiler can only warn and ignore the option if not recognized
16842 # So say no if there are warnings other than the usual output.
16843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16846 lt_cv_prog_compiler_rtti_exceptions=yes
16849 $rm conftest*
16852 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16853 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16855 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16856 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16857 else
16863 lt_prog_compiler_wl_GCJ=
16864 lt_prog_compiler_pic_GCJ=
16865 lt_prog_compiler_static_GCJ=
16867 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16868 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16870 if test "$GCC" = yes; then
16871 lt_prog_compiler_wl_GCJ='-Wl,'
16872 lt_prog_compiler_static_GCJ='-static'
16874 case $host_os in
16875 aix*)
16876 # All AIX code is PIC.
16877 if test "$host_cpu" = ia64; then
16878 # AIX 5 now supports IA64 processor
16879 lt_prog_compiler_static_GCJ='-Bstatic'
16883 amigaos*)
16884 # FIXME: we need at least 68020 code to build shared libraries, but
16885 # adding the `-m68020' flag to GCC prevents building anything better,
16886 # like `-m68040'.
16887 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16891 # PIC is the default for these OSes.
16894 mingw* | cygwin* | pw32* | os2*)
16895 # This hack is so that the source file can tell whether it is being
16896 # built for inclusion in a dll (and should export symbols for example).
16897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16898 # (--disable-auto-import) libraries
16902 darwin* | rhapsody*)
16903 # PIC is the default on this platform
16904 # Common symbols not allowed in MH_DYLIB files
16905 lt_prog_compiler_pic_GCJ='-fno-common'
16908 interix[3-9]*)
16909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16910 # Instead, we relocate shared libraries at runtime.
16913 msdosdjgpp*)
16914 # Just because we use GCC doesn't mean we suddenly get shared libraries
16915 # on systems that don't support them.
16916 lt_prog_compiler_can_build_shared_GCJ=no
16917 enable_shared=no
16920 sysv4*MP*)
16921 if test -d /usr/nec; then
16922 lt_prog_compiler_pic_GCJ=-Kconform_pic
16926 hpux*)
16927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16928 # not for PA HP-UX.
16929 case $host_cpu in
16930 hppa*64*|ia64*)
16931 # +Z the default
16934 lt_prog_compiler_pic_GCJ='-fPIC'
16936 esac
16940 lt_prog_compiler_pic_GCJ='-fPIC'
16942 esac
16943 else
16944 # PORTME Check for flag to pass linker flags through the system compiler.
16945 case $host_os in
16946 aix*)
16947 lt_prog_compiler_wl_GCJ='-Wl,'
16948 if test "$host_cpu" = ia64; then
16949 # AIX 5 now supports IA64 processor
16950 lt_prog_compiler_static_GCJ='-Bstatic'
16951 else
16952 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16955 darwin*)
16956 # PIC is the default on this platform
16957 # Common symbols not allowed in MH_DYLIB files
16958 case $cc_basename in
16959 xlc*)
16960 lt_prog_compiler_pic_GCJ='-qnocommon'
16961 lt_prog_compiler_wl_GCJ='-Wl,'
16963 esac
16966 mingw* | cygwin* | pw32* | os2*)
16967 # This hack is so that the source file can tell whether it is being
16968 # built for inclusion in a dll (and should export symbols for example).
16972 hpux9* | hpux10* | hpux11*)
16973 lt_prog_compiler_wl_GCJ='-Wl,'
16974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16975 # not for PA HP-UX.
16976 case $host_cpu in
16977 hppa*64*|ia64*)
16978 # +Z the default
16981 lt_prog_compiler_pic_GCJ='+Z'
16983 esac
16984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16985 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16988 irix5* | irix6* | nonstopux*)
16989 lt_prog_compiler_wl_GCJ='-Wl,'
16990 # PIC (with -KPIC) is the default.
16991 lt_prog_compiler_static_GCJ='-non_shared'
16994 newsos6)
16995 lt_prog_compiler_pic_GCJ='-KPIC'
16996 lt_prog_compiler_static_GCJ='-Bstatic'
16999 linux* | k*bsd*-gnu)
17000 case $cc_basename in
17001 icc* | ecc*)
17002 lt_prog_compiler_wl_GCJ='-Wl,'
17003 lt_prog_compiler_pic_GCJ='-KPIC'
17004 lt_prog_compiler_static_GCJ='-static'
17006 pgcc* | pgf77* | pgf90* | pgf95*)
17007 # Portland Group compilers (*not* the Pentium gcc compiler,
17008 # which looks to be a dead project)
17009 lt_prog_compiler_wl_GCJ='-Wl,'
17010 lt_prog_compiler_pic_GCJ='-fpic'
17011 lt_prog_compiler_static_GCJ='-Bstatic'
17013 ccc*)
17014 lt_prog_compiler_wl_GCJ='-Wl,'
17015 # All Alpha code is PIC.
17016 lt_prog_compiler_static_GCJ='-non_shared'
17019 case `$CC -V 2>&1 | sed 5q` in
17020 *Sun\ C*)
17021 # Sun C 5.9
17022 lt_prog_compiler_pic_GCJ='-KPIC'
17023 lt_prog_compiler_static_GCJ='-Bstatic'
17024 lt_prog_compiler_wl_GCJ='-Wl,'
17026 *Sun\ F*)
17027 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17028 lt_prog_compiler_pic_GCJ='-KPIC'
17029 lt_prog_compiler_static_GCJ='-Bstatic'
17030 lt_prog_compiler_wl_GCJ=''
17032 esac
17034 esac
17037 osf3* | osf4* | osf5*)
17038 lt_prog_compiler_wl_GCJ='-Wl,'
17039 # All OSF/1 code is PIC.
17040 lt_prog_compiler_static_GCJ='-non_shared'
17043 rdos*)
17044 lt_prog_compiler_static_GCJ='-non_shared'
17047 solaris*)
17048 lt_prog_compiler_pic_GCJ='-KPIC'
17049 lt_prog_compiler_static_GCJ='-Bstatic'
17050 case $cc_basename in
17051 f77* | f90* | f95*)
17052 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17054 lt_prog_compiler_wl_GCJ='-Wl,';;
17055 esac
17058 sunos4*)
17059 lt_prog_compiler_wl_GCJ='-Qoption ld '
17060 lt_prog_compiler_pic_GCJ='-PIC'
17061 lt_prog_compiler_static_GCJ='-Bstatic'
17064 sysv4 | sysv4.2uw2* | sysv4.3*)
17065 lt_prog_compiler_wl_GCJ='-Wl,'
17066 lt_prog_compiler_pic_GCJ='-KPIC'
17067 lt_prog_compiler_static_GCJ='-Bstatic'
17070 sysv4*MP*)
17071 if test -d /usr/nec ;then
17072 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17073 lt_prog_compiler_static_GCJ='-Bstatic'
17077 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17078 lt_prog_compiler_wl_GCJ='-Wl,'
17079 lt_prog_compiler_pic_GCJ='-KPIC'
17080 lt_prog_compiler_static_GCJ='-Bstatic'
17083 unicos*)
17084 lt_prog_compiler_wl_GCJ='-Wl,'
17085 lt_prog_compiler_can_build_shared_GCJ=no
17088 uts4*)
17089 lt_prog_compiler_pic_GCJ='-pic'
17090 lt_prog_compiler_static_GCJ='-Bstatic'
17094 lt_prog_compiler_can_build_shared_GCJ=no
17096 esac
17099 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17100 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17103 # Check to make sure the PIC flag actually works.
17105 if test -n "$lt_prog_compiler_pic_GCJ"; then
17107 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17109 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112 lt_cv_prog_compiler_pic_works_GCJ=no
17113 ac_outfile=conftest.$ac_objext
17114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17115 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17116 # Insert the option either (1) after the last *FLAGS variable, or
17117 # (2) before a word containing "conftest.", or (3) at the end.
17118 # Note that $ac_compile itself does not contain backslashes and begins
17119 # with a dollar sign (not a hyphen), so the echo should work correctly.
17120 # The option is referenced via a variable to avoid confusing sed.
17121 lt_compile=`echo "$ac_compile" | $SED \
17122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17124 -e 's:$: $lt_compiler_flag:'`
17125 (eval echo "\"\$as_me:17125: $lt_compile\"" >&5)
17126 (eval "$lt_compile" 2>conftest.err)
17127 ac_status=$?
17128 cat conftest.err >&5
17129 echo "$as_me:17129: \$? = $ac_status" >&5
17130 if (exit $ac_status) && test -s "$ac_outfile"; then
17131 # The compiler can only warn and ignore the option if not recognized
17132 # So say no if there are warnings other than the usual output.
17133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17136 lt_cv_prog_compiler_pic_works_GCJ=yes
17139 $rm conftest*
17142 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17143 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17145 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17146 case $lt_prog_compiler_pic_GCJ in
17147 "" | " "*) ;;
17148 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17149 esac
17150 else
17151 lt_prog_compiler_pic_GCJ=
17152 lt_prog_compiler_can_build_shared_GCJ=no
17156 case $host_os in
17157 # For platforms which do not support PIC, -DPIC is meaningless:
17158 *djgpp*)
17159 lt_prog_compiler_pic_GCJ=
17162 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17164 esac
17167 # Check to make sure the static flag actually works.
17169 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17170 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17171 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17172 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17175 lt_cv_prog_compiler_static_works_GCJ=no
17176 save_LDFLAGS="$LDFLAGS"
17177 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17178 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17179 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17180 # The linker can only warn and ignore the option if not recognized
17181 # So say no if there are warnings
17182 if test -s conftest.err; then
17183 # Append any errors to the config.log.
17184 cat conftest.err 1>&5
17185 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17187 if diff conftest.exp conftest.er2 >/dev/null; then
17188 lt_cv_prog_compiler_static_works_GCJ=yes
17190 else
17191 lt_cv_prog_compiler_static_works_GCJ=yes
17194 $rm -r conftest*
17195 LDFLAGS="$save_LDFLAGS"
17198 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17199 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17201 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17203 else
17204 lt_prog_compiler_static_GCJ=
17208 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17209 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17210 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213 lt_cv_prog_compiler_c_o_GCJ=no
17214 $rm -r conftest 2>/dev/null
17215 mkdir conftest
17216 cd conftest
17217 mkdir out
17218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17220 lt_compiler_flag="-o out/conftest2.$ac_objext"
17221 # Insert the option either (1) after the last *FLAGS variable, or
17222 # (2) before a word containing "conftest.", or (3) at the end.
17223 # Note that $ac_compile itself does not contain backslashes and begins
17224 # with a dollar sign (not a hyphen), so the echo should work correctly.
17225 lt_compile=`echo "$ac_compile" | $SED \
17226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17228 -e 's:$: $lt_compiler_flag:'`
17229 (eval echo "\"\$as_me:17229: $lt_compile\"" >&5)
17230 (eval "$lt_compile" 2>out/conftest.err)
17231 ac_status=$?
17232 cat out/conftest.err >&5
17233 echo "$as_me:17233: \$? = $ac_status" >&5
17234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17235 then
17236 # The compiler can only warn and ignore the option if not recognized
17237 # So say no if there are warnings
17238 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17241 lt_cv_prog_compiler_c_o_GCJ=yes
17244 chmod u+w . 2>&5
17245 $rm conftest*
17246 # SGI C++ compiler will create directory out/ii_files/ for
17247 # template instantiation
17248 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17249 $rm out/* && rmdir out
17250 cd ..
17251 rmdir conftest
17252 $rm conftest*
17255 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17259 hard_links="nottested"
17260 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17261 # do not overwrite the value of need_locks provided by the user
17262 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17263 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17264 hard_links=yes
17265 $rm conftest*
17266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17267 touch conftest.a
17268 ln conftest.a conftest.b 2>&5 || hard_links=no
17269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17270 { echo "$as_me:$LINENO: result: $hard_links" >&5
17271 echo "${ECHO_T}$hard_links" >&6; }
17272 if test "$hard_links" = no; then
17273 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17274 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17275 need_locks=warn
17277 else
17278 need_locks=no
17281 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17284 runpath_var=
17285 allow_undefined_flag_GCJ=
17286 enable_shared_with_static_runtimes_GCJ=no
17287 archive_cmds_GCJ=
17288 archive_expsym_cmds_GCJ=
17289 old_archive_From_new_cmds_GCJ=
17290 old_archive_from_expsyms_cmds_GCJ=
17291 export_dynamic_flag_spec_GCJ=
17292 whole_archive_flag_spec_GCJ=
17293 thread_safe_flag_spec_GCJ=
17294 hardcode_libdir_flag_spec_GCJ=
17295 hardcode_libdir_flag_spec_ld_GCJ=
17296 hardcode_libdir_separator_GCJ=
17297 hardcode_direct_GCJ=no
17298 hardcode_minus_L_GCJ=no
17299 hardcode_shlibpath_var_GCJ=unsupported
17300 link_all_deplibs_GCJ=unknown
17301 hardcode_automatic_GCJ=no
17302 module_cmds_GCJ=
17303 module_expsym_cmds_GCJ=
17304 always_export_symbols_GCJ=no
17305 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17306 # include_expsyms should be a list of space-separated symbols to be *always*
17307 # included in the symbol list
17308 include_expsyms_GCJ=
17309 # exclude_expsyms can be an extended regexp of symbols to exclude
17310 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17312 # as well as any symbol that contains `d'.
17313 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17315 # platforms (ab)use it in PIC code, but their linkers get confused if
17316 # the symbol is explicitly referenced. Since portable code cannot
17317 # rely on this symbol name, it's probably fine to never include it in
17318 # preloaded symbol tables.
17319 # Exclude shared library initialization/finalization symbols.
17320 extract_expsyms_cmds=
17321 # Just being paranoid about ensuring that cc_basename is set.
17322 for cc_temp in $compiler""; do
17323 case $cc_temp in
17324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17326 \-*) ;;
17327 *) break;;
17328 esac
17329 done
17330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17332 case $host_os in
17333 cygwin* | mingw* | pw32*)
17334 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17335 # When not using gcc, we currently assume that we are using
17336 # Microsoft Visual C++.
17337 if test "$GCC" != yes; then
17338 with_gnu_ld=no
17341 interix*)
17342 # we just hope/assume this is gcc and not c89 (= MSVC++)
17343 with_gnu_ld=yes
17345 openbsd*)
17346 with_gnu_ld=no
17348 esac
17350 ld_shlibs_GCJ=yes
17351 if test "$with_gnu_ld" = yes; then
17352 # If archive_cmds runs LD, not CC, wlarc should be empty
17353 wlarc='${wl}'
17355 # Set some defaults for GNU ld with shared library support. These
17356 # are reset later if shared libraries are not supported. Putting them
17357 # here allows them to be overridden if necessary.
17358 runpath_var=LD_RUN_PATH
17359 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17360 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17361 # ancient GNU ld didn't support --whole-archive et. al.
17362 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17363 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17364 else
17365 whole_archive_flag_spec_GCJ=
17367 supports_anon_versioning=no
17368 case `$LD -v 2>/dev/null` in
17369 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17370 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17371 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17372 *\ 2.11.*) ;; # other 2.11 versions
17373 *) supports_anon_versioning=yes ;;
17374 esac
17376 # See if GNU ld supports shared libraries.
17377 case $host_os in
17378 aix[3-9]*)
17379 # On AIX/PPC, the GNU linker is very broken
17380 if test "$host_cpu" != ia64; then
17381 ld_shlibs_GCJ=no
17382 cat <<EOF 1>&2
17384 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17385 *** to be unable to reliably create shared libraries on AIX.
17386 *** Therefore, libtool is disabling shared libraries support. If you
17387 *** really care for shared libraries, you may want to modify your PATH
17388 *** so that a non-GNU linker is found, and then restart.
17394 amigaos*)
17395 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)'
17396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17397 hardcode_minus_L_GCJ=yes
17399 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17400 # that the semantics of dynamic libraries on AmigaOS, at least up
17401 # to version 4, is to share data among multiple programs linked
17402 # with the same dynamic library. Since this doesn't match the
17403 # behavior of shared libraries on other platforms, we can't use
17404 # them.
17405 ld_shlibs_GCJ=no
17408 beos*)
17409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17410 allow_undefined_flag_GCJ=unsupported
17411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17412 # support --undefined. This deserves some investigation. FIXME
17413 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17414 else
17415 ld_shlibs_GCJ=no
17419 cygwin* | mingw* | pw32*)
17420 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17421 # as there is no search path for DLLs.
17422 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17423 allow_undefined_flag_GCJ=unsupported
17424 always_export_symbols_GCJ=no
17425 enable_shared_with_static_runtimes_GCJ=yes
17426 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17428 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17429 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17430 # If the export-symbols file already is a .def file (1st line
17431 # is EXPORTS), use it as is; otherwise, prepend...
17432 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17433 cp $export_symbols $output_objdir/$soname.def;
17434 else
17435 echo EXPORTS > $output_objdir/$soname.def;
17436 cat $export_symbols >> $output_objdir/$soname.def;
17438 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17439 else
17440 ld_shlibs_GCJ=no
17444 interix[3-9]*)
17445 hardcode_direct_GCJ=no
17446 hardcode_shlibpath_var_GCJ=no
17447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17448 export_dynamic_flag_spec_GCJ='${wl}-E'
17449 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17450 # Instead, shared libraries are loaded at an image base (0x10000000 by
17451 # default) and relocated if they conflict, which is a slow very memory
17452 # consuming and fragmenting process. To avoid this, we pick a random,
17453 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17454 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17455 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'
17456 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'
17459 gnu* | linux* | k*bsd*-gnu)
17460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17461 tmp_addflag=
17462 case $cc_basename,$host_cpu in
17463 pgcc*) # Portland Group C compiler
17464 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'
17465 tmp_addflag=' $pic_flag'
17467 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17468 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'
17469 tmp_addflag=' $pic_flag -Mnomain' ;;
17470 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17471 tmp_addflag=' -i_dynamic' ;;
17472 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17473 tmp_addflag=' -i_dynamic -nofor_main' ;;
17474 ifc* | ifort*) # Intel Fortran compiler
17475 tmp_addflag=' -nofor_main' ;;
17476 esac
17477 case `$CC -V 2>&1 | sed 5q` in
17478 *Sun\ C*) # Sun C 5.9
17479 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'
17480 tmp_sharedflag='-G' ;;
17481 *Sun\ F*) # Sun Fortran 8.3
17482 tmp_sharedflag='-G' ;;
17484 tmp_sharedflag='-shared' ;;
17485 esac
17486 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17488 if test $supports_anon_versioning = yes; then
17489 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17491 $echo "local: *; };" >> $output_objdir/$libname.ver~
17492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17494 else
17495 ld_shlibs_GCJ=no
17499 netbsd*)
17500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17501 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17502 wlarc=
17503 else
17504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17505 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17509 solaris*)
17510 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17511 ld_shlibs_GCJ=no
17512 cat <<EOF 1>&2
17514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17515 *** create shared libraries on Solaris systems. Therefore, libtool
17516 *** is disabling shared libraries support. We urge you to upgrade GNU
17517 *** binutils to release 2.9.1 or newer. Another option is to modify
17518 *** your PATH or compiler configuration so that the native linker is
17519 *** used, and then restart.
17522 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17523 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17524 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17525 else
17526 ld_shlibs_GCJ=no
17530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17531 case `$LD -v 2>&1` in
17532 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17533 ld_shlibs_GCJ=no
17534 cat <<_LT_EOF 1>&2
17536 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17537 *** reliably create shared libraries on SCO systems. Therefore, libtool
17538 *** is disabling shared libraries support. We urge you to upgrade GNU
17539 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17540 *** your PATH or compiler configuration so that the native linker is
17541 *** used, and then restart.
17543 _LT_EOF
17546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17547 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17548 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17549 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17550 else
17551 ld_shlibs_GCJ=no
17554 esac
17557 sunos4*)
17558 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17559 wlarc=
17560 hardcode_direct_GCJ=yes
17561 hardcode_shlibpath_var_GCJ=no
17565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17566 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17567 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17568 else
17569 ld_shlibs_GCJ=no
17572 esac
17574 if test "$ld_shlibs_GCJ" = no; then
17575 runpath_var=
17576 hardcode_libdir_flag_spec_GCJ=
17577 export_dynamic_flag_spec_GCJ=
17578 whole_archive_flag_spec_GCJ=
17580 else
17581 # PORTME fill in a description of your system's linker (not GNU ld)
17582 case $host_os in
17583 aix3*)
17584 allow_undefined_flag_GCJ=unsupported
17585 always_export_symbols_GCJ=yes
17586 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'
17587 # Note: this linker hardcodes the directories in LIBPATH if there
17588 # are no directories specified by -L.
17589 hardcode_minus_L_GCJ=yes
17590 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17591 # Neither direct hardcoding nor static linking is supported with a
17592 # broken collect2.
17593 hardcode_direct_GCJ=unsupported
17597 aix[4-9]*)
17598 if test "$host_cpu" = ia64; then
17599 # On IA64, the linker does run time linking by default, so we don't
17600 # have to do anything special.
17601 aix_use_runtimelinking=no
17602 exp_sym_flag='-Bexport'
17603 no_entry_flag=""
17604 else
17605 # If we're using GNU nm, then we don't want the "-C" option.
17606 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17607 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17608 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'
17609 else
17610 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'
17612 aix_use_runtimelinking=no
17614 # Test if we are trying to use run time linking or normal
17615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17616 # need to do runtime linking.
17617 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17618 for ld_flag in $LDFLAGS; do
17619 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17620 aix_use_runtimelinking=yes
17621 break
17623 done
17625 esac
17627 exp_sym_flag='-bexport'
17628 no_entry_flag='-bnoentry'
17631 # When large executables or shared objects are built, AIX ld can
17632 # have problems creating the table of contents. If linking a library
17633 # or program results in "error TOC overflow" add -mminimal-toc to
17634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17637 archive_cmds_GCJ=''
17638 hardcode_direct_GCJ=yes
17639 hardcode_libdir_separator_GCJ=':'
17640 link_all_deplibs_GCJ=yes
17642 if test "$GCC" = yes; then
17643 case $host_os in aix4.[012]|aix4.[012].*)
17644 # We only want to do this on AIX 4.2 and lower, the check
17645 # below for broken collect2 doesn't work under 4.3+
17646 collect2name=`${CC} -print-prog-name=collect2`
17647 if test -f "$collect2name" && \
17648 strings "$collect2name" | grep resolve_lib_name >/dev/null
17649 then
17650 # We have reworked collect2
17652 else
17653 # We have old collect2
17654 hardcode_direct_GCJ=unsupported
17655 # It fails to find uninstalled libraries when the uninstalled
17656 # path is not listed in the libpath. Setting hardcode_minus_L
17657 # to unsupported forces relinking
17658 hardcode_minus_L_GCJ=yes
17659 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17660 hardcode_libdir_separator_GCJ=
17663 esac
17664 shared_flag='-shared'
17665 if test "$aix_use_runtimelinking" = yes; then
17666 shared_flag="$shared_flag "'${wl}-G'
17668 else
17669 # not using gcc
17670 if test "$host_cpu" = ia64; then
17671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17672 # chokes on -Wl,-G. The following line is correct:
17673 shared_flag='-G'
17674 else
17675 if test "$aix_use_runtimelinking" = yes; then
17676 shared_flag='${wl}-G'
17677 else
17678 shared_flag='${wl}-bM:SRE'
17683 # It seems that -bexpall does not export symbols beginning with
17684 # underscore (_), so it is better to generate a list of symbols to export.
17685 always_export_symbols_GCJ=yes
17686 if test "$aix_use_runtimelinking" = yes; then
17687 # Warning - without using the other runtime loading flags (-brtl),
17688 # -berok will link without error, but may produce a broken library.
17689 allow_undefined_flag_GCJ='-berok'
17690 # Determine the default libpath from the value encoded in an empty executable.
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17699 main ()
17703 return 0;
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (ac_try="$ac_link"
17708 case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_link") 2>conftest.er1
17714 ac_status=$?
17715 grep -v '^ *+' conftest.er1 >conftest.err
17716 rm -f conftest.er1
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && {
17720 test -z "$ac_c_werror_flag" ||
17721 test ! -s conftest.err
17722 } && test -s conftest$ac_exeext &&
17723 $as_test_x conftest$ac_exeext; then
17725 lt_aix_libpath_sed='
17726 /Import File Strings/,/^$/ {
17727 /^0/ {
17728 s/^0 *\(.*\)$/\1/
17732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17733 # Check for a 64-bit object if we didn't find anything.
17734 if test -z "$aix_libpath"; then
17735 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17737 else
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17745 conftest$ac_exeext conftest.$ac_ext
17746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17748 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17749 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"
17750 else
17751 if test "$host_cpu" = ia64; then
17752 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17753 allow_undefined_flag_GCJ="-z nodefs"
17754 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"
17755 else
17756 # Determine the default libpath from the value encoded in an empty executable.
17757 cat >conftest.$ac_ext <<_ACEOF
17758 /* confdefs.h. */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17765 main ()
17769 return 0;
17771 _ACEOF
17772 rm -f conftest.$ac_objext conftest$ac_exeext
17773 if { (ac_try="$ac_link"
17774 case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17777 esac
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_link") 2>conftest.er1
17780 ac_status=$?
17781 grep -v '^ *+' conftest.er1 >conftest.err
17782 rm -f conftest.er1
17783 cat conftest.err >&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } && {
17786 test -z "$ac_c_werror_flag" ||
17787 test ! -s conftest.err
17788 } && test -s conftest$ac_exeext &&
17789 $as_test_x conftest$ac_exeext; then
17791 lt_aix_libpath_sed='
17792 /Import File Strings/,/^$/ {
17793 /^0/ {
17794 s/^0 *\(.*\)$/\1/
17798 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17799 # Check for a 64-bit object if we didn't find anything.
17800 if test -z "$aix_libpath"; then
17801 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17811 conftest$ac_exeext conftest.$ac_ext
17812 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17814 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17815 # Warning - without using the other run time loading flags,
17816 # -berok will link without error, but may produce a broken library.
17817 no_undefined_flag_GCJ=' ${wl}-bernotok'
17818 allow_undefined_flag_GCJ=' ${wl}-berok'
17819 # Exported symbols can be pulled into shared objects from archives
17820 whole_archive_flag_spec_GCJ='$convenience'
17821 archive_cmds_need_lc_GCJ=yes
17822 # This is similar to how AIX traditionally builds its shared libraries.
17823 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'
17828 amigaos*)
17829 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)'
17830 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17831 hardcode_minus_L_GCJ=yes
17832 # see comment about different semantics on the GNU ld section
17833 ld_shlibs_GCJ=no
17836 bsdi[45]*)
17837 export_dynamic_flag_spec_GCJ=-rdynamic
17840 cygwin* | mingw* | pw32*)
17841 # When not using gcc, we currently assume that we are using
17842 # Microsoft Visual C++.
17843 # hardcode_libdir_flag_spec is actually meaningless, as there is
17844 # no search path for DLLs.
17845 hardcode_libdir_flag_spec_GCJ=' '
17846 allow_undefined_flag_GCJ=unsupported
17847 # Tell ltmain to make .lib files, not .a files.
17848 libext=lib
17849 # Tell ltmain to make .dll files, not .so files.
17850 shrext_cmds=".dll"
17851 # FIXME: Setting linknames here is a bad hack.
17852 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17853 # The linker will automatically build a .lib file if we build a DLL.
17854 old_archive_From_new_cmds_GCJ='true'
17855 # FIXME: Should let the user specify the lib program.
17856 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17857 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17858 enable_shared_with_static_runtimes_GCJ=yes
17861 darwin* | rhapsody*)
17862 case $host_os in
17863 rhapsody* | darwin1.[012])
17864 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17866 *) # Darwin 1.3 on
17867 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17868 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17869 else
17870 case ${MACOSX_DEPLOYMENT_TARGET} in
17871 10.[012])
17872 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17874 10.*)
17875 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17877 esac
17880 esac
17881 archive_cmds_need_lc_GCJ=no
17882 hardcode_direct_GCJ=no
17883 hardcode_automatic_GCJ=yes
17884 hardcode_shlibpath_var_GCJ=unsupported
17885 whole_archive_flag_spec_GCJ=''
17886 link_all_deplibs_GCJ=yes
17887 if test "$GCC" = yes ; then
17888 output_verbose_link_cmd='echo'
17889 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}"
17890 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17891 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}"
17892 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}"
17893 else
17894 case $cc_basename in
17895 xlc*)
17896 output_verbose_link_cmd='echo'
17897 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17898 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17899 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17900 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}'
17901 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}'
17904 ld_shlibs_GCJ=no
17906 esac
17910 dgux*)
17911 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17912 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17913 hardcode_shlibpath_var_GCJ=no
17916 freebsd1*)
17917 ld_shlibs_GCJ=no
17920 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17921 # support. Future versions do this automatically, but an explicit c++rt0.o
17922 # does not break anything, and helps significantly (at the cost of a little
17923 # extra space).
17924 freebsd2.2*)
17925 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17926 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17927 hardcode_direct_GCJ=yes
17928 hardcode_shlibpath_var_GCJ=no
17931 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17932 freebsd2*)
17933 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17934 hardcode_direct_GCJ=yes
17935 hardcode_minus_L_GCJ=yes
17936 hardcode_shlibpath_var_GCJ=no
17939 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17940 freebsd* | dragonfly*)
17941 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17942 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17943 hardcode_direct_GCJ=yes
17944 hardcode_shlibpath_var_GCJ=no
17947 hpux9*)
17948 if test "$GCC" = yes; then
17949 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'
17950 else
17951 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'
17953 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17954 hardcode_libdir_separator_GCJ=:
17955 hardcode_direct_GCJ=yes
17957 # hardcode_minus_L: Not really in the search PATH,
17958 # but as the default location of the library.
17959 hardcode_minus_L_GCJ=yes
17960 export_dynamic_flag_spec_GCJ='${wl}-E'
17963 hpux10*)
17964 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17965 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17966 else
17967 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17969 if test "$with_gnu_ld" = no; then
17970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17971 hardcode_libdir_separator_GCJ=:
17973 hardcode_direct_GCJ=yes
17974 export_dynamic_flag_spec_GCJ='${wl}-E'
17976 # hardcode_minus_L: Not really in the search PATH,
17977 # but as the default location of the library.
17978 hardcode_minus_L_GCJ=yes
17982 hpux11*)
17983 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17984 case $host_cpu in
17985 hppa*64*)
17986 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17988 ia64*)
17989 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17992 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17994 esac
17995 else
17996 case $host_cpu in
17997 hppa*64*)
17998 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18000 ia64*)
18001 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18004 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18006 esac
18008 if test "$with_gnu_ld" = no; then
18009 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18010 hardcode_libdir_separator_GCJ=:
18012 case $host_cpu in
18013 hppa*64*|ia64*)
18014 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18015 hardcode_direct_GCJ=no
18016 hardcode_shlibpath_var_GCJ=no
18019 hardcode_direct_GCJ=yes
18020 export_dynamic_flag_spec_GCJ='${wl}-E'
18022 # hardcode_minus_L: Not really in the search PATH,
18023 # but as the default location of the library.
18024 hardcode_minus_L_GCJ=yes
18026 esac
18030 irix5* | irix6* | nonstopux*)
18031 if test "$GCC" = yes; then
18032 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'
18033 else
18034 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'
18035 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18038 hardcode_libdir_separator_GCJ=:
18039 link_all_deplibs_GCJ=yes
18042 netbsd*)
18043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18044 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18045 else
18046 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18048 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18049 hardcode_direct_GCJ=yes
18050 hardcode_shlibpath_var_GCJ=no
18053 newsos6)
18054 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18055 hardcode_direct_GCJ=yes
18056 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18057 hardcode_libdir_separator_GCJ=:
18058 hardcode_shlibpath_var_GCJ=no
18061 openbsd*)
18062 if test -f /usr/libexec/ld.so; then
18063 hardcode_direct_GCJ=yes
18064 hardcode_shlibpath_var_GCJ=no
18065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18066 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18067 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18069 export_dynamic_flag_spec_GCJ='${wl}-E'
18070 else
18071 case $host_os in
18072 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18073 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18074 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18077 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18078 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18080 esac
18082 else
18083 ld_shlibs_GCJ=no
18087 os2*)
18088 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18089 hardcode_minus_L_GCJ=yes
18090 allow_undefined_flag_GCJ=unsupported
18091 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'
18092 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18095 osf3*)
18096 if test "$GCC" = yes; then
18097 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18098 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'
18099 else
18100 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18101 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'
18103 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18104 hardcode_libdir_separator_GCJ=:
18107 osf4* | osf5*) # as osf3* with the addition of -msym flag
18108 if test "$GCC" = yes; then
18109 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18110 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'
18111 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112 else
18113 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18114 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'
18115 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~
18116 $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'
18118 # Both c and cxx compiler support -rpath directly
18119 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18121 hardcode_libdir_separator_GCJ=:
18124 solaris*)
18125 no_undefined_flag_GCJ=' -z text'
18126 if test "$GCC" = yes; then
18127 wlarc='${wl}'
18128 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18130 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18131 else
18132 wlarc=''
18133 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18134 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18135 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18137 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18138 hardcode_shlibpath_var_GCJ=no
18139 case $host_os in
18140 solaris2.[0-5] | solaris2.[0-5].*) ;;
18142 # The compiler driver will combine and reorder linker options,
18143 # but understands `-z linker_flag'. GCC discards it without `$wl',
18144 # but is careful enough not to reorder.
18145 # Supported since Solaris 2.6 (maybe 2.5.1?)
18146 if test "$GCC" = yes; then
18147 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18148 else
18149 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18152 esac
18153 link_all_deplibs_GCJ=yes
18156 sunos4*)
18157 if test "x$host_vendor" = xsequent; then
18158 # Use $CC to link under sequent, because it throws in some extra .o
18159 # files that make .init and .fini sections work.
18160 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18161 else
18162 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18165 hardcode_direct_GCJ=yes
18166 hardcode_minus_L_GCJ=yes
18167 hardcode_shlibpath_var_GCJ=no
18170 sysv4)
18171 case $host_vendor in
18172 sni)
18173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18174 hardcode_direct_GCJ=yes # is this really true???
18176 siemens)
18177 ## LD is ld it makes a PLAMLIB
18178 ## CC just makes a GrossModule.
18179 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18180 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18181 hardcode_direct_GCJ=no
18183 motorola)
18184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18185 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18187 esac
18188 runpath_var='LD_RUN_PATH'
18189 hardcode_shlibpath_var_GCJ=no
18192 sysv4.3*)
18193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18194 hardcode_shlibpath_var_GCJ=no
18195 export_dynamic_flag_spec_GCJ='-Bexport'
18198 sysv4*MP*)
18199 if test -d /usr/nec; then
18200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18201 hardcode_shlibpath_var_GCJ=no
18202 runpath_var=LD_RUN_PATH
18203 hardcode_runpath_var=yes
18204 ld_shlibs_GCJ=yes
18208 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18209 no_undefined_flag_GCJ='${wl}-z,text'
18210 archive_cmds_need_lc_GCJ=no
18211 hardcode_shlibpath_var_GCJ=no
18212 runpath_var='LD_RUN_PATH'
18214 if test "$GCC" = yes; then
18215 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18216 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18217 else
18218 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18219 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18223 sysv5* | sco3.2v5* | sco5v6*)
18224 # Note: We can NOT use -z defs as we might desire, because we do not
18225 # link with -lc, and that would cause any symbols used from libc to
18226 # always be unresolved, which means just about no library would
18227 # ever link correctly. If we're not using GNU ld we use -z text
18228 # though, which does catch some bad symbols but isn't as heavy-handed
18229 # as -z defs.
18230 no_undefined_flag_GCJ='${wl}-z,text'
18231 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18232 archive_cmds_need_lc_GCJ=no
18233 hardcode_shlibpath_var_GCJ=no
18234 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18235 hardcode_libdir_separator_GCJ=':'
18236 link_all_deplibs_GCJ=yes
18237 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18238 runpath_var='LD_RUN_PATH'
18240 if test "$GCC" = yes; then
18241 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18242 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243 else
18244 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18245 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18249 uts4*)
18250 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18252 hardcode_shlibpath_var_GCJ=no
18256 ld_shlibs_GCJ=no
18258 esac
18261 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18262 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18263 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18266 # Do we need to explicitly link libc?
18268 case "x$archive_cmds_need_lc_GCJ" in
18269 x|xyes)
18270 # Assume -lc should be added
18271 archive_cmds_need_lc_GCJ=yes
18273 if test "$enable_shared" = yes && test "$GCC" = yes; then
18274 case $archive_cmds_GCJ in
18275 *'~'*)
18276 # FIXME: we may have to deal with multi-command sequences.
18278 '$CC '*)
18279 # Test whether the compiler implicitly links with -lc since on some
18280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18281 # to ld, don't add -lc before -lgcc.
18282 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18283 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18284 $rm conftest*
18285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18288 (eval $ac_compile) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } 2>conftest.err; then
18292 soname=conftest
18293 lib=conftest
18294 libobjs=conftest.$ac_objext
18295 deplibs=
18296 wl=$lt_prog_compiler_wl_GCJ
18297 pic_flag=$lt_prog_compiler_pic_GCJ
18298 compiler_flags=-v
18299 linker_flags=-v
18300 verstring=
18301 output_objdir=.
18302 libname=conftest
18303 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18304 allow_undefined_flag_GCJ=
18305 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18306 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18307 ac_status=$?
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }
18310 then
18311 archive_cmds_need_lc_GCJ=no
18312 else
18313 archive_cmds_need_lc_GCJ=yes
18315 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18316 else
18317 cat conftest.err 1>&5
18319 $rm conftest*
18320 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18321 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18323 esac
18326 esac
18328 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18330 library_names_spec=
18331 libname_spec='lib$name'
18332 soname_spec=
18333 shrext_cmds=".so"
18334 postinstall_cmds=
18335 postuninstall_cmds=
18336 finish_cmds=
18337 finish_eval=
18338 shlibpath_var=
18339 shlibpath_overrides_runpath=unknown
18340 version_type=none
18341 dynamic_linker="$host_os ld.so"
18342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18344 need_lib_prefix=unknown
18345 hardcode_into_libs=no
18347 # when you set need_version to no, make sure it does not cause -set_version
18348 # flags to be left without arguments
18349 need_version=unknown
18351 case $host_os in
18352 aix3*)
18353 version_type=linux
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18355 shlibpath_var=LIBPATH
18357 # AIX 3 has no versioning support, so we append a major version to the name.
18358 soname_spec='${libname}${release}${shared_ext}$major'
18361 aix[4-9]*)
18362 version_type=linux
18363 need_lib_prefix=no
18364 need_version=no
18365 hardcode_into_libs=yes
18366 if test "$host_cpu" = ia64; then
18367 # AIX 5 supports IA64
18368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18369 shlibpath_var=LD_LIBRARY_PATH
18370 else
18371 # With GCC up to 2.95.x, collect2 would create an import file
18372 # for dependence libraries. The import file would start with
18373 # the line `#! .'. This would cause the generated library to
18374 # depend on `.', always an invalid library. This was fixed in
18375 # development snapshots of GCC prior to 3.0.
18376 case $host_os in
18377 aix4 | aix4.[01] | aix4.[01].*)
18378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18379 echo ' yes '
18380 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18382 else
18383 can_build_shared=no
18386 esac
18387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18388 # soname into executable. Probably we can add versioning support to
18389 # collect2, so additional links can be useful in future.
18390 if test "$aix_use_runtimelinking" = yes; then
18391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18392 # instead of lib<name>.a to let people know that these are not
18393 # typical AIX shared libraries.
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18395 else
18396 # We preserve .a as extension for shared libraries through AIX4.2
18397 # and later when we are not doing run time linking.
18398 library_names_spec='${libname}${release}.a $libname.a'
18399 soname_spec='${libname}${release}${shared_ext}$major'
18401 shlibpath_var=LIBPATH
18405 amigaos*)
18406 library_names_spec='$libname.ixlibrary $libname.a'
18407 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18408 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'
18411 beos*)
18412 library_names_spec='${libname}${shared_ext}'
18413 dynamic_linker="$host_os ld.so"
18414 shlibpath_var=LIBRARY_PATH
18417 bsdi[45]*)
18418 version_type=linux
18419 need_version=no
18420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18421 soname_spec='${libname}${release}${shared_ext}$major'
18422 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18423 shlibpath_var=LD_LIBRARY_PATH
18424 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18425 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18426 # the default ld.so.conf also contains /usr/contrib/lib and
18427 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18428 # libtool to hard-code these into programs
18431 cygwin* | mingw* | pw32*)
18432 version_type=windows
18433 shrext_cmds=".dll"
18434 need_version=no
18435 need_lib_prefix=no
18437 case $GCC,$host_os in
18438 yes,cygwin* | yes,mingw* | yes,pw32*)
18439 library_names_spec='$libname.dll.a'
18440 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18441 postinstall_cmds='base_file=`basename \${file}`~
18442 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18443 dldir=$destdir/`dirname \$dlpath`~
18444 test -d \$dldir || mkdir -p \$dldir~
18445 $install_prog $dir/$dlname \$dldir/$dlname~
18446 chmod a+x \$dldir/$dlname'
18447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18448 dlpath=$dir/\$dldll~
18449 $rm \$dlpath'
18450 shlibpath_overrides_runpath=yes
18452 case $host_os in
18453 cygwin*)
18454 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18455 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18456 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18458 mingw*)
18459 # MinGW DLLs use traditional 'lib' prefix
18460 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18461 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18462 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18463 # It is most probably a Windows format PATH printed by
18464 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18465 # path with ; separators, and with drive letters. We can handle the
18466 # drive letters (cygwin fileutils understands them), so leave them,
18467 # especially as we might pass files found there to a mingw objdump,
18468 # which wouldn't understand a cygwinified path. Ahh.
18469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18470 else
18471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18474 pw32*)
18475 # pw32 DLLs use 'pw' prefix rather than 'lib'
18476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18478 esac
18482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18484 esac
18485 dynamic_linker='Win32 ld.exe'
18486 # FIXME: first we should search . and the directory the executable is in
18487 shlibpath_var=PATH
18490 darwin* | rhapsody*)
18491 dynamic_linker="$host_os dyld"
18492 version_type=darwin
18493 need_lib_prefix=no
18494 need_version=no
18495 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18496 soname_spec='${libname}${release}${major}$shared_ext'
18497 shlibpath_overrides_runpath=yes
18498 shlibpath_var=DYLD_LIBRARY_PATH
18499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18504 dgux*)
18505 version_type=linux
18506 need_lib_prefix=no
18507 need_version=no
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18509 soname_spec='${libname}${release}${shared_ext}$major'
18510 shlibpath_var=LD_LIBRARY_PATH
18513 freebsd1*)
18514 dynamic_linker=no
18517 freebsd* | dragonfly*)
18518 # DragonFly does not have aout. When/if they implement a new
18519 # versioning mechanism, adjust this.
18520 if test -x /usr/bin/objformat; then
18521 objformat=`/usr/bin/objformat`
18522 else
18523 case $host_os in
18524 freebsd[123]*) objformat=aout ;;
18525 *) objformat=elf ;;
18526 esac
18528 version_type=freebsd-$objformat
18529 case $version_type in
18530 freebsd-elf*)
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18532 need_version=no
18533 need_lib_prefix=no
18535 freebsd-*)
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18537 need_version=yes
18539 esac
18540 shlibpath_var=LD_LIBRARY_PATH
18541 case $host_os in
18542 freebsd2*)
18543 shlibpath_overrides_runpath=yes
18545 freebsd3.[01]* | freebsdelf3.[01]*)
18546 shlibpath_overrides_runpath=yes
18547 hardcode_into_libs=yes
18549 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18550 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18551 shlibpath_overrides_runpath=no
18552 hardcode_into_libs=yes
18554 *) # from 4.6 on, and DragonFly
18555 shlibpath_overrides_runpath=yes
18556 hardcode_into_libs=yes
18558 esac
18561 gnu*)
18562 version_type=linux
18563 need_lib_prefix=no
18564 need_version=no
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 hardcode_into_libs=yes
18571 hpux9* | hpux10* | hpux11*)
18572 # Give a soname corresponding to the major version so that dld.sl refuses to
18573 # link against other versions.
18574 version_type=sunos
18575 need_lib_prefix=no
18576 need_version=no
18577 case $host_cpu in
18578 ia64*)
18579 shrext_cmds='.so'
18580 hardcode_into_libs=yes
18581 dynamic_linker="$host_os dld.so"
18582 shlibpath_var=LD_LIBRARY_PATH
18583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585 soname_spec='${libname}${release}${shared_ext}$major'
18586 if test "X$HPUX_IA64_MODE" = X32; then
18587 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18588 else
18589 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18593 hppa*64*)
18594 shrext_cmds='.sl'
18595 hardcode_into_libs=yes
18596 dynamic_linker="$host_os dld.sl"
18597 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600 soname_spec='${libname}${release}${shared_ext}$major'
18601 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18605 shrext_cmds='.sl'
18606 dynamic_linker="$host_os dld.sl"
18607 shlibpath_var=SHLIB_PATH
18608 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18610 soname_spec='${libname}${release}${shared_ext}$major'
18612 esac
18613 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18614 postinstall_cmds='chmod 555 $lib'
18617 interix[3-9]*)
18618 version_type=linux
18619 need_lib_prefix=no
18620 need_version=no
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18622 soname_spec='${libname}${release}${shared_ext}$major'
18623 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18624 shlibpath_var=LD_LIBRARY_PATH
18625 shlibpath_overrides_runpath=no
18626 hardcode_into_libs=yes
18629 irix5* | irix6* | nonstopux*)
18630 case $host_os in
18631 nonstopux*) version_type=nonstopux ;;
18633 if test "$lt_cv_prog_gnu_ld" = yes; then
18634 version_type=linux
18635 else
18636 version_type=irix
18637 fi ;;
18638 esac
18639 need_lib_prefix=no
18640 need_version=no
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18643 case $host_os in
18644 irix5* | nonstopux*)
18645 libsuff= shlibsuff=
18648 case $LD in # libtool.m4 will add one of these switches to LD
18649 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18650 libsuff= shlibsuff= libmagic=32-bit;;
18651 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18652 libsuff=32 shlibsuff=N32 libmagic=N32;;
18653 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18654 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18655 *) libsuff= shlibsuff= libmagic=never-match;;
18656 esac
18658 esac
18659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18660 shlibpath_overrides_runpath=no
18661 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18662 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18663 hardcode_into_libs=yes
18666 # No shared lib support for Linux oldld, aout, or coff.
18667 linux*oldld* | linux*aout* | linux*coff*)
18668 dynamic_linker=no
18671 # This must be Linux ELF.
18672 linux* | k*bsd*-gnu)
18673 version_type=linux
18674 need_lib_prefix=no
18675 need_version=no
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677 soname_spec='${libname}${release}${shared_ext}$major'
18678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 shlibpath_overrides_runpath=no
18681 # This implies no fast_install, which is unacceptable.
18682 # Some rework will be needed to allow for fast_install
18683 # before this can be enabled.
18684 hardcode_into_libs=yes
18686 # Append ld.so.conf contents to the search path
18687 if test -f /etc/ld.so.conf; then
18688 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' ' '`
18689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18692 # We used to test for /lib/ld.so.1 and disable shared libraries on
18693 # powerpc, because MkLinux only supported shared libraries with the
18694 # GNU dynamic linker. Since this was broken with cross compilers,
18695 # most powerpc-linux boxes support dynamic linking these days and
18696 # people can always --disable-shared, the test was removed, and we
18697 # assume the GNU/Linux dynamic linker is in use.
18698 dynamic_linker='GNU/Linux ld.so'
18701 netbsd*)
18702 version_type=sunos
18703 need_lib_prefix=no
18704 need_version=no
18705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18708 dynamic_linker='NetBSD (a.out) ld.so'
18709 else
18710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18711 soname_spec='${libname}${release}${shared_ext}$major'
18712 dynamic_linker='NetBSD ld.elf_so'
18714 shlibpath_var=LD_LIBRARY_PATH
18715 shlibpath_overrides_runpath=yes
18716 hardcode_into_libs=yes
18719 newsos6)
18720 version_type=linux
18721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18722 shlibpath_var=LD_LIBRARY_PATH
18723 shlibpath_overrides_runpath=yes
18726 nto-qnx*)
18727 version_type=linux
18728 need_lib_prefix=no
18729 need_version=no
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731 soname_spec='${libname}${release}${shared_ext}$major'
18732 shlibpath_var=LD_LIBRARY_PATH
18733 shlibpath_overrides_runpath=yes
18736 openbsd*)
18737 version_type=sunos
18738 sys_lib_dlsearch_path_spec="/usr/lib"
18739 need_lib_prefix=no
18740 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18741 case $host_os in
18742 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18743 *) need_version=no ;;
18744 esac
18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18747 shlibpath_var=LD_LIBRARY_PATH
18748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18749 case $host_os in
18750 openbsd2.[89] | openbsd2.[89].*)
18751 shlibpath_overrides_runpath=no
18754 shlibpath_overrides_runpath=yes
18756 esac
18757 else
18758 shlibpath_overrides_runpath=yes
18762 os2*)
18763 libname_spec='$name'
18764 shrext_cmds=".dll"
18765 need_lib_prefix=no
18766 library_names_spec='$libname${shared_ext} $libname.a'
18767 dynamic_linker='OS/2 ld.exe'
18768 shlibpath_var=LIBPATH
18771 osf3* | osf4* | osf5*)
18772 version_type=osf
18773 need_lib_prefix=no
18774 need_version=no
18775 soname_spec='${libname}${release}${shared_ext}$major'
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18777 shlibpath_var=LD_LIBRARY_PATH
18778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18779 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18782 rdos*)
18783 dynamic_linker=no
18786 solaris*)
18787 version_type=linux
18788 need_lib_prefix=no
18789 need_version=no
18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791 soname_spec='${libname}${release}${shared_ext}$major'
18792 shlibpath_var=LD_LIBRARY_PATH
18793 shlibpath_overrides_runpath=yes
18794 hardcode_into_libs=yes
18795 # ldd complains unless libraries are executable
18796 postinstall_cmds='chmod +x $lib'
18799 sunos4*)
18800 version_type=sunos
18801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18802 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18803 shlibpath_var=LD_LIBRARY_PATH
18804 shlibpath_overrides_runpath=yes
18805 if test "$with_gnu_ld" = yes; then
18806 need_lib_prefix=no
18808 need_version=yes
18811 sysv4 | sysv4.3*)
18812 version_type=linux
18813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18814 soname_spec='${libname}${release}${shared_ext}$major'
18815 shlibpath_var=LD_LIBRARY_PATH
18816 case $host_vendor in
18817 sni)
18818 shlibpath_overrides_runpath=no
18819 need_lib_prefix=no
18820 export_dynamic_flag_spec='${wl}-Blargedynsym'
18821 runpath_var=LD_RUN_PATH
18823 siemens)
18824 need_lib_prefix=no
18826 motorola)
18827 need_lib_prefix=no
18828 need_version=no
18829 shlibpath_overrides_runpath=no
18830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18832 esac
18835 sysv4*MP*)
18836 if test -d /usr/nec ;then
18837 version_type=linux
18838 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18839 soname_spec='$libname${shared_ext}.$major'
18840 shlibpath_var=LD_LIBRARY_PATH
18844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18845 version_type=freebsd-elf
18846 need_lib_prefix=no
18847 need_version=no
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18849 soname_spec='${libname}${release}${shared_ext}$major'
18850 shlibpath_var=LD_LIBRARY_PATH
18851 hardcode_into_libs=yes
18852 if test "$with_gnu_ld" = yes; then
18853 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18854 shlibpath_overrides_runpath=no
18855 else
18856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18857 shlibpath_overrides_runpath=yes
18858 case $host_os in
18859 sco3.2v5*)
18860 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18862 esac
18864 sys_lib_dlsearch_path_spec='/usr/lib'
18867 uts4*)
18868 version_type=linux
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 shlibpath_var=LD_LIBRARY_PATH
18875 dynamic_linker=no
18877 esac
18878 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18879 echo "${ECHO_T}$dynamic_linker" >&6; }
18880 test "$dynamic_linker" = no && can_build_shared=no
18882 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 else
18885 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18888 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18889 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18895 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18898 if test "$GCC" = yes; then
18899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18902 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18903 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18904 hardcode_action_GCJ=
18905 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18906 test -n "$runpath_var_GCJ" || \
18907 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18909 # We can hardcode non-existant directories.
18910 if test "$hardcode_direct_GCJ" != no &&
18911 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18912 # have to relink, otherwise we might link with an installed library
18913 # when we should be linking with a yet-to-be-installed one
18914 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18915 test "$hardcode_minus_L_GCJ" != no; then
18916 # Linking always hardcodes the temporary library directory.
18917 hardcode_action_GCJ=relink
18918 else
18919 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18920 hardcode_action_GCJ=immediate
18922 else
18923 # We cannot hardcode anything, or else we can only hardcode existing
18924 # directories.
18925 hardcode_action_GCJ=unsupported
18927 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18928 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18930 if test "$hardcode_action_GCJ" = relink; then
18931 # Fast installation is not supported
18932 enable_fast_install=no
18933 elif test "$shlibpath_overrides_runpath" = yes ||
18934 test "$enable_shared" = no; then
18935 # Fast installation is not necessary
18936 enable_fast_install=needless
18940 # The else clause should only fire when bootstrapping the
18941 # libtool distribution, otherwise you forgot to ship ltmain.sh
18942 # with your package, and you will get complaints that there are
18943 # no rules to generate ltmain.sh.
18944 if test -f "$ltmain"; then
18945 # See if we are running on zsh, and set the options which allow our commands through
18946 # without removal of \ escapes.
18947 if test -n "${ZSH_VERSION+set}" ; then
18948 setopt NO_GLOB_SUBST
18950 # Now quote all the things that may contain metacharacters while being
18951 # careful not to overquote the AC_SUBSTed values. We take copies of the
18952 # variables and quote the copies for generation of the libtool script.
18953 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18954 SED SHELL STRIP \
18955 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18956 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18957 deplibs_check_method reload_flag reload_cmds need_locks \
18958 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18959 lt_cv_sys_global_symbol_to_c_name_address \
18960 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18961 old_postinstall_cmds old_postuninstall_cmds \
18962 compiler_GCJ \
18963 CC_GCJ \
18964 LD_GCJ \
18965 lt_prog_compiler_wl_GCJ \
18966 lt_prog_compiler_pic_GCJ \
18967 lt_prog_compiler_static_GCJ \
18968 lt_prog_compiler_no_builtin_flag_GCJ \
18969 export_dynamic_flag_spec_GCJ \
18970 thread_safe_flag_spec_GCJ \
18971 whole_archive_flag_spec_GCJ \
18972 enable_shared_with_static_runtimes_GCJ \
18973 old_archive_cmds_GCJ \
18974 old_archive_from_new_cmds_GCJ \
18975 predep_objects_GCJ \
18976 postdep_objects_GCJ \
18977 predeps_GCJ \
18978 postdeps_GCJ \
18979 compiler_lib_search_path_GCJ \
18980 compiler_lib_search_dirs_GCJ \
18981 archive_cmds_GCJ \
18982 archive_expsym_cmds_GCJ \
18983 postinstall_cmds_GCJ \
18984 postuninstall_cmds_GCJ \
18985 old_archive_from_expsyms_cmds_GCJ \
18986 allow_undefined_flag_GCJ \
18987 no_undefined_flag_GCJ \
18988 export_symbols_cmds_GCJ \
18989 hardcode_libdir_flag_spec_GCJ \
18990 hardcode_libdir_flag_spec_ld_GCJ \
18991 hardcode_libdir_separator_GCJ \
18992 hardcode_automatic_GCJ \
18993 module_cmds_GCJ \
18994 module_expsym_cmds_GCJ \
18995 lt_cv_prog_compiler_c_o_GCJ \
18996 fix_srcfile_path_GCJ \
18997 exclude_expsyms_GCJ \
18998 include_expsyms_GCJ; do
19000 case $var in
19001 old_archive_cmds_GCJ | \
19002 old_archive_from_new_cmds_GCJ | \
19003 archive_cmds_GCJ | \
19004 archive_expsym_cmds_GCJ | \
19005 module_cmds_GCJ | \
19006 module_expsym_cmds_GCJ | \
19007 old_archive_from_expsyms_cmds_GCJ | \
19008 export_symbols_cmds_GCJ | \
19009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19010 postinstall_cmds | postuninstall_cmds | \
19011 old_postinstall_cmds | old_postuninstall_cmds | \
19012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19013 # Double-quote double-evaled strings.
19014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19019 esac
19020 done
19022 case $lt_echo in
19023 *'\$0 --fallback-echo"')
19024 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19026 esac
19028 cfgfile="$ofile"
19030 cat <<__EOF__ >> "$cfgfile"
19031 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19033 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19035 # Shell to use when invoking shell scripts.
19036 SHELL=$lt_SHELL
19038 # Whether or not to build shared libraries.
19039 build_libtool_libs=$enable_shared
19041 # Whether or not to build static libraries.
19042 build_old_libs=$enable_static
19044 # Whether or not to add -lc for building shared libraries.
19045 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19047 # Whether or not to disallow shared libs when runtime libs are static
19048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19050 # Whether or not to optimize for fast installation.
19051 fast_install=$enable_fast_install
19053 # The host system.
19054 host_alias=$host_alias
19055 host=$host
19056 host_os=$host_os
19058 # The build system.
19059 build_alias=$build_alias
19060 build=$build
19061 build_os=$build_os
19063 # An echo program that does not interpret backslashes.
19064 echo=$lt_echo
19066 # The archiver.
19067 AR=$lt_AR
19068 AR_FLAGS=$lt_AR_FLAGS
19070 # A C compiler.
19071 LTCC=$lt_LTCC
19073 # LTCC compiler flags.
19074 LTCFLAGS=$lt_LTCFLAGS
19076 # A language-specific compiler.
19077 CC=$lt_compiler_GCJ
19079 # Is the compiler the GNU C compiler?
19080 with_gcc=$GCC_GCJ
19082 # An ERE matcher.
19083 EGREP=$lt_EGREP
19085 # The linker used to build libraries.
19086 LD=$lt_LD_GCJ
19088 # Whether we need hard or soft links.
19089 LN_S=$lt_LN_S
19091 # A BSD-compatible nm program.
19092 NM=$lt_NM
19094 # A symbol stripping program
19095 STRIP=$lt_STRIP
19097 # Used to examine libraries when file_magic_cmd begins "file"
19098 MAGIC_CMD=$MAGIC_CMD
19100 # Used on cygwin: DLL creation program.
19101 DLLTOOL="$DLLTOOL"
19103 # Used on cygwin: object dumper.
19104 OBJDUMP="$OBJDUMP"
19106 # Used on cygwin: assembler.
19107 AS="$AS"
19109 # The name of the directory that contains temporary libtool files.
19110 objdir=$objdir
19112 # How to create reloadable object files.
19113 reload_flag=$lt_reload_flag
19114 reload_cmds=$lt_reload_cmds
19116 # How to pass a linker flag through the compiler.
19117 wl=$lt_lt_prog_compiler_wl_GCJ
19119 # Object file suffix (normally "o").
19120 objext="$ac_objext"
19122 # Old archive suffix (normally "a").
19123 libext="$libext"
19125 # Shared library suffix (normally ".so").
19126 shrext_cmds='$shrext_cmds'
19128 # Executable file suffix (normally "").
19129 exeext="$exeext"
19131 # Additional compiler flags for building library objects.
19132 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19133 pic_mode=$pic_mode
19135 # What is the maximum length of a command?
19136 max_cmd_len=$lt_cv_sys_max_cmd_len
19138 # Does compiler simultaneously support -c and -o options?
19139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19141 # Must we lock files when doing compilation?
19142 need_locks=$lt_need_locks
19144 # Do we need the lib prefix for modules?
19145 need_lib_prefix=$need_lib_prefix
19147 # Do we need a version for libraries?
19148 need_version=$need_version
19150 # Whether dlopen is supported.
19151 dlopen_support=$enable_dlopen
19153 # Whether dlopen of programs is supported.
19154 dlopen_self=$enable_dlopen_self
19156 # Whether dlopen of statically linked programs is supported.
19157 dlopen_self_static=$enable_dlopen_self_static
19159 # Compiler flag to prevent dynamic linking.
19160 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19162 # Compiler flag to turn off builtin functions.
19163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19165 # Compiler flag to allow reflexive dlopens.
19166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19168 # Compiler flag to generate shared objects directly from archives.
19169 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19171 # Compiler flag to generate thread-safe objects.
19172 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19174 # Library versioning type.
19175 version_type=$version_type
19177 # Format of library name prefix.
19178 libname_spec=$lt_libname_spec
19180 # List of archive names. First name is the real one, the rest are links.
19181 # The last name is the one that the linker finds with -lNAME.
19182 library_names_spec=$lt_library_names_spec
19184 # The coded name of the library, if different from the real name.
19185 soname_spec=$lt_soname_spec
19187 # Commands used to build and install an old-style archive.
19188 RANLIB=$lt_RANLIB
19189 old_archive_cmds=$lt_old_archive_cmds_GCJ
19190 old_postinstall_cmds=$lt_old_postinstall_cmds
19191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19193 # Create an old-style archive from a shared archive.
19194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19196 # Create a temporary old-style archive to link instead of a shared archive.
19197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19199 # Commands used to build and install a shared archive.
19200 archive_cmds=$lt_archive_cmds_GCJ
19201 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19202 postinstall_cmds=$lt_postinstall_cmds
19203 postuninstall_cmds=$lt_postuninstall_cmds
19205 # Commands used to build a loadable module (assumed same as above if empty)
19206 module_cmds=$lt_module_cmds_GCJ
19207 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19209 # Commands to strip libraries.
19210 old_striplib=$lt_old_striplib
19211 striplib=$lt_striplib
19213 # Dependencies to place before the objects being linked to create a
19214 # shared library.
19215 predep_objects=$lt_predep_objects_GCJ
19217 # Dependencies to place after the objects being linked to create a
19218 # shared library.
19219 postdep_objects=$lt_postdep_objects_GCJ
19221 # Dependencies to place before the objects being linked to create a
19222 # shared library.
19223 predeps=$lt_predeps_GCJ
19225 # Dependencies to place after the objects being linked to create a
19226 # shared library.
19227 postdeps=$lt_postdeps_GCJ
19229 # The directories searched by this compiler when creating a shared
19230 # library
19231 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19233 # The library search path used internally by the compiler when linking
19234 # a shared library.
19235 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19237 # Method to check whether dependent libraries are shared objects.
19238 deplibs_check_method=$lt_deplibs_check_method
19240 # Command to use when deplibs_check_method == file_magic.
19241 file_magic_cmd=$lt_file_magic_cmd
19243 # Flag that allows shared libraries with undefined symbols to be built.
19244 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19246 # Flag that forces no undefined symbols.
19247 no_undefined_flag=$lt_no_undefined_flag_GCJ
19249 # Commands used to finish a libtool library installation in a directory.
19250 finish_cmds=$lt_finish_cmds
19252 # Same as above, but a single script fragment to be evaled but not shown.
19253 finish_eval=$lt_finish_eval
19255 # Take the output of nm and produce a listing of raw symbols and C names.
19256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19258 # Transform the output of nm in a proper C declaration
19259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19261 # Transform the output of nm in a C name address pair
19262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19264 # This is the shared library runtime path variable.
19265 runpath_var=$runpath_var
19267 # This is the shared library path variable.
19268 shlibpath_var=$shlibpath_var
19270 # Is shlibpath searched before the hard-coded library search path?
19271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19273 # How to hardcode a shared library path into an executable.
19274 hardcode_action=$hardcode_action_GCJ
19276 # Whether we should hardcode library paths into libraries.
19277 hardcode_into_libs=$hardcode_into_libs
19279 # Flag to hardcode \$libdir into a binary during linking.
19280 # This must work even if \$libdir does not exist.
19281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19283 # If ld is used when linking, flag to hardcode \$libdir into
19284 # a binary during linking. This must work even if \$libdir does
19285 # not exist.
19286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19288 # Whether we need a single -rpath flag with a separated argument.
19289 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19291 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19292 # resulting binary.
19293 hardcode_direct=$hardcode_direct_GCJ
19295 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19296 # resulting binary.
19297 hardcode_minus_L=$hardcode_minus_L_GCJ
19299 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19300 # the resulting binary.
19301 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19303 # Set to yes if building a shared library automatically hardcodes DIR into the library
19304 # and all subsequent libraries and executables linked against it.
19305 hardcode_automatic=$hardcode_automatic_GCJ
19307 # Variables whose values should be saved in libtool wrapper scripts and
19308 # restored at relink time.
19309 variables_saved_for_relink="$variables_saved_for_relink"
19311 # Whether libtool must link a program against all its dependency libraries.
19312 link_all_deplibs=$link_all_deplibs_GCJ
19314 # Compile-time system search path for libraries
19315 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19317 # Run-time system search path for libraries
19318 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19320 # Fix the shell variable \$srcfile for the compiler.
19321 fix_srcfile_path=$lt_fix_srcfile_path
19323 # Set to yes if exported symbols are required.
19324 always_export_symbols=$always_export_symbols_GCJ
19326 # The commands to list exported symbols.
19327 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19329 # The commands to extract the exported symbol list from a shared archive.
19330 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19332 # Symbols that should not be listed in the preloaded symbols.
19333 exclude_expsyms=$lt_exclude_expsyms_GCJ
19335 # Symbols that must always be exported.
19336 include_expsyms=$lt_include_expsyms_GCJ
19338 # ### END LIBTOOL TAG CONFIG: $tagname
19340 __EOF__
19343 else
19344 # If there is no Makefile yet, we rely on a make rule to execute
19345 # `config.status --recheck' to rerun these tests and create the
19346 # libtool script then.
19347 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19348 if test -f "$ltmain_in"; then
19349 test -f Makefile && make "$ltmain"
19354 ac_ext=c
19355 ac_cpp='$CPP $CPPFLAGS'
19356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19360 CC="$lt_save_CC"
19362 else
19363 tagname=""
19370 # Source file extension for RC test sources.
19371 ac_ext=rc
19373 # Object file extension for compiled RC test sources.
19374 objext=o
19375 objext_RC=$objext
19377 # Code to be used in simple compile tests
19378 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19380 # Code to be used in simple link tests
19381 lt_simple_link_test_code="$lt_simple_compile_test_code"
19383 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19385 # If no C compiler was specified, use CC.
19386 LTCC=${LTCC-"$CC"}
19388 # If no C compiler flags were specified, use CFLAGS.
19389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19391 # Allow CC to be a program name with arguments.
19392 compiler=$CC
19395 # save warnings/boilerplate of simple test code
19396 ac_outfile=conftest.$ac_objext
19397 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19398 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19399 _lt_compiler_boilerplate=`cat conftest.err`
19400 $rm conftest*
19402 ac_outfile=conftest.$ac_objext
19403 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19404 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19405 _lt_linker_boilerplate=`cat conftest.err`
19406 $rm -r conftest*
19409 # Allow CC to be a program name with arguments.
19410 lt_save_CC="$CC"
19411 CC=${RC-"windres"}
19412 compiler=$CC
19413 compiler_RC=$CC
19414 for cc_temp in $compiler""; do
19415 case $cc_temp in
19416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19418 \-*) ;;
19419 *) break;;
19420 esac
19421 done
19422 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19424 lt_cv_prog_compiler_c_o_RC=yes
19426 # The else clause should only fire when bootstrapping the
19427 # libtool distribution, otherwise you forgot to ship ltmain.sh
19428 # with your package, and you will get complaints that there are
19429 # no rules to generate ltmain.sh.
19430 if test -f "$ltmain"; then
19431 # See if we are running on zsh, and set the options which allow our commands through
19432 # without removal of \ escapes.
19433 if test -n "${ZSH_VERSION+set}" ; then
19434 setopt NO_GLOB_SUBST
19436 # Now quote all the things that may contain metacharacters while being
19437 # careful not to overquote the AC_SUBSTed values. We take copies of the
19438 # variables and quote the copies for generation of the libtool script.
19439 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19440 SED SHELL STRIP \
19441 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19442 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19443 deplibs_check_method reload_flag reload_cmds need_locks \
19444 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19445 lt_cv_sys_global_symbol_to_c_name_address \
19446 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19447 old_postinstall_cmds old_postuninstall_cmds \
19448 compiler_RC \
19449 CC_RC \
19450 LD_RC \
19451 lt_prog_compiler_wl_RC \
19452 lt_prog_compiler_pic_RC \
19453 lt_prog_compiler_static_RC \
19454 lt_prog_compiler_no_builtin_flag_RC \
19455 export_dynamic_flag_spec_RC \
19456 thread_safe_flag_spec_RC \
19457 whole_archive_flag_spec_RC \
19458 enable_shared_with_static_runtimes_RC \
19459 old_archive_cmds_RC \
19460 old_archive_from_new_cmds_RC \
19461 predep_objects_RC \
19462 postdep_objects_RC \
19463 predeps_RC \
19464 postdeps_RC \
19465 compiler_lib_search_path_RC \
19466 compiler_lib_search_dirs_RC \
19467 archive_cmds_RC \
19468 archive_expsym_cmds_RC \
19469 postinstall_cmds_RC \
19470 postuninstall_cmds_RC \
19471 old_archive_from_expsyms_cmds_RC \
19472 allow_undefined_flag_RC \
19473 no_undefined_flag_RC \
19474 export_symbols_cmds_RC \
19475 hardcode_libdir_flag_spec_RC \
19476 hardcode_libdir_flag_spec_ld_RC \
19477 hardcode_libdir_separator_RC \
19478 hardcode_automatic_RC \
19479 module_cmds_RC \
19480 module_expsym_cmds_RC \
19481 lt_cv_prog_compiler_c_o_RC \
19482 fix_srcfile_path_RC \
19483 exclude_expsyms_RC \
19484 include_expsyms_RC; do
19486 case $var in
19487 old_archive_cmds_RC | \
19488 old_archive_from_new_cmds_RC | \
19489 archive_cmds_RC | \
19490 archive_expsym_cmds_RC | \
19491 module_cmds_RC | \
19492 module_expsym_cmds_RC | \
19493 old_archive_from_expsyms_cmds_RC | \
19494 export_symbols_cmds_RC | \
19495 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19496 postinstall_cmds | postuninstall_cmds | \
19497 old_postinstall_cmds | old_postuninstall_cmds | \
19498 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19499 # Double-quote double-evaled strings.
19500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19505 esac
19506 done
19508 case $lt_echo in
19509 *'\$0 --fallback-echo"')
19510 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19512 esac
19514 cfgfile="$ofile"
19516 cat <<__EOF__ >> "$cfgfile"
19517 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19519 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19521 # Shell to use when invoking shell scripts.
19522 SHELL=$lt_SHELL
19524 # Whether or not to build shared libraries.
19525 build_libtool_libs=$enable_shared
19527 # Whether or not to build static libraries.
19528 build_old_libs=$enable_static
19530 # Whether or not to add -lc for building shared libraries.
19531 build_libtool_need_lc=$archive_cmds_need_lc_RC
19533 # Whether or not to disallow shared libs when runtime libs are static
19534 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19536 # Whether or not to optimize for fast installation.
19537 fast_install=$enable_fast_install
19539 # The host system.
19540 host_alias=$host_alias
19541 host=$host
19542 host_os=$host_os
19544 # The build system.
19545 build_alias=$build_alias
19546 build=$build
19547 build_os=$build_os
19549 # An echo program that does not interpret backslashes.
19550 echo=$lt_echo
19552 # The archiver.
19553 AR=$lt_AR
19554 AR_FLAGS=$lt_AR_FLAGS
19556 # A C compiler.
19557 LTCC=$lt_LTCC
19559 # LTCC compiler flags.
19560 LTCFLAGS=$lt_LTCFLAGS
19562 # A language-specific compiler.
19563 CC=$lt_compiler_RC
19565 # Is the compiler the GNU C compiler?
19566 with_gcc=$GCC_RC
19568 # An ERE matcher.
19569 EGREP=$lt_EGREP
19571 # The linker used to build libraries.
19572 LD=$lt_LD_RC
19574 # Whether we need hard or soft links.
19575 LN_S=$lt_LN_S
19577 # A BSD-compatible nm program.
19578 NM=$lt_NM
19580 # A symbol stripping program
19581 STRIP=$lt_STRIP
19583 # Used to examine libraries when file_magic_cmd begins "file"
19584 MAGIC_CMD=$MAGIC_CMD
19586 # Used on cygwin: DLL creation program.
19587 DLLTOOL="$DLLTOOL"
19589 # Used on cygwin: object dumper.
19590 OBJDUMP="$OBJDUMP"
19592 # Used on cygwin: assembler.
19593 AS="$AS"
19595 # The name of the directory that contains temporary libtool files.
19596 objdir=$objdir
19598 # How to create reloadable object files.
19599 reload_flag=$lt_reload_flag
19600 reload_cmds=$lt_reload_cmds
19602 # How to pass a linker flag through the compiler.
19603 wl=$lt_lt_prog_compiler_wl_RC
19605 # Object file suffix (normally "o").
19606 objext="$ac_objext"
19608 # Old archive suffix (normally "a").
19609 libext="$libext"
19611 # Shared library suffix (normally ".so").
19612 shrext_cmds='$shrext_cmds'
19614 # Executable file suffix (normally "").
19615 exeext="$exeext"
19617 # Additional compiler flags for building library objects.
19618 pic_flag=$lt_lt_prog_compiler_pic_RC
19619 pic_mode=$pic_mode
19621 # What is the maximum length of a command?
19622 max_cmd_len=$lt_cv_sys_max_cmd_len
19624 # Does compiler simultaneously support -c and -o options?
19625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19627 # Must we lock files when doing compilation?
19628 need_locks=$lt_need_locks
19630 # Do we need the lib prefix for modules?
19631 need_lib_prefix=$need_lib_prefix
19633 # Do we need a version for libraries?
19634 need_version=$need_version
19636 # Whether dlopen is supported.
19637 dlopen_support=$enable_dlopen
19639 # Whether dlopen of programs is supported.
19640 dlopen_self=$enable_dlopen_self
19642 # Whether dlopen of statically linked programs is supported.
19643 dlopen_self_static=$enable_dlopen_self_static
19645 # Compiler flag to prevent dynamic linking.
19646 link_static_flag=$lt_lt_prog_compiler_static_RC
19648 # Compiler flag to turn off builtin functions.
19649 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19651 # Compiler flag to allow reflexive dlopens.
19652 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19654 # Compiler flag to generate shared objects directly from archives.
19655 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19657 # Compiler flag to generate thread-safe objects.
19658 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19660 # Library versioning type.
19661 version_type=$version_type
19663 # Format of library name prefix.
19664 libname_spec=$lt_libname_spec
19666 # List of archive names. First name is the real one, the rest are links.
19667 # The last name is the one that the linker finds with -lNAME.
19668 library_names_spec=$lt_library_names_spec
19670 # The coded name of the library, if different from the real name.
19671 soname_spec=$lt_soname_spec
19673 # Commands used to build and install an old-style archive.
19674 RANLIB=$lt_RANLIB
19675 old_archive_cmds=$lt_old_archive_cmds_RC
19676 old_postinstall_cmds=$lt_old_postinstall_cmds
19677 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19679 # Create an old-style archive from a shared archive.
19680 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19682 # Create a temporary old-style archive to link instead of a shared archive.
19683 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19685 # Commands used to build and install a shared archive.
19686 archive_cmds=$lt_archive_cmds_RC
19687 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19688 postinstall_cmds=$lt_postinstall_cmds
19689 postuninstall_cmds=$lt_postuninstall_cmds
19691 # Commands used to build a loadable module (assumed same as above if empty)
19692 module_cmds=$lt_module_cmds_RC
19693 module_expsym_cmds=$lt_module_expsym_cmds_RC
19695 # Commands to strip libraries.
19696 old_striplib=$lt_old_striplib
19697 striplib=$lt_striplib
19699 # Dependencies to place before the objects being linked to create a
19700 # shared library.
19701 predep_objects=$lt_predep_objects_RC
19703 # Dependencies to place after the objects being linked to create a
19704 # shared library.
19705 postdep_objects=$lt_postdep_objects_RC
19707 # Dependencies to place before the objects being linked to create a
19708 # shared library.
19709 predeps=$lt_predeps_RC
19711 # Dependencies to place after the objects being linked to create a
19712 # shared library.
19713 postdeps=$lt_postdeps_RC
19715 # The directories searched by this compiler when creating a shared
19716 # library
19717 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19719 # The library search path used internally by the compiler when linking
19720 # a shared library.
19721 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19723 # Method to check whether dependent libraries are shared objects.
19724 deplibs_check_method=$lt_deplibs_check_method
19726 # Command to use when deplibs_check_method == file_magic.
19727 file_magic_cmd=$lt_file_magic_cmd
19729 # Flag that allows shared libraries with undefined symbols to be built.
19730 allow_undefined_flag=$lt_allow_undefined_flag_RC
19732 # Flag that forces no undefined symbols.
19733 no_undefined_flag=$lt_no_undefined_flag_RC
19735 # Commands used to finish a libtool library installation in a directory.
19736 finish_cmds=$lt_finish_cmds
19738 # Same as above, but a single script fragment to be evaled but not shown.
19739 finish_eval=$lt_finish_eval
19741 # Take the output of nm and produce a listing of raw symbols and C names.
19742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19744 # Transform the output of nm in a proper C declaration
19745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19747 # Transform the output of nm in a C name address pair
19748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19750 # This is the shared library runtime path variable.
19751 runpath_var=$runpath_var
19753 # This is the shared library path variable.
19754 shlibpath_var=$shlibpath_var
19756 # Is shlibpath searched before the hard-coded library search path?
19757 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19759 # How to hardcode a shared library path into an executable.
19760 hardcode_action=$hardcode_action_RC
19762 # Whether we should hardcode library paths into libraries.
19763 hardcode_into_libs=$hardcode_into_libs
19765 # Flag to hardcode \$libdir into a binary during linking.
19766 # This must work even if \$libdir does not exist.
19767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19769 # If ld is used when linking, flag to hardcode \$libdir into
19770 # a binary during linking. This must work even if \$libdir does
19771 # not exist.
19772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19774 # Whether we need a single -rpath flag with a separated argument.
19775 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19777 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19778 # resulting binary.
19779 hardcode_direct=$hardcode_direct_RC
19781 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19782 # resulting binary.
19783 hardcode_minus_L=$hardcode_minus_L_RC
19785 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19786 # the resulting binary.
19787 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19789 # Set to yes if building a shared library automatically hardcodes DIR into the library
19790 # and all subsequent libraries and executables linked against it.
19791 hardcode_automatic=$hardcode_automatic_RC
19793 # Variables whose values should be saved in libtool wrapper scripts and
19794 # restored at relink time.
19795 variables_saved_for_relink="$variables_saved_for_relink"
19797 # Whether libtool must link a program against all its dependency libraries.
19798 link_all_deplibs=$link_all_deplibs_RC
19800 # Compile-time system search path for libraries
19801 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19803 # Run-time system search path for libraries
19804 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19806 # Fix the shell variable \$srcfile for the compiler.
19807 fix_srcfile_path=$lt_fix_srcfile_path
19809 # Set to yes if exported symbols are required.
19810 always_export_symbols=$always_export_symbols_RC
19812 # The commands to list exported symbols.
19813 export_symbols_cmds=$lt_export_symbols_cmds_RC
19815 # The commands to extract the exported symbol list from a shared archive.
19816 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19818 # Symbols that should not be listed in the preloaded symbols.
19819 exclude_expsyms=$lt_exclude_expsyms_RC
19821 # Symbols that must always be exported.
19822 include_expsyms=$lt_include_expsyms_RC
19824 # ### END LIBTOOL TAG CONFIG: $tagname
19826 __EOF__
19829 else
19830 # If there is no Makefile yet, we rely on a make rule to execute
19831 # `config.status --recheck' to rerun these tests and create the
19832 # libtool script then.
19833 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19834 if test -f "$ltmain_in"; then
19835 test -f Makefile && make "$ltmain"
19840 ac_ext=c
19841 ac_cpp='$CPP $CPPFLAGS'
19842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19846 CC="$lt_save_CC"
19851 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19852 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19853 { (exit 1); exit 1; }; }
19855 esac
19857 # Append the new tag name to the list of available tags.
19858 if test -n "$tagname" ; then
19859 available_tags="$available_tags $tagname"
19862 done
19863 IFS="$lt_save_ifs"
19865 # Now substitute the updated list of available tags.
19866 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19867 mv "${ofile}T" "$ofile"
19868 chmod +x "$ofile"
19869 else
19870 rm -f "${ofile}T"
19871 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19872 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19873 { (exit 1); exit 1; }; }
19879 # This can be used to rebuild libtool when needed
19880 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19882 # Always use our own libtool.
19883 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19885 # Prevent multiple expansion
19908 # Extract the first word of "mv", so it can be a program name with args.
19909 set dummy mv; ac_word=$2
19910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19912 if test "${ac_cv_path_MV+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915 case $MV in
19916 [\\/]* | ?:[\\/]*)
19917 ac_cv_path_MV="$MV" # Let the user override the test with a path.
19920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19921 for as_dir in $PATH
19923 IFS=$as_save_IFS
19924 test -z "$as_dir" && as_dir=.
19925 for ac_exec_ext in '' $ac_executable_extensions; do
19926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19927 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
19928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19929 break 2
19931 done
19932 done
19933 IFS=$as_save_IFS
19936 esac
19938 MV=$ac_cv_path_MV
19939 if test -n "$MV"; then
19940 { echo "$as_me:$LINENO: result: $MV" >&5
19941 echo "${ECHO_T}$MV" >&6; }
19942 else
19943 { echo "$as_me:$LINENO: result: no" >&5
19944 echo "${ECHO_T}no" >&6; }
19948 # Extract the first word of "rm", so it can be a program name with args.
19949 set dummy rm; ac_word=$2
19950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19952 if test "${ac_cv_path_RM+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 else
19955 case $RM in
19956 [\\/]* | ?:[\\/]*)
19957 ac_cv_path_RM="$RM" # Let the user override the test with a path.
19960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19961 for as_dir in $PATH
19963 IFS=$as_save_IFS
19964 test -z "$as_dir" && as_dir=.
19965 for ac_exec_ext in '' $ac_executable_extensions; do
19966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19967 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
19968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19969 break 2
19971 done
19972 done
19973 IFS=$as_save_IFS
19976 esac
19978 RM=$ac_cv_path_RM
19979 if test -n "$RM"; then
19980 { echo "$as_me:$LINENO: result: $RM" >&5
19981 echo "${ECHO_T}$RM" >&6; }
19982 else
19983 { echo "$as_me:$LINENO: result: no" >&5
19984 echo "${ECHO_T}no" >&6; }
19988 # Extract the first word of "sed", so it can be a program name with args.
19989 set dummy sed; ac_word=$2
19990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19992 if test "${ac_cv_path_SED+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995 case $SED in
19996 [\\/]* | ?:[\\/]*)
19997 ac_cv_path_SED="$SED" # Let the user override the test with a path.
20000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20001 for as_dir in $PATH
20003 IFS=$as_save_IFS
20004 test -z "$as_dir" && as_dir=.
20005 for ac_exec_ext in '' $ac_executable_extensions; do
20006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20007 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
20008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20009 break 2
20011 done
20012 done
20013 IFS=$as_save_IFS
20016 esac
20018 SED=$ac_cv_path_SED
20019 if test -n "$SED"; then
20020 { echo "$as_me:$LINENO: result: $SED" >&5
20021 echo "${ECHO_T}$SED" >&6; }
20022 else
20023 { echo "$as_me:$LINENO: result: no" >&5
20024 echo "${ECHO_T}no" >&6; }
20029 # Extract the first word of "ldconfig", so it can be a program name with args.
20030 set dummy ldconfig; ac_word=$2
20031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20033 if test "${ac_cv_path_LDCONFIG+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036 case $LDCONFIG in
20037 [\\/]* | ?:[\\/]*)
20038 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
20041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20042 for as_dir in /sbin /usr/sbin $PATH
20044 IFS=$as_save_IFS
20045 test -z "$as_dir" && as_dir=.
20046 for ac_exec_ext in '' $ac_executable_extensions; do
20047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20048 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
20049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20050 break 2
20052 done
20053 done
20054 IFS=$as_save_IFS
20056 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
20058 esac
20060 LDCONFIG=$ac_cv_path_LDCONFIG
20061 if test -n "$LDCONFIG"; then
20062 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
20063 echo "${ECHO_T}$LDCONFIG" >&6; }
20064 else
20065 { echo "$as_me:$LINENO: result: no" >&5
20066 echo "${ECHO_T}no" >&6; }
20071 # Environment
20072 { echo "$as_me:$LINENO: checking Windows OS" >&5
20073 echo $ECHO_N "checking Windows OS... $ECHO_C" >&6; }
20074 case "${target}" in
20075 *-mingw32*|*-winnt*|*-cygwin*)
20076 { echo "$as_me:$LINENO: result: yes" >&5
20077 echo "${ECHO_T}yes" >&6; }
20078 WINDOWS="yes"
20080 cat >>confdefs.h <<\_ACEOF
20081 #define WINDOWS 1
20082 _ACEOF
20086 { echo "$as_me:$LINENO: result: no" >&5
20087 echo "${ECHO_T}no" >&6; }
20088 WINDOWS="no"
20090 esac
20092 { echo "$as_me:$LINENO: checking fuse compatibility" >&5
20093 echo $ECHO_N "checking fuse compatibility... $ECHO_C" >&6; }
20094 case "${target_os}" in
20095 linux*)
20097 # Check whether --with-fuse was given.
20098 if test "${with_fuse+set}" = set; then
20099 withval=$with_fuse;
20100 else
20101 with_fuse="internal"
20106 darwin*|netbsd*|solaris*)
20107 with_fuse="external"
20109 freebsd*)
20110 { { echo "$as_me:$LINENO: error: Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" >&5
20111 echo "$as_me: error: Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" >&2;}
20112 { (exit 1); exit 1; }; }
20115 { { echo "$as_me:$LINENO: error: ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." >&5
20116 echo "$as_me: error: ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." >&2;}
20117 { (exit 1); exit 1; }; }
20119 esac
20120 { echo "$as_me:$LINENO: result: ${with_fuse}" >&5
20121 echo "${ECHO_T}${with_fuse}" >&6; }
20123 case "${target_os}" in
20124 solaris*)
20125 if test "x$GCC" != "xyes" ; then
20126 { { echo "$as_me:$LINENO: error: ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" >&5
20127 echo "$as_me: error: ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" >&2;}
20128 { (exit 1); exit 1; }; }
20131 esac
20133 if test "${enable_ldscript}" = "yes"; then
20134 { echo "$as_me:$LINENO: checking Output format" >&5
20135 echo $ECHO_N "checking Output format... $ECHO_C" >&6; }
20136 OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')"
20137 if test -z "${OUTPUT_FORMAT}"; then
20138 { echo "$as_me:$LINENO: result: None" >&5
20139 echo "${ECHO_T}None" >&6; }
20140 else
20141 { echo "$as_me:$LINENO: result: ${OUTPUT_FORMAT}" >&5
20142 echo "${ECHO_T}${OUTPUT_FORMAT}" >&6; }
20143 OUTPUT_FORMAT="OUTPUT_FORMAT ( ${OUTPUT_FORMAT} )"
20147 # Libraries
20148 if test "${with_fuse}" = "internal"; then
20149 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20150 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20151 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154 ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-lpthread $LIBS"
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h. */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20166 #ifdef __cplusplus
20167 extern "C"
20168 #endif
20169 char pthread_create ();
20171 main ()
20173 return pthread_create ();
20175 return 0;
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_link") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest$ac_exeext &&
20195 $as_test_x conftest$ac_exeext; then
20196 ac_cv_lib_pthread_pthread_create=yes
20197 else
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_cv_lib_pthread_pthread_create=no
20204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20205 conftest$ac_exeext conftest.$ac_ext
20206 LIBS=$ac_check_lib_save_LIBS
20208 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20209 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20210 if test $ac_cv_lib_pthread_pthread_create = yes; then
20211 LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread"
20212 else
20213 { { echo "$as_me:$LINENO: error: Cannot find pthread library" >&5
20214 echo "$as_me: error: Cannot find pthread library" >&2;}
20215 { (exit 1); exit 1; }; }
20220 cat >>confdefs.h <<\_ACEOF
20221 #define _REENTRANT 1
20222 _ACEOF
20224 # required so that we re-compile anything
20226 cat >>confdefs.h <<\_ACEOF
20227 #define FUSE_INTERNAL 1
20228 _ACEOF
20230 else
20231 if test -z "$PKG_CONFIG"; then
20232 # Extract the first word of "pkg-config", so it can be a program name with args.
20233 set dummy pkg-config; ac_word=$2
20234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20236 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239 case $PKG_CONFIG in
20240 [\\/]* | ?:[\\/]*)
20241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20245 for as_dir in $PATH
20247 IFS=$as_save_IFS
20248 test -z "$as_dir" && as_dir=.
20249 for ac_exec_ext in '' $ac_executable_extensions; do
20250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20251 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20253 break 2
20255 done
20256 done
20257 IFS=$as_save_IFS
20259 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20261 esac
20263 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20264 if test -n "$PKG_CONFIG"; then
20265 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20266 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20267 else
20268 { echo "$as_me:$LINENO: result: no" >&5
20269 echo "${ECHO_T}no" >&6; }
20274 test "x${PKG_CONFIG}" = "xno" && { { echo "$as_me:$LINENO: error: pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" >&5
20275 echo "$as_me: error: pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" >&2;}
20276 { (exit 1); exit 1; }; }
20277 # Libraries often install their metadata .pc files in directories
20278 # not searched by pkg-config. Let's workaround this.
20279 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig
20282 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20283 if test -n "$ac_tool_prefix"; then
20284 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20285 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20288 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 case $PKG_CONFIG in
20292 [\\/]* | ?:[\\/]*)
20293 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20297 for as_dir in $PATH
20299 IFS=$as_save_IFS
20300 test -z "$as_dir" && as_dir=.
20301 for ac_exec_ext in '' $ac_executable_extensions; do
20302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20303 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20305 break 2
20307 done
20308 done
20309 IFS=$as_save_IFS
20312 esac
20314 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20315 if test -n "$PKG_CONFIG"; then
20316 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20317 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20318 else
20319 { echo "$as_me:$LINENO: result: no" >&5
20320 echo "${ECHO_T}no" >&6; }
20325 if test -z "$ac_cv_path_PKG_CONFIG"; then
20326 ac_pt_PKG_CONFIG=$PKG_CONFIG
20327 # Extract the first word of "pkg-config", so it can be a program name with args.
20328 set dummy pkg-config; ac_word=$2
20329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20331 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334 case $ac_pt_PKG_CONFIG in
20335 [\\/]* | ?:[\\/]*)
20336 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20340 for as_dir in $PATH
20342 IFS=$as_save_IFS
20343 test -z "$as_dir" && as_dir=.
20344 for ac_exec_ext in '' $ac_executable_extensions; do
20345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20346 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20348 break 2
20350 done
20351 done
20352 IFS=$as_save_IFS
20355 esac
20357 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20358 if test -n "$ac_pt_PKG_CONFIG"; then
20359 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20360 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20361 else
20362 { echo "$as_me:$LINENO: result: no" >&5
20363 echo "${ECHO_T}no" >&6; }
20366 if test "x$ac_pt_PKG_CONFIG" = x; then
20367 PKG_CONFIG=""
20368 else
20369 case $cross_compiling:$ac_tool_warned in
20370 yes:)
20371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20372 whose name does not start with the host triplet. If you think this
20373 configuration is useful to you, please write to autoconf@gnu.org." >&5
20374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20375 whose name does not start with the host triplet. If you think this
20376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20377 ac_tool_warned=yes ;;
20378 esac
20379 PKG_CONFIG=$ac_pt_PKG_CONFIG
20381 else
20382 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20386 if test -n "$PKG_CONFIG"; then
20387 _pkg_min_version=0.9.0
20388 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20389 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20390 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20391 { echo "$as_me:$LINENO: result: yes" >&5
20392 echo "${ECHO_T}yes" >&6; }
20393 else
20394 { echo "$as_me:$LINENO: result: no" >&5
20395 echo "${ECHO_T}no" >&6; }
20396 PKG_CONFIG=""
20401 pkg_failed=no
20402 { echo "$as_me:$LINENO: checking for FUSE_MODULE" >&5
20403 echo $ECHO_N "checking for FUSE_MODULE... $ECHO_C" >&6; }
20405 if test -n "$FUSE_MODULE_CFLAGS"; then
20406 pkg_cv_FUSE_MODULE_CFLAGS="$FUSE_MODULE_CFLAGS"
20407 elif test -n "$PKG_CONFIG"; then
20408 if test -n "$PKG_CONFIG" && \
20409 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\"") >&5
20410 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; then
20414 pkg_cv_FUSE_MODULE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6.0" 2>/dev/null`
20415 else
20416 pkg_failed=yes
20418 else
20419 pkg_failed=untried
20421 if test -n "$FUSE_MODULE_LIBS"; then
20422 pkg_cv_FUSE_MODULE_LIBS="$FUSE_MODULE_LIBS"
20423 elif test -n "$PKG_CONFIG"; then
20424 if test -n "$PKG_CONFIG" && \
20425 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\"") >&5
20426 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; then
20430 pkg_cv_FUSE_MODULE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6.0" 2>/dev/null`
20431 else
20432 pkg_failed=yes
20434 else
20435 pkg_failed=untried
20440 if test $pkg_failed = yes; then
20442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20443 _pkg_short_errors_supported=yes
20444 else
20445 _pkg_short_errors_supported=no
20447 if test $_pkg_short_errors_supported = yes; then
20448 FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fuse >= 2.6.0" 2>&1`
20449 else
20450 FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fuse >= 2.6.0" 2>&1`
20452 # Put the nasty error message in config.log where it belongs
20453 echo "$FUSE_MODULE_PKG_ERRORS" >&5
20455 { echo "$as_me:$LINENO: result: no" >&5
20456 echo "${ECHO_T}no" >&6; }
20458 { { echo "$as_me:$LINENO: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&5
20459 echo "$as_me: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&2;}
20460 { (exit 1); exit 1; }; }
20463 elif test $pkg_failed = untried; then
20465 { { echo "$as_me:$LINENO: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&5
20466 echo "$as_me: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&2;}
20467 { (exit 1); exit 1; }; }
20470 else
20471 FUSE_MODULE_CFLAGS=$pkg_cv_FUSE_MODULE_CFLAGS
20472 FUSE_MODULE_LIBS=$pkg_cv_FUSE_MODULE_LIBS
20473 { echo "$as_me:$LINENO: result: yes" >&5
20474 echo "${ECHO_T}yes" >&6; }
20477 FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,//*,/,g' -e 's, *$,,'`
20480 # Checks for header files.
20481 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20483 if test "${ac_cv_header_stdc+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h. */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 #include <stdlib.h>
20493 #include <stdarg.h>
20494 #include <string.h>
20495 #include <float.h>
20498 main ()
20502 return 0;
20504 _ACEOF
20505 rm -f conftest.$ac_objext
20506 if { (ac_try="$ac_compile"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_compile") 2>conftest.er1
20513 ac_status=$?
20514 grep -v '^ *+' conftest.er1 >conftest.err
20515 rm -f conftest.er1
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && {
20519 test -z "$ac_c_werror_flag" ||
20520 test ! -s conftest.err
20521 } && test -s conftest.$ac_objext; then
20522 ac_cv_header_stdc=yes
20523 else
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_cv_header_stdc=no
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 if test $ac_cv_header_stdc = yes; then
20533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20534 cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h. */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 #include <string.h>
20542 _ACEOF
20543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20544 $EGREP "memchr" >/dev/null 2>&1; then
20546 else
20547 ac_cv_header_stdc=no
20549 rm -f conftest*
20553 if test $ac_cv_header_stdc = yes; then
20554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 #include <stdlib.h>
20563 _ACEOF
20564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20565 $EGREP "free" >/dev/null 2>&1; then
20567 else
20568 ac_cv_header_stdc=no
20570 rm -f conftest*
20574 if test $ac_cv_header_stdc = yes; then
20575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20576 if test "$cross_compiling" = yes; then
20578 else
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h. */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 #include <ctype.h>
20586 #include <stdlib.h>
20587 #if ((' ' & 0x0FF) == 0x020)
20588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20590 #else
20591 # define ISLOWER(c) \
20592 (('a' <= (c) && (c) <= 'i') \
20593 || ('j' <= (c) && (c) <= 'r') \
20594 || ('s' <= (c) && (c) <= 'z'))
20595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20596 #endif
20598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20600 main ()
20602 int i;
20603 for (i = 0; i < 256; i++)
20604 if (XOR (islower (i), ISLOWER (i))
20605 || toupper (i) != TOUPPER (i))
20606 return 2;
20607 return 0;
20609 _ACEOF
20610 rm -f conftest$ac_exeext
20611 if { (ac_try="$ac_link"
20612 case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_link") 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20621 { (case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_try") 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; }; then
20631 else
20632 echo "$as_me: program exited with status $ac_status" >&5
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ( exit $ac_status )
20637 ac_cv_header_stdc=no
20639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20646 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20647 if test $ac_cv_header_stdc = yes; then
20649 cat >>confdefs.h <<\_ACEOF
20650 #define STDC_HEADERS 1
20651 _ACEOF
20695 for ac_header in ctype.h fcntl.h libgen.h libintl.h limits.h locale.h \
20696 mntent.h stddef.h stdint.h stdlib.h stdio.h stdarg.h string.h \
20697 strings.h errno.h time.h unistd.h utime.h wchar.h getopt.h features.h \
20698 endian.h byteswap.h sys/byteorder.h sys/endian.h sys/param.h \
20699 sys/ioctl.h sys/mkdev.h sys/mount.h sys/stat.h sys/types.h sys/vfs.h \
20700 sys/statvfs.h sys/sysmacros.h linux/major.h linux/fd.h linux/hdreg.h \
20701 machine/endian.h windows.h syslog.h
20703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 ac_res=`eval echo '${'$as_ac_Header'}'`
20711 { echo "$as_me:$LINENO: result: $ac_res" >&5
20712 echo "${ECHO_T}$ac_res" >&6; }
20713 else
20714 # Is the header compilable?
20715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h. */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 $ac_includes_default
20724 #include <$ac_header>
20725 _ACEOF
20726 rm -f conftest.$ac_objext
20727 if { (ac_try="$ac_compile"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_compile") 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest.$ac_objext; then
20743 ac_header_compiler=yes
20744 else
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 ac_header_compiler=no
20751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20753 echo "${ECHO_T}$ac_header_compiler" >&6; }
20755 # Is the header present?
20756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20758 cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h. */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 #include <$ac_header>
20765 _ACEOF
20766 if { (ac_try="$ac_cpp conftest.$ac_ext"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20773 ac_status=$?
20774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } >/dev/null && {
20779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20780 test ! -s conftest.err
20781 }; then
20782 ac_header_preproc=yes
20783 else
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20787 ac_header_preproc=no
20790 rm -f conftest.err conftest.$ac_ext
20791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20792 echo "${ECHO_T}$ac_header_preproc" >&6; }
20794 # So? What about this header?
20795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20796 yes:no: )
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20801 ac_header_preproc=yes
20803 no:yes:* )
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20816 ( cat <<\_ASBOX
20817 ## ----------------------------------------- ##
20818 ## Report this to ntfs-3g-devel@lists.sf.net ##
20819 ## ----------------------------------------- ##
20820 _ASBOX
20821 ) | sed "s/^/$as_me: WARNING: /" >&2
20823 esac
20824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 else
20829 eval "$as_ac_Header=\$ac_header_preproc"
20831 ac_res=`eval echo '${'$as_ac_Header'}'`
20832 { echo "$as_me:$LINENO: result: $ac_res" >&5
20833 echo "${ECHO_T}$ac_res" >&6; }
20836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20837 cat >>confdefs.h <<_ACEOF
20838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20839 _ACEOF
20843 done
20846 # Checks for typedefs, structures, and compiler characteristics.
20847 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20848 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
20849 if test "${ac_cv_header_stdbool_h+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h. */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20859 #include <stdbool.h>
20860 #ifndef bool
20861 "error: bool is not defined"
20862 #endif
20863 #ifndef false
20864 "error: false is not defined"
20865 #endif
20866 #if false
20867 "error: false is not 0"
20868 #endif
20869 #ifndef true
20870 "error: true is not defined"
20871 #endif
20872 #if true != 1
20873 "error: true is not 1"
20874 #endif
20875 #ifndef __bool_true_false_are_defined
20876 "error: __bool_true_false_are_defined is not defined"
20877 #endif
20879 struct s { _Bool s: 1; _Bool t; } s;
20881 char a[true == 1 ? 1 : -1];
20882 char b[false == 0 ? 1 : -1];
20883 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20884 char d[(bool) 0.5 == true ? 1 : -1];
20885 bool e = &s;
20886 char f[(_Bool) 0.0 == false ? 1 : -1];
20887 char g[true];
20888 char h[sizeof (_Bool)];
20889 char i[sizeof s.t];
20890 enum { j = false, k = true, l = false * true, m = true * 256 };
20891 _Bool n[m];
20892 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20893 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20894 # if defined __xlc__ || defined __GNUC__
20895 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20896 reported by James Lemley on 2005-10-05; see
20897 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20898 This test is not quite right, since xlc is allowed to
20899 reject this program, as the initializer for xlcbug is
20900 not one of the forms that C requires support for.
20901 However, doing the test right would require a runtime
20902 test, and that would make cross-compilation harder.
20903 Let us hope that IBM fixes the xlc bug, and also adds
20904 support for this kind of constant expression. In the
20905 meantime, this test will reject xlc, which is OK, since
20906 our stdbool.h substitute should suffice. We also test
20907 this with GCC, where it should work, to detect more
20908 quickly whether someone messes up the test in the
20909 future. */
20910 char digs[] = "0123456789";
20911 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20912 # endif
20913 /* Catch a bug in an HP-UX C compiler. See
20914 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20915 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20917 _Bool q = true;
20918 _Bool *pq = &q;
20921 main ()
20924 *pq |= q;
20925 *pq |= ! q;
20926 /* Refer to every declared value, to avoid compiler optimizations. */
20927 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20928 + !m + !n + !o + !p + !q + !pq);
20931 return 0;
20933 _ACEOF
20934 rm -f conftest.$ac_objext
20935 if { (ac_try="$ac_compile"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20939 esac
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_compile") 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest.$ac_objext; then
20951 ac_cv_header_stdbool_h=yes
20952 else
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ac_cv_header_stdbool_h=no
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20962 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20963 { echo "$as_me:$LINENO: checking for _Bool" >&5
20964 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20965 if test "${ac_cv_type__Bool+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h. */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 $ac_includes_default
20975 typedef _Bool ac__type_new_;
20977 main ()
20979 if ((ac__type_new_ *) 0)
20980 return 0;
20981 if (sizeof (ac__type_new_))
20982 return 0;
20984 return 0;
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_compile") 2>conftest.er1
20995 ac_status=$?
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest.$ac_objext; then
21004 ac_cv_type__Bool=yes
21005 else
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 ac_cv_type__Bool=no
21012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
21015 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
21016 if test $ac_cv_type__Bool = yes; then
21018 cat >>confdefs.h <<_ACEOF
21019 #define HAVE__BOOL 1
21020 _ACEOF
21025 if test $ac_cv_header_stdbool_h = yes; then
21027 cat >>confdefs.h <<\_ACEOF
21028 #define HAVE_STDBOOL_H 1
21029 _ACEOF
21033 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21034 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21035 if test "${ac_cv_c_bigendian+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038 # See if sys/param.h defines the BYTE_ORDER macro.
21039 cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h. */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 #include <sys/types.h>
21046 #include <sys/param.h>
21049 main ()
21051 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21052 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21053 bogus endian macros
21054 #endif
21057 return 0;
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21077 # It does; now see whether it defined to BIG_ENDIAN or not.
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h. */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 #include <sys/types.h>
21085 #include <sys/param.h>
21088 main ()
21090 #if BYTE_ORDER != BIG_ENDIAN
21091 not big endian
21092 #endif
21095 return 0;
21097 _ACEOF
21098 rm -f conftest.$ac_objext
21099 if { (ac_try="$ac_compile"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_compile") 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } && {
21112 test -z "$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21114 } && test -s conftest.$ac_objext; then
21115 ac_cv_c_bigendian=yes
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21120 ac_cv_c_bigendian=no
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 # It does not; compile a test program.
21129 if test "$cross_compiling" = yes; then
21130 # try to guess the endianness by grepping values into an object file
21131 ac_cv_c_bigendian=unknown
21132 cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h. */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21138 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21139 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21140 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21141 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21142 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21143 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21145 main ()
21147 _ascii (); _ebcdic ();
21149 return 0;
21151 _ACEOF
21152 rm -f conftest.$ac_objext
21153 if { (ac_try="$ac_compile"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21157 esac
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_compile") 2>conftest.er1
21160 ac_status=$?
21161 grep -v '^ *+' conftest.er1 >conftest.err
21162 rm -f conftest.er1
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } && {
21166 test -z "$ac_c_werror_flag" ||
21167 test ! -s conftest.err
21168 } && test -s conftest.$ac_objext; then
21169 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21170 ac_cv_c_bigendian=yes
21172 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21173 if test "$ac_cv_c_bigendian" = unknown; then
21174 ac_cv_c_bigendian=no
21175 else
21176 # finding both strings is unlikely to happen, but who knows?
21177 ac_cv_c_bigendian=unknown
21180 else
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21188 else
21189 cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h. */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 $ac_includes_default
21197 main ()
21200 /* Are we little or big endian? From Harbison&Steele. */
21201 union
21203 long int l;
21204 char c[sizeof (long int)];
21205 } u;
21206 u.l = 1;
21207 return u.c[sizeof (long int) - 1] == 1;
21210 return 0;
21212 _ACEOF
21213 rm -f conftest$ac_exeext
21214 if { (ac_try="$ac_link"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_link") 2>&5
21221 ac_status=$?
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21224 { (case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_try") 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_c_bigendian=no
21234 else
21235 echo "$as_me: program exited with status $ac_status" >&5
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ( exit $ac_status )
21240 ac_cv_c_bigendian=yes
21242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21251 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21252 case $ac_cv_c_bigendian in
21253 yes)
21255 cat >>confdefs.h <<\_ACEOF
21256 #define WORDS_BIGENDIAN 1
21257 _ACEOF
21262 cat >>confdefs.h <<\_ACEOF
21263 #define WORDS_LITTLEENDIAN 1
21264 _ACEOF
21269 { { echo "$as_me:$LINENO: error: unknown endianness
21270 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21271 echo "$as_me: error: unknown endianness
21272 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21273 { (exit 1); exit 1; }; } ;;
21274 esac
21276 { echo "$as_me:$LINENO: checking for inline" >&5
21277 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21278 if test "${ac_cv_c_inline+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281 ac_cv_c_inline=no
21282 for ac_kw in inline __inline__ __inline; do
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 #ifndef __cplusplus
21290 typedef int foo_t;
21291 static $ac_kw foo_t static_foo () {return 0; }
21292 $ac_kw foo_t foo () {return 0; }
21293 #endif
21295 _ACEOF
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.$ac_objext; then
21313 ac_cv_c_inline=$ac_kw
21314 else
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 test "$ac_cv_c_inline" != no && break
21323 done
21326 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21327 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21330 case $ac_cv_c_inline in
21331 inline | yes) ;;
21333 case $ac_cv_c_inline in
21334 no) ac_val=;;
21335 *) ac_val=$ac_cv_c_inline;;
21336 esac
21337 cat >>confdefs.h <<_ACEOF
21338 #ifndef __cplusplus
21339 #define inline $ac_val
21340 #endif
21341 _ACEOF
21343 esac
21345 { echo "$as_me:$LINENO: checking for off_t" >&5
21346 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21347 if test "${ac_cv_type_off_t+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350 cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h. */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 $ac_includes_default
21357 typedef off_t ac__type_new_;
21359 main ()
21361 if ((ac__type_new_ *) 0)
21362 return 0;
21363 if (sizeof (ac__type_new_))
21364 return 0;
21366 return 0;
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_compile") 2>conftest.er1
21377 ac_status=$?
21378 grep -v '^ *+' conftest.er1 >conftest.err
21379 rm -f conftest.er1
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && {
21383 test -z "$ac_c_werror_flag" ||
21384 test ! -s conftest.err
21385 } && test -s conftest.$ac_objext; then
21386 ac_cv_type_off_t=yes
21387 else
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21391 ac_cv_type_off_t=no
21394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21397 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21398 if test $ac_cv_type_off_t = yes; then
21400 else
21402 cat >>confdefs.h <<_ACEOF
21403 #define off_t long int
21404 _ACEOF
21408 { echo "$as_me:$LINENO: checking for size_t" >&5
21409 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21410 if test "${ac_cv_type_size_t+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h. */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419 $ac_includes_default
21420 typedef size_t ac__type_new_;
21422 main ()
21424 if ((ac__type_new_ *) 0)
21425 return 0;
21426 if (sizeof (ac__type_new_))
21427 return 0;
21429 return 0;
21431 _ACEOF
21432 rm -f conftest.$ac_objext
21433 if { (ac_try="$ac_compile"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_compile") 2>conftest.er1
21440 ac_status=$?
21441 grep -v '^ *+' conftest.er1 >conftest.err
21442 rm -f conftest.er1
21443 cat conftest.err >&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && {
21446 test -z "$ac_c_werror_flag" ||
21447 test ! -s conftest.err
21448 } && test -s conftest.$ac_objext; then
21449 ac_cv_type_size_t=yes
21450 else
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_cv_type_size_t=no
21457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21460 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21461 if test $ac_cv_type_size_t = yes; then
21463 else
21465 cat >>confdefs.h <<_ACEOF
21466 #define size_t unsigned int
21467 _ACEOF
21471 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21472 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21473 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
21475 else
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21484 main ()
21486 static struct stat ac_aggr;
21487 if (ac_aggr.st_blocks)
21488 return 0;
21490 return 0;
21492 _ACEOF
21493 rm -f conftest.$ac_objext
21494 if { (ac_try="$ac_compile"
21495 case "(($ac_try" in
21496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21498 esac
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_compile") 2>conftest.er1
21501 ac_status=$?
21502 grep -v '^ *+' conftest.er1 >conftest.err
21503 rm -f conftest.er1
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } && {
21507 test -z "$ac_c_werror_flag" ||
21508 test ! -s conftest.err
21509 } && test -s conftest.$ac_objext; then
21510 ac_cv_member_struct_stat_st_blocks=yes
21511 else
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 $ac_includes_default
21523 main ()
21525 static struct stat ac_aggr;
21526 if (sizeof ac_aggr.st_blocks)
21527 return 0;
21529 return 0;
21531 _ACEOF
21532 rm -f conftest.$ac_objext
21533 if { (ac_try="$ac_compile"
21534 case "(($ac_try" in
21535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21537 esac
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539 (eval "$ac_compile") 2>conftest.er1
21540 ac_status=$?
21541 grep -v '^ *+' conftest.er1 >conftest.err
21542 rm -f conftest.er1
21543 cat conftest.err >&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } && {
21546 test -z "$ac_c_werror_flag" ||
21547 test ! -s conftest.err
21548 } && test -s conftest.$ac_objext; then
21549 ac_cv_member_struct_stat_st_blocks=yes
21550 else
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21554 ac_cv_member_struct_stat_st_blocks=no
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21563 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21564 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21566 cat >>confdefs.h <<_ACEOF
21567 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21568 _ACEOF
21571 cat >>confdefs.h <<\_ACEOF
21572 #define HAVE_ST_BLOCKS 1
21573 _ACEOF
21575 else
21576 case " $LIBOBJS " in
21577 *" fileblocks.$ac_objext "* ) ;;
21578 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21580 esac
21585 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21586 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21587 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21589 else
21590 cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h. */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 $ac_includes_default
21598 main ()
21600 static struct stat ac_aggr;
21601 if (ac_aggr.st_rdev)
21602 return 0;
21604 return 0;
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (ac_try="$ac_compile"
21609 case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_compile") 2>conftest.er1
21615 ac_status=$?
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest.$ac_objext; then
21624 ac_cv_member_struct_stat_st_rdev=yes
21625 else
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h. */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 $ac_includes_default
21637 main ()
21639 static struct stat ac_aggr;
21640 if (sizeof ac_aggr.st_rdev)
21641 return 0;
21643 return 0;
21645 _ACEOF
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_compile") 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && {
21660 test -z "$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21662 } && test -s conftest.$ac_objext; then
21663 ac_cv_member_struct_stat_st_rdev=yes
21664 else
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 ac_cv_member_struct_stat_st_rdev=no
21671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21677 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21678 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21680 cat >>confdefs.h <<_ACEOF
21681 #define HAVE_STRUCT_STAT_ST_RDEV 1
21682 _ACEOF
21687 { echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
21688 echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; }
21689 if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692 cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h. */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 $ac_includes_default
21700 main ()
21702 static struct stat ac_aggr;
21703 if (ac_aggr.st_atim)
21704 return 0;
21706 return 0;
21708 _ACEOF
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21714 esac
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_compile") 2>conftest.er1
21717 ac_status=$?
21718 grep -v '^ *+' conftest.er1 >conftest.err
21719 rm -f conftest.er1
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } && {
21723 test -z "$ac_c_werror_flag" ||
21724 test ! -s conftest.err
21725 } && test -s conftest.$ac_objext; then
21726 ac_cv_member_struct_stat_st_atim=yes
21727 else
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h. */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 $ac_includes_default
21739 main ()
21741 static struct stat ac_aggr;
21742 if (sizeof ac_aggr.st_atim)
21743 return 0;
21745 return 0;
21747 _ACEOF
21748 rm -f conftest.$ac_objext
21749 if { (ac_try="$ac_compile"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_compile") 2>conftest.er1
21756 ac_status=$?
21757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest.$ac_objext; then
21765 ac_cv_member_struct_stat_st_atim=yes
21766 else
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ac_cv_member_struct_stat_st_atim=no
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
21779 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; }
21780 if test $ac_cv_member_struct_stat_st_atim = yes; then
21782 cat >>confdefs.h <<_ACEOF
21783 #define HAVE_STRUCT_STAT_ST_ATIM 1
21784 _ACEOF
21789 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec" >&5
21790 echo $ECHO_N "checking for struct stat.st_atimespec... $ECHO_C" >&6; }
21791 if test "${ac_cv_member_struct_stat_st_atimespec+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794 cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h. */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 $ac_includes_default
21802 main ()
21804 static struct stat ac_aggr;
21805 if (ac_aggr.st_atimespec)
21806 return 0;
21808 return 0;
21810 _ACEOF
21811 rm -f conftest.$ac_objext
21812 if { (ac_try="$ac_compile"
21813 case "(($ac_try" in
21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815 *) ac_try_echo=$ac_try;;
21816 esac
21817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818 (eval "$ac_compile") 2>conftest.er1
21819 ac_status=$?
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } && {
21825 test -z "$ac_c_werror_flag" ||
21826 test ! -s conftest.err
21827 } && test -s conftest.$ac_objext; then
21828 ac_cv_member_struct_stat_st_atimespec=yes
21829 else
21830 echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h. */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 $ac_includes_default
21841 main ()
21843 static struct stat ac_aggr;
21844 if (sizeof ac_aggr.st_atimespec)
21845 return 0;
21847 return 0;
21849 _ACEOF
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_compile") 2>conftest.er1
21858 ac_status=$?
21859 grep -v '^ *+' conftest.er1 >conftest.err
21860 rm -f conftest.er1
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } && {
21864 test -z "$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21866 } && test -s conftest.$ac_objext; then
21867 ac_cv_member_struct_stat_st_atimespec=yes
21868 else
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 ac_cv_member_struct_stat_st_atimespec=no
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec" >&5
21881 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec" >&6; }
21882 if test $ac_cv_member_struct_stat_st_atimespec = yes; then
21884 cat >>confdefs.h <<_ACEOF
21885 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
21886 _ACEOF
21892 # For the 'nfconv' patch (Mac OS X only):
21893 case "${target_os}" in
21894 darwin*)
21895 if test "${enable_nfconv}" = "yes"; then
21896 if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then
21897 { echo "$as_me:$LINENO: checking for CoreFoundation/CoreFoundation.h" >&5
21898 echo $ECHO_N "checking for CoreFoundation/CoreFoundation.h... $ECHO_C" >&6; }
21899 if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreFoundation_CoreFoundation_h" >&5
21903 echo "${ECHO_T}$ac_cv_header_CoreFoundation_CoreFoundation_h" >&6; }
21904 else
21905 # Is the header compilable?
21906 { echo "$as_me:$LINENO: checking CoreFoundation/CoreFoundation.h usability" >&5
21907 echo $ECHO_N "checking CoreFoundation/CoreFoundation.h usability... $ECHO_C" >&6; }
21908 cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h. */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 $ac_includes_default
21915 #include <CoreFoundation/CoreFoundation.h>
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21925 ac_status=$?
21926 grep -v '^ *+' conftest.er1 >conftest.err
21927 rm -f conftest.er1
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21934 ac_header_compiler=yes
21935 else
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 ac_header_compiler=no
21942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21944 echo "${ECHO_T}$ac_header_compiler" >&6; }
21946 # Is the header present?
21947 { echo "$as_me:$LINENO: checking CoreFoundation/CoreFoundation.h presence" >&5
21948 echo $ECHO_N "checking CoreFoundation/CoreFoundation.h presence... $ECHO_C" >&6; }
21949 cat >conftest.$ac_ext <<_ACEOF
21950 /* confdefs.h. */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21955 #include <CoreFoundation/CoreFoundation.h>
21956 _ACEOF
21957 if { (ac_try="$ac_cpp conftest.$ac_ext"
21958 case "(($ac_try" in
21959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960 *) ac_try_echo=$ac_try;;
21961 esac
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21964 ac_status=$?
21965 grep -v '^ *+' conftest.er1 >conftest.err
21966 rm -f conftest.er1
21967 cat conftest.err >&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } >/dev/null && {
21970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21971 test ! -s conftest.err
21972 }; then
21973 ac_header_preproc=yes
21974 else
21975 echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 ac_header_preproc=no
21981 rm -f conftest.err conftest.$ac_ext
21982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21983 echo "${ECHO_T}$ac_header_preproc" >&6; }
21985 # So? What about this header?
21986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21987 yes:no: )
21988 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: accepted by the compiler, rejected by the preprocessor!" >&5
21989 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the compiler's result" >&5
21991 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the compiler's result" >&2;}
21992 ac_header_preproc=yes
21994 no:yes:* )
21995 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: present but cannot be compiled" >&5
21996 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: present but cannot be compiled" >&2;}
21997 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: check for missing prerequisite headers?" >&5
21998 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: check for missing prerequisite headers?" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: see the Autoconf documentation" >&5
22000 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: see the Autoconf documentation" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: section \"Present But Cannot Be Compiled\"" >&5
22002 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: section \"Present But Cannot Be Compiled\"" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the preprocessor's result" >&5
22004 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the preprocessor's result" >&2;}
22005 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: in the future, the compiler will take precedence" >&5
22006 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: in the future, the compiler will take precedence" >&2;}
22007 ( cat <<\_ASBOX
22008 ## ----------------------------------------- ##
22009 ## Report this to ntfs-3g-devel@lists.sf.net ##
22010 ## ----------------------------------------- ##
22011 _ASBOX
22012 ) | sed "s/^/$as_me: WARNING: /" >&2
22014 esac
22015 { echo "$as_me:$LINENO: checking for CoreFoundation/CoreFoundation.h" >&5
22016 echo $ECHO_N "checking for CoreFoundation/CoreFoundation.h... $ECHO_C" >&6; }
22017 if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020 ac_cv_header_CoreFoundation_CoreFoundation_h=$ac_header_preproc
22022 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreFoundation_CoreFoundation_h" >&5
22023 echo "${ECHO_T}$ac_cv_header_CoreFoundation_CoreFoundation_h" >&6; }
22026 if test $ac_cv_header_CoreFoundation_CoreFoundation_h = yes; then
22028 LDFLAGS="${LDFLAGS} -framework CoreFoundation"
22030 cat >>confdefs.h <<\_ACEOF
22031 #define ENABLE_NFCONV 1
22032 _ACEOF
22035 else
22036 { { echo "$as_me:$LINENO: error: Cannot find CoreFoundation required for 'nfconv' functionality Mac OS X. You may use the --disable-nfconv 'configure' option to avoid this error." >&5
22037 echo "$as_me: error: Cannot find CoreFoundation required for 'nfconv' functionality Mac OS X. You may use the --disable-nfconv 'configure' option to avoid this error." >&2;}
22038 { (exit 1); exit 1; }; }
22045 esac
22047 # Checks for library functions.
22048 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
22049 # -lseq on Dynix/PTX, -lgen on Unixware.
22050 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
22051 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
22052 if test "${ac_cv_search_getmntent+set}" = set; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22054 else
22055 ac_func_search_save_LIBS=$LIBS
22056 cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h. */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22063 /* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22066 #ifdef __cplusplus
22067 extern "C"
22068 #endif
22069 char getmntent ();
22071 main ()
22073 return getmntent ();
22075 return 0;
22077 _ACEOF
22078 for ac_lib in '' sun seq gen; do
22079 if test -z "$ac_lib"; then
22080 ac_res="none required"
22081 else
22082 ac_res=-l$ac_lib
22083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_link") 2>conftest.er1
22093 ac_status=$?
22094 grep -v '^ *+' conftest.er1 >conftest.err
22095 rm -f conftest.er1
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } && {
22099 test -z "$ac_c_werror_flag" ||
22100 test ! -s conftest.err
22101 } && test -s conftest$ac_exeext &&
22102 $as_test_x conftest$ac_exeext; then
22103 ac_cv_search_getmntent=$ac_res
22104 else
22105 echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22112 conftest$ac_exeext
22113 if test "${ac_cv_search_getmntent+set}" = set; then
22114 break
22116 done
22117 if test "${ac_cv_search_getmntent+set}" = set; then
22119 else
22120 ac_cv_search_getmntent=no
22122 rm conftest.$ac_ext
22123 LIBS=$ac_func_search_save_LIBS
22125 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
22126 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
22127 ac_res=$ac_cv_search_getmntent
22128 if test "$ac_res" != no; then
22129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22130 ac_cv_func_getmntent=yes
22132 cat >>confdefs.h <<\_ACEOF
22133 #define HAVE_GETMNTENT
22134 _ACEOF
22136 else
22137 ac_cv_func_getmntent=no
22142 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
22143 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
22144 if test "${ac_cv_func_mbrtowc+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22146 else
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h. */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 #include <wchar.h>
22155 main ()
22157 wchar_t wc;
22158 char const s[] = "";
22159 size_t n = 1;
22160 mbstate_t state;
22161 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
22163 return 0;
22165 _ACEOF
22166 rm -f conftest.$ac_objext conftest$ac_exeext
22167 if { (ac_try="$ac_link"
22168 case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_link") 2>conftest.er1
22174 ac_status=$?
22175 grep -v '^ *+' conftest.er1 >conftest.err
22176 rm -f conftest.er1
22177 cat conftest.err >&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } && {
22180 test -z "$ac_c_werror_flag" ||
22181 test ! -s conftest.err
22182 } && test -s conftest$ac_exeext &&
22183 $as_test_x conftest$ac_exeext; then
22184 ac_cv_func_mbrtowc=yes
22185 else
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22189 ac_cv_func_mbrtowc=no
22192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22193 conftest$ac_exeext conftest.$ac_ext
22195 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
22196 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
22197 if test $ac_cv_func_mbrtowc = yes; then
22199 cat >>confdefs.h <<\_ACEOF
22200 #define HAVE_MBRTOWC 1
22201 _ACEOF
22205 { echo "$as_me:$LINENO: checking for working memcmp" >&5
22206 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
22207 if test "${ac_cv_func_memcmp_working+set}" = set; then
22208 echo $ECHO_N "(cached) $ECHO_C" >&6
22209 else
22210 if test "$cross_compiling" = yes; then
22211 ac_cv_func_memcmp_working=no
22212 else
22213 cat >conftest.$ac_ext <<_ACEOF
22214 /* confdefs.h. */
22215 _ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h. */
22219 $ac_includes_default
22221 main ()
22224 /* Some versions of memcmp are not 8-bit clean. */
22225 char c0 = '\100', c1 = '\200', c2 = '\201';
22226 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22227 return 1;
22229 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22230 or more and with at least one buffer not starting on a 4-byte boundary.
22231 William Lewis provided this test program. */
22233 char foo[21];
22234 char bar[21];
22235 int i;
22236 for (i = 0; i < 4; i++)
22238 char *a = foo + i;
22239 char *b = bar + i;
22240 strcpy (a, "--------01111111");
22241 strcpy (b, "--------10000000");
22242 if (memcmp (a, b, 16) >= 0)
22243 return 1;
22245 return 0;
22249 return 0;
22251 _ACEOF
22252 rm -f conftest$ac_exeext
22253 if { (ac_try="$ac_link"
22254 case "(($ac_try" in
22255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256 *) ac_try_echo=$ac_try;;
22257 esac
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259 (eval "$ac_link") 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22263 { (case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22266 esac
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_try") 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 ac_cv_func_memcmp_working=yes
22273 else
22274 echo "$as_me: program exited with status $ac_status" >&5
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 ( exit $ac_status )
22279 ac_cv_func_memcmp_working=no
22281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22286 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22287 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
22288 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22289 *" memcmp.$ac_objext "* ) ;;
22290 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22292 esac
22295 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22296 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22297 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300 rm -f conftest.sym conftest.file
22301 echo >conftest.file
22302 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22303 if test "$cross_compiling" = yes; then
22304 ac_cv_func_lstat_dereferences_slashed_symlink=no
22305 else
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h. */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 $ac_includes_default
22314 main ()
22316 struct stat sbuf;
22317 /* Linux will dereference the symlink and fail.
22318 That is better in the sense that it means we will not
22319 have to compile and use the lstat wrapper. */
22320 return lstat ("conftest.sym/", &sbuf) == 0;
22322 return 0;
22324 _ACEOF
22325 rm -f conftest$ac_exeext
22326 if { (ac_try="$ac_link"
22327 case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_link") 2>&5
22333 ac_status=$?
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22336 { (case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_try") 2>&5
22342 ac_status=$?
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); }; }; then
22345 ac_cv_func_lstat_dereferences_slashed_symlink=yes
22346 else
22347 echo "$as_me: program exited with status $ac_status" >&5
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22351 ( exit $ac_status )
22352 ac_cv_func_lstat_dereferences_slashed_symlink=no
22354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22358 else
22359 # If the `ln -s' command failed, then we probably don't even
22360 # have an lstat function.
22361 ac_cv_func_lstat_dereferences_slashed_symlink=no
22363 rm -f conftest.sym conftest.file
22366 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22367 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22369 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22371 cat >>confdefs.h <<_ACEOF
22372 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22373 _ACEOF
22376 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22377 case " $LIBOBJS " in
22378 *" lstat.$ac_objext "* ) ;;
22379 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
22381 esac
22385 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22386 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22387 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 else
22390 if test "$cross_compiling" = yes; then
22391 ac_cv_func_stat_empty_string_bug=yes
22392 else
22393 cat >conftest.$ac_ext <<_ACEOF
22394 /* confdefs.h. */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h. */
22399 $ac_includes_default
22401 main ()
22403 struct stat sbuf;
22404 return stat ("", &sbuf) == 0;
22406 return 0;
22408 _ACEOF
22409 rm -f conftest$ac_exeext
22410 if { (ac_try="$ac_link"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_link") 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22420 { (case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22423 esac
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425 (eval "$ac_try") 2>&5
22426 ac_status=$?
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; }; then
22429 ac_cv_func_stat_empty_string_bug=no
22430 else
22431 echo "$as_me: program exited with status $ac_status" >&5
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22435 ( exit $ac_status )
22436 ac_cv_func_stat_empty_string_bug=yes
22438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22443 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22444 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
22445 if test $ac_cv_func_stat_empty_string_bug = yes; then
22446 case " $LIBOBJS " in
22447 *" stat.$ac_objext "* ) ;;
22448 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
22450 esac
22453 cat >>confdefs.h <<_ACEOF
22454 #define HAVE_STAT_EMPTY_STRING_BUG 1
22455 _ACEOF
22460 for ac_func in strftime
22462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 else
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h. */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22476 #define $ac_func innocuous_$ac_func
22478 /* System header to define __stub macros and hopefully few prototypes,
22479 which can conflict with char $ac_func (); below.
22480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22481 <limits.h> exists even on freestanding compilers. */
22483 #ifdef __STDC__
22484 # include <limits.h>
22485 #else
22486 # include <assert.h>
22487 #endif
22489 #undef $ac_func
22491 /* Override any GCC internal prototype to avoid an error.
22492 Use char because int might match the return type of a GCC
22493 builtin and then its argument prototype would still apply. */
22494 #ifdef __cplusplus
22495 extern "C"
22496 #endif
22497 char $ac_func ();
22498 /* The GNU C library defines this for functions which it implements
22499 to always fail with ENOSYS. Some functions are actually named
22500 something starting with __ and the normal name is an alias. */
22501 #if defined __stub_$ac_func || defined __stub___$ac_func
22502 choke me
22503 #endif
22506 main ()
22508 return $ac_func ();
22510 return 0;
22512 _ACEOF
22513 rm -f conftest.$ac_objext conftest$ac_exeext
22514 if { (ac_try="$ac_link"
22515 case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520 (eval "$ac_link") 2>conftest.er1
22521 ac_status=$?
22522 grep -v '^ *+' conftest.er1 >conftest.err
22523 rm -f conftest.er1
22524 cat conftest.err >&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } && {
22527 test -z "$ac_c_werror_flag" ||
22528 test ! -s conftest.err
22529 } && test -s conftest$ac_exeext &&
22530 $as_test_x conftest$ac_exeext; then
22531 eval "$as_ac_var=yes"
22532 else
22533 echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22536 eval "$as_ac_var=no"
22539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22540 conftest$ac_exeext conftest.$ac_ext
22542 ac_res=`eval echo '${'$as_ac_var'}'`
22543 { echo "$as_me:$LINENO: result: $ac_res" >&5
22544 echo "${ECHO_T}$ac_res" >&6; }
22545 if test `eval echo '${'$as_ac_var'}'` = yes; then
22546 cat >>confdefs.h <<_ACEOF
22547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22548 _ACEOF
22550 else
22551 # strftime is in -lintl on SCO UNIX.
22552 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22553 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22554 if test "${ac_cv_lib_intl_strftime+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 else
22557 ac_check_lib_save_LIBS=$LIBS
22558 LIBS="-lintl $LIBS"
22559 cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h. */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22566 /* Override any GCC internal prototype to avoid an error.
22567 Use char because int might match the return type of a GCC
22568 builtin and then its argument prototype would still apply. */
22569 #ifdef __cplusplus
22570 extern "C"
22571 #endif
22572 char strftime ();
22574 main ()
22576 return strftime ();
22578 return 0;
22580 _ACEOF
22581 rm -f conftest.$ac_objext conftest$ac_exeext
22582 if { (ac_try="$ac_link"
22583 case "(($ac_try" in
22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585 *) ac_try_echo=$ac_try;;
22586 esac
22587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22588 (eval "$ac_link") 2>conftest.er1
22589 ac_status=$?
22590 grep -v '^ *+' conftest.er1 >conftest.err
22591 rm -f conftest.er1
22592 cat conftest.err >&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } && {
22595 test -z "$ac_c_werror_flag" ||
22596 test ! -s conftest.err
22597 } && test -s conftest$ac_exeext &&
22598 $as_test_x conftest$ac_exeext; then
22599 ac_cv_lib_intl_strftime=yes
22600 else
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_cv_lib_intl_strftime=no
22607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22608 conftest$ac_exeext conftest.$ac_ext
22609 LIBS=$ac_check_lib_save_LIBS
22611 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22612 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22613 if test $ac_cv_lib_intl_strftime = yes; then
22614 cat >>confdefs.h <<\_ACEOF
22615 #define HAVE_STRFTIME 1
22616 _ACEOF
22618 LIBS="-lintl $LIBS"
22622 done
22628 for ac_header in $ac_header_list
22630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 ac_res=`eval echo '${'$as_ac_Header'}'`
22638 { echo "$as_me:$LINENO: result: $ac_res" >&5
22639 echo "${ECHO_T}$ac_res" >&6; }
22640 else
22641 # Is the header compilable?
22642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22644 cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h. */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650 $ac_includes_default
22651 #include <$ac_header>
22652 _ACEOF
22653 rm -f conftest.$ac_objext
22654 if { (ac_try="$ac_compile"
22655 case "(($ac_try" in
22656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22657 *) ac_try_echo=$ac_try;;
22658 esac
22659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22660 (eval "$ac_compile") 2>conftest.er1
22661 ac_status=$?
22662 grep -v '^ *+' conftest.er1 >conftest.err
22663 rm -f conftest.er1
22664 cat conftest.err >&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } && {
22667 test -z "$ac_c_werror_flag" ||
22668 test ! -s conftest.err
22669 } && test -s conftest.$ac_objext; then
22670 ac_header_compiler=yes
22671 else
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22675 ac_header_compiler=no
22678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22680 echo "${ECHO_T}$ac_header_compiler" >&6; }
22682 # Is the header present?
22683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22685 cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h. */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h. */
22691 #include <$ac_header>
22692 _ACEOF
22693 if { (ac_try="$ac_cpp conftest.$ac_ext"
22694 case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22697 esac
22698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22700 ac_status=$?
22701 grep -v '^ *+' conftest.er1 >conftest.err
22702 rm -f conftest.er1
22703 cat conftest.err >&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } >/dev/null && {
22706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22707 test ! -s conftest.err
22708 }; then
22709 ac_header_preproc=yes
22710 else
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 ac_header_preproc=no
22717 rm -f conftest.err conftest.$ac_ext
22718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22719 echo "${ECHO_T}$ac_header_preproc" >&6; }
22721 # So? What about this header?
22722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22723 yes:no: )
22724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22728 ac_header_preproc=yes
22730 no:yes:* )
22731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22743 ( cat <<\_ASBOX
22744 ## ----------------------------------------- ##
22745 ## Report this to ntfs-3g-devel@lists.sf.net ##
22746 ## ----------------------------------------- ##
22747 _ASBOX
22748 ) | sed "s/^/$as_me: WARNING: /" >&2
22750 esac
22751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22754 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 else
22756 eval "$as_ac_Header=\$ac_header_preproc"
22758 ac_res=`eval echo '${'$as_ac_Header'}'`
22759 { echo "$as_me:$LINENO: result: $ac_res" >&5
22760 echo "${ECHO_T}$ac_res" >&6; }
22763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22764 cat >>confdefs.h <<_ACEOF
22765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22766 _ACEOF
22770 done
22780 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
22781 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
22782 if test "${ac_cv_func_utime_null+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22784 else
22785 rm -f conftest.data; >conftest.data
22786 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
22787 if test "$cross_compiling" = yes; then
22788 ac_cv_func_utime_null=no
22789 else
22790 cat >conftest.$ac_ext <<_ACEOF
22791 /* confdefs.h. */
22792 _ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h. */
22796 $ac_includes_default
22797 #ifdef HAVE_UTIME_H
22798 # include <utime.h>
22799 #endif
22801 main ()
22803 struct stat s, t;
22804 return ! (stat ("conftest.data", &s) == 0
22805 && utime ("conftest.data", 0) == 0
22806 && stat ("conftest.data", &t) == 0
22807 && t.st_mtime >= s.st_mtime
22808 && t.st_mtime - s.st_mtime < 120);
22810 return 0;
22812 _ACEOF
22813 rm -f conftest$ac_exeext
22814 if { (ac_try="$ac_link"
22815 case "(($ac_try" in
22816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817 *) ac_try_echo=$ac_try;;
22818 esac
22819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820 (eval "$ac_link") 2>&5
22821 ac_status=$?
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22824 { (case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22827 esac
22828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22829 (eval "$ac_try") 2>&5
22830 ac_status=$?
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; }; then
22833 ac_cv_func_utime_null=yes
22834 else
22835 echo "$as_me: program exited with status $ac_status" >&5
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22839 ( exit $ac_status )
22840 ac_cv_func_utime_null=no
22842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22847 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
22848 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
22849 if test $ac_cv_func_utime_null = yes; then
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_UTIME_NULL 1
22853 _ACEOF
22856 rm -f conftest.data
22859 for ac_func in vprintf
22861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22865 echo $ECHO_N "(cached) $ECHO_C" >&6
22866 else
22867 cat >conftest.$ac_ext <<_ACEOF
22868 /* confdefs.h. */
22869 _ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h. */
22873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22875 #define $ac_func innocuous_$ac_func
22877 /* System header to define __stub macros and hopefully few prototypes,
22878 which can conflict with char $ac_func (); below.
22879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22880 <limits.h> exists even on freestanding compilers. */
22882 #ifdef __STDC__
22883 # include <limits.h>
22884 #else
22885 # include <assert.h>
22886 #endif
22888 #undef $ac_func
22890 /* Override any GCC internal prototype to avoid an error.
22891 Use char because int might match the return type of a GCC
22892 builtin and then its argument prototype would still apply. */
22893 #ifdef __cplusplus
22894 extern "C"
22895 #endif
22896 char $ac_func ();
22897 /* The GNU C library defines this for functions which it implements
22898 to always fail with ENOSYS. Some functions are actually named
22899 something starting with __ and the normal name is an alias. */
22900 #if defined __stub_$ac_func || defined __stub___$ac_func
22901 choke me
22902 #endif
22905 main ()
22907 return $ac_func ();
22909 return 0;
22911 _ACEOF
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_link") 2>conftest.er1
22920 ac_status=$?
22921 grep -v '^ *+' conftest.er1 >conftest.err
22922 rm -f conftest.er1
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest$ac_exeext &&
22929 $as_test_x conftest$ac_exeext; then
22930 eval "$as_ac_var=yes"
22931 else
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 eval "$as_ac_var=no"
22938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939 conftest$ac_exeext conftest.$ac_ext
22941 ac_res=`eval echo '${'$as_ac_var'}'`
22942 { echo "$as_me:$LINENO: result: $ac_res" >&5
22943 echo "${ECHO_T}$ac_res" >&6; }
22944 if test `eval echo '${'$as_ac_var'}'` = yes; then
22945 cat >>confdefs.h <<_ACEOF
22946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22947 _ACEOF
22949 { echo "$as_me:$LINENO: checking for _doprnt" >&5
22950 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
22951 if test "${ac_cv_func__doprnt+set}" = set; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 else
22954 cat >conftest.$ac_ext <<_ACEOF
22955 /* confdefs.h. */
22956 _ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22960 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22962 #define _doprnt innocuous__doprnt
22964 /* System header to define __stub macros and hopefully few prototypes,
22965 which can conflict with char _doprnt (); below.
22966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22967 <limits.h> exists even on freestanding compilers. */
22969 #ifdef __STDC__
22970 # include <limits.h>
22971 #else
22972 # include <assert.h>
22973 #endif
22975 #undef _doprnt
22977 /* Override any GCC internal prototype to avoid an error.
22978 Use char because int might match the return type of a GCC
22979 builtin and then its argument prototype would still apply. */
22980 #ifdef __cplusplus
22981 extern "C"
22982 #endif
22983 char _doprnt ();
22984 /* The GNU C library defines this for functions which it implements
22985 to always fail with ENOSYS. Some functions are actually named
22986 something starting with __ and the normal name is an alias. */
22987 #if defined __stub__doprnt || defined __stub____doprnt
22988 choke me
22989 #endif
22992 main ()
22994 return _doprnt ();
22996 return 0;
22998 _ACEOF
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (ac_try="$ac_link"
23001 case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23004 esac
23005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23006 (eval "$ac_link") 2>conftest.er1
23007 ac_status=$?
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } && {
23013 test -z "$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 } && test -s conftest$ac_exeext &&
23016 $as_test_x conftest$ac_exeext; then
23017 ac_cv_func__doprnt=yes
23018 else
23019 echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ac_cv_func__doprnt=no
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026 conftest$ac_exeext conftest.$ac_ext
23028 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23029 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
23030 if test $ac_cv_func__doprnt = yes; then
23032 cat >>confdefs.h <<\_ACEOF
23033 #define HAVE_DOPRNT 1
23034 _ACEOF
23039 done
23071 for ac_func in \
23072 atexit basename daemon dup2 fdatasync ffs getopt_long hasmntopt \
23073 mbsinit memmove memset realpath regcomp setlocale setxattr \
23074 strcasecmp strchr strdup strerror strnlen strsep strtol strtoul \
23075 sysconf utime utimensat gettimeofday clock_gettime fork \
23078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084 cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h. */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23092 #define $ac_func innocuous_$ac_func
23094 /* System header to define __stub macros and hopefully few prototypes,
23095 which can conflict with char $ac_func (); below.
23096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23097 <limits.h> exists even on freestanding compilers. */
23099 #ifdef __STDC__
23100 # include <limits.h>
23101 #else
23102 # include <assert.h>
23103 #endif
23105 #undef $ac_func
23107 /* Override any GCC internal prototype to avoid an error.
23108 Use char because int might match the return type of a GCC
23109 builtin and then its argument prototype would still apply. */
23110 #ifdef __cplusplus
23111 extern "C"
23112 #endif
23113 char $ac_func ();
23114 /* The GNU C library defines this for functions which it implements
23115 to always fail with ENOSYS. Some functions are actually named
23116 something starting with __ and the normal name is an alias. */
23117 #if defined __stub_$ac_func || defined __stub___$ac_func
23118 choke me
23119 #endif
23122 main ()
23124 return $ac_func ();
23126 return 0;
23128 _ACEOF
23129 rm -f conftest.$ac_objext conftest$ac_exeext
23130 if { (ac_try="$ac_link"
23131 case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23134 esac
23135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23136 (eval "$ac_link") 2>conftest.er1
23137 ac_status=$?
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && {
23143 test -z "$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 } && test -s conftest$ac_exeext &&
23146 $as_test_x conftest$ac_exeext; then
23147 eval "$as_ac_var=yes"
23148 else
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 eval "$as_ac_var=no"
23155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23156 conftest$ac_exeext conftest.$ac_ext
23158 ac_res=`eval echo '${'$as_ac_var'}'`
23159 { echo "$as_me:$LINENO: result: $ac_res" >&5
23160 echo "${ECHO_T}$ac_res" >&6; }
23161 if test `eval echo '${'$as_ac_var'}'` = yes; then
23162 cat >>confdefs.h <<_ACEOF
23163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23164 _ACEOF
23167 done
23169 # Check whether --enable-largefile was given.
23170 if test "${enable_largefile+set}" = set; then
23171 enableval=$enable_largefile;
23174 if test "$enable_largefile" != no; then
23176 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23177 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23178 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23179 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 else
23181 ac_cv_sys_largefile_CC=no
23182 if test "$GCC" != yes; then
23183 ac_save_CC=$CC
23184 while :; do
23185 # IRIX 6.2 and later do not support large files by default,
23186 # so use the C compiler's -n32 option if that helps.
23187 cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h. */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23193 #include <sys/types.h>
23194 /* Check that off_t can represent 2**63 - 1 correctly.
23195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23196 since some C++ compilers masquerading as C compilers
23197 incorrectly reject 9223372036854775807. */
23198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23200 && LARGE_OFF_T % 2147483647 == 1)
23201 ? 1 : -1];
23203 main ()
23207 return 0;
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_compile") 2>conftest.er1
23218 ac_status=$?
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } && {
23224 test -z "$ac_c_werror_flag" ||
23225 test ! -s conftest.err
23226 } && test -s conftest.$ac_objext; then
23227 break
23228 else
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23235 rm -f core conftest.err conftest.$ac_objext
23236 CC="$CC -n32"
23237 rm -f conftest.$ac_objext
23238 if { (ac_try="$ac_compile"
23239 case "(($ac_try" in
23240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241 *) ac_try_echo=$ac_try;;
23242 esac
23243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244 (eval "$ac_compile") 2>conftest.er1
23245 ac_status=$?
23246 grep -v '^ *+' conftest.er1 >conftest.err
23247 rm -f conftest.er1
23248 cat conftest.err >&5
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); } && {
23251 test -z "$ac_c_werror_flag" ||
23252 test ! -s conftest.err
23253 } && test -s conftest.$ac_objext; then
23254 ac_cv_sys_largefile_CC=' -n32'; break
23255 else
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23262 rm -f core conftest.err conftest.$ac_objext
23263 break
23264 done
23265 CC=$ac_save_CC
23266 rm -f conftest.$ac_ext
23269 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23270 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23271 if test "$ac_cv_sys_largefile_CC" != no; then
23272 CC=$CC$ac_cv_sys_largefile_CC
23275 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23276 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23277 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280 while :; do
23281 cat >conftest.$ac_ext <<_ACEOF
23282 /* confdefs.h. */
23283 _ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23287 #include <sys/types.h>
23288 /* Check that off_t can represent 2**63 - 1 correctly.
23289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23290 since some C++ compilers masquerading as C compilers
23291 incorrectly reject 9223372036854775807. */
23292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23294 && LARGE_OFF_T % 2147483647 == 1)
23295 ? 1 : -1];
23297 main ()
23301 return 0;
23303 _ACEOF
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23309 esac
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_compile") 2>conftest.er1
23312 ac_status=$?
23313 grep -v '^ *+' conftest.er1 >conftest.err
23314 rm -f conftest.er1
23315 cat conftest.err >&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && {
23318 test -z "$ac_c_werror_flag" ||
23319 test ! -s conftest.err
23320 } && test -s conftest.$ac_objext; then
23321 ac_cv_sys_file_offset_bits=no; break
23322 else
23323 echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.$ac_ext >&5
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23330 cat >conftest.$ac_ext <<_ACEOF
23331 /* confdefs.h. */
23332 _ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23336 #define _FILE_OFFSET_BITS 64
23337 #include <sys/types.h>
23338 /* Check that off_t can represent 2**63 - 1 correctly.
23339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23340 since some C++ compilers masquerading as C compilers
23341 incorrectly reject 9223372036854775807. */
23342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23344 && LARGE_OFF_T % 2147483647 == 1)
23345 ? 1 : -1];
23347 main ()
23351 return 0;
23353 _ACEOF
23354 rm -f conftest.$ac_objext
23355 if { (ac_try="$ac_compile"
23356 case "(($ac_try" in
23357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23358 *) ac_try_echo=$ac_try;;
23359 esac
23360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23361 (eval "$ac_compile") 2>conftest.er1
23362 ac_status=$?
23363 grep -v '^ *+' conftest.er1 >conftest.err
23364 rm -f conftest.er1
23365 cat conftest.err >&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } && {
23368 test -z "$ac_c_werror_flag" ||
23369 test ! -s conftest.err
23370 } && test -s conftest.$ac_objext; then
23371 ac_cv_sys_file_offset_bits=64; break
23372 else
23373 echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23380 ac_cv_sys_file_offset_bits=unknown
23381 break
23382 done
23384 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23385 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23386 case $ac_cv_sys_file_offset_bits in #(
23387 no | unknown) ;;
23389 cat >>confdefs.h <<_ACEOF
23390 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23391 _ACEOF
23393 esac
23394 rm -f conftest*
23395 if test $ac_cv_sys_file_offset_bits = unknown; then
23396 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23397 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23398 if test "${ac_cv_sys_large_files+set}" = set; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23400 else
23401 while :; do
23402 cat >conftest.$ac_ext <<_ACEOF
23403 /* confdefs.h. */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23408 #include <sys/types.h>
23409 /* Check that off_t can represent 2**63 - 1 correctly.
23410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23411 since some C++ compilers masquerading as C compilers
23412 incorrectly reject 9223372036854775807. */
23413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23415 && LARGE_OFF_T % 2147483647 == 1)
23416 ? 1 : -1];
23418 main ()
23422 return 0;
23424 _ACEOF
23425 rm -f conftest.$ac_objext
23426 if { (ac_try="$ac_compile"
23427 case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_compile") 2>conftest.er1
23433 ac_status=$?
23434 grep -v '^ *+' conftest.er1 >conftest.err
23435 rm -f conftest.er1
23436 cat conftest.err >&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } && {
23439 test -z "$ac_c_werror_flag" ||
23440 test ! -s conftest.err
23441 } && test -s conftest.$ac_objext; then
23442 ac_cv_sys_large_files=no; break
23443 else
23444 echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23451 cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h. */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 #define _LARGE_FILES 1
23458 #include <sys/types.h>
23459 /* Check that off_t can represent 2**63 - 1 correctly.
23460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23461 since some C++ compilers masquerading as C compilers
23462 incorrectly reject 9223372036854775807. */
23463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23465 && LARGE_OFF_T % 2147483647 == 1)
23466 ? 1 : -1];
23468 main ()
23472 return 0;
23474 _ACEOF
23475 rm -f conftest.$ac_objext
23476 if { (ac_try="$ac_compile"
23477 case "(($ac_try" in
23478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479 *) ac_try_echo=$ac_try;;
23480 esac
23481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23482 (eval "$ac_compile") 2>conftest.er1
23483 ac_status=$?
23484 grep -v '^ *+' conftest.er1 >conftest.err
23485 rm -f conftest.er1
23486 cat conftest.err >&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); } && {
23489 test -z "$ac_c_werror_flag" ||
23490 test ! -s conftest.err
23491 } && test -s conftest.$ac_objext; then
23492 ac_cv_sys_large_files=1; break
23493 else
23494 echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23501 ac_cv_sys_large_files=unknown
23502 break
23503 done
23505 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23506 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23507 case $ac_cv_sys_large_files in #(
23508 no | unknown) ;;
23510 cat >>confdefs.h <<_ACEOF
23511 #define _LARGE_FILES $ac_cv_sys_large_files
23512 _ACEOF
23514 esac
23515 rm -f conftest*
23520 if test "$GCC" = "yes" ; then
23521 # We add -Wall to enable some compiler warnings.
23522 CFLAGS="${CFLAGS} -Wall"
23525 if test "${enable_pedantic}" = "yes"; then
23526 enable_warnings="yes"
23527 CFLAGS="${CFLAGS} -pedantic"
23530 if test "${enable_warnings}" = "yes"; then
23531 CFLAGS="${CFLAGS} -W -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wformat -Wformat-security -Wuninitialized"
23534 if test "${enable_debug}" = "yes"; then
23535 CFLAGS="${CFLAGS} -ggdb3 -DDEBUG"
23537 cat >>confdefs.h <<\_ACEOF
23538 #define ENABLE_DEBUG 1
23539 _ACEOF
23543 test "${enable_device_default_io_ops}" = "no" &&
23544 cat >>confdefs.h <<\_ACEOF
23545 #define NO_NTFS_DEVICE_DEFAULT_IO_OPS 1
23546 _ACEOF
23549 test "${enable_mtab}" = "no" &&
23550 cat >>confdefs.h <<\_ACEOF
23551 #define IGNORE_MTAB 1
23552 _ACEOF
23554 test "${enable_posix_acls}" != "no" &&
23555 cat >>confdefs.h <<\_ACEOF
23556 #define POSIXACLS 1
23557 _ACEOF
23560 test "${enable_really_static}" = "yes" && enable_library="no"
23561 test "${enable_library}" = "no" && enable_ldconfig="no"
23563 if test "x${DISTCHECK_HACK}" != "x"; then
23564 enable_mount_helper="no"
23565 enable_ldconfig="no"
23568 # Settings
23569 pkgconfigdir="\$(libdir)/pkgconfig"
23570 ntfs3gincludedir="\$(includedir)/ntfs-3g"
23571 # Executables should be installed to the root filesystem, otherwise
23572 # automounting NTFS volumes can fail during boot if the driver binaries
23573 # and their dependencies are on an unmounted partition. Use --exec-prefix
23574 # to override this.
23575 if test "x${exec_prefix}" = "xNONE"; then
23576 rootbindir="/bin"
23577 rootsbindir="/sbin"
23578 rootlibdir="/lib${libdir##*/lib}"
23579 else
23580 rootbindir="\$(bindir)"
23581 rootsbindir="\$(sbindir)"
23582 rootlibdir="\$(libdir)"
23592 if test "${with_fuse}" = "internal"; then
23593 FUSE_INTERNAL_TRUE=
23594 FUSE_INTERNAL_FALSE='#'
23595 else
23596 FUSE_INTERNAL_TRUE='#'
23597 FUSE_INTERNAL_FALSE=
23600 if test "${enable_ldscript}" = "yes"; then
23601 GENERATE_LDSCRIPT_TRUE=
23602 GENERATE_LDSCRIPT_FALSE='#'
23603 else
23604 GENERATE_LDSCRIPT_TRUE='#'
23605 GENERATE_LDSCRIPT_FALSE=
23608 if test "${WINDOWS}" = "yes"; then
23609 WINDOWS_TRUE=
23610 WINDOWS_FALSE='#'
23611 else
23612 WINDOWS_TRUE='#'
23613 WINDOWS_FALSE=
23616 if test "${enable_device_default_io_ops}" = "yes"; then
23617 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE=
23618 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE='#'
23619 else
23620 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE='#'
23621 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE=
23624 if test "${enable_ldconfig}" = "yes"; then
23625 RUN_LDCONFIG_TRUE=
23626 RUN_LDCONFIG_FALSE='#'
23627 else
23628 RUN_LDCONFIG_TRUE='#'
23629 RUN_LDCONFIG_FALSE=
23632 if test "${enable_really_static}" = "yes"; then
23633 REALLYSTATIC_TRUE=
23634 REALLYSTATIC_FALSE='#'
23635 else
23636 REALLYSTATIC_TRUE='#'
23637 REALLYSTATIC_FALSE=
23640 if test "${enable_library}" = "yes"; then
23641 INSTALL_LIBRARY_TRUE=
23642 INSTALL_LIBRARY_FALSE='#'
23643 else
23644 INSTALL_LIBRARY_TRUE='#'
23645 INSTALL_LIBRARY_FALSE=
23648 if test "${enable_mount_helper}" = "yes"; then
23649 ENABLE_MOUNT_HELPER_TRUE=
23650 ENABLE_MOUNT_HELPER_FALSE='#'
23651 else
23652 ENABLE_MOUNT_HELPER_TRUE='#'
23653 ENABLE_MOUNT_HELPER_FALSE=
23657 # workaround for <autoconf-2.60
23658 if test -z "${docdir}"; then
23659 docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
23662 # workaround for <automake-1.10
23663 if test -z "${MKDIR_P}"; then
23664 MKDIR_P="\$(mkdir_p)"
23668 # generate files
23669 ac_config_files="$ac_config_files Makefile include/Makefile include/fuse-lite/Makefile include/ntfs-3g/Makefile libfuse-lite/Makefile libntfs-3g/Makefile libntfs-3g/libntfs-3g.pc libntfs-3g/libntfs-3g.script.so src/Makefile src/ntfs-3g.8 src/ntfs-3g.probe.8 src/ntfs-3g.usermap.8 src/ntfs-3g.secaudit.8"
23671 cat >confcache <<\_ACEOF
23672 # This file is a shell script that caches the results of configure
23673 # tests run on this system so they can be shared between configure
23674 # scripts and configure runs, see configure's option --config-cache.
23675 # It is not useful on other systems. If it contains results you don't
23676 # want to keep, you may remove or edit it.
23678 # config.status only pays attention to the cache file if you give it
23679 # the --recheck option to rerun configure.
23681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23683 # following values.
23685 _ACEOF
23687 # The following way of writing the cache mishandles newlines in values,
23688 # but we know of no workaround that is simple, portable, and efficient.
23689 # So, we kill variables containing newlines.
23690 # Ultrix sh set writes to stderr and can't be redirected directly,
23691 # and sets the high bit in the cache file unless we assign to the vars.
23693 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23694 eval ac_val=\$$ac_var
23695 case $ac_val in #(
23696 *${as_nl}*)
23697 case $ac_var in #(
23698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23700 esac
23701 case $ac_var in #(
23702 _ | IFS | as_nl) ;; #(
23703 *) $as_unset $ac_var ;;
23704 esac ;;
23705 esac
23706 done
23708 (set) 2>&1 |
23709 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23710 *${as_nl}ac_space=\ *)
23711 # `set' does not quote correctly, so add quotes (double-quote
23712 # substitution turns \\\\ into \\, and sed turns \\ into \).
23713 sed -n \
23714 "s/'/'\\\\''/g;
23715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23716 ;; #(
23718 # `set' quotes correctly as required by POSIX, so do not add quotes.
23719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23721 esac |
23722 sort
23724 sed '
23725 /^ac_cv_env_/b end
23726 t clear
23727 :clear
23728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23729 t end
23730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23731 :end' >>confcache
23732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23733 if test -w "$cache_file"; then
23734 test "x$cache_file" != "x/dev/null" &&
23735 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23736 echo "$as_me: updating cache $cache_file" >&6;}
23737 cat confcache >$cache_file
23738 else
23739 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23740 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23743 rm -f confcache
23745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23746 # Let make expand exec_prefix.
23747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23749 DEFS=-DHAVE_CONFIG_H
23751 ac_libobjs=
23752 ac_ltlibobjs=
23753 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23754 # 1. Remove the extension, and $U if already installed.
23755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23756 ac_i=`echo "$ac_i" | sed "$ac_script"`
23757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23758 # will be set to the directory where LIBOBJS objects are built.
23759 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23760 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23761 done
23762 LIBOBJS=$ac_libobjs
23764 LTLIBOBJS=$ac_ltlibobjs
23767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23768 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23769 Usually this means the macro was only invoked conditionally." >&5
23770 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23771 Usually this means the macro was only invoked conditionally." >&2;}
23772 { (exit 1); exit 1; }; }
23774 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23775 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23776 Usually this means the macro was only invoked conditionally." >&5
23777 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23778 Usually this means the macro was only invoked conditionally." >&2;}
23779 { (exit 1); exit 1; }; }
23781 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23782 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23783 Usually this means the macro was only invoked conditionally." >&5
23784 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23785 Usually this means the macro was only invoked conditionally." >&2;}
23786 { (exit 1); exit 1; }; }
23788 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23789 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23790 Usually this means the macro was only invoked conditionally." >&5
23791 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23792 Usually this means the macro was only invoked conditionally." >&2;}
23793 { (exit 1); exit 1; }; }
23795 if test -z "${FUSE_INTERNAL_TRUE}" && test -z "${FUSE_INTERNAL_FALSE}"; then
23796 { { echo "$as_me:$LINENO: error: conditional \"FUSE_INTERNAL\" was never defined.
23797 Usually this means the macro was only invoked conditionally." >&5
23798 echo "$as_me: error: conditional \"FUSE_INTERNAL\" was never defined.
23799 Usually this means the macro was only invoked conditionally." >&2;}
23800 { (exit 1); exit 1; }; }
23802 if test -z "${GENERATE_LDSCRIPT_TRUE}" && test -z "${GENERATE_LDSCRIPT_FALSE}"; then
23803 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_LDSCRIPT\" was never defined.
23804 Usually this means the macro was only invoked conditionally." >&5
23805 echo "$as_me: error: conditional \"GENERATE_LDSCRIPT\" was never defined.
23806 Usually this means the macro was only invoked conditionally." >&2;}
23807 { (exit 1); exit 1; }; }
23809 if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
23810 { { echo "$as_me:$LINENO: error: conditional \"WINDOWS\" was never defined.
23811 Usually this means the macro was only invoked conditionally." >&5
23812 echo "$as_me: error: conditional \"WINDOWS\" was never defined.
23813 Usually this means the macro was only invoked conditionally." >&2;}
23814 { (exit 1); exit 1; }; }
23816 if test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_TRUE}" && test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_FALSE}"; then
23817 { { echo "$as_me:$LINENO: error: conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined.
23818 Usually this means the macro was only invoked conditionally." >&5
23819 echo "$as_me: error: conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined.
23820 Usually this means the macro was only invoked conditionally." >&2;}
23821 { (exit 1); exit 1; }; }
23823 if test -z "${RUN_LDCONFIG_TRUE}" && test -z "${RUN_LDCONFIG_FALSE}"; then
23824 { { echo "$as_me:$LINENO: error: conditional \"RUN_LDCONFIG\" was never defined.
23825 Usually this means the macro was only invoked conditionally." >&5
23826 echo "$as_me: error: conditional \"RUN_LDCONFIG\" was never defined.
23827 Usually this means the macro was only invoked conditionally." >&2;}
23828 { (exit 1); exit 1; }; }
23830 if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then
23831 { { echo "$as_me:$LINENO: error: conditional \"REALLYSTATIC\" was never defined.
23832 Usually this means the macro was only invoked conditionally." >&5
23833 echo "$as_me: error: conditional \"REALLYSTATIC\" was never defined.
23834 Usually this means the macro was only invoked conditionally." >&2;}
23835 { (exit 1); exit 1; }; }
23837 if test -z "${INSTALL_LIBRARY_TRUE}" && test -z "${INSTALL_LIBRARY_FALSE}"; then
23838 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBRARY\" was never defined.
23839 Usually this means the macro was only invoked conditionally." >&5
23840 echo "$as_me: error: conditional \"INSTALL_LIBRARY\" was never defined.
23841 Usually this means the macro was only invoked conditionally." >&2;}
23842 { (exit 1); exit 1; }; }
23844 if test -z "${ENABLE_MOUNT_HELPER_TRUE}" && test -z "${ENABLE_MOUNT_HELPER_FALSE}"; then
23845 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOUNT_HELPER\" was never defined.
23846 Usually this means the macro was only invoked conditionally." >&5
23847 echo "$as_me: error: conditional \"ENABLE_MOUNT_HELPER\" was never defined.
23848 Usually this means the macro was only invoked conditionally." >&2;}
23849 { (exit 1); exit 1; }; }
23852 : ${CONFIG_STATUS=./config.status}
23853 ac_clean_files_save=$ac_clean_files
23854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23855 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23856 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23857 cat >$CONFIG_STATUS <<_ACEOF
23858 #! $SHELL
23859 # Generated by $as_me.
23860 # Run this file to recreate the current configuration.
23861 # Compiler output produced by configure, useful for debugging
23862 # configure, is in config.log if it exists.
23864 debug=false
23865 ac_cs_recheck=false
23866 ac_cs_silent=false
23867 SHELL=\${CONFIG_SHELL-$SHELL}
23868 _ACEOF
23870 cat >>$CONFIG_STATUS <<\_ACEOF
23871 ## --------------------- ##
23872 ## M4sh Initialization. ##
23873 ## --------------------- ##
23875 # Be more Bourne compatible
23876 DUALCASE=1; export DUALCASE # for MKS sh
23877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23878 emulate sh
23879 NULLCMD=:
23880 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23881 # is contrary to our usage. Disable this feature.
23882 alias -g '${1+"$@"}'='"$@"'
23883 setopt NO_GLOB_SUBST
23884 else
23885 case `(set -o) 2>/dev/null` in
23886 *posix*) set -o posix ;;
23887 esac
23894 # PATH needs CR
23895 # Avoid depending upon Character Ranges.
23896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23899 as_cr_digits='0123456789'
23900 as_cr_alnum=$as_cr_Letters$as_cr_digits
23902 # The user is always right.
23903 if test "${PATH_SEPARATOR+set}" != set; then
23904 echo "#! /bin/sh" >conf$$.sh
23905 echo "exit 0" >>conf$$.sh
23906 chmod +x conf$$.sh
23907 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23908 PATH_SEPARATOR=';'
23909 else
23910 PATH_SEPARATOR=:
23912 rm -f conf$$.sh
23915 # Support unset when possible.
23916 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23917 as_unset=unset
23918 else
23919 as_unset=false
23923 # IFS
23924 # We need space, tab and new line, in precisely that order. Quoting is
23925 # there to prevent editors from complaining about space-tab.
23926 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23927 # splitting by setting IFS to empty value.)
23928 as_nl='
23930 IFS=" "" $as_nl"
23932 # Find who we are. Look in the path if we contain no directory separator.
23933 case $0 in
23934 *[\\/]* ) as_myself=$0 ;;
23935 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23936 for as_dir in $PATH
23938 IFS=$as_save_IFS
23939 test -z "$as_dir" && as_dir=.
23940 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23941 done
23942 IFS=$as_save_IFS
23945 esac
23946 # We did not find ourselves, most probably we were run as `sh COMMAND'
23947 # in which case we are not to be found in the path.
23948 if test "x$as_myself" = x; then
23949 as_myself=$0
23951 if test ! -f "$as_myself"; then
23952 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23953 { (exit 1); exit 1; }
23956 # Work around bugs in pre-3.0 UWIN ksh.
23957 for as_var in ENV MAIL MAILPATH
23958 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23959 done
23960 PS1='$ '
23961 PS2='> '
23962 PS4='+ '
23964 # NLS nuisances.
23965 for as_var in \
23966 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23967 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23968 LC_TELEPHONE LC_TIME
23970 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23971 eval $as_var=C; export $as_var
23972 else
23973 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23975 done
23977 # Required to use basename.
23978 if expr a : '\(a\)' >/dev/null 2>&1 &&
23979 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23980 as_expr=expr
23981 else
23982 as_expr=false
23985 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23986 as_basename=basename
23987 else
23988 as_basename=false
23992 # Name of the executable.
23993 as_me=`$as_basename -- "$0" ||
23994 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23995 X"$0" : 'X\(//\)$' \| \
23996 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23997 echo X/"$0" |
23998 sed '/^.*\/\([^/][^/]*\)\/*$/{
23999 s//\1/
24002 /^X\/\(\/\/\)$/{
24003 s//\1/
24006 /^X\/\(\/\).*/{
24007 s//\1/
24010 s/.*/./; q'`
24012 # CDPATH.
24013 $as_unset CDPATH
24017 as_lineno_1=$LINENO
24018 as_lineno_2=$LINENO
24019 test "x$as_lineno_1" != "x$as_lineno_2" &&
24020 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24022 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24023 # uniformly replaced by the line number. The first 'sed' inserts a
24024 # line-number line after each line using $LINENO; the second 'sed'
24025 # does the real work. The second script uses 'N' to pair each
24026 # line-number line with the line containing $LINENO, and appends
24027 # trailing '-' during substitution so that $LINENO is not a special
24028 # case at line end.
24029 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24030 # scripts with optimization help from Paolo Bonzini. Blame Lee
24031 # E. McMahon (1931-1989) for sed's syntax. :-)
24032 sed -n '
24034 /[$]LINENO/=
24035 ' <$as_myself |
24036 sed '
24037 s/[$]LINENO.*/&-/
24038 t lineno
24040 :lineno
24042 :loop
24043 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24044 t loop
24045 s/-\n.*//
24046 ' >$as_me.lineno &&
24047 chmod +x "$as_me.lineno" ||
24048 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24049 { (exit 1); exit 1; }; }
24051 # Don't try to exec as it changes $[0], causing all sort of problems
24052 # (the dirname of $[0] is not the place where we might find the
24053 # original and so on. Autoconf is especially sensitive to this).
24054 . "./$as_me.lineno"
24055 # Exit status is that of the last command.
24056 exit
24060 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24061 as_dirname=dirname
24062 else
24063 as_dirname=false
24066 ECHO_C= ECHO_N= ECHO_T=
24067 case `echo -n x` in
24068 -n*)
24069 case `echo 'x\c'` in
24070 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24071 *) ECHO_C='\c';;
24072 esac;;
24074 ECHO_N='-n';;
24075 esac
24077 if expr a : '\(a\)' >/dev/null 2>&1 &&
24078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24079 as_expr=expr
24080 else
24081 as_expr=false
24084 rm -f conf$$ conf$$.exe conf$$.file
24085 if test -d conf$$.dir; then
24086 rm -f conf$$.dir/conf$$.file
24087 else
24088 rm -f conf$$.dir
24089 mkdir conf$$.dir
24091 echo >conf$$.file
24092 if ln -s conf$$.file conf$$ 2>/dev/null; then
24093 as_ln_s='ln -s'
24094 # ... but there are two gotchas:
24095 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24096 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24097 # In both cases, we have to default to `cp -p'.
24098 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24099 as_ln_s='cp -p'
24100 elif ln conf$$.file conf$$ 2>/dev/null; then
24101 as_ln_s=ln
24102 else
24103 as_ln_s='cp -p'
24105 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24106 rmdir conf$$.dir 2>/dev/null
24108 if mkdir -p . 2>/dev/null; then
24109 as_mkdir_p=:
24110 else
24111 test -d ./-p && rmdir ./-p
24112 as_mkdir_p=false
24115 if test -x / >/dev/null 2>&1; then
24116 as_test_x='test -x'
24117 else
24118 if ls -dL / >/dev/null 2>&1; then
24119 as_ls_L_option=L
24120 else
24121 as_ls_L_option=
24123 as_test_x='
24124 eval sh -c '\''
24125 if test -d "$1"; then
24126 test -d "$1/.";
24127 else
24128 case $1 in
24129 -*)set "./$1";;
24130 esac;
24131 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24132 ???[sx]*):;;*)false;;esac;fi
24133 '\'' sh
24136 as_executable_p=$as_test_x
24138 # Sed expression to map a string onto a valid CPP name.
24139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24141 # Sed expression to map a string onto a valid variable name.
24142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24145 exec 6>&1
24147 # Save the log message, to keep $[0] and so on meaningful, and to
24148 # report actual input values of CONFIG_FILES etc. instead of their
24149 # values after options handling.
24150 ac_log="
24151 This file was extended by ntfs-3g $as_me 2010.3.6, which was
24152 generated by GNU Autoconf 2.61. Invocation command line was
24154 CONFIG_FILES = $CONFIG_FILES
24155 CONFIG_HEADERS = $CONFIG_HEADERS
24156 CONFIG_LINKS = $CONFIG_LINKS
24157 CONFIG_COMMANDS = $CONFIG_COMMANDS
24158 $ $0 $@
24160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24163 _ACEOF
24165 cat >>$CONFIG_STATUS <<_ACEOF
24166 # Files that config.status was made for.
24167 config_files="$ac_config_files"
24168 config_headers="$ac_config_headers"
24169 config_commands="$ac_config_commands"
24171 _ACEOF
24173 cat >>$CONFIG_STATUS <<\_ACEOF
24174 ac_cs_usage="\
24175 \`$as_me' instantiates files from templates according to the
24176 current configuration.
24178 Usage: $0 [OPTIONS] [FILE]...
24180 -h, --help print this help, then exit
24181 -V, --version print version number and configuration settings, then exit
24182 -q, --quiet do not print progress messages
24183 -d, --debug don't remove temporary files
24184 --recheck update $as_me by reconfiguring in the same conditions
24185 --file=FILE[:TEMPLATE]
24186 instantiate the configuration file FILE
24187 --header=FILE[:TEMPLATE]
24188 instantiate the configuration header FILE
24190 Configuration files:
24191 $config_files
24193 Configuration headers:
24194 $config_headers
24196 Configuration commands:
24197 $config_commands
24199 Report bugs to <bug-autoconf@gnu.org>."
24201 _ACEOF
24202 cat >>$CONFIG_STATUS <<_ACEOF
24203 ac_cs_version="\\
24204 ntfs-3g config.status 2010.3.6
24205 configured by $0, generated by GNU Autoconf 2.61,
24206 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24208 Copyright (C) 2006 Free Software Foundation, Inc.
24209 This config.status script is free software; the Free Software Foundation
24210 gives unlimited permission to copy, distribute and modify it."
24212 ac_pwd='$ac_pwd'
24213 srcdir='$srcdir'
24214 INSTALL='$INSTALL'
24215 MKDIR_P='$MKDIR_P'
24216 _ACEOF
24218 cat >>$CONFIG_STATUS <<\_ACEOF
24219 # If no file are specified by the user, then we need to provide default
24220 # value. By we need to know if files were specified by the user.
24221 ac_need_defaults=:
24222 while test $# != 0
24224 case $1 in
24225 --*=*)
24226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24228 ac_shift=:
24231 ac_option=$1
24232 ac_optarg=$2
24233 ac_shift=shift
24235 esac
24237 case $ac_option in
24238 # Handling of the options.
24239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24240 ac_cs_recheck=: ;;
24241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24242 echo "$ac_cs_version"; exit ;;
24243 --debug | --debu | --deb | --de | --d | -d )
24244 debug=: ;;
24245 --file | --fil | --fi | --f )
24246 $ac_shift
24247 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24248 ac_need_defaults=false;;
24249 --header | --heade | --head | --hea )
24250 $ac_shift
24251 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24252 ac_need_defaults=false;;
24253 --he | --h)
24254 # Conflict between --help and --header
24255 { echo "$as_me: error: ambiguous option: $1
24256 Try \`$0 --help' for more information." >&2
24257 { (exit 1); exit 1; }; };;
24258 --help | --hel | -h )
24259 echo "$ac_cs_usage"; exit ;;
24260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24262 ac_cs_silent=: ;;
24264 # This is an error.
24265 -*) { echo "$as_me: error: unrecognized option: $1
24266 Try \`$0 --help' for more information." >&2
24267 { (exit 1); exit 1; }; } ;;
24269 *) ac_config_targets="$ac_config_targets $1"
24270 ac_need_defaults=false ;;
24272 esac
24273 shift
24274 done
24276 ac_configure_extra_args=
24278 if $ac_cs_silent; then
24279 exec 6>/dev/null
24280 ac_configure_extra_args="$ac_configure_extra_args --silent"
24283 _ACEOF
24284 cat >>$CONFIG_STATUS <<_ACEOF
24285 if \$ac_cs_recheck; then
24286 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24287 CONFIG_SHELL=$SHELL
24288 export CONFIG_SHELL
24289 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24292 _ACEOF
24293 cat >>$CONFIG_STATUS <<\_ACEOF
24294 exec 5>>config.log
24296 echo
24297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24298 ## Running $as_me. ##
24299 _ASBOX
24300 echo "$ac_log"
24301 } >&5
24303 _ACEOF
24304 cat >>$CONFIG_STATUS <<_ACEOF
24306 # INIT-COMMANDS
24308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24310 _ACEOF
24312 cat >>$CONFIG_STATUS <<\_ACEOF
24314 # Handling of arguments.
24315 for ac_config_target in $ac_config_targets
24317 case $ac_config_target in
24318 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24319 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24321 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24322 "include/fuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES include/fuse-lite/Makefile" ;;
24323 "include/ntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES include/ntfs-3g/Makefile" ;;
24324 "libfuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES libfuse-lite/Makefile" ;;
24325 "libntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES libntfs-3g/Makefile" ;;
24326 "libntfs-3g/libntfs-3g.pc") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.pc" ;;
24327 "libntfs-3g/libntfs-3g.script.so") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.script.so" ;;
24328 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24329 "src/ntfs-3g.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.8" ;;
24330 "src/ntfs-3g.probe.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.probe.8" ;;
24331 "src/ntfs-3g.usermap.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.usermap.8" ;;
24332 "src/ntfs-3g.secaudit.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.secaudit.8" ;;
24334 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24335 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24336 { (exit 1); exit 1; }; };;
24337 esac
24338 done
24341 # If the user did not use the arguments to specify the items to instantiate,
24342 # then the envvar interface is used. Set only those that are not.
24343 # We use the long form for the default assignment because of an extremely
24344 # bizarre bug on SunOS 4.1.3.
24345 if $ac_need_defaults; then
24346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24348 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24351 # Have a temporary directory for convenience. Make it in the build tree
24352 # simply because there is no reason against having it here, and in addition,
24353 # creating and moving files from /tmp can sometimes cause problems.
24354 # Hook for its removal unless debugging.
24355 # Note that there is a small window in which the directory will not be cleaned:
24356 # after its creation but before its name has been assigned to `$tmp'.
24357 $debug ||
24359 tmp=
24360 trap 'exit_status=$?
24361 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24363 trap '{ (exit 1); exit 1; }' 1 2 13 15
24365 # Create a (secure) tmp directory for tmp files.
24368 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24369 test -n "$tmp" && test -d "$tmp"
24370 } ||
24372 tmp=./conf$$-$RANDOM
24373 (umask 077 && mkdir "$tmp")
24374 } ||
24376 echo "$me: cannot create a temporary directory in ." >&2
24377 { (exit 1); exit 1; }
24381 # Set up the sed scripts for CONFIG_FILES section.
24384 # No need to generate the scripts if there are no CONFIG_FILES.
24385 # This happens for instance when ./config.status config.h
24386 if test -n "$CONFIG_FILES"; then
24388 _ACEOF
24392 ac_delim='%!_!# '
24393 for ac_last_try in false false false false false :; do
24394 cat >conf$$subs.sed <<_ACEOF
24395 SHELL!$SHELL$ac_delim
24396 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24397 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24398 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24399 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24400 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24401 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24402 exec_prefix!$exec_prefix$ac_delim
24403 prefix!$prefix$ac_delim
24404 program_transform_name!$program_transform_name$ac_delim
24405 bindir!$bindir$ac_delim
24406 sbindir!$sbindir$ac_delim
24407 libexecdir!$libexecdir$ac_delim
24408 datarootdir!$datarootdir$ac_delim
24409 datadir!$datadir$ac_delim
24410 sysconfdir!$sysconfdir$ac_delim
24411 sharedstatedir!$sharedstatedir$ac_delim
24412 localstatedir!$localstatedir$ac_delim
24413 includedir!$includedir$ac_delim
24414 oldincludedir!$oldincludedir$ac_delim
24415 docdir!$docdir$ac_delim
24416 infodir!$infodir$ac_delim
24417 htmldir!$htmldir$ac_delim
24418 dvidir!$dvidir$ac_delim
24419 pdfdir!$pdfdir$ac_delim
24420 psdir!$psdir$ac_delim
24421 libdir!$libdir$ac_delim
24422 localedir!$localedir$ac_delim
24423 mandir!$mandir$ac_delim
24424 DEFS!$DEFS$ac_delim
24425 ECHO_C!$ECHO_C$ac_delim
24426 ECHO_N!$ECHO_N$ac_delim
24427 ECHO_T!$ECHO_T$ac_delim
24428 LIBS!$LIBS$ac_delim
24429 build_alias!$build_alias$ac_delim
24430 host_alias!$host_alias$ac_delim
24431 target_alias!$target_alias$ac_delim
24432 build!$build$ac_delim
24433 build_cpu!$build_cpu$ac_delim
24434 build_vendor!$build_vendor$ac_delim
24435 build_os!$build_os$ac_delim
24436 host!$host$ac_delim
24437 host_cpu!$host_cpu$ac_delim
24438 host_vendor!$host_vendor$ac_delim
24439 host_os!$host_os$ac_delim
24440 target!$target$ac_delim
24441 target_cpu!$target_cpu$ac_delim
24442 target_vendor!$target_vendor$ac_delim
24443 target_os!$target_os$ac_delim
24444 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24445 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24446 INSTALL_DATA!$INSTALL_DATA$ac_delim
24447 am__isrc!$am__isrc$ac_delim
24448 CYGPATH_W!$CYGPATH_W$ac_delim
24449 PACKAGE!$PACKAGE$ac_delim
24450 VERSION!$VERSION$ac_delim
24451 ACLOCAL!$ACLOCAL$ac_delim
24452 AUTOCONF!$AUTOCONF$ac_delim
24453 AUTOMAKE!$AUTOMAKE$ac_delim
24454 AUTOHEADER!$AUTOHEADER$ac_delim
24455 MAKEINFO!$MAKEINFO$ac_delim
24456 install_sh!$install_sh$ac_delim
24457 STRIP!$STRIP$ac_delim
24458 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24459 mkdir_p!$mkdir_p$ac_delim
24460 AWK!$AWK$ac_delim
24461 SET_MAKE!$SET_MAKE$ac_delim
24462 am__leading_dot!$am__leading_dot$ac_delim
24463 AMTAR!$AMTAR$ac_delim
24464 am__tar!$am__tar$ac_delim
24465 am__untar!$am__untar$ac_delim
24466 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24467 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24468 MAINT!$MAINT$ac_delim
24469 CC!$CC$ac_delim
24470 CFLAGS!$CFLAGS$ac_delim
24471 LDFLAGS!$LDFLAGS$ac_delim
24472 CPPFLAGS!$CPPFLAGS$ac_delim
24473 ac_ct_CC!$ac_ct_CC$ac_delim
24474 EXEEXT!$EXEEXT$ac_delim
24475 OBJEXT!$OBJEXT$ac_delim
24476 DEPDIR!$DEPDIR$ac_delim
24477 am__include!$am__include$ac_delim
24478 am__quote!$am__quote$ac_delim
24479 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24480 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24481 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24482 CCDEPMODE!$CCDEPMODE$ac_delim
24483 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24484 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24485 LN_S!$LN_S$ac_delim
24486 SED!$SED$ac_delim
24487 GREP!$GREP$ac_delim
24488 EGREP!$EGREP$ac_delim
24489 ECHO!$ECHO$ac_delim
24490 AR!$AR$ac_delim
24491 RANLIB!$RANLIB$ac_delim
24492 _ACEOF
24494 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24495 break
24496 elif $ac_last_try; then
24497 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24498 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24499 { (exit 1); exit 1; }; }
24500 else
24501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24503 done
24505 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24506 if test -n "$ac_eof"; then
24507 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24508 ac_eof=`expr $ac_eof + 1`
24511 cat >>$CONFIG_STATUS <<_ACEOF
24512 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24514 _ACEOF
24515 sed '
24516 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24517 s/^/s,@/; s/!/@,|#_!!_#|/
24520 s/'"$ac_delim"'$/,g/; t
24521 s/$/\\/; p
24522 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24523 ' >>$CONFIG_STATUS <conf$$subs.sed
24524 rm -f conf$$subs.sed
24525 cat >>$CONFIG_STATUS <<_ACEOF
24526 CEOF$ac_eof
24527 _ACEOF
24530 ac_delim='%!_!# '
24531 for ac_last_try in false false false false false :; do
24532 cat >conf$$subs.sed <<_ACEOF
24533 DSYMUTIL!$DSYMUTIL$ac_delim
24534 NMEDIT!$NMEDIT$ac_delim
24535 CPP!$CPP$ac_delim
24536 CXX!$CXX$ac_delim
24537 CXXFLAGS!$CXXFLAGS$ac_delim
24538 ac_ct_CXX!$ac_ct_CXX$ac_delim
24539 CXXDEPMODE!$CXXDEPMODE$ac_delim
24540 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24541 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24542 CXXCPP!$CXXCPP$ac_delim
24543 F77!$F77$ac_delim
24544 FFLAGS!$FFLAGS$ac_delim
24545 ac_ct_F77!$ac_ct_F77$ac_delim
24546 LIBTOOL!$LIBTOOL$ac_delim
24547 MV!$MV$ac_delim
24548 RM!$RM$ac_delim
24549 LDCONFIG!$LDCONFIG$ac_delim
24550 PKG_CONFIG!$PKG_CONFIG$ac_delim
24551 FUSE_MODULE_CFLAGS!$FUSE_MODULE_CFLAGS$ac_delim
24552 FUSE_MODULE_LIBS!$FUSE_MODULE_LIBS$ac_delim
24553 LIBOBJS!$LIBOBJS$ac_delim
24554 pkgconfigdir!$pkgconfigdir$ac_delim
24555 ntfs3gincludedir!$ntfs3gincludedir$ac_delim
24556 rootbindir!$rootbindir$ac_delim
24557 rootsbindir!$rootsbindir$ac_delim
24558 rootlibdir!$rootlibdir$ac_delim
24559 LIBNTFS_3G_VERSION!$LIBNTFS_3G_VERSION$ac_delim
24560 LIBFUSE_LITE_LIBS!$LIBFUSE_LITE_LIBS$ac_delim
24561 OUTPUT_FORMAT!$OUTPUT_FORMAT$ac_delim
24562 FUSE_INTERNAL_TRUE!$FUSE_INTERNAL_TRUE$ac_delim
24563 FUSE_INTERNAL_FALSE!$FUSE_INTERNAL_FALSE$ac_delim
24564 GENERATE_LDSCRIPT_TRUE!$GENERATE_LDSCRIPT_TRUE$ac_delim
24565 GENERATE_LDSCRIPT_FALSE!$GENERATE_LDSCRIPT_FALSE$ac_delim
24566 WINDOWS_TRUE!$WINDOWS_TRUE$ac_delim
24567 WINDOWS_FALSE!$WINDOWS_FALSE$ac_delim
24568 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE!$NTFS_DEVICE_DEFAULT_IO_OPS_TRUE$ac_delim
24569 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE!$NTFS_DEVICE_DEFAULT_IO_OPS_FALSE$ac_delim
24570 RUN_LDCONFIG_TRUE!$RUN_LDCONFIG_TRUE$ac_delim
24571 RUN_LDCONFIG_FALSE!$RUN_LDCONFIG_FALSE$ac_delim
24572 REALLYSTATIC_TRUE!$REALLYSTATIC_TRUE$ac_delim
24573 REALLYSTATIC_FALSE!$REALLYSTATIC_FALSE$ac_delim
24574 INSTALL_LIBRARY_TRUE!$INSTALL_LIBRARY_TRUE$ac_delim
24575 INSTALL_LIBRARY_FALSE!$INSTALL_LIBRARY_FALSE$ac_delim
24576 ENABLE_MOUNT_HELPER_TRUE!$ENABLE_MOUNT_HELPER_TRUE$ac_delim
24577 ENABLE_MOUNT_HELPER_FALSE!$ENABLE_MOUNT_HELPER_FALSE$ac_delim
24578 MKDIR_P!$MKDIR_P$ac_delim
24579 LTLIBOBJS!$LTLIBOBJS$ac_delim
24580 _ACEOF
24582 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
24583 break
24584 elif $ac_last_try; then
24585 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24587 { (exit 1); exit 1; }; }
24588 else
24589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24591 done
24593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24594 if test -n "$ac_eof"; then
24595 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24596 ac_eof=`expr $ac_eof + 1`
24599 cat >>$CONFIG_STATUS <<_ACEOF
24600 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24602 _ACEOF
24603 sed '
24604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24605 s/^/s,@/; s/!/@,|#_!!_#|/
24608 s/'"$ac_delim"'$/,g/; t
24609 s/$/\\/; p
24610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24611 ' >>$CONFIG_STATUS <conf$$subs.sed
24612 rm -f conf$$subs.sed
24613 cat >>$CONFIG_STATUS <<_ACEOF
24614 :end
24615 s/|#_!!_#|//g
24616 CEOF$ac_eof
24617 _ACEOF
24620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24622 # trailing colons and then remove the whole line if VPATH becomes empty
24623 # (actually we leave an empty line to preserve line numbers).
24624 if test "x$srcdir" = x.; then
24625 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24626 s/:*\$(srcdir):*/:/
24627 s/:*\${srcdir}:*/:/
24628 s/:*@srcdir@:*/:/
24629 s/^\([^=]*=[ ]*\):*/\1/
24630 s/:*$//
24631 s/^[^=]*=[ ]*$//
24635 cat >>$CONFIG_STATUS <<\_ACEOF
24636 fi # test -n "$CONFIG_FILES"
24639 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24641 case $ac_tag in
24642 :[FHLC]) ac_mode=$ac_tag; continue;;
24643 esac
24644 case $ac_mode$ac_tag in
24645 :[FHL]*:*);;
24646 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24647 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24648 { (exit 1); exit 1; }; };;
24649 :[FH]-) ac_tag=-:-;;
24650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24651 esac
24652 ac_save_IFS=$IFS
24653 IFS=:
24654 set x $ac_tag
24655 IFS=$ac_save_IFS
24656 shift
24657 ac_file=$1
24658 shift
24660 case $ac_mode in
24661 :L) ac_source=$1;;
24662 :[FH])
24663 ac_file_inputs=
24664 for ac_f
24666 case $ac_f in
24667 -) ac_f="$tmp/stdin";;
24668 *) # Look for the file first in the build tree, then in the source tree
24669 # (if the path is not absolute). The absolute path cannot be DOS-style,
24670 # because $ac_f cannot contain `:'.
24671 test -f "$ac_f" ||
24672 case $ac_f in
24673 [\\/$]*) false;;
24674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24675 esac ||
24676 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24677 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24678 { (exit 1); exit 1; }; };;
24679 esac
24680 ac_file_inputs="$ac_file_inputs $ac_f"
24681 done
24683 # Let's still pretend it is `configure' which instantiates (i.e., don't
24684 # use $as_me), people would be surprised to read:
24685 # /* config.h. Generated by config.status. */
24686 configure_input="Generated from "`IFS=:
24687 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24688 if test x"$ac_file" != x-; then
24689 configure_input="$ac_file. $configure_input"
24690 { echo "$as_me:$LINENO: creating $ac_file" >&5
24691 echo "$as_me: creating $ac_file" >&6;}
24694 case $ac_tag in
24695 *:-:* | *:-) cat >"$tmp/stdin";;
24696 esac
24698 esac
24700 ac_dir=`$as_dirname -- "$ac_file" ||
24701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24702 X"$ac_file" : 'X\(//\)[^/]' \| \
24703 X"$ac_file" : 'X\(//\)$' \| \
24704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24705 echo X"$ac_file" |
24706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24707 s//\1/
24710 /^X\(\/\/\)[^/].*/{
24711 s//\1/
24714 /^X\(\/\/\)$/{
24715 s//\1/
24718 /^X\(\/\).*/{
24719 s//\1/
24722 s/.*/./; q'`
24723 { as_dir="$ac_dir"
24724 case $as_dir in #(
24725 -*) as_dir=./$as_dir;;
24726 esac
24727 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24728 as_dirs=
24729 while :; do
24730 case $as_dir in #(
24731 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24732 *) as_qdir=$as_dir;;
24733 esac
24734 as_dirs="'$as_qdir' $as_dirs"
24735 as_dir=`$as_dirname -- "$as_dir" ||
24736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24737 X"$as_dir" : 'X\(//\)[^/]' \| \
24738 X"$as_dir" : 'X\(//\)$' \| \
24739 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24740 echo X"$as_dir" |
24741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24742 s//\1/
24745 /^X\(\/\/\)[^/].*/{
24746 s//\1/
24749 /^X\(\/\/\)$/{
24750 s//\1/
24753 /^X\(\/\).*/{
24754 s//\1/
24757 s/.*/./; q'`
24758 test -d "$as_dir" && break
24759 done
24760 test -z "$as_dirs" || eval "mkdir $as_dirs"
24761 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24762 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24763 { (exit 1); exit 1; }; }; }
24764 ac_builddir=.
24766 case "$ac_dir" in
24767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24770 # A ".." for each directory in $ac_dir_suffix.
24771 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24772 case $ac_top_builddir_sub in
24773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24775 esac ;;
24776 esac
24777 ac_abs_top_builddir=$ac_pwd
24778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24779 # for backward compatibility:
24780 ac_top_builddir=$ac_top_build_prefix
24782 case $srcdir in
24783 .) # We are building in place.
24784 ac_srcdir=.
24785 ac_top_srcdir=$ac_top_builddir_sub
24786 ac_abs_top_srcdir=$ac_pwd ;;
24787 [\\/]* | ?:[\\/]* ) # Absolute name.
24788 ac_srcdir=$srcdir$ac_dir_suffix;
24789 ac_top_srcdir=$srcdir
24790 ac_abs_top_srcdir=$srcdir ;;
24791 *) # Relative name.
24792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24793 ac_top_srcdir=$ac_top_build_prefix$srcdir
24794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24795 esac
24796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24799 case $ac_mode in
24802 # CONFIG_FILE
24805 case $INSTALL in
24806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24807 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24808 esac
24809 ac_MKDIR_P=$MKDIR_P
24810 case $MKDIR_P in
24811 [\\/$]* | ?:[\\/]* ) ;;
24812 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24813 esac
24814 _ACEOF
24816 cat >>$CONFIG_STATUS <<\_ACEOF
24817 # If the template does not know about datarootdir, expand it.
24818 # FIXME: This hack should be removed a few years after 2.60.
24819 ac_datarootdir_hack=; ac_datarootdir_seen=
24821 case `sed -n '/datarootdir/ {
24825 /@datadir@/p
24826 /@docdir@/p
24827 /@infodir@/p
24828 /@localedir@/p
24829 /@mandir@/p
24830 ' $ac_file_inputs` in
24831 *datarootdir*) ac_datarootdir_seen=yes;;
24832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24833 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24834 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24835 _ACEOF
24836 cat >>$CONFIG_STATUS <<_ACEOF
24837 ac_datarootdir_hack='
24838 s&@datadir@&$datadir&g
24839 s&@docdir@&$docdir&g
24840 s&@infodir@&$infodir&g
24841 s&@localedir@&$localedir&g
24842 s&@mandir@&$mandir&g
24843 s&\\\${datarootdir}&$datarootdir&g' ;;
24844 esac
24845 _ACEOF
24847 # Neutralize VPATH when `$srcdir' = `.'.
24848 # Shell code in configure.ac might set extrasub.
24849 # FIXME: do we really want to maintain this feature?
24850 cat >>$CONFIG_STATUS <<_ACEOF
24851 sed "$ac_vpsub
24852 $extrasub
24853 _ACEOF
24854 cat >>$CONFIG_STATUS <<\_ACEOF
24856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24857 s&@configure_input@&$configure_input&;t t
24858 s&@top_builddir@&$ac_top_builddir_sub&;t t
24859 s&@srcdir@&$ac_srcdir&;t t
24860 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24861 s&@top_srcdir@&$ac_top_srcdir&;t t
24862 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24863 s&@builddir@&$ac_builddir&;t t
24864 s&@abs_builddir@&$ac_abs_builddir&;t t
24865 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24866 s&@INSTALL@&$ac_INSTALL&;t t
24867 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24868 $ac_datarootdir_hack
24869 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24872 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24874 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24875 which seems to be undefined. Please make sure it is defined." >&5
24876 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24877 which seems to be undefined. Please make sure it is defined." >&2;}
24879 rm -f "$tmp/stdin"
24880 case $ac_file in
24881 -) cat "$tmp/out"; rm -f "$tmp/out";;
24882 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24883 esac
24887 # CONFIG_HEADER
24889 _ACEOF
24891 # Transform confdefs.h into a sed script `conftest.defines', that
24892 # substitutes the proper values into config.h.in to produce config.h.
24893 rm -f conftest.defines conftest.tail
24894 # First, append a space to every undef/define line, to ease matching.
24895 echo 's/$/ /' >conftest.defines
24896 # Then, protect against being on the right side of a sed subst, or in
24897 # an unquoted here document, in config.status. If some macros were
24898 # called several times there might be several #defines for the same
24899 # symbol, which is useless. But do not sort them, since the last
24900 # AC_DEFINE must be honored.
24901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24902 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24903 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24904 # PARAMS is the parameter list in the macro definition--in most cases, it's
24905 # just an empty string.
24906 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24907 ac_dB='\\)[ (].*,\\1define\\2'
24908 ac_dC=' '
24909 ac_dD=' ,'
24911 uniq confdefs.h |
24912 sed -n '
24913 t rset
24914 :rset
24915 s/^[ ]*#[ ]*define[ ][ ]*//
24916 t ok
24919 s/[\\&,]/\\&/g
24920 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24921 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24922 ' >>conftest.defines
24924 # Remove the space that was appended to ease matching.
24925 # Then replace #undef with comments. This is necessary, for
24926 # example, in the case of _POSIX_SOURCE, which is predefined and required
24927 # on some systems where configure will not decide to define it.
24928 # (The regexp can be short, since the line contains either #define or #undef.)
24929 echo 's/ $//
24930 s,^[ #]*u.*,/* & */,' >>conftest.defines
24932 # Break up conftest.defines:
24933 ac_max_sed_lines=50
24935 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24936 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24937 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24938 # et cetera.
24939 ac_in='$ac_file_inputs'
24940 ac_out='"$tmp/out1"'
24941 ac_nxt='"$tmp/out2"'
24943 while :
24945 # Write a here document:
24946 cat >>$CONFIG_STATUS <<_ACEOF
24947 # First, check the format of the line:
24948 cat >"\$tmp/defines.sed" <<\\CEOF
24949 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24950 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24952 :def
24953 _ACEOF
24954 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24955 echo 'CEOF
24956 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24957 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24958 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24959 grep . conftest.tail >/dev/null || break
24960 rm -f conftest.defines
24961 mv conftest.tail conftest.defines
24962 done
24963 rm -f conftest.defines conftest.tail
24965 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24966 cat >>$CONFIG_STATUS <<\_ACEOF
24967 if test x"$ac_file" != x-; then
24968 echo "/* $configure_input */" >"$tmp/config.h"
24969 cat "$ac_result" >>"$tmp/config.h"
24970 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24971 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24972 echo "$as_me: $ac_file is unchanged" >&6;}
24973 else
24974 rm -f $ac_file
24975 mv "$tmp/config.h" $ac_file
24977 else
24978 echo "/* $configure_input */"
24979 cat "$ac_result"
24981 rm -f "$tmp/out12"
24982 # Compute $ac_file's index in $config_headers.
24983 _am_arg=$ac_file
24984 _am_stamp_count=1
24985 for _am_header in $config_headers :; do
24986 case $_am_header in
24987 $_am_arg | $_am_arg:* )
24988 break ;;
24990 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24991 esac
24992 done
24993 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24994 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24995 X"$_am_arg" : 'X\(//\)[^/]' \| \
24996 X"$_am_arg" : 'X\(//\)$' \| \
24997 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24998 echo X"$_am_arg" |
24999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25000 s//\1/
25003 /^X\(\/\/\)[^/].*/{
25004 s//\1/
25007 /^X\(\/\/\)$/{
25008 s//\1/
25011 /^X\(\/\).*/{
25012 s//\1/
25015 s/.*/./; q'`/stamp-h$_am_stamp_count
25018 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25019 echo "$as_me: executing $ac_file commands" >&6;}
25021 esac
25024 case $ac_file$ac_mode in
25025 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25026 # Strip MF so we end up with the name of the file.
25027 mf=`echo "$mf" | sed -e 's/:.*$//'`
25028 # Check whether this is an Automake generated Makefile or not.
25029 # We used to match only the files named `Makefile.in', but
25030 # some people rename them; so instead we look at the file content.
25031 # Grep'ing the first line is not enough: some people post-process
25032 # each Makefile.in and add a new line on top of each file to say so.
25033 # Grep'ing the whole file is not good either: AIX grep has a line
25034 # limit of 2048, but all sed's we know have understand at least 4000.
25035 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25036 dirpart=`$as_dirname -- "$mf" ||
25037 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25038 X"$mf" : 'X\(//\)[^/]' \| \
25039 X"$mf" : 'X\(//\)$' \| \
25040 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25041 echo X"$mf" |
25042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25043 s//\1/
25046 /^X\(\/\/\)[^/].*/{
25047 s//\1/
25050 /^X\(\/\/\)$/{
25051 s//\1/
25054 /^X\(\/\).*/{
25055 s//\1/
25058 s/.*/./; q'`
25059 else
25060 continue
25062 # Extract the definition of DEPDIR, am__include, and am__quote
25063 # from the Makefile without running `make'.
25064 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25065 test -z "$DEPDIR" && continue
25066 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25067 test -z "am__include" && continue
25068 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25069 # When using ansi2knr, U may be empty or an underscore; expand it
25070 U=`sed -n 's/^U = //p' < "$mf"`
25071 # Find all dependency output files, they are included files with
25072 # $(DEPDIR) in their names. We invoke sed twice because it is the
25073 # simplest approach to changing $(DEPDIR) to its actual value in the
25074 # expansion.
25075 for file in `sed -n "
25076 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25077 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25078 # Make sure the directory exists.
25079 test -f "$dirpart/$file" && continue
25080 fdir=`$as_dirname -- "$file" ||
25081 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25082 X"$file" : 'X\(//\)[^/]' \| \
25083 X"$file" : 'X\(//\)$' \| \
25084 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25085 echo X"$file" |
25086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25087 s//\1/
25090 /^X\(\/\/\)[^/].*/{
25091 s//\1/
25094 /^X\(\/\/\)$/{
25095 s//\1/
25098 /^X\(\/\).*/{
25099 s//\1/
25102 s/.*/./; q'`
25103 { as_dir=$dirpart/$fdir
25104 case $as_dir in #(
25105 -*) as_dir=./$as_dir;;
25106 esac
25107 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25108 as_dirs=
25109 while :; do
25110 case $as_dir in #(
25111 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25112 *) as_qdir=$as_dir;;
25113 esac
25114 as_dirs="'$as_qdir' $as_dirs"
25115 as_dir=`$as_dirname -- "$as_dir" ||
25116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25117 X"$as_dir" : 'X\(//\)[^/]' \| \
25118 X"$as_dir" : 'X\(//\)$' \| \
25119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25120 echo X"$as_dir" |
25121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25122 s//\1/
25125 /^X\(\/\/\)[^/].*/{
25126 s//\1/
25129 /^X\(\/\/\)$/{
25130 s//\1/
25133 /^X\(\/\).*/{
25134 s//\1/
25137 s/.*/./; q'`
25138 test -d "$as_dir" && break
25139 done
25140 test -z "$as_dirs" || eval "mkdir $as_dirs"
25141 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25142 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25143 { (exit 1); exit 1; }; }; }
25144 # echo "creating $dirpart/$file"
25145 echo '# dummy' > "$dirpart/$file"
25146 done
25147 done
25150 esac
25151 done # for ac_tag
25154 { (exit 0); exit 0; }
25155 _ACEOF
25156 chmod +x $CONFIG_STATUS
25157 ac_clean_files=$ac_clean_files_save
25160 # configure is writing to config.log, and then calls config.status.
25161 # config.status does its own redirection, appending to config.log.
25162 # Unfortunately, on DOS this fails, as config.log is still kept open
25163 # by configure, so config.status won't be able to write to it; its
25164 # output is simply discarded. So we exec the FD to /dev/null,
25165 # effectively closing config.log, so it can be properly (re)opened and
25166 # appended to by config.status. When coming back to configure, we
25167 # need to make the FD available again.
25168 if test "$no_create" != yes; then
25169 ac_cs_success=:
25170 ac_config_status_args=
25171 test "$silent" = yes &&
25172 ac_config_status_args="$ac_config_status_args --quiet"
25173 exec 5>/dev/null
25174 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25175 exec 5>>config.log
25176 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25177 # would make configure fail if this is the last instruction.
25178 $ac_cs_success || { (exit 1); exit 1; }
25182 if test "${with_fuse}" = "external"; then
25183 if ! echo "x$FUSE_LIB_PATH" | grep -- "x-L/lib" > /dev/null; then
25184 cat <<EOF
25185 ****************************************************************************
25186 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
25187 * The FUSE user space binaries were NOT installed with root directory *
25188 * executable prefix. This means that automounting NTFS volumes during boot *
25189 * could fail. This can be fixed the below way by reinstalling FUSE using *
25190 * the right 'configure' option during FUSE compilation: *
25191 * ./configure --exec-prefix=/ *
25192 * make && sudo make install *
25193 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
25194 ****************************************************************************
25199 echo "You can type now 'make' to build ntfs-3g."