fixes, fully translated tomato, with english dictionary and Polish translation
[tomato.git] / release / src / router / ntfs-3g / configure
blobfac3d4b0d2e26f02a9dfe6568bd1fc510b79cce4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for ntfs-3g 2011.4.12.
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='2011.4.12'
732 PACKAGE_STRING='ntfs-3g 2011.4.12'
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
884 PKG_CONFIG
887 LDCONFIG
888 FUSE_MODULE_CFLAGS
889 FUSE_MODULE_LIBS
890 LIBGCRYPT_CONFIG
891 LIBGCRYPT_CFLAGS
892 LIBGCRYPT_LIBS
893 GNUTLS_CFLAGS
894 GNUTLS_LIBS
895 ENABLE_CRYPTO_TRUE
896 ENABLE_CRYPTO_FALSE
897 all_includes
898 all_libraries
899 LIBOBJS
900 pkgconfigdir
901 ntfs3gincludedir
902 rootbindir
903 rootsbindir
904 rootlibdir
905 LIBNTFS_3G_VERSION
906 LIBFUSE_LITE_LIBS
907 MKNTFS_CPPFLAGS
908 MKNTFS_LIBS
909 OUTPUT_FORMAT
910 FUSE_INTERNAL_TRUE
911 FUSE_INTERNAL_FALSE
912 GENERATE_LDSCRIPT_TRUE
913 GENERATE_LDSCRIPT_FALSE
914 WINDOWS_TRUE
915 WINDOWS_FALSE
916 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE
917 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE
918 RUN_LDCONFIG_TRUE
919 RUN_LDCONFIG_FALSE
920 REALLYSTATIC_TRUE
921 REALLYSTATIC_FALSE
922 INSTALL_LIBRARY_TRUE
923 INSTALL_LIBRARY_FALSE
924 ENABLE_MOUNT_HELPER_TRUE
925 ENABLE_MOUNT_HELPER_FALSE
926 ENABLE_NTFSPROGS_TRUE
927 ENABLE_NTFSPROGS_FALSE
928 MKDIR_P
929 LTLIBOBJS'
930 ac_subst_files=''
931 ac_precious_vars='build_alias
932 host_alias
933 target_alias
935 CFLAGS
936 LDFLAGS
937 LIBS
938 CPPFLAGS
941 CXXFLAGS
943 CXXCPP
945 FFLAGS
946 PKG_CONFIG
947 LDCONFIG
948 FUSE_MODULE_CFLAGS
949 FUSE_MODULE_LIBS
950 GNUTLS_CFLAGS
951 GNUTLS_LIBS'
954 # Initialize some variables set by options.
955 ac_init_help=
956 ac_init_version=false
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1011 case $ac_option in
1012 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *) ac_optarg=yes ;;
1014 esac
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1020 ac_dashdash=yes ;;
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 ac_prev=bindir ;;
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1042 -datadir | --datadir | --datadi | --datad)
1043 ac_prev=datadir ;;
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1054 -disable-* | --disable-*)
1055 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1061 eval enable_$ac_feature=no ;;
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1073 -enable-* | --enable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080 eval enable_$ac_feature=\$ac_optarg ;;
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1270 -with-* | --with-*)
1271 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=\$ac_optarg ;;
1279 -without-* | --without-*)
1280 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1286 eval with_$ac_package=no ;;
1288 --x)
1289 # Obsolete; use --with-x.
1290 with_x=yes ;;
1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293 | --x-incl | --x-inc | --x-in | --x-i)
1294 ac_prev=x_includes ;;
1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297 x_includes=$ac_optarg ;;
1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301 ac_prev=x_libraries ;;
1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304 x_libraries=$ac_optarg ;;
1306 -*) { echo "$as_me: error: unrecognized option: $ac_option
1307 Try \`$0 --help' for more information." >&2
1308 { (exit 1); exit 1; }; }
1311 *=*)
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1315 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1316 { (exit 1); exit 1; }; }
1317 eval $ac_envvar=\$ac_optarg
1318 export $ac_envvar ;;
1321 # FIXME: should be removed in autoconf 3.0.
1322 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 esac
1329 done
1331 if test -n "$ac_prev"; then
1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333 { echo "$as_me: error: missing argument to $ac_option" >&2
1334 { (exit 1); exit 1; }; }
1337 # Be sure to have absolute directory names.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val=\$$ac_var
1344 case $ac_val in
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 esac
1348 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1349 { (exit 1); exit 1; }; }
1350 done
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1355 build=$build_alias
1356 host=$host_alias
1357 target=$target_alias
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
1363 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1364 If a cross compiler is detected then cross compile mode will be used." >&2
1365 elif test "x$build_alias" != "x$host_alias"; then
1366 cross_compiling=yes
1370 ac_tool_prefix=
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373 test "$silent" = yes && exec 6>/dev/null
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379 { echo "$as_me: error: Working directory cannot be determined" >&2
1380 { (exit 1); exit 1; }; }
1381 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382 { echo "$as_me: error: pwd does not report name of working directory" >&2
1383 { (exit 1); exit 1; }; }
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$0" ||
1391 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$0" : 'X\(//\)[^/]' \| \
1393 X"$0" : 'X\(//\)$' \| \
1394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1395 echo X"$0" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1404 /^X\(\/\/\)$/{
1405 s//\1/
1408 /^X\(\/\).*/{
1409 s//\1/
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1417 else
1418 ac_srcdir_defaulted=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1423 { (exit 1); exit 1; }; }
1425 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 ac_abs_confdir=`(
1427 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1428 { (exit 1); exit 1; }; }
1429 pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1448 # Report the --help message.
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
1454 \`configure' configures ntfs-3g 2011.4.12 to adapt to many kinds of systems.
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1461 Defaults for the options are specified in brackets.
1463 Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 [PREFIX]
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1485 For better control, use the options below.
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/ntfs-3g]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507 _ACEOF
1509 cat <<\_ACEOF
1511 Program names:
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1520 _ACEOF
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of ntfs-3g 2011.4.12:";;
1526 esac
1527 cat <<\_ACEOF
1529 Optional Features:
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-maintainer-mode enable make rules and dependencies not useful
1533 (and sometimes confusing) to the casual installer
1534 --enable-debug enable debugging code and output
1535 --enable-warnings enable lots of compiler warnings
1536 --enable-pedantic enable compile pedantic mode
1537 --enable-really-static create fully static binaries
1538 --enable-mount-helper install mount helper [default=enabled for linux]
1539 --enable-ldscript use ldscript instead of .so symlink
1540 --disable-ldconfig do not update dynamic linker cache using ldconfig
1541 --disable-library do not install libntfs-3g but link it into ntfs-3g
1542 --disable-mtab disable and ignore usage of /etc/mtab
1543 --enable-posix-acls enable POSIX ACL support
1544 --enable-xattr-mappings enable system extended attributes mappings
1545 --disable-device-default-io-ops
1546 install default IO ops
1547 --disable-ntfsprogs disable ntfsprogs utilities (default=no)
1548 --enable-crypto enable crypto related code and utilities
1549 (default=no)
1550 --disable-nfconv disable the 'nfconv' patch, which adds support for
1551 Unicode normalization form conversion when built on
1552 Mac OS X [default=enabled for Mac OS X]
1553 --disable-dependency-tracking speeds up one-time build
1554 --enable-dependency-tracking do not reject slow dependency extractors
1555 --enable-shared[=PKGS] build shared libraries [default=yes]
1556 --enable-static[=PKGS] build static libraries [default=yes]
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation [default=yes]
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --disable-largefile omit support for large files
1562 Optional Packages:
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566 --with-pic try to use only PIC/non-PIC objects [default=use
1567 both]
1568 --with-tags[=TAGS] include additional configurations [automatic]
1569 --with-fuse=<internal|external>
1570 Select FUSE library: internal or external
1571 [default=internal]
1572 --with-libgcrypt-prefix=PFX
1573 prefix where LIBGCRYPT is installed (optional)
1575 --with-uuid[=PFX] generate DCE compliant UUIDs, with optional prefix
1576 to uuid library and headers [default=detect]
1577 --without-uuid do not generate DCE compliant UUIDs
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1587 CPP C preprocessor
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 CXXCPP C++ preprocessor
1591 F77 Fortran 77 compiler command
1592 FFLAGS Fortran 77 compiler flags
1593 PKG_CONFIG path to pkg-config utility
1594 LDCONFIG ldconfig utility
1595 FUSE_MODULE_CFLAGS
1596 C compiler flags for FUSE_MODULE, overriding pkg-config
1597 FUSE_MODULE_LIBS
1598 linker flags for FUSE_MODULE, overriding pkg-config
1599 GNUTLS_CFLAGS
1600 C compiler flags for GNUTLS, overriding pkg-config
1601 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1606 Report bugs to <ntfs-3g-devel@lists.sf.net>.
1607 _ACEOF
1608 ac_status=$?
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" || continue
1615 ac_builddir=.
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1633 case $srcdir in
1634 .) # We are building in place.
1635 ac_srcdir=.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1657 else
1658 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
1661 done
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1666 cat <<\_ACEOF
1667 ntfs-3g configure 2011.4.12
1668 generated by GNU Autoconf 2.61
1670 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1671 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1677 cat >config.log <<_ACEOF
1678 This file contains any messages produced by compilers while
1679 running configure, to aid debugging if configure makes a mistake.
1681 It was created by ntfs-3g $as_me 2011.4.12, which was
1682 generated by GNU Autoconf 2.61. Invocation command line was
1684 $ $0 $@
1686 _ACEOF
1687 exec 5>>config.log
1689 cat <<_ASUNAME
1690 ## --------- ##
1691 ## Platform. ##
1692 ## --------- ##
1694 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1695 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1696 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1697 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1698 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1701 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1704 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1705 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1706 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1707 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1708 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1709 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711 _ASUNAME
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 echo "PATH: $as_dir"
1719 done
1720 IFS=$as_save_IFS
1722 } >&5
1724 cat >&5 <<_ACEOF
1727 ## ----------- ##
1728 ## Core tests. ##
1729 ## ----------- ##
1731 _ACEOF
1734 # Keep a trace of the command line.
1735 # Strip out --no-create and --no-recursion so they do not pile up.
1736 # Strip out --silent because we don't want to record it for future runs.
1737 # Also quote any args containing shell meta-characters.
1738 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_configure_args=
1740 ac_configure_args0=
1741 ac_configure_args1=
1742 ac_must_keep_next=false
1743 for ac_pass in 1 2
1745 for ac_arg
1747 case $ac_arg in
1748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1750 | -silent | --silent | --silen | --sile | --sil)
1751 continue ;;
1752 *\'*)
1753 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 esac
1755 case $ac_pass in
1756 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1759 if test $ac_must_keep_next = true; then
1760 ac_must_keep_next=false # Got value, back to normal.
1761 else
1762 case $ac_arg in
1763 *=* | --config-cache | -C | -disable-* | --disable-* \
1764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1766 | -with-* | --with-* | -without-* | --without-* | --x)
1767 case "$ac_configure_args0 " in
1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 esac
1771 -* ) ac_must_keep_next=true ;;
1772 esac
1774 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 esac
1777 done
1778 done
1779 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1780 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1782 # When interrupted or exit'd, cleanup temporary files, and complete
1783 # config.log. We remove comments because anyway the quotes in there
1784 # would cause problems or look ugly.
1785 # WARNING: Use '\'' to represent an apostrophe within the trap.
1786 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1787 trap 'exit_status=$?
1788 # Save into config.log some information that might help in debugging.
1790 echo
1792 cat <<\_ASBOX
1793 ## ---------------- ##
1794 ## Cache variables. ##
1795 ## ---------------- ##
1796 _ASBOX
1797 echo
1798 # The following way of writing the cache mishandles newlines in values,
1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in #(
1803 *${as_nl}*)
1804 case $ac_var in #(
1805 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1807 esac
1808 case $ac_var in #(
1809 _ | IFS | as_nl) ;; #(
1810 *) $as_unset $ac_var ;;
1811 esac ;;
1812 esac
1813 done
1814 (set) 2>&1 |
1815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1816 *${as_nl}ac_space=\ *)
1817 sed -n \
1818 "s/'\''/'\''\\\\'\'''\''/g;
1819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 ;; #(
1822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1824 esac |
1825 sort
1827 echo
1829 cat <<\_ASBOX
1830 ## ----------------- ##
1831 ## Output variables. ##
1832 ## ----------------- ##
1833 _ASBOX
1834 echo
1835 for ac_var in $ac_subst_vars
1837 eval ac_val=\$$ac_var
1838 case $ac_val in
1839 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 esac
1841 echo "$ac_var='\''$ac_val'\''"
1842 done | sort
1843 echo
1845 if test -n "$ac_subst_files"; then
1846 cat <<\_ASBOX
1847 ## ------------------- ##
1848 ## File substitutions. ##
1849 ## ------------------- ##
1850 _ASBOX
1851 echo
1852 for ac_var in $ac_subst_files
1854 eval ac_val=\$$ac_var
1855 case $ac_val in
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 esac
1858 echo "$ac_var='\''$ac_val'\''"
1859 done | sort
1860 echo
1863 if test -s confdefs.h; then
1864 cat <<\_ASBOX
1865 ## ----------- ##
1866 ## confdefs.h. ##
1867 ## ----------- ##
1868 _ASBOX
1869 echo
1870 cat confdefs.h
1871 echo
1873 test "$ac_signal" != 0 &&
1874 echo "$as_me: caught signal $ac_signal"
1875 echo "$as_me: exit $exit_status"
1876 } >&5
1877 rm -f core *.core core.conftest.* &&
1878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1879 exit $exit_status
1881 for ac_signal in 1 2 13 15; do
1882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1883 done
1884 ac_signal=0
1886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1887 rm -f -r conftest* confdefs.h
1889 # Predefined preprocessor variables.
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_NAME "$PACKAGE_NAME"
1893 _ACEOF
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898 _ACEOF
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1903 _ACEOF
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_STRING "$PACKAGE_STRING"
1908 _ACEOF
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1913 _ACEOF
1916 # Let the site file select an alternate cache file if it wants to.
1917 # Prefer explicitly selected file to automatically selected ones.
1918 if test -n "$CONFIG_SITE"; then
1919 set x "$CONFIG_SITE"
1920 elif test "x$prefix" != xNONE; then
1921 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1922 else
1923 set x "$ac_default_prefix/share/config.site" \
1924 "$ac_default_prefix/etc/config.site"
1926 shift
1927 for ac_site_file
1929 if test -r "$ac_site_file"; then
1930 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931 echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1933 . "$ac_site_file"
1935 done
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942 echo "$as_me: loading cache $cache_file" >&6;}
1943 case $cache_file in
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
1946 esac
1948 else
1949 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950 echo "$as_me: creating cache $cache_file" >&6;}
1951 >$cache_file
1954 ac_header_list="$ac_header_list utime.h"
1955 # Check that the precious variables saved in the cache have kept the same
1956 # value.
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1964 set,)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,set)
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,);;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1976 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1977 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1978 echo "$as_me: former value: $ac_old_val" >&2;}
1979 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1980 echo "$as_me: current value: $ac_new_val" >&2;}
1981 ac_cache_corrupted=:
1982 fi;;
1983 esac
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1986 case $ac_new_val in
1987 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988 *) ac_arg=$ac_var=$ac_new_val ;;
1989 esac
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 esac
1995 done
1996 if $ac_cache_corrupted; then
1997 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1998 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1999 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2000 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001 { (exit 1); exit 1; }; }
2028 ac_ext=c
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035 LIBNTFS_3G_VERSION="81"
2038 # Environment
2039 ac_aux_dir=
2040 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2041 if test -f "$ac_dir/install-sh"; then
2042 ac_aux_dir=$ac_dir
2043 ac_install_sh="$ac_aux_dir/install-sh -c"
2044 break
2045 elif test -f "$ac_dir/install.sh"; then
2046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/install.sh -c"
2048 break
2049 elif test -f "$ac_dir/shtool"; then
2050 ac_aux_dir=$ac_dir
2051 ac_install_sh="$ac_aux_dir/shtool install -c"
2052 break
2054 done
2055 if test -z "$ac_aux_dir"; then
2056 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2057 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2058 { (exit 1); exit 1; }; }
2061 # These three variables are undocumented and unsupported,
2062 # and are intended to be withdrawn in a future Autoconf release.
2063 # They can cause serious problems if a builder's source tree is in a directory
2064 # whose full name contains unusual characters.
2065 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2066 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2067 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2070 # Make sure we can run config.sub.
2071 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2072 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2073 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2074 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: checking build system type" >&5
2077 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2078 if test "${ac_cv_build+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 ac_build_alias=$build_alias
2082 test "x$ac_build_alias" = x &&
2083 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2084 test "x$ac_build_alias" = x &&
2085 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2086 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2087 { (exit 1); exit 1; }; }
2088 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2095 echo "${ECHO_T}$ac_cv_build" >&6; }
2096 case $ac_cv_build in
2097 *-*-*) ;;
2098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2099 echo "$as_me: error: invalid value of canonical build" >&2;}
2100 { (exit 1); exit 1; }; };;
2101 esac
2102 build=$ac_cv_build
2103 ac_save_IFS=$IFS; IFS='-'
2104 set x $ac_cv_build
2105 shift
2106 build_cpu=$1
2107 build_vendor=$2
2108 shift; shift
2109 # Remember, the first character of IFS is used to create $*,
2110 # except with old shells:
2111 build_os=$*
2112 IFS=$ac_save_IFS
2113 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2116 { echo "$as_me:$LINENO: checking host system type" >&5
2117 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2118 if test "${ac_cv_host+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 if test "x$host_alias" = x; then
2122 ac_cv_host=$ac_cv_build
2123 else
2124 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2125 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2126 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2127 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2132 echo "${ECHO_T}$ac_cv_host" >&6; }
2133 case $ac_cv_host in
2134 *-*-*) ;;
2135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2136 echo "$as_me: error: invalid value of canonical host" >&2;}
2137 { (exit 1); exit 1; }; };;
2138 esac
2139 host=$ac_cv_host
2140 ac_save_IFS=$IFS; IFS='-'
2141 set x $ac_cv_host
2142 shift
2143 host_cpu=$1
2144 host_vendor=$2
2145 shift; shift
2146 # Remember, the first character of IFS is used to create $*,
2147 # except with old shells:
2148 host_os=$*
2149 IFS=$ac_save_IFS
2150 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2153 { echo "$as_me:$LINENO: checking target system type" >&5
2154 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2155 if test "${ac_cv_target+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 if test "x$target_alias" = x; then
2159 ac_cv_target=$ac_cv_host
2160 else
2161 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2169 echo "${ECHO_T}$ac_cv_target" >&6; }
2170 case $ac_cv_target in
2171 *-*-*) ;;
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2173 echo "$as_me: error: invalid value of canonical target" >&2;}
2174 { (exit 1); exit 1; }; };;
2175 esac
2176 target=$ac_cv_target
2177 ac_save_IFS=$IFS; IFS='-'
2178 set x $ac_cv_target
2179 shift
2180 target_cpu=$1
2181 target_vendor=$2
2182 shift; shift
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2185 target_os=$*
2186 IFS=$ac_save_IFS
2187 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2190 # The aliases save the names the user supplied, while $host etc.
2191 # will get canonicalized.
2192 test -n "$target_alias" &&
2193 test "$program_prefix$program_suffix$program_transform_name" = \
2194 NONENONEs,x,x, &&
2195 program_prefix=${target_alias}-
2197 # Automake
2198 am__api_version='1.10'
2200 # Find a good install program. We prefer a C program (faster),
2201 # so one script is as good as another. But avoid the broken or
2202 # incompatible versions:
2203 # SysV /etc/install, /usr/sbin/install
2204 # SunOS /usr/etc/install
2205 # IRIX /sbin/install
2206 # AIX /bin/install
2207 # AmigaOS /C/install, which installs bootblocks on floppy discs
2208 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2209 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2210 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2211 # OS/2's system install, which has a completely different semantic
2212 # ./install, which can be erroneously created by make from ./install.sh.
2213 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2214 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2215 if test -z "$INSTALL"; then
2216 if test "${ac_cv_path_install+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 # Account for people who put trailing slashes in PATH elements.
2225 case $as_dir/ in
2226 ./ | .// | /cC/* | \
2227 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2228 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2229 /usr/ucb/* ) ;;
2231 # OSF1 and SCO ODT 3.0 have their own names for install.
2232 # Don't use installbsd from OSF since it installs stuff as root
2233 # by default.
2234 for ac_prog in ginstall scoinst install; do
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2237 if test $ac_prog = install &&
2238 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2239 # AIX install. It has an incompatible calling convention.
2241 elif test $ac_prog = install &&
2242 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2243 # program-specific install script used by HP pwplus--don't use.
2245 else
2246 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2247 break 3
2250 done
2251 done
2253 esac
2254 done
2255 IFS=$as_save_IFS
2259 if test "${ac_cv_path_install+set}" = set; then
2260 INSTALL=$ac_cv_path_install
2261 else
2262 # As a last resort, use the slow shell script. Don't cache a
2263 # value for INSTALL within a source directory, because that will
2264 # break other packages using the cache if that directory is
2265 # removed, or if the value is a relative name.
2266 INSTALL=$ac_install_sh
2269 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2270 echo "${ECHO_T}$INSTALL" >&6; }
2272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2273 # It thinks the first close brace ends the variable substitution.
2274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2276 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2280 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2281 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2282 # Just in case
2283 sleep 1
2284 echo timestamp > conftest.file
2285 # Do `set' in a subshell so we don't clobber the current shell's
2286 # arguments. Must try -L first in case configure is actually a
2287 # symlink; some systems play weird games with the mod time of symlinks
2288 # (eg FreeBSD returns the mod time of the symlink's containing
2289 # directory).
2290 if (
2291 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2292 if test "$*" = "X"; then
2293 # -L didn't work.
2294 set X `ls -t $srcdir/configure conftest.file`
2296 rm -f conftest.file
2297 if test "$*" != "X $srcdir/configure conftest.file" \
2298 && test "$*" != "X conftest.file $srcdir/configure"; then
2300 # If neither matched, then we have a broken ls. This can happen
2301 # if, for instance, CONFIG_SHELL is bash and it inherits a
2302 # broken ls alias from the environment. This has actually
2303 # happened. Such a system could not be considered "sane".
2304 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2305 alias in your environment" >&5
2306 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2307 alias in your environment" >&2;}
2308 { (exit 1); exit 1; }; }
2311 test "$2" = conftest.file
2313 then
2314 # Ok.
2316 else
2317 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2318 Check your system clock" >&5
2319 echo "$as_me: error: newly created file is older than distributed files!
2320 Check your system clock" >&2;}
2321 { (exit 1); exit 1; }; }
2323 { echo "$as_me:$LINENO: result: yes" >&5
2324 echo "${ECHO_T}yes" >&6; }
2325 test "$program_prefix" != NONE &&
2326 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2327 # Use a double $ so make ignores it.
2328 test "$program_suffix" != NONE &&
2329 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2330 # Double any \ or $. echo might interpret backslashes.
2331 # By default was `s,x,x', remove it if useless.
2332 cat <<\_ACEOF >conftest.sed
2333 s/[\\$]/&&/g;s/;s,x,x,$//
2334 _ACEOF
2335 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2336 rm -f conftest.sed
2338 # expand $ac_aux_dir to an absolute path
2339 am_aux_dir=`cd $ac_aux_dir && pwd`
2341 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2342 # Use eval to expand $SHELL
2343 if eval "$MISSING --run true"; then
2344 am_missing_run="$MISSING --run "
2345 else
2346 am_missing_run=
2347 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2348 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2351 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2352 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2353 if test -z "$MKDIR_P"; then
2354 if test "${ac_cv_path_mkdir+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_prog in mkdir gmkdir; do
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2365 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2366 'mkdir (GNU coreutils) '* | \
2367 'mkdir (coreutils) '* | \
2368 'mkdir (fileutils) '4.1*)
2369 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2370 break 3;;
2371 esac
2372 done
2373 done
2374 done
2375 IFS=$as_save_IFS
2379 if test "${ac_cv_path_mkdir+set}" = set; then
2380 MKDIR_P="$ac_cv_path_mkdir -p"
2381 else
2382 # As a last resort, use the slow shell script. Don't cache a
2383 # value for MKDIR_P within a source directory, because that will
2384 # break other packages using the cache if that directory is
2385 # removed, or if the value is a relative name.
2386 test -d ./--version && rmdir ./--version
2387 MKDIR_P="$ac_install_sh -d"
2390 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2391 echo "${ECHO_T}$MKDIR_P" >&6; }
2393 mkdir_p="$MKDIR_P"
2394 case $mkdir_p in
2395 [\\/$]* | ?:[\\/]*) ;;
2396 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2397 esac
2399 for ac_prog in gawk mawk nawk awk
2401 # Extract the first word of "$ac_prog", so it can be a program name with args.
2402 set dummy $ac_prog; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_AWK+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 if test -n "$AWK"; then
2409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_AWK="$ac_prog"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2422 done
2423 done
2424 IFS=$as_save_IFS
2428 AWK=$ac_cv_prog_AWK
2429 if test -n "$AWK"; then
2430 { echo "$as_me:$LINENO: result: $AWK" >&5
2431 echo "${ECHO_T}$AWK" >&6; }
2432 else
2433 { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2438 test -n "$AWK" && break
2439 done
2441 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2442 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2443 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2444 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447 cat >conftest.make <<\_ACEOF
2448 SHELL = /bin/sh
2449 all:
2450 @echo '@@@%%%=$(MAKE)=@@@%%%'
2451 _ACEOF
2452 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2453 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2454 *@@@%%%=?*=@@@%%%*)
2455 eval ac_cv_prog_make_${ac_make}_set=yes;;
2457 eval ac_cv_prog_make_${ac_make}_set=no;;
2458 esac
2459 rm -f conftest.make
2461 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2462 { echo "$as_me:$LINENO: result: yes" >&5
2463 echo "${ECHO_T}yes" >&6; }
2464 SET_MAKE=
2465 else
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2468 SET_MAKE="MAKE=${MAKE-make}"
2471 rm -rf .tst 2>/dev/null
2472 mkdir .tst 2>/dev/null
2473 if test -d .tst; then
2474 am__leading_dot=.
2475 else
2476 am__leading_dot=_
2478 rmdir .tst 2>/dev/null
2480 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2481 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2482 # is not polluted with repeated "-I."
2483 am__isrc=' -I$(srcdir)'
2484 # test to see if srcdir already configured
2485 if test -f $srcdir/config.status; then
2486 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2487 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2488 { (exit 1); exit 1; }; }
2492 # test whether we have cygpath
2493 if test -z "$CYGPATH_W"; then
2494 if (cygpath --version) >/dev/null 2>/dev/null; then
2495 CYGPATH_W='cygpath -w'
2496 else
2497 CYGPATH_W=echo
2502 # Define the identity of the package.
2503 PACKAGE=${PACKAGE_NAME}
2504 VERSION=${PACKAGE_VERSION}
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE "$PACKAGE"
2509 _ACEOF
2512 cat >>confdefs.h <<_ACEOF
2513 #define VERSION "$VERSION"
2514 _ACEOF
2516 # Some tools Automake needs.
2518 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2521 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2524 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2527 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2530 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2532 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2534 # Installed binaries are usually stripped using `strip' when the user
2535 # run `make install-strip'. However `strip' might not be the right
2536 # tool to use in cross-compilation environments, therefore Automake
2537 # will honor the `STRIP' environment variable to overrule this program.
2538 if test "$cross_compiling" != no; then
2539 if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}strip; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_STRIP+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 if test -n "$STRIP"; then
2548 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2561 done
2562 done
2563 IFS=$as_save_IFS
2567 STRIP=$ac_cv_prog_STRIP
2568 if test -n "$STRIP"; then
2569 { echo "$as_me:$LINENO: result: $STRIP" >&5
2570 echo "${ECHO_T}$STRIP" >&6; }
2571 else
2572 { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2578 if test -z "$ac_cv_prog_STRIP"; then
2579 ac_ct_STRIP=$STRIP
2580 # Extract the first word of "strip", so it can be a program name with args.
2581 set dummy strip; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587 if test -n "$ac_ct_STRIP"; then
2588 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 ac_cv_prog_ac_ct_STRIP="strip"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2603 IFS=$as_save_IFS
2607 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2608 if test -n "$ac_ct_STRIP"; then
2609 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2610 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2611 else
2612 { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2616 if test "x$ac_ct_STRIP" = x; then
2617 STRIP=":"
2618 else
2619 case $cross_compiling:$ac_tool_warned in
2620 yes:)
2621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2622 whose name does not start with the host triplet. If you think this
2623 configuration is useful to you, please write to autoconf@gnu.org." >&5
2624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet. If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2627 ac_tool_warned=yes ;;
2628 esac
2629 STRIP=$ac_ct_STRIP
2631 else
2632 STRIP="$ac_cv_prog_STRIP"
2636 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2638 # We need awk for the "check" target. The system "awk" is bad on
2639 # some platforms.
2640 # Always define AMTAR for backward compatibility.
2642 AMTAR=${AMTAR-"${am_missing_run}tar"}
2644 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2650 ac_config_headers="$ac_config_headers config.h"
2653 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2654 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2655 # Check whether --enable-maintainer-mode was given.
2656 if test "${enable_maintainer_mode+set}" = set; then
2657 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2658 else
2659 USE_MAINTAINER_MODE=no
2662 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2663 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2664 if test $USE_MAINTAINER_MODE = yes; then
2665 MAINTAINER_MODE_TRUE=
2666 MAINTAINER_MODE_FALSE='#'
2667 else
2668 MAINTAINER_MODE_TRUE='#'
2669 MAINTAINER_MODE_FALSE=
2672 MAINT=$MAINTAINER_MODE_TRUE
2676 # Options
2677 # Check whether --enable-debug was given.
2678 if test "${enable_debug+set}" = set; then
2679 enableval=$enable_debug;
2680 else
2681 enable_debug="no"
2686 # Check whether --enable-warnings was given.
2687 if test "${enable_warnings+set}" = set; then
2688 enableval=$enable_warnings;
2689 else
2690 enable_warnings="no"
2695 # Check whether --enable-pedantic was given.
2696 if test "${enable_pedantic+set}" = set; then
2697 enableval=$enable_pedantic;
2698 else
2699 enable_pedantic="no"
2704 # Check whether --enable-really-static was given.
2705 if test "${enable_really_static+set}" = set; then
2706 enableval=$enable_really_static;
2707 else
2708 enable_really_static="no"
2713 # Check whether --enable-mount-helper was given.
2714 if test "${enable_mount_helper+set}" = set; then
2715 enableval=$enable_mount_helper;
2716 else
2718 case "${target_os}" in
2719 linux*) enable_mount_helper="yes" ;;
2720 *) enable_mount_helper="no" ;;
2721 esac
2727 # Check whether --enable-ldscript was given.
2728 if test "${enable_ldscript+set}" = set; then
2729 enableval=$enable_ldscript;
2730 else
2731 enable_ldscript="no"
2736 # Check whether --enable-ldconfig was given.
2737 if test "${enable_ldconfig+set}" = set; then
2738 enableval=$enable_ldconfig;
2739 else
2740 enable_ldconfig="yes"
2745 # Check whether --enable-library was given.
2746 if test "${enable_library+set}" = set; then
2747 enableval=$enable_library;
2748 else
2749 enable_library="yes"
2754 # Check whether --enable-mtab was given.
2755 if test "${enable_mtab+set}" = set; then
2756 enableval=$enable_mtab;
2757 else
2758 enable_mtab="yes"
2763 # Check whether --enable-posix-acls was given.
2764 if test "${enable_posix_acls+set}" = set; then
2765 enableval=$enable_posix_acls;
2766 else
2767 enable_posix_acls="no"
2772 # Check whether --enable-xattr-mappings was given.
2773 if test "${enable_xattr_mappings+set}" = set; then
2774 enableval=$enable_xattr_mappings;
2775 else
2776 enable_xattr_mappings="no"
2781 # Check whether --enable-device-default-io-ops was given.
2782 if test "${enable_device_default_io_ops+set}" = set; then
2783 enableval=$enable_device_default_io_ops;
2784 else
2785 enable_device_default_io_ops="yes"
2790 # Check whether --enable-ntfsprogs was given.
2791 if test "${enable_ntfsprogs+set}" = set; then
2792 enableval=$enable_ntfsprogs;
2793 else
2794 enable_ntfsprogs="yes"
2799 # Check whether --enable-crypto was given.
2800 if test "${enable_crypto+set}" = set; then
2801 enableval=$enable_crypto;
2802 else
2803 enable_crypto=no
2808 # Check whether --enable-nfconv was given.
2809 if test "${enable_nfconv+set}" = set; then
2810 enableval=$enable_nfconv; enable_nfconv="no"
2811 else
2813 case "${target_os}" in
2814 darwin*) enable_nfconv="yes" ;;
2815 *) enable_nfconv="no" ;;
2816 esac
2822 # pthread_rwlock_t requires _GNU_SOURCE
2824 cat >>confdefs.h <<\_ACEOF
2825 #define _GNU_SOURCE 1
2826 _ACEOF
2830 # Programs
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837 for ac_prog in gcc cc
2839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_CC+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2860 done
2861 done
2862 IFS=$as_save_IFS
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868 { echo "$as_me:$LINENO: result: $CC" >&5
2869 echo "${ECHO_T}$CC" >&6; }
2870 else
2871 { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2876 test -n "$CC" && break
2877 done
2879 if test -z "$CC"; then
2880 ac_ct_CC=$CC
2881 for ac_prog in gcc cc
2883 # Extract the first word of "$ac_prog", so it can be a program name with args.
2884 set dummy $ac_prog; ac_word=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 if test -n "$ac_ct_CC"; then
2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_ac_ct_CC="$ac_prog"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2904 done
2905 done
2906 IFS=$as_save_IFS
2910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911 if test -n "$ac_ct_CC"; then
2912 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913 echo "${ECHO_T}$ac_ct_CC" >&6; }
2914 else
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2920 test -n "$ac_ct_CC" && break
2921 done
2923 if test "x$ac_ct_CC" = x; then
2924 CC=""
2925 else
2926 case $cross_compiling:$ac_tool_warned in
2927 yes:)
2928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet. If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&5
2931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2932 whose name does not start with the host triplet. If you think this
2933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936 CC=$ac_ct_CC
2941 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: no acceptable C compiler found in \$PATH
2944 See \`config.log' for more details." >&2;}
2945 { (exit 1); exit 1; }; }
2947 # Provide some information about the compiler.
2948 echo "$as_me:$LINENO: checking for C compiler version" >&5
2949 ac_compiler=`set X $ac_compile; echo $2`
2950 { (ac_try="$ac_compiler --version >&5"
2951 case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compiler --version >&5") 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960 { (ac_try="$ac_compiler -v >&5"
2961 case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compiler -v >&5") 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }
2970 { (ac_try="$ac_compiler -V >&5"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compiler -V >&5") 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2989 main ()
2993 return 0;
2995 _ACEOF
2996 ac_clean_files_save=$ac_clean_files
2997 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2998 # Try to create an executable without -o first, disregard a.out.
2999 # It will help us diagnose broken compilers, and finding out an intuition
3000 # of exeext.
3001 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3002 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3003 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3005 # List of possible output files, starting from the most likely.
3006 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3007 # only as a last resort. b.out is created by i960 compilers.
3008 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3010 # The IRIX 6 linker writes into existing files which may not be
3011 # executable, retaining their permissions. Remove them first so a
3012 # subsequent execution test works.
3013 ac_rmfiles=
3014 for ac_file in $ac_files
3016 case $ac_file in
3017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3018 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3019 esac
3020 done
3021 rm -f $ac_rmfiles
3023 if { (ac_try="$ac_link_default"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_link_default") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3034 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3035 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3036 # so that the user can short-circuit this test for compilers unknown to
3037 # Autoconf.
3038 for ac_file in $ac_files ''
3040 test -f "$ac_file" || continue
3041 case $ac_file in
3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3044 [ab].out )
3045 # We found the default executable, but exeext='' is most
3046 # certainly right.
3047 break;;
3048 *.* )
3049 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3050 then :; else
3051 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3053 # We set ac_cv_exeext here because the later test for it is not
3054 # safe: cross compilers may not add the suffix if given an `-o'
3055 # argument, so we may need to know it at that point already.
3056 # Even if this section looks crufty: it has the advantage of
3057 # actually working.
3058 break;;
3060 break;;
3061 esac
3062 done
3063 test "$ac_cv_exeext" = no && ac_cv_exeext=
3065 else
3066 ac_file=''
3069 { echo "$as_me:$LINENO: result: $ac_file" >&5
3070 echo "${ECHO_T}$ac_file" >&6; }
3071 if test -z "$ac_file"; then
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: C compiler cannot create executables
3078 See \`config.log' for more details." >&2;}
3079 { (exit 77); exit 77; }; }
3082 ac_exeext=$ac_cv_exeext
3084 # Check that the compiler produces executables we can run. If not, either
3085 # the compiler is broken, or we cross compile.
3086 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3087 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3088 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3089 # If not cross compiling, check that we can run a simple program.
3090 if test "$cross_compiling" != yes; then
3091 if { ac_try='./$ac_file'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 cross_compiling=no
3102 else
3103 if test "$cross_compiling" = maybe; then
3104 cross_compiling=yes
3105 else
3106 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3107 If you meant to cross compile, use \`--host'.
3108 See \`config.log' for more details." >&5
3109 echo "$as_me: error: cannot run C compiled programs.
3110 If you meant to cross compile, use \`--host'.
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3116 { echo "$as_me:$LINENO: result: yes" >&5
3117 echo "${ECHO_T}yes" >&6; }
3119 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3120 ac_clean_files=$ac_clean_files_save
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3124 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3125 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3126 echo "${ECHO_T}$cross_compiling" >&6; }
3128 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3129 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3130 if { (ac_try="$ac_link"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_link") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; then
3140 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3141 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3142 # work properly (i.e., refer to `conftest.exe'), while it won't with
3143 # `rm'.
3144 for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
3148 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 break;;
3150 * ) break;;
3151 esac
3152 done
3153 else
3154 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3161 rm -f conftest$ac_cv_exeext
3162 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3163 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3165 rm -f conftest.$ac_ext
3166 EXEEXT=$ac_cv_exeext
3167 ac_exeext=$EXEEXT
3168 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3169 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3170 if test "${ac_cv_objext+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3181 main ()
3185 return 0;
3187 _ACEOF
3188 rm -f conftest.o conftest.obj
3189 if { (ac_try="$ac_compile"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compile") 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; then
3199 for ac_file in conftest.o conftest.obj conftest.*; do
3200 test -f "$ac_file" || continue;
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3203 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3204 break;;
3205 esac
3206 done
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3218 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3220 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3221 echo "${ECHO_T}$ac_cv_objext" >&6; }
3222 OBJEXT=$ac_cv_objext
3223 ac_objext=$OBJEXT
3224 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3225 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3226 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3237 main ()
3239 #ifndef __GNUC__
3240 choke me
3241 #endif
3244 return 0;
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (ac_try="$ac_compile"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compile") 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && {
3261 test -z "$ac_c_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
3264 ac_compiler_gnu=yes
3265 else
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 ac_compiler_gnu=no
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3276 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3277 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3278 GCC=`test $ac_compiler_gnu = yes && echo yes`
3279 ac_test_CFLAGS=${CFLAGS+set}
3280 ac_save_CFLAGS=$CFLAGS
3281 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3282 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_cc_g+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 ac_save_c_werror_flag=$ac_c_werror_flag
3287 ac_c_werror_flag=yes
3288 ac_cv_prog_cc_g=no
3289 CFLAGS="-g"
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3298 main ()
3302 return 0;
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv_prog_cc_g=yes
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 CFLAGS=""
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 rm -f conftest.$ac_objext
3344 if { (ac_try="$ac_compile"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_compile") 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } && {
3357 test -z "$ac_c_werror_flag" ||
3358 test ! -s conftest.err
3359 } && test -s conftest.$ac_objext; then
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3366 CFLAGS="-g"
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3375 main ()
3379 return 0;
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (ac_try="$ac_compile"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_compile") 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } && {
3396 test -z "$ac_c_werror_flag" ||
3397 test ! -s conftest.err
3398 } && test -s conftest.$ac_objext; then
3399 ac_cv_prog_cc_g=yes
3400 else
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_c_werror_flag=$ac_save_c_werror_flag
3416 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3417 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3418 if test "$ac_test_CFLAGS" = set; then
3419 CFLAGS=$ac_save_CFLAGS
3420 elif test $ac_cv_prog_cc_g = yes; then
3421 if test "$GCC" = yes; then
3422 CFLAGS="-g -O2"
3423 else
3424 CFLAGS="-g"
3426 else
3427 if test "$GCC" = yes; then
3428 CFLAGS="-O2"
3429 else
3430 CFLAGS=
3433 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3434 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3435 if test "${ac_cv_prog_cc_c89+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 ac_cv_prog_cc_c89=no
3439 ac_save_CC=$CC
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <stdarg.h>
3447 #include <stdio.h>
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451 struct buf { int x; };
3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453 static char *e (p, i)
3454 char **p;
3455 int i;
3457 return p[i];
3459 static char *f (char * (*g) (char **, int), char **p, ...)
3461 char *s;
3462 va_list v;
3463 va_start (v,p);
3464 s = g (p, va_arg (v,int));
3465 va_end (v);
3466 return s;
3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470 function prototypes and stuff, but not '\xHH' hex character constants.
3471 These don't provoke an error unfortunately, instead are silently treated
3472 as 'x'. The following induces an error, until -std is added to get
3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474 array size at least. It's necessary to write '\x00'==0 to get something
3475 that's true only with -std. */
3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479 inside strings and character constants. */
3480 #define FOO(x) 'x'
3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3490 main ()
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 return 0;
3496 _ACEOF
3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 CC="$ac_save_CC $ac_arg"
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3518 ac_cv_prog_cc_c89=$ac_arg
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3526 rm -f core conftest.err conftest.$ac_objext
3527 test "x$ac_cv_prog_cc_c89" != "xno" && break
3528 done
3529 rm -f conftest.$ac_ext
3530 CC=$ac_save_CC
3533 # AC_CACHE_VAL
3534 case "x$ac_cv_prog_cc_c89" in
3536 { echo "$as_me:$LINENO: result: none needed" >&5
3537 echo "${ECHO_T}none needed" >&6; } ;;
3538 xno)
3539 { echo "$as_me:$LINENO: result: unsupported" >&5
3540 echo "${ECHO_T}unsupported" >&6; } ;;
3542 CC="$CC $ac_cv_prog_cc_c89"
3543 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3544 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3545 esac
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 DEPDIR="${am__leading_dot}deps"
3555 ac_config_commands="$ac_config_commands depfiles"
3558 am_make=${MAKE-make}
3559 cat > confinc << 'END'
3560 am__doit:
3561 @echo done
3562 .PHONY: am__doit
3564 # If we don't find an include directive, just comment out the code.
3565 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3566 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3567 am__include="#"
3568 am__quote=
3569 _am_result=none
3570 # First try GNU make style include.
3571 echo "include confinc" > confmf
3572 # We grep out `Entering directory' and `Leaving directory'
3573 # messages which can occur if `w' ends up in MAKEFLAGS.
3574 # In particular we don't look at `^make:' because GNU make might
3575 # be invoked under some other name (usually "gmake"), in which
3576 # case it prints its new name instead of `make'.
3577 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3578 am__include=include
3579 am__quote=
3580 _am_result=GNU
3582 # Now try BSD make style include.
3583 if test "$am__include" = "#"; then
3584 echo '.include "confinc"' > confmf
3585 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3586 am__include=.include
3587 am__quote="\""
3588 _am_result=BSD
3593 { echo "$as_me:$LINENO: result: $_am_result" >&5
3594 echo "${ECHO_T}$_am_result" >&6; }
3595 rm -f confinc confmf
3597 # Check whether --enable-dependency-tracking was given.
3598 if test "${enable_dependency_tracking+set}" = set; then
3599 enableval=$enable_dependency_tracking;
3602 if test "x$enable_dependency_tracking" != xno; then
3603 am_depcomp="$ac_aux_dir/depcomp"
3604 AMDEPBACKSLASH='\'
3606 if test "x$enable_dependency_tracking" != xno; then
3607 AMDEP_TRUE=
3608 AMDEP_FALSE='#'
3609 else
3610 AMDEP_TRUE='#'
3611 AMDEP_FALSE=
3616 depcc="$CC" am_compiler_list=
3618 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3619 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3620 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3624 # We make a subdir and do the tests there. Otherwise we can end up
3625 # making bogus files that we don't know about and never remove. For
3626 # instance it was reported that on HP-UX the gcc test will end up
3627 # making a dummy file named `D' -- because `-MD' means `put the output
3628 # in D'.
3629 mkdir conftest.dir
3630 # Copy depcomp to subdir because otherwise we won't find it if we're
3631 # using a relative directory.
3632 cp "$am_depcomp" conftest.dir
3633 cd conftest.dir
3634 # We will build objects and dependencies in a subdirectory because
3635 # it helps to detect inapplicable dependency modes. For instance
3636 # both Tru64's cc and ICC support -MD to output dependencies as a
3637 # side effect of compilation, but ICC will put the dependencies in
3638 # the current directory while Tru64 will put them in the object
3639 # directory.
3640 mkdir sub
3642 am_cv_CC_dependencies_compiler_type=none
3643 if test "$am_compiler_list" = ""; then
3644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3646 for depmode in $am_compiler_list; do
3647 # Setup a source with many dependencies, because some compilers
3648 # like to wrap large dependency lists on column 80 (with \), and
3649 # we should not choose a depcomp mode which is confused by this.
3651 # We need to recreate these files for each test, as the compiler may
3652 # overwrite some of them when testing with obscure command lines.
3653 # This happens at least with the AIX C compiler.
3654 : > sub/conftest.c
3655 for i in 1 2 3 4 5 6; do
3656 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3657 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3658 # Solaris 8's {/usr,}/bin/sh.
3659 touch sub/conftst$i.h
3660 done
3661 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3663 case $depmode in
3664 nosideeffect)
3665 # after this tag, mechanisms are not by side-effect, so they'll
3666 # only be used when explicitly requested
3667 if test "x$enable_dependency_tracking" = xyes; then
3668 continue
3669 else
3670 break
3673 none) break ;;
3674 esac
3675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3676 # mode. It turns out that the SunPro C++ compiler does not properly
3677 # handle `-M -o', and we need to detect this.
3678 if depmode=$depmode \
3679 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3681 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3682 >/dev/null 2>conftest.err &&
3683 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3684 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3685 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3686 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3687 # icc doesn't choke on unknown options, it will just issue warnings
3688 # or remarks (even with -Werror). So we grep stderr for any message
3689 # that says an option was ignored or not supported.
3690 # When given -MP, icc 7.0 and 7.1 complain thusly:
3691 # icc: Command line warning: ignoring option '-M'; no argument required
3692 # The diagnosis changed in icc 8.0:
3693 # icc: Command line remark: option '-MP' not supported
3694 if (grep 'ignoring option' conftest.err ||
3695 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3696 am_cv_CC_dependencies_compiler_type=$depmode
3697 break
3700 done
3702 cd ..
3703 rm -rf conftest.dir
3704 else
3705 am_cv_CC_dependencies_compiler_type=none
3709 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3710 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3711 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3714 test "x$enable_dependency_tracking" != xno \
3715 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3716 am__fastdepCC_TRUE=
3717 am__fastdepCC_FALSE='#'
3718 else
3719 am__fastdepCC_TRUE='#'
3720 am__fastdepCC_FALSE=
3724 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3725 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3726 LN_S=$as_ln_s
3727 if test "$LN_S" = "ln -s"; then
3728 { echo "$as_me:$LINENO: result: yes" >&5
3729 echo "${ECHO_T}yes" >&6; }
3730 else
3731 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3732 echo "${ECHO_T}no, using $LN_S" >&6; }
3735 if test "x$CC" != xcc; then
3736 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3737 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3738 else
3739 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3740 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3742 set dummy $CC; ac_cc=`echo $2 |
3743 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3744 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3755 main ()
3759 return 0;
3761 _ACEOF
3762 # Make sure it works both with $CC and with simple cc.
3763 # We do the test twice because some compilers refuse to overwrite an
3764 # existing .o file with -o, though they will create one.
3765 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3766 rm -f conftest2.*
3767 if { (case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_try") 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_try") 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); };
3785 then
3786 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3787 if test "x$CC" != xcc; then
3788 # Test first that cc exists at all.
3789 if { ac_try='cc -c conftest.$ac_ext >&5'
3790 { (case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_try") 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3800 rm -f conftest2.*
3801 if { (case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_try") 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_try") 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); };
3819 then
3820 # cc works too.
3822 else
3823 # cc exists but doesn't like -o.
3824 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3828 else
3829 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3831 rm -f core conftest*
3834 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3835 { echo "$as_me:$LINENO: result: yes" >&5
3836 echo "${ECHO_T}yes" >&6; }
3837 else
3838 { echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6; }
3841 cat >>confdefs.h <<\_ACEOF
3842 #define NO_MINUS_C_MINUS_O 1
3843 _ACEOF
3847 # FIXME: we rely on the cache variable name because
3848 # there is no other way.
3849 set dummy $CC
3850 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3851 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3852 # Losing compiler, so override with the script.
3853 # FIXME: It is wrong to rewrite CC.
3854 # But if we don't then we get into trouble of one sort or another.
3855 # A longer-term fix would be to have automake use am__CC in this case,
3856 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3857 CC="$am_aux_dir/compile $CC"
3862 # Check whether --enable-shared was given.
3863 if test "${enable_shared+set}" = set; then
3864 enableval=$enable_shared; p=${PACKAGE-default}
3865 case $enableval in
3866 yes) enable_shared=yes ;;
3867 no) enable_shared=no ;;
3869 enable_shared=no
3870 # Look at the argument we got. We use all the common list separators.
3871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3872 for pkg in $enableval; do
3873 IFS="$lt_save_ifs"
3874 if test "X$pkg" = "X$p"; then
3875 enable_shared=yes
3877 done
3878 IFS="$lt_save_ifs"
3880 esac
3881 else
3882 enable_shared=yes
3886 # Check whether --enable-static was given.
3887 if test "${enable_static+set}" = set; then
3888 enableval=$enable_static; p=${PACKAGE-default}
3889 case $enableval in
3890 yes) enable_static=yes ;;
3891 no) enable_static=no ;;
3893 enable_static=no
3894 # Look at the argument we got. We use all the common list separators.
3895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3896 for pkg in $enableval; do
3897 IFS="$lt_save_ifs"
3898 if test "X$pkg" = "X$p"; then
3899 enable_static=yes
3901 done
3902 IFS="$lt_save_ifs"
3904 esac
3905 else
3906 enable_static=yes
3910 # Check whether --enable-fast-install was given.
3911 if test "${enable_fast_install+set}" = set; then
3912 enableval=$enable_fast_install; p=${PACKAGE-default}
3913 case $enableval in
3914 yes) enable_fast_install=yes ;;
3915 no) enable_fast_install=no ;;
3917 enable_fast_install=no
3918 # Look at the argument we got. We use all the common list separators.
3919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3920 for pkg in $enableval; do
3921 IFS="$lt_save_ifs"
3922 if test "X$pkg" = "X$p"; then
3923 enable_fast_install=yes
3925 done
3926 IFS="$lt_save_ifs"
3928 esac
3929 else
3930 enable_fast_install=yes
3934 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3935 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3936 if test "${lt_cv_path_SED+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 # Loop through the user's path and test for sed and gsed.
3940 # Then use that list of sed's as ones to test for truncation.
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for lt_ac_prog in sed gsed; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3949 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3951 done
3952 done
3953 done
3954 IFS=$as_save_IFS
3955 lt_ac_max=0
3956 lt_ac_count=0
3957 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3958 # along with /bin/sed that truncates output.
3959 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3960 test ! -f $lt_ac_sed && continue
3961 cat /dev/null > conftest.in
3962 lt_ac_count=0
3963 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3964 # Check for GNU sed and select it if it is found.
3965 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3966 lt_cv_path_SED=$lt_ac_sed
3967 break
3969 while true; do
3970 cat conftest.in conftest.in >conftest.tmp
3971 mv conftest.tmp conftest.in
3972 cp conftest.in conftest.nl
3973 echo >>conftest.nl
3974 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3975 cmp -s conftest.out conftest.nl || break
3976 # 10000 chars as input seems more than enough
3977 test $lt_ac_count -gt 10 && break
3978 lt_ac_count=`expr $lt_ac_count + 1`
3979 if test $lt_ac_count -gt $lt_ac_max; then
3980 lt_ac_max=$lt_ac_count
3981 lt_cv_path_SED=$lt_ac_sed
3983 done
3984 done
3988 SED=$lt_cv_path_SED
3990 { echo "$as_me:$LINENO: result: $SED" >&5
3991 echo "${ECHO_T}$SED" >&6; }
3993 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3994 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3995 if test "${ac_cv_path_GREP+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 # Extract the first word of "grep ggrep" to use in msg output
3999 if test -z "$GREP"; then
4000 set dummy grep ggrep; ac_prog_name=$2
4001 if test "${ac_cv_path_GREP+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 ac_path_GREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in grep ggrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4014 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4015 # Check for GNU ac_path_GREP and select it if it is found.
4016 # Check for GNU $ac_path_GREP
4017 case `"$ac_path_GREP" --version 2>&1` in
4018 *GNU*)
4019 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4021 ac_count=0
4022 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4023 while :
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 echo 'GREP' >> "conftest.nl"
4029 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 ac_count=`expr $ac_count + 1`
4032 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_GREP="$ac_path_GREP"
4035 ac_path_GREP_max=$ac_count
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4044 $ac_path_GREP_found && break 3
4045 done
4046 done
4048 done
4049 IFS=$as_save_IFS
4054 GREP="$ac_cv_path_GREP"
4055 if test -z "$GREP"; then
4056 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4057 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4058 { (exit 1); exit 1; }; }
4061 else
4062 ac_cv_path_GREP=$GREP
4067 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4068 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4069 GREP="$ac_cv_path_GREP"
4072 { echo "$as_me:$LINENO: checking for egrep" >&5
4073 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4074 if test "${ac_cv_path_EGREP+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4078 then ac_cv_path_EGREP="$GREP -E"
4079 else
4080 # Extract the first word of "egrep" to use in msg output
4081 if test -z "$EGREP"; then
4082 set dummy egrep; ac_prog_name=$2
4083 if test "${ac_cv_path_EGREP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 ac_path_EGREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in egrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4097 # Check for GNU ac_path_EGREP and select it if it is found.
4098 # Check for GNU $ac_path_EGREP
4099 case `"$ac_path_EGREP" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4103 ac_count=0
4104 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4105 while :
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 echo 'EGREP' >> "conftest.nl"
4111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 ac_count=`expr $ac_count + 1`
4114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_EGREP="$ac_path_EGREP"
4117 ac_path_EGREP_max=$ac_count
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4126 $ac_path_EGREP_found && break 3
4127 done
4128 done
4130 done
4131 IFS=$as_save_IFS
4136 EGREP="$ac_cv_path_EGREP"
4137 if test -z "$EGREP"; then
4138 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4139 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4140 { (exit 1); exit 1; }; }
4143 else
4144 ac_cv_path_EGREP=$EGREP
4150 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4151 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4152 EGREP="$ac_cv_path_EGREP"
4156 # Check whether --with-gnu-ld was given.
4157 if test "${with_gnu_ld+set}" = set; then
4158 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4159 else
4160 with_gnu_ld=no
4163 ac_prog=ld
4164 if test "$GCC" = yes; then
4165 # Check if gcc -print-prog-name=ld gives a path.
4166 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4167 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4168 case $host in
4169 *-*-mingw*)
4170 # gcc leaves a trailing carriage return which upsets mingw
4171 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4173 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4174 esac
4175 case $ac_prog in
4176 # Accept absolute paths.
4177 [\\/]* | ?:[\\/]*)
4178 re_direlt='/[^/][^/]*/\.\./'
4179 # Canonicalize the pathname of ld
4180 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4181 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4182 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4183 done
4184 test -z "$LD" && LD="$ac_prog"
4187 # If it fails, then pretend we aren't using GCC.
4188 ac_prog=ld
4191 # If it is relative, then search for the first ld in PATH.
4192 with_gnu_ld=unknown
4194 esac
4195 elif test "$with_gnu_ld" = yes; then
4196 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4197 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4198 else
4199 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4200 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4202 if test "${lt_cv_path_LD+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -z "$LD"; then
4206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4207 for ac_dir in $PATH; do
4208 IFS="$lt_save_ifs"
4209 test -z "$ac_dir" && ac_dir=.
4210 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4211 lt_cv_path_LD="$ac_dir/$ac_prog"
4212 # Check to see if the program is GNU ld. I'd rather use --version,
4213 # but apparently some variants of GNU ld only accept -v.
4214 # Break only if it was the GNU/non-GNU ld that we prefer.
4215 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4216 *GNU* | *'with BFD'*)
4217 test "$with_gnu_ld" != no && break
4220 test "$with_gnu_ld" != yes && break
4222 esac
4224 done
4225 IFS="$lt_save_ifs"
4226 else
4227 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4231 LD="$lt_cv_path_LD"
4232 if test -n "$LD"; then
4233 { echo "$as_me:$LINENO: result: $LD" >&5
4234 echo "${ECHO_T}$LD" >&6; }
4235 else
4236 { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4239 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4240 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4241 { (exit 1); exit 1; }; }
4242 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4243 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4244 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4248 case `$LD -v 2>&1 </dev/null` in
4249 *GNU* | *'with BFD'*)
4250 lt_cv_prog_gnu_ld=yes
4253 lt_cv_prog_gnu_ld=no
4255 esac
4257 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4258 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4259 with_gnu_ld=$lt_cv_prog_gnu_ld
4262 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4263 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4264 if test "${lt_cv_ld_reload_flag+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 lt_cv_ld_reload_flag='-r'
4269 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4270 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4271 reload_flag=$lt_cv_ld_reload_flag
4272 case $reload_flag in
4273 "" | " "*) ;;
4274 *) reload_flag=" $reload_flag" ;;
4275 esac
4276 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4277 case $host_os in
4278 darwin*)
4279 if test "$GCC" = yes; then
4280 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4281 else
4282 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4285 esac
4287 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4288 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4289 if test "${lt_cv_path_NM+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 if test -n "$NM"; then
4293 # Let the user override the test.
4294 lt_cv_path_NM="$NM"
4295 else
4296 lt_nm_to_check="${ac_tool_prefix}nm"
4297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4298 lt_nm_to_check="$lt_nm_to_check nm"
4300 for lt_tmp_nm in $lt_nm_to_check; do
4301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4303 IFS="$lt_save_ifs"
4304 test -z "$ac_dir" && ac_dir=.
4305 tmp_nm="$ac_dir/$lt_tmp_nm"
4306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4307 # Check to see if the nm accepts a BSD-compat flag.
4308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4309 # nm: unknown option "B" ignored
4310 # Tru64's nm complains that /dev/null is an invalid object file
4311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4312 */dev/null* | *'Invalid file or object type'*)
4313 lt_cv_path_NM="$tmp_nm -B"
4314 break
4317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4318 */dev/null*)
4319 lt_cv_path_NM="$tmp_nm -p"
4320 break
4323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4324 continue # so that we can try to find one that supports BSD flags
4326 esac
4328 esac
4330 done
4331 IFS="$lt_save_ifs"
4332 done
4333 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4336 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4337 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4338 NM="$lt_cv_path_NM"
4340 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4341 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4342 if test "${lt_cv_deplibs_check_method+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 lt_cv_file_magic_cmd='$MAGIC_CMD'
4346 lt_cv_file_magic_test_file=
4347 lt_cv_deplibs_check_method='unknown'
4348 # Need to set the preceding variable on all platforms that support
4349 # interlibrary dependencies.
4350 # 'none' -- dependencies not supported.
4351 # `unknown' -- same as none, but documents that we really don't know.
4352 # 'pass_all' -- all dependencies passed with no checks.
4353 # 'test_compile' -- check by making test program.
4354 # 'file_magic [[regex]]' -- check by looking for files in library path
4355 # which responds to the $file_magic_cmd with a given extended regex.
4356 # If you have `file' or equivalent on your system and you're not sure
4357 # whether `pass_all' will *always* work, you probably want this one.
4359 case $host_os in
4360 aix[4-9]*)
4361 lt_cv_deplibs_check_method=pass_all
4364 beos*)
4365 lt_cv_deplibs_check_method=pass_all
4368 bsdi[45]*)
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4370 lt_cv_file_magic_cmd='/usr/bin/file -L'
4371 lt_cv_file_magic_test_file=/shlib/libc.so
4374 cygwin*)
4375 # func_win32_libid is a shell function defined in ltmain.sh
4376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4377 lt_cv_file_magic_cmd='func_win32_libid'
4380 mingw* | pw32*)
4381 # Base MSYS/MinGW do not provide the 'file' command needed by
4382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4383 # unless we find 'file', for example because we are cross-compiling.
4384 if ( file / ) >/dev/null 2>&1; then
4385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4386 lt_cv_file_magic_cmd='func_win32_libid'
4387 else
4388 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4389 lt_cv_file_magic_cmd='$OBJDUMP -f'
4393 darwin* | rhapsody*)
4394 lt_cv_deplibs_check_method=pass_all
4397 freebsd* | dragonfly*)
4398 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4399 case $host_cpu in
4400 i*86 )
4401 # Not sure whether the presence of OpenBSD here was a mistake.
4402 # Let's accept both of them until this is cleared up.
4403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4404 lt_cv_file_magic_cmd=/usr/bin/file
4405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4407 esac
4408 else
4409 lt_cv_deplibs_check_method=pass_all
4413 gnu*)
4414 lt_cv_deplibs_check_method=pass_all
4417 hpux10.20* | hpux11*)
4418 lt_cv_file_magic_cmd=/usr/bin/file
4419 case $host_cpu in
4420 ia64*)
4421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4424 hppa*64*)
4425 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]'
4426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4430 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4432 esac
4435 interix[3-9]*)
4436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4440 irix5* | irix6* | nonstopux*)
4441 case $LD in
4442 *-32|*"-32 ") libmagic=32-bit;;
4443 *-n32|*"-n32 ") libmagic=N32;;
4444 *-64|*"-64 ") libmagic=64-bit;;
4445 *) libmagic=never-match;;
4446 esac
4447 lt_cv_deplibs_check_method=pass_all
4450 # This must be Linux ELF.
4451 linux* | k*bsd*-gnu)
4452 lt_cv_deplibs_check_method=pass_all
4455 netbsd*)
4456 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4458 else
4459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4463 newos6*)
4464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4465 lt_cv_file_magic_cmd=/usr/bin/file
4466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4469 nto-qnx*)
4470 lt_cv_deplibs_check_method=unknown
4473 openbsd*)
4474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4476 else
4477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4481 osf3* | osf4* | osf5*)
4482 lt_cv_deplibs_check_method=pass_all
4485 rdos*)
4486 lt_cv_deplibs_check_method=pass_all
4489 solaris*)
4490 lt_cv_deplibs_check_method=pass_all
4493 sysv4 | sysv4.3*)
4494 case $host_vendor in
4495 motorola)
4496 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]'
4497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4499 ncr)
4500 lt_cv_deplibs_check_method=pass_all
4502 sequent)
4503 lt_cv_file_magic_cmd='/bin/file'
4504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4506 sni)
4507 lt_cv_file_magic_cmd='/bin/file'
4508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4509 lt_cv_file_magic_test_file=/lib/libc.so
4511 siemens)
4512 lt_cv_deplibs_check_method=pass_all
4515 lt_cv_deplibs_check_method=pass_all
4517 esac
4520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4521 lt_cv_deplibs_check_method=pass_all
4523 esac
4526 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4527 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4528 file_magic_cmd=$lt_cv_file_magic_cmd
4529 deplibs_check_method=$lt_cv_deplibs_check_method
4530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4535 # If no C compiler was specified, use CC.
4536 LTCC=${LTCC-"$CC"}
4538 # If no C compiler flags were specified, use CFLAGS.
4539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4541 # Allow CC to be a program name with arguments.
4542 compiler=$CC
4545 # Check whether --enable-libtool-lock was given.
4546 if test "${enable_libtool_lock+set}" = set; then
4547 enableval=$enable_libtool_lock;
4550 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4552 # Some flags need to be propagated to the compiler or linker for good
4553 # libtool support.
4554 case $host in
4555 ia64-*-hpux*)
4556 # Find out which ABI we are using.
4557 echo 'int i;' > conftest.$ac_ext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; then
4563 case `/usr/bin/file conftest.$ac_objext` in
4564 *ELF-32*)
4565 HPUX_IA64_MODE="32"
4567 *ELF-64*)
4568 HPUX_IA64_MODE="64"
4570 esac
4572 rm -rf conftest*
4574 *-*-irix6*)
4575 # Find out which ABI we are using.
4576 echo '#line 4576 "configure"' > conftest.$ac_ext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578 (eval $ac_compile) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; then
4582 if test "$lt_cv_prog_gnu_ld" = yes; then
4583 case `/usr/bin/file conftest.$ac_objext` in
4584 *32-bit*)
4585 LD="${LD-ld} -melf32bsmip"
4587 *N32*)
4588 LD="${LD-ld} -melf32bmipn32"
4590 *64-bit*)
4591 LD="${LD-ld} -melf64bmip"
4593 esac
4594 else
4595 case `/usr/bin/file conftest.$ac_objext` in
4596 *32-bit*)
4597 LD="${LD-ld} -32"
4599 *N32*)
4600 LD="${LD-ld} -n32"
4602 *64-bit*)
4603 LD="${LD-ld} -64"
4605 esac
4608 rm -rf conftest*
4611 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4612 s390*-*linux*|sparc*-*linux*)
4613 # Find out which ABI we are using.
4614 echo 'int i;' > conftest.$ac_ext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; then
4620 case `/usr/bin/file conftest.o` in
4621 *32-bit*)
4622 case $host in
4623 x86_64-*kfreebsd*-gnu)
4624 LD="${LD-ld} -m elf_i386_fbsd"
4626 x86_64-*linux*)
4627 LD="${LD-ld} -m elf_i386"
4629 ppc64-*linux*|powerpc64-*linux*)
4630 LD="${LD-ld} -m elf32ppclinux"
4632 s390x-*linux*)
4633 LD="${LD-ld} -m elf_s390"
4635 sparc64-*linux*)
4636 LD="${LD-ld} -m elf32_sparc"
4638 esac
4640 *64-bit*)
4641 case $host in
4642 x86_64-*kfreebsd*-gnu)
4643 LD="${LD-ld} -m elf_x86_64_fbsd"
4645 x86_64-*linux*)
4646 LD="${LD-ld} -m elf_x86_64"
4648 ppc*-*linux*|powerpc*-*linux*)
4649 LD="${LD-ld} -m elf64ppc"
4651 s390*-*linux*)
4652 LD="${LD-ld} -m elf64_s390"
4654 sparc*-*linux*)
4655 LD="${LD-ld} -m elf64_sparc"
4657 esac
4659 esac
4661 rm -rf conftest*
4664 *-*-sco3.2v5*)
4665 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4666 SAVE_CFLAGS="$CFLAGS"
4667 CFLAGS="$CFLAGS -belf"
4668 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4669 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4670 if test "${lt_cv_cc_needs_belf+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 ac_ext=c
4674 ac_cpp='$CPP $CPPFLAGS'
4675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4687 main ()
4691 return 0;
4693 _ACEOF
4694 rm -f conftest.$ac_objext conftest$ac_exeext
4695 if { (ac_try="$ac_link"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_link") 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && {
4708 test -z "$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4710 } && test -s conftest$ac_exeext &&
4711 $as_test_x conftest$ac_exeext; then
4712 lt_cv_cc_needs_belf=yes
4713 else
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 lt_cv_cc_needs_belf=no
4720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4721 conftest$ac_exeext conftest.$ac_ext
4722 ac_ext=c
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4730 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4731 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4732 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4733 CFLAGS="$SAVE_CFLAGS"
4736 sparc*-*solaris*)
4737 # Find out which ABI we are using.
4738 echo 'int i;' > conftest.$ac_ext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; then
4744 case `/usr/bin/file conftest.o` in
4745 *64-bit*)
4746 case $lt_cv_prog_gnu_ld in
4747 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4749 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4750 LD="${LD-ld} -64"
4753 esac
4755 esac
4757 rm -rf conftest*
4761 esac
4763 need_locks="$enable_libtool_lock"
4766 ac_ext=c
4767 ac_cpp='$CPP $CPPFLAGS'
4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4772 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4773 # On Suns, sometimes $CPP names a directory.
4774 if test -n "$CPP" && test -d "$CPP"; then
4775 CPP=
4777 if test -z "$CPP"; then
4778 if test "${ac_cv_prog_CPP+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 # Double quotes because CPP needs to be expanded
4782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4784 ac_preproc_ok=false
4785 for ac_c_preproc_warn_flag in '' yes
4787 # Use a header file that comes with gcc, so configuring glibc
4788 # with a fresh cross-compiler works.
4789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4790 # <limits.h> exists even on freestanding compilers.
4791 # On the NeXT, cc -E runs the code through the compiler's parser,
4792 # not just through cpp. "Syntax error" is here to catch this case.
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h. */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 #ifdef __STDC__
4800 # include <limits.h>
4801 #else
4802 # include <assert.h>
4803 #endif
4804 Syntax error
4805 _ACEOF
4806 if { (ac_try="$ac_cpp conftest.$ac_ext"
4807 case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } >/dev/null && {
4819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 }; then
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 # Broken: fails on valid input.
4828 continue
4831 rm -f conftest.err conftest.$ac_ext
4833 # OK, works on sane cases. Now check whether nonexistent headers
4834 # can be detected and how.
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <ac_nonexistent.h>
4842 _ACEOF
4843 if { (ac_try="$ac_cpp conftest.$ac_ext"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev/null && {
4856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4857 test ! -s conftest.err
4858 }; then
4859 # Broken: success on invalid input.
4860 continue
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 # Passes both tests.
4866 ac_preproc_ok=:
4867 break
4870 rm -f conftest.err conftest.$ac_ext
4872 done
4873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874 rm -f conftest.err conftest.$ac_ext
4875 if $ac_preproc_ok; then
4876 break
4879 done
4880 ac_cv_prog_CPP=$CPP
4883 CPP=$ac_cv_prog_CPP
4884 else
4885 ac_cv_prog_CPP=$CPP
4887 { echo "$as_me:$LINENO: result: $CPP" >&5
4888 echo "${ECHO_T}$CPP" >&6; }
4889 ac_preproc_ok=false
4890 for ac_c_preproc_warn_flag in '' yes
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #ifdef __STDC__
4905 # include <limits.h>
4906 #else
4907 # include <assert.h>
4908 #endif
4909 Syntax error
4910 _ACEOF
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null && {
4924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4925 test ! -s conftest.err
4926 }; then
4928 else
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 # Broken: fails on valid input.
4933 continue
4936 rm -f conftest.err conftest.$ac_ext
4938 # OK, works on sane cases. Now check whether nonexistent headers
4939 # can be detected and how.
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4947 _ACEOF
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4949 case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } >/dev/null && {
4961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 }; then
4964 # Broken: success on invalid input.
4965 continue
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 # Passes both tests.
4971 ac_preproc_ok=:
4972 break
4975 rm -f conftest.err conftest.$ac_ext
4977 done
4978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4979 rm -f conftest.err conftest.$ac_ext
4980 if $ac_preproc_ok; then
4982 else
4983 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4984 See \`config.log' for more details." >&5
4985 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4986 See \`config.log' for more details." >&2;}
4987 { (exit 1); exit 1; }; }
4990 ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4998 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4999 if test "${ac_cv_header_stdc+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 #include <stdlib.h>
5009 #include <stdarg.h>
5010 #include <string.h>
5011 #include <float.h>
5014 main ()
5018 return 0;
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (ac_try="$ac_compile"
5023 case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_compile") 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } && {
5035 test -z "$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 } && test -s conftest.$ac_objext; then
5038 ac_cv_header_stdc=yes
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 ac_cv_header_stdc=no
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 if test $ac_cv_header_stdc = yes; then
5049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5050 cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h. */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 #include <string.h>
5058 _ACEOF
5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060 $EGREP "memchr" >/dev/null 2>&1; then
5062 else
5063 ac_cv_header_stdc=no
5065 rm -f conftest*
5069 if test $ac_cv_header_stdc = yes; then
5070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <stdlib.h>
5079 _ACEOF
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "free" >/dev/null 2>&1; then
5083 else
5084 ac_cv_header_stdc=no
5086 rm -f conftest*
5090 if test $ac_cv_header_stdc = yes; then
5091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5092 if test "$cross_compiling" = yes; then
5094 else
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <ctype.h>
5102 #include <stdlib.h>
5103 #if ((' ' & 0x0FF) == 0x020)
5104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5106 #else
5107 # define ISLOWER(c) \
5108 (('a' <= (c) && (c) <= 'i') \
5109 || ('j' <= (c) && (c) <= 'r') \
5110 || ('s' <= (c) && (c) <= 'z'))
5111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5112 #endif
5114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5116 main ()
5118 int i;
5119 for (i = 0; i < 256; i++)
5120 if (XOR (islower (i), ISLOWER (i))
5121 || toupper (i) != TOUPPER (i))
5122 return 2;
5123 return 0;
5125 _ACEOF
5126 rm -f conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_link") 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5137 { (case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_try") 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5147 else
5148 echo "$as_me: program exited with status $ac_status" >&5
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ( exit $ac_status )
5153 ac_cv_header_stdc=no
5155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5161 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5162 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5163 if test $ac_cv_header_stdc = yes; then
5165 cat >>confdefs.h <<\_ACEOF
5166 #define STDC_HEADERS 1
5167 _ACEOF
5171 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5182 inttypes.h stdint.h unistd.h
5184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h. */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 $ac_includes_default
5198 #include <$ac_header>
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (ac_try="$ac_compile"
5202 case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_compile") 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && {
5214 test -z "$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5216 } && test -s conftest.$ac_objext; then
5217 eval "$as_ac_Header=yes"
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 eval "$as_ac_Header=no"
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ac_res=`eval echo '${'$as_ac_Header'}'`
5228 { echo "$as_me:$LINENO: result: $ac_res" >&5
5229 echo "${ECHO_T}$ac_res" >&6; }
5230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5231 cat >>confdefs.h <<_ACEOF
5232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5233 _ACEOF
5237 done
5241 for ac_header in dlfcn.h
5243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 ac_res=`eval echo '${'$as_ac_Header'}'`
5251 { echo "$as_me:$LINENO: result: $ac_res" >&5
5252 echo "${ECHO_T}$ac_res" >&6; }
5253 else
5254 # Is the header compilable?
5255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 $ac_includes_default
5264 #include <$ac_header>
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (ac_try="$ac_compile"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_compile") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest.$ac_objext; then
5283 ac_header_compiler=yes
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_header_compiler=no
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5293 echo "${ECHO_T}$ac_header_compiler" >&6; }
5295 # Is the header present?
5296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #include <$ac_header>
5305 _ACEOF
5306 if { (ac_try="$ac_cpp conftest.$ac_ext"
5307 case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } >/dev/null && {
5319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 }; then
5322 ac_header_preproc=yes
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_header_preproc=no
5330 rm -f conftest.err conftest.$ac_ext
5331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5332 echo "${ECHO_T}$ac_header_preproc" >&6; }
5334 # So? What about this header?
5335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5336 yes:no: )
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5341 ac_header_preproc=yes
5343 no:yes:* )
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5356 ( cat <<\_ASBOX
5357 ## ----------------------------------------- ##
5358 ## Report this to ntfs-3g-devel@lists.sf.net ##
5359 ## ----------------------------------------- ##
5360 _ASBOX
5361 ) | sed "s/^/$as_me: WARNING: /" >&2
5363 esac
5364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 eval "$as_ac_Header=\$ac_header_preproc"
5371 ac_res=`eval echo '${'$as_ac_Header'}'`
5372 { echo "$as_me:$LINENO: result: $ac_res" >&5
5373 echo "${ECHO_T}$ac_res" >&6; }
5376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5377 cat >>confdefs.h <<_ACEOF
5378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379 _ACEOF
5383 done
5385 ac_ext=cpp
5386 ac_cpp='$CXXCPP $CPPFLAGS'
5387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5390 if test -z "$CXX"; then
5391 if test -n "$CCC"; then
5392 CXX=$CCC
5393 else
5394 if test -n "$ac_tool_prefix"; then
5395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5401 if test "${ac_cv_prog_CXX+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 if test -n "$CXX"; then
5405 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5420 IFS=$as_save_IFS
5424 CXX=$ac_cv_prog_CXX
5425 if test -n "$CXX"; then
5426 { echo "$as_me:$LINENO: result: $CXX" >&5
5427 echo "${ECHO_T}$CXX" >&6; }
5428 else
5429 { echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6; }
5434 test -n "$CXX" && break
5435 done
5437 if test -z "$CXX"; then
5438 ac_ct_CXX=$CXX
5439 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5441 # Extract the first word of "$ac_prog", so it can be a program name with args.
5442 set dummy $ac_prog; ac_word=$2
5443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448 if test -n "$ac_ct_CXX"; then
5449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_ac_ct_CXX="$ac_prog"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5462 done
5463 done
5464 IFS=$as_save_IFS
5468 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5469 if test -n "$ac_ct_CXX"; then
5470 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5471 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5472 else
5473 { echo "$as_me:$LINENO: result: no" >&5
5474 echo "${ECHO_T}no" >&6; }
5478 test -n "$ac_ct_CXX" && break
5479 done
5481 if test "x$ac_ct_CXX" = x; then
5482 CXX="g++"
5483 else
5484 case $cross_compiling:$ac_tool_warned in
5485 yes:)
5486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5487 whose name does not start with the host triplet. If you think this
5488 configuration is useful to you, please write to autoconf@gnu.org." >&5
5489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5490 whose name does not start with the host triplet. If you think this
5491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5492 ac_tool_warned=yes ;;
5493 esac
5494 CXX=$ac_ct_CXX
5500 # Provide some information about the compiler.
5501 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5502 ac_compiler=`set X $ac_compile; echo $2`
5503 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }
5513 { (ac_try="$ac_compiler -v >&5"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compiler -v >&5") 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }
5523 { (ac_try="$ac_compiler -V >&5"
5524 case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compiler -V >&5") 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }
5534 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5535 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5536 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5547 main ()
5549 #ifndef __GNUC__
5550 choke me
5551 #endif
5554 return 0;
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_compile") 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && {
5571 test -z "$ac_cxx_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest.$ac_objext; then
5574 ac_compiler_gnu=yes
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 ac_compiler_gnu=no
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5586 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5587 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5588 GXX=`test $ac_compiler_gnu = yes && echo yes`
5589 ac_test_CXXFLAGS=${CXXFLAGS+set}
5590 ac_save_CXXFLAGS=$CXXFLAGS
5591 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5592 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5593 if test "${ac_cv_prog_cxx_g+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5597 ac_cxx_werror_flag=yes
5598 ac_cv_prog_cxx_g=no
5599 CXXFLAGS="-g"
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5608 main ()
5612 return 0;
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_cxx_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_cv_prog_cxx_g=yes
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5637 CXXFLAGS=""
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5646 main ()
5650 return 0;
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5655 case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compile") 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_cxx_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest.$ac_objext; then
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5676 CXXFLAGS="-g"
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h. */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5685 main ()
5689 return 0;
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_cxx_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 ac_cv_prog_cxx_g=yes
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5726 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5727 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5728 if test "$ac_test_CXXFLAGS" = set; then
5729 CXXFLAGS=$ac_save_CXXFLAGS
5730 elif test $ac_cv_prog_cxx_g = yes; then
5731 if test "$GXX" = yes; then
5732 CXXFLAGS="-g -O2"
5733 else
5734 CXXFLAGS="-g"
5736 else
5737 if test "$GXX" = yes; then
5738 CXXFLAGS="-O2"
5739 else
5740 CXXFLAGS=
5743 ac_ext=cpp
5744 ac_cpp='$CXXCPP $CPPFLAGS'
5745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5749 depcc="$CXX" am_compiler_list=
5751 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5752 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5753 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5757 # We make a subdir and do the tests there. Otherwise we can end up
5758 # making bogus files that we don't know about and never remove. For
5759 # instance it was reported that on HP-UX the gcc test will end up
5760 # making a dummy file named `D' -- because `-MD' means `put the output
5761 # in D'.
5762 mkdir conftest.dir
5763 # Copy depcomp to subdir because otherwise we won't find it if we're
5764 # using a relative directory.
5765 cp "$am_depcomp" conftest.dir
5766 cd conftest.dir
5767 # We will build objects and dependencies in a subdirectory because
5768 # it helps to detect inapplicable dependency modes. For instance
5769 # both Tru64's cc and ICC support -MD to output dependencies as a
5770 # side effect of compilation, but ICC will put the dependencies in
5771 # the current directory while Tru64 will put them in the object
5772 # directory.
5773 mkdir sub
5775 am_cv_CXX_dependencies_compiler_type=none
5776 if test "$am_compiler_list" = ""; then
5777 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5779 for depmode in $am_compiler_list; do
5780 # Setup a source with many dependencies, because some compilers
5781 # like to wrap large dependency lists on column 80 (with \), and
5782 # we should not choose a depcomp mode which is confused by this.
5784 # We need to recreate these files for each test, as the compiler may
5785 # overwrite some of them when testing with obscure command lines.
5786 # This happens at least with the AIX C compiler.
5787 : > sub/conftest.c
5788 for i in 1 2 3 4 5 6; do
5789 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5790 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5791 # Solaris 8's {/usr,}/bin/sh.
5792 touch sub/conftst$i.h
5793 done
5794 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5796 case $depmode in
5797 nosideeffect)
5798 # after this tag, mechanisms are not by side-effect, so they'll
5799 # only be used when explicitly requested
5800 if test "x$enable_dependency_tracking" = xyes; then
5801 continue
5802 else
5803 break
5806 none) break ;;
5807 esac
5808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5809 # mode. It turns out that the SunPro C++ compiler does not properly
5810 # handle `-M -o', and we need to detect this.
5811 if depmode=$depmode \
5812 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5813 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5814 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5815 >/dev/null 2>conftest.err &&
5816 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5817 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5818 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5819 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5820 # icc doesn't choke on unknown options, it will just issue warnings
5821 # or remarks (even with -Werror). So we grep stderr for any message
5822 # that says an option was ignored or not supported.
5823 # When given -MP, icc 7.0 and 7.1 complain thusly:
5824 # icc: Command line warning: ignoring option '-M'; no argument required
5825 # The diagnosis changed in icc 8.0:
5826 # icc: Command line remark: option '-MP' not supported
5827 if (grep 'ignoring option' conftest.err ||
5828 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5829 am_cv_CXX_dependencies_compiler_type=$depmode
5830 break
5833 done
5835 cd ..
5836 rm -rf conftest.dir
5837 else
5838 am_cv_CXX_dependencies_compiler_type=none
5842 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5843 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5844 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5847 test "x$enable_dependency_tracking" != xno \
5848 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5849 am__fastdepCXX_TRUE=
5850 am__fastdepCXX_FALSE='#'
5851 else
5852 am__fastdepCXX_TRUE='#'
5853 am__fastdepCXX_FALSE=
5859 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5860 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5861 (test "X$CXX" != "Xg++"))) ; then
5862 ac_ext=cpp
5863 ac_cpp='$CXXCPP $CPPFLAGS'
5864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5867 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5868 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5869 if test -z "$CXXCPP"; then
5870 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 # Double quotes because CXXCPP needs to be expanded
5874 for CXXCPP in "$CXX -E" "/lib/cpp"
5876 ac_preproc_ok=false
5877 for ac_cxx_preproc_warn_flag in '' yes
5879 # Use a header file that comes with gcc, so configuring glibc
5880 # with a fresh cross-compiler works.
5881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5882 # <limits.h> exists even on freestanding compilers.
5883 # On the NeXT, cc -E runs the code through the compiler's parser,
5884 # not just through cpp. "Syntax error" is here to catch this case.
5885 cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h. */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 #ifdef __STDC__
5892 # include <limits.h>
5893 #else
5894 # include <assert.h>
5895 #endif
5896 Syntax error
5897 _ACEOF
5898 if { (ac_try="$ac_cpp conftest.$ac_ext"
5899 case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } >/dev/null && {
5911 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5912 test ! -s conftest.err
5913 }; then
5915 else
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5919 # Broken: fails on valid input.
5920 continue
5923 rm -f conftest.err conftest.$ac_ext
5925 # OK, works on sane cases. Now check whether nonexistent headers
5926 # can be detected and how.
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #include <ac_nonexistent.h>
5934 _ACEOF
5935 if { (ac_try="$ac_cpp conftest.$ac_ext"
5936 case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } >/dev/null && {
5948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5949 test ! -s conftest.err
5950 }; then
5951 # Broken: success on invalid input.
5952 continue
5953 else
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 # Passes both tests.
5958 ac_preproc_ok=:
5959 break
5962 rm -f conftest.err conftest.$ac_ext
5964 done
5965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5966 rm -f conftest.err conftest.$ac_ext
5967 if $ac_preproc_ok; then
5968 break
5971 done
5972 ac_cv_prog_CXXCPP=$CXXCPP
5975 CXXCPP=$ac_cv_prog_CXXCPP
5976 else
5977 ac_cv_prog_CXXCPP=$CXXCPP
5979 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5980 echo "${ECHO_T}$CXXCPP" >&6; }
5981 ac_preproc_ok=false
5982 for ac_cxx_preproc_warn_flag in '' yes
5984 # Use a header file that comes with gcc, so configuring glibc
5985 # with a fresh cross-compiler works.
5986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 # <limits.h> exists even on freestanding compilers.
5988 # On the NeXT, cc -E runs the code through the compiler's parser,
5989 # not just through cpp. "Syntax error" is here to catch this case.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #ifdef __STDC__
5997 # include <limits.h>
5998 #else
5999 # include <assert.h>
6000 #endif
6001 Syntax error
6002 _ACEOF
6003 if { (ac_try="$ac_cpp conftest.$ac_ext"
6004 case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null && {
6016 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6017 test ! -s conftest.err
6018 }; then
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 # Broken: fails on valid input.
6025 continue
6028 rm -f conftest.err conftest.$ac_ext
6030 # OK, works on sane cases. Now check whether nonexistent headers
6031 # can be detected and how.
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <ac_nonexistent.h>
6039 _ACEOF
6040 if { (ac_try="$ac_cpp conftest.$ac_ext"
6041 case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } >/dev/null && {
6053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6054 test ! -s conftest.err
6055 }; then
6056 # Broken: success on invalid input.
6057 continue
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 # Passes both tests.
6063 ac_preproc_ok=:
6064 break
6067 rm -f conftest.err conftest.$ac_ext
6069 done
6070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6071 rm -f conftest.err conftest.$ac_ext
6072 if $ac_preproc_ok; then
6074 else
6075 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6076 See \`config.log' for more details." >&5
6077 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6078 See \`config.log' for more details." >&2;}
6079 { (exit 1); exit 1; }; }
6082 ac_ext=cpp
6083 ac_cpp='$CXXCPP $CPPFLAGS'
6084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6091 ac_ext=f
6092 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6093 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6095 if test -n "$ac_tool_prefix"; then
6096 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
6098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6102 if test "${ac_cv_prog_F77+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105 if test -n "$F77"; then
6106 ac_cv_prog_F77="$F77" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6119 done
6120 done
6121 IFS=$as_save_IFS
6125 F77=$ac_cv_prog_F77
6126 if test -n "$F77"; then
6127 { echo "$as_me:$LINENO: result: $F77" >&5
6128 echo "${ECHO_T}$F77" >&6; }
6129 else
6130 { echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6; }
6135 test -n "$F77" && break
6136 done
6138 if test -z "$F77"; then
6139 ac_ct_F77=$F77
6140 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
6142 # Extract the first word of "$ac_prog", so it can be a program name with args.
6143 set dummy $ac_prog; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 if test -n "$ac_ct_F77"; then
6150 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_ac_ct_F77="$ac_prog"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6163 done
6164 done
6165 IFS=$as_save_IFS
6169 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6170 if test -n "$ac_ct_F77"; then
6171 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6172 echo "${ECHO_T}$ac_ct_F77" >&6; }
6173 else
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6179 test -n "$ac_ct_F77" && break
6180 done
6182 if test "x$ac_ct_F77" = x; then
6183 F77=""
6184 else
6185 case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6188 whose name does not start with the host triplet. If you think this
6189 configuration is useful to you, please write to autoconf@gnu.org." >&5
6190 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6191 whose name does not start with the host triplet. If you think this
6192 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6193 ac_tool_warned=yes ;;
6194 esac
6195 F77=$ac_ct_F77
6200 # Provide some information about the compiler.
6201 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6202 ac_compiler=`set X $ac_compile; echo $2`
6203 { (ac_try="$ac_compiler --version >&5"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compiler --version >&5") 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }
6213 { (ac_try="$ac_compiler -v >&5"
6214 case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compiler -v >&5") 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }
6223 { (ac_try="$ac_compiler -V >&5"
6224 case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227 esac
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_compiler -V >&5") 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }
6233 rm -f a.out
6235 # If we don't use `.F' as extension, the preprocessor is not run on the
6236 # input file. (Note that this only needs to work for GNU compilers.)
6237 ac_save_ext=$ac_ext
6238 ac_ext=F
6239 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6240 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6241 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 cat >conftest.$ac_ext <<_ACEOF
6245 program main
6246 #ifndef __GNUC__
6247 choke me
6248 #endif
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_f77_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.$ac_objext; then
6269 ac_compiler_gnu=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_compiler_gnu=no
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6281 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6282 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6283 ac_ext=$ac_save_ext
6284 ac_test_FFLAGS=${FFLAGS+set}
6285 ac_save_FFLAGS=$FFLAGS
6286 FFLAGS=
6287 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6288 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_f77_g+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 FFLAGS=-g
6293 cat >conftest.$ac_ext <<_ACEOF
6294 program main
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_f77_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 ac_cv_prog_f77_g=yes
6316 else
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 ac_cv_prog_f77_g=no
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6327 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6328 if test "$ac_test_FFLAGS" = set; then
6329 FFLAGS=$ac_save_FFLAGS
6330 elif test $ac_cv_prog_f77_g = yes; then
6331 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6332 FFLAGS="-g -O2"
6333 else
6334 FFLAGS="-g"
6336 else
6337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6338 FFLAGS="-O2"
6339 else
6340 FFLAGS=
6344 G77=`test $ac_compiler_gnu = yes && echo yes`
6345 ac_ext=c
6346 ac_cpp='$CPP $CPPFLAGS'
6347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6354 # find the maximum length of command line arguments
6355 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6356 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6357 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6361 teststring="ABCD"
6363 case $build_os in
6364 msdosdjgpp*)
6365 # On DJGPP, this test can blow up pretty badly due to problems in libc
6366 # (any single argument exceeding 2000 bytes causes a buffer overrun
6367 # during glob expansion). Even if it were fixed, the result of this
6368 # check would be larger than it should be.
6369 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6372 gnu*)
6373 # Under GNU Hurd, this test is not required because there is
6374 # no limit to the length of command line arguments.
6375 # Libtool will interpret -1 as no limit whatsoever
6376 lt_cv_sys_max_cmd_len=-1;
6379 cygwin* | mingw*)
6380 # On Win9x/ME, this test blows up -- it succeeds, but takes
6381 # about 5 minutes as the teststring grows exponentially.
6382 # Worse, since 9x/ME are not pre-emptively multitasking,
6383 # you end up with a "frozen" computer, even though with patience
6384 # the test eventually succeeds (with a max line length of 256k).
6385 # Instead, let's just punt: use the minimum linelength reported by
6386 # all of the supported platforms: 8192 (on NT/2K/XP).
6387 lt_cv_sys_max_cmd_len=8192;
6390 amigaos*)
6391 # On AmigaOS with pdksh, this test takes hours, literally.
6392 # So we just punt and use a minimum line length of 8192.
6393 lt_cv_sys_max_cmd_len=8192;
6396 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6397 # This has been around since 386BSD, at least. Likely further.
6398 if test -x /sbin/sysctl; then
6399 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6400 elif test -x /usr/sbin/sysctl; then
6401 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6402 else
6403 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6405 # And add a safety zone
6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6410 interix*)
6411 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6412 lt_cv_sys_max_cmd_len=196608
6415 osf*)
6416 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6417 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6418 # nice to cause kernel panics so lets avoid the loop below.
6419 # First set a reasonable default.
6420 lt_cv_sys_max_cmd_len=16384
6422 if test -x /sbin/sysconfig; then
6423 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6424 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6425 esac
6428 sco3.2v5*)
6429 lt_cv_sys_max_cmd_len=102400
6431 sysv5* | sco5v6* | sysv4.2uw2*)
6432 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6433 if test -n "$kargmax"; then
6434 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6435 else
6436 lt_cv_sys_max_cmd_len=32768
6440 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6441 if test -n "$lt_cv_sys_max_cmd_len"; then
6442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6444 else
6445 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6446 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6447 = "XX$teststring") >/dev/null 2>&1 &&
6448 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6449 lt_cv_sys_max_cmd_len=$new_result &&
6450 test $i != 17 # 1/2 MB should be enough
6452 i=`expr $i + 1`
6453 teststring=$teststring$teststring
6454 done
6455 teststring=
6456 # Add a significant safety factor because C++ compilers can tack on massive
6457 # amounts of additional arguments before passing them to the linker.
6458 # It appears as though 1/2 is a usable value.
6459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6462 esac
6466 if test -n $lt_cv_sys_max_cmd_len ; then
6467 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6468 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6469 else
6470 { echo "$as_me:$LINENO: result: none" >&5
6471 echo "${ECHO_T}none" >&6; }
6478 # Check for command to grab the raw symbol name followed by C symbol from nm.
6479 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6480 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6481 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6485 # These are sane defaults that work on at least a few old systems.
6486 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6488 # Character class describing NM global symbol codes.
6489 symcode='[BCDEGRST]'
6491 # Regexp to match symbols that can be accessed directly from C.
6492 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6494 # Transform an extracted symbol line into a proper C declaration
6495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6497 # Transform an extracted symbol line into symbol name and symbol address
6498 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'"
6500 # Define system-specific variables.
6501 case $host_os in
6502 aix*)
6503 symcode='[BCDT]'
6505 cygwin* | mingw* | pw32*)
6506 symcode='[ABCDGISTW]'
6508 hpux*) # Its linker distinguishes data from code symbols
6509 if test "$host_cpu" = ia64; then
6510 symcode='[ABCDEGRST]'
6512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6513 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'"
6515 linux* | k*bsd*-gnu)
6516 if test "$host_cpu" = ia64; then
6517 symcode='[ABCDGIRSTW]'
6518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6519 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'"
6522 irix* | nonstopux*)
6523 symcode='[BCDEGRST]'
6525 osf*)
6526 symcode='[BCDEGQRST]'
6528 solaris*)
6529 symcode='[BDRT]'
6531 sco3.2v5*)
6532 symcode='[DT]'
6534 sysv4.2uw2*)
6535 symcode='[DT]'
6537 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6538 symcode='[ABDT]'
6540 sysv4)
6541 symcode='[DFNSTU]'
6543 esac
6545 # Handle CRLF in mingw tool chain
6546 opt_cr=
6547 case $build_os in
6548 mingw*)
6549 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6551 esac
6553 # If we're using GNU nm, then use its standard symbol codes.
6554 case `$NM -V 2>&1` in
6555 *GNU* | *'with BFD'*)
6556 symcode='[ABCDGIRSTW]' ;;
6557 esac
6559 # Try without a prefix undercore, then with it.
6560 for ac_symprfx in "" "_"; do
6562 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6563 symxfrm="\\1 $ac_symprfx\\2 \\2"
6565 # Write the raw and C identifiers.
6566 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6568 # Check to see that the pipe works correctly.
6569 pipe_works=no
6571 rm -f conftest*
6572 cat > conftest.$ac_ext <<EOF
6573 #ifdef __cplusplus
6574 extern "C" {
6575 #endif
6576 char nm_test_var;
6577 void nm_test_func(){}
6578 #ifdef __cplusplus
6580 #endif
6581 int main(){nm_test_var='a';nm_test_func();return(0);}
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585 (eval $ac_compile) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; then
6589 # Now try to grab the symbols.
6590 nlist=conftest.nm
6591 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6592 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && test -s "$nlist"; then
6596 # Try sorting and uniquifying the output.
6597 if sort "$nlist" | uniq > "$nlist"T; then
6598 mv -f "$nlist"T "$nlist"
6599 else
6600 rm -f "$nlist"T
6603 # Make sure that we snagged all the symbols we need.
6604 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6605 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6606 cat <<EOF > conftest.$ac_ext
6607 #ifdef __cplusplus
6608 extern "C" {
6609 #endif
6612 # Now generate the symbol file.
6613 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6615 cat <<EOF >> conftest.$ac_ext
6616 #if defined (__STDC__) && __STDC__
6617 # define lt_ptr_t void *
6618 #else
6619 # define lt_ptr_t char *
6620 # define const
6621 #endif
6623 /* The mapping between symbol names and symbols. */
6624 const struct {
6625 const char *name;
6626 lt_ptr_t address;
6628 lt_preloaded_symbols[] =
6631 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6632 cat <<\EOF >> conftest.$ac_ext
6633 {0, (lt_ptr_t) 0}
6636 #ifdef __cplusplus
6638 #endif
6640 # Now try linking the two files.
6641 mv conftest.$ac_objext conftstm.$ac_objext
6642 lt_save_LIBS="$LIBS"
6643 lt_save_CFLAGS="$CFLAGS"
6644 LIBS="conftstm.$ac_objext"
6645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6647 (eval $ac_link) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6651 pipe_works=yes
6653 LIBS="$lt_save_LIBS"
6654 CFLAGS="$lt_save_CFLAGS"
6655 else
6656 echo "cannot find nm_test_func in $nlist" >&5
6658 else
6659 echo "cannot find nm_test_var in $nlist" >&5
6661 else
6662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6664 else
6665 echo "$progname: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 rm -rf conftest* conftst*
6670 # Do not use the global_symbol_pipe unless it works.
6671 if test "$pipe_works" = yes; then
6672 break
6673 else
6674 lt_cv_sys_global_symbol_pipe=
6676 done
6680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6681 lt_cv_sys_global_symbol_to_cdecl=
6683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6684 { echo "$as_me:$LINENO: result: failed" >&5
6685 echo "${ECHO_T}failed" >&6; }
6686 else
6687 { echo "$as_me:$LINENO: result: ok" >&5
6688 echo "${ECHO_T}ok" >&6; }
6691 { echo "$as_me:$LINENO: checking for objdir" >&5
6692 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6693 if test "${lt_cv_objdir+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 rm -f .libs 2>/dev/null
6697 mkdir .libs 2>/dev/null
6698 if test -d .libs; then
6699 lt_cv_objdir=.libs
6700 else
6701 # MS-DOS does not allow filenames that begin with a dot.
6702 lt_cv_objdir=_libs
6704 rmdir .libs 2>/dev/null
6706 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6707 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6708 objdir=$lt_cv_objdir
6714 case $host_os in
6715 aix3*)
6716 # AIX sometimes has problems with the GCC collect2 program. For some
6717 # reason, if we set the COLLECT_NAMES environment variable, the problems
6718 # vanish in a puff of smoke.
6719 if test "X${COLLECT_NAMES+set}" != Xset; then
6720 COLLECT_NAMES=
6721 export COLLECT_NAMES
6724 esac
6726 # Sed substitution that helps us do robust quoting. It backslashifies
6727 # metacharacters that are still active within double-quoted strings.
6728 Xsed='sed -e 1s/^X//'
6729 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6731 # Same as above, but do not quote variable references.
6732 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6734 # Sed substitution to delay expansion of an escaped shell variable in a
6735 # double_quote_subst'ed string.
6736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6738 # Sed substitution to avoid accidental globbing in evaled expressions
6739 no_glob_subst='s/\*/\\\*/g'
6741 # Constants:
6742 rm="rm -f"
6744 # Global variables:
6745 default_ofile=libtool
6746 can_build_shared=yes
6748 # All known linkers require a `.a' archive for static linking (except MSVC,
6749 # which needs '.lib').
6750 libext=a
6751 ltmain="$ac_aux_dir/ltmain.sh"
6752 ofile="$default_ofile"
6753 with_gnu_ld="$lt_cv_prog_gnu_ld"
6755 if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}ar; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_AR+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 if test -n "$AR"; then
6764 ac_cv_prog_AR="$AR" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_AR="${ac_tool_prefix}ar"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6777 done
6778 done
6779 IFS=$as_save_IFS
6783 AR=$ac_cv_prog_AR
6784 if test -n "$AR"; then
6785 { echo "$as_me:$LINENO: result: $AR" >&5
6786 echo "${ECHO_T}$AR" >&6; }
6787 else
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6794 if test -z "$ac_cv_prog_AR"; then
6795 ac_ct_AR=$AR
6796 # Extract the first word of "ar", so it can be a program name with args.
6797 set dummy ar; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803 if test -n "$ac_ct_AR"; then
6804 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_ac_ct_AR="ar"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6817 done
6818 done
6819 IFS=$as_save_IFS
6823 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6824 if test -n "$ac_ct_AR"; then
6825 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6826 echo "${ECHO_T}$ac_ct_AR" >&6; }
6827 else
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6832 if test "x$ac_ct_AR" = x; then
6833 AR="false"
6834 else
6835 case $cross_compiling:$ac_tool_warned in
6836 yes:)
6837 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6838 whose name does not start with the host triplet. If you think this
6839 configuration is useful to you, please write to autoconf@gnu.org." >&5
6840 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6841 whose name does not start with the host triplet. If you think this
6842 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845 AR=$ac_ct_AR
6847 else
6848 AR="$ac_cv_prog_AR"
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_RANLIB+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859 if test -n "$RANLIB"; then
6860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6873 done
6874 done
6875 IFS=$as_save_IFS
6879 RANLIB=$ac_cv_prog_RANLIB
6880 if test -n "$RANLIB"; then
6881 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6882 echo "${ECHO_T}$RANLIB" >&6; }
6883 else
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6890 if test -z "$ac_cv_prog_RANLIB"; then
6891 ac_ct_RANLIB=$RANLIB
6892 # Extract the first word of "ranlib", so it can be a program name with args.
6893 set dummy ranlib; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 if test -n "$ac_ct_RANLIB"; then
6900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_ac_ct_RANLIB="ranlib"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6913 done
6914 done
6915 IFS=$as_save_IFS
6919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6920 if test -n "$ac_ct_RANLIB"; then
6921 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6922 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6923 else
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6928 if test "x$ac_ct_RANLIB" = x; then
6929 RANLIB=":"
6930 else
6931 case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6934 whose name does not start with the host triplet. If you think this
6935 configuration is useful to you, please write to autoconf@gnu.org." >&5
6936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6937 whose name does not start with the host triplet. If you think this
6938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6939 ac_tool_warned=yes ;;
6940 esac
6941 RANLIB=$ac_ct_RANLIB
6943 else
6944 RANLIB="$ac_cv_prog_RANLIB"
6947 if test -n "$ac_tool_prefix"; then
6948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6949 set dummy ${ac_tool_prefix}strip; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_prog_STRIP+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 if test -n "$STRIP"; then
6956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6969 done
6970 done
6971 IFS=$as_save_IFS
6975 STRIP=$ac_cv_prog_STRIP
6976 if test -n "$STRIP"; then
6977 { echo "$as_me:$LINENO: result: $STRIP" >&5
6978 echo "${ECHO_T}$STRIP" >&6; }
6979 else
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6986 if test -z "$ac_cv_prog_STRIP"; then
6987 ac_ct_STRIP=$STRIP
6988 # Extract the first word of "strip", so it can be a program name with args.
6989 set dummy strip; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 if test -n "$ac_ct_STRIP"; then
6996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_ac_ct_STRIP="strip"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7009 done
7010 done
7011 IFS=$as_save_IFS
7015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7016 if test -n "$ac_ct_STRIP"; then
7017 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7018 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7019 else
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7024 if test "x$ac_ct_STRIP" = x; then
7025 STRIP=":"
7026 else
7027 case $cross_compiling:$ac_tool_warned in
7028 yes:)
7029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7030 whose name does not start with the host triplet. If you think this
7031 configuration is useful to you, please write to autoconf@gnu.org." >&5
7032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet. If you think this
7034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7035 ac_tool_warned=yes ;;
7036 esac
7037 STRIP=$ac_ct_STRIP
7039 else
7040 STRIP="$ac_cv_prog_STRIP"
7044 old_CC="$CC"
7045 old_CFLAGS="$CFLAGS"
7047 # Set sane defaults for various variables
7048 test -z "$AR" && AR=ar
7049 test -z "$AR_FLAGS" && AR_FLAGS=cru
7050 test -z "$AS" && AS=as
7051 test -z "$CC" && CC=cc
7052 test -z "$LTCC" && LTCC=$CC
7053 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7054 test -z "$DLLTOOL" && DLLTOOL=dlltool
7055 test -z "$LD" && LD=ld
7056 test -z "$LN_S" && LN_S="ln -s"
7057 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7058 test -z "$NM" && NM=nm
7059 test -z "$SED" && SED=sed
7060 test -z "$OBJDUMP" && OBJDUMP=objdump
7061 test -z "$RANLIB" && RANLIB=:
7062 test -z "$STRIP" && STRIP=:
7063 test -z "$ac_objext" && ac_objext=o
7065 # Determine commands to create old-style static archives.
7066 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7067 old_postinstall_cmds='chmod 644 $oldlib'
7068 old_postuninstall_cmds=
7070 if test -n "$RANLIB"; then
7071 case $host_os in
7072 openbsd*)
7073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7078 esac
7079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7082 for cc_temp in $compiler""; do
7083 case $cc_temp in
7084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7086 \-*) ;;
7087 *) break;;
7088 esac
7089 done
7090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7093 # Only perform the check for file, if the check method requires it
7094 case $deplibs_check_method in
7095 file_magic*)
7096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7097 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7098 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7099 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 case $MAGIC_CMD in
7103 [\\/*] | ?:[\\/]*)
7104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7107 lt_save_MAGIC_CMD="$MAGIC_CMD"
7108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7110 for ac_dir in $ac_dummy; do
7111 IFS="$lt_save_ifs"
7112 test -z "$ac_dir" && ac_dir=.
7113 if test -f $ac_dir/${ac_tool_prefix}file; then
7114 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7115 if test -n "$file_magic_test_file"; then
7116 case $deplibs_check_method in
7117 "file_magic "*)
7118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7121 $EGREP "$file_magic_regex" > /dev/null; then
7123 else
7124 cat <<EOF 1>&2
7126 *** Warning: the command libtool uses to detect shared libraries,
7127 *** $file_magic_cmd, produces output that libtool cannot recognize.
7128 *** The result is that libtool may fail to recognize shared libraries
7129 *** as such. This will affect the creation of libtool libraries that
7130 *** depend on shared libraries, but programs linked with such libtool
7131 *** libraries will work regardless of this problem. Nevertheless, you
7132 *** may want to report the problem to your system manager and/or to
7133 *** bug-libtool@gnu.org
7136 fi ;;
7137 esac
7139 break
7141 done
7142 IFS="$lt_save_ifs"
7143 MAGIC_CMD="$lt_save_MAGIC_CMD"
7145 esac
7148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149 if test -n "$MAGIC_CMD"; then
7150 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7151 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7152 else
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7157 if test -z "$lt_cv_path_MAGIC_CMD"; then
7158 if test -n "$ac_tool_prefix"; then
7159 { echo "$as_me:$LINENO: checking for file" >&5
7160 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7161 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 case $MAGIC_CMD in
7165 [\\/*] | ?:[\\/]*)
7166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7169 lt_save_MAGIC_CMD="$MAGIC_CMD"
7170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7171 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7172 for ac_dir in $ac_dummy; do
7173 IFS="$lt_save_ifs"
7174 test -z "$ac_dir" && ac_dir=.
7175 if test -f $ac_dir/file; then
7176 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7177 if test -n "$file_magic_test_file"; then
7178 case $deplibs_check_method in
7179 "file_magic "*)
7180 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7182 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7183 $EGREP "$file_magic_regex" > /dev/null; then
7185 else
7186 cat <<EOF 1>&2
7188 *** Warning: the command libtool uses to detect shared libraries,
7189 *** $file_magic_cmd, produces output that libtool cannot recognize.
7190 *** The result is that libtool may fail to recognize shared libraries
7191 *** as such. This will affect the creation of libtool libraries that
7192 *** depend on shared libraries, but programs linked with such libtool
7193 *** libraries will work regardless of this problem. Nevertheless, you
7194 *** may want to report the problem to your system manager and/or to
7195 *** bug-libtool@gnu.org
7198 fi ;;
7199 esac
7201 break
7203 done
7204 IFS="$lt_save_ifs"
7205 MAGIC_CMD="$lt_save_MAGIC_CMD"
7207 esac
7210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211 if test -n "$MAGIC_CMD"; then
7212 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7213 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7214 else
7215 { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7219 else
7220 MAGIC_CMD=:
7226 esac
7229 case $host_os in
7230 rhapsody* | darwin*)
7231 if test -n "$ac_tool_prefix"; then
7232 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 if test -n "$DSYMUTIL"; then
7240 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7253 done
7254 done
7255 IFS=$as_save_IFS
7259 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7260 if test -n "$DSYMUTIL"; then
7261 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7262 echo "${ECHO_T}$DSYMUTIL" >&6; }
7263 else
7264 { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7270 if test -z "$ac_cv_prog_DSYMUTIL"; then
7271 ac_ct_DSYMUTIL=$DSYMUTIL
7272 # Extract the first word of "dsymutil", so it can be a program name with args.
7273 set dummy dsymutil; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 if test -n "$ac_ct_DSYMUTIL"; then
7280 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7293 done
7294 done
7295 IFS=$as_save_IFS
7299 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7300 if test -n "$ac_ct_DSYMUTIL"; then
7301 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7302 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7303 else
7304 { echo "$as_me:$LINENO: result: no" >&5
7305 echo "${ECHO_T}no" >&6; }
7308 if test "x$ac_ct_DSYMUTIL" = x; then
7309 DSYMUTIL=":"
7310 else
7311 case $cross_compiling:$ac_tool_warned in
7312 yes:)
7313 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7314 whose name does not start with the host triplet. If you think this
7315 configuration is useful to you, please write to autoconf@gnu.org." >&5
7316 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7317 whose name does not start with the host triplet. If you think this
7318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7319 ac_tool_warned=yes ;;
7320 esac
7321 DSYMUTIL=$ac_ct_DSYMUTIL
7323 else
7324 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335 if test -n "$NMEDIT"; then
7336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7349 done
7350 done
7351 IFS=$as_save_IFS
7355 NMEDIT=$ac_cv_prog_NMEDIT
7356 if test -n "$NMEDIT"; then
7357 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7358 echo "${ECHO_T}$NMEDIT" >&6; }
7359 else
7360 { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7366 if test -z "$ac_cv_prog_NMEDIT"; then
7367 ac_ct_NMEDIT=$NMEDIT
7368 # Extract the first word of "nmedit", so it can be a program name with args.
7369 set dummy nmedit; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 if test -n "$ac_ct_NMEDIT"; then
7376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7389 done
7390 done
7391 IFS=$as_save_IFS
7395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7396 if test -n "$ac_ct_NMEDIT"; then
7397 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7398 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7399 else
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7404 if test "x$ac_ct_NMEDIT" = x; then
7405 NMEDIT=":"
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408 yes:)
7409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7410 whose name does not start with the host triplet. If you think this
7411 configuration is useful to you, please write to autoconf@gnu.org." >&5
7412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7413 whose name does not start with the host triplet. If you think this
7414 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417 NMEDIT=$ac_ct_NMEDIT
7419 else
7420 NMEDIT="$ac_cv_prog_NMEDIT"
7424 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7425 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7426 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 lt_cv_apple_cc_single_mod=no
7430 if test -z "${LT_MULTI_MODULE}"; then
7431 # By default we will add the -single_module flag. You can override
7432 # by either setting the environment variable LT_MULTI_MODULE
7433 # non-empty at configure time, or by adding -multi_module to the
7434 # link flags.
7435 echo "int foo(void){return 1;}" > conftest.c
7436 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7437 -dynamiclib ${wl}-single_module conftest.c
7438 if test -f libconftest.dylib; then
7439 lt_cv_apple_cc_single_mod=yes
7440 rm -rf libconftest.dylib*
7442 rm conftest.c
7445 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7446 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7447 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7448 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7449 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 lt_cv_ld_exported_symbols_list=no
7453 save_LDFLAGS=$LDFLAGS
7454 echo "_main" > conftest.sym
7455 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7464 main ()
7468 return 0;
7470 _ACEOF
7471 rm -f conftest.$ac_objext conftest$ac_exeext
7472 if { (ac_try="$ac_link"
7473 case "(($ac_try" in
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7476 esac
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_link") 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest$ac_exeext &&
7488 $as_test_x conftest$ac_exeext; then
7489 lt_cv_ld_exported_symbols_list=yes
7490 else
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 lt_cv_ld_exported_symbols_list=no
7497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7498 conftest$ac_exeext conftest.$ac_ext
7499 LDFLAGS="$save_LDFLAGS"
7502 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7503 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7504 case $host_os in
7505 rhapsody* | darwin1.[0123])
7506 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7507 darwin1.*)
7508 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7509 darwin*)
7510 # if running on 10.5 or later, the deployment target defaults
7511 # to the OS version, if on x86, and 10.4, the deployment
7512 # target defaults to 10.4. Don't you love it?
7513 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7514 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7516 10.[012]*)
7517 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7518 10.*)
7519 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7520 esac
7522 esac
7523 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7524 _lt_dar_single_mod='$single_module'
7526 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7527 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7528 else
7529 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7531 if test "$DSYMUTIL" != ":"; then
7532 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7533 else
7534 _lt_dsymutil=
7537 esac
7540 enable_dlopen=no
7541 enable_win32_dll=no
7543 # Check whether --enable-libtool-lock was given.
7544 if test "${enable_libtool_lock+set}" = set; then
7545 enableval=$enable_libtool_lock;
7548 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7551 # Check whether --with-pic was given.
7552 if test "${with_pic+set}" = set; then
7553 withval=$with_pic; pic_mode="$withval"
7554 else
7555 pic_mode=default
7558 test -z "$pic_mode" && pic_mode=default
7560 # Use C for the default configuration in the libtool script
7561 tagname=
7562 lt_save_CC="$CC"
7563 ac_ext=c
7564 ac_cpp='$CPP $CPPFLAGS'
7565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570 # Source file extension for C test sources.
7571 ac_ext=c
7573 # Object file extension for compiled C test sources.
7574 objext=o
7575 objext=$objext
7577 # Code to be used in simple compile tests
7578 lt_simple_compile_test_code="int some_variable = 0;"
7580 # Code to be used in simple link tests
7581 lt_simple_link_test_code='int main(){return(0);}'
7584 # If no C compiler was specified, use CC.
7585 LTCC=${LTCC-"$CC"}
7587 # If no C compiler flags were specified, use CFLAGS.
7588 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7590 # Allow CC to be a program name with arguments.
7591 compiler=$CC
7594 # save warnings/boilerplate of simple test code
7595 ac_outfile=conftest.$ac_objext
7596 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7597 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7598 _lt_compiler_boilerplate=`cat conftest.err`
7599 $rm conftest*
7601 ac_outfile=conftest.$ac_objext
7602 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7603 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7604 _lt_linker_boilerplate=`cat conftest.err`
7605 $rm -r conftest*
7609 lt_prog_compiler_no_builtin_flag=
7611 if test "$GCC" = yes; then
7612 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7615 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7616 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7617 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 lt_cv_prog_compiler_rtti_exceptions=no
7621 ac_outfile=conftest.$ac_objext
7622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7623 lt_compiler_flag="-fno-rtti -fno-exceptions"
7624 # Insert the option either (1) after the last *FLAGS variable, or
7625 # (2) before a word containing "conftest.", or (3) at the end.
7626 # Note that $ac_compile itself does not contain backslashes and begins
7627 # with a dollar sign (not a hyphen), so the echo should work correctly.
7628 # The option is referenced via a variable to avoid confusing sed.
7629 lt_compile=`echo "$ac_compile" | $SED \
7630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7632 -e 's:$: $lt_compiler_flag:'`
7633 (eval echo "\"\$as_me:7633: $lt_compile\"" >&5)
7634 (eval "$lt_compile" 2>conftest.err)
7635 ac_status=$?
7636 cat conftest.err >&5
7637 echo "$as_me:7637: \$? = $ac_status" >&5
7638 if (exit $ac_status) && test -s "$ac_outfile"; then
7639 # The compiler can only warn and ignore the option if not recognized
7640 # So say no if there are warnings other than the usual output.
7641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7644 lt_cv_prog_compiler_rtti_exceptions=yes
7647 $rm conftest*
7650 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7651 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7653 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7654 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7655 else
7661 lt_prog_compiler_wl=
7662 lt_prog_compiler_pic=
7663 lt_prog_compiler_static=
7665 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7666 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7668 if test "$GCC" = yes; then
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_static='-static'
7672 case $host_os in
7673 aix*)
7674 # All AIX code is PIC.
7675 if test "$host_cpu" = ia64; then
7676 # AIX 5 now supports IA64 processor
7677 lt_prog_compiler_static='-Bstatic'
7681 amigaos*)
7682 # FIXME: we need at least 68020 code to build shared libraries, but
7683 # adding the `-m68020' flag to GCC prevents building anything better,
7684 # like `-m68040'.
7685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7688 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7689 # PIC is the default for these OSes.
7692 mingw* | cygwin* | pw32* | os2*)
7693 # This hack is so that the source file can tell whether it is being
7694 # built for inclusion in a dll (and should export symbols for example).
7695 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7696 # (--disable-auto-import) libraries
7697 lt_prog_compiler_pic='-DDLL_EXPORT'
7700 darwin* | rhapsody*)
7701 # PIC is the default on this platform
7702 # Common symbols not allowed in MH_DYLIB files
7703 lt_prog_compiler_pic='-fno-common'
7706 interix[3-9]*)
7707 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7708 # Instead, we relocate shared libraries at runtime.
7711 msdosdjgpp*)
7712 # Just because we use GCC doesn't mean we suddenly get shared libraries
7713 # on systems that don't support them.
7714 lt_prog_compiler_can_build_shared=no
7715 enable_shared=no
7718 sysv4*MP*)
7719 if test -d /usr/nec; then
7720 lt_prog_compiler_pic=-Kconform_pic
7724 hpux*)
7725 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7726 # not for PA HP-UX.
7727 case $host_cpu in
7728 hppa*64*|ia64*)
7729 # +Z the default
7732 lt_prog_compiler_pic='-fPIC'
7734 esac
7738 lt_prog_compiler_pic='-fPIC'
7740 esac
7741 else
7742 # PORTME Check for flag to pass linker flags through the system compiler.
7743 case $host_os in
7744 aix*)
7745 lt_prog_compiler_wl='-Wl,'
7746 if test "$host_cpu" = ia64; then
7747 # AIX 5 now supports IA64 processor
7748 lt_prog_compiler_static='-Bstatic'
7749 else
7750 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7753 darwin*)
7754 # PIC is the default on this platform
7755 # Common symbols not allowed in MH_DYLIB files
7756 case $cc_basename in
7757 xlc*)
7758 lt_prog_compiler_pic='-qnocommon'
7759 lt_prog_compiler_wl='-Wl,'
7761 esac
7764 mingw* | cygwin* | pw32* | os2*)
7765 # This hack is so that the source file can tell whether it is being
7766 # built for inclusion in a dll (and should export symbols for example).
7767 lt_prog_compiler_pic='-DDLL_EXPORT'
7770 hpux9* | hpux10* | hpux11*)
7771 lt_prog_compiler_wl='-Wl,'
7772 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7773 # not for PA HP-UX.
7774 case $host_cpu in
7775 hppa*64*|ia64*)
7776 # +Z the default
7779 lt_prog_compiler_pic='+Z'
7781 esac
7782 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7783 lt_prog_compiler_static='${wl}-a ${wl}archive'
7786 irix5* | irix6* | nonstopux*)
7787 lt_prog_compiler_wl='-Wl,'
7788 # PIC (with -KPIC) is the default.
7789 lt_prog_compiler_static='-non_shared'
7792 newsos6)
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-Bstatic'
7797 linux* | k*bsd*-gnu)
7798 case $cc_basename in
7799 icc* | ecc*)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-static'
7804 pgcc* | pgf77* | pgf90* | pgf95*)
7805 # Portland Group compilers (*not* the Pentium gcc compiler,
7806 # which looks to be a dead project)
7807 lt_prog_compiler_wl='-Wl,'
7808 lt_prog_compiler_pic='-fpic'
7809 lt_prog_compiler_static='-Bstatic'
7811 ccc*)
7812 lt_prog_compiler_wl='-Wl,'
7813 # All Alpha code is PIC.
7814 lt_prog_compiler_static='-non_shared'
7817 case `$CC -V 2>&1 | sed 5q` in
7818 *Sun\ C*)
7819 # Sun C 5.9
7820 lt_prog_compiler_pic='-KPIC'
7821 lt_prog_compiler_static='-Bstatic'
7822 lt_prog_compiler_wl='-Wl,'
7824 *Sun\ F*)
7825 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7828 lt_prog_compiler_wl=''
7830 esac
7832 esac
7835 osf3* | osf4* | osf5*)
7836 lt_prog_compiler_wl='-Wl,'
7837 # All OSF/1 code is PIC.
7838 lt_prog_compiler_static='-non_shared'
7841 rdos*)
7842 lt_prog_compiler_static='-non_shared'
7845 solaris*)
7846 lt_prog_compiler_pic='-KPIC'
7847 lt_prog_compiler_static='-Bstatic'
7848 case $cc_basename in
7849 f77* | f90* | f95*)
7850 lt_prog_compiler_wl='-Qoption ld ';;
7852 lt_prog_compiler_wl='-Wl,';;
7853 esac
7856 sunos4*)
7857 lt_prog_compiler_wl='-Qoption ld '
7858 lt_prog_compiler_pic='-PIC'
7859 lt_prog_compiler_static='-Bstatic'
7862 sysv4 | sysv4.2uw2* | sysv4.3*)
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-KPIC'
7865 lt_prog_compiler_static='-Bstatic'
7868 sysv4*MP*)
7869 if test -d /usr/nec ;then
7870 lt_prog_compiler_pic='-Kconform_pic'
7871 lt_prog_compiler_static='-Bstatic'
7875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7876 lt_prog_compiler_wl='-Wl,'
7877 lt_prog_compiler_pic='-KPIC'
7878 lt_prog_compiler_static='-Bstatic'
7881 unicos*)
7882 lt_prog_compiler_wl='-Wl,'
7883 lt_prog_compiler_can_build_shared=no
7886 uts4*)
7887 lt_prog_compiler_pic='-pic'
7888 lt_prog_compiler_static='-Bstatic'
7892 lt_prog_compiler_can_build_shared=no
7894 esac
7897 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7898 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7901 # Check to make sure the PIC flag actually works.
7903 if test -n "$lt_prog_compiler_pic"; then
7905 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7906 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7907 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910 lt_cv_prog_compiler_pic_works=no
7911 ac_outfile=conftest.$ac_objext
7912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7914 # Insert the option either (1) after the last *FLAGS variable, or
7915 # (2) before a word containing "conftest.", or (3) at the end.
7916 # Note that $ac_compile itself does not contain backslashes and begins
7917 # with a dollar sign (not a hyphen), so the echo should work correctly.
7918 # The option is referenced via a variable to avoid confusing sed.
7919 lt_compile=`echo "$ac_compile" | $SED \
7920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7922 -e 's:$: $lt_compiler_flag:'`
7923 (eval echo "\"\$as_me:7923: $lt_compile\"" >&5)
7924 (eval "$lt_compile" 2>conftest.err)
7925 ac_status=$?
7926 cat conftest.err >&5
7927 echo "$as_me:7927: \$? = $ac_status" >&5
7928 if (exit $ac_status) && test -s "$ac_outfile"; then
7929 # The compiler can only warn and ignore the option if not recognized
7930 # So say no if there are warnings other than the usual output.
7931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7934 lt_cv_prog_compiler_pic_works=yes
7937 $rm conftest*
7940 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7941 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7943 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7944 case $lt_prog_compiler_pic in
7945 "" | " "*) ;;
7946 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7947 esac
7948 else
7949 lt_prog_compiler_pic=
7950 lt_prog_compiler_can_build_shared=no
7954 case $host_os in
7955 # For platforms which do not support PIC, -DPIC is meaningless:
7956 *djgpp*)
7957 lt_prog_compiler_pic=
7960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7962 esac
7965 # Check to make sure the static flag actually works.
7967 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7968 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7969 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7970 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 lt_cv_prog_compiler_static_works=no
7974 save_LDFLAGS="$LDFLAGS"
7975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7978 # The linker can only warn and ignore the option if not recognized
7979 # So say no if there are warnings
7980 if test -s conftest.err; then
7981 # Append any errors to the config.log.
7982 cat conftest.err 1>&5
7983 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7985 if diff conftest.exp conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_static_works=yes
7988 else
7989 lt_cv_prog_compiler_static_works=yes
7992 $rm -r conftest*
7993 LDFLAGS="$save_LDFLAGS"
7996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7997 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7999 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8001 else
8002 lt_prog_compiler_static=
8006 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8007 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8008 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 lt_cv_prog_compiler_c_o=no
8012 $rm -r conftest 2>/dev/null
8013 mkdir conftest
8014 cd conftest
8015 mkdir out
8016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8018 lt_compiler_flag="-o out/conftest2.$ac_objext"
8019 # Insert the option either (1) after the last *FLAGS variable, or
8020 # (2) before a word containing "conftest.", or (3) at the end.
8021 # Note that $ac_compile itself does not contain backslashes and begins
8022 # with a dollar sign (not a hyphen), so the echo should work correctly.
8023 lt_compile=`echo "$ac_compile" | $SED \
8024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8026 -e 's:$: $lt_compiler_flag:'`
8027 (eval echo "\"\$as_me:8027: $lt_compile\"" >&5)
8028 (eval "$lt_compile" 2>out/conftest.err)
8029 ac_status=$?
8030 cat out/conftest.err >&5
8031 echo "$as_me:8031: \$? = $ac_status" >&5
8032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8033 then
8034 # The compiler can only warn and ignore the option if not recognized
8035 # So say no if there are warnings
8036 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8039 lt_cv_prog_compiler_c_o=yes
8042 chmod u+w . 2>&5
8043 $rm conftest*
8044 # SGI C++ compiler will create directory out/ii_files/ for
8045 # template instantiation
8046 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8047 $rm out/* && rmdir out
8048 cd ..
8049 rmdir conftest
8050 $rm conftest*
8053 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8057 hard_links="nottested"
8058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8059 # do not overwrite the value of need_locks provided by the user
8060 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8062 hard_links=yes
8063 $rm conftest*
8064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8065 touch conftest.a
8066 ln conftest.a conftest.b 2>&5 || hard_links=no
8067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8068 { echo "$as_me:$LINENO: result: $hard_links" >&5
8069 echo "${ECHO_T}$hard_links" >&6; }
8070 if test "$hard_links" = no; then
8071 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8073 need_locks=warn
8075 else
8076 need_locks=no
8079 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8082 runpath_var=
8083 allow_undefined_flag=
8084 enable_shared_with_static_runtimes=no
8085 archive_cmds=
8086 archive_expsym_cmds=
8087 old_archive_From_new_cmds=
8088 old_archive_from_expsyms_cmds=
8089 export_dynamic_flag_spec=
8090 whole_archive_flag_spec=
8091 thread_safe_flag_spec=
8092 hardcode_libdir_flag_spec=
8093 hardcode_libdir_flag_spec_ld=
8094 hardcode_libdir_separator=
8095 hardcode_direct=no
8096 hardcode_minus_L=no
8097 hardcode_shlibpath_var=unsupported
8098 link_all_deplibs=unknown
8099 hardcode_automatic=no
8100 module_cmds=
8101 module_expsym_cmds=
8102 always_export_symbols=no
8103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8104 # include_expsyms should be a list of space-separated symbols to be *always*
8105 # included in the symbol list
8106 include_expsyms=
8107 # exclude_expsyms can be an extended regexp of symbols to exclude
8108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8110 # as well as any symbol that contains `d'.
8111 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8113 # platforms (ab)use it in PIC code, but their linkers get confused if
8114 # the symbol is explicitly referenced. Since portable code cannot
8115 # rely on this symbol name, it's probably fine to never include it in
8116 # preloaded symbol tables.
8117 # Exclude shared library initialization/finalization symbols.
8118 extract_expsyms_cmds=
8119 # Just being paranoid about ensuring that cc_basename is set.
8120 for cc_temp in $compiler""; do
8121 case $cc_temp in
8122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8124 \-*) ;;
8125 *) break;;
8126 esac
8127 done
8128 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8130 case $host_os in
8131 cygwin* | mingw* | pw32*)
8132 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8133 # When not using gcc, we currently assume that we are using
8134 # Microsoft Visual C++.
8135 if test "$GCC" != yes; then
8136 with_gnu_ld=no
8139 interix*)
8140 # we just hope/assume this is gcc and not c89 (= MSVC++)
8141 with_gnu_ld=yes
8143 openbsd*)
8144 with_gnu_ld=no
8146 esac
8148 ld_shlibs=yes
8149 if test "$with_gnu_ld" = yes; then
8150 # If archive_cmds runs LD, not CC, wlarc should be empty
8151 wlarc='${wl}'
8153 # Set some defaults for GNU ld with shared library support. These
8154 # are reset later if shared libraries are not supported. Putting them
8155 # here allows them to be overridden if necessary.
8156 runpath_var=LD_RUN_PATH
8157 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8158 export_dynamic_flag_spec='${wl}--export-dynamic'
8159 # ancient GNU ld didn't support --whole-archive et. al.
8160 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8161 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8162 else
8163 whole_archive_flag_spec=
8165 supports_anon_versioning=no
8166 case `$LD -v 2>/dev/null` in
8167 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8168 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8169 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8170 *\ 2.11.*) ;; # other 2.11 versions
8171 *) supports_anon_versioning=yes ;;
8172 esac
8174 # See if GNU ld supports shared libraries.
8175 case $host_os in
8176 aix[3-9]*)
8177 # On AIX/PPC, the GNU linker is very broken
8178 if test "$host_cpu" != ia64; then
8179 ld_shlibs=no
8180 cat <<EOF 1>&2
8182 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8183 *** to be unable to reliably create shared libraries on AIX.
8184 *** Therefore, libtool is disabling shared libraries support. If you
8185 *** really care for shared libraries, you may want to modify your PATH
8186 *** so that a non-GNU linker is found, and then restart.
8192 amigaos*)
8193 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)'
8194 hardcode_libdir_flag_spec='-L$libdir'
8195 hardcode_minus_L=yes
8197 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8198 # that the semantics of dynamic libraries on AmigaOS, at least up
8199 # to version 4, is to share data among multiple programs linked
8200 # with the same dynamic library. Since this doesn't match the
8201 # behavior of shared libraries on other platforms, we can't use
8202 # them.
8203 ld_shlibs=no
8206 beos*)
8207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208 allow_undefined_flag=unsupported
8209 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8210 # support --undefined. This deserves some investigation. FIXME
8211 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212 else
8213 ld_shlibs=no
8217 cygwin* | mingw* | pw32*)
8218 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8219 # as there is no search path for DLLs.
8220 hardcode_libdir_flag_spec='-L$libdir'
8221 allow_undefined_flag=unsupported
8222 always_export_symbols=no
8223 enable_shared_with_static_runtimes=yes
8224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8226 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8228 # If the export-symbols file already is a .def file (1st line
8229 # is EXPORTS), use it as is; otherwise, prepend...
8230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8231 cp $export_symbols $output_objdir/$soname.def;
8232 else
8233 echo EXPORTS > $output_objdir/$soname.def;
8234 cat $export_symbols >> $output_objdir/$soname.def;
8236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8237 else
8238 ld_shlibs=no
8242 interix[3-9]*)
8243 hardcode_direct=no
8244 hardcode_shlibpath_var=no
8245 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8246 export_dynamic_flag_spec='${wl}-E'
8247 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8248 # Instead, shared libraries are loaded at an image base (0x10000000 by
8249 # default) and relocated if they conflict, which is a slow very memory
8250 # consuming and fragmenting process. To avoid this, we pick a random,
8251 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8252 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8254 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'
8257 gnu* | linux* | k*bsd*-gnu)
8258 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259 tmp_addflag=
8260 case $cc_basename,$host_cpu in
8261 pgcc*) # Portland Group C compiler
8262 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'
8263 tmp_addflag=' $pic_flag'
8265 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8266 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'
8267 tmp_addflag=' $pic_flag -Mnomain' ;;
8268 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8269 tmp_addflag=' -i_dynamic' ;;
8270 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8271 tmp_addflag=' -i_dynamic -nofor_main' ;;
8272 ifc* | ifort*) # Intel Fortran compiler
8273 tmp_addflag=' -nofor_main' ;;
8274 esac
8275 case `$CC -V 2>&1 | sed 5q` in
8276 *Sun\ C*) # Sun C 5.9
8277 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'
8278 tmp_sharedflag='-G' ;;
8279 *Sun\ F*) # Sun Fortran 8.3
8280 tmp_sharedflag='-G' ;;
8282 tmp_sharedflag='-shared' ;;
8283 esac
8284 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 if test $supports_anon_versioning = yes; then
8287 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8289 $echo "local: *; };" >> $output_objdir/$libname.ver~
8290 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8292 else
8293 ld_shlibs=no
8297 netbsd*)
8298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8299 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8300 wlarc=
8301 else
8302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8307 solaris*)
8308 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8309 ld_shlibs=no
8310 cat <<EOF 1>&2
8312 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8313 *** create shared libraries on Solaris systems. Therefore, libtool
8314 *** is disabling shared libraries support. We urge you to upgrade GNU
8315 *** binutils to release 2.9.1 or newer. Another option is to modify
8316 *** your PATH or compiler configuration so that the native linker is
8317 *** used, and then restart.
8320 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8323 else
8324 ld_shlibs=no
8328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8329 case `$LD -v 2>&1` in
8330 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8331 ld_shlibs=no
8332 cat <<_LT_EOF 1>&2
8334 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8335 *** reliably create shared libraries on SCO systems. Therefore, libtool
8336 *** is disabling shared libraries support. We urge you to upgrade GNU
8337 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8338 *** your PATH or compiler configuration so that the native linker is
8339 *** used, and then restart.
8341 _LT_EOF
8344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8345 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8348 else
8349 ld_shlibs=no
8352 esac
8355 sunos4*)
8356 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8357 wlarc=
8358 hardcode_direct=yes
8359 hardcode_shlibpath_var=no
8363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8366 else
8367 ld_shlibs=no
8370 esac
8372 if test "$ld_shlibs" = no; then
8373 runpath_var=
8374 hardcode_libdir_flag_spec=
8375 export_dynamic_flag_spec=
8376 whole_archive_flag_spec=
8378 else
8379 # PORTME fill in a description of your system's linker (not GNU ld)
8380 case $host_os in
8381 aix3*)
8382 allow_undefined_flag=unsupported
8383 always_export_symbols=yes
8384 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'
8385 # Note: this linker hardcodes the directories in LIBPATH if there
8386 # are no directories specified by -L.
8387 hardcode_minus_L=yes
8388 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8389 # Neither direct hardcoding nor static linking is supported with a
8390 # broken collect2.
8391 hardcode_direct=unsupported
8395 aix[4-9]*)
8396 if test "$host_cpu" = ia64; then
8397 # On IA64, the linker does run time linking by default, so we don't
8398 # have to do anything special.
8399 aix_use_runtimelinking=no
8400 exp_sym_flag='-Bexport'
8401 no_entry_flag=""
8402 else
8403 # If we're using GNU nm, then we don't want the "-C" option.
8404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8405 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8406 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'
8407 else
8408 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'
8410 aix_use_runtimelinking=no
8412 # Test if we are trying to use run time linking or normal
8413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8414 # need to do runtime linking.
8415 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8416 for ld_flag in $LDFLAGS; do
8417 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8418 aix_use_runtimelinking=yes
8419 break
8421 done
8423 esac
8425 exp_sym_flag='-bexport'
8426 no_entry_flag='-bnoentry'
8429 # When large executables or shared objects are built, AIX ld can
8430 # have problems creating the table of contents. If linking a library
8431 # or program results in "error TOC overflow" add -mminimal-toc to
8432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8435 archive_cmds=''
8436 hardcode_direct=yes
8437 hardcode_libdir_separator=':'
8438 link_all_deplibs=yes
8440 if test "$GCC" = yes; then
8441 case $host_os in aix4.[012]|aix4.[012].*)
8442 # We only want to do this on AIX 4.2 and lower, the check
8443 # below for broken collect2 doesn't work under 4.3+
8444 collect2name=`${CC} -print-prog-name=collect2`
8445 if test -f "$collect2name" && \
8446 strings "$collect2name" | grep resolve_lib_name >/dev/null
8447 then
8448 # We have reworked collect2
8450 else
8451 # We have old collect2
8452 hardcode_direct=unsupported
8453 # It fails to find uninstalled libraries when the uninstalled
8454 # path is not listed in the libpath. Setting hardcode_minus_L
8455 # to unsupported forces relinking
8456 hardcode_minus_L=yes
8457 hardcode_libdir_flag_spec='-L$libdir'
8458 hardcode_libdir_separator=
8461 esac
8462 shared_flag='-shared'
8463 if test "$aix_use_runtimelinking" = yes; then
8464 shared_flag="$shared_flag "'${wl}-G'
8466 else
8467 # not using gcc
8468 if test "$host_cpu" = ia64; then
8469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8470 # chokes on -Wl,-G. The following line is correct:
8471 shared_flag='-G'
8472 else
8473 if test "$aix_use_runtimelinking" = yes; then
8474 shared_flag='${wl}-G'
8475 else
8476 shared_flag='${wl}-bM:SRE'
8481 # It seems that -bexpall does not export symbols beginning with
8482 # underscore (_), so it is better to generate a list of symbols to export.
8483 always_export_symbols=yes
8484 if test "$aix_use_runtimelinking" = yes; then
8485 # Warning - without using the other runtime loading flags (-brtl),
8486 # -berok will link without error, but may produce a broken library.
8487 allow_undefined_flag='-berok'
8488 # Determine the default libpath from the value encoded in an empty executable.
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8497 main ()
8501 return 0;
8503 _ACEOF
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (ac_try="$ac_link"
8506 case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_link") 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest$ac_exeext &&
8521 $as_test_x conftest$ac_exeext; then
8523 lt_aix_libpath_sed='
8524 /Import File Strings/,/^$/ {
8525 /^0/ {
8526 s/^0 *\(.*\)$/\1/
8530 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8531 # Check for a 64-bit object if we didn't find anything.
8532 if test -z "$aix_libpath"; then
8533 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8535 else
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8543 conftest$ac_exeext conftest.$ac_ext
8544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8547 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"
8548 else
8549 if test "$host_cpu" = ia64; then
8550 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8551 allow_undefined_flag="-z nodefs"
8552 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"
8553 else
8554 # Determine the default libpath from the value encoded in an empty executable.
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8563 main ()
8567 return 0;
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (ac_try="$ac_link"
8572 case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_link") 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } && {
8584 test -z "$ac_c_werror_flag" ||
8585 test ! -s conftest.err
8586 } && test -s conftest$ac_exeext &&
8587 $as_test_x conftest$ac_exeext; then
8589 lt_aix_libpath_sed='
8590 /Import File Strings/,/^$/ {
8591 /^0/ {
8592 s/^0 *\(.*\)$/\1/
8596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8597 # Check for a 64-bit object if we didn't find anything.
8598 if test -z "$aix_libpath"; then
8599 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8609 conftest$ac_exeext conftest.$ac_ext
8610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8612 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8613 # Warning - without using the other run time loading flags,
8614 # -berok will link without error, but may produce a broken library.
8615 no_undefined_flag=' ${wl}-bernotok'
8616 allow_undefined_flag=' ${wl}-berok'
8617 # Exported symbols can be pulled into shared objects from archives
8618 whole_archive_flag_spec='$convenience'
8619 archive_cmds_need_lc=yes
8620 # This is similar to how AIX traditionally builds its shared libraries.
8621 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'
8626 amigaos*)
8627 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)'
8628 hardcode_libdir_flag_spec='-L$libdir'
8629 hardcode_minus_L=yes
8630 # see comment about different semantics on the GNU ld section
8631 ld_shlibs=no
8634 bsdi[45]*)
8635 export_dynamic_flag_spec=-rdynamic
8638 cygwin* | mingw* | pw32*)
8639 # When not using gcc, we currently assume that we are using
8640 # Microsoft Visual C++.
8641 # hardcode_libdir_flag_spec is actually meaningless, as there is
8642 # no search path for DLLs.
8643 hardcode_libdir_flag_spec=' '
8644 allow_undefined_flag=unsupported
8645 # Tell ltmain to make .lib files, not .a files.
8646 libext=lib
8647 # Tell ltmain to make .dll files, not .so files.
8648 shrext_cmds=".dll"
8649 # FIXME: Setting linknames here is a bad hack.
8650 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8651 # The linker will automatically build a .lib file if we build a DLL.
8652 old_archive_From_new_cmds='true'
8653 # FIXME: Should let the user specify the lib program.
8654 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8655 fix_srcfile_path='`cygpath -w "$srcfile"`'
8656 enable_shared_with_static_runtimes=yes
8659 darwin* | rhapsody*)
8660 case $host_os in
8661 rhapsody* | darwin1.[012])
8662 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8664 *) # Darwin 1.3 on
8665 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8666 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8667 else
8668 case ${MACOSX_DEPLOYMENT_TARGET} in
8669 10.[012])
8670 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8672 10.*)
8673 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8675 esac
8678 esac
8679 archive_cmds_need_lc=no
8680 hardcode_direct=no
8681 hardcode_automatic=yes
8682 hardcode_shlibpath_var=unsupported
8683 whole_archive_flag_spec=''
8684 link_all_deplibs=yes
8685 if test "$GCC" = yes ; then
8686 output_verbose_link_cmd='echo'
8687 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8688 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8689 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}"
8690 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}"
8691 else
8692 case $cc_basename in
8693 xlc*)
8694 output_verbose_link_cmd='echo'
8695 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8696 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8698 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}'
8699 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}'
8702 ld_shlibs=no
8704 esac
8708 dgux*)
8709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8710 hardcode_libdir_flag_spec='-L$libdir'
8711 hardcode_shlibpath_var=no
8714 freebsd1*)
8715 ld_shlibs=no
8718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8719 # support. Future versions do this automatically, but an explicit c++rt0.o
8720 # does not break anything, and helps significantly (at the cost of a little
8721 # extra space).
8722 freebsd2.2*)
8723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8724 hardcode_libdir_flag_spec='-R$libdir'
8725 hardcode_direct=yes
8726 hardcode_shlibpath_var=no
8729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8730 freebsd2*)
8731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8732 hardcode_direct=yes
8733 hardcode_minus_L=yes
8734 hardcode_shlibpath_var=no
8737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8738 freebsd* | dragonfly*)
8739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8740 hardcode_libdir_flag_spec='-R$libdir'
8741 hardcode_direct=yes
8742 hardcode_shlibpath_var=no
8745 hpux9*)
8746 if test "$GCC" = yes; then
8747 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'
8748 else
8749 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'
8751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8752 hardcode_libdir_separator=:
8753 hardcode_direct=yes
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L=yes
8758 export_dynamic_flag_spec='${wl}-E'
8761 hpux10*)
8762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764 else
8765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8767 if test "$with_gnu_ld" = no; then
8768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769 hardcode_libdir_separator=:
8771 hardcode_direct=yes
8772 export_dynamic_flag_spec='${wl}-E'
8774 # hardcode_minus_L: Not really in the search PATH,
8775 # but as the default location of the library.
8776 hardcode_minus_L=yes
8780 hpux11*)
8781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8782 case $host_cpu in
8783 hppa*64*)
8784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786 ia64*)
8787 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8792 esac
8793 else
8794 case $host_cpu in
8795 hppa*64*)
8796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8798 ia64*)
8799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8804 esac
8806 if test "$with_gnu_ld" = no; then
8807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8808 hardcode_libdir_separator=:
8810 case $host_cpu in
8811 hppa*64*|ia64*)
8812 hardcode_libdir_flag_spec_ld='+b $libdir'
8813 hardcode_direct=no
8814 hardcode_shlibpath_var=no
8817 hardcode_direct=yes
8818 export_dynamic_flag_spec='${wl}-E'
8820 # hardcode_minus_L: Not really in the search PATH,
8821 # but as the default location of the library.
8822 hardcode_minus_L=yes
8824 esac
8828 irix5* | irix6* | nonstopux*)
8829 if test "$GCC" = yes; then
8830 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'
8831 else
8832 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'
8833 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836 hardcode_libdir_separator=:
8837 link_all_deplibs=yes
8840 netbsd*)
8841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8843 else
8844 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8846 hardcode_libdir_flag_spec='-R$libdir'
8847 hardcode_direct=yes
8848 hardcode_shlibpath_var=no
8851 newsos6)
8852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_direct=yes
8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855 hardcode_libdir_separator=:
8856 hardcode_shlibpath_var=no
8859 openbsd*)
8860 if test -f /usr/libexec/ld.so; then
8861 hardcode_direct=yes
8862 hardcode_shlibpath_var=no
8863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8865 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8867 export_dynamic_flag_spec='${wl}-E'
8868 else
8869 case $host_os in
8870 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8872 hardcode_libdir_flag_spec='-R$libdir'
8875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8878 esac
8880 else
8881 ld_shlibs=no
8885 os2*)
8886 hardcode_libdir_flag_spec='-L$libdir'
8887 hardcode_minus_L=yes
8888 allow_undefined_flag=unsupported
8889 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'
8890 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8893 osf3*)
8894 if test "$GCC" = yes; then
8895 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8896 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'
8897 else
8898 allow_undefined_flag=' -expect_unresolved \*'
8899 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'
8901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8902 hardcode_libdir_separator=:
8905 osf4* | osf5*) # as osf3* with the addition of -msym flag
8906 if test "$GCC" = yes; then
8907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8908 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'
8909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8910 else
8911 allow_undefined_flag=' -expect_unresolved \*'
8912 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'
8913 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8914 $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'
8916 # Both c and cxx compiler support -rpath directly
8917 hardcode_libdir_flag_spec='-rpath $libdir'
8919 hardcode_libdir_separator=:
8922 solaris*)
8923 no_undefined_flag=' -z text'
8924 if test "$GCC" = yes; then
8925 wlarc='${wl}'
8926 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8928 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8929 else
8930 wlarc=''
8931 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8935 hardcode_libdir_flag_spec='-R$libdir'
8936 hardcode_shlibpath_var=no
8937 case $host_os in
8938 solaris2.[0-5] | solaris2.[0-5].*) ;;
8940 # The compiler driver will combine and reorder linker options,
8941 # but understands `-z linker_flag'. GCC discards it without `$wl',
8942 # but is careful enough not to reorder.
8943 # Supported since Solaris 2.6 (maybe 2.5.1?)
8944 if test "$GCC" = yes; then
8945 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8946 else
8947 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8950 esac
8951 link_all_deplibs=yes
8954 sunos4*)
8955 if test "x$host_vendor" = xsequent; then
8956 # Use $CC to link under sequent, because it throws in some extra .o
8957 # files that make .init and .fini sections work.
8958 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8959 else
8960 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_libdir_flag_spec='-L$libdir'
8963 hardcode_direct=yes
8964 hardcode_minus_L=yes
8965 hardcode_shlibpath_var=no
8968 sysv4)
8969 case $host_vendor in
8970 sni)
8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_direct=yes # is this really true???
8974 siemens)
8975 ## LD is ld it makes a PLAMLIB
8976 ## CC just makes a GrossModule.
8977 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8978 reload_cmds='$CC -r -o $output$reload_objs'
8979 hardcode_direct=no
8981 motorola)
8982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8985 esac
8986 runpath_var='LD_RUN_PATH'
8987 hardcode_shlibpath_var=no
8990 sysv4.3*)
8991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992 hardcode_shlibpath_var=no
8993 export_dynamic_flag_spec='-Bexport'
8996 sysv4*MP*)
8997 if test -d /usr/nec; then
8998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8999 hardcode_shlibpath_var=no
9000 runpath_var=LD_RUN_PATH
9001 hardcode_runpath_var=yes
9002 ld_shlibs=yes
9006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9007 no_undefined_flag='${wl}-z,text'
9008 archive_cmds_need_lc=no
9009 hardcode_shlibpath_var=no
9010 runpath_var='LD_RUN_PATH'
9012 if test "$GCC" = yes; then
9013 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 else
9016 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9021 sysv5* | sco3.2v5* | sco5v6*)
9022 # Note: We can NOT use -z defs as we might desire, because we do not
9023 # link with -lc, and that would cause any symbols used from libc to
9024 # always be unresolved, which means just about no library would
9025 # ever link correctly. If we're not using GNU ld we use -z text
9026 # though, which does catch some bad symbols but isn't as heavy-handed
9027 # as -z defs.
9028 no_undefined_flag='${wl}-z,text'
9029 allow_undefined_flag='${wl}-z,nodefs'
9030 archive_cmds_need_lc=no
9031 hardcode_shlibpath_var=no
9032 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9033 hardcode_libdir_separator=':'
9034 link_all_deplibs=yes
9035 export_dynamic_flag_spec='${wl}-Bexport'
9036 runpath_var='LD_RUN_PATH'
9038 if test "$GCC" = yes; then
9039 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9041 else
9042 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9043 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 uts4*)
9048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049 hardcode_libdir_flag_spec='-L$libdir'
9050 hardcode_shlibpath_var=no
9054 ld_shlibs=no
9056 esac
9059 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9060 echo "${ECHO_T}$ld_shlibs" >&6; }
9061 test "$ld_shlibs" = no && can_build_shared=no
9064 # Do we need to explicitly link libc?
9066 case "x$archive_cmds_need_lc" in
9067 x|xyes)
9068 # Assume -lc should be added
9069 archive_cmds_need_lc=yes
9071 if test "$enable_shared" = yes && test "$GCC" = yes; then
9072 case $archive_cmds in
9073 *'~'*)
9074 # FIXME: we may have to deal with multi-command sequences.
9076 '$CC '*)
9077 # Test whether the compiler implicitly links with -lc since on some
9078 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9079 # to ld, don't add -lc before -lgcc.
9080 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9081 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9082 $rm conftest*
9083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9086 (eval $ac_compile) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } 2>conftest.err; then
9090 soname=conftest
9091 lib=conftest
9092 libobjs=conftest.$ac_objext
9093 deplibs=
9094 wl=$lt_prog_compiler_wl
9095 pic_flag=$lt_prog_compiler_pic
9096 compiler_flags=-v
9097 linker_flags=-v
9098 verstring=
9099 output_objdir=.
9100 libname=conftest
9101 lt_save_allow_undefined_flag=$allow_undefined_flag
9102 allow_undefined_flag=
9103 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9104 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }
9108 then
9109 archive_cmds_need_lc=no
9110 else
9111 archive_cmds_need_lc=yes
9113 allow_undefined_flag=$lt_save_allow_undefined_flag
9114 else
9115 cat conftest.err 1>&5
9117 $rm conftest*
9118 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9119 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9121 esac
9124 esac
9126 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9127 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9128 library_names_spec=
9129 libname_spec='lib$name'
9130 soname_spec=
9131 shrext_cmds=".so"
9132 postinstall_cmds=
9133 postuninstall_cmds=
9134 finish_cmds=
9135 finish_eval=
9136 shlibpath_var=
9137 shlibpath_overrides_runpath=unknown
9138 version_type=none
9139 dynamic_linker="$host_os ld.so"
9140 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9142 if test "$GCC" = yes; then
9143 case $host_os in
9144 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9145 *) lt_awk_arg="/^libraries:/" ;;
9146 esac
9147 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9148 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9149 # if the path contains ";" then we assume it to be the separator
9150 # otherwise default to the standard path separator (i.e. ":") - it is
9151 # assumed that no part of a normal pathname contains ";" but that should
9152 # okay in the real world where ";" in dirpaths is itself problematic.
9153 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9154 else
9155 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9157 # Ok, now we have the path, separated by spaces, we can step through it
9158 # and add multilib dir if necessary.
9159 lt_tmp_lt_search_path_spec=
9160 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9161 for lt_sys_path in $lt_search_path_spec; do
9162 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9163 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9164 else
9165 test -d "$lt_sys_path" && \
9166 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9168 done
9169 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9170 BEGIN {RS=" "; FS="/|\n";} {
9171 lt_foo="";
9172 lt_count=0;
9173 for (lt_i = NF; lt_i > 0; lt_i--) {
9174 if ($lt_i != "" && $lt_i != ".") {
9175 if ($lt_i == "..") {
9176 lt_count++;
9177 } else {
9178 if (lt_count == 0) {
9179 lt_foo="/" $lt_i lt_foo;
9180 } else {
9181 lt_count--;
9186 if (lt_foo != "") { lt_freq[lt_foo]++; }
9187 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9189 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9190 else
9191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9193 need_lib_prefix=unknown
9194 hardcode_into_libs=no
9196 # when you set need_version to no, make sure it does not cause -set_version
9197 # flags to be left without arguments
9198 need_version=unknown
9200 case $host_os in
9201 aix3*)
9202 version_type=linux
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9204 shlibpath_var=LIBPATH
9206 # AIX 3 has no versioning support, so we append a major version to the name.
9207 soname_spec='${libname}${release}${shared_ext}$major'
9210 aix[4-9]*)
9211 version_type=linux
9212 need_lib_prefix=no
9213 need_version=no
9214 hardcode_into_libs=yes
9215 if test "$host_cpu" = ia64; then
9216 # AIX 5 supports IA64
9217 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 else
9220 # With GCC up to 2.95.x, collect2 would create an import file
9221 # for dependence libraries. The import file would start with
9222 # the line `#! .'. This would cause the generated library to
9223 # depend on `.', always an invalid library. This was fixed in
9224 # development snapshots of GCC prior to 3.0.
9225 case $host_os in
9226 aix4 | aix4.[01] | aix4.[01].*)
9227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9228 echo ' yes '
9229 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9231 else
9232 can_build_shared=no
9235 esac
9236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9237 # soname into executable. Probably we can add versioning support to
9238 # collect2, so additional links can be useful in future.
9239 if test "$aix_use_runtimelinking" = yes; then
9240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9241 # instead of lib<name>.a to let people know that these are not
9242 # typical AIX shared libraries.
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 else
9245 # We preserve .a as extension for shared libraries through AIX4.2
9246 # and later when we are not doing run time linking.
9247 library_names_spec='${libname}${release}.a $libname.a'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LIBPATH
9254 amigaos*)
9255 library_names_spec='$libname.ixlibrary $libname.a'
9256 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9257 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'
9260 beos*)
9261 library_names_spec='${libname}${shared_ext}'
9262 dynamic_linker="$host_os ld.so"
9263 shlibpath_var=LIBRARY_PATH
9266 bsdi[45]*)
9267 version_type=linux
9268 need_version=no
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9274 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9275 # the default ld.so.conf also contains /usr/contrib/lib and
9276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9277 # libtool to hard-code these into programs
9280 cygwin* | mingw* | pw32*)
9281 version_type=windows
9282 shrext_cmds=".dll"
9283 need_version=no
9284 need_lib_prefix=no
9286 case $GCC,$host_os in
9287 yes,cygwin* | yes,mingw* | yes,pw32*)
9288 library_names_spec='$libname.dll.a'
9289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9290 postinstall_cmds='base_file=`basename \${file}`~
9291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9292 dldir=$destdir/`dirname \$dlpath`~
9293 test -d \$dldir || mkdir -p \$dldir~
9294 $install_prog $dir/$dlname \$dldir/$dlname~
9295 chmod a+x \$dldir/$dlname'
9296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9297 dlpath=$dir/\$dldll~
9298 $rm \$dlpath'
9299 shlibpath_overrides_runpath=yes
9301 case $host_os in
9302 cygwin*)
9303 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9305 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9307 mingw*)
9308 # MinGW DLLs use traditional 'lib' prefix
9309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9311 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9312 # It is most probably a Windows format PATH printed by
9313 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9314 # path with ; separators, and with drive letters. We can handle the
9315 # drive letters (cygwin fileutils understands them), so leave them,
9316 # especially as we might pass files found there to a mingw objdump,
9317 # which wouldn't understand a cygwinified path. Ahh.
9318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9319 else
9320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9323 pw32*)
9324 # pw32 DLLs use 'pw' prefix rather than 'lib'
9325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9327 esac
9331 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9333 esac
9334 dynamic_linker='Win32 ld.exe'
9335 # FIXME: first we should search . and the directory the executable is in
9336 shlibpath_var=PATH
9339 darwin* | rhapsody*)
9340 dynamic_linker="$host_os dyld"
9341 version_type=darwin
9342 need_lib_prefix=no
9343 need_version=no
9344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9345 soname_spec='${libname}${release}${major}$shared_ext'
9346 shlibpath_overrides_runpath=yes
9347 shlibpath_var=DYLD_LIBRARY_PATH
9348 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9350 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9351 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9354 dgux*)
9355 version_type=linux
9356 need_lib_prefix=no
9357 need_version=no
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 shlibpath_var=LD_LIBRARY_PATH
9363 freebsd1*)
9364 dynamic_linker=no
9367 freebsd* | dragonfly*)
9368 # DragonFly does not have aout. When/if they implement a new
9369 # versioning mechanism, adjust this.
9370 if test -x /usr/bin/objformat; then
9371 objformat=`/usr/bin/objformat`
9372 else
9373 case $host_os in
9374 freebsd[123]*) objformat=aout ;;
9375 *) objformat=elf ;;
9376 esac
9378 version_type=freebsd-$objformat
9379 case $version_type in
9380 freebsd-elf*)
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9382 need_version=no
9383 need_lib_prefix=no
9385 freebsd-*)
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9387 need_version=yes
9389 esac
9390 shlibpath_var=LD_LIBRARY_PATH
9391 case $host_os in
9392 freebsd2*)
9393 shlibpath_overrides_runpath=yes
9395 freebsd3.[01]* | freebsdelf3.[01]*)
9396 shlibpath_overrides_runpath=yes
9397 hardcode_into_libs=yes
9399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9401 shlibpath_overrides_runpath=no
9402 hardcode_into_libs=yes
9404 *) # from 4.6 on, and DragonFly
9405 shlibpath_overrides_runpath=yes
9406 hardcode_into_libs=yes
9408 esac
9411 gnu*)
9412 version_type=linux
9413 need_lib_prefix=no
9414 need_version=no
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 hardcode_into_libs=yes
9421 hpux9* | hpux10* | hpux11*)
9422 # Give a soname corresponding to the major version so that dld.sl refuses to
9423 # link against other versions.
9424 version_type=sunos
9425 need_lib_prefix=no
9426 need_version=no
9427 case $host_cpu in
9428 ia64*)
9429 shrext_cmds='.so'
9430 hardcode_into_libs=yes
9431 dynamic_linker="$host_os dld.so"
9432 shlibpath_var=LD_LIBRARY_PATH
9433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 if test "X$HPUX_IA64_MODE" = X32; then
9437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9438 else
9439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9443 hppa*64*)
9444 shrext_cmds='.sl'
9445 hardcode_into_libs=yes
9446 dynamic_linker="$host_os dld.sl"
9447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455 shrext_cmds='.sl'
9456 dynamic_linker="$host_os dld.sl"
9457 shlibpath_var=SHLIB_PATH
9458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9462 esac
9463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9464 postinstall_cmds='chmod 555 $lib'
9467 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=no
9476 hardcode_into_libs=yes
9479 irix5* | irix6* | nonstopux*)
9480 case $host_os in
9481 nonstopux*) version_type=nonstopux ;;
9483 if test "$lt_cv_prog_gnu_ld" = yes; then
9484 version_type=linux
9485 else
9486 version_type=irix
9487 fi ;;
9488 esac
9489 need_lib_prefix=no
9490 need_version=no
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9493 case $host_os in
9494 irix5* | nonstopux*)
9495 libsuff= shlibsuff=
9498 case $LD in # libtool.m4 will add one of these switches to LD
9499 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9500 libsuff= shlibsuff= libmagic=32-bit;;
9501 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9502 libsuff=32 shlibsuff=N32 libmagic=N32;;
9503 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9504 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9505 *) libsuff= shlibsuff= libmagic=never-match;;
9506 esac
9508 esac
9509 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9510 shlibpath_overrides_runpath=no
9511 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9512 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9513 hardcode_into_libs=yes
9516 # No shared lib support for Linux oldld, aout, or coff.
9517 linux*oldld* | linux*aout* | linux*coff*)
9518 dynamic_linker=no
9521 # This must be Linux ELF.
9522 linux* | k*bsd*-gnu)
9523 version_type=linux
9524 need_lib_prefix=no
9525 need_version=no
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9529 shlibpath_var=LD_LIBRARY_PATH
9530 shlibpath_overrides_runpath=no
9531 # This implies no fast_install, which is unacceptable.
9532 # Some rework will be needed to allow for fast_install
9533 # before this can be enabled.
9534 hardcode_into_libs=yes
9536 # Append ld.so.conf contents to the search path
9537 if test -f /etc/ld.so.conf; then
9538 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' ' '`
9539 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9542 # We used to test for /lib/ld.so.1 and disable shared libraries on
9543 # powerpc, because MkLinux only supported shared libraries with the
9544 # GNU dynamic linker. Since this was broken with cross compilers,
9545 # most powerpc-linux boxes support dynamic linking these days and
9546 # people can always --disable-shared, the test was removed, and we
9547 # assume the GNU/Linux dynamic linker is in use.
9548 dynamic_linker='GNU/Linux ld.so'
9551 netbsd*)
9552 version_type=sunos
9553 need_lib_prefix=no
9554 need_version=no
9555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9558 dynamic_linker='NetBSD (a.out) ld.so'
9559 else
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 dynamic_linker='NetBSD ld.elf_so'
9564 shlibpath_var=LD_LIBRARY_PATH
9565 shlibpath_overrides_runpath=yes
9566 hardcode_into_libs=yes
9569 newsos6)
9570 version_type=linux
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=yes
9576 nto-qnx*)
9577 version_type=linux
9578 need_lib_prefix=no
9579 need_version=no
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 shlibpath_overrides_runpath=yes
9586 openbsd*)
9587 version_type=sunos
9588 sys_lib_dlsearch_path_spec="/usr/lib"
9589 need_lib_prefix=no
9590 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9591 case $host_os in
9592 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9593 *) need_version=no ;;
9594 esac
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9599 case $host_os in
9600 openbsd2.[89] | openbsd2.[89].*)
9601 shlibpath_overrides_runpath=no
9604 shlibpath_overrides_runpath=yes
9606 esac
9607 else
9608 shlibpath_overrides_runpath=yes
9612 os2*)
9613 libname_spec='$name'
9614 shrext_cmds=".dll"
9615 need_lib_prefix=no
9616 library_names_spec='$libname${shared_ext} $libname.a'
9617 dynamic_linker='OS/2 ld.exe'
9618 shlibpath_var=LIBPATH
9621 osf3* | osf4* | osf5*)
9622 version_type=osf
9623 need_lib_prefix=no
9624 need_version=no
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9629 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9632 rdos*)
9633 dynamic_linker=no
9636 solaris*)
9637 version_type=linux
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=yes
9644 hardcode_into_libs=yes
9645 # ldd complains unless libraries are executable
9646 postinstall_cmds='chmod +x $lib'
9649 sunos4*)
9650 version_type=sunos
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9652 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=yes
9655 if test "$with_gnu_ld" = yes; then
9656 need_lib_prefix=no
9658 need_version=yes
9661 sysv4 | sysv4.3*)
9662 version_type=linux
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 case $host_vendor in
9667 sni)
9668 shlibpath_overrides_runpath=no
9669 need_lib_prefix=no
9670 export_dynamic_flag_spec='${wl}-Blargedynsym'
9671 runpath_var=LD_RUN_PATH
9673 siemens)
9674 need_lib_prefix=no
9676 motorola)
9677 need_lib_prefix=no
9678 need_version=no
9679 shlibpath_overrides_runpath=no
9680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9682 esac
9685 sysv4*MP*)
9686 if test -d /usr/nec ;then
9687 version_type=linux
9688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9689 soname_spec='$libname${shared_ext}.$major'
9690 shlibpath_var=LD_LIBRARY_PATH
9694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9695 version_type=freebsd-elf
9696 need_lib_prefix=no
9697 need_version=no
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 hardcode_into_libs=yes
9702 if test "$with_gnu_ld" = yes; then
9703 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9704 shlibpath_overrides_runpath=no
9705 else
9706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9707 shlibpath_overrides_runpath=yes
9708 case $host_os in
9709 sco3.2v5*)
9710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9712 esac
9714 sys_lib_dlsearch_path_spec='/usr/lib'
9717 uts4*)
9718 version_type=linux
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 shlibpath_var=LD_LIBRARY_PATH
9725 dynamic_linker=no
9727 esac
9728 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9729 echo "${ECHO_T}$dynamic_linker" >&6; }
9730 test "$dynamic_linker" = no && can_build_shared=no
9732 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9738 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9739 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9745 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9747 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9748 if test "$GCC" = yes; then
9749 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9752 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9753 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9754 hardcode_action=
9755 if test -n "$hardcode_libdir_flag_spec" || \
9756 test -n "$runpath_var" || \
9757 test "X$hardcode_automatic" = "Xyes" ; then
9759 # We can hardcode non-existant directories.
9760 if test "$hardcode_direct" != no &&
9761 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9762 # have to relink, otherwise we might link with an installed library
9763 # when we should be linking with a yet-to-be-installed one
9764 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9765 test "$hardcode_minus_L" != no; then
9766 # Linking always hardcodes the temporary library directory.
9767 hardcode_action=relink
9768 else
9769 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9770 hardcode_action=immediate
9772 else
9773 # We cannot hardcode anything, or else we can only hardcode existing
9774 # directories.
9775 hardcode_action=unsupported
9777 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9778 echo "${ECHO_T}$hardcode_action" >&6; }
9780 if test "$hardcode_action" = relink; then
9781 # Fast installation is not supported
9782 enable_fast_install=no
9783 elif test "$shlibpath_overrides_runpath" = yes ||
9784 test "$enable_shared" = no; then
9785 # Fast installation is not necessary
9786 enable_fast_install=needless
9789 striplib=
9790 old_striplib=
9791 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9792 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9793 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9795 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9796 { echo "$as_me:$LINENO: result: yes" >&5
9797 echo "${ECHO_T}yes" >&6; }
9798 else
9799 # FIXME - insert some real tests, host_os isn't really good enough
9800 case $host_os in
9801 darwin*)
9802 if test -n "$STRIP" ; then
9803 striplib="$STRIP -x"
9804 old_striplib="$STRIP -S"
9805 { echo "$as_me:$LINENO: result: yes" >&5
9806 echo "${ECHO_T}yes" >&6; }
9807 else
9808 { echo "$as_me:$LINENO: result: no" >&5
9809 echo "${ECHO_T}no" >&6; }
9813 { echo "$as_me:$LINENO: result: no" >&5
9814 echo "${ECHO_T}no" >&6; }
9816 esac
9819 if test "x$enable_dlopen" != xyes; then
9820 enable_dlopen=unknown
9821 enable_dlopen_self=unknown
9822 enable_dlopen_self_static=unknown
9823 else
9824 lt_cv_dlopen=no
9825 lt_cv_dlopen_libs=
9827 case $host_os in
9828 beos*)
9829 lt_cv_dlopen="load_add_on"
9830 lt_cv_dlopen_libs=
9831 lt_cv_dlopen_self=yes
9834 mingw* | pw32*)
9835 lt_cv_dlopen="LoadLibrary"
9836 lt_cv_dlopen_libs=
9839 cygwin*)
9840 lt_cv_dlopen="dlopen"
9841 lt_cv_dlopen_libs=
9844 darwin*)
9845 # if libdl is installed we need to link against it
9846 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9847 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851 ac_check_lib_save_LIBS=$LIBS
9852 LIBS="-ldl $LIBS"
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 char dlopen ();
9868 main ()
9870 return dlopen ();
9872 return 0;
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext &&
9892 $as_test_x conftest$ac_exeext; then
9893 ac_cv_lib_dl_dlopen=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 ac_cv_lib_dl_dlopen=no
9901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9906 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9907 if test $ac_cv_lib_dl_dlopen = yes; then
9908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9909 else
9911 lt_cv_dlopen="dyld"
9912 lt_cv_dlopen_libs=
9913 lt_cv_dlopen_self=yes
9920 { echo "$as_me:$LINENO: checking for shl_load" >&5
9921 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9922 if test "${ac_cv_func_shl_load+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9933 #define shl_load innocuous_shl_load
9935 /* System header to define __stub macros and hopefully few prototypes,
9936 which can conflict with char shl_load (); below.
9937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9938 <limits.h> exists even on freestanding compilers. */
9940 #ifdef __STDC__
9941 # include <limits.h>
9942 #else
9943 # include <assert.h>
9944 #endif
9946 #undef shl_load
9948 /* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
9951 #ifdef __cplusplus
9952 extern "C"
9953 #endif
9954 char shl_load ();
9955 /* The GNU C library defines this for functions which it implements
9956 to always fail with ENOSYS. Some functions are actually named
9957 something starting with __ and the normal name is an alias. */
9958 #if defined __stub_shl_load || defined __stub___shl_load
9959 choke me
9960 #endif
9963 main ()
9965 return shl_load ();
9967 return 0;
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9972 case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_link") 2>conftest.er1
9978 ac_status=$?
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && {
9984 test -z "$ac_c_werror_flag" ||
9985 test ! -s conftest.err
9986 } && test -s conftest$ac_exeext &&
9987 $as_test_x conftest$ac_exeext; then
9988 ac_cv_func_shl_load=yes
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_cv_func_shl_load=no
9996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9997 conftest$ac_exeext conftest.$ac_ext
9999 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10000 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10001 if test $ac_cv_func_shl_load = yes; then
10002 lt_cv_dlopen="shl_load"
10003 else
10004 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10005 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10006 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 ac_check_lib_save_LIBS=$LIBS
10010 LIBS="-ldld $LIBS"
10011 cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h. */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char shl_load ();
10026 main ()
10028 return shl_load ();
10030 return 0;
10032 _ACEOF
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (ac_try="$ac_link"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_link") 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && {
10047 test -z "$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 } && test -s conftest$ac_exeext &&
10050 $as_test_x conftest$ac_exeext; then
10051 ac_cv_lib_dld_shl_load=yes
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_cv_lib_dld_shl_load=no
10059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10063 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10064 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10065 if test $ac_cv_lib_dld_shl_load = yes; then
10066 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10067 else
10068 { echo "$as_me:$LINENO: checking for dlopen" >&5
10069 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10070 if test "${ac_cv_func_dlopen+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10081 #define dlopen innocuous_dlopen
10083 /* System header to define __stub macros and hopefully few prototypes,
10084 which can conflict with char dlopen (); below.
10085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10086 <limits.h> exists even on freestanding compilers. */
10088 #ifdef __STDC__
10089 # include <limits.h>
10090 #else
10091 # include <assert.h>
10092 #endif
10094 #undef dlopen
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 char dlopen ();
10103 /* The GNU C library defines this for functions which it implements
10104 to always fail with ENOSYS. Some functions are actually named
10105 something starting with __ and the normal name is an alias. */
10106 #if defined __stub_dlopen || defined __stub___dlopen
10107 choke me
10108 #endif
10111 main ()
10113 return dlopen ();
10115 return 0;
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (ac_try="$ac_link"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_link") 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } && {
10132 test -z "$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 } && test -s conftest$ac_exeext &&
10135 $as_test_x conftest$ac_exeext; then
10136 ac_cv_func_dlopen=yes
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_cv_func_dlopen=no
10144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10145 conftest$ac_exeext conftest.$ac_ext
10147 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10148 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10149 if test $ac_cv_func_dlopen = yes; then
10150 lt_cv_dlopen="dlopen"
10151 else
10152 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10153 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-ldl $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 char dlopen ();
10174 main ()
10176 return dlopen ();
10178 return 0;
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_c_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest$ac_exeext &&
10198 $as_test_x conftest$ac_exeext; then
10199 ac_cv_lib_dl_dlopen=yes
10200 else
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_lib_dl_dlopen=no
10207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10212 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10213 if test $ac_cv_lib_dl_dlopen = yes; then
10214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10215 else
10216 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10217 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10218 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221 ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-lsvld $LIBS"
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10230 /* Override any GCC internal prototype to avoid an error.
10231 Use char because int might match the return type of a GCC
10232 builtin and then its argument prototype would still apply. */
10233 #ifdef __cplusplus
10234 extern "C"
10235 #endif
10236 char dlopen ();
10238 main ()
10240 return dlopen ();
10242 return 0;
10244 _ACEOF
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_link") 2>conftest.er1
10253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && {
10259 test -z "$ac_c_werror_flag" ||
10260 test ! -s conftest.err
10261 } && test -s conftest$ac_exeext &&
10262 $as_test_x conftest$ac_exeext; then
10263 ac_cv_lib_svld_dlopen=yes
10264 else
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_lib_svld_dlopen=no
10271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10272 conftest$ac_exeext conftest.$ac_ext
10273 LIBS=$ac_check_lib_save_LIBS
10275 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10276 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10277 if test $ac_cv_lib_svld_dlopen = yes; then
10278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10279 else
10280 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10281 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10282 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285 ac_check_lib_save_LIBS=$LIBS
10286 LIBS="-ldld $LIBS"
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10294 /* Override any GCC internal prototype to avoid an error.
10295 Use char because int might match the return type of a GCC
10296 builtin and then its argument prototype would still apply. */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 char dld_link ();
10302 main ()
10304 return dld_link ();
10306 return 0;
10308 _ACEOF
10309 rm -f conftest.$ac_objext conftest$ac_exeext
10310 if { (ac_try="$ac_link"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314 esac
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_link") 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest$ac_exeext &&
10326 $as_test_x conftest$ac_exeext; then
10327 ac_cv_lib_dld_dld_link=yes
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ac_cv_lib_dld_dld_link=no
10335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10336 conftest$ac_exeext conftest.$ac_ext
10337 LIBS=$ac_check_lib_save_LIBS
10339 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10340 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10341 if test $ac_cv_lib_dld_dld_link = yes; then
10342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10361 esac
10363 if test "x$lt_cv_dlopen" != xno; then
10364 enable_dlopen=yes
10365 else
10366 enable_dlopen=no
10369 case $lt_cv_dlopen in
10370 dlopen)
10371 save_CPPFLAGS="$CPPFLAGS"
10372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10374 save_LDFLAGS="$LDFLAGS"
10375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10377 save_LIBS="$LIBS"
10378 LIBS="$lt_cv_dlopen_libs $LIBS"
10380 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10381 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10382 if test "${lt_cv_dlopen_self+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385 if test "$cross_compiling" = yes; then :
10386 lt_cv_dlopen_self=cross
10387 else
10388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10389 lt_status=$lt_dlunknown
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10391 "configure"
10392 #include "confdefs.h"
10394 #if HAVE_DLFCN_H
10395 #include <dlfcn.h>
10396 #endif
10398 #include <stdio.h>
10400 #ifdef RTLD_GLOBAL
10401 # define LT_DLGLOBAL RTLD_GLOBAL
10402 #else
10403 # ifdef DL_GLOBAL
10404 # define LT_DLGLOBAL DL_GLOBAL
10405 # else
10406 # define LT_DLGLOBAL 0
10407 # endif
10408 #endif
10410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10411 find out it does not work in some platform. */
10412 #ifndef LT_DLLAZY_OR_NOW
10413 # ifdef RTLD_LAZY
10414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10415 # else
10416 # ifdef DL_LAZY
10417 # define LT_DLLAZY_OR_NOW DL_LAZY
10418 # else
10419 # ifdef RTLD_NOW
10420 # define LT_DLLAZY_OR_NOW RTLD_NOW
10421 # else
10422 # ifdef DL_NOW
10423 # define LT_DLLAZY_OR_NOW DL_NOW
10424 # else
10425 # define LT_DLLAZY_OR_NOW 0
10426 # endif
10427 # endif
10428 # endif
10429 # endif
10430 #endif
10432 #ifdef __cplusplus
10433 extern "C" void exit (int);
10434 #endif
10436 void fnord() { int i=42;}
10437 int main ()
10439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10440 int status = $lt_dlunknown;
10442 if (self)
10444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10445 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10446 /* dlclose (self); */
10448 else
10449 puts (dlerror ());
10451 exit (status);
10454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455 (eval $ac_link) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10459 (./conftest; exit; ) >&5 2>/dev/null
10460 lt_status=$?
10461 case x$lt_status in
10462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10465 esac
10466 else :
10467 # compilation failed
10468 lt_cv_dlopen_self=no
10471 rm -fr conftest*
10475 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10476 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10478 if test "x$lt_cv_dlopen_self" = xyes; then
10479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10480 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10481 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10482 if test "${lt_cv_dlopen_self_static+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485 if test "$cross_compiling" = yes; then :
10486 lt_cv_dlopen_self_static=cross
10487 else
10488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10489 lt_status=$lt_dlunknown
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10491 "configure"
10492 #include "confdefs.h"
10494 #if HAVE_DLFCN_H
10495 #include <dlfcn.h>
10496 #endif
10498 #include <stdio.h>
10500 #ifdef RTLD_GLOBAL
10501 # define LT_DLGLOBAL RTLD_GLOBAL
10502 #else
10503 # ifdef DL_GLOBAL
10504 # define LT_DLGLOBAL DL_GLOBAL
10505 # else
10506 # define LT_DLGLOBAL 0
10507 # endif
10508 #endif
10510 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10511 find out it does not work in some platform. */
10512 #ifndef LT_DLLAZY_OR_NOW
10513 # ifdef RTLD_LAZY
10514 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10515 # else
10516 # ifdef DL_LAZY
10517 # define LT_DLLAZY_OR_NOW DL_LAZY
10518 # else
10519 # ifdef RTLD_NOW
10520 # define LT_DLLAZY_OR_NOW RTLD_NOW
10521 # else
10522 # ifdef DL_NOW
10523 # define LT_DLLAZY_OR_NOW DL_NOW
10524 # else
10525 # define LT_DLLAZY_OR_NOW 0
10526 # endif
10527 # endif
10528 # endif
10529 # endif
10530 #endif
10532 #ifdef __cplusplus
10533 extern "C" void exit (int);
10534 #endif
10536 void fnord() { int i=42;}
10537 int main ()
10539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10540 int status = $lt_dlunknown;
10542 if (self)
10544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10546 /* dlclose (self); */
10548 else
10549 puts (dlerror ());
10551 exit (status);
10554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555 (eval $ac_link) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10559 (./conftest; exit; ) >&5 2>/dev/null
10560 lt_status=$?
10561 case x$lt_status in
10562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10565 esac
10566 else :
10567 # compilation failed
10568 lt_cv_dlopen_self_static=no
10571 rm -fr conftest*
10575 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10576 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10579 CPPFLAGS="$save_CPPFLAGS"
10580 LDFLAGS="$save_LDFLAGS"
10581 LIBS="$save_LIBS"
10583 esac
10585 case $lt_cv_dlopen_self in
10586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10587 *) enable_dlopen_self=unknown ;;
10588 esac
10590 case $lt_cv_dlopen_self_static in
10591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10592 *) enable_dlopen_self_static=unknown ;;
10593 esac
10597 # Report which library types will actually be built
10598 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10599 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10600 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10601 echo "${ECHO_T}$can_build_shared" >&6; }
10603 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10604 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10605 test "$can_build_shared" = "no" && enable_shared=no
10607 # On AIX, shared libraries and static libraries use the same namespace, and
10608 # are all built from PIC.
10609 case $host_os in
10610 aix3*)
10611 test "$enable_shared" = yes && enable_static=no
10612 if test -n "$RANLIB"; then
10613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10614 postinstall_cmds='$RANLIB $lib'
10618 aix[4-9]*)
10619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10620 test "$enable_shared" = yes && enable_static=no
10623 esac
10624 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10625 echo "${ECHO_T}$enable_shared" >&6; }
10627 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10628 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10629 # Make sure either enable_shared or enable_static is yes.
10630 test "$enable_shared" = yes || enable_static=yes
10631 { echo "$as_me:$LINENO: result: $enable_static" >&5
10632 echo "${ECHO_T}$enable_static" >&6; }
10634 # The else clause should only fire when bootstrapping the
10635 # libtool distribution, otherwise you forgot to ship ltmain.sh
10636 # with your package, and you will get complaints that there are
10637 # no rules to generate ltmain.sh.
10638 if test -f "$ltmain"; then
10639 # See if we are running on zsh, and set the options which allow our commands through
10640 # without removal of \ escapes.
10641 if test -n "${ZSH_VERSION+set}" ; then
10642 setopt NO_GLOB_SUBST
10644 # Now quote all the things that may contain metacharacters while being
10645 # careful not to overquote the AC_SUBSTed values. We take copies of the
10646 # variables and quote the copies for generation of the libtool script.
10647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10648 SED SHELL STRIP \
10649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10651 deplibs_check_method reload_flag reload_cmds need_locks \
10652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10653 lt_cv_sys_global_symbol_to_c_name_address \
10654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10655 old_postinstall_cmds old_postuninstall_cmds \
10656 compiler \
10657 CC \
10658 LD \
10659 lt_prog_compiler_wl \
10660 lt_prog_compiler_pic \
10661 lt_prog_compiler_static \
10662 lt_prog_compiler_no_builtin_flag \
10663 export_dynamic_flag_spec \
10664 thread_safe_flag_spec \
10665 whole_archive_flag_spec \
10666 enable_shared_with_static_runtimes \
10667 old_archive_cmds \
10668 old_archive_from_new_cmds \
10669 predep_objects \
10670 postdep_objects \
10671 predeps \
10672 postdeps \
10673 compiler_lib_search_path \
10674 compiler_lib_search_dirs \
10675 archive_cmds \
10676 archive_expsym_cmds \
10677 postinstall_cmds \
10678 postuninstall_cmds \
10679 old_archive_from_expsyms_cmds \
10680 allow_undefined_flag \
10681 no_undefined_flag \
10682 export_symbols_cmds \
10683 hardcode_libdir_flag_spec \
10684 hardcode_libdir_flag_spec_ld \
10685 hardcode_libdir_separator \
10686 hardcode_automatic \
10687 module_cmds \
10688 module_expsym_cmds \
10689 lt_cv_prog_compiler_c_o \
10690 fix_srcfile_path \
10691 exclude_expsyms \
10692 include_expsyms; do
10694 case $var in
10695 old_archive_cmds | \
10696 old_archive_from_new_cmds | \
10697 archive_cmds | \
10698 archive_expsym_cmds | \
10699 module_cmds | \
10700 module_expsym_cmds | \
10701 old_archive_from_expsyms_cmds | \
10702 export_symbols_cmds | \
10703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10704 postinstall_cmds | postuninstall_cmds | \
10705 old_postinstall_cmds | old_postuninstall_cmds | \
10706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10707 # Double-quote double-evaled strings.
10708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10713 esac
10714 done
10716 case $lt_echo in
10717 *'\$0 --fallback-echo"')
10718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10720 esac
10722 cfgfile="${ofile}T"
10723 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10724 $rm -f "$cfgfile"
10725 { echo "$as_me:$LINENO: creating $ofile" >&5
10726 echo "$as_me: creating $ofile" >&6;}
10728 cat <<__EOF__ >> "$cfgfile"
10729 #! $SHELL
10731 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10732 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10733 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10735 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10736 # Free Software Foundation, Inc.
10738 # This file is part of GNU Libtool:
10739 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10741 # This program is free software; you can redistribute it and/or modify
10742 # it under the terms of the GNU General Public License as published by
10743 # the Free Software Foundation; either version 2 of the License, or
10744 # (at your option) any later version.
10746 # This program is distributed in the hope that it will be useful, but
10747 # WITHOUT ANY WARRANTY; without even the implied warranty of
10748 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10749 # General Public License for more details.
10751 # You should have received a copy of the GNU General Public License
10752 # along with this program; if not, write to the Free Software
10753 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10755 # As a special exception to the GNU General Public License, if you
10756 # distribute this file as part of a program that contains a
10757 # configuration script generated by Autoconf, you may include it under
10758 # the same distribution terms that you use for the rest of that program.
10760 # A sed program that does not truncate output.
10761 SED=$lt_SED
10763 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10764 Xsed="$SED -e 1s/^X//"
10766 # The HP-UX ksh and POSIX shell print the target directory to stdout
10767 # if CDPATH is set.
10768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10770 # The names of the tagged configurations supported by this script.
10771 available_tags=
10773 # ### BEGIN LIBTOOL CONFIG
10775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10777 # Shell to use when invoking shell scripts.
10778 SHELL=$lt_SHELL
10780 # Whether or not to build shared libraries.
10781 build_libtool_libs=$enable_shared
10783 # Whether or not to build static libraries.
10784 build_old_libs=$enable_static
10786 # Whether or not to add -lc for building shared libraries.
10787 build_libtool_need_lc=$archive_cmds_need_lc
10789 # Whether or not to disallow shared libs when runtime libs are static
10790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10792 # Whether or not to optimize for fast installation.
10793 fast_install=$enable_fast_install
10795 # The host system.
10796 host_alias=$host_alias
10797 host=$host
10798 host_os=$host_os
10800 # The build system.
10801 build_alias=$build_alias
10802 build=$build
10803 build_os=$build_os
10805 # An echo program that does not interpret backslashes.
10806 echo=$lt_echo
10808 # The archiver.
10809 AR=$lt_AR
10810 AR_FLAGS=$lt_AR_FLAGS
10812 # A C compiler.
10813 LTCC=$lt_LTCC
10815 # LTCC compiler flags.
10816 LTCFLAGS=$lt_LTCFLAGS
10818 # A language-specific compiler.
10819 CC=$lt_compiler
10821 # Is the compiler the GNU C compiler?
10822 with_gcc=$GCC
10824 # An ERE matcher.
10825 EGREP=$lt_EGREP
10827 # The linker used to build libraries.
10828 LD=$lt_LD
10830 # Whether we need hard or soft links.
10831 LN_S=$lt_LN_S
10833 # A BSD-compatible nm program.
10834 NM=$lt_NM
10836 # A symbol stripping program
10837 STRIP=$lt_STRIP
10839 # Used to examine libraries when file_magic_cmd begins "file"
10840 MAGIC_CMD=$MAGIC_CMD
10842 # Used on cygwin: DLL creation program.
10843 DLLTOOL="$DLLTOOL"
10845 # Used on cygwin: object dumper.
10846 OBJDUMP="$OBJDUMP"
10848 # Used on cygwin: assembler.
10849 AS="$AS"
10851 # The name of the directory that contains temporary libtool files.
10852 objdir=$objdir
10854 # How to create reloadable object files.
10855 reload_flag=$lt_reload_flag
10856 reload_cmds=$lt_reload_cmds
10858 # How to pass a linker flag through the compiler.
10859 wl=$lt_lt_prog_compiler_wl
10861 # Object file suffix (normally "o").
10862 objext="$ac_objext"
10864 # Old archive suffix (normally "a").
10865 libext="$libext"
10867 # Shared library suffix (normally ".so").
10868 shrext_cmds='$shrext_cmds'
10870 # Executable file suffix (normally "").
10871 exeext="$exeext"
10873 # Additional compiler flags for building library objects.
10874 pic_flag=$lt_lt_prog_compiler_pic
10875 pic_mode=$pic_mode
10877 # What is the maximum length of a command?
10878 max_cmd_len=$lt_cv_sys_max_cmd_len
10880 # Does compiler simultaneously support -c and -o options?
10881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10883 # Must we lock files when doing compilation?
10884 need_locks=$lt_need_locks
10886 # Do we need the lib prefix for modules?
10887 need_lib_prefix=$need_lib_prefix
10889 # Do we need a version for libraries?
10890 need_version=$need_version
10892 # Whether dlopen is supported.
10893 dlopen_support=$enable_dlopen
10895 # Whether dlopen of programs is supported.
10896 dlopen_self=$enable_dlopen_self
10898 # Whether dlopen of statically linked programs is supported.
10899 dlopen_self_static=$enable_dlopen_self_static
10901 # Compiler flag to prevent dynamic linking.
10902 link_static_flag=$lt_lt_prog_compiler_static
10904 # Compiler flag to turn off builtin functions.
10905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10907 # Compiler flag to allow reflexive dlopens.
10908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10910 # Compiler flag to generate shared objects directly from archives.
10911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10913 # Compiler flag to generate thread-safe objects.
10914 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10916 # Library versioning type.
10917 version_type=$version_type
10919 # Format of library name prefix.
10920 libname_spec=$lt_libname_spec
10922 # List of archive names. First name is the real one, the rest are links.
10923 # The last name is the one that the linker finds with -lNAME.
10924 library_names_spec=$lt_library_names_spec
10926 # The coded name of the library, if different from the real name.
10927 soname_spec=$lt_soname_spec
10929 # Commands used to build and install an old-style archive.
10930 RANLIB=$lt_RANLIB
10931 old_archive_cmds=$lt_old_archive_cmds
10932 old_postinstall_cmds=$lt_old_postinstall_cmds
10933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10935 # Create an old-style archive from a shared archive.
10936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10938 # Create a temporary old-style archive to link instead of a shared archive.
10939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10941 # Commands used to build and install a shared archive.
10942 archive_cmds=$lt_archive_cmds
10943 archive_expsym_cmds=$lt_archive_expsym_cmds
10944 postinstall_cmds=$lt_postinstall_cmds
10945 postuninstall_cmds=$lt_postuninstall_cmds
10947 # Commands used to build a loadable module (assumed same as above if empty)
10948 module_cmds=$lt_module_cmds
10949 module_expsym_cmds=$lt_module_expsym_cmds
10951 # Commands to strip libraries.
10952 old_striplib=$lt_old_striplib
10953 striplib=$lt_striplib
10955 # Dependencies to place before the objects being linked to create a
10956 # shared library.
10957 predep_objects=$lt_predep_objects
10959 # Dependencies to place after the objects being linked to create a
10960 # shared library.
10961 postdep_objects=$lt_postdep_objects
10963 # Dependencies to place before the objects being linked to create a
10964 # shared library.
10965 predeps=$lt_predeps
10967 # Dependencies to place after the objects being linked to create a
10968 # shared library.
10969 postdeps=$lt_postdeps
10971 # The directories searched by this compiler when creating a shared
10972 # library
10973 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10975 # The library search path used internally by the compiler when linking
10976 # a shared library.
10977 compiler_lib_search_path=$lt_compiler_lib_search_path
10979 # Method to check whether dependent libraries are shared objects.
10980 deplibs_check_method=$lt_deplibs_check_method
10982 # Command to use when deplibs_check_method == file_magic.
10983 file_magic_cmd=$lt_file_magic_cmd
10985 # Flag that allows shared libraries with undefined symbols to be built.
10986 allow_undefined_flag=$lt_allow_undefined_flag
10988 # Flag that forces no undefined symbols.
10989 no_undefined_flag=$lt_no_undefined_flag
10991 # Commands used to finish a libtool library installation in a directory.
10992 finish_cmds=$lt_finish_cmds
10994 # Same as above, but a single script fragment to be evaled but not shown.
10995 finish_eval=$lt_finish_eval
10997 # Take the output of nm and produce a listing of raw symbols and C names.
10998 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11000 # Transform the output of nm in a proper C declaration
11001 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11003 # Transform the output of nm in a C name address pair
11004 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11006 # This is the shared library runtime path variable.
11007 runpath_var=$runpath_var
11009 # This is the shared library path variable.
11010 shlibpath_var=$shlibpath_var
11012 # Is shlibpath searched before the hard-coded library search path?
11013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11015 # How to hardcode a shared library path into an executable.
11016 hardcode_action=$hardcode_action
11018 # Whether we should hardcode library paths into libraries.
11019 hardcode_into_libs=$hardcode_into_libs
11021 # Flag to hardcode \$libdir into a binary during linking.
11022 # This must work even if \$libdir does not exist.
11023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11025 # If ld is used when linking, flag to hardcode \$libdir into
11026 # a binary during linking. This must work even if \$libdir does
11027 # not exist.
11028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11030 # Whether we need a single -rpath flag with a separated argument.
11031 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11033 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11034 # resulting binary.
11035 hardcode_direct=$hardcode_direct
11037 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11038 # resulting binary.
11039 hardcode_minus_L=$hardcode_minus_L
11041 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11042 # the resulting binary.
11043 hardcode_shlibpath_var=$hardcode_shlibpath_var
11045 # Set to yes if building a shared library automatically hardcodes DIR into the library
11046 # and all subsequent libraries and executables linked against it.
11047 hardcode_automatic=$hardcode_automatic
11049 # Variables whose values should be saved in libtool wrapper scripts and
11050 # restored at relink time.
11051 variables_saved_for_relink="$variables_saved_for_relink"
11053 # Whether libtool must link a program against all its dependency libraries.
11054 link_all_deplibs=$link_all_deplibs
11056 # Compile-time system search path for libraries
11057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11059 # Run-time system search path for libraries
11060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11062 # Fix the shell variable \$srcfile for the compiler.
11063 fix_srcfile_path=$lt_fix_srcfile_path
11065 # Set to yes if exported symbols are required.
11066 always_export_symbols=$always_export_symbols
11068 # The commands to list exported symbols.
11069 export_symbols_cmds=$lt_export_symbols_cmds
11071 # The commands to extract the exported symbol list from a shared archive.
11072 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11074 # Symbols that should not be listed in the preloaded symbols.
11075 exclude_expsyms=$lt_exclude_expsyms
11077 # Symbols that must always be exported.
11078 include_expsyms=$lt_include_expsyms
11080 # ### END LIBTOOL CONFIG
11082 __EOF__
11085 case $host_os in
11086 aix3*)
11087 cat <<\EOF >> "$cfgfile"
11089 # AIX sometimes has problems with the GCC collect2 program. For some
11090 # reason, if we set the COLLECT_NAMES environment variable, the problems
11091 # vanish in a puff of smoke.
11092 if test "X${COLLECT_NAMES+set}" != Xset; then
11093 COLLECT_NAMES=
11094 export COLLECT_NAMES
11098 esac
11100 # We use sed instead of cat because bash on DJGPP gets confused if
11101 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11102 # text mode, it properly converts lines to CR/LF. This bash problem
11103 # is reportedly fixed, but why not run on old versions too?
11104 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11106 mv -f "$cfgfile" "$ofile" || \
11107 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11108 chmod +x "$ofile"
11110 else
11111 # If there is no Makefile yet, we rely on a make rule to execute
11112 # `config.status --recheck' to rerun these tests and create the
11113 # libtool script then.
11114 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11115 if test -f "$ltmain_in"; then
11116 test -f Makefile && make "$ltmain"
11121 ac_ext=c
11122 ac_cpp='$CPP $CPPFLAGS'
11123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11127 CC="$lt_save_CC"
11130 # Check whether --with-tags was given.
11131 if test "${with_tags+set}" = set; then
11132 withval=$with_tags; tagnames="$withval"
11136 if test -f "$ltmain" && test -n "$tagnames"; then
11137 if test ! -f "${ofile}"; then
11138 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11139 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11142 if test -z "$LTCC"; then
11143 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11144 if test -z "$LTCC"; then
11145 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11146 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11147 else
11148 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11149 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11152 if test -z "$LTCFLAGS"; then
11153 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11156 # Extract list of available tagged configurations in $ofile.
11157 # Note that this assumes the entire list is on one line.
11158 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11160 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161 for tagname in $tagnames; do
11162 IFS="$lt_save_ifs"
11163 # Check whether tagname contains only valid characters
11164 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11165 "") ;;
11166 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11167 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11168 { (exit 1); exit 1; }; }
11170 esac
11172 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11173 then
11174 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11175 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11176 { (exit 1); exit 1; }; }
11179 # Update the list of available tags.
11180 if test -n "$tagname"; then
11181 echo appending configuration tag \"$tagname\" to $ofile
11183 case $tagname in
11184 CXX)
11185 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11186 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11187 (test "X$CXX" != "Xg++"))) ; then
11188 ac_ext=cpp
11189 ac_cpp='$CXXCPP $CPPFLAGS'
11190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11197 archive_cmds_need_lc_CXX=no
11198 allow_undefined_flag_CXX=
11199 always_export_symbols_CXX=no
11200 archive_expsym_cmds_CXX=
11201 export_dynamic_flag_spec_CXX=
11202 hardcode_direct_CXX=no
11203 hardcode_libdir_flag_spec_CXX=
11204 hardcode_libdir_flag_spec_ld_CXX=
11205 hardcode_libdir_separator_CXX=
11206 hardcode_minus_L_CXX=no
11207 hardcode_shlibpath_var_CXX=unsupported
11208 hardcode_automatic_CXX=no
11209 module_cmds_CXX=
11210 module_expsym_cmds_CXX=
11211 link_all_deplibs_CXX=unknown
11212 old_archive_cmds_CXX=$old_archive_cmds
11213 no_undefined_flag_CXX=
11214 whole_archive_flag_spec_CXX=
11215 enable_shared_with_static_runtimes_CXX=no
11217 # Dependencies to place before and after the object being linked:
11218 predep_objects_CXX=
11219 postdep_objects_CXX=
11220 predeps_CXX=
11221 postdeps_CXX=
11222 compiler_lib_search_path_CXX=
11223 compiler_lib_search_dirs_CXX=
11225 # Source file extension for C++ test sources.
11226 ac_ext=cpp
11228 # Object file extension for compiled C++ test sources.
11229 objext=o
11230 objext_CXX=$objext
11232 # Code to be used in simple compile tests
11233 lt_simple_compile_test_code="int some_variable = 0;"
11235 # Code to be used in simple link tests
11236 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11238 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11240 # If no C compiler was specified, use CC.
11241 LTCC=${LTCC-"$CC"}
11243 # If no C compiler flags were specified, use CFLAGS.
11244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11246 # Allow CC to be a program name with arguments.
11247 compiler=$CC
11250 # save warnings/boilerplate of simple test code
11251 ac_outfile=conftest.$ac_objext
11252 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11253 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11254 _lt_compiler_boilerplate=`cat conftest.err`
11255 $rm conftest*
11257 ac_outfile=conftest.$ac_objext
11258 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11259 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11260 _lt_linker_boilerplate=`cat conftest.err`
11261 $rm -r conftest*
11264 # Allow CC to be a program name with arguments.
11265 lt_save_CC=$CC
11266 lt_save_LD=$LD
11267 lt_save_GCC=$GCC
11268 GCC=$GXX
11269 lt_save_with_gnu_ld=$with_gnu_ld
11270 lt_save_path_LD=$lt_cv_path_LD
11271 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11272 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11273 else
11274 $as_unset lt_cv_prog_gnu_ld
11276 if test -n "${lt_cv_path_LDCXX+set}"; then
11277 lt_cv_path_LD=$lt_cv_path_LDCXX
11278 else
11279 $as_unset lt_cv_path_LD
11281 test -z "${LDCXX+set}" || LD=$LDCXX
11282 CC=${CXX-"c++"}
11283 compiler=$CC
11284 compiler_CXX=$CC
11285 for cc_temp in $compiler""; do
11286 case $cc_temp in
11287 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11288 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11289 \-*) ;;
11290 *) break;;
11291 esac
11292 done
11293 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11296 # We don't want -fno-exception wen compiling C++ code, so set the
11297 # no_builtin_flag separately
11298 if test "$GXX" = yes; then
11299 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11300 else
11301 lt_prog_compiler_no_builtin_flag_CXX=
11304 if test "$GXX" = yes; then
11305 # Set up default GNU C++ configuration
11308 # Check whether --with-gnu-ld was given.
11309 if test "${with_gnu_ld+set}" = set; then
11310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11311 else
11312 with_gnu_ld=no
11315 ac_prog=ld
11316 if test "$GCC" = yes; then
11317 # Check if gcc -print-prog-name=ld gives a path.
11318 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11319 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11320 case $host in
11321 *-*-mingw*)
11322 # gcc leaves a trailing carriage return which upsets mingw
11323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11326 esac
11327 case $ac_prog in
11328 # Accept absolute paths.
11329 [\\/]* | ?:[\\/]*)
11330 re_direlt='/[^/][^/]*/\.\./'
11331 # Canonicalize the pathname of ld
11332 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11334 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11335 done
11336 test -z "$LD" && LD="$ac_prog"
11339 # If it fails, then pretend we aren't using GCC.
11340 ac_prog=ld
11343 # If it is relative, then search for the first ld in PATH.
11344 with_gnu_ld=unknown
11346 esac
11347 elif test "$with_gnu_ld" = yes; then
11348 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11349 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11350 else
11351 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11352 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11354 if test "${lt_cv_path_LD+set}" = set; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 else
11357 if test -z "$LD"; then
11358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359 for ac_dir in $PATH; do
11360 IFS="$lt_save_ifs"
11361 test -z "$ac_dir" && ac_dir=.
11362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11363 lt_cv_path_LD="$ac_dir/$ac_prog"
11364 # Check to see if the program is GNU ld. I'd rather use --version,
11365 # but apparently some variants of GNU ld only accept -v.
11366 # Break only if it was the GNU/non-GNU ld that we prefer.
11367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11368 *GNU* | *'with BFD'*)
11369 test "$with_gnu_ld" != no && break
11372 test "$with_gnu_ld" != yes && break
11374 esac
11376 done
11377 IFS="$lt_save_ifs"
11378 else
11379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11383 LD="$lt_cv_path_LD"
11384 if test -n "$LD"; then
11385 { echo "$as_me:$LINENO: result: $LD" >&5
11386 echo "${ECHO_T}$LD" >&6; }
11387 else
11388 { echo "$as_me:$LINENO: result: no" >&5
11389 echo "${ECHO_T}no" >&6; }
11391 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11392 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11393 { (exit 1); exit 1; }; }
11394 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11395 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11396 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11400 case `$LD -v 2>&1 </dev/null` in
11401 *GNU* | *'with BFD'*)
11402 lt_cv_prog_gnu_ld=yes
11405 lt_cv_prog_gnu_ld=no
11407 esac
11409 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11410 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11411 with_gnu_ld=$lt_cv_prog_gnu_ld
11415 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11416 # archiving commands below assume that GNU ld is being used.
11417 if test "$with_gnu_ld" = yes; then
11418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419 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'
11421 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11424 # If archive_cmds runs LD, not CC, wlarc should be empty
11425 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11426 # investigate it a little bit more. (MM)
11427 wlarc='${wl}'
11429 # ancient GNU ld didn't support --whole-archive et. al.
11430 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11431 grep 'no-whole-archive' > /dev/null; then
11432 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11433 else
11434 whole_archive_flag_spec_CXX=
11436 else
11437 with_gnu_ld=no
11438 wlarc=
11440 # A generic and very simple default shared library creation
11441 # command for GNU C++ for the case where it uses the native
11442 # linker, instead of GNU ld. If possible, this setting should
11443 # overridden to take advantage of the native linker features on
11444 # the platform it is being used on.
11445 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11448 # Commands to make compiler produce verbose output that lists
11449 # what "hidden" libraries, object files and flags are used when
11450 # linking a shared library.
11451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11453 else
11454 GXX=no
11455 with_gnu_ld=no
11456 wlarc=
11459 # PORTME: fill in a description of your system's C++ link characteristics
11460 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11461 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11462 ld_shlibs_CXX=yes
11463 case $host_os in
11464 aix3*)
11465 # FIXME: insert proper C++ library support
11466 ld_shlibs_CXX=no
11468 aix[4-9]*)
11469 if test "$host_cpu" = ia64; then
11470 # On IA64, the linker does run time linking by default, so we don't
11471 # have to do anything special.
11472 aix_use_runtimelinking=no
11473 exp_sym_flag='-Bexport'
11474 no_entry_flag=""
11475 else
11476 aix_use_runtimelinking=no
11478 # Test if we are trying to use run time linking or normal
11479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11480 # need to do runtime linking.
11481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11482 for ld_flag in $LDFLAGS; do
11483 case $ld_flag in
11484 *-brtl*)
11485 aix_use_runtimelinking=yes
11486 break
11488 esac
11489 done
11491 esac
11493 exp_sym_flag='-bexport'
11494 no_entry_flag='-bnoentry'
11497 # When large executables or shared objects are built, AIX ld can
11498 # have problems creating the table of contents. If linking a library
11499 # or program results in "error TOC overflow" add -mminimal-toc to
11500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11503 archive_cmds_CXX=''
11504 hardcode_direct_CXX=yes
11505 hardcode_libdir_separator_CXX=':'
11506 link_all_deplibs_CXX=yes
11508 if test "$GXX" = yes; then
11509 case $host_os in aix4.[012]|aix4.[012].*)
11510 # We only want to do this on AIX 4.2 and lower, the check
11511 # below for broken collect2 doesn't work under 4.3+
11512 collect2name=`${CC} -print-prog-name=collect2`
11513 if test -f "$collect2name" && \
11514 strings "$collect2name" | grep resolve_lib_name >/dev/null
11515 then
11516 # We have reworked collect2
11518 else
11519 # We have old collect2
11520 hardcode_direct_CXX=unsupported
11521 # It fails to find uninstalled libraries when the uninstalled
11522 # path is not listed in the libpath. Setting hardcode_minus_L
11523 # to unsupported forces relinking
11524 hardcode_minus_L_CXX=yes
11525 hardcode_libdir_flag_spec_CXX='-L$libdir'
11526 hardcode_libdir_separator_CXX=
11529 esac
11530 shared_flag='-shared'
11531 if test "$aix_use_runtimelinking" = yes; then
11532 shared_flag="$shared_flag "'${wl}-G'
11534 else
11535 # not using gcc
11536 if test "$host_cpu" = ia64; then
11537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11538 # chokes on -Wl,-G. The following line is correct:
11539 shared_flag='-G'
11540 else
11541 if test "$aix_use_runtimelinking" = yes; then
11542 shared_flag='${wl}-G'
11543 else
11544 shared_flag='${wl}-bM:SRE'
11549 # It seems that -bexpall does not export symbols beginning with
11550 # underscore (_), so it is better to generate a list of symbols to export.
11551 always_export_symbols_CXX=yes
11552 if test "$aix_use_runtimelinking" = yes; then
11553 # Warning - without using the other runtime loading flags (-brtl),
11554 # -berok will link without error, but may produce a broken library.
11555 allow_undefined_flag_CXX='-berok'
11556 # Determine the default libpath from the value encoded in an empty executable.
11557 cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h. */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11565 main ()
11569 return 0;
11571 _ACEOF
11572 rm -f conftest.$ac_objext conftest$ac_exeext
11573 if { (ac_try="$ac_link"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_link") 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } && {
11586 test -z "$ac_cxx_werror_flag" ||
11587 test ! -s conftest.err
11588 } && test -s conftest$ac_exeext &&
11589 $as_test_x conftest$ac_exeext; then
11591 lt_aix_libpath_sed='
11592 /Import File Strings/,/^$/ {
11593 /^0/ {
11594 s/^0 *\(.*\)$/\1/
11598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11599 # Check for a 64-bit object if we didn't find anything.
11600 if test -z "$aix_libpath"; then
11601 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11603 else
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11611 conftest$ac_exeext conftest.$ac_ext
11612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11614 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11616 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"
11617 else
11618 if test "$host_cpu" = ia64; then
11619 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11620 allow_undefined_flag_CXX="-z nodefs"
11621 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"
11622 else
11623 # Determine the default libpath from the value encoded in an empty executable.
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11632 main ()
11636 return 0;
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (ac_try="$ac_link"
11641 case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644 esac
11645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646 (eval "$ac_link") 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } && {
11653 test -z "$ac_cxx_werror_flag" ||
11654 test ! -s conftest.err
11655 } && test -s conftest$ac_exeext &&
11656 $as_test_x conftest$ac_exeext; then
11658 lt_aix_libpath_sed='
11659 /Import File Strings/,/^$/ {
11660 /^0/ {
11661 s/^0 *\(.*\)$/\1/
11665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11666 # Check for a 64-bit object if we didn't find anything.
11667 if test -z "$aix_libpath"; then
11668 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11670 else
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11678 conftest$ac_exeext conftest.$ac_ext
11679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11681 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11682 # Warning - without using the other run time loading flags,
11683 # -berok will link without error, but may produce a broken library.
11684 no_undefined_flag_CXX=' ${wl}-bernotok'
11685 allow_undefined_flag_CXX=' ${wl}-berok'
11686 # Exported symbols can be pulled into shared objects from archives
11687 whole_archive_flag_spec_CXX='$convenience'
11688 archive_cmds_need_lc_CXX=yes
11689 # This is similar to how AIX traditionally builds its shared libraries.
11690 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'
11695 beos*)
11696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11697 allow_undefined_flag_CXX=unsupported
11698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11699 # support --undefined. This deserves some investigation. FIXME
11700 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11701 else
11702 ld_shlibs_CXX=no
11706 chorus*)
11707 case $cc_basename in
11709 # FIXME: insert proper C++ library support
11710 ld_shlibs_CXX=no
11712 esac
11715 cygwin* | mingw* | pw32*)
11716 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11717 # as there is no search path for DLLs.
11718 hardcode_libdir_flag_spec_CXX='-L$libdir'
11719 allow_undefined_flag_CXX=unsupported
11720 always_export_symbols_CXX=no
11721 enable_shared_with_static_runtimes_CXX=yes
11723 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11724 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'
11725 # If the export-symbols file already is a .def file (1st line
11726 # is EXPORTS), use it as is; otherwise, prepend...
11727 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11728 cp $export_symbols $output_objdir/$soname.def;
11729 else
11730 echo EXPORTS > $output_objdir/$soname.def;
11731 cat $export_symbols >> $output_objdir/$soname.def;
11733 $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'
11734 else
11735 ld_shlibs_CXX=no
11738 darwin* | rhapsody*)
11739 archive_cmds_need_lc_CXX=no
11740 hardcode_direct_CXX=no
11741 hardcode_automatic_CXX=yes
11742 hardcode_shlibpath_var_CXX=unsupported
11743 whole_archive_flag_spec_CXX=''
11744 link_all_deplibs_CXX=yes
11745 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11746 if test "$GXX" = yes ; then
11747 output_verbose_link_cmd='echo'
11748 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}"
11749 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11750 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}"
11751 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}"
11752 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11753 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}"
11754 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}"
11756 else
11757 case $cc_basename in
11758 xlc*)
11759 output_verbose_link_cmd='echo'
11760 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'
11761 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11762 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11763 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}'
11764 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}'
11767 ld_shlibs_CXX=no
11769 esac
11773 dgux*)
11774 case $cc_basename in
11775 ec++*)
11776 # FIXME: insert proper C++ library support
11777 ld_shlibs_CXX=no
11779 ghcx*)
11780 # Green Hills C++ Compiler
11781 # FIXME: insert proper C++ library support
11782 ld_shlibs_CXX=no
11785 # FIXME: insert proper C++ library support
11786 ld_shlibs_CXX=no
11788 esac
11790 freebsd[12]*)
11791 # C++ shared libraries reported to be fairly broken before switch to ELF
11792 ld_shlibs_CXX=no
11794 freebsd-elf*)
11795 archive_cmds_need_lc_CXX=no
11797 freebsd* | dragonfly*)
11798 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11799 # conventions
11800 ld_shlibs_CXX=yes
11802 gnu*)
11804 hpux9*)
11805 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11806 hardcode_libdir_separator_CXX=:
11807 export_dynamic_flag_spec_CXX='${wl}-E'
11808 hardcode_direct_CXX=yes
11809 hardcode_minus_L_CXX=yes # Not in the search PATH,
11810 # but as the default
11811 # location of the library.
11813 case $cc_basename in
11814 CC*)
11815 # FIXME: insert proper C++ library support
11816 ld_shlibs_CXX=no
11818 aCC*)
11819 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'
11820 # Commands to make compiler produce verbose output that lists
11821 # what "hidden" libraries, object files and flags are used when
11822 # linking a shared library.
11824 # There doesn't appear to be a way to prevent this compiler from
11825 # explicitly linking system object files so we need to strip them
11826 # from the output so that they don't get included in the library
11827 # dependencies.
11828 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'
11831 if test "$GXX" = yes; then
11832 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'
11833 else
11834 # FIXME: insert proper C++ library support
11835 ld_shlibs_CXX=no
11838 esac
11840 hpux10*|hpux11*)
11841 if test $with_gnu_ld = no; then
11842 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11843 hardcode_libdir_separator_CXX=:
11845 case $host_cpu in
11846 hppa*64*|ia64*) ;;
11848 export_dynamic_flag_spec_CXX='${wl}-E'
11850 esac
11852 case $host_cpu in
11853 hppa*64*|ia64*)
11854 hardcode_direct_CXX=no
11855 hardcode_shlibpath_var_CXX=no
11858 hardcode_direct_CXX=yes
11859 hardcode_minus_L_CXX=yes # Not in the search PATH,
11860 # but as the default
11861 # location of the library.
11863 esac
11865 case $cc_basename in
11866 CC*)
11867 # FIXME: insert proper C++ library support
11868 ld_shlibs_CXX=no
11870 aCC*)
11871 case $host_cpu in
11872 hppa*64*)
11873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11875 ia64*)
11876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11881 esac
11882 # Commands to make compiler produce verbose output that lists
11883 # what "hidden" libraries, object files and flags are used when
11884 # linking a shared library.
11886 # There doesn't appear to be a way to prevent this compiler from
11887 # explicitly linking system object files so we need to strip them
11888 # from the output so that they don't get included in the library
11889 # dependencies.
11890 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'
11893 if test "$GXX" = yes; then
11894 if test $with_gnu_ld = no; then
11895 case $host_cpu in
11896 hppa*64*)
11897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11899 ia64*)
11900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11903 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'
11905 esac
11907 else
11908 # FIXME: insert proper C++ library support
11909 ld_shlibs_CXX=no
11912 esac
11914 interix[3-9]*)
11915 hardcode_direct_CXX=no
11916 hardcode_shlibpath_var_CXX=no
11917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11918 export_dynamic_flag_spec_CXX='${wl}-E'
11919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11920 # Instead, shared libraries are loaded at an image base (0x10000000 by
11921 # default) and relocated if they conflict, which is a slow very memory
11922 # consuming and fragmenting process. To avoid this, we pick a random,
11923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11925 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'
11926 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'
11928 irix5* | irix6*)
11929 case $cc_basename in
11930 CC*)
11931 # SGI C++
11932 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'
11934 # Archives containing C++ object files must be created using
11935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11936 # necessary to make sure instantiated templates are included
11937 # in the archive.
11938 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11941 if test "$GXX" = yes; then
11942 if test "$with_gnu_ld" = no; then
11943 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'
11944 else
11945 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'
11948 link_all_deplibs_CXX=yes
11950 esac
11951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11952 hardcode_libdir_separator_CXX=:
11954 linux* | k*bsd*-gnu)
11955 case $cc_basename in
11956 KCC*)
11957 # Kuck and Associates, Inc. (KAI) C++ Compiler
11959 # KCC will only create a shared library if the output file
11960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11961 # to its proper name (with version) after linking.
11962 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'
11963 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'
11964 # Commands to make compiler produce verbose output that lists
11965 # what "hidden" libraries, object files and flags are used when
11966 # linking a shared library.
11968 # There doesn't appear to be a way to prevent this compiler from
11969 # explicitly linking system object files so we need to strip them
11970 # from the output so that they don't get included in the library
11971 # dependencies.
11972 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'
11974 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11977 # Archives containing C++ object files must be created using
11978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11981 icpc*)
11982 # Intel C++
11983 with_gnu_ld=yes
11984 # version 8.0 and above of icpc choke on multiply defined symbols
11985 # if we add $predep_objects and $postdep_objects, however 7.1 and
11986 # earlier do not add the objects themselves.
11987 case `$CC -V 2>&1` in
11988 *"Version 7."*)
11989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11990 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'
11992 *) # Version 8.0 or newer
11993 tmp_idyn=
11994 case $host_cpu in
11995 ia64*) tmp_idyn=' -i_dynamic';;
11996 esac
11997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11998 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'
12000 esac
12001 archive_cmds_need_lc_CXX=no
12002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12006 pgCC* | pgcpp*)
12007 # Portland Group C++ compiler
12008 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12009 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'
12011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12013 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'
12015 cxx*)
12016 # Compaq C++
12017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12018 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'
12020 runpath_var=LD_RUN_PATH
12021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12022 hardcode_libdir_separator_CXX=:
12024 # Commands to make compiler produce verbose output that lists
12025 # what "hidden" libraries, object files and flags are used when
12026 # linking a shared library.
12028 # There doesn't appear to be a way to prevent this compiler from
12029 # explicitly linking system object files so we need to strip them
12030 # from the output so that they don't get included in the library
12031 # dependencies.
12032 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'
12035 case `$CC -V 2>&1 | sed 5q` in
12036 *Sun\ C*)
12037 # Sun C++ 5.9
12038 no_undefined_flag_CXX=' -zdefs'
12039 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12040 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'
12041 hardcode_libdir_flag_spec_CXX='-R$libdir'
12042 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'
12044 # Not sure whether something based on
12045 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12046 # would be better.
12047 output_verbose_link_cmd='echo'
12049 # Archives containing C++ object files must be created using
12050 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12051 # necessary to make sure instantiated templates are included
12052 # in the archive.
12053 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12055 esac
12057 esac
12059 lynxos*)
12060 # FIXME: insert proper C++ library support
12061 ld_shlibs_CXX=no
12063 m88k*)
12064 # FIXME: insert proper C++ library support
12065 ld_shlibs_CXX=no
12067 mvs*)
12068 case $cc_basename in
12069 cxx*)
12070 # FIXME: insert proper C++ library support
12071 ld_shlibs_CXX=no
12074 # FIXME: insert proper C++ library support
12075 ld_shlibs_CXX=no
12077 esac
12079 netbsd*)
12080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12081 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12082 wlarc=
12083 hardcode_libdir_flag_spec_CXX='-R$libdir'
12084 hardcode_direct_CXX=yes
12085 hardcode_shlibpath_var_CXX=no
12087 # Workaround some broken pre-1.5 toolchains
12088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12090 openbsd2*)
12091 # C++ shared libraries are fairly broken
12092 ld_shlibs_CXX=no
12094 openbsd*)
12095 if test -f /usr/libexec/ld.so; then
12096 hardcode_direct_CXX=yes
12097 hardcode_shlibpath_var_CXX=no
12098 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12101 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12102 export_dynamic_flag_spec_CXX='${wl}-E'
12103 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12105 output_verbose_link_cmd='echo'
12106 else
12107 ld_shlibs_CXX=no
12110 osf3*)
12111 case $cc_basename in
12112 KCC*)
12113 # Kuck and Associates, Inc. (KAI) C++ Compiler
12115 # KCC will only create a shared library if the output file
12116 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12117 # to its proper name (with version) after linking.
12118 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'
12120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12121 hardcode_libdir_separator_CXX=:
12123 # Archives containing C++ object files must be created using
12124 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12125 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12128 RCC*)
12129 # Rational C++ 2.4.1
12130 # FIXME: insert proper C++ library support
12131 ld_shlibs_CXX=no
12133 cxx*)
12134 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12135 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'
12137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12138 hardcode_libdir_separator_CXX=:
12140 # Commands to make compiler produce verbose output that lists
12141 # what "hidden" libraries, object files and flags are used when
12142 # linking a shared library.
12144 # There doesn't appear to be a way to prevent this compiler from
12145 # explicitly linking system object files so we need to strip them
12146 # from the output so that they don't get included in the library
12147 # dependencies.
12148 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'
12151 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12152 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12153 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'
12155 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12156 hardcode_libdir_separator_CXX=:
12158 # Commands to make compiler produce verbose output that lists
12159 # what "hidden" libraries, object files and flags are used when
12160 # linking a shared library.
12161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12163 else
12164 # FIXME: insert proper C++ library support
12165 ld_shlibs_CXX=no
12168 esac
12170 osf4* | osf5*)
12171 case $cc_basename in
12172 KCC*)
12173 # Kuck and Associates, Inc. (KAI) C++ Compiler
12175 # KCC will only create a shared library if the output file
12176 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12177 # to its proper name (with version) after linking.
12178 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'
12180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12181 hardcode_libdir_separator_CXX=:
12183 # Archives containing C++ object files must be created using
12184 # the KAI C++ compiler.
12185 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12187 RCC*)
12188 # Rational C++ 2.4.1
12189 # FIXME: insert proper C++ library support
12190 ld_shlibs_CXX=no
12192 cxx*)
12193 allow_undefined_flag_CXX=' -expect_unresolved \*'
12194 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'
12195 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12196 echo "-hidden">> $lib.exp~
12197 $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~
12198 $rm $lib.exp'
12200 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12201 hardcode_libdir_separator_CXX=:
12203 # Commands to make compiler produce verbose output that lists
12204 # what "hidden" libraries, object files and flags are used when
12205 # linking a shared library.
12207 # There doesn't appear to be a way to prevent this compiler from
12208 # explicitly linking system object files so we need to strip them
12209 # from the output so that they don't get included in the library
12210 # dependencies.
12211 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'
12214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12216 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'
12218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12219 hardcode_libdir_separator_CXX=:
12221 # Commands to make compiler produce verbose output that lists
12222 # what "hidden" libraries, object files and flags are used when
12223 # linking a shared library.
12224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12226 else
12227 # FIXME: insert proper C++ library support
12228 ld_shlibs_CXX=no
12231 esac
12233 psos*)
12234 # FIXME: insert proper C++ library support
12235 ld_shlibs_CXX=no
12237 sunos4*)
12238 case $cc_basename in
12239 CC*)
12240 # Sun C++ 4.x
12241 # FIXME: insert proper C++ library support
12242 ld_shlibs_CXX=no
12244 lcc*)
12245 # Lucid
12246 # FIXME: insert proper C++ library support
12247 ld_shlibs_CXX=no
12250 # FIXME: insert proper C++ library support
12251 ld_shlibs_CXX=no
12253 esac
12255 solaris*)
12256 case $cc_basename in
12257 CC*)
12258 # Sun C++ 4.2, 5.x and Centerline C++
12259 archive_cmds_need_lc_CXX=yes
12260 no_undefined_flag_CXX=' -zdefs'
12261 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12262 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12263 $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'
12265 hardcode_libdir_flag_spec_CXX='-R$libdir'
12266 hardcode_shlibpath_var_CXX=no
12267 case $host_os in
12268 solaris2.[0-5] | solaris2.[0-5].*) ;;
12270 # The compiler driver will combine and reorder linker options,
12271 # but understands `-z linker_flag'.
12272 # Supported since Solaris 2.6 (maybe 2.5.1?)
12273 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12275 esac
12276 link_all_deplibs_CXX=yes
12278 output_verbose_link_cmd='echo'
12280 # Archives containing C++ object files must be created using
12281 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12282 # necessary to make sure instantiated templates are included
12283 # in the archive.
12284 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12286 gcx*)
12287 # Green Hills C++ Compiler
12288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12290 # The C++ compiler must be used to create the archive.
12291 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12294 # GNU C++ compiler with Solaris linker
12295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12296 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12297 if $CC --version | grep -v '^2\.7' > /dev/null; then
12298 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12299 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12300 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12302 # Commands to make compiler produce verbose output that lists
12303 # what "hidden" libraries, object files and flags are used when
12304 # linking a shared library.
12305 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12306 else
12307 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12308 # platform.
12309 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12310 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12311 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12313 # Commands to make compiler produce verbose output that lists
12314 # what "hidden" libraries, object files and flags are used when
12315 # linking a shared library.
12316 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12319 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12320 case $host_os in
12321 solaris2.[0-5] | solaris2.[0-5].*) ;;
12323 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12325 esac
12328 esac
12330 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12331 no_undefined_flag_CXX='${wl}-z,text'
12332 archive_cmds_need_lc_CXX=no
12333 hardcode_shlibpath_var_CXX=no
12334 runpath_var='LD_RUN_PATH'
12336 case $cc_basename in
12337 CC*)
12338 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12342 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12345 esac
12347 sysv5* | sco3.2v5* | sco5v6*)
12348 # Note: We can NOT use -z defs as we might desire, because we do not
12349 # link with -lc, and that would cause any symbols used from libc to
12350 # always be unresolved, which means just about no library would
12351 # ever link correctly. If we're not using GNU ld we use -z text
12352 # though, which does catch some bad symbols but isn't as heavy-handed
12353 # as -z defs.
12354 # For security reasons, it is highly recommended that you always
12355 # use absolute paths for naming shared libraries, and exclude the
12356 # DT_RUNPATH tag from executables and libraries. But doing so
12357 # requires that you compile everything twice, which is a pain.
12358 # So that behaviour is only enabled if SCOABSPATH is set to a
12359 # non-empty value in the environment. Most likely only useful for
12360 # creating official distributions of packages.
12361 # This is a hack until libtool officially supports absolute path
12362 # names for shared libraries.
12363 no_undefined_flag_CXX='${wl}-z,text'
12364 allow_undefined_flag_CXX='${wl}-z,nodefs'
12365 archive_cmds_need_lc_CXX=no
12366 hardcode_shlibpath_var_CXX=no
12367 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12368 hardcode_libdir_separator_CXX=':'
12369 link_all_deplibs_CXX=yes
12370 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12371 runpath_var='LD_RUN_PATH'
12373 case $cc_basename in
12374 CC*)
12375 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12376 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12379 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12380 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12382 esac
12384 tandem*)
12385 case $cc_basename in
12386 NCC*)
12387 # NonStop-UX NCC 3.20
12388 # FIXME: insert proper C++ library support
12389 ld_shlibs_CXX=no
12392 # FIXME: insert proper C++ library support
12393 ld_shlibs_CXX=no
12395 esac
12397 vxworks*)
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
12402 # FIXME: insert proper C++ library support
12403 ld_shlibs_CXX=no
12405 esac
12406 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12407 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12408 test "$ld_shlibs_CXX" = no && can_build_shared=no
12410 GCC_CXX="$GXX"
12411 LD_CXX="$LD"
12413 cat > conftest.$ac_ext <<EOF
12414 class Foo
12416 public:
12417 Foo (void) { a = 0; }
12418 private:
12419 int a;
12423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424 (eval $ac_compile) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; then
12428 # Parse the compiler output and extract the necessary
12429 # objects, libraries and library flags.
12431 # Sentinel used to keep track of whether or not we are before
12432 # the conftest object file.
12433 pre_test_object_deps_done=no
12435 # The `*' in the case matches for architectures that use `case' in
12436 # $output_verbose_cmd can trigger glob expansion during the loop
12437 # eval without this substitution.
12438 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12440 for p in `eval $output_verbose_link_cmd`; do
12441 case $p in
12443 -L* | -R* | -l*)
12444 # Some compilers place space between "-{L,R}" and the path.
12445 # Remove the space.
12446 if test $p = "-L" \
12447 || test $p = "-R"; then
12448 prev=$p
12449 continue
12450 else
12451 prev=
12454 if test "$pre_test_object_deps_done" = no; then
12455 case $p in
12456 -L* | -R*)
12457 # Internal compiler library paths should come after those
12458 # provided the user. The postdeps already come after the
12459 # user supplied libs so there is no need to process them.
12460 if test -z "$compiler_lib_search_path_CXX"; then
12461 compiler_lib_search_path_CXX="${prev}${p}"
12462 else
12463 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12466 # The "-l" case would never come before the object being
12467 # linked, so don't bother handling this case.
12468 esac
12469 else
12470 if test -z "$postdeps_CXX"; then
12471 postdeps_CXX="${prev}${p}"
12472 else
12473 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12478 *.$objext)
12479 # This assumes that the test object file only shows up
12480 # once in the compiler output.
12481 if test "$p" = "conftest.$objext"; then
12482 pre_test_object_deps_done=yes
12483 continue
12486 if test "$pre_test_object_deps_done" = no; then
12487 if test -z "$predep_objects_CXX"; then
12488 predep_objects_CXX="$p"
12489 else
12490 predep_objects_CXX="$predep_objects_CXX $p"
12492 else
12493 if test -z "$postdep_objects_CXX"; then
12494 postdep_objects_CXX="$p"
12495 else
12496 postdep_objects_CXX="$postdep_objects_CXX $p"
12501 *) ;; # Ignore the rest.
12503 esac
12504 done
12506 # Clean up.
12507 rm -f a.out a.exe
12508 else
12509 echo "libtool.m4: error: problem compiling CXX test program"
12512 $rm -f confest.$objext
12514 compiler_lib_search_dirs_CXX=
12515 if test -n "$compiler_lib_search_path_CXX"; then
12516 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12519 # PORTME: override above test on systems where it is broken
12520 case $host_os in
12521 interix[3-9]*)
12522 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12523 # hack all around it, let's just trust "g++" to DTRT.
12524 predep_objects_CXX=
12525 postdep_objects_CXX=
12526 postdeps_CXX=
12529 linux*)
12530 case `$CC -V 2>&1 | sed 5q` in
12531 *Sun\ C*)
12532 # Sun C++ 5.9
12534 # The more standards-conforming stlport4 library is
12535 # incompatible with the Cstd library. Avoid specifying
12536 # it if it's in CXXFLAGS. Ignore libCrun as
12537 # -library=stlport4 depends on it.
12538 case " $CXX $CXXFLAGS " in
12539 *" -library=stlport4 "*)
12540 solaris_use_stlport4=yes
12542 esac
12543 if test "$solaris_use_stlport4" != yes; then
12544 postdeps_CXX='-library=Cstd -library=Crun'
12547 esac
12550 solaris*)
12551 case $cc_basename in
12552 CC*)
12553 # The more standards-conforming stlport4 library is
12554 # incompatible with the Cstd library. Avoid specifying
12555 # it if it's in CXXFLAGS. Ignore libCrun as
12556 # -library=stlport4 depends on it.
12557 case " $CXX $CXXFLAGS " in
12558 *" -library=stlport4 "*)
12559 solaris_use_stlport4=yes
12561 esac
12563 # Adding this requires a known-good setup of shared libraries for
12564 # Sun compiler versions before 5.6, else PIC objects from an old
12565 # archive will be linked into the output, leading to subtle bugs.
12566 if test "$solaris_use_stlport4" != yes; then
12567 postdeps_CXX='-library=Cstd -library=Crun'
12570 esac
12572 esac
12574 case " $postdeps_CXX " in
12575 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12576 esac
12578 lt_prog_compiler_wl_CXX=
12579 lt_prog_compiler_pic_CXX=
12580 lt_prog_compiler_static_CXX=
12582 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12583 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12585 # C++ specific cases for pic, static, wl, etc.
12586 if test "$GXX" = yes; then
12587 lt_prog_compiler_wl_CXX='-Wl,'
12588 lt_prog_compiler_static_CXX='-static'
12590 case $host_os in
12591 aix*)
12592 # All AIX code is PIC.
12593 if test "$host_cpu" = ia64; then
12594 # AIX 5 now supports IA64 processor
12595 lt_prog_compiler_static_CXX='-Bstatic'
12598 amigaos*)
12599 # FIXME: we need at least 68020 code to build shared libraries, but
12600 # adding the `-m68020' flag to GCC prevents building anything better,
12601 # like `-m68040'.
12602 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12605 # PIC is the default for these OSes.
12607 mingw* | cygwin* | os2* | pw32*)
12608 # This hack is so that the source file can tell whether it is being
12609 # built for inclusion in a dll (and should export symbols for example).
12610 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12611 # (--disable-auto-import) libraries
12612 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12614 darwin* | rhapsody*)
12615 # PIC is the default on this platform
12616 # Common symbols not allowed in MH_DYLIB files
12617 lt_prog_compiler_pic_CXX='-fno-common'
12619 *djgpp*)
12620 # DJGPP does not support shared libraries at all
12621 lt_prog_compiler_pic_CXX=
12623 interix[3-9]*)
12624 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12625 # Instead, we relocate shared libraries at runtime.
12627 sysv4*MP*)
12628 if test -d /usr/nec; then
12629 lt_prog_compiler_pic_CXX=-Kconform_pic
12632 hpux*)
12633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12634 # not for PA HP-UX.
12635 case $host_cpu in
12636 hppa*64*|ia64*)
12639 lt_prog_compiler_pic_CXX='-fPIC'
12641 esac
12644 lt_prog_compiler_pic_CXX='-fPIC'
12646 esac
12647 else
12648 case $host_os in
12649 aix[4-9]*)
12650 # All AIX code is PIC.
12651 if test "$host_cpu" = ia64; then
12652 # AIX 5 now supports IA64 processor
12653 lt_prog_compiler_static_CXX='-Bstatic'
12654 else
12655 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12658 chorus*)
12659 case $cc_basename in
12660 cxch68*)
12661 # Green Hills C++ Compiler
12662 # _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"
12664 esac
12666 darwin*)
12667 # PIC is the default on this platform
12668 # Common symbols not allowed in MH_DYLIB files
12669 case $cc_basename in
12670 xlc*)
12671 lt_prog_compiler_pic_CXX='-qnocommon'
12672 lt_prog_compiler_wl_CXX='-Wl,'
12674 esac
12676 dgux*)
12677 case $cc_basename in
12678 ec++*)
12679 lt_prog_compiler_pic_CXX='-KPIC'
12681 ghcx*)
12682 # Green Hills C++ Compiler
12683 lt_prog_compiler_pic_CXX='-pic'
12687 esac
12689 freebsd* | dragonfly*)
12690 # FreeBSD uses GNU C++
12692 hpux9* | hpux10* | hpux11*)
12693 case $cc_basename in
12694 CC*)
12695 lt_prog_compiler_wl_CXX='-Wl,'
12696 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12697 if test "$host_cpu" != ia64; then
12698 lt_prog_compiler_pic_CXX='+Z'
12701 aCC*)
12702 lt_prog_compiler_wl_CXX='-Wl,'
12703 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12704 case $host_cpu in
12705 hppa*64*|ia64*)
12706 # +Z the default
12709 lt_prog_compiler_pic_CXX='+Z'
12711 esac
12715 esac
12717 interix*)
12718 # This is c89, which is MS Visual C++ (no shared libs)
12719 # Anyone wants to do a port?
12721 irix5* | irix6* | nonstopux*)
12722 case $cc_basename in
12723 CC*)
12724 lt_prog_compiler_wl_CXX='-Wl,'
12725 lt_prog_compiler_static_CXX='-non_shared'
12726 # CC pic flag -KPIC is the default.
12730 esac
12732 linux* | k*bsd*-gnu)
12733 case $cc_basename in
12734 KCC*)
12735 # KAI C++ Compiler
12736 lt_prog_compiler_wl_CXX='--backend -Wl,'
12737 lt_prog_compiler_pic_CXX='-fPIC'
12739 icpc* | ecpc*)
12740 # Intel C++
12741 lt_prog_compiler_wl_CXX='-Wl,'
12742 lt_prog_compiler_pic_CXX='-KPIC'
12743 lt_prog_compiler_static_CXX='-static'
12745 pgCC* | pgcpp*)
12746 # Portland Group C++ compiler.
12747 lt_prog_compiler_wl_CXX='-Wl,'
12748 lt_prog_compiler_pic_CXX='-fpic'
12749 lt_prog_compiler_static_CXX='-Bstatic'
12751 cxx*)
12752 # Compaq C++
12753 # Make sure the PIC flag is empty. It appears that all Alpha
12754 # Linux and Compaq Tru64 Unix objects are PIC.
12755 lt_prog_compiler_pic_CXX=
12756 lt_prog_compiler_static_CXX='-non_shared'
12759 case `$CC -V 2>&1 | sed 5q` in
12760 *Sun\ C*)
12761 # Sun C++ 5.9
12762 lt_prog_compiler_pic_CXX='-KPIC'
12763 lt_prog_compiler_static_CXX='-Bstatic'
12764 lt_prog_compiler_wl_CXX='-Qoption ld '
12766 esac
12768 esac
12770 lynxos*)
12772 m88k*)
12774 mvs*)
12775 case $cc_basename in
12776 cxx*)
12777 lt_prog_compiler_pic_CXX='-W c,exportall'
12781 esac
12783 netbsd*)
12785 osf3* | osf4* | osf5*)
12786 case $cc_basename in
12787 KCC*)
12788 lt_prog_compiler_wl_CXX='--backend -Wl,'
12790 RCC*)
12791 # Rational C++ 2.4.1
12792 lt_prog_compiler_pic_CXX='-pic'
12794 cxx*)
12795 # Digital/Compaq C++
12796 lt_prog_compiler_wl_CXX='-Wl,'
12797 # Make sure the PIC flag is empty. It appears that all Alpha
12798 # Linux and Compaq Tru64 Unix objects are PIC.
12799 lt_prog_compiler_pic_CXX=
12800 lt_prog_compiler_static_CXX='-non_shared'
12804 esac
12806 psos*)
12808 solaris*)
12809 case $cc_basename in
12810 CC*)
12811 # Sun C++ 4.2, 5.x and Centerline C++
12812 lt_prog_compiler_pic_CXX='-KPIC'
12813 lt_prog_compiler_static_CXX='-Bstatic'
12814 lt_prog_compiler_wl_CXX='-Qoption ld '
12816 gcx*)
12817 # Green Hills C++ Compiler
12818 lt_prog_compiler_pic_CXX='-PIC'
12822 esac
12824 sunos4*)
12825 case $cc_basename in
12826 CC*)
12827 # Sun C++ 4.x
12828 lt_prog_compiler_pic_CXX='-pic'
12829 lt_prog_compiler_static_CXX='-Bstatic'
12831 lcc*)
12832 # Lucid
12833 lt_prog_compiler_pic_CXX='-pic'
12837 esac
12839 tandem*)
12840 case $cc_basename in
12841 NCC*)
12842 # NonStop-UX NCC 3.20
12843 lt_prog_compiler_pic_CXX='-KPIC'
12847 esac
12849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12850 case $cc_basename in
12851 CC*)
12852 lt_prog_compiler_wl_CXX='-Wl,'
12853 lt_prog_compiler_pic_CXX='-KPIC'
12854 lt_prog_compiler_static_CXX='-Bstatic'
12856 esac
12858 vxworks*)
12861 lt_prog_compiler_can_build_shared_CXX=no
12863 esac
12866 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12867 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12870 # Check to make sure the PIC flag actually works.
12872 if test -n "$lt_prog_compiler_pic_CXX"; then
12874 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12875 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12876 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879 lt_cv_prog_compiler_pic_works_CXX=no
12880 ac_outfile=conftest.$ac_objext
12881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12882 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12883 # Insert the option either (1) after the last *FLAGS variable, or
12884 # (2) before a word containing "conftest.", or (3) at the end.
12885 # Note that $ac_compile itself does not contain backslashes and begins
12886 # with a dollar sign (not a hyphen), so the echo should work correctly.
12887 # The option is referenced via a variable to avoid confusing sed.
12888 lt_compile=`echo "$ac_compile" | $SED \
12889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12891 -e 's:$: $lt_compiler_flag:'`
12892 (eval echo "\"\$as_me:12892: $lt_compile\"" >&5)
12893 (eval "$lt_compile" 2>conftest.err)
12894 ac_status=$?
12895 cat conftest.err >&5
12896 echo "$as_me:12896: \$? = $ac_status" >&5
12897 if (exit $ac_status) && test -s "$ac_outfile"; then
12898 # The compiler can only warn and ignore the option if not recognized
12899 # So say no if there are warnings other than the usual output.
12900 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12902 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12903 lt_cv_prog_compiler_pic_works_CXX=yes
12906 $rm conftest*
12909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12910 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12912 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12913 case $lt_prog_compiler_pic_CXX in
12914 "" | " "*) ;;
12915 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12916 esac
12917 else
12918 lt_prog_compiler_pic_CXX=
12919 lt_prog_compiler_can_build_shared_CXX=no
12923 case $host_os in
12924 # For platforms which do not support PIC, -DPIC is meaningless:
12925 *djgpp*)
12926 lt_prog_compiler_pic_CXX=
12929 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12931 esac
12934 # Check to make sure the static flag actually works.
12936 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12937 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12938 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12939 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 lt_cv_prog_compiler_static_works_CXX=no
12943 save_LDFLAGS="$LDFLAGS"
12944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12945 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12947 # The linker can only warn and ignore the option if not recognized
12948 # So say no if there are warnings
12949 if test -s conftest.err; then
12950 # Append any errors to the config.log.
12951 cat conftest.err 1>&5
12952 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12954 if diff conftest.exp conftest.er2 >/dev/null; then
12955 lt_cv_prog_compiler_static_works_CXX=yes
12957 else
12958 lt_cv_prog_compiler_static_works_CXX=yes
12961 $rm -r conftest*
12962 LDFLAGS="$save_LDFLAGS"
12965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12966 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12968 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12970 else
12971 lt_prog_compiler_static_CXX=
12975 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12976 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12977 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980 lt_cv_prog_compiler_c_o_CXX=no
12981 $rm -r conftest 2>/dev/null
12982 mkdir conftest
12983 cd conftest
12984 mkdir out
12985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12987 lt_compiler_flag="-o out/conftest2.$ac_objext"
12988 # Insert the option either (1) after the last *FLAGS variable, or
12989 # (2) before a word containing "conftest.", or (3) at the end.
12990 # Note that $ac_compile itself does not contain backslashes and begins
12991 # with a dollar sign (not a hyphen), so the echo should work correctly.
12992 lt_compile=`echo "$ac_compile" | $SED \
12993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12995 -e 's:$: $lt_compiler_flag:'`
12996 (eval echo "\"\$as_me:12996: $lt_compile\"" >&5)
12997 (eval "$lt_compile" 2>out/conftest.err)
12998 ac_status=$?
12999 cat out/conftest.err >&5
13000 echo "$as_me:13000: \$? = $ac_status" >&5
13001 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13002 then
13003 # The compiler can only warn and ignore the option if not recognized
13004 # So say no if there are warnings
13005 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13008 lt_cv_prog_compiler_c_o_CXX=yes
13011 chmod u+w . 2>&5
13012 $rm conftest*
13013 # SGI C++ compiler will create directory out/ii_files/ for
13014 # template instantiation
13015 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13016 $rm out/* && rmdir out
13017 cd ..
13018 rmdir conftest
13019 $rm conftest*
13022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13023 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13026 hard_links="nottested"
13027 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13028 # do not overwrite the value of need_locks provided by the user
13029 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13030 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13031 hard_links=yes
13032 $rm conftest*
13033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13034 touch conftest.a
13035 ln conftest.a conftest.b 2>&5 || hard_links=no
13036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13037 { echo "$as_me:$LINENO: result: $hard_links" >&5
13038 echo "${ECHO_T}$hard_links" >&6; }
13039 if test "$hard_links" = no; then
13040 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13041 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13042 need_locks=warn
13044 else
13045 need_locks=no
13048 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13049 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13051 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13052 case $host_os in
13053 aix[4-9]*)
13054 # If we're using GNU nm, then we don't want the "-C" option.
13055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13056 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13057 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'
13058 else
13059 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'
13062 pw32*)
13063 export_symbols_cmds_CXX="$ltdll_cmds"
13065 cygwin* | mingw*)
13066 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'
13069 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13071 esac
13072 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13074 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13075 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13076 test "$ld_shlibs_CXX" = no && can_build_shared=no
13079 # Do we need to explicitly link libc?
13081 case "x$archive_cmds_need_lc_CXX" in
13082 x|xyes)
13083 # Assume -lc should be added
13084 archive_cmds_need_lc_CXX=yes
13086 if test "$enable_shared" = yes && test "$GCC" = yes; then
13087 case $archive_cmds_CXX in
13088 *'~'*)
13089 # FIXME: we may have to deal with multi-command sequences.
13091 '$CC '*)
13092 # Test whether the compiler implicitly links with -lc since on some
13093 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13094 # to ld, don't add -lc before -lgcc.
13095 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13096 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13097 $rm conftest*
13098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } 2>conftest.err; then
13105 soname=conftest
13106 lib=conftest
13107 libobjs=conftest.$ac_objext
13108 deplibs=
13109 wl=$lt_prog_compiler_wl_CXX
13110 pic_flag=$lt_prog_compiler_pic_CXX
13111 compiler_flags=-v
13112 linker_flags=-v
13113 verstring=
13114 output_objdir=.
13115 libname=conftest
13116 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13117 allow_undefined_flag_CXX=
13118 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13119 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }
13123 then
13124 archive_cmds_need_lc_CXX=no
13125 else
13126 archive_cmds_need_lc_CXX=yes
13128 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13129 else
13130 cat conftest.err 1>&5
13132 $rm conftest*
13133 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13134 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13136 esac
13139 esac
13141 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13142 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13143 library_names_spec=
13144 libname_spec='lib$name'
13145 soname_spec=
13146 shrext_cmds=".so"
13147 postinstall_cmds=
13148 postuninstall_cmds=
13149 finish_cmds=
13150 finish_eval=
13151 shlibpath_var=
13152 shlibpath_overrides_runpath=unknown
13153 version_type=none
13154 dynamic_linker="$host_os ld.so"
13155 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13157 need_lib_prefix=unknown
13158 hardcode_into_libs=no
13160 # when you set need_version to no, make sure it does not cause -set_version
13161 # flags to be left without arguments
13162 need_version=unknown
13164 case $host_os in
13165 aix3*)
13166 version_type=linux
13167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13168 shlibpath_var=LIBPATH
13170 # AIX 3 has no versioning support, so we append a major version to the name.
13171 soname_spec='${libname}${release}${shared_ext}$major'
13174 aix[4-9]*)
13175 version_type=linux
13176 need_lib_prefix=no
13177 need_version=no
13178 hardcode_into_libs=yes
13179 if test "$host_cpu" = ia64; then
13180 # AIX 5 supports IA64
13181 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 else
13184 # With GCC up to 2.95.x, collect2 would create an import file
13185 # for dependence libraries. The import file would start with
13186 # the line `#! .'. This would cause the generated library to
13187 # depend on `.', always an invalid library. This was fixed in
13188 # development snapshots of GCC prior to 3.0.
13189 case $host_os in
13190 aix4 | aix4.[01] | aix4.[01].*)
13191 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13192 echo ' yes '
13193 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13195 else
13196 can_build_shared=no
13199 esac
13200 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13201 # soname into executable. Probably we can add versioning support to
13202 # collect2, so additional links can be useful in future.
13203 if test "$aix_use_runtimelinking" = yes; then
13204 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13205 # instead of lib<name>.a to let people know that these are not
13206 # typical AIX shared libraries.
13207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13208 else
13209 # We preserve .a as extension for shared libraries through AIX4.2
13210 # and later when we are not doing run time linking.
13211 library_names_spec='${libname}${release}.a $libname.a'
13212 soname_spec='${libname}${release}${shared_ext}$major'
13214 shlibpath_var=LIBPATH
13218 amigaos*)
13219 library_names_spec='$libname.ixlibrary $libname.a'
13220 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13221 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'
13224 beos*)
13225 library_names_spec='${libname}${shared_ext}'
13226 dynamic_linker="$host_os ld.so"
13227 shlibpath_var=LIBRARY_PATH
13230 bsdi[45]*)
13231 version_type=linux
13232 need_version=no
13233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13234 soname_spec='${libname}${release}${shared_ext}$major'
13235 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13236 shlibpath_var=LD_LIBRARY_PATH
13237 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13238 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13239 # the default ld.so.conf also contains /usr/contrib/lib and
13240 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13241 # libtool to hard-code these into programs
13244 cygwin* | mingw* | pw32*)
13245 version_type=windows
13246 shrext_cmds=".dll"
13247 need_version=no
13248 need_lib_prefix=no
13250 case $GCC,$host_os in
13251 yes,cygwin* | yes,mingw* | yes,pw32*)
13252 library_names_spec='$libname.dll.a'
13253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13254 postinstall_cmds='base_file=`basename \${file}`~
13255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13256 dldir=$destdir/`dirname \$dlpath`~
13257 test -d \$dldir || mkdir -p \$dldir~
13258 $install_prog $dir/$dlname \$dldir/$dlname~
13259 chmod a+x \$dldir/$dlname'
13260 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13261 dlpath=$dir/\$dldll~
13262 $rm \$dlpath'
13263 shlibpath_overrides_runpath=yes
13265 case $host_os in
13266 cygwin*)
13267 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13268 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13269 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13271 mingw*)
13272 # MinGW DLLs use traditional 'lib' prefix
13273 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13274 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13275 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13276 # It is most probably a Windows format PATH printed by
13277 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13278 # path with ; separators, and with drive letters. We can handle the
13279 # drive letters (cygwin fileutils understands them), so leave them,
13280 # especially as we might pass files found there to a mingw objdump,
13281 # which wouldn't understand a cygwinified path. Ahh.
13282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13283 else
13284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13287 pw32*)
13288 # pw32 DLLs use 'pw' prefix rather than 'lib'
13289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13291 esac
13295 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13297 esac
13298 dynamic_linker='Win32 ld.exe'
13299 # FIXME: first we should search . and the directory the executable is in
13300 shlibpath_var=PATH
13303 darwin* | rhapsody*)
13304 dynamic_linker="$host_os dyld"
13305 version_type=darwin
13306 need_lib_prefix=no
13307 need_version=no
13308 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13309 soname_spec='${libname}${release}${major}$shared_ext'
13310 shlibpath_overrides_runpath=yes
13311 shlibpath_var=DYLD_LIBRARY_PATH
13312 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13314 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13317 dgux*)
13318 version_type=linux
13319 need_lib_prefix=no
13320 need_version=no
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13322 soname_spec='${libname}${release}${shared_ext}$major'
13323 shlibpath_var=LD_LIBRARY_PATH
13326 freebsd1*)
13327 dynamic_linker=no
13330 freebsd* | dragonfly*)
13331 # DragonFly does not have aout. When/if they implement a new
13332 # versioning mechanism, adjust this.
13333 if test -x /usr/bin/objformat; then
13334 objformat=`/usr/bin/objformat`
13335 else
13336 case $host_os in
13337 freebsd[123]*) objformat=aout ;;
13338 *) objformat=elf ;;
13339 esac
13341 version_type=freebsd-$objformat
13342 case $version_type in
13343 freebsd-elf*)
13344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13345 need_version=no
13346 need_lib_prefix=no
13348 freebsd-*)
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13350 need_version=yes
13352 esac
13353 shlibpath_var=LD_LIBRARY_PATH
13354 case $host_os in
13355 freebsd2*)
13356 shlibpath_overrides_runpath=yes
13358 freebsd3.[01]* | freebsdelf3.[01]*)
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
13362 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13363 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13364 shlibpath_overrides_runpath=no
13365 hardcode_into_libs=yes
13367 *) # from 4.6 on, and DragonFly
13368 shlibpath_overrides_runpath=yes
13369 hardcode_into_libs=yes
13371 esac
13374 gnu*)
13375 version_type=linux
13376 need_lib_prefix=no
13377 need_version=no
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 hardcode_into_libs=yes
13384 hpux9* | hpux10* | hpux11*)
13385 # Give a soname corresponding to the major version so that dld.sl refuses to
13386 # link against other versions.
13387 version_type=sunos
13388 need_lib_prefix=no
13389 need_version=no
13390 case $host_cpu in
13391 ia64*)
13392 shrext_cmds='.so'
13393 hardcode_into_libs=yes
13394 dynamic_linker="$host_os dld.so"
13395 shlibpath_var=LD_LIBRARY_PATH
13396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398 soname_spec='${libname}${release}${shared_ext}$major'
13399 if test "X$HPUX_IA64_MODE" = X32; then
13400 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13401 else
13402 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13406 hppa*64*)
13407 shrext_cmds='.sl'
13408 hardcode_into_libs=yes
13409 dynamic_linker="$host_os dld.sl"
13410 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13411 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413 soname_spec='${libname}${release}${shared_ext}$major'
13414 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13415 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13418 shrext_cmds='.sl'
13419 dynamic_linker="$host_os dld.sl"
13420 shlibpath_var=SHLIB_PATH
13421 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423 soname_spec='${libname}${release}${shared_ext}$major'
13425 esac
13426 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13427 postinstall_cmds='chmod 555 $lib'
13430 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 shlibpath_overrides_runpath=no
13439 hardcode_into_libs=yes
13442 irix5* | irix6* | nonstopux*)
13443 case $host_os in
13444 nonstopux*) version_type=nonstopux ;;
13446 if test "$lt_cv_prog_gnu_ld" = yes; then
13447 version_type=linux
13448 else
13449 version_type=irix
13450 fi ;;
13451 esac
13452 need_lib_prefix=no
13453 need_version=no
13454 soname_spec='${libname}${release}${shared_ext}$major'
13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13456 case $host_os in
13457 irix5* | nonstopux*)
13458 libsuff= shlibsuff=
13461 case $LD in # libtool.m4 will add one of these switches to LD
13462 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13463 libsuff= shlibsuff= libmagic=32-bit;;
13464 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13465 libsuff=32 shlibsuff=N32 libmagic=N32;;
13466 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13467 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13468 *) libsuff= shlibsuff= libmagic=never-match;;
13469 esac
13471 esac
13472 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13473 shlibpath_overrides_runpath=no
13474 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13475 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13476 hardcode_into_libs=yes
13479 # No shared lib support for Linux oldld, aout, or coff.
13480 linux*oldld* | linux*aout* | linux*coff*)
13481 dynamic_linker=no
13484 # This must be Linux ELF.
13485 linux* | k*bsd*-gnu)
13486 version_type=linux
13487 need_lib_prefix=no
13488 need_version=no
13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13490 soname_spec='${libname}${release}${shared_ext}$major'
13491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13492 shlibpath_var=LD_LIBRARY_PATH
13493 shlibpath_overrides_runpath=no
13494 # This implies no fast_install, which is unacceptable.
13495 # Some rework will be needed to allow for fast_install
13496 # before this can be enabled.
13497 hardcode_into_libs=yes
13499 # Append ld.so.conf contents to the search path
13500 if test -f /etc/ld.so.conf; then
13501 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' ' '`
13502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13505 # We used to test for /lib/ld.so.1 and disable shared libraries on
13506 # powerpc, because MkLinux only supported shared libraries with the
13507 # GNU dynamic linker. Since this was broken with cross compilers,
13508 # most powerpc-linux boxes support dynamic linking these days and
13509 # people can always --disable-shared, the test was removed, and we
13510 # assume the GNU/Linux dynamic linker is in use.
13511 dynamic_linker='GNU/Linux ld.so'
13514 netbsd*)
13515 version_type=sunos
13516 need_lib_prefix=no
13517 need_version=no
13518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13521 dynamic_linker='NetBSD (a.out) ld.so'
13522 else
13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13524 soname_spec='${libname}${release}${shared_ext}$major'
13525 dynamic_linker='NetBSD ld.elf_so'
13527 shlibpath_var=LD_LIBRARY_PATH
13528 shlibpath_overrides_runpath=yes
13529 hardcode_into_libs=yes
13532 newsos6)
13533 version_type=linux
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 shlibpath_overrides_runpath=yes
13539 nto-qnx*)
13540 version_type=linux
13541 need_lib_prefix=no
13542 need_version=no
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544 soname_spec='${libname}${release}${shared_ext}$major'
13545 shlibpath_var=LD_LIBRARY_PATH
13546 shlibpath_overrides_runpath=yes
13549 openbsd*)
13550 version_type=sunos
13551 sys_lib_dlsearch_path_spec="/usr/lib"
13552 need_lib_prefix=no
13553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13554 case $host_os in
13555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13556 *) need_version=no ;;
13557 esac
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13560 shlibpath_var=LD_LIBRARY_PATH
13561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13562 case $host_os in
13563 openbsd2.[89] | openbsd2.[89].*)
13564 shlibpath_overrides_runpath=no
13567 shlibpath_overrides_runpath=yes
13569 esac
13570 else
13571 shlibpath_overrides_runpath=yes
13575 os2*)
13576 libname_spec='$name'
13577 shrext_cmds=".dll"
13578 need_lib_prefix=no
13579 library_names_spec='$libname${shared_ext} $libname.a'
13580 dynamic_linker='OS/2 ld.exe'
13581 shlibpath_var=LIBPATH
13584 osf3* | osf4* | osf5*)
13585 version_type=osf
13586 need_lib_prefix=no
13587 need_version=no
13588 soname_spec='${libname}${release}${shared_ext}$major'
13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13595 rdos*)
13596 dynamic_linker=no
13599 solaris*)
13600 version_type=linux
13601 need_lib_prefix=no
13602 need_version=no
13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604 soname_spec='${libname}${release}${shared_ext}$major'
13605 shlibpath_var=LD_LIBRARY_PATH
13606 shlibpath_overrides_runpath=yes
13607 hardcode_into_libs=yes
13608 # ldd complains unless libraries are executable
13609 postinstall_cmds='chmod +x $lib'
13612 sunos4*)
13613 version_type=sunos
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13616 shlibpath_var=LD_LIBRARY_PATH
13617 shlibpath_overrides_runpath=yes
13618 if test "$with_gnu_ld" = yes; then
13619 need_lib_prefix=no
13621 need_version=yes
13624 sysv4 | sysv4.3*)
13625 version_type=linux
13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627 soname_spec='${libname}${release}${shared_ext}$major'
13628 shlibpath_var=LD_LIBRARY_PATH
13629 case $host_vendor in
13630 sni)
13631 shlibpath_overrides_runpath=no
13632 need_lib_prefix=no
13633 export_dynamic_flag_spec='${wl}-Blargedynsym'
13634 runpath_var=LD_RUN_PATH
13636 siemens)
13637 need_lib_prefix=no
13639 motorola)
13640 need_lib_prefix=no
13641 need_version=no
13642 shlibpath_overrides_runpath=no
13643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13645 esac
13648 sysv4*MP*)
13649 if test -d /usr/nec ;then
13650 version_type=linux
13651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13652 soname_spec='$libname${shared_ext}.$major'
13653 shlibpath_var=LD_LIBRARY_PATH
13657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13658 version_type=freebsd-elf
13659 need_lib_prefix=no
13660 need_version=no
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13662 soname_spec='${libname}${release}${shared_ext}$major'
13663 shlibpath_var=LD_LIBRARY_PATH
13664 hardcode_into_libs=yes
13665 if test "$with_gnu_ld" = yes; then
13666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13667 shlibpath_overrides_runpath=no
13668 else
13669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13670 shlibpath_overrides_runpath=yes
13671 case $host_os in
13672 sco3.2v5*)
13673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13675 esac
13677 sys_lib_dlsearch_path_spec='/usr/lib'
13680 uts4*)
13681 version_type=linux
13682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13683 soname_spec='${libname}${release}${shared_ext}$major'
13684 shlibpath_var=LD_LIBRARY_PATH
13688 dynamic_linker=no
13690 esac
13691 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13692 echo "${ECHO_T}$dynamic_linker" >&6; }
13693 test "$dynamic_linker" = no && can_build_shared=no
13695 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13701 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13702 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13708 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13710 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13711 if test "$GCC" = yes; then
13712 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13715 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13716 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13717 hardcode_action_CXX=
13718 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13719 test -n "$runpath_var_CXX" || \
13720 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13722 # We can hardcode non-existant directories.
13723 if test "$hardcode_direct_CXX" != no &&
13724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13725 # have to relink, otherwise we might link with an installed library
13726 # when we should be linking with a yet-to-be-installed one
13727 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13728 test "$hardcode_minus_L_CXX" != no; then
13729 # Linking always hardcodes the temporary library directory.
13730 hardcode_action_CXX=relink
13731 else
13732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13733 hardcode_action_CXX=immediate
13735 else
13736 # We cannot hardcode anything, or else we can only hardcode existing
13737 # directories.
13738 hardcode_action_CXX=unsupported
13740 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13741 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13743 if test "$hardcode_action_CXX" = relink; then
13744 # Fast installation is not supported
13745 enable_fast_install=no
13746 elif test "$shlibpath_overrides_runpath" = yes ||
13747 test "$enable_shared" = no; then
13748 # Fast installation is not necessary
13749 enable_fast_install=needless
13753 # The else clause should only fire when bootstrapping the
13754 # libtool distribution, otherwise you forgot to ship ltmain.sh
13755 # with your package, and you will get complaints that there are
13756 # no rules to generate ltmain.sh.
13757 if test -f "$ltmain"; then
13758 # See if we are running on zsh, and set the options which allow our commands through
13759 # without removal of \ escapes.
13760 if test -n "${ZSH_VERSION+set}" ; then
13761 setopt NO_GLOB_SUBST
13763 # Now quote all the things that may contain metacharacters while being
13764 # careful not to overquote the AC_SUBSTed values. We take copies of the
13765 # variables and quote the copies for generation of the libtool script.
13766 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13767 SED SHELL STRIP \
13768 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13769 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13770 deplibs_check_method reload_flag reload_cmds need_locks \
13771 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13772 lt_cv_sys_global_symbol_to_c_name_address \
13773 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13774 old_postinstall_cmds old_postuninstall_cmds \
13775 compiler_CXX \
13776 CC_CXX \
13777 LD_CXX \
13778 lt_prog_compiler_wl_CXX \
13779 lt_prog_compiler_pic_CXX \
13780 lt_prog_compiler_static_CXX \
13781 lt_prog_compiler_no_builtin_flag_CXX \
13782 export_dynamic_flag_spec_CXX \
13783 thread_safe_flag_spec_CXX \
13784 whole_archive_flag_spec_CXX \
13785 enable_shared_with_static_runtimes_CXX \
13786 old_archive_cmds_CXX \
13787 old_archive_from_new_cmds_CXX \
13788 predep_objects_CXX \
13789 postdep_objects_CXX \
13790 predeps_CXX \
13791 postdeps_CXX \
13792 compiler_lib_search_path_CXX \
13793 compiler_lib_search_dirs_CXX \
13794 archive_cmds_CXX \
13795 archive_expsym_cmds_CXX \
13796 postinstall_cmds_CXX \
13797 postuninstall_cmds_CXX \
13798 old_archive_from_expsyms_cmds_CXX \
13799 allow_undefined_flag_CXX \
13800 no_undefined_flag_CXX \
13801 export_symbols_cmds_CXX \
13802 hardcode_libdir_flag_spec_CXX \
13803 hardcode_libdir_flag_spec_ld_CXX \
13804 hardcode_libdir_separator_CXX \
13805 hardcode_automatic_CXX \
13806 module_cmds_CXX \
13807 module_expsym_cmds_CXX \
13808 lt_cv_prog_compiler_c_o_CXX \
13809 fix_srcfile_path_CXX \
13810 exclude_expsyms_CXX \
13811 include_expsyms_CXX; do
13813 case $var in
13814 old_archive_cmds_CXX | \
13815 old_archive_from_new_cmds_CXX | \
13816 archive_cmds_CXX | \
13817 archive_expsym_cmds_CXX | \
13818 module_cmds_CXX | \
13819 module_expsym_cmds_CXX | \
13820 old_archive_from_expsyms_cmds_CXX | \
13821 export_symbols_cmds_CXX | \
13822 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13823 postinstall_cmds | postuninstall_cmds | \
13824 old_postinstall_cmds | old_postuninstall_cmds | \
13825 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13826 # Double-quote double-evaled strings.
13827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13832 esac
13833 done
13835 case $lt_echo in
13836 *'\$0 --fallback-echo"')
13837 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13839 esac
13841 cfgfile="$ofile"
13843 cat <<__EOF__ >> "$cfgfile"
13844 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13848 # Shell to use when invoking shell scripts.
13849 SHELL=$lt_SHELL
13851 # Whether or not to build shared libraries.
13852 build_libtool_libs=$enable_shared
13854 # Whether or not to build static libraries.
13855 build_old_libs=$enable_static
13857 # Whether or not to add -lc for building shared libraries.
13858 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13860 # Whether or not to disallow shared libs when runtime libs are static
13861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13863 # Whether or not to optimize for fast installation.
13864 fast_install=$enable_fast_install
13866 # The host system.
13867 host_alias=$host_alias
13868 host=$host
13869 host_os=$host_os
13871 # The build system.
13872 build_alias=$build_alias
13873 build=$build
13874 build_os=$build_os
13876 # An echo program that does not interpret backslashes.
13877 echo=$lt_echo
13879 # The archiver.
13880 AR=$lt_AR
13881 AR_FLAGS=$lt_AR_FLAGS
13883 # A C compiler.
13884 LTCC=$lt_LTCC
13886 # LTCC compiler flags.
13887 LTCFLAGS=$lt_LTCFLAGS
13889 # A language-specific compiler.
13890 CC=$lt_compiler_CXX
13892 # Is the compiler the GNU C compiler?
13893 with_gcc=$GCC_CXX
13895 # An ERE matcher.
13896 EGREP=$lt_EGREP
13898 # The linker used to build libraries.
13899 LD=$lt_LD_CXX
13901 # Whether we need hard or soft links.
13902 LN_S=$lt_LN_S
13904 # A BSD-compatible nm program.
13905 NM=$lt_NM
13907 # A symbol stripping program
13908 STRIP=$lt_STRIP
13910 # Used to examine libraries when file_magic_cmd begins "file"
13911 MAGIC_CMD=$MAGIC_CMD
13913 # Used on cygwin: DLL creation program.
13914 DLLTOOL="$DLLTOOL"
13916 # Used on cygwin: object dumper.
13917 OBJDUMP="$OBJDUMP"
13919 # Used on cygwin: assembler.
13920 AS="$AS"
13922 # The name of the directory that contains temporary libtool files.
13923 objdir=$objdir
13925 # How to create reloadable object files.
13926 reload_flag=$lt_reload_flag
13927 reload_cmds=$lt_reload_cmds
13929 # How to pass a linker flag through the compiler.
13930 wl=$lt_lt_prog_compiler_wl_CXX
13932 # Object file suffix (normally "o").
13933 objext="$ac_objext"
13935 # Old archive suffix (normally "a").
13936 libext="$libext"
13938 # Shared library suffix (normally ".so").
13939 shrext_cmds='$shrext_cmds'
13941 # Executable file suffix (normally "").
13942 exeext="$exeext"
13944 # Additional compiler flags for building library objects.
13945 pic_flag=$lt_lt_prog_compiler_pic_CXX
13946 pic_mode=$pic_mode
13948 # What is the maximum length of a command?
13949 max_cmd_len=$lt_cv_sys_max_cmd_len
13951 # Does compiler simultaneously support -c and -o options?
13952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13954 # Must we lock files when doing compilation?
13955 need_locks=$lt_need_locks
13957 # Do we need the lib prefix for modules?
13958 need_lib_prefix=$need_lib_prefix
13960 # Do we need a version for libraries?
13961 need_version=$need_version
13963 # Whether dlopen is supported.
13964 dlopen_support=$enable_dlopen
13966 # Whether dlopen of programs is supported.
13967 dlopen_self=$enable_dlopen_self
13969 # Whether dlopen of statically linked programs is supported.
13970 dlopen_self_static=$enable_dlopen_self_static
13972 # Compiler flag to prevent dynamic linking.
13973 link_static_flag=$lt_lt_prog_compiler_static_CXX
13975 # Compiler flag to turn off builtin functions.
13976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13978 # Compiler flag to allow reflexive dlopens.
13979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13981 # Compiler flag to generate shared objects directly from archives.
13982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13984 # Compiler flag to generate thread-safe objects.
13985 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13987 # Library versioning type.
13988 version_type=$version_type
13990 # Format of library name prefix.
13991 libname_spec=$lt_libname_spec
13993 # List of archive names. First name is the real one, the rest are links.
13994 # The last name is the one that the linker finds with -lNAME.
13995 library_names_spec=$lt_library_names_spec
13997 # The coded name of the library, if different from the real name.
13998 soname_spec=$lt_soname_spec
14000 # Commands used to build and install an old-style archive.
14001 RANLIB=$lt_RANLIB
14002 old_archive_cmds=$lt_old_archive_cmds_CXX
14003 old_postinstall_cmds=$lt_old_postinstall_cmds
14004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14006 # Create an old-style archive from a shared archive.
14007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14009 # Create a temporary old-style archive to link instead of a shared archive.
14010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14012 # Commands used to build and install a shared archive.
14013 archive_cmds=$lt_archive_cmds_CXX
14014 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14015 postinstall_cmds=$lt_postinstall_cmds
14016 postuninstall_cmds=$lt_postuninstall_cmds
14018 # Commands used to build a loadable module (assumed same as above if empty)
14019 module_cmds=$lt_module_cmds_CXX
14020 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14022 # Commands to strip libraries.
14023 old_striplib=$lt_old_striplib
14024 striplib=$lt_striplib
14026 # Dependencies to place before the objects being linked to create a
14027 # shared library.
14028 predep_objects=$lt_predep_objects_CXX
14030 # Dependencies to place after the objects being linked to create a
14031 # shared library.
14032 postdep_objects=$lt_postdep_objects_CXX
14034 # Dependencies to place before the objects being linked to create a
14035 # shared library.
14036 predeps=$lt_predeps_CXX
14038 # Dependencies to place after the objects being linked to create a
14039 # shared library.
14040 postdeps=$lt_postdeps_CXX
14042 # The directories searched by this compiler when creating a shared
14043 # library
14044 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14046 # The library search path used internally by the compiler when linking
14047 # a shared library.
14048 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14050 # Method to check whether dependent libraries are shared objects.
14051 deplibs_check_method=$lt_deplibs_check_method
14053 # Command to use when deplibs_check_method == file_magic.
14054 file_magic_cmd=$lt_file_magic_cmd
14056 # Flag that allows shared libraries with undefined symbols to be built.
14057 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14059 # Flag that forces no undefined symbols.
14060 no_undefined_flag=$lt_no_undefined_flag_CXX
14062 # Commands used to finish a libtool library installation in a directory.
14063 finish_cmds=$lt_finish_cmds
14065 # Same as above, but a single script fragment to be evaled but not shown.
14066 finish_eval=$lt_finish_eval
14068 # Take the output of nm and produce a listing of raw symbols and C names.
14069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14071 # Transform the output of nm in a proper C declaration
14072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14074 # Transform the output of nm in a C name address pair
14075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14077 # This is the shared library runtime path variable.
14078 runpath_var=$runpath_var
14080 # This is the shared library path variable.
14081 shlibpath_var=$shlibpath_var
14083 # Is shlibpath searched before the hard-coded library search path?
14084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14086 # How to hardcode a shared library path into an executable.
14087 hardcode_action=$hardcode_action_CXX
14089 # Whether we should hardcode library paths into libraries.
14090 hardcode_into_libs=$hardcode_into_libs
14092 # Flag to hardcode \$libdir into a binary during linking.
14093 # This must work even if \$libdir does not exist.
14094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14096 # If ld is used when linking, flag to hardcode \$libdir into
14097 # a binary during linking. This must work even if \$libdir does
14098 # not exist.
14099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14101 # Whether we need a single -rpath flag with a separated argument.
14102 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14105 # resulting binary.
14106 hardcode_direct=$hardcode_direct_CXX
14108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14109 # resulting binary.
14110 hardcode_minus_L=$hardcode_minus_L_CXX
14112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14113 # the resulting binary.
14114 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14116 # Set to yes if building a shared library automatically hardcodes DIR into the library
14117 # and all subsequent libraries and executables linked against it.
14118 hardcode_automatic=$hardcode_automatic_CXX
14120 # Variables whose values should be saved in libtool wrapper scripts and
14121 # restored at relink time.
14122 variables_saved_for_relink="$variables_saved_for_relink"
14124 # Whether libtool must link a program against all its dependency libraries.
14125 link_all_deplibs=$link_all_deplibs_CXX
14127 # Compile-time system search path for libraries
14128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14130 # Run-time system search path for libraries
14131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14133 # Fix the shell variable \$srcfile for the compiler.
14134 fix_srcfile_path=$lt_fix_srcfile_path
14136 # Set to yes if exported symbols are required.
14137 always_export_symbols=$always_export_symbols_CXX
14139 # The commands to list exported symbols.
14140 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14142 # The commands to extract the exported symbol list from a shared archive.
14143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14145 # Symbols that should not be listed in the preloaded symbols.
14146 exclude_expsyms=$lt_exclude_expsyms_CXX
14148 # Symbols that must always be exported.
14149 include_expsyms=$lt_include_expsyms_CXX
14151 # ### END LIBTOOL TAG CONFIG: $tagname
14153 __EOF__
14156 else
14157 # If there is no Makefile yet, we rely on a make rule to execute
14158 # `config.status --recheck' to rerun these tests and create the
14159 # libtool script then.
14160 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14161 if test -f "$ltmain_in"; then
14162 test -f Makefile && make "$ltmain"
14167 ac_ext=c
14168 ac_cpp='$CPP $CPPFLAGS'
14169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14173 CC=$lt_save_CC
14174 LDCXX=$LD
14175 LD=$lt_save_LD
14176 GCC=$lt_save_GCC
14177 with_gnu_ldcxx=$with_gnu_ld
14178 with_gnu_ld=$lt_save_with_gnu_ld
14179 lt_cv_path_LDCXX=$lt_cv_path_LD
14180 lt_cv_path_LD=$lt_save_path_LD
14181 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14182 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14184 else
14185 tagname=""
14189 F77)
14190 if test -n "$F77" && test "X$F77" != "Xno"; then
14192 ac_ext=f
14193 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14194 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14195 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14198 archive_cmds_need_lc_F77=no
14199 allow_undefined_flag_F77=
14200 always_export_symbols_F77=no
14201 archive_expsym_cmds_F77=
14202 export_dynamic_flag_spec_F77=
14203 hardcode_direct_F77=no
14204 hardcode_libdir_flag_spec_F77=
14205 hardcode_libdir_flag_spec_ld_F77=
14206 hardcode_libdir_separator_F77=
14207 hardcode_minus_L_F77=no
14208 hardcode_automatic_F77=no
14209 module_cmds_F77=
14210 module_expsym_cmds_F77=
14211 link_all_deplibs_F77=unknown
14212 old_archive_cmds_F77=$old_archive_cmds
14213 no_undefined_flag_F77=
14214 whole_archive_flag_spec_F77=
14215 enable_shared_with_static_runtimes_F77=no
14217 # Source file extension for f77 test sources.
14218 ac_ext=f
14220 # Object file extension for compiled f77 test sources.
14221 objext=o
14222 objext_F77=$objext
14224 # Code to be used in simple compile tests
14225 lt_simple_compile_test_code="\
14226 subroutine t
14227 return
14231 # Code to be used in simple link tests
14232 lt_simple_link_test_code="\
14233 program t
14237 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14239 # If no C compiler was specified, use CC.
14240 LTCC=${LTCC-"$CC"}
14242 # If no C compiler flags were specified, use CFLAGS.
14243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14245 # Allow CC to be a program name with arguments.
14246 compiler=$CC
14249 # save warnings/boilerplate of simple test code
14250 ac_outfile=conftest.$ac_objext
14251 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14253 _lt_compiler_boilerplate=`cat conftest.err`
14254 $rm conftest*
14256 ac_outfile=conftest.$ac_objext
14257 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14259 _lt_linker_boilerplate=`cat conftest.err`
14260 $rm -r conftest*
14263 # Allow CC to be a program name with arguments.
14264 lt_save_CC="$CC"
14265 CC=${F77-"f77"}
14266 compiler=$CC
14267 compiler_F77=$CC
14268 for cc_temp in $compiler""; do
14269 case $cc_temp in
14270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14272 \-*) ;;
14273 *) break;;
14274 esac
14275 done
14276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14279 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14280 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14281 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14282 echo "${ECHO_T}$can_build_shared" >&6; }
14284 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14285 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14286 test "$can_build_shared" = "no" && enable_shared=no
14288 # On AIX, shared libraries and static libraries use the same namespace, and
14289 # are all built from PIC.
14290 case $host_os in
14291 aix3*)
14292 test "$enable_shared" = yes && enable_static=no
14293 if test -n "$RANLIB"; then
14294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14295 postinstall_cmds='$RANLIB $lib'
14298 aix[4-9]*)
14299 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14300 test "$enable_shared" = yes && enable_static=no
14303 esac
14304 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14305 echo "${ECHO_T}$enable_shared" >&6; }
14307 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14308 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14309 # Make sure either enable_shared or enable_static is yes.
14310 test "$enable_shared" = yes || enable_static=yes
14311 { echo "$as_me:$LINENO: result: $enable_static" >&5
14312 echo "${ECHO_T}$enable_static" >&6; }
14314 GCC_F77="$G77"
14315 LD_F77="$LD"
14317 lt_prog_compiler_wl_F77=
14318 lt_prog_compiler_pic_F77=
14319 lt_prog_compiler_static_F77=
14321 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14322 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14324 if test "$GCC" = yes; then
14325 lt_prog_compiler_wl_F77='-Wl,'
14326 lt_prog_compiler_static_F77='-static'
14328 case $host_os in
14329 aix*)
14330 # All AIX code is PIC.
14331 if test "$host_cpu" = ia64; then
14332 # AIX 5 now supports IA64 processor
14333 lt_prog_compiler_static_F77='-Bstatic'
14337 amigaos*)
14338 # FIXME: we need at least 68020 code to build shared libraries, but
14339 # adding the `-m68020' flag to GCC prevents building anything better,
14340 # like `-m68040'.
14341 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14344 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14345 # PIC is the default for these OSes.
14348 mingw* | cygwin* | pw32* | os2*)
14349 # This hack is so that the source file can tell whether it is being
14350 # built for inclusion in a dll (and should export symbols for example).
14351 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14352 # (--disable-auto-import) libraries
14353 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14356 darwin* | rhapsody*)
14357 # PIC is the default on this platform
14358 # Common symbols not allowed in MH_DYLIB files
14359 lt_prog_compiler_pic_F77='-fno-common'
14362 interix[3-9]*)
14363 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14364 # Instead, we relocate shared libraries at runtime.
14367 msdosdjgpp*)
14368 # Just because we use GCC doesn't mean we suddenly get shared libraries
14369 # on systems that don't support them.
14370 lt_prog_compiler_can_build_shared_F77=no
14371 enable_shared=no
14374 sysv4*MP*)
14375 if test -d /usr/nec; then
14376 lt_prog_compiler_pic_F77=-Kconform_pic
14380 hpux*)
14381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14382 # not for PA HP-UX.
14383 case $host_cpu in
14384 hppa*64*|ia64*)
14385 # +Z the default
14388 lt_prog_compiler_pic_F77='-fPIC'
14390 esac
14394 lt_prog_compiler_pic_F77='-fPIC'
14396 esac
14397 else
14398 # PORTME Check for flag to pass linker flags through the system compiler.
14399 case $host_os in
14400 aix*)
14401 lt_prog_compiler_wl_F77='-Wl,'
14402 if test "$host_cpu" = ia64; then
14403 # AIX 5 now supports IA64 processor
14404 lt_prog_compiler_static_F77='-Bstatic'
14405 else
14406 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14409 darwin*)
14410 # PIC is the default on this platform
14411 # Common symbols not allowed in MH_DYLIB files
14412 case $cc_basename in
14413 xlc*)
14414 lt_prog_compiler_pic_F77='-qnocommon'
14415 lt_prog_compiler_wl_F77='-Wl,'
14417 esac
14420 mingw* | cygwin* | pw32* | os2*)
14421 # This hack is so that the source file can tell whether it is being
14422 # built for inclusion in a dll (and should export symbols for example).
14423 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14426 hpux9* | hpux10* | hpux11*)
14427 lt_prog_compiler_wl_F77='-Wl,'
14428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14429 # not for PA HP-UX.
14430 case $host_cpu in
14431 hppa*64*|ia64*)
14432 # +Z the default
14435 lt_prog_compiler_pic_F77='+Z'
14437 esac
14438 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14439 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14442 irix5* | irix6* | nonstopux*)
14443 lt_prog_compiler_wl_F77='-Wl,'
14444 # PIC (with -KPIC) is the default.
14445 lt_prog_compiler_static_F77='-non_shared'
14448 newsos6)
14449 lt_prog_compiler_pic_F77='-KPIC'
14450 lt_prog_compiler_static_F77='-Bstatic'
14453 linux* | k*bsd*-gnu)
14454 case $cc_basename in
14455 icc* | ecc*)
14456 lt_prog_compiler_wl_F77='-Wl,'
14457 lt_prog_compiler_pic_F77='-KPIC'
14458 lt_prog_compiler_static_F77='-static'
14460 pgcc* | pgf77* | pgf90* | pgf95*)
14461 # Portland Group compilers (*not* the Pentium gcc compiler,
14462 # which looks to be a dead project)
14463 lt_prog_compiler_wl_F77='-Wl,'
14464 lt_prog_compiler_pic_F77='-fpic'
14465 lt_prog_compiler_static_F77='-Bstatic'
14467 ccc*)
14468 lt_prog_compiler_wl_F77='-Wl,'
14469 # All Alpha code is PIC.
14470 lt_prog_compiler_static_F77='-non_shared'
14473 case `$CC -V 2>&1 | sed 5q` in
14474 *Sun\ C*)
14475 # Sun C 5.9
14476 lt_prog_compiler_pic_F77='-KPIC'
14477 lt_prog_compiler_static_F77='-Bstatic'
14478 lt_prog_compiler_wl_F77='-Wl,'
14480 *Sun\ F*)
14481 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14482 lt_prog_compiler_pic_F77='-KPIC'
14483 lt_prog_compiler_static_F77='-Bstatic'
14484 lt_prog_compiler_wl_F77=''
14486 esac
14488 esac
14491 osf3* | osf4* | osf5*)
14492 lt_prog_compiler_wl_F77='-Wl,'
14493 # All OSF/1 code is PIC.
14494 lt_prog_compiler_static_F77='-non_shared'
14497 rdos*)
14498 lt_prog_compiler_static_F77='-non_shared'
14501 solaris*)
14502 lt_prog_compiler_pic_F77='-KPIC'
14503 lt_prog_compiler_static_F77='-Bstatic'
14504 case $cc_basename in
14505 f77* | f90* | f95*)
14506 lt_prog_compiler_wl_F77='-Qoption ld ';;
14508 lt_prog_compiler_wl_F77='-Wl,';;
14509 esac
14512 sunos4*)
14513 lt_prog_compiler_wl_F77='-Qoption ld '
14514 lt_prog_compiler_pic_F77='-PIC'
14515 lt_prog_compiler_static_F77='-Bstatic'
14518 sysv4 | sysv4.2uw2* | sysv4.3*)
14519 lt_prog_compiler_wl_F77='-Wl,'
14520 lt_prog_compiler_pic_F77='-KPIC'
14521 lt_prog_compiler_static_F77='-Bstatic'
14524 sysv4*MP*)
14525 if test -d /usr/nec ;then
14526 lt_prog_compiler_pic_F77='-Kconform_pic'
14527 lt_prog_compiler_static_F77='-Bstatic'
14531 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14532 lt_prog_compiler_wl_F77='-Wl,'
14533 lt_prog_compiler_pic_F77='-KPIC'
14534 lt_prog_compiler_static_F77='-Bstatic'
14537 unicos*)
14538 lt_prog_compiler_wl_F77='-Wl,'
14539 lt_prog_compiler_can_build_shared_F77=no
14542 uts4*)
14543 lt_prog_compiler_pic_F77='-pic'
14544 lt_prog_compiler_static_F77='-Bstatic'
14548 lt_prog_compiler_can_build_shared_F77=no
14550 esac
14553 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14554 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14557 # Check to make sure the PIC flag actually works.
14559 if test -n "$lt_prog_compiler_pic_F77"; then
14561 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14562 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14563 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566 lt_cv_prog_compiler_pic_works_F77=no
14567 ac_outfile=conftest.$ac_objext
14568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14569 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14570 # Insert the option either (1) after the last *FLAGS variable, or
14571 # (2) before a word containing "conftest.", or (3) at the end.
14572 # Note that $ac_compile itself does not contain backslashes and begins
14573 # with a dollar sign (not a hyphen), so the echo should work correctly.
14574 # The option is referenced via a variable to avoid confusing sed.
14575 lt_compile=`echo "$ac_compile" | $SED \
14576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14578 -e 's:$: $lt_compiler_flag:'`
14579 (eval echo "\"\$as_me:14579: $lt_compile\"" >&5)
14580 (eval "$lt_compile" 2>conftest.err)
14581 ac_status=$?
14582 cat conftest.err >&5
14583 echo "$as_me:14583: \$? = $ac_status" >&5
14584 if (exit $ac_status) && test -s "$ac_outfile"; then
14585 # The compiler can only warn and ignore the option if not recognized
14586 # So say no if there are warnings other than the usual output.
14587 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14590 lt_cv_prog_compiler_pic_works_F77=yes
14593 $rm conftest*
14596 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14597 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14599 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14600 case $lt_prog_compiler_pic_F77 in
14601 "" | " "*) ;;
14602 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14603 esac
14604 else
14605 lt_prog_compiler_pic_F77=
14606 lt_prog_compiler_can_build_shared_F77=no
14610 case $host_os in
14611 # For platforms which do not support PIC, -DPIC is meaningless:
14612 *djgpp*)
14613 lt_prog_compiler_pic_F77=
14616 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14618 esac
14621 # Check to make sure the static flag actually works.
14623 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14624 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14625 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14626 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629 lt_cv_prog_compiler_static_works_F77=no
14630 save_LDFLAGS="$LDFLAGS"
14631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14634 # The linker can only warn and ignore the option if not recognized
14635 # So say no if there are warnings
14636 if test -s conftest.err; then
14637 # Append any errors to the config.log.
14638 cat conftest.err 1>&5
14639 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14641 if diff conftest.exp conftest.er2 >/dev/null; then
14642 lt_cv_prog_compiler_static_works_F77=yes
14644 else
14645 lt_cv_prog_compiler_static_works_F77=yes
14648 $rm -r conftest*
14649 LDFLAGS="$save_LDFLAGS"
14652 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14653 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14655 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14657 else
14658 lt_prog_compiler_static_F77=
14662 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14663 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14664 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667 lt_cv_prog_compiler_c_o_F77=no
14668 $rm -r conftest 2>/dev/null
14669 mkdir conftest
14670 cd conftest
14671 mkdir out
14672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14674 lt_compiler_flag="-o out/conftest2.$ac_objext"
14675 # Insert the option either (1) after the last *FLAGS variable, or
14676 # (2) before a word containing "conftest.", or (3) at the end.
14677 # Note that $ac_compile itself does not contain backslashes and begins
14678 # with a dollar sign (not a hyphen), so the echo should work correctly.
14679 lt_compile=`echo "$ac_compile" | $SED \
14680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682 -e 's:$: $lt_compiler_flag:'`
14683 (eval echo "\"\$as_me:14683: $lt_compile\"" >&5)
14684 (eval "$lt_compile" 2>out/conftest.err)
14685 ac_status=$?
14686 cat out/conftest.err >&5
14687 echo "$as_me:14687: \$? = $ac_status" >&5
14688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14689 then
14690 # The compiler can only warn and ignore the option if not recognized
14691 # So say no if there are warnings
14692 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14695 lt_cv_prog_compiler_c_o_F77=yes
14698 chmod u+w . 2>&5
14699 $rm conftest*
14700 # SGI C++ compiler will create directory out/ii_files/ for
14701 # template instantiation
14702 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14703 $rm out/* && rmdir out
14704 cd ..
14705 rmdir conftest
14706 $rm conftest*
14709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14710 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14713 hard_links="nottested"
14714 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14715 # do not overwrite the value of need_locks provided by the user
14716 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14717 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14718 hard_links=yes
14719 $rm conftest*
14720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14721 touch conftest.a
14722 ln conftest.a conftest.b 2>&5 || hard_links=no
14723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14724 { echo "$as_me:$LINENO: result: $hard_links" >&5
14725 echo "${ECHO_T}$hard_links" >&6; }
14726 if test "$hard_links" = no; then
14727 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14728 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14729 need_locks=warn
14731 else
14732 need_locks=no
14735 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14736 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14738 runpath_var=
14739 allow_undefined_flag_F77=
14740 enable_shared_with_static_runtimes_F77=no
14741 archive_cmds_F77=
14742 archive_expsym_cmds_F77=
14743 old_archive_From_new_cmds_F77=
14744 old_archive_from_expsyms_cmds_F77=
14745 export_dynamic_flag_spec_F77=
14746 whole_archive_flag_spec_F77=
14747 thread_safe_flag_spec_F77=
14748 hardcode_libdir_flag_spec_F77=
14749 hardcode_libdir_flag_spec_ld_F77=
14750 hardcode_libdir_separator_F77=
14751 hardcode_direct_F77=no
14752 hardcode_minus_L_F77=no
14753 hardcode_shlibpath_var_F77=unsupported
14754 link_all_deplibs_F77=unknown
14755 hardcode_automatic_F77=no
14756 module_cmds_F77=
14757 module_expsym_cmds_F77=
14758 always_export_symbols_F77=no
14759 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14760 # include_expsyms should be a list of space-separated symbols to be *always*
14761 # included in the symbol list
14762 include_expsyms_F77=
14763 # exclude_expsyms can be an extended regexp of symbols to exclude
14764 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14765 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14766 # as well as any symbol that contains `d'.
14767 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14768 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14769 # platforms (ab)use it in PIC code, but their linkers get confused if
14770 # the symbol is explicitly referenced. Since portable code cannot
14771 # rely on this symbol name, it's probably fine to never include it in
14772 # preloaded symbol tables.
14773 # Exclude shared library initialization/finalization symbols.
14774 extract_expsyms_cmds=
14775 # Just being paranoid about ensuring that cc_basename is set.
14776 for cc_temp in $compiler""; do
14777 case $cc_temp in
14778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14780 \-*) ;;
14781 *) break;;
14782 esac
14783 done
14784 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14786 case $host_os in
14787 cygwin* | mingw* | pw32*)
14788 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14789 # When not using gcc, we currently assume that we are using
14790 # Microsoft Visual C++.
14791 if test "$GCC" != yes; then
14792 with_gnu_ld=no
14795 interix*)
14796 # we just hope/assume this is gcc and not c89 (= MSVC++)
14797 with_gnu_ld=yes
14799 openbsd*)
14800 with_gnu_ld=no
14802 esac
14804 ld_shlibs_F77=yes
14805 if test "$with_gnu_ld" = yes; then
14806 # If archive_cmds runs LD, not CC, wlarc should be empty
14807 wlarc='${wl}'
14809 # Set some defaults for GNU ld with shared library support. These
14810 # are reset later if shared libraries are not supported. Putting them
14811 # here allows them to be overridden if necessary.
14812 runpath_var=LD_RUN_PATH
14813 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14814 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14815 # ancient GNU ld didn't support --whole-archive et. al.
14816 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14817 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14818 else
14819 whole_archive_flag_spec_F77=
14821 supports_anon_versioning=no
14822 case `$LD -v 2>/dev/null` in
14823 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14824 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14825 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14826 *\ 2.11.*) ;; # other 2.11 versions
14827 *) supports_anon_versioning=yes ;;
14828 esac
14830 # See if GNU ld supports shared libraries.
14831 case $host_os in
14832 aix[3-9]*)
14833 # On AIX/PPC, the GNU linker is very broken
14834 if test "$host_cpu" != ia64; then
14835 ld_shlibs_F77=no
14836 cat <<EOF 1>&2
14838 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14839 *** to be unable to reliably create shared libraries on AIX.
14840 *** Therefore, libtool is disabling shared libraries support. If you
14841 *** really care for shared libraries, you may want to modify your PATH
14842 *** so that a non-GNU linker is found, and then restart.
14848 amigaos*)
14849 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)'
14850 hardcode_libdir_flag_spec_F77='-L$libdir'
14851 hardcode_minus_L_F77=yes
14853 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14854 # that the semantics of dynamic libraries on AmigaOS, at least up
14855 # to version 4, is to share data among multiple programs linked
14856 # with the same dynamic library. Since this doesn't match the
14857 # behavior of shared libraries on other platforms, we can't use
14858 # them.
14859 ld_shlibs_F77=no
14862 beos*)
14863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14864 allow_undefined_flag_F77=unsupported
14865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14866 # support --undefined. This deserves some investigation. FIXME
14867 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14868 else
14869 ld_shlibs_F77=no
14873 cygwin* | mingw* | pw32*)
14874 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14875 # as there is no search path for DLLs.
14876 hardcode_libdir_flag_spec_F77='-L$libdir'
14877 allow_undefined_flag_F77=unsupported
14878 always_export_symbols_F77=no
14879 enable_shared_with_static_runtimes_F77=yes
14880 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14882 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14883 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14884 # If the export-symbols file already is a .def file (1st line
14885 # is EXPORTS), use it as is; otherwise, prepend...
14886 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14887 cp $export_symbols $output_objdir/$soname.def;
14888 else
14889 echo EXPORTS > $output_objdir/$soname.def;
14890 cat $export_symbols >> $output_objdir/$soname.def;
14892 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14893 else
14894 ld_shlibs_F77=no
14898 interix[3-9]*)
14899 hardcode_direct_F77=no
14900 hardcode_shlibpath_var_F77=no
14901 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14902 export_dynamic_flag_spec_F77='${wl}-E'
14903 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14904 # Instead, shared libraries are loaded at an image base (0x10000000 by
14905 # default) and relocated if they conflict, which is a slow very memory
14906 # consuming and fragmenting process. To avoid this, we pick a random,
14907 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14908 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14909 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'
14910 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'
14913 gnu* | linux* | k*bsd*-gnu)
14914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14915 tmp_addflag=
14916 case $cc_basename,$host_cpu in
14917 pgcc*) # Portland Group C compiler
14918 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'
14919 tmp_addflag=' $pic_flag'
14921 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14922 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'
14923 tmp_addflag=' $pic_flag -Mnomain' ;;
14924 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14925 tmp_addflag=' -i_dynamic' ;;
14926 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14927 tmp_addflag=' -i_dynamic -nofor_main' ;;
14928 ifc* | ifort*) # Intel Fortran compiler
14929 tmp_addflag=' -nofor_main' ;;
14930 esac
14931 case `$CC -V 2>&1 | sed 5q` in
14932 *Sun\ C*) # Sun C 5.9
14933 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'
14934 tmp_sharedflag='-G' ;;
14935 *Sun\ F*) # Sun Fortran 8.3
14936 tmp_sharedflag='-G' ;;
14938 tmp_sharedflag='-shared' ;;
14939 esac
14940 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942 if test $supports_anon_versioning = yes; then
14943 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14945 $echo "local: *; };" >> $output_objdir/$libname.ver~
14946 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14948 else
14949 ld_shlibs_F77=no
14953 netbsd*)
14954 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14955 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14956 wlarc=
14957 else
14958 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14959 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14963 solaris*)
14964 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14965 ld_shlibs_F77=no
14966 cat <<EOF 1>&2
14968 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14969 *** create shared libraries on Solaris systems. Therefore, libtool
14970 *** is disabling shared libraries support. We urge you to upgrade GNU
14971 *** binutils to release 2.9.1 or newer. Another option is to modify
14972 *** your PATH or compiler configuration so that the native linker is
14973 *** used, and then restart.
14976 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14977 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14978 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14979 else
14980 ld_shlibs_F77=no
14984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14985 case `$LD -v 2>&1` in
14986 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14987 ld_shlibs_F77=no
14988 cat <<_LT_EOF 1>&2
14990 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14991 *** reliably create shared libraries on SCO systems. Therefore, libtool
14992 *** is disabling shared libraries support. We urge you to upgrade GNU
14993 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14994 *** your PATH or compiler configuration so that the native linker is
14995 *** used, and then restart.
14997 _LT_EOF
15000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15001 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15002 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15003 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15004 else
15005 ld_shlibs_F77=no
15008 esac
15011 sunos4*)
15012 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15013 wlarc=
15014 hardcode_direct_F77=yes
15015 hardcode_shlibpath_var_F77=no
15019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15020 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15021 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15022 else
15023 ld_shlibs_F77=no
15026 esac
15028 if test "$ld_shlibs_F77" = no; then
15029 runpath_var=
15030 hardcode_libdir_flag_spec_F77=
15031 export_dynamic_flag_spec_F77=
15032 whole_archive_flag_spec_F77=
15034 else
15035 # PORTME fill in a description of your system's linker (not GNU ld)
15036 case $host_os in
15037 aix3*)
15038 allow_undefined_flag_F77=unsupported
15039 always_export_symbols_F77=yes
15040 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'
15041 # Note: this linker hardcodes the directories in LIBPATH if there
15042 # are no directories specified by -L.
15043 hardcode_minus_L_F77=yes
15044 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15045 # Neither direct hardcoding nor static linking is supported with a
15046 # broken collect2.
15047 hardcode_direct_F77=unsupported
15051 aix[4-9]*)
15052 if test "$host_cpu" = ia64; then
15053 # On IA64, the linker does run time linking by default, so we don't
15054 # have to do anything special.
15055 aix_use_runtimelinking=no
15056 exp_sym_flag='-Bexport'
15057 no_entry_flag=""
15058 else
15059 # If we're using GNU nm, then we don't want the "-C" option.
15060 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15061 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15062 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'
15063 else
15064 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'
15066 aix_use_runtimelinking=no
15068 # Test if we are trying to use run time linking or normal
15069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15070 # need to do runtime linking.
15071 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15072 for ld_flag in $LDFLAGS; do
15073 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15074 aix_use_runtimelinking=yes
15075 break
15077 done
15079 esac
15081 exp_sym_flag='-bexport'
15082 no_entry_flag='-bnoentry'
15085 # When large executables or shared objects are built, AIX ld can
15086 # have problems creating the table of contents. If linking a library
15087 # or program results in "error TOC overflow" add -mminimal-toc to
15088 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15089 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15091 archive_cmds_F77=''
15092 hardcode_direct_F77=yes
15093 hardcode_libdir_separator_F77=':'
15094 link_all_deplibs_F77=yes
15096 if test "$GCC" = yes; then
15097 case $host_os in aix4.[012]|aix4.[012].*)
15098 # We only want to do this on AIX 4.2 and lower, the check
15099 # below for broken collect2 doesn't work under 4.3+
15100 collect2name=`${CC} -print-prog-name=collect2`
15101 if test -f "$collect2name" && \
15102 strings "$collect2name" | grep resolve_lib_name >/dev/null
15103 then
15104 # We have reworked collect2
15106 else
15107 # We have old collect2
15108 hardcode_direct_F77=unsupported
15109 # It fails to find uninstalled libraries when the uninstalled
15110 # path is not listed in the libpath. Setting hardcode_minus_L
15111 # to unsupported forces relinking
15112 hardcode_minus_L_F77=yes
15113 hardcode_libdir_flag_spec_F77='-L$libdir'
15114 hardcode_libdir_separator_F77=
15117 esac
15118 shared_flag='-shared'
15119 if test "$aix_use_runtimelinking" = yes; then
15120 shared_flag="$shared_flag "'${wl}-G'
15122 else
15123 # not using gcc
15124 if test "$host_cpu" = ia64; then
15125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15126 # chokes on -Wl,-G. The following line is correct:
15127 shared_flag='-G'
15128 else
15129 if test "$aix_use_runtimelinking" = yes; then
15130 shared_flag='${wl}-G'
15131 else
15132 shared_flag='${wl}-bM:SRE'
15137 # It seems that -bexpall does not export symbols beginning with
15138 # underscore (_), so it is better to generate a list of symbols to export.
15139 always_export_symbols_F77=yes
15140 if test "$aix_use_runtimelinking" = yes; then
15141 # Warning - without using the other runtime loading flags (-brtl),
15142 # -berok will link without error, but may produce a broken library.
15143 allow_undefined_flag_F77='-berok'
15144 # Determine the default libpath from the value encoded in an empty executable.
15145 cat >conftest.$ac_ext <<_ACEOF
15146 program main
15149 _ACEOF
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && {
15164 test -z "$ac_f77_werror_flag" ||
15165 test ! -s conftest.err
15166 } && test -s conftest$ac_exeext &&
15167 $as_test_x conftest$ac_exeext; then
15169 lt_aix_libpath_sed='
15170 /Import File Strings/,/^$/ {
15171 /^0/ {
15172 s/^0 *\(.*\)$/\1/
15176 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15177 # Check for a 64-bit object if we didn't find anything.
15178 if test -z "$aix_libpath"; then
15179 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15181 else
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15189 conftest$ac_exeext conftest.$ac_ext
15190 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15192 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15193 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"
15194 else
15195 if test "$host_cpu" = ia64; then
15196 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15197 allow_undefined_flag_F77="-z nodefs"
15198 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"
15199 else
15200 # Determine the default libpath from the value encoded in an empty executable.
15201 cat >conftest.$ac_ext <<_ACEOF
15202 program main
15205 _ACEOF
15206 rm -f conftest.$ac_objext conftest$ac_exeext
15207 if { (ac_try="$ac_link"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_link") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_f77_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext &&
15223 $as_test_x conftest$ac_exeext; then
15225 lt_aix_libpath_sed='
15226 /Import File Strings/,/^$/ {
15227 /^0/ {
15228 s/^0 *\(.*\)$/\1/
15232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15233 # Check for a 64-bit object if we didn't find anything.
15234 if test -z "$aix_libpath"; then
15235 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15237 else
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15245 conftest$ac_exeext conftest.$ac_ext
15246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15248 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15249 # Warning - without using the other run time loading flags,
15250 # -berok will link without error, but may produce a broken library.
15251 no_undefined_flag_F77=' ${wl}-bernotok'
15252 allow_undefined_flag_F77=' ${wl}-berok'
15253 # Exported symbols can be pulled into shared objects from archives
15254 whole_archive_flag_spec_F77='$convenience'
15255 archive_cmds_need_lc_F77=yes
15256 # This is similar to how AIX traditionally builds its shared libraries.
15257 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'
15262 amigaos*)
15263 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)'
15264 hardcode_libdir_flag_spec_F77='-L$libdir'
15265 hardcode_minus_L_F77=yes
15266 # see comment about different semantics on the GNU ld section
15267 ld_shlibs_F77=no
15270 bsdi[45]*)
15271 export_dynamic_flag_spec_F77=-rdynamic
15274 cygwin* | mingw* | pw32*)
15275 # When not using gcc, we currently assume that we are using
15276 # Microsoft Visual C++.
15277 # hardcode_libdir_flag_spec is actually meaningless, as there is
15278 # no search path for DLLs.
15279 hardcode_libdir_flag_spec_F77=' '
15280 allow_undefined_flag_F77=unsupported
15281 # Tell ltmain to make .lib files, not .a files.
15282 libext=lib
15283 # Tell ltmain to make .dll files, not .so files.
15284 shrext_cmds=".dll"
15285 # FIXME: Setting linknames here is a bad hack.
15286 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15287 # The linker will automatically build a .lib file if we build a DLL.
15288 old_archive_From_new_cmds_F77='true'
15289 # FIXME: Should let the user specify the lib program.
15290 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15291 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15292 enable_shared_with_static_runtimes_F77=yes
15295 darwin* | rhapsody*)
15296 case $host_os in
15297 rhapsody* | darwin1.[012])
15298 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15300 *) # Darwin 1.3 on
15301 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15302 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15303 else
15304 case ${MACOSX_DEPLOYMENT_TARGET} in
15305 10.[012])
15306 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15308 10.*)
15309 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15311 esac
15314 esac
15315 archive_cmds_need_lc_F77=no
15316 hardcode_direct_F77=no
15317 hardcode_automatic_F77=yes
15318 hardcode_shlibpath_var_F77=unsupported
15319 whole_archive_flag_spec_F77=''
15320 link_all_deplibs_F77=yes
15321 if test "$GCC" = yes ; then
15322 output_verbose_link_cmd='echo'
15323 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}"
15324 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15325 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}"
15326 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}"
15327 else
15328 case $cc_basename in
15329 xlc*)
15330 output_verbose_link_cmd='echo'
15331 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15332 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15333 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15334 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}'
15335 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}'
15338 ld_shlibs_F77=no
15340 esac
15344 dgux*)
15345 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15346 hardcode_libdir_flag_spec_F77='-L$libdir'
15347 hardcode_shlibpath_var_F77=no
15350 freebsd1*)
15351 ld_shlibs_F77=no
15354 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15355 # support. Future versions do this automatically, but an explicit c++rt0.o
15356 # does not break anything, and helps significantly (at the cost of a little
15357 # extra space).
15358 freebsd2.2*)
15359 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15360 hardcode_libdir_flag_spec_F77='-R$libdir'
15361 hardcode_direct_F77=yes
15362 hardcode_shlibpath_var_F77=no
15365 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15366 freebsd2*)
15367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15368 hardcode_direct_F77=yes
15369 hardcode_minus_L_F77=yes
15370 hardcode_shlibpath_var_F77=no
15373 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15374 freebsd* | dragonfly*)
15375 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15376 hardcode_libdir_flag_spec_F77='-R$libdir'
15377 hardcode_direct_F77=yes
15378 hardcode_shlibpath_var_F77=no
15381 hpux9*)
15382 if test "$GCC" = yes; then
15383 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'
15384 else
15385 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'
15387 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15388 hardcode_libdir_separator_F77=:
15389 hardcode_direct_F77=yes
15391 # hardcode_minus_L: Not really in the search PATH,
15392 # but as the default location of the library.
15393 hardcode_minus_L_F77=yes
15394 export_dynamic_flag_spec_F77='${wl}-E'
15397 hpux10*)
15398 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15399 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15400 else
15401 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15403 if test "$with_gnu_ld" = no; then
15404 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15405 hardcode_libdir_separator_F77=:
15407 hardcode_direct_F77=yes
15408 export_dynamic_flag_spec_F77='${wl}-E'
15410 # hardcode_minus_L: Not really in the search PATH,
15411 # but as the default location of the library.
15412 hardcode_minus_L_F77=yes
15416 hpux11*)
15417 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15418 case $host_cpu in
15419 hppa*64*)
15420 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422 ia64*)
15423 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15426 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15428 esac
15429 else
15430 case $host_cpu in
15431 hppa*64*)
15432 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434 ia64*)
15435 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15438 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15440 esac
15442 if test "$with_gnu_ld" = no; then
15443 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15444 hardcode_libdir_separator_F77=:
15446 case $host_cpu in
15447 hppa*64*|ia64*)
15448 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15449 hardcode_direct_F77=no
15450 hardcode_shlibpath_var_F77=no
15453 hardcode_direct_F77=yes
15454 export_dynamic_flag_spec_F77='${wl}-E'
15456 # hardcode_minus_L: Not really in the search PATH,
15457 # but as the default location of the library.
15458 hardcode_minus_L_F77=yes
15460 esac
15464 irix5* | irix6* | nonstopux*)
15465 if test "$GCC" = yes; then
15466 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'
15467 else
15468 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'
15469 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15471 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15472 hardcode_libdir_separator_F77=:
15473 link_all_deplibs_F77=yes
15476 netbsd*)
15477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15478 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15479 else
15480 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15482 hardcode_libdir_flag_spec_F77='-R$libdir'
15483 hardcode_direct_F77=yes
15484 hardcode_shlibpath_var_F77=no
15487 newsos6)
15488 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489 hardcode_direct_F77=yes
15490 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15491 hardcode_libdir_separator_F77=:
15492 hardcode_shlibpath_var_F77=no
15495 openbsd*)
15496 if test -f /usr/libexec/ld.so; then
15497 hardcode_direct_F77=yes
15498 hardcode_shlibpath_var_F77=no
15499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15500 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15501 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15502 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15503 export_dynamic_flag_spec_F77='${wl}-E'
15504 else
15505 case $host_os in
15506 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15507 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_libdir_flag_spec_F77='-R$libdir'
15511 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15512 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15514 esac
15516 else
15517 ld_shlibs_F77=no
15521 os2*)
15522 hardcode_libdir_flag_spec_F77='-L$libdir'
15523 hardcode_minus_L_F77=yes
15524 allow_undefined_flag_F77=unsupported
15525 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'
15526 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15529 osf3*)
15530 if test "$GCC" = yes; then
15531 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15532 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'
15533 else
15534 allow_undefined_flag_F77=' -expect_unresolved \*'
15535 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'
15537 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15538 hardcode_libdir_separator_F77=:
15541 osf4* | osf5*) # as osf3* with the addition of -msym flag
15542 if test "$GCC" = yes; then
15543 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15544 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'
15545 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15546 else
15547 allow_undefined_flag_F77=' -expect_unresolved \*'
15548 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'
15549 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~
15550 $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'
15552 # Both c and cxx compiler support -rpath directly
15553 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15555 hardcode_libdir_separator_F77=:
15558 solaris*)
15559 no_undefined_flag_F77=' -z text'
15560 if test "$GCC" = yes; then
15561 wlarc='${wl}'
15562 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15563 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15564 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15565 else
15566 wlarc=''
15567 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15569 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15571 hardcode_libdir_flag_spec_F77='-R$libdir'
15572 hardcode_shlibpath_var_F77=no
15573 case $host_os in
15574 solaris2.[0-5] | solaris2.[0-5].*) ;;
15576 # The compiler driver will combine and reorder linker options,
15577 # but understands `-z linker_flag'. GCC discards it without `$wl',
15578 # but is careful enough not to reorder.
15579 # Supported since Solaris 2.6 (maybe 2.5.1?)
15580 if test "$GCC" = yes; then
15581 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15582 else
15583 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15586 esac
15587 link_all_deplibs_F77=yes
15590 sunos4*)
15591 if test "x$host_vendor" = xsequent; then
15592 # Use $CC to link under sequent, because it throws in some extra .o
15593 # files that make .init and .fini sections work.
15594 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15595 else
15596 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_libdir_flag_spec_F77='-L$libdir'
15599 hardcode_direct_F77=yes
15600 hardcode_minus_L_F77=yes
15601 hardcode_shlibpath_var_F77=no
15604 sysv4)
15605 case $host_vendor in
15606 sni)
15607 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 hardcode_direct_F77=yes # is this really true???
15610 siemens)
15611 ## LD is ld it makes a PLAMLIB
15612 ## CC just makes a GrossModule.
15613 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15614 reload_cmds_F77='$CC -r -o $output$reload_objs'
15615 hardcode_direct_F77=no
15617 motorola)
15618 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15621 esac
15622 runpath_var='LD_RUN_PATH'
15623 hardcode_shlibpath_var_F77=no
15626 sysv4.3*)
15627 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15628 hardcode_shlibpath_var_F77=no
15629 export_dynamic_flag_spec_F77='-Bexport'
15632 sysv4*MP*)
15633 if test -d /usr/nec; then
15634 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_shlibpath_var_F77=no
15636 runpath_var=LD_RUN_PATH
15637 hardcode_runpath_var=yes
15638 ld_shlibs_F77=yes
15642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15643 no_undefined_flag_F77='${wl}-z,text'
15644 archive_cmds_need_lc_F77=no
15645 hardcode_shlibpath_var_F77=no
15646 runpath_var='LD_RUN_PATH'
15648 if test "$GCC" = yes; then
15649 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15650 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15651 else
15652 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15653 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15657 sysv5* | sco3.2v5* | sco5v6*)
15658 # Note: We can NOT use -z defs as we might desire, because we do not
15659 # link with -lc, and that would cause any symbols used from libc to
15660 # always be unresolved, which means just about no library would
15661 # ever link correctly. If we're not using GNU ld we use -z text
15662 # though, which does catch some bad symbols but isn't as heavy-handed
15663 # as -z defs.
15664 no_undefined_flag_F77='${wl}-z,text'
15665 allow_undefined_flag_F77='${wl}-z,nodefs'
15666 archive_cmds_need_lc_F77=no
15667 hardcode_shlibpath_var_F77=no
15668 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15669 hardcode_libdir_separator_F77=':'
15670 link_all_deplibs_F77=yes
15671 export_dynamic_flag_spec_F77='${wl}-Bexport'
15672 runpath_var='LD_RUN_PATH'
15674 if test "$GCC" = yes; then
15675 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15677 else
15678 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 uts4*)
15684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685 hardcode_libdir_flag_spec_F77='-L$libdir'
15686 hardcode_shlibpath_var_F77=no
15690 ld_shlibs_F77=no
15692 esac
15695 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15696 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15697 test "$ld_shlibs_F77" = no && can_build_shared=no
15700 # Do we need to explicitly link libc?
15702 case "x$archive_cmds_need_lc_F77" in
15703 x|xyes)
15704 # Assume -lc should be added
15705 archive_cmds_need_lc_F77=yes
15707 if test "$enable_shared" = yes && test "$GCC" = yes; then
15708 case $archive_cmds_F77 in
15709 *'~'*)
15710 # FIXME: we may have to deal with multi-command sequences.
15712 '$CC '*)
15713 # Test whether the compiler implicitly links with -lc since on some
15714 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15715 # to ld, don't add -lc before -lgcc.
15716 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15717 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15718 $rm conftest*
15719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15722 (eval $ac_compile) 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } 2>conftest.err; then
15726 soname=conftest
15727 lib=conftest
15728 libobjs=conftest.$ac_objext
15729 deplibs=
15730 wl=$lt_prog_compiler_wl_F77
15731 pic_flag=$lt_prog_compiler_pic_F77
15732 compiler_flags=-v
15733 linker_flags=-v
15734 verstring=
15735 output_objdir=.
15736 libname=conftest
15737 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15738 allow_undefined_flag_F77=
15739 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15740 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }
15744 then
15745 archive_cmds_need_lc_F77=no
15746 else
15747 archive_cmds_need_lc_F77=yes
15749 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15750 else
15751 cat conftest.err 1>&5
15753 $rm conftest*
15754 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15755 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15757 esac
15760 esac
15762 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15763 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15764 library_names_spec=
15765 libname_spec='lib$name'
15766 soname_spec=
15767 shrext_cmds=".so"
15768 postinstall_cmds=
15769 postuninstall_cmds=
15770 finish_cmds=
15771 finish_eval=
15772 shlibpath_var=
15773 shlibpath_overrides_runpath=unknown
15774 version_type=none
15775 dynamic_linker="$host_os ld.so"
15776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15778 need_lib_prefix=unknown
15779 hardcode_into_libs=no
15781 # when you set need_version to no, make sure it does not cause -set_version
15782 # flags to be left without arguments
15783 need_version=unknown
15785 case $host_os in
15786 aix3*)
15787 version_type=linux
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15789 shlibpath_var=LIBPATH
15791 # AIX 3 has no versioning support, so we append a major version to the name.
15792 soname_spec='${libname}${release}${shared_ext}$major'
15795 aix[4-9]*)
15796 version_type=linux
15797 need_lib_prefix=no
15798 need_version=no
15799 hardcode_into_libs=yes
15800 if test "$host_cpu" = ia64; then
15801 # AIX 5 supports IA64
15802 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15803 shlibpath_var=LD_LIBRARY_PATH
15804 else
15805 # With GCC up to 2.95.x, collect2 would create an import file
15806 # for dependence libraries. The import file would start with
15807 # the line `#! .'. This would cause the generated library to
15808 # depend on `.', always an invalid library. This was fixed in
15809 # development snapshots of GCC prior to 3.0.
15810 case $host_os in
15811 aix4 | aix4.[01] | aix4.[01].*)
15812 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15813 echo ' yes '
15814 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15816 else
15817 can_build_shared=no
15820 esac
15821 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15822 # soname into executable. Probably we can add versioning support to
15823 # collect2, so additional links can be useful in future.
15824 if test "$aix_use_runtimelinking" = yes; then
15825 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15826 # instead of lib<name>.a to let people know that these are not
15827 # typical AIX shared libraries.
15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15829 else
15830 # We preserve .a as extension for shared libraries through AIX4.2
15831 # and later when we are not doing run time linking.
15832 library_names_spec='${libname}${release}.a $libname.a'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LIBPATH
15839 amigaos*)
15840 library_names_spec='$libname.ixlibrary $libname.a'
15841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15842 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'
15845 beos*)
15846 library_names_spec='${libname}${shared_ext}'
15847 dynamic_linker="$host_os ld.so"
15848 shlibpath_var=LIBRARY_PATH
15851 bsdi[45]*)
15852 version_type=linux
15853 need_version=no
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15859 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15860 # the default ld.so.conf also contains /usr/contrib/lib and
15861 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15862 # libtool to hard-code these into programs
15865 cygwin* | mingw* | pw32*)
15866 version_type=windows
15867 shrext_cmds=".dll"
15868 need_version=no
15869 need_lib_prefix=no
15871 case $GCC,$host_os in
15872 yes,cygwin* | yes,mingw* | yes,pw32*)
15873 library_names_spec='$libname.dll.a'
15874 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15875 postinstall_cmds='base_file=`basename \${file}`~
15876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15877 dldir=$destdir/`dirname \$dlpath`~
15878 test -d \$dldir || mkdir -p \$dldir~
15879 $install_prog $dir/$dlname \$dldir/$dlname~
15880 chmod a+x \$dldir/$dlname'
15881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15882 dlpath=$dir/\$dldll~
15883 $rm \$dlpath'
15884 shlibpath_overrides_runpath=yes
15886 case $host_os in
15887 cygwin*)
15888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15890 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15892 mingw*)
15893 # MinGW DLLs use traditional 'lib' prefix
15894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15896 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15897 # It is most probably a Windows format PATH printed by
15898 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15899 # path with ; separators, and with drive letters. We can handle the
15900 # drive letters (cygwin fileutils understands them), so leave them,
15901 # especially as we might pass files found there to a mingw objdump,
15902 # which wouldn't understand a cygwinified path. Ahh.
15903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15904 else
15905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15908 pw32*)
15909 # pw32 DLLs use 'pw' prefix rather than 'lib'
15910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15912 esac
15916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15918 esac
15919 dynamic_linker='Win32 ld.exe'
15920 # FIXME: first we should search . and the directory the executable is in
15921 shlibpath_var=PATH
15924 darwin* | rhapsody*)
15925 dynamic_linker="$host_os dyld"
15926 version_type=darwin
15927 need_lib_prefix=no
15928 need_version=no
15929 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15930 soname_spec='${libname}${release}${major}$shared_ext'
15931 shlibpath_overrides_runpath=yes
15932 shlibpath_var=DYLD_LIBRARY_PATH
15933 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15938 dgux*)
15939 version_type=linux
15940 need_lib_prefix=no
15941 need_version=no
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 shlibpath_var=LD_LIBRARY_PATH
15947 freebsd1*)
15948 dynamic_linker=no
15951 freebsd* | dragonfly*)
15952 # DragonFly does not have aout. When/if they implement a new
15953 # versioning mechanism, adjust this.
15954 if test -x /usr/bin/objformat; then
15955 objformat=`/usr/bin/objformat`
15956 else
15957 case $host_os in
15958 freebsd[123]*) objformat=aout ;;
15959 *) objformat=elf ;;
15960 esac
15962 version_type=freebsd-$objformat
15963 case $version_type in
15964 freebsd-elf*)
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15966 need_version=no
15967 need_lib_prefix=no
15969 freebsd-*)
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15971 need_version=yes
15973 esac
15974 shlibpath_var=LD_LIBRARY_PATH
15975 case $host_os in
15976 freebsd2*)
15977 shlibpath_overrides_runpath=yes
15979 freebsd3.[01]* | freebsdelf3.[01]*)
15980 shlibpath_overrides_runpath=yes
15981 hardcode_into_libs=yes
15983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15985 shlibpath_overrides_runpath=no
15986 hardcode_into_libs=yes
15988 *) # from 4.6 on, and DragonFly
15989 shlibpath_overrides_runpath=yes
15990 hardcode_into_libs=yes
15992 esac
15995 gnu*)
15996 version_type=linux
15997 need_lib_prefix=no
15998 need_version=no
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16000 soname_spec='${libname}${release}${shared_ext}$major'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 hardcode_into_libs=yes
16005 hpux9* | hpux10* | hpux11*)
16006 # Give a soname corresponding to the major version so that dld.sl refuses to
16007 # link against other versions.
16008 version_type=sunos
16009 need_lib_prefix=no
16010 need_version=no
16011 case $host_cpu in
16012 ia64*)
16013 shrext_cmds='.so'
16014 hardcode_into_libs=yes
16015 dynamic_linker="$host_os dld.so"
16016 shlibpath_var=LD_LIBRARY_PATH
16017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 if test "X$HPUX_IA64_MODE" = X32; then
16021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16022 else
16023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16027 hppa*64*)
16028 shrext_cmds='.sl'
16029 hardcode_into_libs=yes
16030 dynamic_linker="$host_os dld.sl"
16031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034 soname_spec='${libname}${release}${shared_ext}$major'
16035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16039 shrext_cmds='.sl'
16040 dynamic_linker="$host_os dld.sl"
16041 shlibpath_var=SHLIB_PATH
16042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044 soname_spec='${libname}${release}${shared_ext}$major'
16046 esac
16047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16048 postinstall_cmds='chmod 555 $lib'
16051 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=no
16060 hardcode_into_libs=yes
16063 irix5* | irix6* | nonstopux*)
16064 case $host_os in
16065 nonstopux*) version_type=nonstopux ;;
16067 if test "$lt_cv_prog_gnu_ld" = yes; then
16068 version_type=linux
16069 else
16070 version_type=irix
16071 fi ;;
16072 esac
16073 need_lib_prefix=no
16074 need_version=no
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16077 case $host_os in
16078 irix5* | nonstopux*)
16079 libsuff= shlibsuff=
16082 case $LD in # libtool.m4 will add one of these switches to LD
16083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16084 libsuff= shlibsuff= libmagic=32-bit;;
16085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16086 libsuff=32 shlibsuff=N32 libmagic=N32;;
16087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16089 *) libsuff= shlibsuff= libmagic=never-match;;
16090 esac
16092 esac
16093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16094 shlibpath_overrides_runpath=no
16095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16097 hardcode_into_libs=yes
16100 # No shared lib support for Linux oldld, aout, or coff.
16101 linux*oldld* | linux*aout* | linux*coff*)
16102 dynamic_linker=no
16105 # This must be Linux ELF.
16106 linux* | k*bsd*-gnu)
16107 version_type=linux
16108 need_lib_prefix=no
16109 need_version=no
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 shlibpath_overrides_runpath=no
16115 # This implies no fast_install, which is unacceptable.
16116 # Some rework will be needed to allow for fast_install
16117 # before this can be enabled.
16118 hardcode_into_libs=yes
16120 # Append ld.so.conf contents to the search path
16121 if test -f /etc/ld.so.conf; then
16122 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' ' '`
16123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16126 # We used to test for /lib/ld.so.1 and disable shared libraries on
16127 # powerpc, because MkLinux only supported shared libraries with the
16128 # GNU dynamic linker. Since this was broken with cross compilers,
16129 # most powerpc-linux boxes support dynamic linking these days and
16130 # people can always --disable-shared, the test was removed, and we
16131 # assume the GNU/Linux dynamic linker is in use.
16132 dynamic_linker='GNU/Linux ld.so'
16135 netbsd*)
16136 version_type=sunos
16137 need_lib_prefix=no
16138 need_version=no
16139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16142 dynamic_linker='NetBSD (a.out) ld.so'
16143 else
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 dynamic_linker='NetBSD ld.elf_so'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16150 hardcode_into_libs=yes
16153 newsos6)
16154 version_type=linux
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=yes
16160 nto-qnx*)
16161 version_type=linux
16162 need_lib_prefix=no
16163 need_version=no
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=yes
16170 openbsd*)
16171 version_type=sunos
16172 sys_lib_dlsearch_path_spec="/usr/lib"
16173 need_lib_prefix=no
16174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16175 case $host_os in
16176 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16177 *) need_version=no ;;
16178 esac
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16183 case $host_os in
16184 openbsd2.[89] | openbsd2.[89].*)
16185 shlibpath_overrides_runpath=no
16188 shlibpath_overrides_runpath=yes
16190 esac
16191 else
16192 shlibpath_overrides_runpath=yes
16196 os2*)
16197 libname_spec='$name'
16198 shrext_cmds=".dll"
16199 need_lib_prefix=no
16200 library_names_spec='$libname${shared_ext} $libname.a'
16201 dynamic_linker='OS/2 ld.exe'
16202 shlibpath_var=LIBPATH
16205 osf3* | osf4* | osf5*)
16206 version_type=osf
16207 need_lib_prefix=no
16208 need_version=no
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16213 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16216 rdos*)
16217 dynamic_linker=no
16220 solaris*)
16221 version_type=linux
16222 need_lib_prefix=no
16223 need_version=no
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16228 hardcode_into_libs=yes
16229 # ldd complains unless libraries are executable
16230 postinstall_cmds='chmod +x $lib'
16233 sunos4*)
16234 version_type=sunos
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 shlibpath_overrides_runpath=yes
16239 if test "$with_gnu_ld" = yes; then
16240 need_lib_prefix=no
16242 need_version=yes
16245 sysv4 | sysv4.3*)
16246 version_type=linux
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 case $host_vendor in
16251 sni)
16252 shlibpath_overrides_runpath=no
16253 need_lib_prefix=no
16254 export_dynamic_flag_spec='${wl}-Blargedynsym'
16255 runpath_var=LD_RUN_PATH
16257 siemens)
16258 need_lib_prefix=no
16260 motorola)
16261 need_lib_prefix=no
16262 need_version=no
16263 shlibpath_overrides_runpath=no
16264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16266 esac
16269 sysv4*MP*)
16270 if test -d /usr/nec ;then
16271 version_type=linux
16272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16273 soname_spec='$libname${shared_ext}.$major'
16274 shlibpath_var=LD_LIBRARY_PATH
16278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16279 version_type=freebsd-elf
16280 need_lib_prefix=no
16281 need_version=no
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16283 soname_spec='${libname}${release}${shared_ext}$major'
16284 shlibpath_var=LD_LIBRARY_PATH
16285 hardcode_into_libs=yes
16286 if test "$with_gnu_ld" = yes; then
16287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16288 shlibpath_overrides_runpath=no
16289 else
16290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16291 shlibpath_overrides_runpath=yes
16292 case $host_os in
16293 sco3.2v5*)
16294 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16296 esac
16298 sys_lib_dlsearch_path_spec='/usr/lib'
16301 uts4*)
16302 version_type=linux
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304 soname_spec='${libname}${release}${shared_ext}$major'
16305 shlibpath_var=LD_LIBRARY_PATH
16309 dynamic_linker=no
16311 esac
16312 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16313 echo "${ECHO_T}$dynamic_linker" >&6; }
16314 test "$dynamic_linker" = no && can_build_shared=no
16316 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16322 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16323 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16331 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16332 if test "$GCC" = yes; then
16333 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16336 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16337 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16338 hardcode_action_F77=
16339 if test -n "$hardcode_libdir_flag_spec_F77" || \
16340 test -n "$runpath_var_F77" || \
16341 test "X$hardcode_automatic_F77" = "Xyes" ; then
16343 # We can hardcode non-existant directories.
16344 if test "$hardcode_direct_F77" != no &&
16345 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16346 # have to relink, otherwise we might link with an installed library
16347 # when we should be linking with a yet-to-be-installed one
16348 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16349 test "$hardcode_minus_L_F77" != no; then
16350 # Linking always hardcodes the temporary library directory.
16351 hardcode_action_F77=relink
16352 else
16353 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16354 hardcode_action_F77=immediate
16356 else
16357 # We cannot hardcode anything, or else we can only hardcode existing
16358 # directories.
16359 hardcode_action_F77=unsupported
16361 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16362 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16364 if test "$hardcode_action_F77" = relink; then
16365 # Fast installation is not supported
16366 enable_fast_install=no
16367 elif test "$shlibpath_overrides_runpath" = yes ||
16368 test "$enable_shared" = no; then
16369 # Fast installation is not necessary
16370 enable_fast_install=needless
16374 # The else clause should only fire when bootstrapping the
16375 # libtool distribution, otherwise you forgot to ship ltmain.sh
16376 # with your package, and you will get complaints that there are
16377 # no rules to generate ltmain.sh.
16378 if test -f "$ltmain"; then
16379 # See if we are running on zsh, and set the options which allow our commands through
16380 # without removal of \ escapes.
16381 if test -n "${ZSH_VERSION+set}" ; then
16382 setopt NO_GLOB_SUBST
16384 # Now quote all the things that may contain metacharacters while being
16385 # careful not to overquote the AC_SUBSTed values. We take copies of the
16386 # variables and quote the copies for generation of the libtool script.
16387 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16388 SED SHELL STRIP \
16389 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16390 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16391 deplibs_check_method reload_flag reload_cmds need_locks \
16392 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16393 lt_cv_sys_global_symbol_to_c_name_address \
16394 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16395 old_postinstall_cmds old_postuninstall_cmds \
16396 compiler_F77 \
16397 CC_F77 \
16398 LD_F77 \
16399 lt_prog_compiler_wl_F77 \
16400 lt_prog_compiler_pic_F77 \
16401 lt_prog_compiler_static_F77 \
16402 lt_prog_compiler_no_builtin_flag_F77 \
16403 export_dynamic_flag_spec_F77 \
16404 thread_safe_flag_spec_F77 \
16405 whole_archive_flag_spec_F77 \
16406 enable_shared_with_static_runtimes_F77 \
16407 old_archive_cmds_F77 \
16408 old_archive_from_new_cmds_F77 \
16409 predep_objects_F77 \
16410 postdep_objects_F77 \
16411 predeps_F77 \
16412 postdeps_F77 \
16413 compiler_lib_search_path_F77 \
16414 compiler_lib_search_dirs_F77 \
16415 archive_cmds_F77 \
16416 archive_expsym_cmds_F77 \
16417 postinstall_cmds_F77 \
16418 postuninstall_cmds_F77 \
16419 old_archive_from_expsyms_cmds_F77 \
16420 allow_undefined_flag_F77 \
16421 no_undefined_flag_F77 \
16422 export_symbols_cmds_F77 \
16423 hardcode_libdir_flag_spec_F77 \
16424 hardcode_libdir_flag_spec_ld_F77 \
16425 hardcode_libdir_separator_F77 \
16426 hardcode_automatic_F77 \
16427 module_cmds_F77 \
16428 module_expsym_cmds_F77 \
16429 lt_cv_prog_compiler_c_o_F77 \
16430 fix_srcfile_path_F77 \
16431 exclude_expsyms_F77 \
16432 include_expsyms_F77; do
16434 case $var in
16435 old_archive_cmds_F77 | \
16436 old_archive_from_new_cmds_F77 | \
16437 archive_cmds_F77 | \
16438 archive_expsym_cmds_F77 | \
16439 module_cmds_F77 | \
16440 module_expsym_cmds_F77 | \
16441 old_archive_from_expsyms_cmds_F77 | \
16442 export_symbols_cmds_F77 | \
16443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16444 postinstall_cmds | postuninstall_cmds | \
16445 old_postinstall_cmds | old_postuninstall_cmds | \
16446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16447 # Double-quote double-evaled strings.
16448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16453 esac
16454 done
16456 case $lt_echo in
16457 *'\$0 --fallback-echo"')
16458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16460 esac
16462 cfgfile="$ofile"
16464 cat <<__EOF__ >> "$cfgfile"
16465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16469 # Shell to use when invoking shell scripts.
16470 SHELL=$lt_SHELL
16472 # Whether or not to build shared libraries.
16473 build_libtool_libs=$enable_shared
16475 # Whether or not to build static libraries.
16476 build_old_libs=$enable_static
16478 # Whether or not to add -lc for building shared libraries.
16479 build_libtool_need_lc=$archive_cmds_need_lc_F77
16481 # Whether or not to disallow shared libs when runtime libs are static
16482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16484 # Whether or not to optimize for fast installation.
16485 fast_install=$enable_fast_install
16487 # The host system.
16488 host_alias=$host_alias
16489 host=$host
16490 host_os=$host_os
16492 # The build system.
16493 build_alias=$build_alias
16494 build=$build
16495 build_os=$build_os
16497 # An echo program that does not interpret backslashes.
16498 echo=$lt_echo
16500 # The archiver.
16501 AR=$lt_AR
16502 AR_FLAGS=$lt_AR_FLAGS
16504 # A C compiler.
16505 LTCC=$lt_LTCC
16507 # LTCC compiler flags.
16508 LTCFLAGS=$lt_LTCFLAGS
16510 # A language-specific compiler.
16511 CC=$lt_compiler_F77
16513 # Is the compiler the GNU C compiler?
16514 with_gcc=$GCC_F77
16516 # An ERE matcher.
16517 EGREP=$lt_EGREP
16519 # The linker used to build libraries.
16520 LD=$lt_LD_F77
16522 # Whether we need hard or soft links.
16523 LN_S=$lt_LN_S
16525 # A BSD-compatible nm program.
16526 NM=$lt_NM
16528 # A symbol stripping program
16529 STRIP=$lt_STRIP
16531 # Used to examine libraries when file_magic_cmd begins "file"
16532 MAGIC_CMD=$MAGIC_CMD
16534 # Used on cygwin: DLL creation program.
16535 DLLTOOL="$DLLTOOL"
16537 # Used on cygwin: object dumper.
16538 OBJDUMP="$OBJDUMP"
16540 # Used on cygwin: assembler.
16541 AS="$AS"
16543 # The name of the directory that contains temporary libtool files.
16544 objdir=$objdir
16546 # How to create reloadable object files.
16547 reload_flag=$lt_reload_flag
16548 reload_cmds=$lt_reload_cmds
16550 # How to pass a linker flag through the compiler.
16551 wl=$lt_lt_prog_compiler_wl_F77
16553 # Object file suffix (normally "o").
16554 objext="$ac_objext"
16556 # Old archive suffix (normally "a").
16557 libext="$libext"
16559 # Shared library suffix (normally ".so").
16560 shrext_cmds='$shrext_cmds'
16562 # Executable file suffix (normally "").
16563 exeext="$exeext"
16565 # Additional compiler flags for building library objects.
16566 pic_flag=$lt_lt_prog_compiler_pic_F77
16567 pic_mode=$pic_mode
16569 # What is the maximum length of a command?
16570 max_cmd_len=$lt_cv_sys_max_cmd_len
16572 # Does compiler simultaneously support -c and -o options?
16573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16575 # Must we lock files when doing compilation?
16576 need_locks=$lt_need_locks
16578 # Do we need the lib prefix for modules?
16579 need_lib_prefix=$need_lib_prefix
16581 # Do we need a version for libraries?
16582 need_version=$need_version
16584 # Whether dlopen is supported.
16585 dlopen_support=$enable_dlopen
16587 # Whether dlopen of programs is supported.
16588 dlopen_self=$enable_dlopen_self
16590 # Whether dlopen of statically linked programs is supported.
16591 dlopen_self_static=$enable_dlopen_self_static
16593 # Compiler flag to prevent dynamic linking.
16594 link_static_flag=$lt_lt_prog_compiler_static_F77
16596 # Compiler flag to turn off builtin functions.
16597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16599 # Compiler flag to allow reflexive dlopens.
16600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16602 # Compiler flag to generate shared objects directly from archives.
16603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16605 # Compiler flag to generate thread-safe objects.
16606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16608 # Library versioning type.
16609 version_type=$version_type
16611 # Format of library name prefix.
16612 libname_spec=$lt_libname_spec
16614 # List of archive names. First name is the real one, the rest are links.
16615 # The last name is the one that the linker finds with -lNAME.
16616 library_names_spec=$lt_library_names_spec
16618 # The coded name of the library, if different from the real name.
16619 soname_spec=$lt_soname_spec
16621 # Commands used to build and install an old-style archive.
16622 RANLIB=$lt_RANLIB
16623 old_archive_cmds=$lt_old_archive_cmds_F77
16624 old_postinstall_cmds=$lt_old_postinstall_cmds
16625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16627 # Create an old-style archive from a shared archive.
16628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16630 # Create a temporary old-style archive to link instead of a shared archive.
16631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16633 # Commands used to build and install a shared archive.
16634 archive_cmds=$lt_archive_cmds_F77
16635 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16636 postinstall_cmds=$lt_postinstall_cmds
16637 postuninstall_cmds=$lt_postuninstall_cmds
16639 # Commands used to build a loadable module (assumed same as above if empty)
16640 module_cmds=$lt_module_cmds_F77
16641 module_expsym_cmds=$lt_module_expsym_cmds_F77
16643 # Commands to strip libraries.
16644 old_striplib=$lt_old_striplib
16645 striplib=$lt_striplib
16647 # Dependencies to place before the objects being linked to create a
16648 # shared library.
16649 predep_objects=$lt_predep_objects_F77
16651 # Dependencies to place after the objects being linked to create a
16652 # shared library.
16653 postdep_objects=$lt_postdep_objects_F77
16655 # Dependencies to place before the objects being linked to create a
16656 # shared library.
16657 predeps=$lt_predeps_F77
16659 # Dependencies to place after the objects being linked to create a
16660 # shared library.
16661 postdeps=$lt_postdeps_F77
16663 # The directories searched by this compiler when creating a shared
16664 # library
16665 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16667 # The library search path used internally by the compiler when linking
16668 # a shared library.
16669 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16671 # Method to check whether dependent libraries are shared objects.
16672 deplibs_check_method=$lt_deplibs_check_method
16674 # Command to use when deplibs_check_method == file_magic.
16675 file_magic_cmd=$lt_file_magic_cmd
16677 # Flag that allows shared libraries with undefined symbols to be built.
16678 allow_undefined_flag=$lt_allow_undefined_flag_F77
16680 # Flag that forces no undefined symbols.
16681 no_undefined_flag=$lt_no_undefined_flag_F77
16683 # Commands used to finish a libtool library installation in a directory.
16684 finish_cmds=$lt_finish_cmds
16686 # Same as above, but a single script fragment to be evaled but not shown.
16687 finish_eval=$lt_finish_eval
16689 # Take the output of nm and produce a listing of raw symbols and C names.
16690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16692 # Transform the output of nm in a proper C declaration
16693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16695 # Transform the output of nm in a C name address pair
16696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16698 # This is the shared library runtime path variable.
16699 runpath_var=$runpath_var
16701 # This is the shared library path variable.
16702 shlibpath_var=$shlibpath_var
16704 # Is shlibpath searched before the hard-coded library search path?
16705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16707 # How to hardcode a shared library path into an executable.
16708 hardcode_action=$hardcode_action_F77
16710 # Whether we should hardcode library paths into libraries.
16711 hardcode_into_libs=$hardcode_into_libs
16713 # Flag to hardcode \$libdir into a binary during linking.
16714 # This must work even if \$libdir does not exist.
16715 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16717 # If ld is used when linking, flag to hardcode \$libdir into
16718 # a binary during linking. This must work even if \$libdir does
16719 # not exist.
16720 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16722 # Whether we need a single -rpath flag with a separated argument.
16723 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16725 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16726 # resulting binary.
16727 hardcode_direct=$hardcode_direct_F77
16729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16730 # resulting binary.
16731 hardcode_minus_L=$hardcode_minus_L_F77
16733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16734 # the resulting binary.
16735 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16737 # Set to yes if building a shared library automatically hardcodes DIR into the library
16738 # and all subsequent libraries and executables linked against it.
16739 hardcode_automatic=$hardcode_automatic_F77
16741 # Variables whose values should be saved in libtool wrapper scripts and
16742 # restored at relink time.
16743 variables_saved_for_relink="$variables_saved_for_relink"
16745 # Whether libtool must link a program against all its dependency libraries.
16746 link_all_deplibs=$link_all_deplibs_F77
16748 # Compile-time system search path for libraries
16749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16751 # Run-time system search path for libraries
16752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16754 # Fix the shell variable \$srcfile for the compiler.
16755 fix_srcfile_path=$lt_fix_srcfile_path
16757 # Set to yes if exported symbols are required.
16758 always_export_symbols=$always_export_symbols_F77
16760 # The commands to list exported symbols.
16761 export_symbols_cmds=$lt_export_symbols_cmds_F77
16763 # The commands to extract the exported symbol list from a shared archive.
16764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16766 # Symbols that should not be listed in the preloaded symbols.
16767 exclude_expsyms=$lt_exclude_expsyms_F77
16769 # Symbols that must always be exported.
16770 include_expsyms=$lt_include_expsyms_F77
16772 # ### END LIBTOOL TAG CONFIG: $tagname
16774 __EOF__
16777 else
16778 # If there is no Makefile yet, we rely on a make rule to execute
16779 # `config.status --recheck' to rerun these tests and create the
16780 # libtool script then.
16781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16782 if test -f "$ltmain_in"; then
16783 test -f Makefile && make "$ltmain"
16788 ac_ext=c
16789 ac_cpp='$CPP $CPPFLAGS'
16790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16794 CC="$lt_save_CC"
16796 else
16797 tagname=""
16801 GCJ)
16802 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16805 # Source file extension for Java test sources.
16806 ac_ext=java
16808 # Object file extension for compiled Java test sources.
16809 objext=o
16810 objext_GCJ=$objext
16812 # Code to be used in simple compile tests
16813 lt_simple_compile_test_code="class foo {}"
16815 # Code to be used in simple link tests
16816 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16818 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16820 # If no C compiler was specified, use CC.
16821 LTCC=${LTCC-"$CC"}
16823 # If no C compiler flags were specified, use CFLAGS.
16824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16826 # Allow CC to be a program name with arguments.
16827 compiler=$CC
16830 # save warnings/boilerplate of simple test code
16831 ac_outfile=conftest.$ac_objext
16832 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16833 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16834 _lt_compiler_boilerplate=`cat conftest.err`
16835 $rm conftest*
16837 ac_outfile=conftest.$ac_objext
16838 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16839 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16840 _lt_linker_boilerplate=`cat conftest.err`
16841 $rm -r conftest*
16844 # Allow CC to be a program name with arguments.
16845 lt_save_CC="$CC"
16846 CC=${GCJ-"gcj"}
16847 compiler=$CC
16848 compiler_GCJ=$CC
16849 for cc_temp in $compiler""; do
16850 case $cc_temp in
16851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16853 \-*) ;;
16854 *) break;;
16855 esac
16856 done
16857 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16860 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16861 archive_cmds_need_lc_GCJ=no
16863 old_archive_cmds_GCJ=$old_archive_cmds
16866 lt_prog_compiler_no_builtin_flag_GCJ=
16868 if test "$GCC" = yes; then
16869 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16872 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16873 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16874 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876 else
16877 lt_cv_prog_compiler_rtti_exceptions=no
16878 ac_outfile=conftest.$ac_objext
16879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16880 lt_compiler_flag="-fno-rtti -fno-exceptions"
16881 # Insert the option either (1) after the last *FLAGS variable, or
16882 # (2) before a word containing "conftest.", or (3) at the end.
16883 # Note that $ac_compile itself does not contain backslashes and begins
16884 # with a dollar sign (not a hyphen), so the echo should work correctly.
16885 # The option is referenced via a variable to avoid confusing sed.
16886 lt_compile=`echo "$ac_compile" | $SED \
16887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16889 -e 's:$: $lt_compiler_flag:'`
16890 (eval echo "\"\$as_me:16890: $lt_compile\"" >&5)
16891 (eval "$lt_compile" 2>conftest.err)
16892 ac_status=$?
16893 cat conftest.err >&5
16894 echo "$as_me:16894: \$? = $ac_status" >&5
16895 if (exit $ac_status) && test -s "$ac_outfile"; then
16896 # The compiler can only warn and ignore the option if not recognized
16897 # So say no if there are warnings other than the usual output.
16898 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16901 lt_cv_prog_compiler_rtti_exceptions=yes
16904 $rm conftest*
16907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16908 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16910 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16911 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16912 else
16918 lt_prog_compiler_wl_GCJ=
16919 lt_prog_compiler_pic_GCJ=
16920 lt_prog_compiler_static_GCJ=
16922 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16923 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16925 if test "$GCC" = yes; then
16926 lt_prog_compiler_wl_GCJ='-Wl,'
16927 lt_prog_compiler_static_GCJ='-static'
16929 case $host_os in
16930 aix*)
16931 # All AIX code is PIC.
16932 if test "$host_cpu" = ia64; then
16933 # AIX 5 now supports IA64 processor
16934 lt_prog_compiler_static_GCJ='-Bstatic'
16938 amigaos*)
16939 # FIXME: we need at least 68020 code to build shared libraries, but
16940 # adding the `-m68020' flag to GCC prevents building anything better,
16941 # like `-m68040'.
16942 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16946 # PIC is the default for these OSes.
16949 mingw* | cygwin* | pw32* | os2*)
16950 # This hack is so that the source file can tell whether it is being
16951 # built for inclusion in a dll (and should export symbols for example).
16952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16953 # (--disable-auto-import) libraries
16957 darwin* | rhapsody*)
16958 # PIC is the default on this platform
16959 # Common symbols not allowed in MH_DYLIB files
16960 lt_prog_compiler_pic_GCJ='-fno-common'
16963 interix[3-9]*)
16964 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16965 # Instead, we relocate shared libraries at runtime.
16968 msdosdjgpp*)
16969 # Just because we use GCC doesn't mean we suddenly get shared libraries
16970 # on systems that don't support them.
16971 lt_prog_compiler_can_build_shared_GCJ=no
16972 enable_shared=no
16975 sysv4*MP*)
16976 if test -d /usr/nec; then
16977 lt_prog_compiler_pic_GCJ=-Kconform_pic
16981 hpux*)
16982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16983 # not for PA HP-UX.
16984 case $host_cpu in
16985 hppa*64*|ia64*)
16986 # +Z the default
16989 lt_prog_compiler_pic_GCJ='-fPIC'
16991 esac
16995 lt_prog_compiler_pic_GCJ='-fPIC'
16997 esac
16998 else
16999 # PORTME Check for flag to pass linker flags through the system compiler.
17000 case $host_os in
17001 aix*)
17002 lt_prog_compiler_wl_GCJ='-Wl,'
17003 if test "$host_cpu" = ia64; then
17004 # AIX 5 now supports IA64 processor
17005 lt_prog_compiler_static_GCJ='-Bstatic'
17006 else
17007 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17010 darwin*)
17011 # PIC is the default on this platform
17012 # Common symbols not allowed in MH_DYLIB files
17013 case $cc_basename in
17014 xlc*)
17015 lt_prog_compiler_pic_GCJ='-qnocommon'
17016 lt_prog_compiler_wl_GCJ='-Wl,'
17018 esac
17021 mingw* | cygwin* | pw32* | os2*)
17022 # This hack is so that the source file can tell whether it is being
17023 # built for inclusion in a dll (and should export symbols for example).
17027 hpux9* | hpux10* | hpux11*)
17028 lt_prog_compiler_wl_GCJ='-Wl,'
17029 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17030 # not for PA HP-UX.
17031 case $host_cpu in
17032 hppa*64*|ia64*)
17033 # +Z the default
17036 lt_prog_compiler_pic_GCJ='+Z'
17038 esac
17039 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17040 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17043 irix5* | irix6* | nonstopux*)
17044 lt_prog_compiler_wl_GCJ='-Wl,'
17045 # PIC (with -KPIC) is the default.
17046 lt_prog_compiler_static_GCJ='-non_shared'
17049 newsos6)
17050 lt_prog_compiler_pic_GCJ='-KPIC'
17051 lt_prog_compiler_static_GCJ='-Bstatic'
17054 linux* | k*bsd*-gnu)
17055 case $cc_basename in
17056 icc* | ecc*)
17057 lt_prog_compiler_wl_GCJ='-Wl,'
17058 lt_prog_compiler_pic_GCJ='-KPIC'
17059 lt_prog_compiler_static_GCJ='-static'
17061 pgcc* | pgf77* | pgf90* | pgf95*)
17062 # Portland Group compilers (*not* the Pentium gcc compiler,
17063 # which looks to be a dead project)
17064 lt_prog_compiler_wl_GCJ='-Wl,'
17065 lt_prog_compiler_pic_GCJ='-fpic'
17066 lt_prog_compiler_static_GCJ='-Bstatic'
17068 ccc*)
17069 lt_prog_compiler_wl_GCJ='-Wl,'
17070 # All Alpha code is PIC.
17071 lt_prog_compiler_static_GCJ='-non_shared'
17074 case `$CC -V 2>&1 | sed 5q` in
17075 *Sun\ C*)
17076 # Sun C 5.9
17077 lt_prog_compiler_pic_GCJ='-KPIC'
17078 lt_prog_compiler_static_GCJ='-Bstatic'
17079 lt_prog_compiler_wl_GCJ='-Wl,'
17081 *Sun\ F*)
17082 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17083 lt_prog_compiler_pic_GCJ='-KPIC'
17084 lt_prog_compiler_static_GCJ='-Bstatic'
17085 lt_prog_compiler_wl_GCJ=''
17087 esac
17089 esac
17092 osf3* | osf4* | osf5*)
17093 lt_prog_compiler_wl_GCJ='-Wl,'
17094 # All OSF/1 code is PIC.
17095 lt_prog_compiler_static_GCJ='-non_shared'
17098 rdos*)
17099 lt_prog_compiler_static_GCJ='-non_shared'
17102 solaris*)
17103 lt_prog_compiler_pic_GCJ='-KPIC'
17104 lt_prog_compiler_static_GCJ='-Bstatic'
17105 case $cc_basename in
17106 f77* | f90* | f95*)
17107 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17109 lt_prog_compiler_wl_GCJ='-Wl,';;
17110 esac
17113 sunos4*)
17114 lt_prog_compiler_wl_GCJ='-Qoption ld '
17115 lt_prog_compiler_pic_GCJ='-PIC'
17116 lt_prog_compiler_static_GCJ='-Bstatic'
17119 sysv4 | sysv4.2uw2* | sysv4.3*)
17120 lt_prog_compiler_wl_GCJ='-Wl,'
17121 lt_prog_compiler_pic_GCJ='-KPIC'
17122 lt_prog_compiler_static_GCJ='-Bstatic'
17125 sysv4*MP*)
17126 if test -d /usr/nec ;then
17127 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17128 lt_prog_compiler_static_GCJ='-Bstatic'
17132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17133 lt_prog_compiler_wl_GCJ='-Wl,'
17134 lt_prog_compiler_pic_GCJ='-KPIC'
17135 lt_prog_compiler_static_GCJ='-Bstatic'
17138 unicos*)
17139 lt_prog_compiler_wl_GCJ='-Wl,'
17140 lt_prog_compiler_can_build_shared_GCJ=no
17143 uts4*)
17144 lt_prog_compiler_pic_GCJ='-pic'
17145 lt_prog_compiler_static_GCJ='-Bstatic'
17149 lt_prog_compiler_can_build_shared_GCJ=no
17151 esac
17154 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17155 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17158 # Check to make sure the PIC flag actually works.
17160 if test -n "$lt_prog_compiler_pic_GCJ"; then
17162 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17163 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17164 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167 lt_cv_prog_compiler_pic_works_GCJ=no
17168 ac_outfile=conftest.$ac_objext
17169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17170 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17171 # Insert the option either (1) after the last *FLAGS variable, or
17172 # (2) before a word containing "conftest.", or (3) at the end.
17173 # Note that $ac_compile itself does not contain backslashes and begins
17174 # with a dollar sign (not a hyphen), so the echo should work correctly.
17175 # The option is referenced via a variable to avoid confusing sed.
17176 lt_compile=`echo "$ac_compile" | $SED \
17177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17179 -e 's:$: $lt_compiler_flag:'`
17180 (eval echo "\"\$as_me:17180: $lt_compile\"" >&5)
17181 (eval "$lt_compile" 2>conftest.err)
17182 ac_status=$?
17183 cat conftest.err >&5
17184 echo "$as_me:17184: \$? = $ac_status" >&5
17185 if (exit $ac_status) && test -s "$ac_outfile"; then
17186 # The compiler can only warn and ignore the option if not recognized
17187 # So say no if there are warnings other than the usual output.
17188 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17191 lt_cv_prog_compiler_pic_works_GCJ=yes
17194 $rm conftest*
17197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17198 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17200 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17201 case $lt_prog_compiler_pic_GCJ in
17202 "" | " "*) ;;
17203 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17204 esac
17205 else
17206 lt_prog_compiler_pic_GCJ=
17207 lt_prog_compiler_can_build_shared_GCJ=no
17211 case $host_os in
17212 # For platforms which do not support PIC, -DPIC is meaningless:
17213 *djgpp*)
17214 lt_prog_compiler_pic_GCJ=
17217 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17219 esac
17222 # Check to make sure the static flag actually works.
17224 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17225 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17226 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17227 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 lt_cv_prog_compiler_static_works_GCJ=no
17231 save_LDFLAGS="$LDFLAGS"
17232 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17233 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17235 # The linker can only warn and ignore the option if not recognized
17236 # So say no if there are warnings
17237 if test -s conftest.err; then
17238 # Append any errors to the config.log.
17239 cat conftest.err 1>&5
17240 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17242 if diff conftest.exp conftest.er2 >/dev/null; then
17243 lt_cv_prog_compiler_static_works_GCJ=yes
17245 else
17246 lt_cv_prog_compiler_static_works_GCJ=yes
17249 $rm -r conftest*
17250 LDFLAGS="$save_LDFLAGS"
17253 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17254 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17256 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17258 else
17259 lt_prog_compiler_static_GCJ=
17263 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17264 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17265 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 lt_cv_prog_compiler_c_o_GCJ=no
17269 $rm -r conftest 2>/dev/null
17270 mkdir conftest
17271 cd conftest
17272 mkdir out
17273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17275 lt_compiler_flag="-o out/conftest2.$ac_objext"
17276 # Insert the option either (1) after the last *FLAGS variable, or
17277 # (2) before a word containing "conftest.", or (3) at the end.
17278 # Note that $ac_compile itself does not contain backslashes and begins
17279 # with a dollar sign (not a hyphen), so the echo should work correctly.
17280 lt_compile=`echo "$ac_compile" | $SED \
17281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17283 -e 's:$: $lt_compiler_flag:'`
17284 (eval echo "\"\$as_me:17284: $lt_compile\"" >&5)
17285 (eval "$lt_compile" 2>out/conftest.err)
17286 ac_status=$?
17287 cat out/conftest.err >&5
17288 echo "$as_me:17288: \$? = $ac_status" >&5
17289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17290 then
17291 # The compiler can only warn and ignore the option if not recognized
17292 # So say no if there are warnings
17293 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17296 lt_cv_prog_compiler_c_o_GCJ=yes
17299 chmod u+w . 2>&5
17300 $rm conftest*
17301 # SGI C++ compiler will create directory out/ii_files/ for
17302 # template instantiation
17303 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17304 $rm out/* && rmdir out
17305 cd ..
17306 rmdir conftest
17307 $rm conftest*
17310 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17311 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17314 hard_links="nottested"
17315 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17316 # do not overwrite the value of need_locks provided by the user
17317 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17318 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17319 hard_links=yes
17320 $rm conftest*
17321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17322 touch conftest.a
17323 ln conftest.a conftest.b 2>&5 || hard_links=no
17324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17325 { echo "$as_me:$LINENO: result: $hard_links" >&5
17326 echo "${ECHO_T}$hard_links" >&6; }
17327 if test "$hard_links" = no; then
17328 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17329 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17330 need_locks=warn
17332 else
17333 need_locks=no
17336 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17337 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17339 runpath_var=
17340 allow_undefined_flag_GCJ=
17341 enable_shared_with_static_runtimes_GCJ=no
17342 archive_cmds_GCJ=
17343 archive_expsym_cmds_GCJ=
17344 old_archive_From_new_cmds_GCJ=
17345 old_archive_from_expsyms_cmds_GCJ=
17346 export_dynamic_flag_spec_GCJ=
17347 whole_archive_flag_spec_GCJ=
17348 thread_safe_flag_spec_GCJ=
17349 hardcode_libdir_flag_spec_GCJ=
17350 hardcode_libdir_flag_spec_ld_GCJ=
17351 hardcode_libdir_separator_GCJ=
17352 hardcode_direct_GCJ=no
17353 hardcode_minus_L_GCJ=no
17354 hardcode_shlibpath_var_GCJ=unsupported
17355 link_all_deplibs_GCJ=unknown
17356 hardcode_automatic_GCJ=no
17357 module_cmds_GCJ=
17358 module_expsym_cmds_GCJ=
17359 always_export_symbols_GCJ=no
17360 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17361 # include_expsyms should be a list of space-separated symbols to be *always*
17362 # included in the symbol list
17363 include_expsyms_GCJ=
17364 # exclude_expsyms can be an extended regexp of symbols to exclude
17365 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17366 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17367 # as well as any symbol that contains `d'.
17368 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17369 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17370 # platforms (ab)use it in PIC code, but their linkers get confused if
17371 # the symbol is explicitly referenced. Since portable code cannot
17372 # rely on this symbol name, it's probably fine to never include it in
17373 # preloaded symbol tables.
17374 # Exclude shared library initialization/finalization symbols.
17375 extract_expsyms_cmds=
17376 # Just being paranoid about ensuring that cc_basename is set.
17377 for cc_temp in $compiler""; do
17378 case $cc_temp in
17379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17381 \-*) ;;
17382 *) break;;
17383 esac
17384 done
17385 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17387 case $host_os in
17388 cygwin* | mingw* | pw32*)
17389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17390 # When not using gcc, we currently assume that we are using
17391 # Microsoft Visual C++.
17392 if test "$GCC" != yes; then
17393 with_gnu_ld=no
17396 interix*)
17397 # we just hope/assume this is gcc and not c89 (= MSVC++)
17398 with_gnu_ld=yes
17400 openbsd*)
17401 with_gnu_ld=no
17403 esac
17405 ld_shlibs_GCJ=yes
17406 if test "$with_gnu_ld" = yes; then
17407 # If archive_cmds runs LD, not CC, wlarc should be empty
17408 wlarc='${wl}'
17410 # Set some defaults for GNU ld with shared library support. These
17411 # are reset later if shared libraries are not supported. Putting them
17412 # here allows them to be overridden if necessary.
17413 runpath_var=LD_RUN_PATH
17414 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17415 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17416 # ancient GNU ld didn't support --whole-archive et. al.
17417 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17418 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17419 else
17420 whole_archive_flag_spec_GCJ=
17422 supports_anon_versioning=no
17423 case `$LD -v 2>/dev/null` in
17424 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17425 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17426 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17427 *\ 2.11.*) ;; # other 2.11 versions
17428 *) supports_anon_versioning=yes ;;
17429 esac
17431 # See if GNU ld supports shared libraries.
17432 case $host_os in
17433 aix[3-9]*)
17434 # On AIX/PPC, the GNU linker is very broken
17435 if test "$host_cpu" != ia64; then
17436 ld_shlibs_GCJ=no
17437 cat <<EOF 1>&2
17439 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17440 *** to be unable to reliably create shared libraries on AIX.
17441 *** Therefore, libtool is disabling shared libraries support. If you
17442 *** really care for shared libraries, you may want to modify your PATH
17443 *** so that a non-GNU linker is found, and then restart.
17449 amigaos*)
17450 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)'
17451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452 hardcode_minus_L_GCJ=yes
17454 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17455 # that the semantics of dynamic libraries on AmigaOS, at least up
17456 # to version 4, is to share data among multiple programs linked
17457 # with the same dynamic library. Since this doesn't match the
17458 # behavior of shared libraries on other platforms, we can't use
17459 # them.
17460 ld_shlibs_GCJ=no
17463 beos*)
17464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17465 allow_undefined_flag_GCJ=unsupported
17466 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17467 # support --undefined. This deserves some investigation. FIXME
17468 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17469 else
17470 ld_shlibs_GCJ=no
17474 cygwin* | mingw* | pw32*)
17475 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17476 # as there is no search path for DLLs.
17477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17478 allow_undefined_flag_GCJ=unsupported
17479 always_export_symbols_GCJ=no
17480 enable_shared_with_static_runtimes_GCJ=yes
17481 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17483 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17485 # If the export-symbols file already is a .def file (1st line
17486 # is EXPORTS), use it as is; otherwise, prepend...
17487 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17488 cp $export_symbols $output_objdir/$soname.def;
17489 else
17490 echo EXPORTS > $output_objdir/$soname.def;
17491 cat $export_symbols >> $output_objdir/$soname.def;
17493 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17494 else
17495 ld_shlibs_GCJ=no
17499 interix[3-9]*)
17500 hardcode_direct_GCJ=no
17501 hardcode_shlibpath_var_GCJ=no
17502 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17503 export_dynamic_flag_spec_GCJ='${wl}-E'
17504 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17505 # Instead, shared libraries are loaded at an image base (0x10000000 by
17506 # default) and relocated if they conflict, which is a slow very memory
17507 # consuming and fragmenting process. To avoid this, we pick a random,
17508 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17509 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17510 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'
17511 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'
17514 gnu* | linux* | k*bsd*-gnu)
17515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17516 tmp_addflag=
17517 case $cc_basename,$host_cpu in
17518 pgcc*) # Portland Group C compiler
17519 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'
17520 tmp_addflag=' $pic_flag'
17522 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17523 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'
17524 tmp_addflag=' $pic_flag -Mnomain' ;;
17525 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17526 tmp_addflag=' -i_dynamic' ;;
17527 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17528 tmp_addflag=' -i_dynamic -nofor_main' ;;
17529 ifc* | ifort*) # Intel Fortran compiler
17530 tmp_addflag=' -nofor_main' ;;
17531 esac
17532 case `$CC -V 2>&1 | sed 5q` in
17533 *Sun\ C*) # Sun C 5.9
17534 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'
17535 tmp_sharedflag='-G' ;;
17536 *Sun\ F*) # Sun Fortran 8.3
17537 tmp_sharedflag='-G' ;;
17539 tmp_sharedflag='-shared' ;;
17540 esac
17541 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543 if test $supports_anon_versioning = yes; then
17544 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17546 $echo "local: *; };" >> $output_objdir/$libname.ver~
17547 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17549 else
17550 ld_shlibs_GCJ=no
17554 netbsd*)
17555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17556 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17557 wlarc=
17558 else
17559 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17560 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17564 solaris*)
17565 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17566 ld_shlibs_GCJ=no
17567 cat <<EOF 1>&2
17569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17570 *** create shared libraries on Solaris systems. Therefore, libtool
17571 *** is disabling shared libraries support. We urge you to upgrade GNU
17572 *** binutils to release 2.9.1 or newer. Another option is to modify
17573 *** your PATH or compiler configuration so that the native linker is
17574 *** used, and then restart.
17577 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17578 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17579 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17580 else
17581 ld_shlibs_GCJ=no
17585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17586 case `$LD -v 2>&1` in
17587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17588 ld_shlibs_GCJ=no
17589 cat <<_LT_EOF 1>&2
17591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17592 *** reliably create shared libraries on SCO systems. Therefore, libtool
17593 *** is disabling shared libraries support. We urge you to upgrade GNU
17594 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17595 *** your PATH or compiler configuration so that the native linker is
17596 *** used, and then restart.
17598 _LT_EOF
17601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17602 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17604 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17605 else
17606 ld_shlibs_GCJ=no
17609 esac
17612 sunos4*)
17613 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17614 wlarc=
17615 hardcode_direct_GCJ=yes
17616 hardcode_shlibpath_var_GCJ=no
17620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17621 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17623 else
17624 ld_shlibs_GCJ=no
17627 esac
17629 if test "$ld_shlibs_GCJ" = no; then
17630 runpath_var=
17631 hardcode_libdir_flag_spec_GCJ=
17632 export_dynamic_flag_spec_GCJ=
17633 whole_archive_flag_spec_GCJ=
17635 else
17636 # PORTME fill in a description of your system's linker (not GNU ld)
17637 case $host_os in
17638 aix3*)
17639 allow_undefined_flag_GCJ=unsupported
17640 always_export_symbols_GCJ=yes
17641 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'
17642 # Note: this linker hardcodes the directories in LIBPATH if there
17643 # are no directories specified by -L.
17644 hardcode_minus_L_GCJ=yes
17645 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17646 # Neither direct hardcoding nor static linking is supported with a
17647 # broken collect2.
17648 hardcode_direct_GCJ=unsupported
17652 aix[4-9]*)
17653 if test "$host_cpu" = ia64; then
17654 # On IA64, the linker does run time linking by default, so we don't
17655 # have to do anything special.
17656 aix_use_runtimelinking=no
17657 exp_sym_flag='-Bexport'
17658 no_entry_flag=""
17659 else
17660 # If we're using GNU nm, then we don't want the "-C" option.
17661 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17662 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17663 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'
17664 else
17665 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'
17667 aix_use_runtimelinking=no
17669 # Test if we are trying to use run time linking or normal
17670 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17671 # need to do runtime linking.
17672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17673 for ld_flag in $LDFLAGS; do
17674 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17675 aix_use_runtimelinking=yes
17676 break
17678 done
17680 esac
17682 exp_sym_flag='-bexport'
17683 no_entry_flag='-bnoentry'
17686 # When large executables or shared objects are built, AIX ld can
17687 # have problems creating the table of contents. If linking a library
17688 # or program results in "error TOC overflow" add -mminimal-toc to
17689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17692 archive_cmds_GCJ=''
17693 hardcode_direct_GCJ=yes
17694 hardcode_libdir_separator_GCJ=':'
17695 link_all_deplibs_GCJ=yes
17697 if test "$GCC" = yes; then
17698 case $host_os in aix4.[012]|aix4.[012].*)
17699 # We only want to do this on AIX 4.2 and lower, the check
17700 # below for broken collect2 doesn't work under 4.3+
17701 collect2name=`${CC} -print-prog-name=collect2`
17702 if test -f "$collect2name" && \
17703 strings "$collect2name" | grep resolve_lib_name >/dev/null
17704 then
17705 # We have reworked collect2
17707 else
17708 # We have old collect2
17709 hardcode_direct_GCJ=unsupported
17710 # It fails to find uninstalled libraries when the uninstalled
17711 # path is not listed in the libpath. Setting hardcode_minus_L
17712 # to unsupported forces relinking
17713 hardcode_minus_L_GCJ=yes
17714 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17715 hardcode_libdir_separator_GCJ=
17718 esac
17719 shared_flag='-shared'
17720 if test "$aix_use_runtimelinking" = yes; then
17721 shared_flag="$shared_flag "'${wl}-G'
17723 else
17724 # not using gcc
17725 if test "$host_cpu" = ia64; then
17726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17727 # chokes on -Wl,-G. The following line is correct:
17728 shared_flag='-G'
17729 else
17730 if test "$aix_use_runtimelinking" = yes; then
17731 shared_flag='${wl}-G'
17732 else
17733 shared_flag='${wl}-bM:SRE'
17738 # It seems that -bexpall does not export symbols beginning with
17739 # underscore (_), so it is better to generate a list of symbols to export.
17740 always_export_symbols_GCJ=yes
17741 if test "$aix_use_runtimelinking" = yes; then
17742 # Warning - without using the other runtime loading flags (-brtl),
17743 # -berok will link without error, but may produce a broken library.
17744 allow_undefined_flag_GCJ='-berok'
17745 # Determine the default libpath from the value encoded in an empty executable.
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17754 main ()
17758 return 0;
17760 _ACEOF
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (ac_try="$ac_link"
17763 case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_link") 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } && {
17775 test -z "$ac_c_werror_flag" ||
17776 test ! -s conftest.err
17777 } && test -s conftest$ac_exeext &&
17778 $as_test_x conftest$ac_exeext; then
17780 lt_aix_libpath_sed='
17781 /Import File Strings/,/^$/ {
17782 /^0/ {
17783 s/^0 *\(.*\)$/\1/
17787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788 # Check for a 64-bit object if we didn't find anything.
17789 if test -z "$aix_libpath"; then
17790 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17792 else
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17800 conftest$ac_exeext conftest.$ac_ext
17801 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17803 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17804 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"
17805 else
17806 if test "$host_cpu" = ia64; then
17807 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17808 allow_undefined_flag_GCJ="-z nodefs"
17809 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"
17810 else
17811 # Determine the default libpath from the value encoded in an empty executable.
17812 cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h. */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17820 main ()
17824 return 0;
17826 _ACEOF
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (ac_try="$ac_link"
17829 case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_link") 2>conftest.er1
17835 ac_status=$?
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } && {
17841 test -z "$ac_c_werror_flag" ||
17842 test ! -s conftest.err
17843 } && test -s conftest$ac_exeext &&
17844 $as_test_x conftest$ac_exeext; then
17846 lt_aix_libpath_sed='
17847 /Import File Strings/,/^$/ {
17848 /^0/ {
17849 s/^0 *\(.*\)$/\1/
17853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17854 # Check for a 64-bit object if we didn't find anything.
17855 if test -z "$aix_libpath"; then
17856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17858 else
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17869 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17870 # Warning - without using the other run time loading flags,
17871 # -berok will link without error, but may produce a broken library.
17872 no_undefined_flag_GCJ=' ${wl}-bernotok'
17873 allow_undefined_flag_GCJ=' ${wl}-berok'
17874 # Exported symbols can be pulled into shared objects from archives
17875 whole_archive_flag_spec_GCJ='$convenience'
17876 archive_cmds_need_lc_GCJ=yes
17877 # This is similar to how AIX traditionally builds its shared libraries.
17878 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'
17883 amigaos*)
17884 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)'
17885 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17886 hardcode_minus_L_GCJ=yes
17887 # see comment about different semantics on the GNU ld section
17888 ld_shlibs_GCJ=no
17891 bsdi[45]*)
17892 export_dynamic_flag_spec_GCJ=-rdynamic
17895 cygwin* | mingw* | pw32*)
17896 # When not using gcc, we currently assume that we are using
17897 # Microsoft Visual C++.
17898 # hardcode_libdir_flag_spec is actually meaningless, as there is
17899 # no search path for DLLs.
17900 hardcode_libdir_flag_spec_GCJ=' '
17901 allow_undefined_flag_GCJ=unsupported
17902 # Tell ltmain to make .lib files, not .a files.
17903 libext=lib
17904 # Tell ltmain to make .dll files, not .so files.
17905 shrext_cmds=".dll"
17906 # FIXME: Setting linknames here is a bad hack.
17907 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17908 # The linker will automatically build a .lib file if we build a DLL.
17909 old_archive_From_new_cmds_GCJ='true'
17910 # FIXME: Should let the user specify the lib program.
17911 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17912 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17913 enable_shared_with_static_runtimes_GCJ=yes
17916 darwin* | rhapsody*)
17917 case $host_os in
17918 rhapsody* | darwin1.[012])
17919 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17921 *) # Darwin 1.3 on
17922 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17923 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17924 else
17925 case ${MACOSX_DEPLOYMENT_TARGET} in
17926 10.[012])
17927 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17929 10.*)
17930 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17932 esac
17935 esac
17936 archive_cmds_need_lc_GCJ=no
17937 hardcode_direct_GCJ=no
17938 hardcode_automatic_GCJ=yes
17939 hardcode_shlibpath_var_GCJ=unsupported
17940 whole_archive_flag_spec_GCJ=''
17941 link_all_deplibs_GCJ=yes
17942 if test "$GCC" = yes ; then
17943 output_verbose_link_cmd='echo'
17944 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}"
17945 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17946 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}"
17947 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}"
17948 else
17949 case $cc_basename in
17950 xlc*)
17951 output_verbose_link_cmd='echo'
17952 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17953 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17954 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17955 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}'
17956 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}'
17959 ld_shlibs_GCJ=no
17961 esac
17965 dgux*)
17966 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17968 hardcode_shlibpath_var_GCJ=no
17971 freebsd1*)
17972 ld_shlibs_GCJ=no
17975 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17976 # support. Future versions do this automatically, but an explicit c++rt0.o
17977 # does not break anything, and helps significantly (at the cost of a little
17978 # extra space).
17979 freebsd2.2*)
17980 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17982 hardcode_direct_GCJ=yes
17983 hardcode_shlibpath_var_GCJ=no
17986 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17987 freebsd2*)
17988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17989 hardcode_direct_GCJ=yes
17990 hardcode_minus_L_GCJ=yes
17991 hardcode_shlibpath_var_GCJ=no
17994 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17995 freebsd* | dragonfly*)
17996 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998 hardcode_direct_GCJ=yes
17999 hardcode_shlibpath_var_GCJ=no
18002 hpux9*)
18003 if test "$GCC" = yes; then
18004 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'
18005 else
18006 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'
18008 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18009 hardcode_libdir_separator_GCJ=:
18010 hardcode_direct_GCJ=yes
18012 # hardcode_minus_L: Not really in the search PATH,
18013 # but as the default location of the library.
18014 hardcode_minus_L_GCJ=yes
18015 export_dynamic_flag_spec_GCJ='${wl}-E'
18018 hpux10*)
18019 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18020 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18021 else
18022 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18024 if test "$with_gnu_ld" = no; then
18025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18026 hardcode_libdir_separator_GCJ=:
18028 hardcode_direct_GCJ=yes
18029 export_dynamic_flag_spec_GCJ='${wl}-E'
18031 # hardcode_minus_L: Not really in the search PATH,
18032 # but as the default location of the library.
18033 hardcode_minus_L_GCJ=yes
18037 hpux11*)
18038 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18039 case $host_cpu in
18040 hppa*64*)
18041 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 ia64*)
18044 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18047 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18049 esac
18050 else
18051 case $host_cpu in
18052 hppa*64*)
18053 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 ia64*)
18056 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18059 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18061 esac
18063 if test "$with_gnu_ld" = no; then
18064 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18065 hardcode_libdir_separator_GCJ=:
18067 case $host_cpu in
18068 hppa*64*|ia64*)
18069 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18070 hardcode_direct_GCJ=no
18071 hardcode_shlibpath_var_GCJ=no
18074 hardcode_direct_GCJ=yes
18075 export_dynamic_flag_spec_GCJ='${wl}-E'
18077 # hardcode_minus_L: Not really in the search PATH,
18078 # but as the default location of the library.
18079 hardcode_minus_L_GCJ=yes
18081 esac
18085 irix5* | irix6* | nonstopux*)
18086 if test "$GCC" = yes; then
18087 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'
18088 else
18089 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'
18090 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18093 hardcode_libdir_separator_GCJ=:
18094 link_all_deplibs_GCJ=yes
18097 netbsd*)
18098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18099 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18100 else
18101 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104 hardcode_direct_GCJ=yes
18105 hardcode_shlibpath_var_GCJ=no
18108 newsos6)
18109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18110 hardcode_direct_GCJ=yes
18111 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112 hardcode_libdir_separator_GCJ=:
18113 hardcode_shlibpath_var_GCJ=no
18116 openbsd*)
18117 if test -f /usr/libexec/ld.so; then
18118 hardcode_direct_GCJ=yes
18119 hardcode_shlibpath_var_GCJ=no
18120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18123 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18124 export_dynamic_flag_spec_GCJ='${wl}-E'
18125 else
18126 case $host_os in
18127 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18128 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18129 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18132 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18133 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18135 esac
18137 else
18138 ld_shlibs_GCJ=no
18142 os2*)
18143 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18144 hardcode_minus_L_GCJ=yes
18145 allow_undefined_flag_GCJ=unsupported
18146 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'
18147 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18150 osf3*)
18151 if test "$GCC" = yes; then
18152 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18153 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'
18154 else
18155 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18156 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'
18158 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18159 hardcode_libdir_separator_GCJ=:
18162 osf4* | osf5*) # as osf3* with the addition of -msym flag
18163 if test "$GCC" = yes; then
18164 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18165 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'
18166 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18167 else
18168 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18169 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'
18170 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~
18171 $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'
18173 # Both c and cxx compiler support -rpath directly
18174 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18176 hardcode_libdir_separator_GCJ=:
18179 solaris*)
18180 no_undefined_flag_GCJ=' -z text'
18181 if test "$GCC" = yes; then
18182 wlarc='${wl}'
18183 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18184 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18185 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18186 else
18187 wlarc=''
18188 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18189 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18190 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18192 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18193 hardcode_shlibpath_var_GCJ=no
18194 case $host_os in
18195 solaris2.[0-5] | solaris2.[0-5].*) ;;
18197 # The compiler driver will combine and reorder linker options,
18198 # but understands `-z linker_flag'. GCC discards it without `$wl',
18199 # but is careful enough not to reorder.
18200 # Supported since Solaris 2.6 (maybe 2.5.1?)
18201 if test "$GCC" = yes; then
18202 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18203 else
18204 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18207 esac
18208 link_all_deplibs_GCJ=yes
18211 sunos4*)
18212 if test "x$host_vendor" = xsequent; then
18213 # Use $CC to link under sequent, because it throws in some extra .o
18214 # files that make .init and .fini sections work.
18215 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18216 else
18217 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18220 hardcode_direct_GCJ=yes
18221 hardcode_minus_L_GCJ=yes
18222 hardcode_shlibpath_var_GCJ=no
18225 sysv4)
18226 case $host_vendor in
18227 sni)
18228 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229 hardcode_direct_GCJ=yes # is this really true???
18231 siemens)
18232 ## LD is ld it makes a PLAMLIB
18233 ## CC just makes a GrossModule.
18234 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18235 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18236 hardcode_direct_GCJ=no
18238 motorola)
18239 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18242 esac
18243 runpath_var='LD_RUN_PATH'
18244 hardcode_shlibpath_var_GCJ=no
18247 sysv4.3*)
18248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249 hardcode_shlibpath_var_GCJ=no
18250 export_dynamic_flag_spec_GCJ='-Bexport'
18253 sysv4*MP*)
18254 if test -d /usr/nec; then
18255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18256 hardcode_shlibpath_var_GCJ=no
18257 runpath_var=LD_RUN_PATH
18258 hardcode_runpath_var=yes
18259 ld_shlibs_GCJ=yes
18263 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18264 no_undefined_flag_GCJ='${wl}-z,text'
18265 archive_cmds_need_lc_GCJ=no
18266 hardcode_shlibpath_var_GCJ=no
18267 runpath_var='LD_RUN_PATH'
18269 if test "$GCC" = yes; then
18270 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18271 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18272 else
18273 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18274 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18278 sysv5* | sco3.2v5* | sco5v6*)
18279 # Note: We can NOT use -z defs as we might desire, because we do not
18280 # link with -lc, and that would cause any symbols used from libc to
18281 # always be unresolved, which means just about no library would
18282 # ever link correctly. If we're not using GNU ld we use -z text
18283 # though, which does catch some bad symbols but isn't as heavy-handed
18284 # as -z defs.
18285 no_undefined_flag_GCJ='${wl}-z,text'
18286 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18287 archive_cmds_need_lc_GCJ=no
18288 hardcode_shlibpath_var_GCJ=no
18289 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18290 hardcode_libdir_separator_GCJ=':'
18291 link_all_deplibs_GCJ=yes
18292 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18293 runpath_var='LD_RUN_PATH'
18295 if test "$GCC" = yes; then
18296 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18297 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18298 else
18299 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18304 uts4*)
18305 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18307 hardcode_shlibpath_var_GCJ=no
18311 ld_shlibs_GCJ=no
18313 esac
18316 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18317 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18318 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18321 # Do we need to explicitly link libc?
18323 case "x$archive_cmds_need_lc_GCJ" in
18324 x|xyes)
18325 # Assume -lc should be added
18326 archive_cmds_need_lc_GCJ=yes
18328 if test "$enable_shared" = yes && test "$GCC" = yes; then
18329 case $archive_cmds_GCJ in
18330 *'~'*)
18331 # FIXME: we may have to deal with multi-command sequences.
18333 '$CC '*)
18334 # Test whether the compiler implicitly links with -lc since on some
18335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18336 # to ld, don't add -lc before -lgcc.
18337 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18339 $rm conftest*
18340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } 2>conftest.err; then
18347 soname=conftest
18348 lib=conftest
18349 libobjs=conftest.$ac_objext
18350 deplibs=
18351 wl=$lt_prog_compiler_wl_GCJ
18352 pic_flag=$lt_prog_compiler_pic_GCJ
18353 compiler_flags=-v
18354 linker_flags=-v
18355 verstring=
18356 output_objdir=.
18357 libname=conftest
18358 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18359 allow_undefined_flag_GCJ=
18360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18361 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }
18365 then
18366 archive_cmds_need_lc_GCJ=no
18367 else
18368 archive_cmds_need_lc_GCJ=yes
18370 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18371 else
18372 cat conftest.err 1>&5
18374 $rm conftest*
18375 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18376 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18378 esac
18381 esac
18383 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18384 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18385 library_names_spec=
18386 libname_spec='lib$name'
18387 soname_spec=
18388 shrext_cmds=".so"
18389 postinstall_cmds=
18390 postuninstall_cmds=
18391 finish_cmds=
18392 finish_eval=
18393 shlibpath_var=
18394 shlibpath_overrides_runpath=unknown
18395 version_type=none
18396 dynamic_linker="$host_os ld.so"
18397 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18399 need_lib_prefix=unknown
18400 hardcode_into_libs=no
18402 # when you set need_version to no, make sure it does not cause -set_version
18403 # flags to be left without arguments
18404 need_version=unknown
18406 case $host_os in
18407 aix3*)
18408 version_type=linux
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18410 shlibpath_var=LIBPATH
18412 # AIX 3 has no versioning support, so we append a major version to the name.
18413 soname_spec='${libname}${release}${shared_ext}$major'
18416 aix[4-9]*)
18417 version_type=linux
18418 need_lib_prefix=no
18419 need_version=no
18420 hardcode_into_libs=yes
18421 if test "$host_cpu" = ia64; then
18422 # AIX 5 supports IA64
18423 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18424 shlibpath_var=LD_LIBRARY_PATH
18425 else
18426 # With GCC up to 2.95.x, collect2 would create an import file
18427 # for dependence libraries. The import file would start with
18428 # the line `#! .'. This would cause the generated library to
18429 # depend on `.', always an invalid library. This was fixed in
18430 # development snapshots of GCC prior to 3.0.
18431 case $host_os in
18432 aix4 | aix4.[01] | aix4.[01].*)
18433 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18434 echo ' yes '
18435 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18437 else
18438 can_build_shared=no
18441 esac
18442 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18443 # soname into executable. Probably we can add versioning support to
18444 # collect2, so additional links can be useful in future.
18445 if test "$aix_use_runtimelinking" = yes; then
18446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18447 # instead of lib<name>.a to let people know that these are not
18448 # typical AIX shared libraries.
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 else
18451 # We preserve .a as extension for shared libraries through AIX4.2
18452 # and later when we are not doing run time linking.
18453 library_names_spec='${libname}${release}.a $libname.a'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18456 shlibpath_var=LIBPATH
18460 amigaos*)
18461 library_names_spec='$libname.ixlibrary $libname.a'
18462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18463 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'
18466 beos*)
18467 library_names_spec='${libname}${shared_ext}'
18468 dynamic_linker="$host_os ld.so"
18469 shlibpath_var=LIBRARY_PATH
18472 bsdi[45]*)
18473 version_type=linux
18474 need_version=no
18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18476 soname_spec='${libname}${release}${shared_ext}$major'
18477 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18478 shlibpath_var=LD_LIBRARY_PATH
18479 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18480 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18481 # the default ld.so.conf also contains /usr/contrib/lib and
18482 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18483 # libtool to hard-code these into programs
18486 cygwin* | mingw* | pw32*)
18487 version_type=windows
18488 shrext_cmds=".dll"
18489 need_version=no
18490 need_lib_prefix=no
18492 case $GCC,$host_os in
18493 yes,cygwin* | yes,mingw* | yes,pw32*)
18494 library_names_spec='$libname.dll.a'
18495 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18496 postinstall_cmds='base_file=`basename \${file}`~
18497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18498 dldir=$destdir/`dirname \$dlpath`~
18499 test -d \$dldir || mkdir -p \$dldir~
18500 $install_prog $dir/$dlname \$dldir/$dlname~
18501 chmod a+x \$dldir/$dlname'
18502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18503 dlpath=$dir/\$dldll~
18504 $rm \$dlpath'
18505 shlibpath_overrides_runpath=yes
18507 case $host_os in
18508 cygwin*)
18509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18510 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18513 mingw*)
18514 # MinGW DLLs use traditional 'lib' prefix
18515 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18517 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18518 # It is most probably a Windows format PATH printed by
18519 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18520 # path with ; separators, and with drive letters. We can handle the
18521 # drive letters (cygwin fileutils understands them), so leave them,
18522 # especially as we might pass files found there to a mingw objdump,
18523 # which wouldn't understand a cygwinified path. Ahh.
18524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18525 else
18526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18529 pw32*)
18530 # pw32 DLLs use 'pw' prefix rather than 'lib'
18531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18533 esac
18537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18539 esac
18540 dynamic_linker='Win32 ld.exe'
18541 # FIXME: first we should search . and the directory the executable is in
18542 shlibpath_var=PATH
18545 darwin* | rhapsody*)
18546 dynamic_linker="$host_os dyld"
18547 version_type=darwin
18548 need_lib_prefix=no
18549 need_version=no
18550 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18551 soname_spec='${libname}${release}${major}$shared_ext'
18552 shlibpath_overrides_runpath=yes
18553 shlibpath_var=DYLD_LIBRARY_PATH
18554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18559 dgux*)
18560 version_type=linux
18561 need_lib_prefix=no
18562 need_version=no
18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18564 soname_spec='${libname}${release}${shared_ext}$major'
18565 shlibpath_var=LD_LIBRARY_PATH
18568 freebsd1*)
18569 dynamic_linker=no
18572 freebsd* | dragonfly*)
18573 # DragonFly does not have aout. When/if they implement a new
18574 # versioning mechanism, adjust this.
18575 if test -x /usr/bin/objformat; then
18576 objformat=`/usr/bin/objformat`
18577 else
18578 case $host_os in
18579 freebsd[123]*) objformat=aout ;;
18580 *) objformat=elf ;;
18581 esac
18583 version_type=freebsd-$objformat
18584 case $version_type in
18585 freebsd-elf*)
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18587 need_version=no
18588 need_lib_prefix=no
18590 freebsd-*)
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18592 need_version=yes
18594 esac
18595 shlibpath_var=LD_LIBRARY_PATH
18596 case $host_os in
18597 freebsd2*)
18598 shlibpath_overrides_runpath=yes
18600 freebsd3.[01]* | freebsdelf3.[01]*)
18601 shlibpath_overrides_runpath=yes
18602 hardcode_into_libs=yes
18604 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18605 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18606 shlibpath_overrides_runpath=no
18607 hardcode_into_libs=yes
18609 *) # from 4.6 on, and DragonFly
18610 shlibpath_overrides_runpath=yes
18611 hardcode_into_libs=yes
18613 esac
18616 gnu*)
18617 version_type=linux
18618 need_lib_prefix=no
18619 need_version=no
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18621 soname_spec='${libname}${release}${shared_ext}$major'
18622 shlibpath_var=LD_LIBRARY_PATH
18623 hardcode_into_libs=yes
18626 hpux9* | hpux10* | hpux11*)
18627 # Give a soname corresponding to the major version so that dld.sl refuses to
18628 # link against other versions.
18629 version_type=sunos
18630 need_lib_prefix=no
18631 need_version=no
18632 case $host_cpu in
18633 ia64*)
18634 shrext_cmds='.so'
18635 hardcode_into_libs=yes
18636 dynamic_linker="$host_os dld.so"
18637 shlibpath_var=LD_LIBRARY_PATH
18638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640 soname_spec='${libname}${release}${shared_ext}$major'
18641 if test "X$HPUX_IA64_MODE" = X32; then
18642 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18643 else
18644 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18648 hppa*64*)
18649 shrext_cmds='.sl'
18650 hardcode_into_libs=yes
18651 dynamic_linker="$host_os dld.sl"
18652 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655 soname_spec='${libname}${release}${shared_ext}$major'
18656 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18660 shrext_cmds='.sl'
18661 dynamic_linker="$host_os dld.sl"
18662 shlibpath_var=SHLIB_PATH
18663 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18665 soname_spec='${libname}${release}${shared_ext}$major'
18667 esac
18668 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18669 postinstall_cmds='chmod 555 $lib'
18672 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 shlibpath_overrides_runpath=no
18681 hardcode_into_libs=yes
18684 irix5* | irix6* | nonstopux*)
18685 case $host_os in
18686 nonstopux*) version_type=nonstopux ;;
18688 if test "$lt_cv_prog_gnu_ld" = yes; then
18689 version_type=linux
18690 else
18691 version_type=irix
18692 fi ;;
18693 esac
18694 need_lib_prefix=no
18695 need_version=no
18696 soname_spec='${libname}${release}${shared_ext}$major'
18697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18698 case $host_os in
18699 irix5* | nonstopux*)
18700 libsuff= shlibsuff=
18703 case $LD in # libtool.m4 will add one of these switches to LD
18704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18705 libsuff= shlibsuff= libmagic=32-bit;;
18706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18707 libsuff=32 shlibsuff=N32 libmagic=N32;;
18708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18709 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18710 *) libsuff= shlibsuff= libmagic=never-match;;
18711 esac
18713 esac
18714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18715 shlibpath_overrides_runpath=no
18716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18718 hardcode_into_libs=yes
18721 # No shared lib support for Linux oldld, aout, or coff.
18722 linux*oldld* | linux*aout* | linux*coff*)
18723 dynamic_linker=no
18726 # This must be Linux ELF.
18727 linux* | k*bsd*-gnu)
18728 version_type=linux
18729 need_lib_prefix=no
18730 need_version=no
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18734 shlibpath_var=LD_LIBRARY_PATH
18735 shlibpath_overrides_runpath=no
18736 # This implies no fast_install, which is unacceptable.
18737 # Some rework will be needed to allow for fast_install
18738 # before this can be enabled.
18739 hardcode_into_libs=yes
18741 # Append ld.so.conf contents to the search path
18742 if test -f /etc/ld.so.conf; then
18743 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' ' '`
18744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18747 # We used to test for /lib/ld.so.1 and disable shared libraries on
18748 # powerpc, because MkLinux only supported shared libraries with the
18749 # GNU dynamic linker. Since this was broken with cross compilers,
18750 # most powerpc-linux boxes support dynamic linking these days and
18751 # people can always --disable-shared, the test was removed, and we
18752 # assume the GNU/Linux dynamic linker is in use.
18753 dynamic_linker='GNU/Linux ld.so'
18756 netbsd*)
18757 version_type=sunos
18758 need_lib_prefix=no
18759 need_version=no
18760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18763 dynamic_linker='NetBSD (a.out) ld.so'
18764 else
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 dynamic_linker='NetBSD ld.elf_so'
18769 shlibpath_var=LD_LIBRARY_PATH
18770 shlibpath_overrides_runpath=yes
18771 hardcode_into_libs=yes
18774 newsos6)
18775 version_type=linux
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18777 shlibpath_var=LD_LIBRARY_PATH
18778 shlibpath_overrides_runpath=yes
18781 nto-qnx*)
18782 version_type=linux
18783 need_lib_prefix=no
18784 need_version=no
18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18786 soname_spec='${libname}${release}${shared_ext}$major'
18787 shlibpath_var=LD_LIBRARY_PATH
18788 shlibpath_overrides_runpath=yes
18791 openbsd*)
18792 version_type=sunos
18793 sys_lib_dlsearch_path_spec="/usr/lib"
18794 need_lib_prefix=no
18795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18796 case $host_os in
18797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18798 *) need_version=no ;;
18799 esac
18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18802 shlibpath_var=LD_LIBRARY_PATH
18803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18804 case $host_os in
18805 openbsd2.[89] | openbsd2.[89].*)
18806 shlibpath_overrides_runpath=no
18809 shlibpath_overrides_runpath=yes
18811 esac
18812 else
18813 shlibpath_overrides_runpath=yes
18817 os2*)
18818 libname_spec='$name'
18819 shrext_cmds=".dll"
18820 need_lib_prefix=no
18821 library_names_spec='$libname${shared_ext} $libname.a'
18822 dynamic_linker='OS/2 ld.exe'
18823 shlibpath_var=LIBPATH
18826 osf3* | osf4* | osf5*)
18827 version_type=osf
18828 need_lib_prefix=no
18829 need_version=no
18830 soname_spec='${libname}${release}${shared_ext}$major'
18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18832 shlibpath_var=LD_LIBRARY_PATH
18833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18837 rdos*)
18838 dynamic_linker=no
18841 solaris*)
18842 version_type=linux
18843 need_lib_prefix=no
18844 need_version=no
18845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18846 soname_spec='${libname}${release}${shared_ext}$major'
18847 shlibpath_var=LD_LIBRARY_PATH
18848 shlibpath_overrides_runpath=yes
18849 hardcode_into_libs=yes
18850 # ldd complains unless libraries are executable
18851 postinstall_cmds='chmod +x $lib'
18854 sunos4*)
18855 version_type=sunos
18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18858 shlibpath_var=LD_LIBRARY_PATH
18859 shlibpath_overrides_runpath=yes
18860 if test "$with_gnu_ld" = yes; then
18861 need_lib_prefix=no
18863 need_version=yes
18866 sysv4 | sysv4.3*)
18867 version_type=linux
18868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18869 soname_spec='${libname}${release}${shared_ext}$major'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 case $host_vendor in
18872 sni)
18873 shlibpath_overrides_runpath=no
18874 need_lib_prefix=no
18875 export_dynamic_flag_spec='${wl}-Blargedynsym'
18876 runpath_var=LD_RUN_PATH
18878 siemens)
18879 need_lib_prefix=no
18881 motorola)
18882 need_lib_prefix=no
18883 need_version=no
18884 shlibpath_overrides_runpath=no
18885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18887 esac
18890 sysv4*MP*)
18891 if test -d /usr/nec ;then
18892 version_type=linux
18893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18894 soname_spec='$libname${shared_ext}.$major'
18895 shlibpath_var=LD_LIBRARY_PATH
18899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18900 version_type=freebsd-elf
18901 need_lib_prefix=no
18902 need_version=no
18903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 shlibpath_var=LD_LIBRARY_PATH
18906 hardcode_into_libs=yes
18907 if test "$with_gnu_ld" = yes; then
18908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18909 shlibpath_overrides_runpath=no
18910 else
18911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18912 shlibpath_overrides_runpath=yes
18913 case $host_os in
18914 sco3.2v5*)
18915 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18917 esac
18919 sys_lib_dlsearch_path_spec='/usr/lib'
18922 uts4*)
18923 version_type=linux
18924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18925 soname_spec='${libname}${release}${shared_ext}$major'
18926 shlibpath_var=LD_LIBRARY_PATH
18930 dynamic_linker=no
18932 esac
18933 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18934 echo "${ECHO_T}$dynamic_linker" >&6; }
18935 test "$dynamic_linker" = no && can_build_shared=no
18937 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18943 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18944 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18950 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18953 if test "$GCC" = yes; then
18954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18957 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18958 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18959 hardcode_action_GCJ=
18960 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18961 test -n "$runpath_var_GCJ" || \
18962 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18964 # We can hardcode non-existant directories.
18965 if test "$hardcode_direct_GCJ" != no &&
18966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18967 # have to relink, otherwise we might link with an installed library
18968 # when we should be linking with a yet-to-be-installed one
18969 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18970 test "$hardcode_minus_L_GCJ" != no; then
18971 # Linking always hardcodes the temporary library directory.
18972 hardcode_action_GCJ=relink
18973 else
18974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18975 hardcode_action_GCJ=immediate
18977 else
18978 # We cannot hardcode anything, or else we can only hardcode existing
18979 # directories.
18980 hardcode_action_GCJ=unsupported
18982 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18983 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18985 if test "$hardcode_action_GCJ" = relink; then
18986 # Fast installation is not supported
18987 enable_fast_install=no
18988 elif test "$shlibpath_overrides_runpath" = yes ||
18989 test "$enable_shared" = no; then
18990 # Fast installation is not necessary
18991 enable_fast_install=needless
18995 # The else clause should only fire when bootstrapping the
18996 # libtool distribution, otherwise you forgot to ship ltmain.sh
18997 # with your package, and you will get complaints that there are
18998 # no rules to generate ltmain.sh.
18999 if test -f "$ltmain"; then
19000 # See if we are running on zsh, and set the options which allow our commands through
19001 # without removal of \ escapes.
19002 if test -n "${ZSH_VERSION+set}" ; then
19003 setopt NO_GLOB_SUBST
19005 # Now quote all the things that may contain metacharacters while being
19006 # careful not to overquote the AC_SUBSTed values. We take copies of the
19007 # variables and quote the copies for generation of the libtool script.
19008 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19009 SED SHELL STRIP \
19010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19012 deplibs_check_method reload_flag reload_cmds need_locks \
19013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19014 lt_cv_sys_global_symbol_to_c_name_address \
19015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19016 old_postinstall_cmds old_postuninstall_cmds \
19017 compiler_GCJ \
19018 CC_GCJ \
19019 LD_GCJ \
19020 lt_prog_compiler_wl_GCJ \
19021 lt_prog_compiler_pic_GCJ \
19022 lt_prog_compiler_static_GCJ \
19023 lt_prog_compiler_no_builtin_flag_GCJ \
19024 export_dynamic_flag_spec_GCJ \
19025 thread_safe_flag_spec_GCJ \
19026 whole_archive_flag_spec_GCJ \
19027 enable_shared_with_static_runtimes_GCJ \
19028 old_archive_cmds_GCJ \
19029 old_archive_from_new_cmds_GCJ \
19030 predep_objects_GCJ \
19031 postdep_objects_GCJ \
19032 predeps_GCJ \
19033 postdeps_GCJ \
19034 compiler_lib_search_path_GCJ \
19035 compiler_lib_search_dirs_GCJ \
19036 archive_cmds_GCJ \
19037 archive_expsym_cmds_GCJ \
19038 postinstall_cmds_GCJ \
19039 postuninstall_cmds_GCJ \
19040 old_archive_from_expsyms_cmds_GCJ \
19041 allow_undefined_flag_GCJ \
19042 no_undefined_flag_GCJ \
19043 export_symbols_cmds_GCJ \
19044 hardcode_libdir_flag_spec_GCJ \
19045 hardcode_libdir_flag_spec_ld_GCJ \
19046 hardcode_libdir_separator_GCJ \
19047 hardcode_automatic_GCJ \
19048 module_cmds_GCJ \
19049 module_expsym_cmds_GCJ \
19050 lt_cv_prog_compiler_c_o_GCJ \
19051 fix_srcfile_path_GCJ \
19052 exclude_expsyms_GCJ \
19053 include_expsyms_GCJ; do
19055 case $var in
19056 old_archive_cmds_GCJ | \
19057 old_archive_from_new_cmds_GCJ | \
19058 archive_cmds_GCJ | \
19059 archive_expsym_cmds_GCJ | \
19060 module_cmds_GCJ | \
19061 module_expsym_cmds_GCJ | \
19062 old_archive_from_expsyms_cmds_GCJ | \
19063 export_symbols_cmds_GCJ | \
19064 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19065 postinstall_cmds | postuninstall_cmds | \
19066 old_postinstall_cmds | old_postuninstall_cmds | \
19067 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19068 # Double-quote double-evaled strings.
19069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19074 esac
19075 done
19077 case $lt_echo in
19078 *'\$0 --fallback-echo"')
19079 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19081 esac
19083 cfgfile="$ofile"
19085 cat <<__EOF__ >> "$cfgfile"
19086 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19090 # Shell to use when invoking shell scripts.
19091 SHELL=$lt_SHELL
19093 # Whether or not to build shared libraries.
19094 build_libtool_libs=$enable_shared
19096 # Whether or not to build static libraries.
19097 build_old_libs=$enable_static
19099 # Whether or not to add -lc for building shared libraries.
19100 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19102 # Whether or not to disallow shared libs when runtime libs are static
19103 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19105 # Whether or not to optimize for fast installation.
19106 fast_install=$enable_fast_install
19108 # The host system.
19109 host_alias=$host_alias
19110 host=$host
19111 host_os=$host_os
19113 # The build system.
19114 build_alias=$build_alias
19115 build=$build
19116 build_os=$build_os
19118 # An echo program that does not interpret backslashes.
19119 echo=$lt_echo
19121 # The archiver.
19122 AR=$lt_AR
19123 AR_FLAGS=$lt_AR_FLAGS
19125 # A C compiler.
19126 LTCC=$lt_LTCC
19128 # LTCC compiler flags.
19129 LTCFLAGS=$lt_LTCFLAGS
19131 # A language-specific compiler.
19132 CC=$lt_compiler_GCJ
19134 # Is the compiler the GNU C compiler?
19135 with_gcc=$GCC_GCJ
19137 # An ERE matcher.
19138 EGREP=$lt_EGREP
19140 # The linker used to build libraries.
19141 LD=$lt_LD_GCJ
19143 # Whether we need hard or soft links.
19144 LN_S=$lt_LN_S
19146 # A BSD-compatible nm program.
19147 NM=$lt_NM
19149 # A symbol stripping program
19150 STRIP=$lt_STRIP
19152 # Used to examine libraries when file_magic_cmd begins "file"
19153 MAGIC_CMD=$MAGIC_CMD
19155 # Used on cygwin: DLL creation program.
19156 DLLTOOL="$DLLTOOL"
19158 # Used on cygwin: object dumper.
19159 OBJDUMP="$OBJDUMP"
19161 # Used on cygwin: assembler.
19162 AS="$AS"
19164 # The name of the directory that contains temporary libtool files.
19165 objdir=$objdir
19167 # How to create reloadable object files.
19168 reload_flag=$lt_reload_flag
19169 reload_cmds=$lt_reload_cmds
19171 # How to pass a linker flag through the compiler.
19172 wl=$lt_lt_prog_compiler_wl_GCJ
19174 # Object file suffix (normally "o").
19175 objext="$ac_objext"
19177 # Old archive suffix (normally "a").
19178 libext="$libext"
19180 # Shared library suffix (normally ".so").
19181 shrext_cmds='$shrext_cmds'
19183 # Executable file suffix (normally "").
19184 exeext="$exeext"
19186 # Additional compiler flags for building library objects.
19187 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19188 pic_mode=$pic_mode
19190 # What is the maximum length of a command?
19191 max_cmd_len=$lt_cv_sys_max_cmd_len
19193 # Does compiler simultaneously support -c and -o options?
19194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19196 # Must we lock files when doing compilation?
19197 need_locks=$lt_need_locks
19199 # Do we need the lib prefix for modules?
19200 need_lib_prefix=$need_lib_prefix
19202 # Do we need a version for libraries?
19203 need_version=$need_version
19205 # Whether dlopen is supported.
19206 dlopen_support=$enable_dlopen
19208 # Whether dlopen of programs is supported.
19209 dlopen_self=$enable_dlopen_self
19211 # Whether dlopen of statically linked programs is supported.
19212 dlopen_self_static=$enable_dlopen_self_static
19214 # Compiler flag to prevent dynamic linking.
19215 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19217 # Compiler flag to turn off builtin functions.
19218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19220 # Compiler flag to allow reflexive dlopens.
19221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19223 # Compiler flag to generate shared objects directly from archives.
19224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19226 # Compiler flag to generate thread-safe objects.
19227 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19229 # Library versioning type.
19230 version_type=$version_type
19232 # Format of library name prefix.
19233 libname_spec=$lt_libname_spec
19235 # List of archive names. First name is the real one, the rest are links.
19236 # The last name is the one that the linker finds with -lNAME.
19237 library_names_spec=$lt_library_names_spec
19239 # The coded name of the library, if different from the real name.
19240 soname_spec=$lt_soname_spec
19242 # Commands used to build and install an old-style archive.
19243 RANLIB=$lt_RANLIB
19244 old_archive_cmds=$lt_old_archive_cmds_GCJ
19245 old_postinstall_cmds=$lt_old_postinstall_cmds
19246 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19248 # Create an old-style archive from a shared archive.
19249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19251 # Create a temporary old-style archive to link instead of a shared archive.
19252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19254 # Commands used to build and install a shared archive.
19255 archive_cmds=$lt_archive_cmds_GCJ
19256 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19257 postinstall_cmds=$lt_postinstall_cmds
19258 postuninstall_cmds=$lt_postuninstall_cmds
19260 # Commands used to build a loadable module (assumed same as above if empty)
19261 module_cmds=$lt_module_cmds_GCJ
19262 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19264 # Commands to strip libraries.
19265 old_striplib=$lt_old_striplib
19266 striplib=$lt_striplib
19268 # Dependencies to place before the objects being linked to create a
19269 # shared library.
19270 predep_objects=$lt_predep_objects_GCJ
19272 # Dependencies to place after the objects being linked to create a
19273 # shared library.
19274 postdep_objects=$lt_postdep_objects_GCJ
19276 # Dependencies to place before the objects being linked to create a
19277 # shared library.
19278 predeps=$lt_predeps_GCJ
19280 # Dependencies to place after the objects being linked to create a
19281 # shared library.
19282 postdeps=$lt_postdeps_GCJ
19284 # The directories searched by this compiler when creating a shared
19285 # library
19286 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19288 # The library search path used internally by the compiler when linking
19289 # a shared library.
19290 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19292 # Method to check whether dependent libraries are shared objects.
19293 deplibs_check_method=$lt_deplibs_check_method
19295 # Command to use when deplibs_check_method == file_magic.
19296 file_magic_cmd=$lt_file_magic_cmd
19298 # Flag that allows shared libraries with undefined symbols to be built.
19299 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19301 # Flag that forces no undefined symbols.
19302 no_undefined_flag=$lt_no_undefined_flag_GCJ
19304 # Commands used to finish a libtool library installation in a directory.
19305 finish_cmds=$lt_finish_cmds
19307 # Same as above, but a single script fragment to be evaled but not shown.
19308 finish_eval=$lt_finish_eval
19310 # Take the output of nm and produce a listing of raw symbols and C names.
19311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19313 # Transform the output of nm in a proper C declaration
19314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19316 # Transform the output of nm in a C name address pair
19317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19319 # This is the shared library runtime path variable.
19320 runpath_var=$runpath_var
19322 # This is the shared library path variable.
19323 shlibpath_var=$shlibpath_var
19325 # Is shlibpath searched before the hard-coded library search path?
19326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19328 # How to hardcode a shared library path into an executable.
19329 hardcode_action=$hardcode_action_GCJ
19331 # Whether we should hardcode library paths into libraries.
19332 hardcode_into_libs=$hardcode_into_libs
19334 # Flag to hardcode \$libdir into a binary during linking.
19335 # This must work even if \$libdir does not exist.
19336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19338 # If ld is used when linking, flag to hardcode \$libdir into
19339 # a binary during linking. This must work even if \$libdir does
19340 # not exist.
19341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19343 # Whether we need a single -rpath flag with a separated argument.
19344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19347 # resulting binary.
19348 hardcode_direct=$hardcode_direct_GCJ
19350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19351 # resulting binary.
19352 hardcode_minus_L=$hardcode_minus_L_GCJ
19354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19355 # the resulting binary.
19356 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19358 # Set to yes if building a shared library automatically hardcodes DIR into the library
19359 # and all subsequent libraries and executables linked against it.
19360 hardcode_automatic=$hardcode_automatic_GCJ
19362 # Variables whose values should be saved in libtool wrapper scripts and
19363 # restored at relink time.
19364 variables_saved_for_relink="$variables_saved_for_relink"
19366 # Whether libtool must link a program against all its dependency libraries.
19367 link_all_deplibs=$link_all_deplibs_GCJ
19369 # Compile-time system search path for libraries
19370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19372 # Run-time system search path for libraries
19373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19375 # Fix the shell variable \$srcfile for the compiler.
19376 fix_srcfile_path=$lt_fix_srcfile_path
19378 # Set to yes if exported symbols are required.
19379 always_export_symbols=$always_export_symbols_GCJ
19381 # The commands to list exported symbols.
19382 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19384 # The commands to extract the exported symbol list from a shared archive.
19385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19387 # Symbols that should not be listed in the preloaded symbols.
19388 exclude_expsyms=$lt_exclude_expsyms_GCJ
19390 # Symbols that must always be exported.
19391 include_expsyms=$lt_include_expsyms_GCJ
19393 # ### END LIBTOOL TAG CONFIG: $tagname
19395 __EOF__
19398 else
19399 # If there is no Makefile yet, we rely on a make rule to execute
19400 # `config.status --recheck' to rerun these tests and create the
19401 # libtool script then.
19402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19403 if test -f "$ltmain_in"; then
19404 test -f Makefile && make "$ltmain"
19409 ac_ext=c
19410 ac_cpp='$CPP $CPPFLAGS'
19411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19415 CC="$lt_save_CC"
19417 else
19418 tagname=""
19425 # Source file extension for RC test sources.
19426 ac_ext=rc
19428 # Object file extension for compiled RC test sources.
19429 objext=o
19430 objext_RC=$objext
19432 # Code to be used in simple compile tests
19433 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19435 # Code to be used in simple link tests
19436 lt_simple_link_test_code="$lt_simple_compile_test_code"
19438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19440 # If no C compiler was specified, use CC.
19441 LTCC=${LTCC-"$CC"}
19443 # If no C compiler flags were specified, use CFLAGS.
19444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19446 # Allow CC to be a program name with arguments.
19447 compiler=$CC
19450 # save warnings/boilerplate of simple test code
19451 ac_outfile=conftest.$ac_objext
19452 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19453 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19454 _lt_compiler_boilerplate=`cat conftest.err`
19455 $rm conftest*
19457 ac_outfile=conftest.$ac_objext
19458 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19459 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19460 _lt_linker_boilerplate=`cat conftest.err`
19461 $rm -r conftest*
19464 # Allow CC to be a program name with arguments.
19465 lt_save_CC="$CC"
19466 CC=${RC-"windres"}
19467 compiler=$CC
19468 compiler_RC=$CC
19469 for cc_temp in $compiler""; do
19470 case $cc_temp in
19471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19473 \-*) ;;
19474 *) break;;
19475 esac
19476 done
19477 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19479 lt_cv_prog_compiler_c_o_RC=yes
19481 # The else clause should only fire when bootstrapping the
19482 # libtool distribution, otherwise you forgot to ship ltmain.sh
19483 # with your package, and you will get complaints that there are
19484 # no rules to generate ltmain.sh.
19485 if test -f "$ltmain"; then
19486 # See if we are running on zsh, and set the options which allow our commands through
19487 # without removal of \ escapes.
19488 if test -n "${ZSH_VERSION+set}" ; then
19489 setopt NO_GLOB_SUBST
19491 # Now quote all the things that may contain metacharacters while being
19492 # careful not to overquote the AC_SUBSTed values. We take copies of the
19493 # variables and quote the copies for generation of the libtool script.
19494 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19495 SED SHELL STRIP \
19496 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19497 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19498 deplibs_check_method reload_flag reload_cmds need_locks \
19499 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19500 lt_cv_sys_global_symbol_to_c_name_address \
19501 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19502 old_postinstall_cmds old_postuninstall_cmds \
19503 compiler_RC \
19504 CC_RC \
19505 LD_RC \
19506 lt_prog_compiler_wl_RC \
19507 lt_prog_compiler_pic_RC \
19508 lt_prog_compiler_static_RC \
19509 lt_prog_compiler_no_builtin_flag_RC \
19510 export_dynamic_flag_spec_RC \
19511 thread_safe_flag_spec_RC \
19512 whole_archive_flag_spec_RC \
19513 enable_shared_with_static_runtimes_RC \
19514 old_archive_cmds_RC \
19515 old_archive_from_new_cmds_RC \
19516 predep_objects_RC \
19517 postdep_objects_RC \
19518 predeps_RC \
19519 postdeps_RC \
19520 compiler_lib_search_path_RC \
19521 compiler_lib_search_dirs_RC \
19522 archive_cmds_RC \
19523 archive_expsym_cmds_RC \
19524 postinstall_cmds_RC \
19525 postuninstall_cmds_RC \
19526 old_archive_from_expsyms_cmds_RC \
19527 allow_undefined_flag_RC \
19528 no_undefined_flag_RC \
19529 export_symbols_cmds_RC \
19530 hardcode_libdir_flag_spec_RC \
19531 hardcode_libdir_flag_spec_ld_RC \
19532 hardcode_libdir_separator_RC \
19533 hardcode_automatic_RC \
19534 module_cmds_RC \
19535 module_expsym_cmds_RC \
19536 lt_cv_prog_compiler_c_o_RC \
19537 fix_srcfile_path_RC \
19538 exclude_expsyms_RC \
19539 include_expsyms_RC; do
19541 case $var in
19542 old_archive_cmds_RC | \
19543 old_archive_from_new_cmds_RC | \
19544 archive_cmds_RC | \
19545 archive_expsym_cmds_RC | \
19546 module_cmds_RC | \
19547 module_expsym_cmds_RC | \
19548 old_archive_from_expsyms_cmds_RC | \
19549 export_symbols_cmds_RC | \
19550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19551 postinstall_cmds | postuninstall_cmds | \
19552 old_postinstall_cmds | old_postuninstall_cmds | \
19553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19554 # Double-quote double-evaled strings.
19555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19560 esac
19561 done
19563 case $lt_echo in
19564 *'\$0 --fallback-echo"')
19565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19567 esac
19569 cfgfile="$ofile"
19571 cat <<__EOF__ >> "$cfgfile"
19572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19576 # Shell to use when invoking shell scripts.
19577 SHELL=$lt_SHELL
19579 # Whether or not to build shared libraries.
19580 build_libtool_libs=$enable_shared
19582 # Whether or not to build static libraries.
19583 build_old_libs=$enable_static
19585 # Whether or not to add -lc for building shared libraries.
19586 build_libtool_need_lc=$archive_cmds_need_lc_RC
19588 # Whether or not to disallow shared libs when runtime libs are static
19589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19591 # Whether or not to optimize for fast installation.
19592 fast_install=$enable_fast_install
19594 # The host system.
19595 host_alias=$host_alias
19596 host=$host
19597 host_os=$host_os
19599 # The build system.
19600 build_alias=$build_alias
19601 build=$build
19602 build_os=$build_os
19604 # An echo program that does not interpret backslashes.
19605 echo=$lt_echo
19607 # The archiver.
19608 AR=$lt_AR
19609 AR_FLAGS=$lt_AR_FLAGS
19611 # A C compiler.
19612 LTCC=$lt_LTCC
19614 # LTCC compiler flags.
19615 LTCFLAGS=$lt_LTCFLAGS
19617 # A language-specific compiler.
19618 CC=$lt_compiler_RC
19620 # Is the compiler the GNU C compiler?
19621 with_gcc=$GCC_RC
19623 # An ERE matcher.
19624 EGREP=$lt_EGREP
19626 # The linker used to build libraries.
19627 LD=$lt_LD_RC
19629 # Whether we need hard or soft links.
19630 LN_S=$lt_LN_S
19632 # A BSD-compatible nm program.
19633 NM=$lt_NM
19635 # A symbol stripping program
19636 STRIP=$lt_STRIP
19638 # Used to examine libraries when file_magic_cmd begins "file"
19639 MAGIC_CMD=$MAGIC_CMD
19641 # Used on cygwin: DLL creation program.
19642 DLLTOOL="$DLLTOOL"
19644 # Used on cygwin: object dumper.
19645 OBJDUMP="$OBJDUMP"
19647 # Used on cygwin: assembler.
19648 AS="$AS"
19650 # The name of the directory that contains temporary libtool files.
19651 objdir=$objdir
19653 # How to create reloadable object files.
19654 reload_flag=$lt_reload_flag
19655 reload_cmds=$lt_reload_cmds
19657 # How to pass a linker flag through the compiler.
19658 wl=$lt_lt_prog_compiler_wl_RC
19660 # Object file suffix (normally "o").
19661 objext="$ac_objext"
19663 # Old archive suffix (normally "a").
19664 libext="$libext"
19666 # Shared library suffix (normally ".so").
19667 shrext_cmds='$shrext_cmds'
19669 # Executable file suffix (normally "").
19670 exeext="$exeext"
19672 # Additional compiler flags for building library objects.
19673 pic_flag=$lt_lt_prog_compiler_pic_RC
19674 pic_mode=$pic_mode
19676 # What is the maximum length of a command?
19677 max_cmd_len=$lt_cv_sys_max_cmd_len
19679 # Does compiler simultaneously support -c and -o options?
19680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19682 # Must we lock files when doing compilation?
19683 need_locks=$lt_need_locks
19685 # Do we need the lib prefix for modules?
19686 need_lib_prefix=$need_lib_prefix
19688 # Do we need a version for libraries?
19689 need_version=$need_version
19691 # Whether dlopen is supported.
19692 dlopen_support=$enable_dlopen
19694 # Whether dlopen of programs is supported.
19695 dlopen_self=$enable_dlopen_self
19697 # Whether dlopen of statically linked programs is supported.
19698 dlopen_self_static=$enable_dlopen_self_static
19700 # Compiler flag to prevent dynamic linking.
19701 link_static_flag=$lt_lt_prog_compiler_static_RC
19703 # Compiler flag to turn off builtin functions.
19704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19706 # Compiler flag to allow reflexive dlopens.
19707 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19709 # Compiler flag to generate shared objects directly from archives.
19710 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19712 # Compiler flag to generate thread-safe objects.
19713 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19715 # Library versioning type.
19716 version_type=$version_type
19718 # Format of library name prefix.
19719 libname_spec=$lt_libname_spec
19721 # List of archive names. First name is the real one, the rest are links.
19722 # The last name is the one that the linker finds with -lNAME.
19723 library_names_spec=$lt_library_names_spec
19725 # The coded name of the library, if different from the real name.
19726 soname_spec=$lt_soname_spec
19728 # Commands used to build and install an old-style archive.
19729 RANLIB=$lt_RANLIB
19730 old_archive_cmds=$lt_old_archive_cmds_RC
19731 old_postinstall_cmds=$lt_old_postinstall_cmds
19732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19734 # Create an old-style archive from a shared archive.
19735 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19737 # Create a temporary old-style archive to link instead of a shared archive.
19738 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19740 # Commands used to build and install a shared archive.
19741 archive_cmds=$lt_archive_cmds_RC
19742 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19743 postinstall_cmds=$lt_postinstall_cmds
19744 postuninstall_cmds=$lt_postuninstall_cmds
19746 # Commands used to build a loadable module (assumed same as above if empty)
19747 module_cmds=$lt_module_cmds_RC
19748 module_expsym_cmds=$lt_module_expsym_cmds_RC
19750 # Commands to strip libraries.
19751 old_striplib=$lt_old_striplib
19752 striplib=$lt_striplib
19754 # Dependencies to place before the objects being linked to create a
19755 # shared library.
19756 predep_objects=$lt_predep_objects_RC
19758 # Dependencies to place after the objects being linked to create a
19759 # shared library.
19760 postdep_objects=$lt_postdep_objects_RC
19762 # Dependencies to place before the objects being linked to create a
19763 # shared library.
19764 predeps=$lt_predeps_RC
19766 # Dependencies to place after the objects being linked to create a
19767 # shared library.
19768 postdeps=$lt_postdeps_RC
19770 # The directories searched by this compiler when creating a shared
19771 # library
19772 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19774 # The library search path used internally by the compiler when linking
19775 # a shared library.
19776 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19778 # Method to check whether dependent libraries are shared objects.
19779 deplibs_check_method=$lt_deplibs_check_method
19781 # Command to use when deplibs_check_method == file_magic.
19782 file_magic_cmd=$lt_file_magic_cmd
19784 # Flag that allows shared libraries with undefined symbols to be built.
19785 allow_undefined_flag=$lt_allow_undefined_flag_RC
19787 # Flag that forces no undefined symbols.
19788 no_undefined_flag=$lt_no_undefined_flag_RC
19790 # Commands used to finish a libtool library installation in a directory.
19791 finish_cmds=$lt_finish_cmds
19793 # Same as above, but a single script fragment to be evaled but not shown.
19794 finish_eval=$lt_finish_eval
19796 # Take the output of nm and produce a listing of raw symbols and C names.
19797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19799 # Transform the output of nm in a proper C declaration
19800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19802 # Transform the output of nm in a C name address pair
19803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19805 # This is the shared library runtime path variable.
19806 runpath_var=$runpath_var
19808 # This is the shared library path variable.
19809 shlibpath_var=$shlibpath_var
19811 # Is shlibpath searched before the hard-coded library search path?
19812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19814 # How to hardcode a shared library path into an executable.
19815 hardcode_action=$hardcode_action_RC
19817 # Whether we should hardcode library paths into libraries.
19818 hardcode_into_libs=$hardcode_into_libs
19820 # Flag to hardcode \$libdir into a binary during linking.
19821 # This must work even if \$libdir does not exist.
19822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19824 # If ld is used when linking, flag to hardcode \$libdir into
19825 # a binary during linking. This must work even if \$libdir does
19826 # not exist.
19827 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19829 # Whether we need a single -rpath flag with a separated argument.
19830 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19832 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19833 # resulting binary.
19834 hardcode_direct=$hardcode_direct_RC
19836 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19837 # resulting binary.
19838 hardcode_minus_L=$hardcode_minus_L_RC
19840 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19841 # the resulting binary.
19842 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19844 # Set to yes if building a shared library automatically hardcodes DIR into the library
19845 # and all subsequent libraries and executables linked against it.
19846 hardcode_automatic=$hardcode_automatic_RC
19848 # Variables whose values should be saved in libtool wrapper scripts and
19849 # restored at relink time.
19850 variables_saved_for_relink="$variables_saved_for_relink"
19852 # Whether libtool must link a program against all its dependency libraries.
19853 link_all_deplibs=$link_all_deplibs_RC
19855 # Compile-time system search path for libraries
19856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19858 # Run-time system search path for libraries
19859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19861 # Fix the shell variable \$srcfile for the compiler.
19862 fix_srcfile_path=$lt_fix_srcfile_path
19864 # Set to yes if exported symbols are required.
19865 always_export_symbols=$always_export_symbols_RC
19867 # The commands to list exported symbols.
19868 export_symbols_cmds=$lt_export_symbols_cmds_RC
19870 # The commands to extract the exported symbol list from a shared archive.
19871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19873 # Symbols that should not be listed in the preloaded symbols.
19874 exclude_expsyms=$lt_exclude_expsyms_RC
19876 # Symbols that must always be exported.
19877 include_expsyms=$lt_include_expsyms_RC
19879 # ### END LIBTOOL TAG CONFIG: $tagname
19881 __EOF__
19884 else
19885 # If there is no Makefile yet, we rely on a make rule to execute
19886 # `config.status --recheck' to rerun these tests and create the
19887 # libtool script then.
19888 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19889 if test -f "$ltmain_in"; then
19890 test -f Makefile && make "$ltmain"
19895 ac_ext=c
19896 ac_cpp='$CPP $CPPFLAGS'
19897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19901 CC="$lt_save_CC"
19906 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19907 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19908 { (exit 1); exit 1; }; }
19910 esac
19912 # Append the new tag name to the list of available tags.
19913 if test -n "$tagname" ; then
19914 available_tags="$available_tags $tagname"
19917 done
19918 IFS="$lt_save_ifs"
19920 # Now substitute the updated list of available tags.
19921 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19922 mv "${ofile}T" "$ofile"
19923 chmod +x "$ofile"
19924 else
19925 rm -f "${ofile}T"
19926 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19927 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19928 { (exit 1); exit 1; }; }
19934 # This can be used to rebuild libtool when needed
19935 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19937 # Always use our own libtool.
19938 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19940 # Prevent multiple expansion
19963 # Find a good install program. We prefer a C program (faster),
19964 # so one script is as good as another. But avoid the broken or
19965 # incompatible versions:
19966 # SysV /etc/install, /usr/sbin/install
19967 # SunOS /usr/etc/install
19968 # IRIX /sbin/install
19969 # AIX /bin/install
19970 # AmigaOS /C/install, which installs bootblocks on floppy discs
19971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19974 # OS/2's system install, which has a completely different semantic
19975 # ./install, which can be erroneously created by make from ./install.sh.
19976 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19977 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19978 if test -z "$INSTALL"; then
19979 if test "${ac_cv_path_install+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19983 for as_dir in $PATH
19985 IFS=$as_save_IFS
19986 test -z "$as_dir" && as_dir=.
19987 # Account for people who put trailing slashes in PATH elements.
19988 case $as_dir/ in
19989 ./ | .// | /cC/* | \
19990 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19991 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19992 /usr/ucb/* ) ;;
19994 # OSF1 and SCO ODT 3.0 have their own names for install.
19995 # Don't use installbsd from OSF since it installs stuff as root
19996 # by default.
19997 for ac_prog in ginstall scoinst install; do
19998 for ac_exec_ext in '' $ac_executable_extensions; do
19999 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20000 if test $ac_prog = install &&
20001 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20002 # AIX install. It has an incompatible calling convention.
20004 elif test $ac_prog = install &&
20005 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20006 # program-specific install script used by HP pwplus--don't use.
20008 else
20009 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20010 break 3
20013 done
20014 done
20016 esac
20017 done
20018 IFS=$as_save_IFS
20022 if test "${ac_cv_path_install+set}" = set; then
20023 INSTALL=$ac_cv_path_install
20024 else
20025 # As a last resort, use the slow shell script. Don't cache a
20026 # value for INSTALL within a source directory, because that will
20027 # break other packages using the cache if that directory is
20028 # removed, or if the value is a relative name.
20029 INSTALL=$ac_install_sh
20032 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20033 echo "${ECHO_T}$INSTALL" >&6; }
20035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20036 # It thinks the first close brace ends the variable substitution.
20037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20039 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20041 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20045 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20046 if test -n "$ac_tool_prefix"; then
20047 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20048 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20051 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054 case $PKG_CONFIG in
20055 [\\/]* | ?:[\\/]*)
20056 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060 for as_dir in $PATH
20062 IFS=$as_save_IFS
20063 test -z "$as_dir" && as_dir=.
20064 for ac_exec_ext in '' $ac_executable_extensions; do
20065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20066 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20068 break 2
20070 done
20071 done
20072 IFS=$as_save_IFS
20075 esac
20077 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20078 if test -n "$PKG_CONFIG"; then
20079 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20080 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20081 else
20082 { echo "$as_me:$LINENO: result: no" >&5
20083 echo "${ECHO_T}no" >&6; }
20088 if test -z "$ac_cv_path_PKG_CONFIG"; then
20089 ac_pt_PKG_CONFIG=$PKG_CONFIG
20090 # Extract the first word of "pkg-config", so it can be a program name with args.
20091 set dummy pkg-config; ac_word=$2
20092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20094 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097 case $ac_pt_PKG_CONFIG in
20098 [\\/]* | ?:[\\/]*)
20099 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20103 for as_dir in $PATH
20105 IFS=$as_save_IFS
20106 test -z "$as_dir" && as_dir=.
20107 for ac_exec_ext in '' $ac_executable_extensions; do
20108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20109 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20111 break 2
20113 done
20114 done
20115 IFS=$as_save_IFS
20118 esac
20120 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20121 if test -n "$ac_pt_PKG_CONFIG"; then
20122 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20123 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20124 else
20125 { echo "$as_me:$LINENO: result: no" >&5
20126 echo "${ECHO_T}no" >&6; }
20129 if test "x$ac_pt_PKG_CONFIG" = x; then
20130 PKG_CONFIG=""
20131 else
20132 case $cross_compiling:$ac_tool_warned in
20133 yes:)
20134 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20135 whose name does not start with the host triplet. If you think this
20136 configuration is useful to you, please write to autoconf@gnu.org." >&5
20137 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20138 whose name does not start with the host triplet. If you think this
20139 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20140 ac_tool_warned=yes ;;
20141 esac
20142 PKG_CONFIG=$ac_pt_PKG_CONFIG
20144 else
20145 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20149 if test -n "$PKG_CONFIG"; then
20150 _pkg_min_version=0.9.0
20151 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20152 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20153 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20154 { echo "$as_me:$LINENO: result: yes" >&5
20155 echo "${ECHO_T}yes" >&6; }
20156 else
20157 { echo "$as_me:$LINENO: result: no" >&5
20158 echo "${ECHO_T}no" >&6; }
20159 PKG_CONFIG=""
20164 # Extract the first word of "mv", so it can be a program name with args.
20165 set dummy mv; ac_word=$2
20166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20168 if test "${ac_cv_path_MV+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171 case $MV in
20172 [\\/]* | ?:[\\/]*)
20173 ac_cv_path_MV="$MV" # Let the user override the test with a path.
20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20179 IFS=$as_save_IFS
20180 test -z "$as_dir" && as_dir=.
20181 for ac_exec_ext in '' $ac_executable_extensions; do
20182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20183 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
20184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20185 break 2
20187 done
20188 done
20189 IFS=$as_save_IFS
20192 esac
20194 MV=$ac_cv_path_MV
20195 if test -n "$MV"; then
20196 { echo "$as_me:$LINENO: result: $MV" >&5
20197 echo "${ECHO_T}$MV" >&6; }
20198 else
20199 { echo "$as_me:$LINENO: result: no" >&5
20200 echo "${ECHO_T}no" >&6; }
20204 # Extract the first word of "rm", so it can be a program name with args.
20205 set dummy rm; ac_word=$2
20206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20208 if test "${ac_cv_path_RM+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211 case $RM in
20212 [\\/]* | ?:[\\/]*)
20213 ac_cv_path_RM="$RM" # Let the user override the test with a path.
20216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217 for as_dir in $PATH
20219 IFS=$as_save_IFS
20220 test -z "$as_dir" && as_dir=.
20221 for ac_exec_ext in '' $ac_executable_extensions; do
20222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20223 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
20224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20225 break 2
20227 done
20228 done
20229 IFS=$as_save_IFS
20232 esac
20234 RM=$ac_cv_path_RM
20235 if test -n "$RM"; then
20236 { echo "$as_me:$LINENO: result: $RM" >&5
20237 echo "${ECHO_T}$RM" >&6; }
20238 else
20239 { echo "$as_me:$LINENO: result: no" >&5
20240 echo "${ECHO_T}no" >&6; }
20244 # Extract the first word of "sed", so it can be a program name with args.
20245 set dummy sed; ac_word=$2
20246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20248 if test "${ac_cv_path_SED+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251 case $SED in
20252 [\\/]* | ?:[\\/]*)
20253 ac_cv_path_SED="$SED" # Let the user override the test with a path.
20256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20257 for as_dir in $PATH
20259 IFS=$as_save_IFS
20260 test -z "$as_dir" && as_dir=.
20261 for ac_exec_ext in '' $ac_executable_extensions; do
20262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20263 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
20264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20265 break 2
20267 done
20268 done
20269 IFS=$as_save_IFS
20272 esac
20274 SED=$ac_cv_path_SED
20275 if test -n "$SED"; then
20276 { echo "$as_me:$LINENO: result: $SED" >&5
20277 echo "${ECHO_T}$SED" >&6; }
20278 else
20279 { echo "$as_me:$LINENO: result: no" >&5
20280 echo "${ECHO_T}no" >&6; }
20285 # Extract the first word of "ldconfig", so it can be a program name with args.
20286 set dummy ldconfig; ac_word=$2
20287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20289 if test "${ac_cv_path_LDCONFIG+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292 case $LDCONFIG in
20293 [\\/]* | ?:[\\/]*)
20294 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
20297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20298 for as_dir in /sbin /usr/sbin $PATH
20300 IFS=$as_save_IFS
20301 test -z "$as_dir" && as_dir=.
20302 for ac_exec_ext in '' $ac_executable_extensions; do
20303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20304 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
20305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20306 break 2
20308 done
20309 done
20310 IFS=$as_save_IFS
20312 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
20314 esac
20316 LDCONFIG=$ac_cv_path_LDCONFIG
20317 if test -n "$LDCONFIG"; then
20318 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
20319 echo "${ECHO_T}$LDCONFIG" >&6; }
20320 else
20321 { echo "$as_me:$LINENO: result: no" >&5
20322 echo "${ECHO_T}no" >&6; }
20327 # Environment
20328 { echo "$as_me:$LINENO: checking Windows OS" >&5
20329 echo $ECHO_N "checking Windows OS... $ECHO_C" >&6; }
20330 case "${target}" in
20331 *-mingw32*|*-winnt*|*-cygwin*)
20332 { echo "$as_me:$LINENO: result: yes" >&5
20333 echo "${ECHO_T}yes" >&6; }
20334 WINDOWS="yes"
20336 cat >>confdefs.h <<\_ACEOF
20337 #define WINDOWS 1
20338 _ACEOF
20342 { echo "$as_me:$LINENO: result: no" >&5
20343 echo "${ECHO_T}no" >&6; }
20344 WINDOWS="no"
20346 esac
20348 { echo "$as_me:$LINENO: checking fuse compatibility" >&5
20349 echo $ECHO_N "checking fuse compatibility... $ECHO_C" >&6; }
20350 case "${target_os}" in
20351 linux*)
20353 # Check whether --with-fuse was given.
20354 if test "${with_fuse+set}" = set; then
20355 withval=$with_fuse;
20356 else
20357 with_fuse="internal"
20362 darwin*|netbsd*|solaris*)
20363 with_fuse="external"
20365 freebsd*)
20366 { { echo "$as_me:$LINENO: error: Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" >&5
20367 echo "$as_me: error: Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" >&2;}
20368 { (exit 1); exit 1; }; }
20371 { { echo "$as_me:$LINENO: error: ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." >&5
20372 echo "$as_me: error: ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." >&2;}
20373 { (exit 1); exit 1; }; }
20375 esac
20376 { echo "$as_me:$LINENO: result: ${with_fuse}" >&5
20377 echo "${ECHO_T}${with_fuse}" >&6; }
20379 case "${target_os}" in
20380 solaris*)
20381 if test "x$GCC" != "xyes" ; then
20382 { { 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
20383 echo "$as_me: error: ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" >&2;}
20384 { (exit 1); exit 1; }; }
20387 esac
20389 if test "${enable_ldscript}" = "yes"; then
20390 { echo "$as_me:$LINENO: checking Output format" >&5
20391 echo $ECHO_N "checking Output format... $ECHO_C" >&6; }
20392 OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')"
20393 if test -z "${OUTPUT_FORMAT}"; then
20394 { echo "$as_me:$LINENO: result: None" >&5
20395 echo "${ECHO_T}None" >&6; }
20396 else
20397 { echo "$as_me:$LINENO: result: ${OUTPUT_FORMAT}" >&5
20398 echo "${ECHO_T}${OUTPUT_FORMAT}" >&6; }
20399 OUTPUT_FORMAT="OUTPUT_FORMAT ( ${OUTPUT_FORMAT} )"
20403 # Libraries
20404 if test "${with_fuse}" = "internal"; then
20405 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20406 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20407 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410 ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lpthread $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h. */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20419 /* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20422 #ifdef __cplusplus
20423 extern "C"
20424 #endif
20425 char pthread_create ();
20427 main ()
20429 return pthread_create ();
20431 return 0;
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_link") 2>conftest.er1
20442 ac_status=$?
20443 grep -v '^ *+' conftest.er1 >conftest.err
20444 rm -f conftest.er1
20445 cat conftest.err >&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } && {
20448 test -z "$ac_c_werror_flag" ||
20449 test ! -s conftest.err
20450 } && test -s conftest$ac_exeext &&
20451 $as_test_x conftest$ac_exeext; then
20452 ac_cv_lib_pthread_pthread_create=yes
20453 else
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_cv_lib_pthread_pthread_create=no
20460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20461 conftest$ac_exeext conftest.$ac_ext
20462 LIBS=$ac_check_lib_save_LIBS
20464 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20465 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20466 if test $ac_cv_lib_pthread_pthread_create = yes; then
20467 LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread"
20468 else
20469 { { echo "$as_me:$LINENO: error: Cannot find pthread library" >&5
20470 echo "$as_me: error: Cannot find pthread library" >&2;}
20471 { (exit 1); exit 1; }; }
20476 cat >>confdefs.h <<\_ACEOF
20477 #define _REENTRANT 1
20478 _ACEOF
20480 # required so that we re-compile anything
20482 cat >>confdefs.h <<\_ACEOF
20483 #define FUSE_INTERNAL 1
20484 _ACEOF
20486 else
20487 if test -z "$PKG_CONFIG"; then
20488 # Extract the first word of "pkg-config", so it can be a program name with args.
20489 set dummy pkg-config; ac_word=$2
20490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20492 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495 case $PKG_CONFIG in
20496 [\\/]* | ?:[\\/]*)
20497 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20501 for as_dir in $PATH
20503 IFS=$as_save_IFS
20504 test -z "$as_dir" && as_dir=.
20505 for ac_exec_ext in '' $ac_executable_extensions; do
20506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20507 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20509 break 2
20511 done
20512 done
20513 IFS=$as_save_IFS
20515 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20517 esac
20519 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20520 if test -n "$PKG_CONFIG"; then
20521 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20522 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20523 else
20524 { echo "$as_me:$LINENO: result: no" >&5
20525 echo "${ECHO_T}no" >&6; }
20530 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
20531 echo "$as_me: error: pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" >&2;}
20532 { (exit 1); exit 1; }; }
20533 # Libraries often install their metadata .pc files in directories
20534 # not searched by pkg-config. Let's workaround this.
20535 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
20537 pkg_failed=no
20538 { echo "$as_me:$LINENO: checking for FUSE_MODULE" >&5
20539 echo $ECHO_N "checking for FUSE_MODULE... $ECHO_C" >&6; }
20541 if test -n "$FUSE_MODULE_CFLAGS"; then
20542 pkg_cv_FUSE_MODULE_CFLAGS="$FUSE_MODULE_CFLAGS"
20543 elif test -n "$PKG_CONFIG"; then
20544 if test -n "$PKG_CONFIG" && \
20545 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\"") >&5
20546 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; then
20550 pkg_cv_FUSE_MODULE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6.0" 2>/dev/null`
20551 else
20552 pkg_failed=yes
20554 else
20555 pkg_failed=untried
20557 if test -n "$FUSE_MODULE_LIBS"; then
20558 pkg_cv_FUSE_MODULE_LIBS="$FUSE_MODULE_LIBS"
20559 elif test -n "$PKG_CONFIG"; then
20560 if test -n "$PKG_CONFIG" && \
20561 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\"") >&5
20562 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; then
20566 pkg_cv_FUSE_MODULE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6.0" 2>/dev/null`
20567 else
20568 pkg_failed=yes
20570 else
20571 pkg_failed=untried
20576 if test $pkg_failed = yes; then
20578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20579 _pkg_short_errors_supported=yes
20580 else
20581 _pkg_short_errors_supported=no
20583 if test $_pkg_short_errors_supported = yes; then
20584 FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fuse >= 2.6.0" 2>&1`
20585 else
20586 FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fuse >= 2.6.0" 2>&1`
20588 # Put the nasty error message in config.log where it belongs
20589 echo "$FUSE_MODULE_PKG_ERRORS" >&5
20591 { echo "$as_me:$LINENO: result: no" >&5
20592 echo "${ECHO_T}no" >&6; }
20594 { { 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
20595 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;}
20596 { (exit 1); exit 1; }; }
20599 elif test $pkg_failed = untried; then
20601 { { 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
20602 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;}
20603 { (exit 1); exit 1; }; }
20606 else
20607 FUSE_MODULE_CFLAGS=$pkg_cv_FUSE_MODULE_CFLAGS
20608 FUSE_MODULE_LIBS=$pkg_cv_FUSE_MODULE_LIBS
20609 { echo "$as_me:$LINENO: result: yes" >&5
20610 echo "${ECHO_T}yes" >&6; }
20613 FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,//*,/,g' -e 's, *$,,'`
20616 # Autodetect whether we can build crypto stuff or not.
20617 compile_crypto=false
20618 if test "$enable_crypto" != "no"; then
20619 have_libgcrypt=false
20621 # Check whether --with-libgcrypt-prefix was given.
20622 if test "${with_libgcrypt_prefix+set}" = set; then
20623 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
20624 else
20625 libgcrypt_config_prefix=""
20628 if test x$libgcrypt_config_prefix != x ; then
20629 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
20630 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
20634 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
20635 set dummy libgcrypt-config; ac_word=$2
20636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20638 if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641 case $LIBGCRYPT_CONFIG in
20642 [\\/]* | ?:[\\/]*)
20643 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
20646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20647 for as_dir in $PATH
20649 IFS=$as_save_IFS
20650 test -z "$as_dir" && as_dir=.
20651 for ac_exec_ext in '' $ac_executable_extensions; do
20652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20653 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20655 break 2
20657 done
20658 done
20659 IFS=$as_save_IFS
20661 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
20663 esac
20665 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
20666 if test -n "$LIBGCRYPT_CONFIG"; then
20667 { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
20668 echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
20669 else
20670 { echo "$as_me:$LINENO: result: no" >&5
20671 echo "${ECHO_T}no" >&6; }
20675 tmp=1.2.2
20676 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
20677 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
20678 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
20679 else
20680 req_libgcrypt_api=0
20681 min_libgcrypt_version="$tmp"
20684 { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
20685 echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
20686 ok=no
20687 if test "$LIBGCRYPT_CONFIG" != "no" ; then
20688 req_major=`echo $min_libgcrypt_version | \
20689 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
20690 req_minor=`echo $min_libgcrypt_version | \
20691 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
20692 req_micro=`echo $min_libgcrypt_version | \
20693 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
20694 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
20695 major=`echo $libgcrypt_config_version | \
20696 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
20697 minor=`echo $libgcrypt_config_version | \
20698 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
20699 micro=`echo $libgcrypt_config_version | \
20700 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
20701 if test "$major" -gt "$req_major"; then
20702 ok=yes
20703 else
20704 if test "$major" -eq "$req_major"; then
20705 if test "$minor" -gt "$req_minor"; then
20706 ok=yes
20707 else
20708 if test "$minor" -eq "$req_minor"; then
20709 if test "$micro" -ge "$req_micro"; then
20710 ok=yes
20717 if test $ok = yes; then
20718 { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
20719 echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
20720 else
20721 { echo "$as_me:$LINENO: result: no" >&5
20722 echo "${ECHO_T}no" >&6; }
20724 if test $ok = yes; then
20725 # If we have a recent libgcrypt, we should also check that the
20726 # API is compatible
20727 if test "$req_libgcrypt_api" -gt 0 ; then
20728 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
20729 if test "$tmp" -gt 0 ; then
20730 { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
20731 echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
20732 if test "$req_libgcrypt_api" -eq "$tmp" ; then
20733 { echo "$as_me:$LINENO: result: okay" >&5
20734 echo "${ECHO_T}okay" >&6; }
20735 else
20736 ok=no
20737 { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
20738 echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
20743 if test $ok = yes; then
20744 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
20745 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
20746 have_libgcrypt=true
20747 else
20748 LIBGCRYPT_CFLAGS=""
20749 LIBGCRYPT_LIBS=""
20751 if test "$enable_crypto" = "yes"; then
20752 { { echo "$as_me:$LINENO: error: ntfsprogs crypto code requires the gcrypt library." >&5
20753 echo "$as_me: error: ntfsprogs crypto code requires the gcrypt library." >&2;}
20754 { (exit 1); exit 1; }; }
20755 else
20756 { echo "$as_me:$LINENO: WARNING: ntfsprogs crypto code requires the gcrypt library." >&5
20757 echo "$as_me: WARNING: ntfsprogs crypto code requires the gcrypt library." >&2;}
20764 have_libgnutls=false
20766 pkg_failed=no
20767 { echo "$as_me:$LINENO: checking for GNUTLS" >&5
20768 echo $ECHO_N "checking for GNUTLS... $ECHO_C" >&6; }
20770 if test -n "$GNUTLS_CFLAGS"; then
20771 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
20772 elif test -n "$PKG_CONFIG"; then
20773 if test -n "$PKG_CONFIG" && \
20774 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.4\"") >&5
20775 ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.4") 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; then
20779 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.4.4" 2>/dev/null`
20780 else
20781 pkg_failed=yes
20783 else
20784 pkg_failed=untried
20786 if test -n "$GNUTLS_LIBS"; then
20787 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
20788 elif test -n "$PKG_CONFIG"; then
20789 if test -n "$PKG_CONFIG" && \
20790 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.4\"") >&5
20791 ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.4") 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; then
20795 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.4.4" 2>/dev/null`
20796 else
20797 pkg_failed=yes
20799 else
20800 pkg_failed=untried
20805 if test $pkg_failed = yes; then
20807 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20808 _pkg_short_errors_supported=yes
20809 else
20810 _pkg_short_errors_supported=no
20812 if test $_pkg_short_errors_supported = yes; then
20813 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.4.4" 2>&1`
20814 else
20815 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.4.4" 2>&1`
20817 # Put the nasty error message in config.log where it belongs
20818 echo "$GNUTLS_PKG_ERRORS" >&5
20820 { echo "$as_me:$LINENO: result: no" >&5
20821 echo "${ECHO_T}no" >&6; }
20822 if test "$enable_crypto" = "yes"; then
20823 { { echo "$as_me:$LINENO: error: ntfsprogs crypto code requires the gnutls library." >&5
20824 echo "$as_me: error: ntfsprogs crypto code requires the gnutls library." >&2;}
20825 { (exit 1); exit 1; }; }
20826 else
20827 { echo "$as_me:$LINENO: WARNING: ntfsprogs crypto code requires the gnutls library." >&5
20828 echo "$as_me: WARNING: ntfsprogs crypto code requires the gnutls library." >&2;}
20831 elif test $pkg_failed = untried; then
20832 if test "$enable_crypto" = "yes"; then
20833 { { echo "$as_me:$LINENO: error: ntfsprogs crypto code requires the gnutls library." >&5
20834 echo "$as_me: error: ntfsprogs crypto code requires the gnutls library." >&2;}
20835 { (exit 1); exit 1; }; }
20836 else
20837 { echo "$as_me:$LINENO: WARNING: ntfsprogs crypto code requires the gnutls library." >&5
20838 echo "$as_me: WARNING: ntfsprogs crypto code requires the gnutls library." >&2;}
20841 else
20842 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
20843 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
20844 { echo "$as_me:$LINENO: result: yes" >&5
20845 echo "${ECHO_T}yes" >&6; }
20846 have_libgnutls=true
20848 if test "$have_libgcrypt" = "true"; then
20849 if test "$have_libgnutls" = "true"; then
20850 compile_crypto=true
20852 cat >>confdefs.h <<\_ACEOF
20853 #define ENABLE_CRYPTO 1
20854 _ACEOF
20859 if $compile_crypto; then
20860 ENABLE_CRYPTO_TRUE=
20861 ENABLE_CRYPTO_FALSE='#'
20862 else
20863 ENABLE_CRYPTO_TRUE='#'
20864 ENABLE_CRYPTO_FALSE=
20868 # add --with-extra-includes and --with-extra-libs switch to ./configure
20869 all_libraries="$all_libraries $USER_LDFLAGS"
20870 all_includes="$all_includes $USER_INCLUDES"
20874 # Specify support for generating DCE compliant UUIDs (aka GUIDs). We check if
20875 # uuid/uuid.h header is present and the uuid library is present that goes with
20876 # it and then check if uuid_generate() is present and usable.
20878 # DCE UUIDs are enabled by default and can be disabled with the --disable-uuid
20879 # option to the configure script.
20881 # Check whether --with-uuid was given.
20882 if test "${with_uuid+set}" = set; then
20883 withval=$with_uuid; if test "$with_uuid" = "yes"; then
20884 extrapath=default
20885 elif test "$with_uuid" = "no"; then
20886 extrapath=
20887 else
20888 extrapath=$with_uuid
20890 else
20891 extrapath=default
20895 if test "x$extrapath" != "x"; then
20896 if test "x$extrapath" != "xdefault"; then
20897 MKNTFS_CPPFLAGS="$MKNTFS_CPPFLAGS -I$extrapath/include"
20898 MKNTFS_LIBS="$MKNTFS_LIBS -L$extrapath/lib"
20900 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
20901 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
20902 echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
20903 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
20907 echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
20908 else
20909 # Is the header compilable?
20910 { echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
20911 echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; }
20912 cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h. */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 $ac_includes_default
20919 #include <uuid/uuid.h>
20920 _ACEOF
20921 rm -f conftest.$ac_objext
20922 if { (ac_try="$ac_compile"
20923 case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_compile") 2>conftest.er1
20929 ac_status=$?
20930 grep -v '^ *+' conftest.er1 >conftest.err
20931 rm -f conftest.er1
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } && {
20935 test -z "$ac_c_werror_flag" ||
20936 test ! -s conftest.err
20937 } && test -s conftest.$ac_objext; then
20938 ac_header_compiler=yes
20939 else
20940 echo "$as_me: failed program was:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20943 ac_header_compiler=no
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20948 echo "${ECHO_T}$ac_header_compiler" >&6; }
20950 # Is the header present?
20951 { echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
20952 echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; }
20953 cat >conftest.$ac_ext <<_ACEOF
20954 /* confdefs.h. */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 #include <uuid/uuid.h>
20960 _ACEOF
20961 if { (ac_try="$ac_cpp conftest.$ac_ext"
20962 case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } >/dev/null && {
20974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20975 test ! -s conftest.err
20976 }; then
20977 ac_header_preproc=yes
20978 else
20979 echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 ac_header_preproc=no
20985 rm -f conftest.err conftest.$ac_ext
20986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20987 echo "${ECHO_T}$ac_header_preproc" >&6; }
20989 # So? What about this header?
20990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20991 yes:no: )
20992 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
20993 echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20994 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
20995 echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
20996 ac_header_preproc=yes
20998 no:yes:* )
20999 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
21000 echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
21001 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
21002 echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
21003 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
21004 echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
21005 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
21006 echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
21007 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
21008 echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
21009 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
21010 echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
21011 ( cat <<\_ASBOX
21012 ## ----------------------------------------- ##
21013 ## Report this to ntfs-3g-devel@lists.sf.net ##
21014 ## ----------------------------------------- ##
21015 _ASBOX
21016 ) | sed "s/^/$as_me: WARNING: /" >&2
21018 esac
21019 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
21020 echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
21021 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 else
21024 ac_cv_header_uuid_uuid_h=$ac_header_preproc
21026 { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
21027 echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
21030 if test $ac_cv_header_uuid_uuid_h = yes; then
21031 { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
21032 echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
21033 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 ac_check_lib_save_LIBS=$LIBS
21037 LIBS="-luuid $LIBS"
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21045 /* Override any GCC internal prototype to avoid an error.
21046 Use char because int might match the return type of a GCC
21047 builtin and then its argument prototype would still apply. */
21048 #ifdef __cplusplus
21049 extern "C"
21050 #endif
21051 char uuid_generate ();
21053 main ()
21055 return uuid_generate ();
21057 return 0;
21059 _ACEOF
21060 rm -f conftest.$ac_objext conftest$ac_exeext
21061 if { (ac_try="$ac_link"
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_link") 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_exeext &&
21077 $as_test_x conftest$ac_exeext; then
21078 ac_cv_lib_uuid_uuid_generate=yes
21079 else
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ac_cv_lib_uuid_uuid_generate=no
21086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21087 conftest$ac_exeext conftest.$ac_ext
21088 LIBS=$ac_check_lib_save_LIBS
21090 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
21091 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
21092 if test $ac_cv_lib_uuid_uuid_generate = yes; then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define ENABLE_UUID 1
21096 _ACEOF
21098 MKNTFS_LIBS="$MKNTFS_LIBS -luuid"
21099 else
21100 { echo "$as_me:$LINENO: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&5
21101 echo "$as_me: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&2;}
21104 else
21105 { echo "$as_me:$LINENO: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&5
21106 echo "$as_me: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&2;}
21112 # Checks for header files.
21113 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21114 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21115 if test "${ac_cv_header_stdc+set}" = set; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21117 else
21118 cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h. */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 #include <stdlib.h>
21125 #include <stdarg.h>
21126 #include <string.h>
21127 #include <float.h>
21130 main ()
21134 return 0;
21136 _ACEOF
21137 rm -f conftest.$ac_objext
21138 if { (ac_try="$ac_compile"
21139 case "(($ac_try" in
21140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141 *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144 (eval "$ac_compile") 2>conftest.er1
21145 ac_status=$?
21146 grep -v '^ *+' conftest.er1 >conftest.err
21147 rm -f conftest.er1
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } && {
21151 test -z "$ac_c_werror_flag" ||
21152 test ! -s conftest.err
21153 } && test -s conftest.$ac_objext; then
21154 ac_cv_header_stdc=yes
21155 else
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_cv_header_stdc=no
21162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164 if test $ac_cv_header_stdc = yes; then
21165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h. */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172 #include <string.h>
21174 _ACEOF
21175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21176 $EGREP "memchr" >/dev/null 2>&1; then
21178 else
21179 ac_cv_header_stdc=no
21181 rm -f conftest*
21185 if test $ac_cv_header_stdc = yes; then
21186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21187 cat >conftest.$ac_ext <<_ACEOF
21188 /* confdefs.h. */
21189 _ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 #include <stdlib.h>
21195 _ACEOF
21196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21197 $EGREP "free" >/dev/null 2>&1; then
21199 else
21200 ac_cv_header_stdc=no
21202 rm -f conftest*
21206 if test $ac_cv_header_stdc = yes; then
21207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21208 if test "$cross_compiling" = yes; then
21210 else
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h. */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 #include <ctype.h>
21218 #include <stdlib.h>
21219 #if ((' ' & 0x0FF) == 0x020)
21220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21222 #else
21223 # define ISLOWER(c) \
21224 (('a' <= (c) && (c) <= 'i') \
21225 || ('j' <= (c) && (c) <= 'r') \
21226 || ('s' <= (c) && (c) <= 'z'))
21227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21228 #endif
21230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21232 main ()
21234 int i;
21235 for (i = 0; i < 256; i++)
21236 if (XOR (islower (i), ISLOWER (i))
21237 || toupper (i) != TOUPPER (i))
21238 return 2;
21239 return 0;
21241 _ACEOF
21242 rm -f conftest$ac_exeext
21243 if { (ac_try="$ac_link"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_link") 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21253 { (case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_try") 2>&5
21259 ac_status=$?
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; }; then
21263 else
21264 echo "$as_me: program exited with status $ac_status" >&5
21265 echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 ( exit $ac_status )
21269 ac_cv_header_stdc=no
21271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21277 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21278 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21279 if test $ac_cv_header_stdc = yes; then
21281 cat >>confdefs.h <<\_ACEOF
21282 #define STDC_HEADERS 1
21283 _ACEOF
21328 for ac_header in ctype.h fcntl.h libgen.h libintl.h limits.h locale.h \
21329 mntent.h stddef.h stdint.h stdlib.h stdio.h stdarg.h string.h \
21330 strings.h errno.h time.h unistd.h utime.h wchar.h getopt.h features.h \
21331 endian.h byteswap.h sys/byteorder.h sys/endian.h sys/param.h \
21332 sys/ioctl.h sys/mkdev.h sys/mount.h sys/stat.h sys/types.h sys/vfs.h \
21333 sys/statvfs.h sys/sysmacros.h linux/major.h linux/fd.h linux/hdreg.h \
21334 machine/endian.h windows.h syslog.h pwd.h
21336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 ac_res=`eval echo '${'$as_ac_Header'}'`
21344 { echo "$as_me:$LINENO: result: $ac_res" >&5
21345 echo "${ECHO_T}$ac_res" >&6; }
21346 else
21347 # Is the header compilable?
21348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 #include <$ac_header>
21358 _ACEOF
21359 rm -f conftest.$ac_objext
21360 if { (ac_try="$ac_compile"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_compile") 2>conftest.er1
21367 ac_status=$?
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest.$ac_objext; then
21376 ac_header_compiler=yes
21377 else
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 ac_header_compiler=no
21384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21386 echo "${ECHO_T}$ac_header_compiler" >&6; }
21388 # Is the header present?
21389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21391 cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h. */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 #include <$ac_header>
21398 _ACEOF
21399 if { (ac_try="$ac_cpp conftest.$ac_ext"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21406 ac_status=$?
21407 grep -v '^ *+' conftest.er1 >conftest.err
21408 rm -f conftest.er1
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } >/dev/null && {
21412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 }; then
21415 ac_header_preproc=yes
21416 else
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ac_header_preproc=no
21423 rm -f conftest.err conftest.$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21425 echo "${ECHO_T}$ac_header_preproc" >&6; }
21427 # So? What about this header?
21428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21429 yes:no: )
21430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21434 ac_header_preproc=yes
21436 no:yes:* )
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21449 ( cat <<\_ASBOX
21450 ## ----------------------------------------- ##
21451 ## Report this to ntfs-3g-devel@lists.sf.net ##
21452 ## ----------------------------------------- ##
21453 _ASBOX
21454 ) | sed "s/^/$as_me: WARNING: /" >&2
21456 esac
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462 eval "$as_ac_Header=\$ac_header_preproc"
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465 { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21472 _ACEOF
21476 done
21479 # Checks for typedefs, structures, and compiler characteristics.
21480 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
21481 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
21482 if test "${ac_cv_header_stdbool_h+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485 cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h. */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21492 #include <stdbool.h>
21493 #ifndef bool
21494 "error: bool is not defined"
21495 #endif
21496 #ifndef false
21497 "error: false is not defined"
21498 #endif
21499 #if false
21500 "error: false is not 0"
21501 #endif
21502 #ifndef true
21503 "error: true is not defined"
21504 #endif
21505 #if true != 1
21506 "error: true is not 1"
21507 #endif
21508 #ifndef __bool_true_false_are_defined
21509 "error: __bool_true_false_are_defined is not defined"
21510 #endif
21512 struct s { _Bool s: 1; _Bool t; } s;
21514 char a[true == 1 ? 1 : -1];
21515 char b[false == 0 ? 1 : -1];
21516 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21517 char d[(bool) 0.5 == true ? 1 : -1];
21518 bool e = &s;
21519 char f[(_Bool) 0.0 == false ? 1 : -1];
21520 char g[true];
21521 char h[sizeof (_Bool)];
21522 char i[sizeof s.t];
21523 enum { j = false, k = true, l = false * true, m = true * 256 };
21524 _Bool n[m];
21525 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21526 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21527 # if defined __xlc__ || defined __GNUC__
21528 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
21529 reported by James Lemley on 2005-10-05; see
21530 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
21531 This test is not quite right, since xlc is allowed to
21532 reject this program, as the initializer for xlcbug is
21533 not one of the forms that C requires support for.
21534 However, doing the test right would require a runtime
21535 test, and that would make cross-compilation harder.
21536 Let us hope that IBM fixes the xlc bug, and also adds
21537 support for this kind of constant expression. In the
21538 meantime, this test will reject xlc, which is OK, since
21539 our stdbool.h substitute should suffice. We also test
21540 this with GCC, where it should work, to detect more
21541 quickly whether someone messes up the test in the
21542 future. */
21543 char digs[] = "0123456789";
21544 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
21545 # endif
21546 /* Catch a bug in an HP-UX C compiler. See
21547 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21548 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21550 _Bool q = true;
21551 _Bool *pq = &q;
21554 main ()
21557 *pq |= q;
21558 *pq |= ! q;
21559 /* Refer to every declared value, to avoid compiler optimizations. */
21560 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21561 + !m + !n + !o + !p + !q + !pq);
21564 return 0;
21566 _ACEOF
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_compile") 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest.$ac_objext; then
21584 ac_cv_header_stdbool_h=yes
21585 else
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 ac_cv_header_stdbool_h=no
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21594 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
21595 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
21596 { echo "$as_me:$LINENO: checking for _Bool" >&5
21597 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
21598 if test "${ac_cv_type__Bool+set}" = set; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 else
21601 cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h. */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 $ac_includes_default
21608 typedef _Bool ac__type_new_;
21610 main ()
21612 if ((ac__type_new_ *) 0)
21613 return 0;
21614 if (sizeof (ac__type_new_))
21615 return 0;
21617 return 0;
21619 _ACEOF
21620 rm -f conftest.$ac_objext
21621 if { (ac_try="$ac_compile"
21622 case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21625 esac
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627 (eval "$ac_compile") 2>conftest.er1
21628 ac_status=$?
21629 grep -v '^ *+' conftest.er1 >conftest.err
21630 rm -f conftest.er1
21631 cat conftest.err >&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } && {
21634 test -z "$ac_c_werror_flag" ||
21635 test ! -s conftest.err
21636 } && test -s conftest.$ac_objext; then
21637 ac_cv_type__Bool=yes
21638 else
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 ac_cv_type__Bool=no
21645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
21648 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
21649 if test $ac_cv_type__Bool = yes; then
21651 cat >>confdefs.h <<_ACEOF
21652 #define HAVE__BOOL 1
21653 _ACEOF
21658 if test $ac_cv_header_stdbool_h = yes; then
21660 cat >>confdefs.h <<\_ACEOF
21661 #define HAVE_STDBOOL_H 1
21662 _ACEOF
21666 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21667 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21668 if test "${ac_cv_c_bigendian+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671 # See if sys/param.h defines the BYTE_ORDER macro.
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h. */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 #include <sys/types.h>
21679 #include <sys/param.h>
21682 main ()
21684 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21685 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21686 bogus endian macros
21687 #endif
21690 return 0;
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_compile") 2>conftest.er1
21701 ac_status=$?
21702 grep -v '^ *+' conftest.er1 >conftest.err
21703 rm -f conftest.er1
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest.$ac_objext; then
21710 # It does; now see whether it defined to BIG_ENDIAN or not.
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <sys/types.h>
21718 #include <sys/param.h>
21721 main ()
21723 #if BYTE_ORDER != BIG_ENDIAN
21724 not big endian
21725 #endif
21728 return 0;
21730 _ACEOF
21731 rm -f conftest.$ac_objext
21732 if { (ac_try="$ac_compile"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21736 esac
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_compile") 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest.$ac_objext; then
21748 ac_cv_c_bigendian=yes
21749 else
21750 echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21753 ac_cv_c_bigendian=no
21756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21757 else
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 # It does not; compile a test program.
21762 if test "$cross_compiling" = yes; then
21763 # try to guess the endianness by grepping values into an object file
21764 ac_cv_c_bigendian=unknown
21765 cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h. */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21772 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21773 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21774 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21775 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21776 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21778 main ()
21780 _ascii (); _ebcdic ();
21782 return 0;
21784 _ACEOF
21785 rm -f conftest.$ac_objext
21786 if { (ac_try="$ac_compile"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_compile") 2>conftest.er1
21793 ac_status=$?
21794 grep -v '^ *+' conftest.er1 >conftest.err
21795 rm -f conftest.er1
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } && {
21799 test -z "$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21801 } && test -s conftest.$ac_objext; then
21802 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21803 ac_cv_c_bigendian=yes
21805 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21806 if test "$ac_cv_c_bigendian" = unknown; then
21807 ac_cv_c_bigendian=no
21808 else
21809 # finding both strings is unlikely to happen, but who knows?
21810 ac_cv_c_bigendian=unknown
21813 else
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 else
21822 cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h. */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 $ac_includes_default
21830 main ()
21833 /* Are we little or big endian? From Harbison&Steele. */
21834 union
21836 long int l;
21837 char c[sizeof (long int)];
21838 } u;
21839 u.l = 1;
21840 return u.c[sizeof (long int) - 1] == 1;
21843 return 0;
21845 _ACEOF
21846 rm -f conftest$ac_exeext
21847 if { (ac_try="$ac_link"
21848 case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21851 esac
21852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853 (eval "$ac_link") 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21857 { (case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21860 esac
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862 (eval "$ac_try") 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 ac_cv_c_bigendian=no
21867 else
21868 echo "$as_me: program exited with status $ac_status" >&5
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 ( exit $ac_status )
21873 ac_cv_c_bigendian=yes
21875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21884 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21885 case $ac_cv_c_bigendian in
21886 yes)
21888 cat >>confdefs.h <<\_ACEOF
21889 #define WORDS_BIGENDIAN 1
21890 _ACEOF
21895 cat >>confdefs.h <<\_ACEOF
21896 #define WORDS_LITTLEENDIAN 1
21897 _ACEOF
21902 { { echo "$as_me:$LINENO: error: unknown endianness
21903 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21904 echo "$as_me: error: unknown endianness
21905 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21906 { (exit 1); exit 1; }; } ;;
21907 esac
21909 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21910 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21911 if test "${ac_cv_c_const+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914 cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h. */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21922 main ()
21924 /* FIXME: Include the comments suggested by Paul. */
21925 #ifndef __cplusplus
21926 /* Ultrix mips cc rejects this. */
21927 typedef int charset[2];
21928 const charset cs;
21929 /* SunOS 4.1.1 cc rejects this. */
21930 char const *const *pcpcc;
21931 char **ppc;
21932 /* NEC SVR4.0.2 mips cc rejects this. */
21933 struct point {int x, y;};
21934 static struct point const zero = {0,0};
21935 /* AIX XL C 1.02.0.0 rejects this.
21936 It does not let you subtract one const X* pointer from another in
21937 an arm of an if-expression whose if-part is not a constant
21938 expression */
21939 const char *g = "string";
21940 pcpcc = &g + (g ? g-g : 0);
21941 /* HPUX 7.0 cc rejects these. */
21942 ++pcpcc;
21943 ppc = (char**) pcpcc;
21944 pcpcc = (char const *const *) ppc;
21945 { /* SCO 3.2v4 cc rejects this. */
21946 char *t;
21947 char const *s = 0 ? (char *) 0 : (char const *) 0;
21949 *t++ = 0;
21950 if (s) return 0;
21952 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21953 int x[] = {25, 17};
21954 const int *foo = &x[0];
21955 ++foo;
21957 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21958 typedef const int *iptr;
21959 iptr p = 0;
21960 ++p;
21962 { /* AIX XL C 1.02.0.0 rejects this saying
21963 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21964 struct s { int j; const int *ap[3]; };
21965 struct s *b; b->j = 5;
21967 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21968 const int foo = 10;
21969 if (!foo) return 0;
21971 return !cs[0] && !zero.x;
21972 #endif
21975 return 0;
21977 _ACEOF
21978 rm -f conftest.$ac_objext
21979 if { (ac_try="$ac_compile"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21983 esac
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_compile") 2>conftest.er1
21986 ac_status=$?
21987 grep -v '^ *+' conftest.er1 >conftest.err
21988 rm -f conftest.er1
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } && {
21992 test -z "$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21994 } && test -s conftest.$ac_objext; then
21995 ac_cv_c_const=yes
21996 else
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22000 ac_cv_c_const=no
22003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22006 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22007 if test $ac_cv_c_const = no; then
22009 cat >>confdefs.h <<\_ACEOF
22010 #define const
22011 _ACEOF
22015 { echo "$as_me:$LINENO: checking for inline" >&5
22016 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22017 if test "${ac_cv_c_inline+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020 ac_cv_c_inline=no
22021 for ac_kw in inline __inline__ __inline; do
22022 cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h. */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 #ifndef __cplusplus
22029 typedef int foo_t;
22030 static $ac_kw foo_t static_foo () {return 0; }
22031 $ac_kw foo_t foo () {return 0; }
22032 #endif
22034 _ACEOF
22035 rm -f conftest.$ac_objext
22036 if { (ac_try="$ac_compile"
22037 case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22040 esac
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042 (eval "$ac_compile") 2>conftest.er1
22043 ac_status=$?
22044 grep -v '^ *+' conftest.er1 >conftest.err
22045 rm -f conftest.er1
22046 cat conftest.err >&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } && {
22049 test -z "$ac_c_werror_flag" ||
22050 test ! -s conftest.err
22051 } && test -s conftest.$ac_objext; then
22052 ac_cv_c_inline=$ac_kw
22053 else
22054 echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061 test "$ac_cv_c_inline" != no && break
22062 done
22065 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22066 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22069 case $ac_cv_c_inline in
22070 inline | yes) ;;
22072 case $ac_cv_c_inline in
22073 no) ac_val=;;
22074 *) ac_val=$ac_cv_c_inline;;
22075 esac
22076 cat >>confdefs.h <<_ACEOF
22077 #ifndef __cplusplus
22078 #define inline $ac_val
22079 #endif
22080 _ACEOF
22082 esac
22084 { echo "$as_me:$LINENO: checking for off_t" >&5
22085 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22086 if test "${ac_cv_type_off_t+set}" = set; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 else
22089 cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h. */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 $ac_includes_default
22096 typedef off_t ac__type_new_;
22098 main ()
22100 if ((ac__type_new_ *) 0)
22101 return 0;
22102 if (sizeof (ac__type_new_))
22103 return 0;
22105 return 0;
22107 _ACEOF
22108 rm -f conftest.$ac_objext
22109 if { (ac_try="$ac_compile"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_compile") 2>conftest.er1
22116 ac_status=$?
22117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } && {
22122 test -z "$ac_c_werror_flag" ||
22123 test ! -s conftest.err
22124 } && test -s conftest.$ac_objext; then
22125 ac_cv_type_off_t=yes
22126 else
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22130 ac_cv_type_off_t=no
22133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22136 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22137 if test $ac_cv_type_off_t = yes; then
22139 else
22141 cat >>confdefs.h <<_ACEOF
22142 #define off_t long int
22143 _ACEOF
22147 { echo "$as_me:$LINENO: checking for size_t" >&5
22148 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22149 if test "${ac_cv_type_size_t+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152 cat >conftest.$ac_ext <<_ACEOF
22153 /* confdefs.h. */
22154 _ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22158 $ac_includes_default
22159 typedef size_t ac__type_new_;
22161 main ()
22163 if ((ac__type_new_ *) 0)
22164 return 0;
22165 if (sizeof (ac__type_new_))
22166 return 0;
22168 return 0;
22170 _ACEOF
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.$ac_objext; then
22188 ac_cv_type_size_t=yes
22189 else
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22193 ac_cv_type_size_t=no
22196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22198 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22199 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22200 if test $ac_cv_type_size_t = yes; then
22202 else
22204 cat >>confdefs.h <<_ACEOF
22205 #define size_t unsigned int
22206 _ACEOF
22210 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22211 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22212 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215 cat >conftest.$ac_ext <<_ACEOF
22216 /* confdefs.h. */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22221 $ac_includes_default
22223 main ()
22225 static struct stat ac_aggr;
22226 if (ac_aggr.st_blocks)
22227 return 0;
22229 return 0;
22231 _ACEOF
22232 rm -f conftest.$ac_objext
22233 if { (ac_try="$ac_compile"
22234 case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22237 esac
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_compile") 2>conftest.er1
22240 ac_status=$?
22241 grep -v '^ *+' conftest.er1 >conftest.err
22242 rm -f conftest.er1
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
22249 ac_cv_member_struct_stat_st_blocks=yes
22250 else
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h. */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 $ac_includes_default
22262 main ()
22264 static struct stat ac_aggr;
22265 if (sizeof ac_aggr.st_blocks)
22266 return 0;
22268 return 0;
22270 _ACEOF
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_compile") 2>conftest.er1
22279 ac_status=$?
22280 grep -v '^ *+' conftest.er1 >conftest.err
22281 rm -f conftest.er1
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } && {
22285 test -z "$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22287 } && test -s conftest.$ac_objext; then
22288 ac_cv_member_struct_stat_st_blocks=yes
22289 else
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 ac_cv_member_struct_stat_st_blocks=no
22296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22301 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22302 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22303 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22305 cat >>confdefs.h <<_ACEOF
22306 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22307 _ACEOF
22310 cat >>confdefs.h <<\_ACEOF
22311 #define HAVE_ST_BLOCKS 1
22312 _ACEOF
22314 else
22315 case " $LIBOBJS " in
22316 *" fileblocks.$ac_objext "* ) ;;
22317 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22319 esac
22324 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22325 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22326 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22328 else
22329 cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h. */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 $ac_includes_default
22337 main ()
22339 static struct stat ac_aggr;
22340 if (ac_aggr.st_rdev)
22341 return 0;
22343 return 0;
22345 _ACEOF
22346 rm -f conftest.$ac_objext
22347 if { (ac_try="$ac_compile"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_compile") 2>conftest.er1
22354 ac_status=$?
22355 grep -v '^ *+' conftest.er1 >conftest.err
22356 rm -f conftest.er1
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } && {
22360 test -z "$ac_c_werror_flag" ||
22361 test ! -s conftest.err
22362 } && test -s conftest.$ac_objext; then
22363 ac_cv_member_struct_stat_st_rdev=yes
22364 else
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 $ac_includes_default
22376 main ()
22378 static struct stat ac_aggr;
22379 if (sizeof ac_aggr.st_rdev)
22380 return 0;
22382 return 0;
22384 _ACEOF
22385 rm -f conftest.$ac_objext
22386 if { (ac_try="$ac_compile"
22387 case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22390 esac
22391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22393 ac_status=$?
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22402 ac_cv_member_struct_stat_st_rdev=yes
22403 else
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 ac_cv_member_struct_stat_st_rdev=no
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22416 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
22417 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_STRUCT_STAT_ST_RDEV 1
22421 _ACEOF
22426 { echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
22427 echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; }
22428 if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431 cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22439 main ()
22441 static struct stat ac_aggr;
22442 if (ac_aggr.st_atim)
22443 return 0;
22445 return 0;
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22453 esac
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22465 ac_cv_member_struct_stat_st_atim=yes
22466 else
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 cat >conftest.$ac_ext <<_ACEOF
22471 /* confdefs.h. */
22472 _ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22476 $ac_includes_default
22478 main ()
22480 static struct stat ac_aggr;
22481 if (sizeof ac_aggr.st_atim)
22482 return 0;
22484 return 0;
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest.$ac_objext; then
22504 ac_cv_member_struct_stat_st_atim=yes
22505 else
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 ac_cv_member_struct_stat_st_atim=no
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
22518 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; }
22519 if test $ac_cv_member_struct_stat_st_atim = yes; then
22521 cat >>confdefs.h <<_ACEOF
22522 #define HAVE_STRUCT_STAT_ST_ATIM 1
22523 _ACEOF
22528 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec" >&5
22529 echo $ECHO_N "checking for struct stat.st_atimespec... $ECHO_C" >&6; }
22530 if test "${ac_cv_member_struct_stat_st_atimespec+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533 cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h. */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 $ac_includes_default
22541 main ()
22543 static struct stat ac_aggr;
22544 if (ac_aggr.st_atimespec)
22545 return 0;
22547 return 0;
22549 _ACEOF
22550 rm -f conftest.$ac_objext
22551 if { (ac_try="$ac_compile"
22552 case "(($ac_try" in
22553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554 *) ac_try_echo=$ac_try;;
22555 esac
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557 (eval "$ac_compile") 2>conftest.er1
22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest.$ac_objext; then
22567 ac_cv_member_struct_stat_st_atimespec=yes
22568 else
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 cat >conftest.$ac_ext <<_ACEOF
22573 /* confdefs.h. */
22574 _ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h. */
22578 $ac_includes_default
22580 main ()
22582 static struct stat ac_aggr;
22583 if (sizeof ac_aggr.st_atimespec)
22584 return 0;
22586 return 0;
22588 _ACEOF
22589 rm -f conftest.$ac_objext
22590 if { (ac_try="$ac_compile"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_compile") 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest.$ac_objext; then
22606 ac_cv_member_struct_stat_st_atimespec=yes
22607 else
22608 echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22611 ac_cv_member_struct_stat_st_atimespec=no
22614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec" >&5
22620 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec" >&6; }
22621 if test $ac_cv_member_struct_stat_st_atimespec = yes; then
22623 cat >>confdefs.h <<_ACEOF
22624 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
22625 _ACEOF
22630 { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
22631 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
22632 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
22633 echo $ECHO_N "(cached) $ECHO_C" >&6
22634 else
22635 cat >conftest.$ac_ext <<_ACEOF
22636 /* confdefs.h. */
22637 _ACEOF
22638 cat confdefs.h >>conftest.$ac_ext
22639 cat >>conftest.$ac_ext <<_ACEOF
22640 /* end confdefs.h. */
22641 $ac_includes_default
22643 main ()
22645 static struct stat ac_aggr;
22646 if (ac_aggr.st_atimensec)
22647 return 0;
22649 return 0;
22651 _ACEOF
22652 rm -f conftest.$ac_objext
22653 if { (ac_try="$ac_compile"
22654 case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22657 esac
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_compile") 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } && {
22666 test -z "$ac_c_werror_flag" ||
22667 test ! -s conftest.err
22668 } && test -s conftest.$ac_objext; then
22669 ac_cv_member_struct_stat_st_atimensec=yes
22670 else
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22674 cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h. */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 $ac_includes_default
22682 main ()
22684 static struct stat ac_aggr;
22685 if (sizeof ac_aggr.st_atimensec)
22686 return 0;
22688 return 0;
22690 _ACEOF
22691 rm -f conftest.$ac_objext
22692 if { (ac_try="$ac_compile"
22693 case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22696 esac
22697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_compile") 2>conftest.er1
22699 ac_status=$?
22700 grep -v '^ *+' conftest.er1 >conftest.err
22701 rm -f conftest.er1
22702 cat conftest.err >&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); } && {
22705 test -z "$ac_c_werror_flag" ||
22706 test ! -s conftest.err
22707 } && test -s conftest.$ac_objext; then
22708 ac_cv_member_struct_stat_st_atimensec=yes
22709 else
22710 echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22713 ac_cv_member_struct_stat_st_atimensec=no
22716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22721 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
22722 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
22723 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
22725 cat >>confdefs.h <<_ACEOF
22726 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22727 _ACEOF
22733 # For the 'nfconv' patch (Mac OS X only):
22734 case "${target_os}" in
22735 darwin*)
22736 if test "${enable_nfconv}" = "yes"; then
22737 if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then
22738 { echo "$as_me:$LINENO: checking for CoreFoundation/CoreFoundation.h" >&5
22739 echo $ECHO_N "checking for CoreFoundation/CoreFoundation.h... $ECHO_C" >&6; }
22740 if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreFoundation_CoreFoundation_h" >&5
22744 echo "${ECHO_T}$ac_cv_header_CoreFoundation_CoreFoundation_h" >&6; }
22745 else
22746 # Is the header compilable?
22747 { echo "$as_me:$LINENO: checking CoreFoundation/CoreFoundation.h usability" >&5
22748 echo $ECHO_N "checking CoreFoundation/CoreFoundation.h usability... $ECHO_C" >&6; }
22749 cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h. */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 $ac_includes_default
22756 #include <CoreFoundation/CoreFoundation.h>
22757 _ACEOF
22758 rm -f conftest.$ac_objext
22759 if { (ac_try="$ac_compile"
22760 case "(($ac_try" in
22761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762 *) ac_try_echo=$ac_try;;
22763 esac
22764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22765 (eval "$ac_compile") 2>conftest.er1
22766 ac_status=$?
22767 grep -v '^ *+' conftest.er1 >conftest.err
22768 rm -f conftest.er1
22769 cat conftest.err >&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } && {
22772 test -z "$ac_c_werror_flag" ||
22773 test ! -s conftest.err
22774 } && test -s conftest.$ac_objext; then
22775 ac_header_compiler=yes
22776 else
22777 echo "$as_me: failed program was:" >&5
22778 sed 's/^/| /' conftest.$ac_ext >&5
22780 ac_header_compiler=no
22783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22785 echo "${ECHO_T}$ac_header_compiler" >&6; }
22787 # Is the header present?
22788 { echo "$as_me:$LINENO: checking CoreFoundation/CoreFoundation.h presence" >&5
22789 echo $ECHO_N "checking CoreFoundation/CoreFoundation.h presence... $ECHO_C" >&6; }
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 #include <CoreFoundation/CoreFoundation.h>
22797 _ACEOF
22798 if { (ac_try="$ac_cpp conftest.$ac_ext"
22799 case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22802 esac
22803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } >/dev/null && {
22811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22812 test ! -s conftest.err
22813 }; then
22814 ac_header_preproc=yes
22815 else
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 ac_header_preproc=no
22822 rm -f conftest.err conftest.$ac_ext
22823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22824 echo "${ECHO_T}$ac_header_preproc" >&6; }
22826 # So? What about this header?
22827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22828 yes:no: )
22829 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: accepted by the compiler, rejected by the preprocessor!" >&5
22830 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22831 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the compiler's result" >&5
22832 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the compiler's result" >&2;}
22833 ac_header_preproc=yes
22835 no:yes:* )
22836 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: present but cannot be compiled" >&5
22837 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: present but cannot be compiled" >&2;}
22838 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: check for missing prerequisite headers?" >&5
22839 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: check for missing prerequisite headers?" >&2;}
22840 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: see the Autoconf documentation" >&5
22841 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: see the Autoconf documentation" >&2;}
22842 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: section \"Present But Cannot Be Compiled\"" >&5
22843 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: section \"Present But Cannot Be Compiled\"" >&2;}
22844 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the preprocessor's result" >&5
22845 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the preprocessor's result" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: in the future, the compiler will take precedence" >&5
22847 echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: in the future, the compiler will take precedence" >&2;}
22848 ( cat <<\_ASBOX
22849 ## ----------------------------------------- ##
22850 ## Report this to ntfs-3g-devel@lists.sf.net ##
22851 ## ----------------------------------------- ##
22852 _ASBOX
22853 ) | sed "s/^/$as_me: WARNING: /" >&2
22855 esac
22856 { echo "$as_me:$LINENO: checking for CoreFoundation/CoreFoundation.h" >&5
22857 echo $ECHO_N "checking for CoreFoundation/CoreFoundation.h... $ECHO_C" >&6; }
22858 if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 else
22861 ac_cv_header_CoreFoundation_CoreFoundation_h=$ac_header_preproc
22863 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreFoundation_CoreFoundation_h" >&5
22864 echo "${ECHO_T}$ac_cv_header_CoreFoundation_CoreFoundation_h" >&6; }
22867 if test $ac_cv_header_CoreFoundation_CoreFoundation_h = yes; then
22869 LDFLAGS="${LDFLAGS} -framework CoreFoundation"
22871 cat >>confdefs.h <<\_ACEOF
22872 #define ENABLE_NFCONV 1
22873 _ACEOF
22876 else
22877 { { 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
22878 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;}
22879 { (exit 1); exit 1; }; }
22886 esac
22888 # Checks for library functions.
22889 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
22890 # -lseq on Dynix/PTX, -lgen on Unixware.
22891 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
22892 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
22893 if test "${ac_cv_search_getmntent+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 else
22896 ac_func_search_save_LIBS=$LIBS
22897 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h. */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22904 /* Override any GCC internal prototype to avoid an error.
22905 Use char because int might match the return type of a GCC
22906 builtin and then its argument prototype would still apply. */
22907 #ifdef __cplusplus
22908 extern "C"
22909 #endif
22910 char getmntent ();
22912 main ()
22914 return getmntent ();
22916 return 0;
22918 _ACEOF
22919 for ac_lib in '' sun seq gen; do
22920 if test -z "$ac_lib"; then
22921 ac_res="none required"
22922 else
22923 ac_res=-l$ac_lib
22924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22926 rm -f conftest.$ac_objext conftest$ac_exeext
22927 if { (ac_try="$ac_link"
22928 case "(($ac_try" in
22929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930 *) ac_try_echo=$ac_try;;
22931 esac
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933 (eval "$ac_link") 2>conftest.er1
22934 ac_status=$?
22935 grep -v '^ *+' conftest.er1 >conftest.err
22936 rm -f conftest.er1
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && {
22940 test -z "$ac_c_werror_flag" ||
22941 test ! -s conftest.err
22942 } && test -s conftest$ac_exeext &&
22943 $as_test_x conftest$ac_exeext; then
22944 ac_cv_search_getmntent=$ac_res
22945 else
22946 echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22953 conftest$ac_exeext
22954 if test "${ac_cv_search_getmntent+set}" = set; then
22955 break
22957 done
22958 if test "${ac_cv_search_getmntent+set}" = set; then
22960 else
22961 ac_cv_search_getmntent=no
22963 rm conftest.$ac_ext
22964 LIBS=$ac_func_search_save_LIBS
22966 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
22967 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
22968 ac_res=$ac_cv_search_getmntent
22969 if test "$ac_res" != no; then
22970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22971 ac_cv_func_getmntent=yes
22973 cat >>confdefs.h <<\_ACEOF
22974 #define HAVE_GETMNTENT
22975 _ACEOF
22977 else
22978 ac_cv_func_getmntent=no
22983 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
22984 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
22985 if test "${ac_cv_func_mbrtowc+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988 cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h. */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22994 #include <wchar.h>
22996 main ()
22998 wchar_t wc;
22999 char const s[] = "";
23000 size_t n = 1;
23001 mbstate_t state;
23002 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
23004 return 0;
23006 _ACEOF
23007 rm -f conftest.$ac_objext conftest$ac_exeext
23008 if { (ac_try="$ac_link"
23009 case "(($ac_try" in
23010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011 *) ac_try_echo=$ac_try;;
23012 esac
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014 (eval "$ac_link") 2>conftest.er1
23015 ac_status=$?
23016 grep -v '^ *+' conftest.er1 >conftest.err
23017 rm -f conftest.er1
23018 cat conftest.err >&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } && {
23021 test -z "$ac_c_werror_flag" ||
23022 test ! -s conftest.err
23023 } && test -s conftest$ac_exeext &&
23024 $as_test_x conftest$ac_exeext; then
23025 ac_cv_func_mbrtowc=yes
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_cv_func_mbrtowc=no
23033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23034 conftest$ac_exeext conftest.$ac_ext
23036 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
23037 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
23038 if test $ac_cv_func_mbrtowc = yes; then
23040 cat >>confdefs.h <<\_ACEOF
23041 #define HAVE_MBRTOWC 1
23042 _ACEOF
23046 { echo "$as_me:$LINENO: checking for working memcmp" >&5
23047 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
23048 if test "${ac_cv_func_memcmp_working+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051 if test "$cross_compiling" = yes; then
23052 ac_cv_func_memcmp_working=no
23053 else
23054 cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h. */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060 $ac_includes_default
23062 main ()
23065 /* Some versions of memcmp are not 8-bit clean. */
23066 char c0 = '\100', c1 = '\200', c2 = '\201';
23067 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23068 return 1;
23070 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23071 or more and with at least one buffer not starting on a 4-byte boundary.
23072 William Lewis provided this test program. */
23074 char foo[21];
23075 char bar[21];
23076 int i;
23077 for (i = 0; i < 4; i++)
23079 char *a = foo + i;
23080 char *b = bar + i;
23081 strcpy (a, "--------01111111");
23082 strcpy (b, "--------10000000");
23083 if (memcmp (a, b, 16) >= 0)
23084 return 1;
23086 return 0;
23090 return 0;
23092 _ACEOF
23093 rm -f conftest$ac_exeext
23094 if { (ac_try="$ac_link"
23095 case "(($ac_try" in
23096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23097 *) ac_try_echo=$ac_try;;
23098 esac
23099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23100 (eval "$ac_link") 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23104 { (case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23107 esac
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_try") 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); }; }; then
23113 ac_cv_func_memcmp_working=yes
23114 else
23115 echo "$as_me: program exited with status $ac_status" >&5
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 ( exit $ac_status )
23120 ac_cv_func_memcmp_working=no
23122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23127 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23128 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
23129 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23130 *" memcmp.$ac_objext "* ) ;;
23131 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23133 esac
23136 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
23137 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
23138 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
23139 echo $ECHO_N "(cached) $ECHO_C" >&6
23140 else
23141 rm -f conftest.sym conftest.file
23142 echo >conftest.file
23143 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23144 if test "$cross_compiling" = yes; then
23145 ac_cv_func_lstat_dereferences_slashed_symlink=no
23146 else
23147 cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h. */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 $ac_includes_default
23155 main ()
23157 struct stat sbuf;
23158 /* Linux will dereference the symlink and fail.
23159 That is better in the sense that it means we will not
23160 have to compile and use the lstat wrapper. */
23161 return lstat ("conftest.sym/", &sbuf) == 0;
23163 return 0;
23165 _ACEOF
23166 rm -f conftest$ac_exeext
23167 if { (ac_try="$ac_link"
23168 case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23171 esac
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173 (eval "$ac_link") 2>&5
23174 ac_status=$?
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23177 { (case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23180 esac
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_try") 2>&5
23183 ac_status=$?
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; }; then
23186 ac_cv_func_lstat_dereferences_slashed_symlink=yes
23187 else
23188 echo "$as_me: program exited with status $ac_status" >&5
23189 echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23192 ( exit $ac_status )
23193 ac_cv_func_lstat_dereferences_slashed_symlink=no
23195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23199 else
23200 # If the `ln -s' command failed, then we probably don't even
23201 # have an lstat function.
23202 ac_cv_func_lstat_dereferences_slashed_symlink=no
23204 rm -f conftest.sym conftest.file
23207 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23208 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23210 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23212 cat >>confdefs.h <<_ACEOF
23213 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23214 _ACEOF
23217 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23218 case " $LIBOBJS " in
23219 *" lstat.$ac_objext "* ) ;;
23220 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
23222 esac
23226 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
23227 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
23228 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 else
23231 if test "$cross_compiling" = yes; then
23232 ac_cv_func_stat_empty_string_bug=yes
23233 else
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h. */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 $ac_includes_default
23242 main ()
23244 struct stat sbuf;
23245 return stat ("", &sbuf) == 0;
23247 return 0;
23249 _ACEOF
23250 rm -f conftest$ac_exeext
23251 if { (ac_try="$ac_link"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_link") 2>&5
23258 ac_status=$?
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23261 { (case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_try") 2>&5
23267 ac_status=$?
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; }; then
23270 ac_cv_func_stat_empty_string_bug=no
23271 else
23272 echo "$as_me: program exited with status $ac_status" >&5
23273 echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23276 ( exit $ac_status )
23277 ac_cv_func_stat_empty_string_bug=yes
23279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23284 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
23285 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
23286 if test $ac_cv_func_stat_empty_string_bug = yes; then
23287 case " $LIBOBJS " in
23288 *" stat.$ac_objext "* ) ;;
23289 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
23291 esac
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_STAT_EMPTY_STRING_BUG 1
23296 _ACEOF
23301 for ac_func in strftime
23303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23307 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 else
23309 cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h. */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23317 #define $ac_func innocuous_$ac_func
23319 /* System header to define __stub macros and hopefully few prototypes,
23320 which can conflict with char $ac_func (); below.
23321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23322 <limits.h> exists even on freestanding compilers. */
23324 #ifdef __STDC__
23325 # include <limits.h>
23326 #else
23327 # include <assert.h>
23328 #endif
23330 #undef $ac_func
23332 /* Override any GCC internal prototype to avoid an error.
23333 Use char because int might match the return type of a GCC
23334 builtin and then its argument prototype would still apply. */
23335 #ifdef __cplusplus
23336 extern "C"
23337 #endif
23338 char $ac_func ();
23339 /* The GNU C library defines this for functions which it implements
23340 to always fail with ENOSYS. Some functions are actually named
23341 something starting with __ and the normal name is an alias. */
23342 #if defined __stub_$ac_func || defined __stub___$ac_func
23343 choke me
23344 #endif
23347 main ()
23349 return $ac_func ();
23351 return 0;
23353 _ACEOF
23354 rm -f conftest.$ac_objext conftest$ac_exeext
23355 if { (ac_try="$ac_link"
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_link") 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_exeext &&
23371 $as_test_x conftest$ac_exeext; then
23372 eval "$as_ac_var=yes"
23373 else
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 eval "$as_ac_var=no"
23380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23381 conftest$ac_exeext conftest.$ac_ext
23383 ac_res=`eval echo '${'$as_ac_var'}'`
23384 { echo "$as_me:$LINENO: result: $ac_res" >&5
23385 echo "${ECHO_T}$ac_res" >&6; }
23386 if test `eval echo '${'$as_ac_var'}'` = yes; then
23387 cat >>confdefs.h <<_ACEOF
23388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23389 _ACEOF
23391 else
23392 # strftime is in -lintl on SCO UNIX.
23393 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
23394 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
23395 if test "${ac_cv_lib_intl_strftime+set}" = set; then
23396 echo $ECHO_N "(cached) $ECHO_C" >&6
23397 else
23398 ac_check_lib_save_LIBS=$LIBS
23399 LIBS="-lintl $LIBS"
23400 cat >conftest.$ac_ext <<_ACEOF
23401 /* confdefs.h. */
23402 _ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h. */
23407 /* Override any GCC internal prototype to avoid an error.
23408 Use char because int might match the return type of a GCC
23409 builtin and then its argument prototype would still apply. */
23410 #ifdef __cplusplus
23411 extern "C"
23412 #endif
23413 char strftime ();
23415 main ()
23417 return strftime ();
23419 return 0;
23421 _ACEOF
23422 rm -f conftest.$ac_objext conftest$ac_exeext
23423 if { (ac_try="$ac_link"
23424 case "(($ac_try" in
23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426 *) ac_try_echo=$ac_try;;
23427 esac
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429 (eval "$ac_link") 2>conftest.er1
23430 ac_status=$?
23431 grep -v '^ *+' conftest.er1 >conftest.err
23432 rm -f conftest.er1
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } && {
23436 test -z "$ac_c_werror_flag" ||
23437 test ! -s conftest.err
23438 } && test -s conftest$ac_exeext &&
23439 $as_test_x conftest$ac_exeext; then
23440 ac_cv_lib_intl_strftime=yes
23441 else
23442 echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23445 ac_cv_lib_intl_strftime=no
23448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23449 conftest$ac_exeext conftest.$ac_ext
23450 LIBS=$ac_check_lib_save_LIBS
23452 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
23453 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
23454 if test $ac_cv_lib_intl_strftime = yes; then
23455 cat >>confdefs.h <<\_ACEOF
23456 #define HAVE_STRFTIME 1
23457 _ACEOF
23459 LIBS="-lintl $LIBS"
23463 done
23469 for ac_header in $ac_header_list
23471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23476 echo $ECHO_N "(cached) $ECHO_C" >&6
23478 ac_res=`eval echo '${'$as_ac_Header'}'`
23479 { echo "$as_me:$LINENO: result: $ac_res" >&5
23480 echo "${ECHO_T}$ac_res" >&6; }
23481 else
23482 # Is the header compilable?
23483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23485 cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h. */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23491 $ac_includes_default
23492 #include <$ac_header>
23493 _ACEOF
23494 rm -f conftest.$ac_objext
23495 if { (ac_try="$ac_compile"
23496 case "(($ac_try" in
23497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498 *) ac_try_echo=$ac_try;;
23499 esac
23500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501 (eval "$ac_compile") 2>conftest.er1
23502 ac_status=$?
23503 grep -v '^ *+' conftest.er1 >conftest.err
23504 rm -f conftest.er1
23505 cat conftest.err >&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } && {
23508 test -z "$ac_c_werror_flag" ||
23509 test ! -s conftest.err
23510 } && test -s conftest.$ac_objext; then
23511 ac_header_compiler=yes
23512 else
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 ac_header_compiler=no
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23521 echo "${ECHO_T}$ac_header_compiler" >&6; }
23523 # Is the header present?
23524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23526 cat >conftest.$ac_ext <<_ACEOF
23527 /* confdefs.h. */
23528 _ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h. */
23532 #include <$ac_header>
23533 _ACEOF
23534 if { (ac_try="$ac_cpp conftest.$ac_ext"
23535 case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23538 esac
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23541 ac_status=$?
23542 grep -v '^ *+' conftest.er1 >conftest.err
23543 rm -f conftest.er1
23544 cat conftest.err >&5
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } >/dev/null && {
23547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23548 test ! -s conftest.err
23549 }; then
23550 ac_header_preproc=yes
23551 else
23552 echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23555 ac_header_preproc=no
23558 rm -f conftest.err conftest.$ac_ext
23559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23560 echo "${ECHO_T}$ac_header_preproc" >&6; }
23562 # So? What about this header?
23563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23564 yes:no: )
23565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23569 ac_header_preproc=yes
23571 no:yes:* )
23572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23584 ( cat <<\_ASBOX
23585 ## ----------------------------------------- ##
23586 ## Report this to ntfs-3g-devel@lists.sf.net ##
23587 ## ----------------------------------------- ##
23588 _ASBOX
23589 ) | sed "s/^/$as_me: WARNING: /" >&2
23591 esac
23592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23595 echo $ECHO_N "(cached) $ECHO_C" >&6
23596 else
23597 eval "$as_ac_Header=\$ac_header_preproc"
23599 ac_res=`eval echo '${'$as_ac_Header'}'`
23600 { echo "$as_me:$LINENO: result: $ac_res" >&5
23601 echo "${ECHO_T}$ac_res" >&6; }
23604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23605 cat >>confdefs.h <<_ACEOF
23606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23607 _ACEOF
23611 done
23621 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
23622 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
23623 if test "${ac_cv_func_utime_null+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626 rm -f conftest.data; >conftest.data
23627 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
23628 if test "$cross_compiling" = yes; then
23629 ac_cv_func_utime_null=no
23630 else
23631 cat >conftest.$ac_ext <<_ACEOF
23632 /* confdefs.h. */
23633 _ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h. */
23637 $ac_includes_default
23638 #ifdef HAVE_UTIME_H
23639 # include <utime.h>
23640 #endif
23642 main ()
23644 struct stat s, t;
23645 return ! (stat ("conftest.data", &s) == 0
23646 && utime ("conftest.data", 0) == 0
23647 && stat ("conftest.data", &t) == 0
23648 && t.st_mtime >= s.st_mtime
23649 && t.st_mtime - s.st_mtime < 120);
23651 return 0;
23653 _ACEOF
23654 rm -f conftest$ac_exeext
23655 if { (ac_try="$ac_link"
23656 case "(($ac_try" in
23657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658 *) ac_try_echo=$ac_try;;
23659 esac
23660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23661 (eval "$ac_link") 2>&5
23662 ac_status=$?
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23665 { (case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23668 esac
23669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670 (eval "$ac_try") 2>&5
23671 ac_status=$?
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); }; }; then
23674 ac_cv_func_utime_null=yes
23675 else
23676 echo "$as_me: program exited with status $ac_status" >&5
23677 echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23680 ( exit $ac_status )
23681 ac_cv_func_utime_null=no
23683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23688 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
23689 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
23690 if test $ac_cv_func_utime_null = yes; then
23692 cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_UTIME_NULL 1
23694 _ACEOF
23697 rm -f conftest.data
23700 for ac_func in vprintf
23702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708 cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h. */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23716 #define $ac_func innocuous_$ac_func
23718 /* System header to define __stub macros and hopefully few prototypes,
23719 which can conflict with char $ac_func (); below.
23720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23721 <limits.h> exists even on freestanding compilers. */
23723 #ifdef __STDC__
23724 # include <limits.h>
23725 #else
23726 # include <assert.h>
23727 #endif
23729 #undef $ac_func
23731 /* Override any GCC internal prototype to avoid an error.
23732 Use char because int might match the return type of a GCC
23733 builtin and then its argument prototype would still apply. */
23734 #ifdef __cplusplus
23735 extern "C"
23736 #endif
23737 char $ac_func ();
23738 /* The GNU C library defines this for functions which it implements
23739 to always fail with ENOSYS. Some functions are actually named
23740 something starting with __ and the normal name is an alias. */
23741 #if defined __stub_$ac_func || defined __stub___$ac_func
23742 choke me
23743 #endif
23746 main ()
23748 return $ac_func ();
23750 return 0;
23752 _ACEOF
23753 rm -f conftest.$ac_objext conftest$ac_exeext
23754 if { (ac_try="$ac_link"
23755 case "(($ac_try" in
23756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757 *) ac_try_echo=$ac_try;;
23758 esac
23759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23760 (eval "$ac_link") 2>conftest.er1
23761 ac_status=$?
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } && {
23767 test -z "$ac_c_werror_flag" ||
23768 test ! -s conftest.err
23769 } && test -s conftest$ac_exeext &&
23770 $as_test_x conftest$ac_exeext; then
23771 eval "$as_ac_var=yes"
23772 else
23773 echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23776 eval "$as_ac_var=no"
23779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23780 conftest$ac_exeext conftest.$ac_ext
23782 ac_res=`eval echo '${'$as_ac_var'}'`
23783 { echo "$as_me:$LINENO: result: $ac_res" >&5
23784 echo "${ECHO_T}$ac_res" >&6; }
23785 if test `eval echo '${'$as_ac_var'}'` = yes; then
23786 cat >>confdefs.h <<_ACEOF
23787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23788 _ACEOF
23790 { echo "$as_me:$LINENO: checking for _doprnt" >&5
23791 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
23792 if test "${ac_cv_func__doprnt+set}" = set; then
23793 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 else
23795 cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h. */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23803 #define _doprnt innocuous__doprnt
23805 /* System header to define __stub macros and hopefully few prototypes,
23806 which can conflict with char _doprnt (); below.
23807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23808 <limits.h> exists even on freestanding compilers. */
23810 #ifdef __STDC__
23811 # include <limits.h>
23812 #else
23813 # include <assert.h>
23814 #endif
23816 #undef _doprnt
23818 /* Override any GCC internal prototype to avoid an error.
23819 Use char because int might match the return type of a GCC
23820 builtin and then its argument prototype would still apply. */
23821 #ifdef __cplusplus
23822 extern "C"
23823 #endif
23824 char _doprnt ();
23825 /* The GNU C library defines this for functions which it implements
23826 to always fail with ENOSYS. Some functions are actually named
23827 something starting with __ and the normal name is an alias. */
23828 #if defined __stub__doprnt || defined __stub____doprnt
23829 choke me
23830 #endif
23833 main ()
23835 return _doprnt ();
23837 return 0;
23839 _ACEOF
23840 rm -f conftest.$ac_objext conftest$ac_exeext
23841 if { (ac_try="$ac_link"
23842 case "(($ac_try" in
23843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23844 *) ac_try_echo=$ac_try;;
23845 esac
23846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23847 (eval "$ac_link") 2>conftest.er1
23848 ac_status=$?
23849 grep -v '^ *+' conftest.er1 >conftest.err
23850 rm -f conftest.er1
23851 cat conftest.err >&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } && {
23854 test -z "$ac_c_werror_flag" ||
23855 test ! -s conftest.err
23856 } && test -s conftest$ac_exeext &&
23857 $as_test_x conftest$ac_exeext; then
23858 ac_cv_func__doprnt=yes
23859 else
23860 echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23863 ac_cv_func__doprnt=no
23866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23867 conftest$ac_exeext conftest.$ac_ext
23869 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23870 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
23871 if test $ac_cv_func__doprnt = yes; then
23873 cat >>confdefs.h <<\_ACEOF
23874 #define HAVE_DOPRNT 1
23875 _ACEOF
23880 done
23912 for ac_func in \
23913 atexit basename daemon dup2 fdatasync ffs getopt_long hasmntopt \
23914 mbsinit memmove memset realpath regcomp setlocale setxattr \
23915 strcasecmp strchr strdup strerror strnlen strsep strtol strtoul \
23916 sysconf utime utimensat gettimeofday clock_gettime fork \
23919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23924 else
23925 cat >conftest.$ac_ext <<_ACEOF
23926 /* confdefs.h. */
23927 _ACEOF
23928 cat confdefs.h >>conftest.$ac_ext
23929 cat >>conftest.$ac_ext <<_ACEOF
23930 /* end confdefs.h. */
23931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23933 #define $ac_func innocuous_$ac_func
23935 /* System header to define __stub macros and hopefully few prototypes,
23936 which can conflict with char $ac_func (); below.
23937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23938 <limits.h> exists even on freestanding compilers. */
23940 #ifdef __STDC__
23941 # include <limits.h>
23942 #else
23943 # include <assert.h>
23944 #endif
23946 #undef $ac_func
23948 /* Override any GCC internal prototype to avoid an error.
23949 Use char because int might match the return type of a GCC
23950 builtin and then its argument prototype would still apply. */
23951 #ifdef __cplusplus
23952 extern "C"
23953 #endif
23954 char $ac_func ();
23955 /* The GNU C library defines this for functions which it implements
23956 to always fail with ENOSYS. Some functions are actually named
23957 something starting with __ and the normal name is an alias. */
23958 #if defined __stub_$ac_func || defined __stub___$ac_func
23959 choke me
23960 #endif
23963 main ()
23965 return $ac_func ();
23967 return 0;
23969 _ACEOF
23970 rm -f conftest.$ac_objext conftest$ac_exeext
23971 if { (ac_try="$ac_link"
23972 case "(($ac_try" in
23973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974 *) ac_try_echo=$ac_try;;
23975 esac
23976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23977 (eval "$ac_link") 2>conftest.er1
23978 ac_status=$?
23979 grep -v '^ *+' conftest.er1 >conftest.err
23980 rm -f conftest.er1
23981 cat conftest.err >&5
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); } && {
23984 test -z "$ac_c_werror_flag" ||
23985 test ! -s conftest.err
23986 } && test -s conftest$ac_exeext &&
23987 $as_test_x conftest$ac_exeext; then
23988 eval "$as_ac_var=yes"
23989 else
23990 echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23993 eval "$as_ac_var=no"
23996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23997 conftest$ac_exeext conftest.$ac_ext
23999 ac_res=`eval echo '${'$as_ac_var'}'`
24000 { echo "$as_me:$LINENO: result: $ac_res" >&5
24001 echo "${ECHO_T}$ac_res" >&6; }
24002 if test `eval echo '${'$as_ac_var'}'` = yes; then
24003 cat >>confdefs.h <<_ACEOF
24004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24005 _ACEOF
24008 done
24010 # Check whether --enable-largefile was given.
24011 if test "${enable_largefile+set}" = set; then
24012 enableval=$enable_largefile;
24015 if test "$enable_largefile" != no; then
24017 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24018 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24019 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24020 echo $ECHO_N "(cached) $ECHO_C" >&6
24021 else
24022 ac_cv_sys_largefile_CC=no
24023 if test "$GCC" != yes; then
24024 ac_save_CC=$CC
24025 while :; do
24026 # IRIX 6.2 and later do not support large files by default,
24027 # so use the C compiler's -n32 option if that helps.
24028 cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h. */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 #include <sys/types.h>
24035 /* Check that off_t can represent 2**63 - 1 correctly.
24036 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24037 since some C++ compilers masquerading as C compilers
24038 incorrectly reject 9223372036854775807. */
24039 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24040 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24041 && LARGE_OFF_T % 2147483647 == 1)
24042 ? 1 : -1];
24044 main ()
24048 return 0;
24050 _ACEOF
24051 rm -f conftest.$ac_objext
24052 if { (ac_try="$ac_compile"
24053 case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24056 esac
24057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_compile") 2>conftest.er1
24059 ac_status=$?
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } && {
24065 test -z "$ac_c_werror_flag" ||
24066 test ! -s conftest.err
24067 } && test -s conftest.$ac_objext; then
24068 break
24069 else
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24076 rm -f core conftest.err conftest.$ac_objext
24077 CC="$CC -n32"
24078 rm -f conftest.$ac_objext
24079 if { (ac_try="$ac_compile"
24080 case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24083 esac
24084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24085 (eval "$ac_compile") 2>conftest.er1
24086 ac_status=$?
24087 grep -v '^ *+' conftest.er1 >conftest.err
24088 rm -f conftest.er1
24089 cat conftest.err >&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } && {
24092 test -z "$ac_c_werror_flag" ||
24093 test ! -s conftest.err
24094 } && test -s conftest.$ac_objext; then
24095 ac_cv_sys_largefile_CC=' -n32'; break
24096 else
24097 echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24103 rm -f core conftest.err conftest.$ac_objext
24104 break
24105 done
24106 CC=$ac_save_CC
24107 rm -f conftest.$ac_ext
24110 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24111 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24112 if test "$ac_cv_sys_largefile_CC" != no; then
24113 CC=$CC$ac_cv_sys_largefile_CC
24116 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24117 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24118 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24120 else
24121 while :; do
24122 cat >conftest.$ac_ext <<_ACEOF
24123 /* confdefs.h. */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 #include <sys/types.h>
24129 /* Check that off_t can represent 2**63 - 1 correctly.
24130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24131 since some C++ compilers masquerading as C compilers
24132 incorrectly reject 9223372036854775807. */
24133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24135 && LARGE_OFF_T % 2147483647 == 1)
24136 ? 1 : -1];
24138 main ()
24142 return 0;
24144 _ACEOF
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_compile") 2>conftest.er1
24153 ac_status=$?
24154 grep -v '^ *+' conftest.er1 >conftest.err
24155 rm -f conftest.er1
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } && {
24159 test -z "$ac_c_werror_flag" ||
24160 test ! -s conftest.err
24161 } && test -s conftest.$ac_objext; then
24162 ac_cv_sys_file_offset_bits=no; break
24163 else
24164 echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171 cat >conftest.$ac_ext <<_ACEOF
24172 /* confdefs.h. */
24173 _ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 #define _FILE_OFFSET_BITS 64
24178 #include <sys/types.h>
24179 /* Check that off_t can represent 2**63 - 1 correctly.
24180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24181 since some C++ compilers masquerading as C compilers
24182 incorrectly reject 9223372036854775807. */
24183 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24185 && LARGE_OFF_T % 2147483647 == 1)
24186 ? 1 : -1];
24188 main ()
24192 return 0;
24194 _ACEOF
24195 rm -f conftest.$ac_objext
24196 if { (ac_try="$ac_compile"
24197 case "(($ac_try" in
24198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199 *) ac_try_echo=$ac_try;;
24200 esac
24201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202 (eval "$ac_compile") 2>conftest.er1
24203 ac_status=$?
24204 grep -v '^ *+' conftest.er1 >conftest.err
24205 rm -f conftest.er1
24206 cat conftest.err >&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } && {
24209 test -z "$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24211 } && test -s conftest.$ac_objext; then
24212 ac_cv_sys_file_offset_bits=64; break
24213 else
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221 ac_cv_sys_file_offset_bits=unknown
24222 break
24223 done
24225 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24226 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24227 case $ac_cv_sys_file_offset_bits in #(
24228 no | unknown) ;;
24230 cat >>confdefs.h <<_ACEOF
24231 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24232 _ACEOF
24234 esac
24235 rm -f conftest*
24236 if test $ac_cv_sys_file_offset_bits = unknown; then
24237 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24238 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24239 if test "${ac_cv_sys_large_files+set}" = set; then
24240 echo $ECHO_N "(cached) $ECHO_C" >&6
24241 else
24242 while :; do
24243 cat >conftest.$ac_ext <<_ACEOF
24244 /* confdefs.h. */
24245 _ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h. */
24249 #include <sys/types.h>
24250 /* Check that off_t can represent 2**63 - 1 correctly.
24251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24252 since some C++ compilers masquerading as C compilers
24253 incorrectly reject 9223372036854775807. */
24254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24256 && LARGE_OFF_T % 2147483647 == 1)
24257 ? 1 : -1];
24259 main ()
24263 return 0;
24265 _ACEOF
24266 rm -f conftest.$ac_objext
24267 if { (ac_try="$ac_compile"
24268 case "(($ac_try" in
24269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270 *) ac_try_echo=$ac_try;;
24271 esac
24272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273 (eval "$ac_compile") 2>conftest.er1
24274 ac_status=$?
24275 grep -v '^ *+' conftest.er1 >conftest.err
24276 rm -f conftest.er1
24277 cat conftest.err >&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); } && {
24280 test -z "$ac_c_werror_flag" ||
24281 test ! -s conftest.err
24282 } && test -s conftest.$ac_objext; then
24283 ac_cv_sys_large_files=no; break
24284 else
24285 echo "$as_me: failed program was:" >&5
24286 sed 's/^/| /' conftest.$ac_ext >&5
24291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24292 cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h. */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24298 #define _LARGE_FILES 1
24299 #include <sys/types.h>
24300 /* Check that off_t can represent 2**63 - 1 correctly.
24301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24302 since some C++ compilers masquerading as C compilers
24303 incorrectly reject 9223372036854775807. */
24304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24306 && LARGE_OFF_T % 2147483647 == 1)
24307 ? 1 : -1];
24309 main ()
24313 return 0;
24315 _ACEOF
24316 rm -f conftest.$ac_objext
24317 if { (ac_try="$ac_compile"
24318 case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24321 esac
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_compile") 2>conftest.er1
24324 ac_status=$?
24325 grep -v '^ *+' conftest.er1 >conftest.err
24326 rm -f conftest.er1
24327 cat conftest.err >&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } && {
24330 test -z "$ac_c_werror_flag" ||
24331 test ! -s conftest.err
24332 } && test -s conftest.$ac_objext; then
24333 ac_cv_sys_large_files=1; break
24334 else
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24342 ac_cv_sys_large_files=unknown
24343 break
24344 done
24346 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24347 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24348 case $ac_cv_sys_large_files in #(
24349 no | unknown) ;;
24351 cat >>confdefs.h <<_ACEOF
24352 #define _LARGE_FILES $ac_cv_sys_large_files
24353 _ACEOF
24355 esac
24356 rm -f conftest*
24361 if test "$GCC" = "yes" ; then
24362 # We add -Wall to enable some compiler warnings.
24363 CFLAGS="${CFLAGS} -Wall"
24366 if test "${enable_pedantic}" = "yes"; then
24367 enable_warnings="yes"
24368 CFLAGS="${CFLAGS} -pedantic"
24371 if test "${enable_warnings}" = "yes"; then
24372 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"
24375 if test "${enable_debug}" = "yes"; then
24376 CFLAGS="${CFLAGS} -ggdb3 -DDEBUG"
24378 cat >>confdefs.h <<\_ACEOF
24379 #define ENABLE_DEBUG 1
24380 _ACEOF
24384 test "${enable_device_default_io_ops}" = "no" &&
24385 cat >>confdefs.h <<\_ACEOF
24386 #define NO_NTFS_DEVICE_DEFAULT_IO_OPS 1
24387 _ACEOF
24390 test "${enable_mtab}" = "no" &&
24391 cat >>confdefs.h <<\_ACEOF
24392 #define IGNORE_MTAB 1
24393 _ACEOF
24395 test "${enable_posix_acls}" != "no" &&
24396 cat >>confdefs.h <<\_ACEOF
24397 #define POSIXACLS 1
24398 _ACEOF
24400 test "${enable_xattr_mappings}" != "no" &&
24401 cat >>confdefs.h <<\_ACEOF
24402 #define XATTR_MAPPINGS 1
24403 _ACEOF
24406 test "${enable_really_static}" = "yes" && enable_library="no"
24407 test "${enable_library}" = "no" && enable_ldconfig="no"
24409 if test "x${DISTCHECK_HACK}" != "x"; then
24410 enable_mount_helper="no"
24411 enable_ldconfig="no"
24414 # Settings
24415 pkgconfigdir="\$(libdir)/pkgconfig"
24416 ntfs3gincludedir="\$(includedir)/ntfs-3g"
24417 # Executables should be installed to the root filesystem, otherwise
24418 # automounting NTFS volumes can fail during boot if the driver binaries
24419 # and their dependencies are on an unmounted partition. Use --exec-prefix
24420 # to override this.
24421 if test "x${exec_prefix}" = "xNONE"; then
24422 rootbindir="/bin"
24423 rootsbindir="/sbin"
24424 rootlibdir="/lib${libdir##*/lib}"
24425 else
24426 rootbindir="\$(bindir)"
24427 rootsbindir="\$(sbindir)"
24428 rootlibdir="\$(libdir)"
24440 if test "${with_fuse}" = "internal"; then
24441 FUSE_INTERNAL_TRUE=
24442 FUSE_INTERNAL_FALSE='#'
24443 else
24444 FUSE_INTERNAL_TRUE='#'
24445 FUSE_INTERNAL_FALSE=
24448 if test "${enable_ldscript}" = "yes"; then
24449 GENERATE_LDSCRIPT_TRUE=
24450 GENERATE_LDSCRIPT_FALSE='#'
24451 else
24452 GENERATE_LDSCRIPT_TRUE='#'
24453 GENERATE_LDSCRIPT_FALSE=
24456 if test "${WINDOWS}" = "yes"; then
24457 WINDOWS_TRUE=
24458 WINDOWS_FALSE='#'
24459 else
24460 WINDOWS_TRUE='#'
24461 WINDOWS_FALSE=
24464 if test "${enable_device_default_io_ops}" = "yes"; then
24465 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE=
24466 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE='#'
24467 else
24468 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE='#'
24469 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE=
24472 if test "${enable_ldconfig}" = "yes"; then
24473 RUN_LDCONFIG_TRUE=
24474 RUN_LDCONFIG_FALSE='#'
24475 else
24476 RUN_LDCONFIG_TRUE='#'
24477 RUN_LDCONFIG_FALSE=
24480 if test "${enable_really_static}" = "yes"; then
24481 REALLYSTATIC_TRUE=
24482 REALLYSTATIC_FALSE='#'
24483 else
24484 REALLYSTATIC_TRUE='#'
24485 REALLYSTATIC_FALSE=
24488 if test "${enable_library}" = "yes"; then
24489 INSTALL_LIBRARY_TRUE=
24490 INSTALL_LIBRARY_FALSE='#'
24491 else
24492 INSTALL_LIBRARY_TRUE='#'
24493 INSTALL_LIBRARY_FALSE=
24496 if test "${enable_mount_helper}" = "yes"; then
24497 ENABLE_MOUNT_HELPER_TRUE=
24498 ENABLE_MOUNT_HELPER_FALSE='#'
24499 else
24500 ENABLE_MOUNT_HELPER_TRUE='#'
24501 ENABLE_MOUNT_HELPER_FALSE=
24504 if test "${enable_ntfsprogs}" = "yes"; then
24505 ENABLE_NTFSPROGS_TRUE=
24506 ENABLE_NTFSPROGS_FALSE='#'
24507 else
24508 ENABLE_NTFSPROGS_TRUE='#'
24509 ENABLE_NTFSPROGS_FALSE=
24513 # workaround for <autoconf-2.60
24514 if test -z "${docdir}"; then
24515 docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
24518 # workaround for <automake-1.10
24519 if test -z "${MKDIR_P}"; then
24520 MKDIR_P="\$(mkdir_p)"
24524 # generate files
24525 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 ntfsprogs/Makefile ntfsprogs/mkntfs.8 ntfsprogs/ntfscat.8 ntfsprogs/ntfsclone.8 ntfsprogs/ntfscluster.8 ntfsprogs/ntfscmp.8 ntfsprogs/ntfscp.8 ntfsprogs/ntfsfix.8 ntfsprogs/ntfsinfo.8 ntfsprogs/ntfslabel.8 ntfsprogs/ntfsls.8 ntfsprogs/ntfsprogs.8 ntfsprogs/ntfsresize.8 ntfsprogs/ntfsundelete.8 src/Makefile src/ntfs-3g.8 src/ntfs-3g.probe.8 src/ntfs-3g.usermap.8 src/ntfs-3g.secaudit.8"
24527 cat >confcache <<\_ACEOF
24528 # This file is a shell script that caches the results of configure
24529 # tests run on this system so they can be shared between configure
24530 # scripts and configure runs, see configure's option --config-cache.
24531 # It is not useful on other systems. If it contains results you don't
24532 # want to keep, you may remove or edit it.
24534 # config.status only pays attention to the cache file if you give it
24535 # the --recheck option to rerun configure.
24537 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24539 # following values.
24541 _ACEOF
24543 # The following way of writing the cache mishandles newlines in values,
24544 # but we know of no workaround that is simple, portable, and efficient.
24545 # So, we kill variables containing newlines.
24546 # Ultrix sh set writes to stderr and can't be redirected directly,
24547 # and sets the high bit in the cache file unless we assign to the vars.
24549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24550 eval ac_val=\$$ac_var
24551 case $ac_val in #(
24552 *${as_nl}*)
24553 case $ac_var in #(
24554 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24555 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24556 esac
24557 case $ac_var in #(
24558 _ | IFS | as_nl) ;; #(
24559 *) $as_unset $ac_var ;;
24560 esac ;;
24561 esac
24562 done
24564 (set) 2>&1 |
24565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24566 *${as_nl}ac_space=\ *)
24567 # `set' does not quote correctly, so add quotes (double-quote
24568 # substitution turns \\\\ into \\, and sed turns \\ into \).
24569 sed -n \
24570 "s/'/'\\\\''/g;
24571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24572 ;; #(
24574 # `set' quotes correctly as required by POSIX, so do not add quotes.
24575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24577 esac |
24578 sort
24580 sed '
24581 /^ac_cv_env_/b end
24582 t clear
24583 :clear
24584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24585 t end
24586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24587 :end' >>confcache
24588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24589 if test -w "$cache_file"; then
24590 test "x$cache_file" != "x/dev/null" &&
24591 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24592 echo "$as_me: updating cache $cache_file" >&6;}
24593 cat confcache >$cache_file
24594 else
24595 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24596 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24599 rm -f confcache
24601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24602 # Let make expand exec_prefix.
24603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24605 DEFS=-DHAVE_CONFIG_H
24607 ac_libobjs=
24608 ac_ltlibobjs=
24609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24610 # 1. Remove the extension, and $U if already installed.
24611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24612 ac_i=`echo "$ac_i" | sed "$ac_script"`
24613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24614 # will be set to the directory where LIBOBJS objects are built.
24615 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24616 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24617 done
24618 LIBOBJS=$ac_libobjs
24620 LTLIBOBJS=$ac_ltlibobjs
24623 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24624 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24625 Usually this means the macro was only invoked conditionally." >&5
24626 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24627 Usually this means the macro was only invoked conditionally." >&2;}
24628 { (exit 1); exit 1; }; }
24630 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24631 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24632 Usually this means the macro was only invoked conditionally." >&5
24633 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24634 Usually this means the macro was only invoked conditionally." >&2;}
24635 { (exit 1); exit 1; }; }
24637 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24638 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24639 Usually this means the macro was only invoked conditionally." >&5
24640 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24641 Usually this means the macro was only invoked conditionally." >&2;}
24642 { (exit 1); exit 1; }; }
24644 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24645 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24646 Usually this means the macro was only invoked conditionally." >&5
24647 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24648 Usually this means the macro was only invoked conditionally." >&2;}
24649 { (exit 1); exit 1; }; }
24651 if test -z "${ENABLE_CRYPTO_TRUE}" && test -z "${ENABLE_CRYPTO_FALSE}"; then
24652 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_CRYPTO\" was never defined.
24653 Usually this means the macro was only invoked conditionally." >&5
24654 echo "$as_me: error: conditional \"ENABLE_CRYPTO\" was never defined.
24655 Usually this means the macro was only invoked conditionally." >&2;}
24656 { (exit 1); exit 1; }; }
24658 if test -z "${FUSE_INTERNAL_TRUE}" && test -z "${FUSE_INTERNAL_FALSE}"; then
24659 { { echo "$as_me:$LINENO: error: conditional \"FUSE_INTERNAL\" was never defined.
24660 Usually this means the macro was only invoked conditionally." >&5
24661 echo "$as_me: error: conditional \"FUSE_INTERNAL\" was never defined.
24662 Usually this means the macro was only invoked conditionally." >&2;}
24663 { (exit 1); exit 1; }; }
24665 if test -z "${GENERATE_LDSCRIPT_TRUE}" && test -z "${GENERATE_LDSCRIPT_FALSE}"; then
24666 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_LDSCRIPT\" was never defined.
24667 Usually this means the macro was only invoked conditionally." >&5
24668 echo "$as_me: error: conditional \"GENERATE_LDSCRIPT\" was never defined.
24669 Usually this means the macro was only invoked conditionally." >&2;}
24670 { (exit 1); exit 1; }; }
24672 if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
24673 { { echo "$as_me:$LINENO: error: conditional \"WINDOWS\" was never defined.
24674 Usually this means the macro was only invoked conditionally." >&5
24675 echo "$as_me: error: conditional \"WINDOWS\" was never defined.
24676 Usually this means the macro was only invoked conditionally." >&2;}
24677 { (exit 1); exit 1; }; }
24679 if test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_TRUE}" && test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_FALSE}"; then
24680 { { echo "$as_me:$LINENO: error: conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined.
24681 Usually this means the macro was only invoked conditionally." >&5
24682 echo "$as_me: error: conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined.
24683 Usually this means the macro was only invoked conditionally." >&2;}
24684 { (exit 1); exit 1; }; }
24686 if test -z "${RUN_LDCONFIG_TRUE}" && test -z "${RUN_LDCONFIG_FALSE}"; then
24687 { { echo "$as_me:$LINENO: error: conditional \"RUN_LDCONFIG\" was never defined.
24688 Usually this means the macro was only invoked conditionally." >&5
24689 echo "$as_me: error: conditional \"RUN_LDCONFIG\" was never defined.
24690 Usually this means the macro was only invoked conditionally." >&2;}
24691 { (exit 1); exit 1; }; }
24693 if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then
24694 { { echo "$as_me:$LINENO: error: conditional \"REALLYSTATIC\" was never defined.
24695 Usually this means the macro was only invoked conditionally." >&5
24696 echo "$as_me: error: conditional \"REALLYSTATIC\" was never defined.
24697 Usually this means the macro was only invoked conditionally." >&2;}
24698 { (exit 1); exit 1; }; }
24700 if test -z "${INSTALL_LIBRARY_TRUE}" && test -z "${INSTALL_LIBRARY_FALSE}"; then
24701 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBRARY\" was never defined.
24702 Usually this means the macro was only invoked conditionally." >&5
24703 echo "$as_me: error: conditional \"INSTALL_LIBRARY\" was never defined.
24704 Usually this means the macro was only invoked conditionally." >&2;}
24705 { (exit 1); exit 1; }; }
24707 if test -z "${ENABLE_MOUNT_HELPER_TRUE}" && test -z "${ENABLE_MOUNT_HELPER_FALSE}"; then
24708 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOUNT_HELPER\" was never defined.
24709 Usually this means the macro was only invoked conditionally." >&5
24710 echo "$as_me: error: conditional \"ENABLE_MOUNT_HELPER\" was never defined.
24711 Usually this means the macro was only invoked conditionally." >&2;}
24712 { (exit 1); exit 1; }; }
24714 if test -z "${ENABLE_NTFSPROGS_TRUE}" && test -z "${ENABLE_NTFSPROGS_FALSE}"; then
24715 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NTFSPROGS\" was never defined.
24716 Usually this means the macro was only invoked conditionally." >&5
24717 echo "$as_me: error: conditional \"ENABLE_NTFSPROGS\" was never defined.
24718 Usually this means the macro was only invoked conditionally." >&2;}
24719 { (exit 1); exit 1; }; }
24722 : ${CONFIG_STATUS=./config.status}
24723 ac_clean_files_save=$ac_clean_files
24724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24725 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24726 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24727 cat >$CONFIG_STATUS <<_ACEOF
24728 #! $SHELL
24729 # Generated by $as_me.
24730 # Run this file to recreate the current configuration.
24731 # Compiler output produced by configure, useful for debugging
24732 # configure, is in config.log if it exists.
24734 debug=false
24735 ac_cs_recheck=false
24736 ac_cs_silent=false
24737 SHELL=\${CONFIG_SHELL-$SHELL}
24738 _ACEOF
24740 cat >>$CONFIG_STATUS <<\_ACEOF
24741 ## --------------------- ##
24742 ## M4sh Initialization. ##
24743 ## --------------------- ##
24745 # Be more Bourne compatible
24746 DUALCASE=1; export DUALCASE # for MKS sh
24747 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24748 emulate sh
24749 NULLCMD=:
24750 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24751 # is contrary to our usage. Disable this feature.
24752 alias -g '${1+"$@"}'='"$@"'
24753 setopt NO_GLOB_SUBST
24754 else
24755 case `(set -o) 2>/dev/null` in
24756 *posix*) set -o posix ;;
24757 esac
24764 # PATH needs CR
24765 # Avoid depending upon Character Ranges.
24766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24769 as_cr_digits='0123456789'
24770 as_cr_alnum=$as_cr_Letters$as_cr_digits
24772 # The user is always right.
24773 if test "${PATH_SEPARATOR+set}" != set; then
24774 echo "#! /bin/sh" >conf$$.sh
24775 echo "exit 0" >>conf$$.sh
24776 chmod +x conf$$.sh
24777 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24778 PATH_SEPARATOR=';'
24779 else
24780 PATH_SEPARATOR=:
24782 rm -f conf$$.sh
24785 # Support unset when possible.
24786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24787 as_unset=unset
24788 else
24789 as_unset=false
24793 # IFS
24794 # We need space, tab and new line, in precisely that order. Quoting is
24795 # there to prevent editors from complaining about space-tab.
24796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24797 # splitting by setting IFS to empty value.)
24798 as_nl='
24800 IFS=" "" $as_nl"
24802 # Find who we are. Look in the path if we contain no directory separator.
24803 case $0 in
24804 *[\\/]* ) as_myself=$0 ;;
24805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24806 for as_dir in $PATH
24808 IFS=$as_save_IFS
24809 test -z "$as_dir" && as_dir=.
24810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24811 done
24812 IFS=$as_save_IFS
24815 esac
24816 # We did not find ourselves, most probably we were run as `sh COMMAND'
24817 # in which case we are not to be found in the path.
24818 if test "x$as_myself" = x; then
24819 as_myself=$0
24821 if test ! -f "$as_myself"; then
24822 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24823 { (exit 1); exit 1; }
24826 # Work around bugs in pre-3.0 UWIN ksh.
24827 for as_var in ENV MAIL MAILPATH
24828 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24829 done
24830 PS1='$ '
24831 PS2='> '
24832 PS4='+ '
24834 # NLS nuisances.
24835 for as_var in \
24836 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24837 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24838 LC_TELEPHONE LC_TIME
24840 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24841 eval $as_var=C; export $as_var
24842 else
24843 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24845 done
24847 # Required to use basename.
24848 if expr a : '\(a\)' >/dev/null 2>&1 &&
24849 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24850 as_expr=expr
24851 else
24852 as_expr=false
24855 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24856 as_basename=basename
24857 else
24858 as_basename=false
24862 # Name of the executable.
24863 as_me=`$as_basename -- "$0" ||
24864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24865 X"$0" : 'X\(//\)$' \| \
24866 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24867 echo X/"$0" |
24868 sed '/^.*\/\([^/][^/]*\)\/*$/{
24869 s//\1/
24872 /^X\/\(\/\/\)$/{
24873 s//\1/
24876 /^X\/\(\/\).*/{
24877 s//\1/
24880 s/.*/./; q'`
24882 # CDPATH.
24883 $as_unset CDPATH
24887 as_lineno_1=$LINENO
24888 as_lineno_2=$LINENO
24889 test "x$as_lineno_1" != "x$as_lineno_2" &&
24890 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24892 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24893 # uniformly replaced by the line number. The first 'sed' inserts a
24894 # line-number line after each line using $LINENO; the second 'sed'
24895 # does the real work. The second script uses 'N' to pair each
24896 # line-number line with the line containing $LINENO, and appends
24897 # trailing '-' during substitution so that $LINENO is not a special
24898 # case at line end.
24899 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24900 # scripts with optimization help from Paolo Bonzini. Blame Lee
24901 # E. McMahon (1931-1989) for sed's syntax. :-)
24902 sed -n '
24904 /[$]LINENO/=
24905 ' <$as_myself |
24906 sed '
24907 s/[$]LINENO.*/&-/
24908 t lineno
24910 :lineno
24912 :loop
24913 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24914 t loop
24915 s/-\n.*//
24916 ' >$as_me.lineno &&
24917 chmod +x "$as_me.lineno" ||
24918 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24919 { (exit 1); exit 1; }; }
24921 # Don't try to exec as it changes $[0], causing all sort of problems
24922 # (the dirname of $[0] is not the place where we might find the
24923 # original and so on. Autoconf is especially sensitive to this).
24924 . "./$as_me.lineno"
24925 # Exit status is that of the last command.
24926 exit
24930 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24931 as_dirname=dirname
24932 else
24933 as_dirname=false
24936 ECHO_C= ECHO_N= ECHO_T=
24937 case `echo -n x` in
24938 -n*)
24939 case `echo 'x\c'` in
24940 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24941 *) ECHO_C='\c';;
24942 esac;;
24944 ECHO_N='-n';;
24945 esac
24947 if expr a : '\(a\)' >/dev/null 2>&1 &&
24948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24949 as_expr=expr
24950 else
24951 as_expr=false
24954 rm -f conf$$ conf$$.exe conf$$.file
24955 if test -d conf$$.dir; then
24956 rm -f conf$$.dir/conf$$.file
24957 else
24958 rm -f conf$$.dir
24959 mkdir conf$$.dir
24961 echo >conf$$.file
24962 if ln -s conf$$.file conf$$ 2>/dev/null; then
24963 as_ln_s='ln -s'
24964 # ... but there are two gotchas:
24965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24967 # In both cases, we have to default to `cp -p'.
24968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24969 as_ln_s='cp -p'
24970 elif ln conf$$.file conf$$ 2>/dev/null; then
24971 as_ln_s=ln
24972 else
24973 as_ln_s='cp -p'
24975 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24976 rmdir conf$$.dir 2>/dev/null
24978 if mkdir -p . 2>/dev/null; then
24979 as_mkdir_p=:
24980 else
24981 test -d ./-p && rmdir ./-p
24982 as_mkdir_p=false
24985 if test -x / >/dev/null 2>&1; then
24986 as_test_x='test -x'
24987 else
24988 if ls -dL / >/dev/null 2>&1; then
24989 as_ls_L_option=L
24990 else
24991 as_ls_L_option=
24993 as_test_x='
24994 eval sh -c '\''
24995 if test -d "$1"; then
24996 test -d "$1/.";
24997 else
24998 case $1 in
24999 -*)set "./$1";;
25000 esac;
25001 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25002 ???[sx]*):;;*)false;;esac;fi
25003 '\'' sh
25006 as_executable_p=$as_test_x
25008 # Sed expression to map a string onto a valid CPP name.
25009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25011 # Sed expression to map a string onto a valid variable name.
25012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25015 exec 6>&1
25017 # Save the log message, to keep $[0] and so on meaningful, and to
25018 # report actual input values of CONFIG_FILES etc. instead of their
25019 # values after options handling.
25020 ac_log="
25021 This file was extended by ntfs-3g $as_me 2011.4.12, which was
25022 generated by GNU Autoconf 2.61. Invocation command line was
25024 CONFIG_FILES = $CONFIG_FILES
25025 CONFIG_HEADERS = $CONFIG_HEADERS
25026 CONFIG_LINKS = $CONFIG_LINKS
25027 CONFIG_COMMANDS = $CONFIG_COMMANDS
25028 $ $0 $@
25030 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25033 _ACEOF
25035 cat >>$CONFIG_STATUS <<_ACEOF
25036 # Files that config.status was made for.
25037 config_files="$ac_config_files"
25038 config_headers="$ac_config_headers"
25039 config_commands="$ac_config_commands"
25041 _ACEOF
25043 cat >>$CONFIG_STATUS <<\_ACEOF
25044 ac_cs_usage="\
25045 \`$as_me' instantiates files from templates according to the
25046 current configuration.
25048 Usage: $0 [OPTIONS] [FILE]...
25050 -h, --help print this help, then exit
25051 -V, --version print version number and configuration settings, then exit
25052 -q, --quiet do not print progress messages
25053 -d, --debug don't remove temporary files
25054 --recheck update $as_me by reconfiguring in the same conditions
25055 --file=FILE[:TEMPLATE]
25056 instantiate the configuration file FILE
25057 --header=FILE[:TEMPLATE]
25058 instantiate the configuration header FILE
25060 Configuration files:
25061 $config_files
25063 Configuration headers:
25064 $config_headers
25066 Configuration commands:
25067 $config_commands
25069 Report bugs to <bug-autoconf@gnu.org>."
25071 _ACEOF
25072 cat >>$CONFIG_STATUS <<_ACEOF
25073 ac_cs_version="\\
25074 ntfs-3g config.status 2011.4.12
25075 configured by $0, generated by GNU Autoconf 2.61,
25076 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25078 Copyright (C) 2006 Free Software Foundation, Inc.
25079 This config.status script is free software; the Free Software Foundation
25080 gives unlimited permission to copy, distribute and modify it."
25082 ac_pwd='$ac_pwd'
25083 srcdir='$srcdir'
25084 INSTALL='$INSTALL'
25085 MKDIR_P='$MKDIR_P'
25086 _ACEOF
25088 cat >>$CONFIG_STATUS <<\_ACEOF
25089 # If no file are specified by the user, then we need to provide default
25090 # value. By we need to know if files were specified by the user.
25091 ac_need_defaults=:
25092 while test $# != 0
25094 case $1 in
25095 --*=*)
25096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25098 ac_shift=:
25101 ac_option=$1
25102 ac_optarg=$2
25103 ac_shift=shift
25105 esac
25107 case $ac_option in
25108 # Handling of the options.
25109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25110 ac_cs_recheck=: ;;
25111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25112 echo "$ac_cs_version"; exit ;;
25113 --debug | --debu | --deb | --de | --d | -d )
25114 debug=: ;;
25115 --file | --fil | --fi | --f )
25116 $ac_shift
25117 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25118 ac_need_defaults=false;;
25119 --header | --heade | --head | --hea )
25120 $ac_shift
25121 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25122 ac_need_defaults=false;;
25123 --he | --h)
25124 # Conflict between --help and --header
25125 { echo "$as_me: error: ambiguous option: $1
25126 Try \`$0 --help' for more information." >&2
25127 { (exit 1); exit 1; }; };;
25128 --help | --hel | -h )
25129 echo "$ac_cs_usage"; exit ;;
25130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25132 ac_cs_silent=: ;;
25134 # This is an error.
25135 -*) { echo "$as_me: error: unrecognized option: $1
25136 Try \`$0 --help' for more information." >&2
25137 { (exit 1); exit 1; }; } ;;
25139 *) ac_config_targets="$ac_config_targets $1"
25140 ac_need_defaults=false ;;
25142 esac
25143 shift
25144 done
25146 ac_configure_extra_args=
25148 if $ac_cs_silent; then
25149 exec 6>/dev/null
25150 ac_configure_extra_args="$ac_configure_extra_args --silent"
25153 _ACEOF
25154 cat >>$CONFIG_STATUS <<_ACEOF
25155 if \$ac_cs_recheck; then
25156 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25157 CONFIG_SHELL=$SHELL
25158 export CONFIG_SHELL
25159 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25162 _ACEOF
25163 cat >>$CONFIG_STATUS <<\_ACEOF
25164 exec 5>>config.log
25166 echo
25167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25168 ## Running $as_me. ##
25169 _ASBOX
25170 echo "$ac_log"
25171 } >&5
25173 _ACEOF
25174 cat >>$CONFIG_STATUS <<_ACEOF
25176 # INIT-COMMANDS
25178 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25180 _ACEOF
25182 cat >>$CONFIG_STATUS <<\_ACEOF
25184 # Handling of arguments.
25185 for ac_config_target in $ac_config_targets
25187 case $ac_config_target in
25188 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25189 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25190 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25191 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25192 "include/fuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES include/fuse-lite/Makefile" ;;
25193 "include/ntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES include/ntfs-3g/Makefile" ;;
25194 "libfuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES libfuse-lite/Makefile" ;;
25195 "libntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES libntfs-3g/Makefile" ;;
25196 "libntfs-3g/libntfs-3g.pc") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.pc" ;;
25197 "libntfs-3g/libntfs-3g.script.so") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.script.so" ;;
25198 "ntfsprogs/Makefile") CONFIG_FILES="$CONFIG_FILES ntfsprogs/Makefile" ;;
25199 "ntfsprogs/mkntfs.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/mkntfs.8" ;;
25200 "ntfsprogs/ntfscat.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscat.8" ;;
25201 "ntfsprogs/ntfsclone.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsclone.8" ;;
25202 "ntfsprogs/ntfscluster.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscluster.8" ;;
25203 "ntfsprogs/ntfscmp.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscmp.8" ;;
25204 "ntfsprogs/ntfscp.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscp.8" ;;
25205 "ntfsprogs/ntfsfix.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsfix.8" ;;
25206 "ntfsprogs/ntfsinfo.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsinfo.8" ;;
25207 "ntfsprogs/ntfslabel.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfslabel.8" ;;
25208 "ntfsprogs/ntfsls.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsls.8" ;;
25209 "ntfsprogs/ntfsprogs.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsprogs.8" ;;
25210 "ntfsprogs/ntfsresize.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsresize.8" ;;
25211 "ntfsprogs/ntfsundelete.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsundelete.8" ;;
25212 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25213 "src/ntfs-3g.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.8" ;;
25214 "src/ntfs-3g.probe.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.probe.8" ;;
25215 "src/ntfs-3g.usermap.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.usermap.8" ;;
25216 "src/ntfs-3g.secaudit.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.secaudit.8" ;;
25218 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25219 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25220 { (exit 1); exit 1; }; };;
25221 esac
25222 done
25225 # If the user did not use the arguments to specify the items to instantiate,
25226 # then the envvar interface is used. Set only those that are not.
25227 # We use the long form for the default assignment because of an extremely
25228 # bizarre bug on SunOS 4.1.3.
25229 if $ac_need_defaults; then
25230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25232 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25235 # Have a temporary directory for convenience. Make it in the build tree
25236 # simply because there is no reason against having it here, and in addition,
25237 # creating and moving files from /tmp can sometimes cause problems.
25238 # Hook for its removal unless debugging.
25239 # Note that there is a small window in which the directory will not be cleaned:
25240 # after its creation but before its name has been assigned to `$tmp'.
25241 $debug ||
25243 tmp=
25244 trap 'exit_status=$?
25245 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25247 trap '{ (exit 1); exit 1; }' 1 2 13 15
25249 # Create a (secure) tmp directory for tmp files.
25252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25253 test -n "$tmp" && test -d "$tmp"
25254 } ||
25256 tmp=./conf$$-$RANDOM
25257 (umask 077 && mkdir "$tmp")
25258 } ||
25260 echo "$me: cannot create a temporary directory in ." >&2
25261 { (exit 1); exit 1; }
25265 # Set up the sed scripts for CONFIG_FILES section.
25268 # No need to generate the scripts if there are no CONFIG_FILES.
25269 # This happens for instance when ./config.status config.h
25270 if test -n "$CONFIG_FILES"; then
25272 _ACEOF
25276 ac_delim='%!_!# '
25277 for ac_last_try in false false false false false :; do
25278 cat >conf$$subs.sed <<_ACEOF
25279 SHELL!$SHELL$ac_delim
25280 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25281 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25282 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25283 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25284 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25285 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25286 exec_prefix!$exec_prefix$ac_delim
25287 prefix!$prefix$ac_delim
25288 program_transform_name!$program_transform_name$ac_delim
25289 bindir!$bindir$ac_delim
25290 sbindir!$sbindir$ac_delim
25291 libexecdir!$libexecdir$ac_delim
25292 datarootdir!$datarootdir$ac_delim
25293 datadir!$datadir$ac_delim
25294 sysconfdir!$sysconfdir$ac_delim
25295 sharedstatedir!$sharedstatedir$ac_delim
25296 localstatedir!$localstatedir$ac_delim
25297 includedir!$includedir$ac_delim
25298 oldincludedir!$oldincludedir$ac_delim
25299 docdir!$docdir$ac_delim
25300 infodir!$infodir$ac_delim
25301 htmldir!$htmldir$ac_delim
25302 dvidir!$dvidir$ac_delim
25303 pdfdir!$pdfdir$ac_delim
25304 psdir!$psdir$ac_delim
25305 libdir!$libdir$ac_delim
25306 localedir!$localedir$ac_delim
25307 mandir!$mandir$ac_delim
25308 DEFS!$DEFS$ac_delim
25309 ECHO_C!$ECHO_C$ac_delim
25310 ECHO_N!$ECHO_N$ac_delim
25311 ECHO_T!$ECHO_T$ac_delim
25312 LIBS!$LIBS$ac_delim
25313 build_alias!$build_alias$ac_delim
25314 host_alias!$host_alias$ac_delim
25315 target_alias!$target_alias$ac_delim
25316 build!$build$ac_delim
25317 build_cpu!$build_cpu$ac_delim
25318 build_vendor!$build_vendor$ac_delim
25319 build_os!$build_os$ac_delim
25320 host!$host$ac_delim
25321 host_cpu!$host_cpu$ac_delim
25322 host_vendor!$host_vendor$ac_delim
25323 host_os!$host_os$ac_delim
25324 target!$target$ac_delim
25325 target_cpu!$target_cpu$ac_delim
25326 target_vendor!$target_vendor$ac_delim
25327 target_os!$target_os$ac_delim
25328 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25329 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25330 INSTALL_DATA!$INSTALL_DATA$ac_delim
25331 am__isrc!$am__isrc$ac_delim
25332 CYGPATH_W!$CYGPATH_W$ac_delim
25333 PACKAGE!$PACKAGE$ac_delim
25334 VERSION!$VERSION$ac_delim
25335 ACLOCAL!$ACLOCAL$ac_delim
25336 AUTOCONF!$AUTOCONF$ac_delim
25337 AUTOMAKE!$AUTOMAKE$ac_delim
25338 AUTOHEADER!$AUTOHEADER$ac_delim
25339 MAKEINFO!$MAKEINFO$ac_delim
25340 install_sh!$install_sh$ac_delim
25341 STRIP!$STRIP$ac_delim
25342 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25343 mkdir_p!$mkdir_p$ac_delim
25344 AWK!$AWK$ac_delim
25345 SET_MAKE!$SET_MAKE$ac_delim
25346 am__leading_dot!$am__leading_dot$ac_delim
25347 AMTAR!$AMTAR$ac_delim
25348 am__tar!$am__tar$ac_delim
25349 am__untar!$am__untar$ac_delim
25350 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
25351 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
25352 MAINT!$MAINT$ac_delim
25353 CC!$CC$ac_delim
25354 CFLAGS!$CFLAGS$ac_delim
25355 LDFLAGS!$LDFLAGS$ac_delim
25356 CPPFLAGS!$CPPFLAGS$ac_delim
25357 ac_ct_CC!$ac_ct_CC$ac_delim
25358 EXEEXT!$EXEEXT$ac_delim
25359 OBJEXT!$OBJEXT$ac_delim
25360 DEPDIR!$DEPDIR$ac_delim
25361 am__include!$am__include$ac_delim
25362 am__quote!$am__quote$ac_delim
25363 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25364 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25365 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25366 CCDEPMODE!$CCDEPMODE$ac_delim
25367 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25368 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25369 LN_S!$LN_S$ac_delim
25370 SED!$SED$ac_delim
25371 GREP!$GREP$ac_delim
25372 EGREP!$EGREP$ac_delim
25373 ECHO!$ECHO$ac_delim
25374 AR!$AR$ac_delim
25375 RANLIB!$RANLIB$ac_delim
25376 _ACEOF
25378 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25379 break
25380 elif $ac_last_try; then
25381 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25382 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25383 { (exit 1); exit 1; }; }
25384 else
25385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25387 done
25389 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25390 if test -n "$ac_eof"; then
25391 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25392 ac_eof=`expr $ac_eof + 1`
25395 cat >>$CONFIG_STATUS <<_ACEOF
25396 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25398 _ACEOF
25399 sed '
25400 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25401 s/^/s,@/; s/!/@,|#_!!_#|/
25404 s/'"$ac_delim"'$/,g/; t
25405 s/$/\\/; p
25406 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25407 ' >>$CONFIG_STATUS <conf$$subs.sed
25408 rm -f conf$$subs.sed
25409 cat >>$CONFIG_STATUS <<_ACEOF
25410 CEOF$ac_eof
25411 _ACEOF
25414 ac_delim='%!_!# '
25415 for ac_last_try in false false false false false :; do
25416 cat >conf$$subs.sed <<_ACEOF
25417 DSYMUTIL!$DSYMUTIL$ac_delim
25418 NMEDIT!$NMEDIT$ac_delim
25419 CPP!$CPP$ac_delim
25420 CXX!$CXX$ac_delim
25421 CXXFLAGS!$CXXFLAGS$ac_delim
25422 ac_ct_CXX!$ac_ct_CXX$ac_delim
25423 CXXDEPMODE!$CXXDEPMODE$ac_delim
25424 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25425 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25426 CXXCPP!$CXXCPP$ac_delim
25427 F77!$F77$ac_delim
25428 FFLAGS!$FFLAGS$ac_delim
25429 ac_ct_F77!$ac_ct_F77$ac_delim
25430 LIBTOOL!$LIBTOOL$ac_delim
25431 PKG_CONFIG!$PKG_CONFIG$ac_delim
25432 MV!$MV$ac_delim
25433 RM!$RM$ac_delim
25434 LDCONFIG!$LDCONFIG$ac_delim
25435 FUSE_MODULE_CFLAGS!$FUSE_MODULE_CFLAGS$ac_delim
25436 FUSE_MODULE_LIBS!$FUSE_MODULE_LIBS$ac_delim
25437 LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
25438 LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
25439 LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
25440 GNUTLS_CFLAGS!$GNUTLS_CFLAGS$ac_delim
25441 GNUTLS_LIBS!$GNUTLS_LIBS$ac_delim
25442 ENABLE_CRYPTO_TRUE!$ENABLE_CRYPTO_TRUE$ac_delim
25443 ENABLE_CRYPTO_FALSE!$ENABLE_CRYPTO_FALSE$ac_delim
25444 all_includes!$all_includes$ac_delim
25445 all_libraries!$all_libraries$ac_delim
25446 LIBOBJS!$LIBOBJS$ac_delim
25447 pkgconfigdir!$pkgconfigdir$ac_delim
25448 ntfs3gincludedir!$ntfs3gincludedir$ac_delim
25449 rootbindir!$rootbindir$ac_delim
25450 rootsbindir!$rootsbindir$ac_delim
25451 rootlibdir!$rootlibdir$ac_delim
25452 LIBNTFS_3G_VERSION!$LIBNTFS_3G_VERSION$ac_delim
25453 LIBFUSE_LITE_LIBS!$LIBFUSE_LITE_LIBS$ac_delim
25454 MKNTFS_CPPFLAGS!$MKNTFS_CPPFLAGS$ac_delim
25455 MKNTFS_LIBS!$MKNTFS_LIBS$ac_delim
25456 OUTPUT_FORMAT!$OUTPUT_FORMAT$ac_delim
25457 FUSE_INTERNAL_TRUE!$FUSE_INTERNAL_TRUE$ac_delim
25458 FUSE_INTERNAL_FALSE!$FUSE_INTERNAL_FALSE$ac_delim
25459 GENERATE_LDSCRIPT_TRUE!$GENERATE_LDSCRIPT_TRUE$ac_delim
25460 GENERATE_LDSCRIPT_FALSE!$GENERATE_LDSCRIPT_FALSE$ac_delim
25461 WINDOWS_TRUE!$WINDOWS_TRUE$ac_delim
25462 WINDOWS_FALSE!$WINDOWS_FALSE$ac_delim
25463 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE!$NTFS_DEVICE_DEFAULT_IO_OPS_TRUE$ac_delim
25464 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE!$NTFS_DEVICE_DEFAULT_IO_OPS_FALSE$ac_delim
25465 RUN_LDCONFIG_TRUE!$RUN_LDCONFIG_TRUE$ac_delim
25466 RUN_LDCONFIG_FALSE!$RUN_LDCONFIG_FALSE$ac_delim
25467 REALLYSTATIC_TRUE!$REALLYSTATIC_TRUE$ac_delim
25468 REALLYSTATIC_FALSE!$REALLYSTATIC_FALSE$ac_delim
25469 INSTALL_LIBRARY_TRUE!$INSTALL_LIBRARY_TRUE$ac_delim
25470 INSTALL_LIBRARY_FALSE!$INSTALL_LIBRARY_FALSE$ac_delim
25471 ENABLE_MOUNT_HELPER_TRUE!$ENABLE_MOUNT_HELPER_TRUE$ac_delim
25472 ENABLE_MOUNT_HELPER_FALSE!$ENABLE_MOUNT_HELPER_FALSE$ac_delim
25473 ENABLE_NTFSPROGS_TRUE!$ENABLE_NTFSPROGS_TRUE$ac_delim
25474 ENABLE_NTFSPROGS_FALSE!$ENABLE_NTFSPROGS_FALSE$ac_delim
25475 MKDIR_P!$MKDIR_P$ac_delim
25476 LTLIBOBJS!$LTLIBOBJS$ac_delim
25477 _ACEOF
25479 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
25480 break
25481 elif $ac_last_try; then
25482 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25483 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25484 { (exit 1); exit 1; }; }
25485 else
25486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25488 done
25490 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25491 if test -n "$ac_eof"; then
25492 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25493 ac_eof=`expr $ac_eof + 1`
25496 cat >>$CONFIG_STATUS <<_ACEOF
25497 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25499 _ACEOF
25500 sed '
25501 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25502 s/^/s,@/; s/!/@,|#_!!_#|/
25505 s/'"$ac_delim"'$/,g/; t
25506 s/$/\\/; p
25507 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25508 ' >>$CONFIG_STATUS <conf$$subs.sed
25509 rm -f conf$$subs.sed
25510 cat >>$CONFIG_STATUS <<_ACEOF
25511 :end
25512 s/|#_!!_#|//g
25513 CEOF$ac_eof
25514 _ACEOF
25517 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25518 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25519 # trailing colons and then remove the whole line if VPATH becomes empty
25520 # (actually we leave an empty line to preserve line numbers).
25521 if test "x$srcdir" = x.; then
25522 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25523 s/:*\$(srcdir):*/:/
25524 s/:*\${srcdir}:*/:/
25525 s/:*@srcdir@:*/:/
25526 s/^\([^=]*=[ ]*\):*/\1/
25527 s/:*$//
25528 s/^[^=]*=[ ]*$//
25532 cat >>$CONFIG_STATUS <<\_ACEOF
25533 fi # test -n "$CONFIG_FILES"
25536 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25538 case $ac_tag in
25539 :[FHLC]) ac_mode=$ac_tag; continue;;
25540 esac
25541 case $ac_mode$ac_tag in
25542 :[FHL]*:*);;
25543 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25544 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25545 { (exit 1); exit 1; }; };;
25546 :[FH]-) ac_tag=-:-;;
25547 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25548 esac
25549 ac_save_IFS=$IFS
25550 IFS=:
25551 set x $ac_tag
25552 IFS=$ac_save_IFS
25553 shift
25554 ac_file=$1
25555 shift
25557 case $ac_mode in
25558 :L) ac_source=$1;;
25559 :[FH])
25560 ac_file_inputs=
25561 for ac_f
25563 case $ac_f in
25564 -) ac_f="$tmp/stdin";;
25565 *) # Look for the file first in the build tree, then in the source tree
25566 # (if the path is not absolute). The absolute path cannot be DOS-style,
25567 # because $ac_f cannot contain `:'.
25568 test -f "$ac_f" ||
25569 case $ac_f in
25570 [\\/$]*) false;;
25571 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25572 esac ||
25573 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25574 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25575 { (exit 1); exit 1; }; };;
25576 esac
25577 ac_file_inputs="$ac_file_inputs $ac_f"
25578 done
25580 # Let's still pretend it is `configure' which instantiates (i.e., don't
25581 # use $as_me), people would be surprised to read:
25582 # /* config.h. Generated by config.status. */
25583 configure_input="Generated from "`IFS=:
25584 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25585 if test x"$ac_file" != x-; then
25586 configure_input="$ac_file. $configure_input"
25587 { echo "$as_me:$LINENO: creating $ac_file" >&5
25588 echo "$as_me: creating $ac_file" >&6;}
25591 case $ac_tag in
25592 *:-:* | *:-) cat >"$tmp/stdin";;
25593 esac
25595 esac
25597 ac_dir=`$as_dirname -- "$ac_file" ||
25598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25599 X"$ac_file" : 'X\(//\)[^/]' \| \
25600 X"$ac_file" : 'X\(//\)$' \| \
25601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25602 echo X"$ac_file" |
25603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25604 s//\1/
25607 /^X\(\/\/\)[^/].*/{
25608 s//\1/
25611 /^X\(\/\/\)$/{
25612 s//\1/
25615 /^X\(\/\).*/{
25616 s//\1/
25619 s/.*/./; q'`
25620 { as_dir="$ac_dir"
25621 case $as_dir in #(
25622 -*) as_dir=./$as_dir;;
25623 esac
25624 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25625 as_dirs=
25626 while :; do
25627 case $as_dir in #(
25628 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25629 *) as_qdir=$as_dir;;
25630 esac
25631 as_dirs="'$as_qdir' $as_dirs"
25632 as_dir=`$as_dirname -- "$as_dir" ||
25633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25634 X"$as_dir" : 'X\(//\)[^/]' \| \
25635 X"$as_dir" : 'X\(//\)$' \| \
25636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25637 echo X"$as_dir" |
25638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25639 s//\1/
25642 /^X\(\/\/\)[^/].*/{
25643 s//\1/
25646 /^X\(\/\/\)$/{
25647 s//\1/
25650 /^X\(\/\).*/{
25651 s//\1/
25654 s/.*/./; q'`
25655 test -d "$as_dir" && break
25656 done
25657 test -z "$as_dirs" || eval "mkdir $as_dirs"
25658 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25659 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25660 { (exit 1); exit 1; }; }; }
25661 ac_builddir=.
25663 case "$ac_dir" in
25664 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25666 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25667 # A ".." for each directory in $ac_dir_suffix.
25668 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25669 case $ac_top_builddir_sub in
25670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25672 esac ;;
25673 esac
25674 ac_abs_top_builddir=$ac_pwd
25675 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25676 # for backward compatibility:
25677 ac_top_builddir=$ac_top_build_prefix
25679 case $srcdir in
25680 .) # We are building in place.
25681 ac_srcdir=.
25682 ac_top_srcdir=$ac_top_builddir_sub
25683 ac_abs_top_srcdir=$ac_pwd ;;
25684 [\\/]* | ?:[\\/]* ) # Absolute name.
25685 ac_srcdir=$srcdir$ac_dir_suffix;
25686 ac_top_srcdir=$srcdir
25687 ac_abs_top_srcdir=$srcdir ;;
25688 *) # Relative name.
25689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25690 ac_top_srcdir=$ac_top_build_prefix$srcdir
25691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25692 esac
25693 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25696 case $ac_mode in
25699 # CONFIG_FILE
25702 case $INSTALL in
25703 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25704 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25705 esac
25706 ac_MKDIR_P=$MKDIR_P
25707 case $MKDIR_P in
25708 [\\/$]* | ?:[\\/]* ) ;;
25709 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25710 esac
25711 _ACEOF
25713 cat >>$CONFIG_STATUS <<\_ACEOF
25714 # If the template does not know about datarootdir, expand it.
25715 # FIXME: This hack should be removed a few years after 2.60.
25716 ac_datarootdir_hack=; ac_datarootdir_seen=
25718 case `sed -n '/datarootdir/ {
25722 /@datadir@/p
25723 /@docdir@/p
25724 /@infodir@/p
25725 /@localedir@/p
25726 /@mandir@/p
25727 ' $ac_file_inputs` in
25728 *datarootdir*) ac_datarootdir_seen=yes;;
25729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25730 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25731 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25732 _ACEOF
25733 cat >>$CONFIG_STATUS <<_ACEOF
25734 ac_datarootdir_hack='
25735 s&@datadir@&$datadir&g
25736 s&@docdir@&$docdir&g
25737 s&@infodir@&$infodir&g
25738 s&@localedir@&$localedir&g
25739 s&@mandir@&$mandir&g
25740 s&\\\${datarootdir}&$datarootdir&g' ;;
25741 esac
25742 _ACEOF
25744 # Neutralize VPATH when `$srcdir' = `.'.
25745 # Shell code in configure.ac might set extrasub.
25746 # FIXME: do we really want to maintain this feature?
25747 cat >>$CONFIG_STATUS <<_ACEOF
25748 sed "$ac_vpsub
25749 $extrasub
25750 _ACEOF
25751 cat >>$CONFIG_STATUS <<\_ACEOF
25753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25754 s&@configure_input@&$configure_input&;t t
25755 s&@top_builddir@&$ac_top_builddir_sub&;t t
25756 s&@srcdir@&$ac_srcdir&;t t
25757 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25758 s&@top_srcdir@&$ac_top_srcdir&;t t
25759 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25760 s&@builddir@&$ac_builddir&;t t
25761 s&@abs_builddir@&$ac_abs_builddir&;t t
25762 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25763 s&@INSTALL@&$ac_INSTALL&;t t
25764 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25765 $ac_datarootdir_hack
25766 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25769 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25771 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25772 which seems to be undefined. Please make sure it is defined." >&5
25773 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25774 which seems to be undefined. Please make sure it is defined." >&2;}
25776 rm -f "$tmp/stdin"
25777 case $ac_file in
25778 -) cat "$tmp/out"; rm -f "$tmp/out";;
25779 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25780 esac
25784 # CONFIG_HEADER
25786 _ACEOF
25788 # Transform confdefs.h into a sed script `conftest.defines', that
25789 # substitutes the proper values into config.h.in to produce config.h.
25790 rm -f conftest.defines conftest.tail
25791 # First, append a space to every undef/define line, to ease matching.
25792 echo 's/$/ /' >conftest.defines
25793 # Then, protect against being on the right side of a sed subst, or in
25794 # an unquoted here document, in config.status. If some macros were
25795 # called several times there might be several #defines for the same
25796 # symbol, which is useless. But do not sort them, since the last
25797 # AC_DEFINE must be honored.
25798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25799 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25800 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25801 # PARAMS is the parameter list in the macro definition--in most cases, it's
25802 # just an empty string.
25803 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25804 ac_dB='\\)[ (].*,\\1define\\2'
25805 ac_dC=' '
25806 ac_dD=' ,'
25808 uniq confdefs.h |
25809 sed -n '
25810 t rset
25811 :rset
25812 s/^[ ]*#[ ]*define[ ][ ]*//
25813 t ok
25816 s/[\\&,]/\\&/g
25817 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25818 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25819 ' >>conftest.defines
25821 # Remove the space that was appended to ease matching.
25822 # Then replace #undef with comments. This is necessary, for
25823 # example, in the case of _POSIX_SOURCE, which is predefined and required
25824 # on some systems where configure will not decide to define it.
25825 # (The regexp can be short, since the line contains either #define or #undef.)
25826 echo 's/ $//
25827 s,^[ #]*u.*,/* & */,' >>conftest.defines
25829 # Break up conftest.defines:
25830 ac_max_sed_lines=50
25832 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25833 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25834 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25835 # et cetera.
25836 ac_in='$ac_file_inputs'
25837 ac_out='"$tmp/out1"'
25838 ac_nxt='"$tmp/out2"'
25840 while :
25842 # Write a here document:
25843 cat >>$CONFIG_STATUS <<_ACEOF
25844 # First, check the format of the line:
25845 cat >"\$tmp/defines.sed" <<\\CEOF
25846 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25847 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25849 :def
25850 _ACEOF
25851 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25852 echo 'CEOF
25853 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25854 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25855 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25856 grep . conftest.tail >/dev/null || break
25857 rm -f conftest.defines
25858 mv conftest.tail conftest.defines
25859 done
25860 rm -f conftest.defines conftest.tail
25862 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25863 cat >>$CONFIG_STATUS <<\_ACEOF
25864 if test x"$ac_file" != x-; then
25865 echo "/* $configure_input */" >"$tmp/config.h"
25866 cat "$ac_result" >>"$tmp/config.h"
25867 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25868 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25869 echo "$as_me: $ac_file is unchanged" >&6;}
25870 else
25871 rm -f $ac_file
25872 mv "$tmp/config.h" $ac_file
25874 else
25875 echo "/* $configure_input */"
25876 cat "$ac_result"
25878 rm -f "$tmp/out12"
25879 # Compute $ac_file's index in $config_headers.
25880 _am_arg=$ac_file
25881 _am_stamp_count=1
25882 for _am_header in $config_headers :; do
25883 case $_am_header in
25884 $_am_arg | $_am_arg:* )
25885 break ;;
25887 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25888 esac
25889 done
25890 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25891 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25892 X"$_am_arg" : 'X\(//\)[^/]' \| \
25893 X"$_am_arg" : 'X\(//\)$' \| \
25894 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25895 echo X"$_am_arg" |
25896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25897 s//\1/
25900 /^X\(\/\/\)[^/].*/{
25901 s//\1/
25904 /^X\(\/\/\)$/{
25905 s//\1/
25908 /^X\(\/\).*/{
25909 s//\1/
25912 s/.*/./; q'`/stamp-h$_am_stamp_count
25915 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25916 echo "$as_me: executing $ac_file commands" >&6;}
25918 esac
25921 case $ac_file$ac_mode in
25922 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25923 # Strip MF so we end up with the name of the file.
25924 mf=`echo "$mf" | sed -e 's/:.*$//'`
25925 # Check whether this is an Automake generated Makefile or not.
25926 # We used to match only the files named `Makefile.in', but
25927 # some people rename them; so instead we look at the file content.
25928 # Grep'ing the first line is not enough: some people post-process
25929 # each Makefile.in and add a new line on top of each file to say so.
25930 # Grep'ing the whole file is not good either: AIX grep has a line
25931 # limit of 2048, but all sed's we know have understand at least 4000.
25932 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25933 dirpart=`$as_dirname -- "$mf" ||
25934 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25935 X"$mf" : 'X\(//\)[^/]' \| \
25936 X"$mf" : 'X\(//\)$' \| \
25937 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25938 echo X"$mf" |
25939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25940 s//\1/
25943 /^X\(\/\/\)[^/].*/{
25944 s//\1/
25947 /^X\(\/\/\)$/{
25948 s//\1/
25951 /^X\(\/\).*/{
25952 s//\1/
25955 s/.*/./; q'`
25956 else
25957 continue
25959 # Extract the definition of DEPDIR, am__include, and am__quote
25960 # from the Makefile without running `make'.
25961 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25962 test -z "$DEPDIR" && continue
25963 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25964 test -z "am__include" && continue
25965 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25966 # When using ansi2knr, U may be empty or an underscore; expand it
25967 U=`sed -n 's/^U = //p' < "$mf"`
25968 # Find all dependency output files, they are included files with
25969 # $(DEPDIR) in their names. We invoke sed twice because it is the
25970 # simplest approach to changing $(DEPDIR) to its actual value in the
25971 # expansion.
25972 for file in `sed -n "
25973 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25974 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25975 # Make sure the directory exists.
25976 test -f "$dirpart/$file" && continue
25977 fdir=`$as_dirname -- "$file" ||
25978 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25979 X"$file" : 'X\(//\)[^/]' \| \
25980 X"$file" : 'X\(//\)$' \| \
25981 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25982 echo X"$file" |
25983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25984 s//\1/
25987 /^X\(\/\/\)[^/].*/{
25988 s//\1/
25991 /^X\(\/\/\)$/{
25992 s//\1/
25995 /^X\(\/\).*/{
25996 s//\1/
25999 s/.*/./; q'`
26000 { as_dir=$dirpart/$fdir
26001 case $as_dir in #(
26002 -*) as_dir=./$as_dir;;
26003 esac
26004 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26005 as_dirs=
26006 while :; do
26007 case $as_dir in #(
26008 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26009 *) as_qdir=$as_dir;;
26010 esac
26011 as_dirs="'$as_qdir' $as_dirs"
26012 as_dir=`$as_dirname -- "$as_dir" ||
26013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26014 X"$as_dir" : 'X\(//\)[^/]' \| \
26015 X"$as_dir" : 'X\(//\)$' \| \
26016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26017 echo X"$as_dir" |
26018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26019 s//\1/
26022 /^X\(\/\/\)[^/].*/{
26023 s//\1/
26026 /^X\(\/\/\)$/{
26027 s//\1/
26030 /^X\(\/\).*/{
26031 s//\1/
26034 s/.*/./; q'`
26035 test -d "$as_dir" && break
26036 done
26037 test -z "$as_dirs" || eval "mkdir $as_dirs"
26038 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26039 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26040 { (exit 1); exit 1; }; }; }
26041 # echo "creating $dirpart/$file"
26042 echo '# dummy' > "$dirpart/$file"
26043 done
26044 done
26047 esac
26048 done # for ac_tag
26051 { (exit 0); exit 0; }
26052 _ACEOF
26053 chmod +x $CONFIG_STATUS
26054 ac_clean_files=$ac_clean_files_save
26057 # configure is writing to config.log, and then calls config.status.
26058 # config.status does its own redirection, appending to config.log.
26059 # Unfortunately, on DOS this fails, as config.log is still kept open
26060 # by configure, so config.status won't be able to write to it; its
26061 # output is simply discarded. So we exec the FD to /dev/null,
26062 # effectively closing config.log, so it can be properly (re)opened and
26063 # appended to by config.status. When coming back to configure, we
26064 # need to make the FD available again.
26065 if test "$no_create" != yes; then
26066 ac_cs_success=:
26067 ac_config_status_args=
26068 test "$silent" = yes &&
26069 ac_config_status_args="$ac_config_status_args --quiet"
26070 exec 5>/dev/null
26071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26072 exec 5>>config.log
26073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26074 # would make configure fail if this is the last instruction.
26075 $ac_cs_success || { (exit 1); exit 1; }
26079 if test "${with_fuse}" = "external"; then
26080 if ! echo "x$FUSE_LIB_PATH" | grep -- "x-L/lib" > /dev/null; then
26081 cat <<EOF
26082 ****************************************************************************
26083 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
26084 * The FUSE user space binaries were NOT installed with root directory *
26085 * executable prefix. This means that automounting NTFS volumes during boot *
26086 * could fail. This can be fixed the below way by reinstalling FUSE using *
26087 * the right 'configure' option during FUSE compilation: *
26088 * ./configure --exec-prefix=/ *
26089 * make && sudo make install *
26090 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
26091 ****************************************************************************
26096 echo "You can type now 'make' to build ntfs-3g."