Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / iscsi / dist / configure
bloba49a8d91c2fac8e04cee9299a50898a36603da0a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for netbsd-iscsi 20090622.
5 # Report bugs to <Alistair Crooks <agc@NetBSD.org>>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 esac
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
608 exit 0
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
626 done
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
650 done
651 IFS="$lt_save_ifs"
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
699 prev="$cmd"
700 done
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738 # Initializations.
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='netbsd-iscsi'
752 PACKAGE_TARNAME='netbsd-iscsi'
753 PACKAGE_VERSION='20090622'
754 PACKAGE_STRING='netbsd-iscsi 20090622'
755 PACKAGE_BUGREPORT='Alistair Crooks <agc@NetBSD.org>'
757 ac_unique_file="src/lib/iscsi.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 LIBTOOL
797 ac_ct_F77
798 FFLAGS
800 CXXCPP
801 am__fastdepCXX_FALSE
802 am__fastdepCXX_TRUE
803 CXXDEPMODE
804 ac_ct_CXX
805 CXXFLAGS
809 ECHO
810 LN_S
811 EGREP
812 GREP
814 RANLIB
815 am__fastdepCC_FALSE
816 am__fastdepCC_TRUE
817 CCDEPMODE
818 AMDEPBACKSLASH
819 AMDEP_FALSE
820 AMDEP_TRUE
821 am__quote
822 am__include
823 DEPDIR
824 OBJEXT
825 EXEEXT
826 ac_ct_CC
827 CPPFLAGS
828 LDFLAGS
829 CFLAGS
831 CANONICAL_HOST
832 host_os
833 host_vendor
834 host_cpu
835 host
836 build_os
837 build_vendor
838 build_cpu
839 build
840 MAINT
841 MAINTAINER_MODE_FALSE
842 MAINTAINER_MODE_TRUE
843 am__untar
844 am__tar
845 AMTAR
846 am__leading_dot
847 SET_MAKE
849 mkdir_p
850 MKDIR_P
851 INSTALL_STRIP_PROGRAM
852 STRIP
853 install_sh
854 MAKEINFO
855 AUTOHEADER
856 AUTOMAKE
857 AUTOCONF
858 ACLOCAL
859 VERSION
860 PACKAGE
861 CYGPATH_W
862 am__isrc
863 INSTALL_DATA
864 INSTALL_SCRIPT
865 INSTALL_PROGRAM
866 target_alias
867 host_alias
868 build_alias
869 LIBS
870 ECHO_T
871 ECHO_N
872 ECHO_C
873 DEFS
874 mandir
875 localedir
876 libdir
877 psdir
878 pdfdir
879 dvidir
880 htmldir
881 infodir
882 docdir
883 oldincludedir
884 includedir
885 localstatedir
886 sharedstatedir
887 sysconfdir
888 datadir
889 datarootdir
890 libexecdir
891 sbindir
892 bindir
893 program_transform_name
894 prefix
895 exec_prefix
896 PACKAGE_BUGREPORT
897 PACKAGE_STRING
898 PACKAGE_VERSION
899 PACKAGE_TARNAME
900 PACKAGE_NAME
901 PATH_SEPARATOR
902 SHELL'
903 ac_subst_files=''
904 ac_user_opts='
905 enable_option_checking
906 enable_maintainer_mode
907 enable_dependency_tracking
908 enable_shared
909 enable_static
910 enable_fast_install
911 with_gnu_ld
912 enable_libtool_lock
913 with_pic
914 with_tags
916 ac_precious_vars='build_alias
917 host_alias
918 target_alias
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
926 CXXFLAGS
928 CXXCPP
930 FFLAGS'
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
973 htmldir='${docdir}'
974 dvidir='${docdir}'
975 pdfdir='${docdir}'
976 psdir='${docdir}'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
981 ac_prev=
982 ac_dashdash=
983 for ac_option
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
988 ac_prev=
989 continue
992 case $ac_option in
993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *) ac_optarg=yes ;;
995 esac
997 # Accept the important Cygnus configure options, so we can diagnose typos.
999 case $ac_dashdash$ac_option in
1001 ac_dashdash=yes ;;
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1023 -datadir | --datadir | --datadi | --datad)
1024 ac_prev=datadir ;;
1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1026 datadir=$ac_optarg ;;
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1035 -disable-* | --disable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1053 ac_prev=docdir ;;
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058 ac_prev=dvidir ;;
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=\$ac_optarg ;;
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 ac_prev=sbindir ;;
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 | --sbi=* | --sb=*)
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1231 | --sha | --sh)
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 | --sha=* | --sh=*)
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1240 ac_prev=site ;;
1241 -site=* | --site=* | --sit=*)
1242 site=$ac_optarg ;;
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 ac_prev=srcdir ;;
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 verbose=yes ;;
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1267 -with-* | --with-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=\$ac_optarg ;;
1284 -without-* | --without-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1289 { (exit 1); exit 1; }; }
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 esac
1342 done
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
1350 if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
1353 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1354 { (exit 1); exit 1; }; } ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 esac
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1367 case $ac_val in
1368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1371 esac
1372 # Be sure to have absolute directory names.
1373 case $ac_val in
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 esac
1377 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1378 { (exit 1); exit 1; }; }
1379 done
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1409 { (exit 1); exit 1; }; }
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1412 { (exit 1); exit 1; }; }
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1433 /^X\(\/\/\)$/{
1434 s//\1/
1437 /^X\(\/\).*/{
1438 s//\1/
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1446 else
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1452 { (exit 1); exit 1; }; }
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1457 { (exit 1); exit 1; }; }
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures netbsd-iscsi 20090622 to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/netbsd-iscsi]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1538 cat <<\_ACEOF
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 _ACEOF
1551 if test -n "$ac_init_help"; then
1552 case $ac_init_help in
1553 short | recursive ) echo "Configuration of netbsd-iscsi 20090622:";;
1554 esac
1555 cat <<\_ACEOF
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-maintainer-mode enable make rules and dependencies not useful
1562 (and sometimes confusing) to the casual installer
1563 --disable-dependency-tracking speeds up one-time build
1564 --enable-dependency-tracking do not reject slow dependency extractors
1565 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 --enable-static[=PKGS] build static libraries [default=yes]
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1571 Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
1577 --with-tags[=TAGS] include additional configurations [automatic]
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
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 Report bugs to <Alistair Crooks <agc@NetBSD.org>>.
1598 _ACEOF
1599 ac_status=$?
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607 continue
1608 ac_builddir=.
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1626 case $srcdir in
1627 .) # We are building in place.
1628 ac_srcdir=.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1650 else
1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1654 done
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659 cat <<\_ACEOF
1660 netbsd-iscsi configure 20090622
1661 generated by GNU Autoconf 2.63
1663 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1664 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668 exit
1670 cat >config.log <<_ACEOF
1671 This file contains any messages produced by compilers while
1672 running configure, to aid debugging if configure makes a mistake.
1674 It was created by netbsd-iscsi $as_me 20090622, which was
1675 generated by GNU Autoconf 2.63. Invocation command line was
1677 $ $0 $@
1679 _ACEOF
1680 exec 5>>config.log
1682 cat <<_ASUNAME
1683 ## --------- ##
1684 ## Platform. ##
1685 ## --------- ##
1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704 _ASUNAME
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 $as_echo "PATH: $as_dir"
1712 done
1713 IFS=$as_save_IFS
1715 } >&5
1717 cat >&5 <<_ACEOF
1720 ## ----------- ##
1721 ## Core tests. ##
1722 ## ----------- ##
1724 _ACEOF
1727 # Keep a trace of the command line.
1728 # Strip out --no-create and --no-recursion so they do not pile up.
1729 # Strip out --silent because we don't want to record it for future runs.
1730 # Also quote any args containing shell meta-characters.
1731 # Make two passes to allow for proper duplicate-argument suppression.
1732 ac_configure_args=
1733 ac_configure_args0=
1734 ac_configure_args1=
1735 ac_must_keep_next=false
1736 for ac_pass in 1 2
1738 for ac_arg
1740 case $ac_arg in
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1744 continue ;;
1745 *\'*)
1746 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 esac
1748 case $ac_pass in
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
1753 ac_must_keep_next=false # Got value, back to normal.
1754 else
1755 case $ac_arg in
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 esac
1764 -* ) ac_must_keep_next=true ;;
1765 esac
1767 ac_configure_args="$ac_configure_args '$ac_arg'"
1769 esac
1770 done
1771 done
1772 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775 # When interrupted or exit'd, cleanup temporary files, and complete
1776 # config.log. We remove comments because anyway the quotes in there
1777 # would cause problems or look ugly.
1778 # WARNING: Use '\'' to represent an apostrophe within the trap.
1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780 trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1783 echo
1785 cat <<\_ASBOX
1786 ## ---------------- ##
1787 ## Cache variables. ##
1788 ## ---------------- ##
1789 _ASBOX
1790 echo
1791 # The following way of writing the cache mishandles newlines in values,
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in #(
1796 *${as_nl}*)
1797 case $ac_var in #(
1798 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1800 esac
1801 case $ac_var in #(
1802 _ | IFS | as_nl) ;; #(
1803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1804 *) $as_unset $ac_var ;;
1805 esac ;;
1806 esac
1807 done
1808 (set) 2>&1 |
1809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
1811 sed -n \
1812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 ;; #(
1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 esac |
1819 sort
1821 echo
1823 cat <<\_ASBOX
1824 ## ----------------- ##
1825 ## Output variables. ##
1826 ## ----------------- ##
1827 _ASBOX
1828 echo
1829 for ac_var in $ac_subst_vars
1831 eval ac_val=\$$ac_var
1832 case $ac_val in
1833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 esac
1835 $as_echo "$ac_var='\''$ac_val'\''"
1836 done | sort
1837 echo
1839 if test -n "$ac_subst_files"; then
1840 cat <<\_ASBOX
1841 ## ------------------- ##
1842 ## File substitutions. ##
1843 ## ------------------- ##
1844 _ASBOX
1845 echo
1846 for ac_var in $ac_subst_files
1848 eval ac_val=\$$ac_var
1849 case $ac_val in
1850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 esac
1852 $as_echo "$ac_var='\''$ac_val'\''"
1853 done | sort
1854 echo
1857 if test -s confdefs.h; then
1858 cat <<\_ASBOX
1859 ## ----------- ##
1860 ## confdefs.h. ##
1861 ## ----------- ##
1862 _ASBOX
1863 echo
1864 cat confdefs.h
1865 echo
1867 test "$ac_signal" != 0 &&
1868 $as_echo "$as_me: caught signal $ac_signal"
1869 $as_echo "$as_me: exit $exit_status"
1870 } >&5
1871 rm -f core *.core core.conftest.* &&
1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1873 exit $exit_status
1875 for ac_signal in 1 2 13 15; do
1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877 done
1878 ac_signal=0
1880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1881 rm -f -r conftest* confdefs.h
1883 # Predefined preprocessor variables.
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_NAME "$PACKAGE_NAME"
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1897 _ACEOF
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_STRING "$PACKAGE_STRING"
1902 _ACEOF
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907 _ACEOF
1910 # Let the site file select an alternate cache file if it wants to.
1911 # Prefer an explicitly selected file to automatically selected ones.
1912 ac_site_file1=NONE
1913 ac_site_file2=NONE
1914 if test -n "$CONFIG_SITE"; then
1915 ac_site_file1=$CONFIG_SITE
1916 elif test "x$prefix" != xNONE; then
1917 ac_site_file1=$prefix/share/config.site
1918 ac_site_file2=$prefix/etc/config.site
1919 else
1920 ac_site_file1=$ac_default_prefix/share/config.site
1921 ac_site_file2=$ac_default_prefix/etc/config.site
1923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1925 test "x$ac_site_file" = xNONE && continue
1926 if test -r "$ac_site_file"; then
1927 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1930 . "$ac_site_file"
1932 done
1934 if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 $as_echo "$as_me: loading cache $cache_file" >&6;}
1940 case $cache_file in
1941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
1943 esac
1945 else
1946 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 $as_echo "$as_me: creating cache $cache_file" >&6;}
1948 >$cache_file
1951 # Check that the precious variables saved in the cache have kept the same
1952 # value.
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
1959 case $ac_old_set,$ac_new_set in
1960 set,)
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,set)
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,);;
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
1971 # differences in whitespace do not lead to failure.
1972 ac_old_val_w=`echo x $ac_old_val`
1973 ac_new_val_w=`echo x $ac_new_val`
1974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1975 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1977 ac_cache_corrupted=:
1978 else
1979 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1981 eval $ac_var=\$ac_old_val
1983 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1984 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1985 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1987 fi;;
1988 esac
1989 # Pass precious variables to config.status.
1990 if test "$ac_new_set" = set; then
1991 case $ac_new_val in
1992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1993 *) ac_arg=$ac_var=$ac_new_val ;;
1994 esac
1995 case " $ac_configure_args " in
1996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1997 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1998 esac
2000 done
2001 if $ac_cache_corrupted; then
2002 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2008 { (exit 1); exit 1; }; }
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044 ac_aux_dir=
2045 for ac_dir in buildaux "$srcdir"/buildaux; do
2046 if test -f "$ac_dir/install-sh"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
2050 elif test -f "$ac_dir/install.sh"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
2054 elif test -f "$ac_dir/shtool"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
2059 done
2060 if test -z "$ac_aux_dir"; then
2061 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildaux \"$srcdir\"/buildaux" >&5
2062 $as_echo "$as_me: error: cannot find install-sh or install.sh in buildaux \"$srcdir\"/buildaux" >&2;}
2063 { (exit 1); exit 1; }; }
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075 ac_config_headers="$ac_config_headers include/config.h"
2078 ## --------------------- ##
2079 ## M4sh Initialization. ##
2080 ## --------------------- ##
2082 # Be more Bourne compatible
2083 DUALCASE=1; export DUALCASE # for MKS sh
2084 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2085 emulate sh
2086 NULLCMD=:
2087 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2088 # is contrary to our usage. Disable this feature.
2089 alias -g '${1+"$@"}'='"$@"'
2090 setopt NO_GLOB_SUBST
2091 else
2092 case `(set -o) 2>/dev/null` in
2093 *posix*) set -o posix ;;
2094 esac
2101 # PATH needs CR
2102 # Avoid depending upon Character Ranges.
2103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2106 as_cr_digits='0123456789'
2107 as_cr_alnum=$as_cr_Letters$as_cr_digits
2109 as_nl='
2111 export as_nl
2112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
2113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2116 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2117 as_echo='printf %s\n'
2118 as_echo_n='printf %s'
2119 else
2120 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2121 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2122 as_echo_n='/usr/ucb/echo -n'
2123 else
2124 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2125 as_echo_n_body='eval
2126 arg=$1;
2127 case $arg in
2128 *"$as_nl"*)
2129 expr "X$arg" : "X\\(.*\\)$as_nl";
2130 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2131 esac;
2132 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2134 export as_echo_n_body
2135 as_echo_n='sh -c $as_echo_n_body as_echo'
2137 export as_echo_body
2138 as_echo='sh -c $as_echo_body as_echo'
2141 # The user is always right.
2142 if test "${PATH_SEPARATOR+set}" != set; then
2143 PATH_SEPARATOR=:
2144 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2145 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2146 PATH_SEPARATOR=';'
2150 # Support unset when possible.
2151 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2152 as_unset=unset
2153 else
2154 as_unset=false
2158 # IFS
2159 # We need space, tab and new line, in precisely that order. Quoting is
2160 # there to prevent editors from complaining about space-tab.
2161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2162 # splitting by setting IFS to empty value.)
2163 IFS=" "" $as_nl"
2165 # Find who we are. Look in the path if we contain no directory separator.
2166 case $0 in
2167 *[\\/]* ) as_myself=$0 ;;
2168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2174 done
2175 IFS=$as_save_IFS
2178 esac
2179 # We did not find ourselves, most probably we were run as `sh COMMAND'
2180 # in which case we are not to be found in the path.
2181 if test "x$as_myself" = x; then
2182 as_myself=$0
2184 if test ! -f "$as_myself"; then
2185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2186 { (exit 1); exit 1; }
2189 # Work around bugs in pre-3.0 UWIN ksh.
2190 for as_var in ENV MAIL MAILPATH
2191 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2192 done
2193 PS1='$ '
2194 PS2='> '
2195 PS4='+ '
2197 # NLS nuisances.
2198 LC_ALL=C
2199 export LC_ALL
2200 LANGUAGE=C
2201 export LANGUAGE
2203 # Required to use basename.
2204 if expr a : '\(a\)' >/dev/null 2>&1 &&
2205 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2206 as_expr=expr
2207 else
2208 as_expr=false
2211 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2212 as_basename=basename
2213 else
2214 as_basename=false
2218 # Name of the executable.
2219 as_me=`$as_basename -- "$0" ||
2220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2221 X"$0" : 'X\(//\)$' \| \
2222 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2223 $as_echo X/"$0" |
2224 sed '/^.*\/\([^/][^/]*\)\/*$/{
2225 s//\1/
2228 /^X\/\(\/\/\)$/{
2229 s//\1/
2232 /^X\/\(\/\).*/{
2233 s//\1/
2236 s/.*/./; q'`
2238 # CDPATH.
2239 $as_unset CDPATH
2242 am__api_version='1.10'
2244 # Find a good install program. We prefer a C program (faster),
2245 # so one script is as good as another. But avoid the broken or
2246 # incompatible versions:
2247 # SysV /etc/install, /usr/sbin/install
2248 # SunOS /usr/etc/install
2249 # IRIX /sbin/install
2250 # AIX /bin/install
2251 # AmigaOS /C/install, which installs bootblocks on floppy discs
2252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2255 # OS/2's system install, which has a completely different semantic
2256 # ./install, which can be erroneously created by make from ./install.sh.
2257 # Reject install programs that cannot install multiple files.
2258 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2259 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2260 if test -z "$INSTALL"; then
2261 if test "${ac_cv_path_install+set}" = set; then
2262 $as_echo_n "(cached) " >&6
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 # Account for people who put trailing slashes in PATH elements.
2270 case $as_dir/ in
2271 ./ | .// | /cC/* | \
2272 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2273 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2274 /usr/ucb/* ) ;;
2276 # OSF1 and SCO ODT 3.0 have their own names for install.
2277 # Don't use installbsd from OSF since it installs stuff as root
2278 # by default.
2279 for ac_prog in ginstall scoinst install; do
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2282 if test $ac_prog = install &&
2283 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284 # AIX install. It has an incompatible calling convention.
2286 elif test $ac_prog = install &&
2287 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2288 # program-specific install script used by HP pwplus--don't use.
2290 else
2291 rm -rf conftest.one conftest.two conftest.dir
2292 echo one > conftest.one
2293 echo two > conftest.two
2294 mkdir conftest.dir
2295 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2296 test -s conftest.one && test -s conftest.two &&
2297 test -s conftest.dir/conftest.one &&
2298 test -s conftest.dir/conftest.two
2299 then
2300 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2301 break 3
2305 done
2306 done
2308 esac
2310 done
2311 IFS=$as_save_IFS
2313 rm -rf conftest.one conftest.two conftest.dir
2316 if test "${ac_cv_path_install+set}" = set; then
2317 INSTALL=$ac_cv_path_install
2318 else
2319 # As a last resort, use the slow shell script. Don't cache a
2320 # value for INSTALL within a source directory, because that will
2321 # break other packages using the cache if that directory is
2322 # removed, or if the value is a relative name.
2323 INSTALL=$ac_install_sh
2326 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2327 $as_echo "$INSTALL" >&6; }
2329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2330 # It thinks the first close brace ends the variable substitution.
2331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2338 $as_echo_n "checking whether build environment is sane... " >&6; }
2339 # Just in case
2340 sleep 1
2341 echo timestamp > conftest.file
2342 # Do `set' in a subshell so we don't clobber the current shell's
2343 # arguments. Must try -L first in case configure is actually a
2344 # symlink; some systems play weird games with the mod time of symlinks
2345 # (eg FreeBSD returns the mod time of the symlink's containing
2346 # directory).
2347 if (
2348 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2349 if test "$*" = "X"; then
2350 # -L didn't work.
2351 set X `ls -t $srcdir/configure conftest.file`
2353 rm -f conftest.file
2354 if test "$*" != "X $srcdir/configure conftest.file" \
2355 && test "$*" != "X conftest.file $srcdir/configure"; then
2357 # If neither matched, then we have a broken ls. This can happen
2358 # if, for instance, CONFIG_SHELL is bash and it inherits a
2359 # broken ls alias from the environment. This has actually
2360 # happened. Such a system could not be considered "sane".
2361 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2362 alias in your environment" >&5
2363 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2364 alias in your environment" >&2;}
2365 { (exit 1); exit 1; }; }
2368 test "$2" = conftest.file
2370 then
2371 # Ok.
2373 else
2374 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2375 Check your system clock" >&5
2376 $as_echo "$as_me: error: newly created file is older than distributed files!
2377 Check your system clock" >&2;}
2378 { (exit 1); exit 1; }; }
2380 { $as_echo "$as_me:$LINENO: result: yes" >&5
2381 $as_echo "yes" >&6; }
2382 test "$program_prefix" != NONE &&
2383 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2384 # Use a double $ so make ignores it.
2385 test "$program_suffix" != NONE &&
2386 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2387 # Double any \ or $.
2388 # By default was `s,x,x', remove it if useless.
2389 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2390 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2392 # expand $ac_aux_dir to an absolute path
2393 am_aux_dir=`cd $ac_aux_dir && pwd`
2395 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2396 # Use eval to expand $SHELL
2397 if eval "$MISSING --run true"; then
2398 am_missing_run="$MISSING --run "
2399 else
2400 am_missing_run=
2401 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2402 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2405 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2406 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2407 if test -z "$MKDIR_P"; then
2408 if test "${ac_cv_path_mkdir+set}" = set; then
2409 $as_echo_n "(cached) " >&6
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_prog in mkdir gmkdir; do
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2419 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2420 'mkdir (GNU coreutils) '* | \
2421 'mkdir (coreutils) '* | \
2422 'mkdir (fileutils) '4.1*)
2423 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2424 break 3;;
2425 esac
2426 done
2427 done
2428 done
2429 IFS=$as_save_IFS
2433 if test "${ac_cv_path_mkdir+set}" = set; then
2434 MKDIR_P="$ac_cv_path_mkdir -p"
2435 else
2436 # As a last resort, use the slow shell script. Don't cache a
2437 # value for MKDIR_P within a source directory, because that will
2438 # break other packages using the cache if that directory is
2439 # removed, or if the value is a relative name.
2440 test -d ./--version && rmdir ./--version
2441 MKDIR_P="$ac_install_sh -d"
2444 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2445 $as_echo "$MKDIR_P" >&6; }
2447 mkdir_p="$MKDIR_P"
2448 case $mkdir_p in
2449 [\\/$]* | ?:[\\/]*) ;;
2450 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2451 esac
2453 for ac_prog in gawk mawk nawk awk
2455 # Extract the first word of "$ac_prog", so it can be a program name with args.
2456 set dummy $ac_prog; ac_word=$2
2457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 $as_echo_n "checking for $ac_word... " >&6; }
2459 if test "${ac_cv_prog_AWK+set}" = set; then
2460 $as_echo_n "(cached) " >&6
2461 else
2462 if test -n "$AWK"; then
2463 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_AWK="$ac_prog"
2473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2476 done
2477 done
2478 IFS=$as_save_IFS
2482 AWK=$ac_cv_prog_AWK
2483 if test -n "$AWK"; then
2484 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2485 $as_echo "$AWK" >&6; }
2486 else
2487 { $as_echo "$as_me:$LINENO: result: no" >&5
2488 $as_echo "no" >&6; }
2492 test -n "$AWK" && break
2493 done
2495 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2496 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2497 set x ${MAKE-make}
2498 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2499 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2500 $as_echo_n "(cached) " >&6
2501 else
2502 cat >conftest.make <<\_ACEOF
2503 SHELL = /bin/sh
2504 all:
2505 @echo '@@@%%%=$(MAKE)=@@@%%%'
2506 _ACEOF
2507 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2508 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2509 *@@@%%%=?*=@@@%%%*)
2510 eval ac_cv_prog_make_${ac_make}_set=yes;;
2512 eval ac_cv_prog_make_${ac_make}_set=no;;
2513 esac
2514 rm -f conftest.make
2516 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2517 { $as_echo "$as_me:$LINENO: result: yes" >&5
2518 $as_echo "yes" >&6; }
2519 SET_MAKE=
2520 else
2521 { $as_echo "$as_me:$LINENO: result: no" >&5
2522 $as_echo "no" >&6; }
2523 SET_MAKE="MAKE=${MAKE-make}"
2526 rm -rf .tst 2>/dev/null
2527 mkdir .tst 2>/dev/null
2528 if test -d .tst; then
2529 am__leading_dot=.
2530 else
2531 am__leading_dot=_
2533 rmdir .tst 2>/dev/null
2535 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2536 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2537 # is not polluted with repeated "-I."
2538 am__isrc=' -I$(srcdir)'
2539 # test to see if srcdir already configured
2540 if test -f $srcdir/config.status; then
2541 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2542 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2543 { (exit 1); exit 1; }; }
2547 # test whether we have cygpath
2548 if test -z "$CYGPATH_W"; then
2549 if (cygpath --version) >/dev/null 2>/dev/null; then
2550 CYGPATH_W='cygpath -w'
2551 else
2552 CYGPATH_W=echo
2557 # Define the identity of the package.
2558 PACKAGE='netbsd-iscsi'
2559 VERSION='20090622'
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE "$PACKAGE"
2564 _ACEOF
2567 cat >>confdefs.h <<_ACEOF
2568 #define VERSION "$VERSION"
2569 _ACEOF
2571 # Some tools Automake needs.
2573 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2576 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2579 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2582 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2585 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2587 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2589 # Installed binaries are usually stripped using `strip' when the user
2590 # run `make install-strip'. However `strip' might not be the right
2591 # tool to use in cross-compilation environments, therefore Automake
2592 # will honor the `STRIP' environment variable to overrule this program.
2593 if test "$cross_compiling" != no; then
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2596 set dummy ${ac_tool_prefix}strip; ac_word=$2
2597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 $as_echo_n "checking for $ac_word... " >&6; }
2599 if test "${ac_cv_prog_STRIP+set}" = set; then
2600 $as_echo_n "(cached) " >&6
2601 else
2602 if test -n "$STRIP"; then
2603 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2616 done
2617 done
2618 IFS=$as_save_IFS
2622 STRIP=$ac_cv_prog_STRIP
2623 if test -n "$STRIP"; then
2624 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2625 $as_echo "$STRIP" >&6; }
2626 else
2627 { $as_echo "$as_me:$LINENO: result: no" >&5
2628 $as_echo "no" >&6; }
2633 if test -z "$ac_cv_prog_STRIP"; then
2634 ac_ct_STRIP=$STRIP
2635 # Extract the first word of "strip", so it can be a program name with args.
2636 set dummy strip; ac_word=$2
2637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$ac_ct_STRIP"; then
2643 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_STRIP="strip"
2653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2656 done
2657 done
2658 IFS=$as_save_IFS
2662 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2663 if test -n "$ac_ct_STRIP"; then
2664 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2665 $as_echo "$ac_ct_STRIP" >&6; }
2666 else
2667 { $as_echo "$as_me:$LINENO: result: no" >&5
2668 $as_echo "no" >&6; }
2671 if test "x$ac_ct_STRIP" = x; then
2672 STRIP=":"
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675 yes:)
2676 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2678 ac_tool_warned=yes ;;
2679 esac
2680 STRIP=$ac_ct_STRIP
2682 else
2683 STRIP="$ac_cv_prog_STRIP"
2687 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2689 # We need awk for the "check" target. The system "awk" is bad on
2690 # some platforms.
2691 # Always define AMTAR for backward compatibility.
2693 AMTAR=${AMTAR-"${am_missing_run}tar"}
2695 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2701 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2702 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2703 # Check whether --enable-maintainer-mode was given.
2704 if test "${enable_maintainer_mode+set}" = set; then
2705 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2706 else
2707 USE_MAINTAINER_MODE=no
2710 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2711 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2712 if test $USE_MAINTAINER_MODE = yes; then
2713 MAINTAINER_MODE_TRUE=
2714 MAINTAINER_MODE_FALSE='#'
2715 else
2716 MAINTAINER_MODE_TRUE='#'
2717 MAINTAINER_MODE_FALSE=
2720 MAINT=$MAINTAINER_MODE_TRUE
2724 # Make sure we can run config.sub.
2725 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2726 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2727 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2728 { (exit 1); exit 1; }; }
2730 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2731 $as_echo_n "checking build system type... " >&6; }
2732 if test "${ac_cv_build+set}" = set; then
2733 $as_echo_n "(cached) " >&6
2734 else
2735 ac_build_alias=$build_alias
2736 test "x$ac_build_alias" = x &&
2737 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2738 test "x$ac_build_alias" = x &&
2739 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2740 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2741 { (exit 1); exit 1; }; }
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2744 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2745 { (exit 1); exit 1; }; }
2748 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2749 $as_echo "$ac_cv_build" >&6; }
2750 case $ac_cv_build in
2751 *-*-*) ;;
2752 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2753 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2754 { (exit 1); exit 1; }; };;
2755 esac
2756 build=$ac_cv_build
2757 ac_save_IFS=$IFS; IFS='-'
2758 set x $ac_cv_build
2759 shift
2760 build_cpu=$1
2761 build_vendor=$2
2762 shift; shift
2763 # Remember, the first character of IFS is used to create $*,
2764 # except with old shells:
2765 build_os=$*
2766 IFS=$ac_save_IFS
2767 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2770 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2771 $as_echo_n "checking host system type... " >&6; }
2772 if test "${ac_cv_host+set}" = set; then
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test "x$host_alias" = x; then
2776 ac_cv_host=$ac_cv_build
2777 else
2778 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2779 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2780 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2781 { (exit 1); exit 1; }; }
2785 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2786 $as_echo "$ac_cv_host" >&6; }
2787 case $ac_cv_host in
2788 *-*-*) ;;
2789 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2790 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2791 { (exit 1); exit 1; }; };;
2792 esac
2793 host=$ac_cv_host
2794 ac_save_IFS=$IFS; IFS='-'
2795 set x $ac_cv_host
2796 shift
2797 host_cpu=$1
2798 host_vendor=$2
2799 shift; shift
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2802 host_os=$*
2803 IFS=$ac_save_IFS
2804 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2807 CANONICAL_HOST=$host
2810 # Find a good install program. We prefer a C program (faster),
2811 # so one script is as good as another. But avoid the broken or
2812 # incompatible versions:
2813 # SysV /etc/install, /usr/sbin/install
2814 # SunOS /usr/etc/install
2815 # IRIX /sbin/install
2816 # AIX /bin/install
2817 # AmigaOS /C/install, which installs bootblocks on floppy discs
2818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2821 # OS/2's system install, which has a completely different semantic
2822 # ./install, which can be erroneously created by make from ./install.sh.
2823 # Reject install programs that cannot install multiple files.
2824 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2825 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2826 if test -z "$INSTALL"; then
2827 if test "${ac_cv_path_install+set}" = set; then
2828 $as_echo_n "(cached) " >&6
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 # Account for people who put trailing slashes in PATH elements.
2836 case $as_dir/ in
2837 ./ | .// | /cC/* | \
2838 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2839 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2840 /usr/ucb/* ) ;;
2842 # OSF1 and SCO ODT 3.0 have their own names for install.
2843 # Don't use installbsd from OSF since it installs stuff as root
2844 # by default.
2845 for ac_prog in ginstall scoinst install; do
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2848 if test $ac_prog = install &&
2849 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2850 # AIX install. It has an incompatible calling convention.
2852 elif test $ac_prog = install &&
2853 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2854 # program-specific install script used by HP pwplus--don't use.
2856 else
2857 rm -rf conftest.one conftest.two conftest.dir
2858 echo one > conftest.one
2859 echo two > conftest.two
2860 mkdir conftest.dir
2861 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2862 test -s conftest.one && test -s conftest.two &&
2863 test -s conftest.dir/conftest.one &&
2864 test -s conftest.dir/conftest.two
2865 then
2866 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2867 break 3
2871 done
2872 done
2874 esac
2876 done
2877 IFS=$as_save_IFS
2879 rm -rf conftest.one conftest.two conftest.dir
2882 if test "${ac_cv_path_install+set}" = set; then
2883 INSTALL=$ac_cv_path_install
2884 else
2885 # As a last resort, use the slow shell script. Don't cache a
2886 # value for INSTALL within a source directory, because that will
2887 # break other packages using the cache if that directory is
2888 # removed, or if the value is a relative name.
2889 INSTALL=$ac_install_sh
2892 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2893 $as_echo "$INSTALL" >&6; }
2895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2896 # It thinks the first close brace ends the variable substitution.
2897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2932 IFS=$as_save_IFS
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941 { $as_echo "$as_me:$LINENO: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$ac_cv_prog_CC"; then
2948 ac_ct_CC=$CC
2949 # Extract the first word of "gcc", so it can be a program name with args.
2950 set dummy gcc; ac_word=$2
2951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC="gcc"
2967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 $as_echo "$ac_ct_CC" >&6; }
2980 else
2981 { $as_echo "$as_me:$LINENO: result: no" >&5
2982 $as_echo "no" >&6; }
2985 if test "x$ac_ct_CC" = x; then
2986 CC=""
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994 CC=$ac_ct_CC
2996 else
2997 CC="$ac_cv_prog_CC"
3000 if test -z "$CC"; then
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}cc; ac_word=$2
3004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_CC="${ac_tool_prefix}cc"
3020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3023 done
3024 done
3025 IFS=$as_save_IFS
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034 { $as_echo "$as_me:$LINENO: result: no" >&5
3035 $as_echo "no" >&6; }
3041 if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 ac_prog_rejected=no
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3062 continue
3064 ac_cv_prog_CC="cc"
3065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3068 done
3069 done
3070 IFS=$as_save_IFS
3072 if test $ac_prog_rejected = yes; then
3073 # We found a bogon in the path, so make sure we never use it.
3074 set dummy $ac_cv_prog_CC
3075 shift
3076 if test $# != 0; then
3077 # We chose a different compiler from the bogus one.
3078 # However, it has the same basename, so the bogon will be chosen
3079 # first if we set CC to just the basename; use the full file name.
3080 shift
3081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091 { $as_echo "$as_me:$LINENO: result: no" >&5
3092 $as_echo "no" >&6; }
3097 if test -z "$CC"; then
3098 if test -n "$ac_tool_prefix"; then
3099 for ac_prog in cl.exe
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if test "${ac_cv_prog_CC+set}" = set; then
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3119 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3122 done
3123 done
3124 IFS=$as_save_IFS
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3132 else
3133 { $as_echo "$as_me:$LINENO: result: no" >&5
3134 $as_echo "no" >&6; }
3138 test -n "$CC" && break
3139 done
3141 if test -z "$CC"; then
3142 ac_ct_CC=$CC
3143 for ac_prog in cl.exe
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$ac_ct_CC"; then
3153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_ac_ct_CC="$ac_prog"
3163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3166 done
3167 done
3168 IFS=$as_save_IFS
3172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173 if test -n "$ac_ct_CC"; then
3174 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3175 $as_echo "$ac_ct_CC" >&6; }
3176 else
3177 { $as_echo "$as_me:$LINENO: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$ac_ct_CC" && break
3183 done
3185 if test "x$ac_ct_CC" = x; then
3186 CC=""
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189 yes:)
3190 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3193 esac
3194 CC=$ac_ct_CC
3201 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3204 See \`config.log' for more details." >&5
3205 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3206 See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }; }
3209 # Provide some information about the compiler.
3210 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3211 set X $ac_compile
3212 ac_compiler=$2
3213 { (ac_try="$ac_compiler --version >&5"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3219 $as_echo "$ac_try_echo") >&5
3220 (eval "$ac_compiler --version >&5") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }
3224 { (ac_try="$ac_compiler -v >&5"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230 $as_echo "$ac_try_echo") >&5
3231 (eval "$ac_compiler -v >&5") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }
3235 { (ac_try="$ac_compiler -V >&5"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241 $as_echo "$ac_try_echo") >&5
3242 (eval "$ac_compiler -V >&5") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3255 main ()
3259 return 0;
3261 _ACEOF
3262 ac_clean_files_save=$ac_clean_files
3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264 # Try to create an executable without -o first, disregard a.out.
3265 # It will help us diagnose broken compilers, and finding out an intuition
3266 # of exeext.
3267 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3268 $as_echo_n "checking for C compiler default output file name... " >&6; }
3269 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3271 # The possible output files:
3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3274 ac_rmfiles=
3275 for ac_file in $ac_files
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280 esac
3281 done
3282 rm -f $ac_rmfiles
3284 if { (ac_try="$ac_link_default"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3290 $as_echo "$ac_try_echo") >&5
3291 (eval "$ac_link_default") 2>&5
3292 ac_status=$?
3293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; then
3295 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3296 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3297 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3298 # so that the user can short-circuit this test for compilers unknown to
3299 # Autoconf.
3300 for ac_file in $ac_files ''
3302 test -f "$ac_file" || continue
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3306 [ab].out )
3307 # We found the default executable, but exeext='' is most
3308 # certainly right.
3309 break;;
3310 *.* )
3311 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3312 then :; else
3313 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315 # We set ac_cv_exeext here because the later test for it is not
3316 # safe: cross compilers may not add the suffix if given an `-o'
3317 # argument, so we may need to know it at that point already.
3318 # Even if this section looks crufty: it has the advantage of
3319 # actually working.
3320 break;;
3322 break;;
3323 esac
3324 done
3325 test "$ac_cv_exeext" = no && ac_cv_exeext=
3327 else
3328 ac_file=''
3331 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3332 $as_echo "$ac_file" >&6; }
3333 if test -z "$ac_file"; then
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3340 See \`config.log' for more details." >&5
3341 $as_echo "$as_me: error: C compiler cannot create executables
3342 See \`config.log' for more details." >&2;}
3343 { (exit 77); exit 77; }; }; }
3346 ac_exeext=$ac_cv_exeext
3348 # Check that the compiler produces executables we can run. If not, either
3349 # the compiler is broken, or we cross compile.
3350 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3351 $as_echo_n "checking whether the C compiler works... " >&6; }
3352 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3353 # If not cross compiling, check that we can run a simple program.
3354 if test "$cross_compiling" != yes; then
3355 if { ac_try='./$ac_file'
3356 { (case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_try") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 cross_compiling=no
3367 else
3368 if test "$cross_compiling" = maybe; then
3369 cross_compiling=yes
3370 else
3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3374 If you meant to cross compile, use \`--host'.
3375 See \`config.log' for more details." >&5
3376 $as_echo "$as_me: error: cannot run C compiled programs.
3377 If you meant to cross compile, use \`--host'.
3378 See \`config.log' for more details." >&2;}
3379 { (exit 1); exit 1; }; }; }
3383 { $as_echo "$as_me:$LINENO: result: yes" >&5
3384 $as_echo "yes" >&6; }
3386 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3387 ac_clean_files=$ac_clean_files_save
3388 # Check that the compiler produces executables we can run. If not, either
3389 # the compiler is broken, or we cross compile.
3390 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3391 $as_echo_n "checking whether we are cross compiling... " >&6; }
3392 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3393 $as_echo "$cross_compiling" >&6; }
3395 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3396 $as_echo_n "checking for suffix of executables... " >&6; }
3397 if { (ac_try="$ac_link"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3403 $as_echo "$ac_try_echo") >&5
3404 (eval "$ac_link") 2>&5
3405 ac_status=$?
3406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; then
3408 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3410 # work properly (i.e., refer to `conftest.exe'), while it won't with
3411 # `rm'.
3412 for ac_file in conftest.exe conftest conftest.*; do
3413 test -f "$ac_file" || continue
3414 case $ac_file in
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417 break;;
3418 * ) break;;
3419 esac
3420 done
3421 else
3422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3425 See \`config.log' for more details." >&5
3426 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3427 See \`config.log' for more details." >&2;}
3428 { (exit 1); exit 1; }; }; }
3431 rm -f conftest$ac_cv_exeext
3432 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3433 $as_echo "$ac_cv_exeext" >&6; }
3435 rm -f conftest.$ac_ext
3436 EXEEXT=$ac_cv_exeext
3437 ac_exeext=$EXEEXT
3438 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3439 $as_echo_n "checking for suffix of object files... " >&6; }
3440 if test "${ac_cv_objext+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3442 else
3443 cat >conftest.$ac_ext <<_ACEOF
3444 /* confdefs.h. */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3451 main ()
3455 return 0;
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { (ac_try="$ac_compile"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465 $as_echo "$ac_try_echo") >&5
3466 (eval "$ac_compile") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; then
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477 done
3478 else
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details." >&5
3486 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }; }
3491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3493 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3494 $as_echo "$ac_cv_objext" >&6; }
3495 OBJEXT=$ac_cv_objext
3496 ac_objext=$OBJEXT
3497 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3498 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3500 $as_echo_n "(cached) " >&6
3501 else
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3510 main ()
3512 #ifndef __GNUC__
3513 choke me
3514 #endif
3517 return 0;
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3527 $as_echo "$ac_try_echo") >&5
3528 (eval "$ac_compile") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } && {
3535 test -z "$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3537 } && test -s conftest.$ac_objext; then
3538 ac_compiler_gnu=yes
3539 else
3540 $as_echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 ac_compiler_gnu=no
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3550 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3551 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3552 if test $ac_compiler_gnu = yes; then
3553 GCC=yes
3554 else
3555 GCC=
3557 ac_test_CFLAGS=${CFLAGS+set}
3558 ac_save_CFLAGS=$CFLAGS
3559 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3560 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3561 if test "${ac_cv_prog_cc_g+set}" = set; then
3562 $as_echo_n "(cached) " >&6
3563 else
3564 ac_save_c_werror_flag=$ac_c_werror_flag
3565 ac_c_werror_flag=yes
3566 ac_cv_prog_cc_g=no
3567 CFLAGS="-g"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3576 main ()
3580 return 0;
3582 _ACEOF
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3590 $as_echo "$ac_try_echo") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3601 ac_cv_prog_cc_g=yes
3602 else
3603 $as_echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 CFLAGS=""
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3615 main ()
3619 return 0;
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3641 else
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 ac_c_werror_flag=$ac_save_c_werror_flag
3646 CFLAGS="-g"
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h. */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3655 main ()
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669 $as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3680 ac_cv_prog_cc_g=yes
3681 else
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_c_werror_flag=$ac_save_c_werror_flag
3697 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3698 $as_echo "$ac_cv_prog_cc_g" >&6; }
3699 if test "$ac_test_CFLAGS" = set; then
3700 CFLAGS=$ac_save_CFLAGS
3701 elif test $ac_cv_prog_cc_g = yes; then
3702 if test "$GCC" = yes; then
3703 CFLAGS="-g -O2"
3704 else
3705 CFLAGS="-g"
3707 else
3708 if test "$GCC" = yes; then
3709 CFLAGS="-O2"
3710 else
3711 CFLAGS=
3714 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3716 if test "${ac_cv_prog_cc_c89+set}" = set; then
3717 $as_echo_n "(cached) " >&6
3718 else
3719 ac_cv_prog_cc_c89=no
3720 ac_save_CC=$CC
3721 cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h. */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 #include <stdarg.h>
3728 #include <stdio.h>
3729 #include <sys/types.h>
3730 #include <sys/stat.h>
3731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3732 struct buf { int x; };
3733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3734 static char *e (p, i)
3735 char **p;
3736 int i;
3738 return p[i];
3740 static char *f (char * (*g) (char **, int), char **p, ...)
3742 char *s;
3743 va_list v;
3744 va_start (v,p);
3745 s = g (p, va_arg (v,int));
3746 va_end (v);
3747 return s;
3750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3751 function prototypes and stuff, but not '\xHH' hex character constants.
3752 These don't provoke an error unfortunately, instead are silently treated
3753 as 'x'. The following induces an error, until -std is added to get
3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3755 array size at least. It's necessary to write '\x00'==0 to get something
3756 that's true only with -std. */
3757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3760 inside strings and character constants. */
3761 #define FOO(x) 'x'
3762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3764 int test (int i, double x);
3765 struct s1 {int (*f) (int a);};
3766 struct s2 {int (*f) (double a);};
3767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3768 int argc;
3769 char **argv;
3771 main ()
3773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3775 return 0;
3777 _ACEOF
3778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3781 CC="$ac_save_CC $ac_arg"
3782 rm -f conftest.$ac_objext
3783 if { (ac_try="$ac_compile"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3789 $as_echo "$ac_try_echo") >&5
3790 (eval "$ac_compile") 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } && {
3797 test -z "$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 } && test -s conftest.$ac_objext; then
3800 ac_cv_prog_cc_c89=$ac_arg
3801 else
3802 $as_echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f core conftest.err conftest.$ac_objext
3809 test "x$ac_cv_prog_cc_c89" != "xno" && break
3810 done
3811 rm -f conftest.$ac_ext
3812 CC=$ac_save_CC
3815 # AC_CACHE_VAL
3816 case "x$ac_cv_prog_cc_c89" in
3818 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3819 $as_echo "none needed" >&6; } ;;
3820 xno)
3821 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3822 $as_echo "unsupported" >&6; } ;;
3824 CC="$CC $ac_cv_prog_cc_c89"
3825 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3826 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3827 esac
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 DEPDIR="${am__leading_dot}deps"
3837 ac_config_commands="$ac_config_commands depfiles"
3840 am_make=${MAKE-make}
3841 cat > confinc << 'END'
3842 am__doit:
3843 @echo done
3844 .PHONY: am__doit
3846 # If we don't find an include directive, just comment out the code.
3847 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3848 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3849 am__include="#"
3850 am__quote=
3851 _am_result=none
3852 # First try GNU make style include.
3853 echo "include confinc" > confmf
3854 # We grep out `Entering directory' and `Leaving directory'
3855 # messages which can occur if `w' ends up in MAKEFLAGS.
3856 # In particular we don't look at `^make:' because GNU make might
3857 # be invoked under some other name (usually "gmake"), in which
3858 # case it prints its new name instead of `make'.
3859 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3860 am__include=include
3861 am__quote=
3862 _am_result=GNU
3864 # Now try BSD make style include.
3865 if test "$am__include" = "#"; then
3866 echo '.include "confinc"' > confmf
3867 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3868 am__include=.include
3869 am__quote="\""
3870 _am_result=BSD
3875 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3876 $as_echo "$_am_result" >&6; }
3877 rm -f confinc confmf
3879 # Check whether --enable-dependency-tracking was given.
3880 if test "${enable_dependency_tracking+set}" = set; then
3881 enableval=$enable_dependency_tracking;
3884 if test "x$enable_dependency_tracking" != xno; then
3885 am_depcomp="$ac_aux_dir/depcomp"
3886 AMDEPBACKSLASH='\'
3888 if test "x$enable_dependency_tracking" != xno; then
3889 AMDEP_TRUE=
3890 AMDEP_FALSE='#'
3891 else
3892 AMDEP_TRUE='#'
3893 AMDEP_FALSE=
3898 depcc="$CC" am_compiler_list=
3900 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3901 $as_echo_n "checking dependency style of $depcc... " >&6; }
3902 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3903 $as_echo_n "(cached) " >&6
3904 else
3905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3906 # We make a subdir and do the tests there. Otherwise we can end up
3907 # making bogus files that we don't know about and never remove. For
3908 # instance it was reported that on HP-UX the gcc test will end up
3909 # making a dummy file named `D' -- because `-MD' means `put the output
3910 # in D'.
3911 mkdir conftest.dir
3912 # Copy depcomp to subdir because otherwise we won't find it if we're
3913 # using a relative directory.
3914 cp "$am_depcomp" conftest.dir
3915 cd conftest.dir
3916 # We will build objects and dependencies in a subdirectory because
3917 # it helps to detect inapplicable dependency modes. For instance
3918 # both Tru64's cc and ICC support -MD to output dependencies as a
3919 # side effect of compilation, but ICC will put the dependencies in
3920 # the current directory while Tru64 will put them in the object
3921 # directory.
3922 mkdir sub
3924 am_cv_CC_dependencies_compiler_type=none
3925 if test "$am_compiler_list" = ""; then
3926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3928 for depmode in $am_compiler_list; do
3929 # Setup a source with many dependencies, because some compilers
3930 # like to wrap large dependency lists on column 80 (with \), and
3931 # we should not choose a depcomp mode which is confused by this.
3933 # We need to recreate these files for each test, as the compiler may
3934 # overwrite some of them when testing with obscure command lines.
3935 # This happens at least with the AIX C compiler.
3936 : > sub/conftest.c
3937 for i in 1 2 3 4 5 6; do
3938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3939 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3940 # Solaris 8's {/usr,}/bin/sh.
3941 touch sub/conftst$i.h
3942 done
3943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3945 case $depmode in
3946 nosideeffect)
3947 # after this tag, mechanisms are not by side-effect, so they'll
3948 # only be used when explicitly requested
3949 if test "x$enable_dependency_tracking" = xyes; then
3950 continue
3951 else
3952 break
3955 none) break ;;
3956 esac
3957 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3958 # mode. It turns out that the SunPro C++ compiler does not properly
3959 # handle `-M -o', and we need to detect this.
3960 if depmode=$depmode \
3961 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3963 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3964 >/dev/null 2>conftest.err &&
3965 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3967 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3969 # icc doesn't choke on unknown options, it will just issue warnings
3970 # or remarks (even with -Werror). So we grep stderr for any message
3971 # that says an option was ignored or not supported.
3972 # When given -MP, icc 7.0 and 7.1 complain thusly:
3973 # icc: Command line warning: ignoring option '-M'; no argument required
3974 # The diagnosis changed in icc 8.0:
3975 # icc: Command line remark: option '-MP' not supported
3976 if (grep 'ignoring option' conftest.err ||
3977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3978 am_cv_CC_dependencies_compiler_type=$depmode
3979 break
3982 done
3984 cd ..
3985 rm -rf conftest.dir
3986 else
3987 am_cv_CC_dependencies_compiler_type=none
3991 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3992 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3993 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3996 test "x$enable_dependency_tracking" != xno \
3997 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3998 am__fastdepCC_TRUE=
3999 am__fastdepCC_FALSE='#'
4000 else
4001 am__fastdepCC_TRUE='#'
4002 am__fastdepCC_FALSE=
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if test "${ac_cv_prog_RANLIB+set}" = set; then
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$RANLIB"; then
4015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4028 done
4029 done
4030 IFS=$as_save_IFS
4034 RANLIB=$ac_cv_prog_RANLIB
4035 if test -n "$RANLIB"; then
4036 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4037 $as_echo "$RANLIB" >&6; }
4038 else
4039 { $as_echo "$as_me:$LINENO: result: no" >&5
4040 $as_echo "no" >&6; }
4045 if test -z "$ac_cv_prog_RANLIB"; then
4046 ac_ct_RANLIB=$RANLIB
4047 # Extract the first word of "ranlib", so it can be a program name with args.
4048 set dummy ranlib; ac_word=$2
4049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -n "$ac_ct_RANLIB"; then
4055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064 ac_cv_prog_ac_ct_RANLIB="ranlib"
4065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4068 done
4069 done
4070 IFS=$as_save_IFS
4074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4075 if test -n "$ac_ct_RANLIB"; then
4076 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4077 $as_echo "$ac_ct_RANLIB" >&6; }
4078 else
4079 { $as_echo "$as_me:$LINENO: result: no" >&5
4080 $as_echo "no" >&6; }
4083 if test "x$ac_ct_RANLIB" = x; then
4084 RANLIB=":"
4085 else
4086 case $cross_compiling:$ac_tool_warned in
4087 yes:)
4088 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned=yes ;;
4091 esac
4092 RANLIB=$ac_ct_RANLIB
4094 else
4095 RANLIB="$ac_cv_prog_RANLIB"
4098 # Check whether --enable-shared was given.
4099 if test "${enable_shared+set}" = set; then
4100 enableval=$enable_shared; p=${PACKAGE-default}
4101 case $enableval in
4102 yes) enable_shared=yes ;;
4103 no) enable_shared=no ;;
4105 enable_shared=no
4106 # Look at the argument we got. We use all the common list separators.
4107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4108 for pkg in $enableval; do
4109 IFS="$lt_save_ifs"
4110 if test "X$pkg" = "X$p"; then
4111 enable_shared=yes
4113 done
4114 IFS="$lt_save_ifs"
4116 esac
4117 else
4118 enable_shared=yes
4122 # Check whether --enable-static was given.
4123 if test "${enable_static+set}" = set; then
4124 enableval=$enable_static; p=${PACKAGE-default}
4125 case $enableval in
4126 yes) enable_static=yes ;;
4127 no) enable_static=no ;;
4129 enable_static=no
4130 # Look at the argument we got. We use all the common list separators.
4131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4132 for pkg in $enableval; do
4133 IFS="$lt_save_ifs"
4134 if test "X$pkg" = "X$p"; then
4135 enable_static=yes
4137 done
4138 IFS="$lt_save_ifs"
4140 esac
4141 else
4142 enable_static=yes
4146 # Check whether --enable-fast-install was given.
4147 if test "${enable_fast_install+set}" = set; then
4148 enableval=$enable_fast_install; p=${PACKAGE-default}
4149 case $enableval in
4150 yes) enable_fast_install=yes ;;
4151 no) enable_fast_install=no ;;
4153 enable_fast_install=no
4154 # Look at the argument we got. We use all the common list separators.
4155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4156 for pkg in $enableval; do
4157 IFS="$lt_save_ifs"
4158 if test "X$pkg" = "X$p"; then
4159 enable_fast_install=yes
4161 done
4162 IFS="$lt_save_ifs"
4164 esac
4165 else
4166 enable_fast_install=yes
4170 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4171 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4172 if test "${lt_cv_path_SED+set}" = set; then
4173 $as_echo_n "(cached) " >&6
4174 else
4175 # Loop through the user's path and test for sed and gsed.
4176 # Then use that list of sed's as ones to test for truncation.
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for lt_ac_prog in sed gsed; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4185 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4187 done
4188 done
4189 done
4190 IFS=$as_save_IFS
4191 lt_ac_max=0
4192 lt_ac_count=0
4193 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4194 # along with /bin/sed that truncates output.
4195 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4196 test ! -f $lt_ac_sed && continue
4197 cat /dev/null > conftest.in
4198 lt_ac_count=0
4199 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4200 # Check for GNU sed and select it if it is found.
4201 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4202 lt_cv_path_SED=$lt_ac_sed
4203 break
4205 while true; do
4206 cat conftest.in conftest.in >conftest.tmp
4207 mv conftest.tmp conftest.in
4208 cp conftest.in conftest.nl
4209 echo >>conftest.nl
4210 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4211 cmp -s conftest.out conftest.nl || break
4212 # 10000 chars as input seems more than enough
4213 test $lt_ac_count -gt 10 && break
4214 lt_ac_count=`expr $lt_ac_count + 1`
4215 if test $lt_ac_count -gt $lt_ac_max; then
4216 lt_ac_max=$lt_ac_count
4217 lt_cv_path_SED=$lt_ac_sed
4219 done
4220 done
4224 SED=$lt_cv_path_SED
4226 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4227 $as_echo "$SED" >&6; }
4229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in grep ggrep; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4249 *GNU*)
4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4252 ac_count=0
4253 $as_echo_n 0123456789 >"conftest.in"
4254 while :
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 ac_count=`expr $ac_count + 1`
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP="$ac_path_GREP"
4266 ac_path_GREP_max=$ac_count
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4270 done
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272 esac
4274 $ac_path_GREP_found && break 3
4275 done
4276 done
4277 done
4278 IFS=$as_save_IFS
4279 if test -z "$ac_cv_path_GREP"; then
4280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4284 else
4285 ac_cv_path_GREP=$GREP
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4301 else
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4317 *GNU*)
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 ac_count=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 esac
4342 $ac_path_EGREP_found && break 3
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_EGREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4352 else
4353 ac_cv_path_EGREP=$EGREP
4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP="$ac_cv_path_EGREP"
4364 # Check whether --with-gnu-ld was given.
4365 if test "${with_gnu_ld+set}" = set; then
4366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4367 else
4368 with_gnu_ld=no
4371 ac_prog=ld
4372 if test "$GCC" = yes; then
4373 # Check if gcc -print-prog-name=ld gives a path.
4374 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4375 $as_echo_n "checking for ld used by $CC... " >&6; }
4376 case $host in
4377 *-*-mingw*)
4378 # gcc leaves a trailing carriage return which upsets mingw
4379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4382 esac
4383 case $ac_prog in
4384 # Accept absolute paths.
4385 [\\/]* | ?:[\\/]*)
4386 re_direlt='/[^/][^/]*/\.\./'
4387 # Canonicalize the pathname of ld
4388 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4390 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4391 done
4392 test -z "$LD" && LD="$ac_prog"
4395 # If it fails, then pretend we aren't using GCC.
4396 ac_prog=ld
4399 # If it is relative, then search for the first ld in PATH.
4400 with_gnu_ld=unknown
4402 esac
4403 elif test "$with_gnu_ld" = yes; then
4404 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4405 $as_echo_n "checking for GNU ld... " >&6; }
4406 else
4407 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4408 $as_echo_n "checking for non-GNU ld... " >&6; }
4410 if test "${lt_cv_path_LD+set}" = set; then
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -z "$LD"; then
4414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4415 for ac_dir in $PATH; do
4416 IFS="$lt_save_ifs"
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4419 lt_cv_path_LD="$ac_dir/$ac_prog"
4420 # Check to see if the program is GNU ld. I'd rather use --version,
4421 # but apparently some variants of GNU ld only accept -v.
4422 # Break only if it was the GNU/non-GNU ld that we prefer.
4423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4424 *GNU* | *'with BFD'*)
4425 test "$with_gnu_ld" != no && break
4428 test "$with_gnu_ld" != yes && break
4430 esac
4432 done
4433 IFS="$lt_save_ifs"
4434 else
4435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4439 LD="$lt_cv_path_LD"
4440 if test -n "$LD"; then
4441 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4442 $as_echo "$LD" >&6; }
4443 else
4444 { $as_echo "$as_me:$LINENO: result: no" >&5
4445 $as_echo "no" >&6; }
4447 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4448 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4449 { (exit 1); exit 1; }; }
4450 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4451 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4453 $as_echo_n "(cached) " >&6
4454 else
4455 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4456 case `$LD -v 2>&1 </dev/null` in
4457 *GNU* | *'with BFD'*)
4458 lt_cv_prog_gnu_ld=yes
4461 lt_cv_prog_gnu_ld=no
4463 esac
4465 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4466 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4467 with_gnu_ld=$lt_cv_prog_gnu_ld
4470 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4471 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4472 if test "${lt_cv_ld_reload_flag+set}" = set; then
4473 $as_echo_n "(cached) " >&6
4474 else
4475 lt_cv_ld_reload_flag='-r'
4477 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4478 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4479 reload_flag=$lt_cv_ld_reload_flag
4480 case $reload_flag in
4481 "" | " "*) ;;
4482 *) reload_flag=" $reload_flag" ;;
4483 esac
4484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4485 case $host_os in
4486 darwin*)
4487 if test "$GCC" = yes; then
4488 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4489 else
4490 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4493 esac
4495 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4496 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4497 if test "${lt_cv_path_NM+set}" = set; then
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if test -n "$NM"; then
4501 # Let the user override the test.
4502 lt_cv_path_NM="$NM"
4503 else
4504 lt_nm_to_check="${ac_tool_prefix}nm"
4505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4506 lt_nm_to_check="$lt_nm_to_check nm"
4508 for lt_tmp_nm in $lt_nm_to_check; do
4509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4510 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4511 IFS="$lt_save_ifs"
4512 test -z "$ac_dir" && ac_dir=.
4513 tmp_nm="$ac_dir/$lt_tmp_nm"
4514 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4515 # Check to see if the nm accepts a BSD-compat flag.
4516 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4517 # nm: unknown option "B" ignored
4518 # Tru64's nm complains that /dev/null is an invalid object file
4519 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4520 */dev/null* | *'Invalid file or object type'*)
4521 lt_cv_path_NM="$tmp_nm -B"
4522 break
4525 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4526 */dev/null*)
4527 lt_cv_path_NM="$tmp_nm -p"
4528 break
4531 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4532 continue # so that we can try to find one that supports BSD flags
4534 esac
4536 esac
4538 done
4539 IFS="$lt_save_ifs"
4540 done
4541 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4544 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4545 $as_echo "$lt_cv_path_NM" >&6; }
4546 NM="$lt_cv_path_NM"
4548 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4549 $as_echo_n "checking whether ln -s works... " >&6; }
4550 LN_S=$as_ln_s
4551 if test "$LN_S" = "ln -s"; then
4552 { $as_echo "$as_me:$LINENO: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 else
4555 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4556 $as_echo "no, using $LN_S" >&6; }
4559 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4560 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4561 if test "${lt_cv_deplibs_check_method+set}" = set; then
4562 $as_echo_n "(cached) " >&6
4563 else
4564 lt_cv_file_magic_cmd='$MAGIC_CMD'
4565 lt_cv_file_magic_test_file=
4566 lt_cv_deplibs_check_method='unknown'
4567 # Need to set the preceding variable on all platforms that support
4568 # interlibrary dependencies.
4569 # 'none' -- dependencies not supported.
4570 # `unknown' -- same as none, but documents that we really don't know.
4571 # 'pass_all' -- all dependencies passed with no checks.
4572 # 'test_compile' -- check by making test program.
4573 # 'file_magic [[regex]]' -- check by looking for files in library path
4574 # which responds to the $file_magic_cmd with a given extended regex.
4575 # If you have `file' or equivalent on your system and you're not sure
4576 # whether `pass_all' will *always* work, you probably want this one.
4578 case $host_os in
4579 aix4* | aix5*)
4580 lt_cv_deplibs_check_method=pass_all
4583 beos*)
4584 lt_cv_deplibs_check_method=pass_all
4587 bsdi[45]*)
4588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4589 lt_cv_file_magic_cmd='/usr/bin/file -L'
4590 lt_cv_file_magic_test_file=/shlib/libc.so
4593 cygwin*)
4594 # func_win32_libid is a shell function defined in ltmain.sh
4595 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4596 lt_cv_file_magic_cmd='func_win32_libid'
4599 mingw* | pw32*)
4600 # Base MSYS/MinGW do not provide the 'file' command needed by
4601 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4602 # unless we find 'file', for example because we are cross-compiling.
4603 if ( file / ) >/dev/null 2>&1; then
4604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4605 lt_cv_file_magic_cmd='func_win32_libid'
4606 else
4607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4608 lt_cv_file_magic_cmd='$OBJDUMP -f'
4612 darwin* | rhapsody*)
4613 lt_cv_deplibs_check_method=pass_all
4616 freebsd* | dragonfly*)
4617 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4618 case $host_cpu in
4619 i*86 )
4620 # Not sure whether the presence of OpenBSD here was a mistake.
4621 # Let's accept both of them until this is cleared up.
4622 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4623 lt_cv_file_magic_cmd=/usr/bin/file
4624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4626 esac
4627 else
4628 lt_cv_deplibs_check_method=pass_all
4632 gnu*)
4633 lt_cv_deplibs_check_method=pass_all
4636 hpux10.20* | hpux11*)
4637 lt_cv_file_magic_cmd=/usr/bin/file
4638 case $host_cpu in
4639 ia64*)
4640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4643 hppa*64*)
4644 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]'
4645 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4649 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4651 esac
4654 interix[3-9]*)
4655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4659 irix5* | irix6* | nonstopux*)
4660 case $LD in
4661 *-32|*"-32 ") libmagic=32-bit;;
4662 *-n32|*"-n32 ") libmagic=N32;;
4663 *-64|*"-64 ") libmagic=64-bit;;
4664 *) libmagic=never-match;;
4665 esac
4666 lt_cv_deplibs_check_method=pass_all
4669 # This must be Linux ELF.
4670 linux* | k*bsd*-gnu)
4671 lt_cv_deplibs_check_method=pass_all
4674 netbsd*)
4675 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4677 else
4678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4682 newos6*)
4683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4684 lt_cv_file_magic_cmd=/usr/bin/file
4685 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4688 nto-qnx*)
4689 lt_cv_deplibs_check_method=unknown
4692 openbsd*)
4693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4695 else
4696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4700 osf3* | osf4* | osf5*)
4701 lt_cv_deplibs_check_method=pass_all
4704 rdos*)
4705 lt_cv_deplibs_check_method=pass_all
4708 solaris*)
4709 lt_cv_deplibs_check_method=pass_all
4712 sysv4 | sysv4.3*)
4713 case $host_vendor in
4714 motorola)
4715 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]'
4716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4718 ncr)
4719 lt_cv_deplibs_check_method=pass_all
4721 sequent)
4722 lt_cv_file_magic_cmd='/bin/file'
4723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4725 sni)
4726 lt_cv_file_magic_cmd='/bin/file'
4727 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4728 lt_cv_file_magic_test_file=/lib/libc.so
4730 siemens)
4731 lt_cv_deplibs_check_method=pass_all
4734 lt_cv_deplibs_check_method=pass_all
4736 esac
4739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4740 lt_cv_deplibs_check_method=pass_all
4742 esac
4745 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4746 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4747 file_magic_cmd=$lt_cv_file_magic_cmd
4748 deplibs_check_method=$lt_cv_deplibs_check_method
4749 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4754 # If no C compiler was specified, use CC.
4755 LTCC=${LTCC-"$CC"}
4757 # If no C compiler flags were specified, use CFLAGS.
4758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4760 # Allow CC to be a program name with arguments.
4761 compiler=$CC
4764 # Check whether --enable-libtool-lock was given.
4765 if test "${enable_libtool_lock+set}" = set; then
4766 enableval=$enable_libtool_lock;
4769 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4771 # Some flags need to be propagated to the compiler or linker for good
4772 # libtool support.
4773 case $host in
4774 ia64-*-hpux*)
4775 # Find out which ABI we are using.
4776 echo 'int i;' > conftest.$ac_ext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4779 ac_status=$?
4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; then
4782 case `/usr/bin/file conftest.$ac_objext` in
4783 *ELF-32*)
4784 HPUX_IA64_MODE="32"
4786 *ELF-64*)
4787 HPUX_IA64_MODE="64"
4789 esac
4791 rm -rf conftest*
4793 *-*-irix6*)
4794 # Find out which ABI we are using.
4795 echo '#line 4795 "configure"' > conftest.$ac_ext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4798 ac_status=$?
4799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; then
4801 if test "$lt_cv_prog_gnu_ld" = yes; then
4802 case `/usr/bin/file conftest.$ac_objext` in
4803 *32-bit*)
4804 LD="${LD-ld} -melf32bsmip"
4806 *N32*)
4807 LD="${LD-ld} -melf32bmipn32"
4809 *64-bit*)
4810 LD="${LD-ld} -melf64bmip"
4812 esac
4813 else
4814 case `/usr/bin/file conftest.$ac_objext` in
4815 *32-bit*)
4816 LD="${LD-ld} -32"
4818 *N32*)
4819 LD="${LD-ld} -n32"
4821 *64-bit*)
4822 LD="${LD-ld} -64"
4824 esac
4827 rm -rf conftest*
4830 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4831 s390*-*linux*|sparc*-*linux*)
4832 # Find out which ABI we are using.
4833 echo 'int i;' > conftest.$ac_ext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
4839 case `/usr/bin/file conftest.o` in
4840 *32-bit*)
4841 case $host in
4842 x86_64-*kfreebsd*-gnu)
4843 LD="${LD-ld} -m elf_i386_fbsd"
4845 x86_64-*linux*)
4846 LD="${LD-ld} -m elf_i386"
4848 ppc64-*linux*|powerpc64-*linux*)
4849 LD="${LD-ld} -m elf32ppclinux"
4851 s390x-*linux*)
4852 LD="${LD-ld} -m elf_s390"
4854 sparc64-*linux*)
4855 LD="${LD-ld} -m elf32_sparc"
4857 esac
4859 *64-bit*)
4860 case $host in
4861 x86_64-*kfreebsd*-gnu)
4862 LD="${LD-ld} -m elf_x86_64_fbsd"
4864 x86_64-*linux*)
4865 LD="${LD-ld} -m elf_x86_64"
4867 ppc*-*linux*|powerpc*-*linux*)
4868 LD="${LD-ld} -m elf64ppc"
4870 s390*-*linux*)
4871 LD="${LD-ld} -m elf64_s390"
4873 sparc*-*linux*)
4874 LD="${LD-ld} -m elf64_sparc"
4876 esac
4878 esac
4880 rm -rf conftest*
4883 *-*-sco3.2v5*)
4884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4885 SAVE_CFLAGS="$CFLAGS"
4886 CFLAGS="$CFLAGS -belf"
4887 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4888 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4889 if test "${lt_cv_cc_needs_belf+set}" = set; then
4890 $as_echo_n "(cached) " >&6
4891 else
4892 ac_ext=c
4893 ac_cpp='$CPP $CPPFLAGS'
4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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. */
4906 main ()
4910 return 0;
4912 _ACEOF
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (ac_try="$ac_link"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4920 $as_echo "$ac_try_echo") >&5
4921 (eval "$ac_link") 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && {
4928 test -z "$ac_c_werror_flag" ||
4929 test ! -s conftest.err
4930 } && test -s conftest$ac_exeext && {
4931 test "$cross_compiling" = yes ||
4932 $as_test_x conftest$ac_exeext
4933 }; then
4934 lt_cv_cc_needs_belf=yes
4935 else
4936 $as_echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 lt_cv_cc_needs_belf=no
4942 rm -rf conftest.dSYM
4943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4944 conftest$ac_exeext conftest.$ac_ext
4945 ac_ext=c
4946 ac_cpp='$CPP $CPPFLAGS'
4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4953 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4954 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4955 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4956 CFLAGS="$SAVE_CFLAGS"
4959 sparc*-*solaris*)
4960 # Find out which ABI we are using.
4961 echo 'int i;' > conftest.$ac_ext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>&5
4964 ac_status=$?
4965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; then
4967 case `/usr/bin/file conftest.o` in
4968 *64-bit*)
4969 case $lt_cv_prog_gnu_ld in
4970 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4971 *) LD="${LD-ld} -64" ;;
4972 esac
4974 esac
4976 rm -rf conftest*
4980 esac
4982 need_locks="$enable_libtool_lock"
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4991 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4992 # On Suns, sometimes $CPP names a directory.
4993 if test -n "$CPP" && test -d "$CPP"; then
4994 CPP=
4996 if test -z "$CPP"; then
4997 if test "${ac_cv_prog_CPP+set}" = set; then
4998 $as_echo_n "(cached) " >&6
4999 else
5000 # Double quotes because CPP needs to be expanded
5001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5003 ac_preproc_ok=false
5004 for ac_c_preproc_warn_flag in '' yes
5006 # Use a header file that comes with gcc, so configuring glibc
5007 # with a fresh cross-compiler works.
5008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009 # <limits.h> exists even on freestanding compilers.
5010 # On the NeXT, cc -E runs the code through the compiler's parser,
5011 # not just through cpp. "Syntax error" is here to catch this case.
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #ifdef __STDC__
5019 # include <limits.h>
5020 #else
5021 # include <assert.h>
5022 #endif
5023 Syntax error
5024 _ACEOF
5025 if { (ac_try="$ac_cpp conftest.$ac_ext"
5026 case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029 esac
5030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5031 $as_echo "$ac_try_echo") >&5
5032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } >/dev/null && {
5039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5040 test ! -s conftest.err
5041 }; then
5043 else
5044 $as_echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 # Broken: fails on valid input.
5048 continue
5051 rm -f conftest.err conftest.$ac_ext
5053 # OK, works on sane cases. Now check whether nonexistent headers
5054 # can be detected and how.
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 #include <ac_nonexistent.h>
5062 _ACEOF
5063 if { (ac_try="$ac_cpp conftest.$ac_ext"
5064 case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067 esac
5068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5069 $as_echo "$ac_try_echo") >&5
5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null && {
5077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 }; then
5080 # Broken: success on invalid input.
5081 continue
5082 else
5083 $as_echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5086 # Passes both tests.
5087 ac_preproc_ok=:
5088 break
5091 rm -f conftest.err conftest.$ac_ext
5093 done
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.$ac_ext
5096 if $ac_preproc_ok; then
5097 break
5100 done
5101 ac_cv_prog_CPP=$CPP
5104 CPP=$ac_cv_prog_CPP
5105 else
5106 ac_cv_prog_CPP=$CPP
5108 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5109 $as_echo "$CPP" >&6; }
5110 ac_preproc_ok=false
5111 for ac_c_preproc_warn_flag in '' yes
5113 # Use a header file that comes with gcc, so configuring glibc
5114 # with a fresh cross-compiler works.
5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 # <limits.h> exists even on freestanding compilers.
5117 # On the NeXT, cc -E runs the code through the compiler's parser,
5118 # not just through cpp. "Syntax error" is here to catch this case.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #ifdef __STDC__
5126 # include <limits.h>
5127 #else
5128 # include <assert.h>
5129 #endif
5130 Syntax error
5131 _ACEOF
5132 if { (ac_try="$ac_cpp conftest.$ac_ext"
5133 case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5138 $as_echo "$ac_try_echo") >&5
5139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } >/dev/null && {
5146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 }; then
5150 else
5151 $as_echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 # Broken: fails on valid input.
5155 continue
5158 rm -f conftest.err conftest.$ac_ext
5160 # OK, works on sane cases. Now check whether nonexistent headers
5161 # can be detected and how.
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <ac_nonexistent.h>
5169 _ACEOF
5170 if { (ac_try="$ac_cpp conftest.$ac_ext"
5171 case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5176 $as_echo "$ac_try_echo") >&5
5177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } >/dev/null && {
5184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5185 test ! -s conftest.err
5186 }; then
5187 # Broken: success on invalid input.
5188 continue
5189 else
5190 $as_echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193 # Passes both tests.
5194 ac_preproc_ok=:
5195 break
5198 rm -f conftest.err conftest.$ac_ext
5200 done
5201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202 rm -f conftest.err conftest.$ac_ext
5203 if $ac_preproc_ok; then
5205 else
5206 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5208 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5209 See \`config.log' for more details." >&5
5210 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5211 See \`config.log' for more details." >&2;}
5212 { (exit 1); exit 1; }; }; }
5215 ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5223 $as_echo_n "checking for ANSI C header files... " >&6; }
5224 if test "${ac_cv_header_stdc+set}" = set; then
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <stdlib.h>
5234 #include <stdarg.h>
5235 #include <string.h>
5236 #include <float.h>
5239 main ()
5243 return 0;
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5253 $as_echo "$ac_try_echo") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
5264 ac_cv_header_stdc=yes
5265 else
5266 $as_echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_cv_header_stdc=no
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 if test $ac_cv_header_stdc = yes; then
5275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <string.h>
5284 _ACEOF
5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286 $EGREP "memchr" >/dev/null 2>&1; then
5288 else
5289 ac_cv_header_stdc=no
5291 rm -f conftest*
5295 if test $ac_cv_header_stdc = yes; then
5296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5297 cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <stdlib.h>
5305 _ACEOF
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "free" >/dev/null 2>&1; then
5309 else
5310 ac_cv_header_stdc=no
5312 rm -f conftest*
5316 if test $ac_cv_header_stdc = yes; then
5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318 if test "$cross_compiling" = yes; then
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <ctype.h>
5328 #include <stdlib.h>
5329 #if ((' ' & 0x0FF) == 0x020)
5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332 #else
5333 # define ISLOWER(c) \
5334 (('a' <= (c) && (c) <= 'i') \
5335 || ('j' <= (c) && (c) <= 'r') \
5336 || ('s' <= (c) && (c) <= 'z'))
5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338 #endif
5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5342 main ()
5344 int i;
5345 for (i = 0; i < 256; i++)
5346 if (XOR (islower (i), ISLOWER (i))
5347 || toupper (i) != TOUPPER (i))
5348 return 2;
5349 return 0;
5351 _ACEOF
5352 rm -f conftest$ac_exeext
5353 if { (ac_try="$ac_link"
5354 case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357 esac
5358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5359 $as_echo "$ac_try_echo") >&5
5360 (eval "$ac_link") 2>&5
5361 ac_status=$?
5362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5369 $as_echo "$ac_try_echo") >&5
5370 (eval "$ac_try") 2>&5
5371 ac_status=$?
5372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5375 else
5376 $as_echo "$as_me: program exited with status $ac_status" >&5
5377 $as_echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 ( exit $ac_status )
5381 ac_cv_header_stdc=no
5383 rm -rf conftest.dSYM
5384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5391 $as_echo "$ac_cv_header_stdc" >&6; }
5392 if test $ac_cv_header_stdc = yes; then
5394 cat >>confdefs.h <<\_ACEOF
5395 #define STDC_HEADERS 1
5396 _ACEOF
5400 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5411 inttypes.h stdint.h unistd.h
5413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5414 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5415 $as_echo_n "checking for $ac_header... " >&6; }
5416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5417 $as_echo_n "(cached) " >&6
5418 else
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5427 #include <$ac_header>
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (ac_try="$ac_compile"
5431 case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434 esac
5435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5436 $as_echo "$ac_try_echo") >&5
5437 (eval "$ac_compile") 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } && {
5444 test -z "$ac_c_werror_flag" ||
5445 test ! -s conftest.err
5446 } && test -s conftest.$ac_objext; then
5447 eval "$as_ac_Header=yes"
5448 else
5449 $as_echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 eval "$as_ac_Header=no"
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 ac_res=`eval 'as_val=${'$as_ac_Header'}
5458 $as_echo "$as_val"'`
5459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5460 $as_echo "$ac_res" >&6; }
5461 as_val=`eval 'as_val=${'$as_ac_Header'}
5462 $as_echo "$as_val"'`
5463 if test "x$as_val" = x""yes; then
5464 cat >>confdefs.h <<_ACEOF
5465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466 _ACEOF
5470 done
5474 for ac_header in dlfcn.h
5476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5478 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5479 $as_echo_n "checking for $ac_header... " >&6; }
5480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5481 $as_echo_n "(cached) " >&6
5483 ac_res=`eval 'as_val=${'$as_ac_Header'}
5484 $as_echo "$as_val"'`
5485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5486 $as_echo "$ac_res" >&6; }
5487 else
5488 # Is the header compilable?
5489 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5490 $as_echo_n "checking $ac_header usability... " >&6; }
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5498 #include <$ac_header>
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_header_compiler=yes
5519 else
5520 $as_echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_header_compiler=no
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5528 $as_echo "$ac_header_compiler" >&6; }
5530 # Is the header present?
5531 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5532 $as_echo_n "checking $ac_header presence... " >&6; }
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #include <$ac_header>
5540 _ACEOF
5541 if { (ac_try="$ac_cpp conftest.$ac_ext"
5542 case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545 esac
5546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5547 $as_echo "$ac_try_echo") >&5
5548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } >/dev/null && {
5555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 }; then
5558 ac_header_preproc=yes
5559 else
5560 $as_echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_header_preproc=no
5566 rm -f conftest.err conftest.$ac_ext
5567 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5568 $as_echo "$ac_header_preproc" >&6; }
5570 # So? What about this header?
5571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5572 yes:no: )
5573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5574 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5576 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5577 ac_header_preproc=yes
5579 no:yes:* )
5580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5581 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5583 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5585 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5587 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5589 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5591 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5592 ( cat <<\_ASBOX
5593 ## ----------------------------------------------- ##
5594 ## Report this to Alistair Crooks <agc@NetBSD.org> ##
5595 ## ----------------------------------------------- ##
5596 _ASBOX
5597 ) | sed "s/^/$as_me: WARNING: /" >&2
5599 esac
5600 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5601 $as_echo_n "checking for $ac_header... " >&6; }
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 $as_echo_n "(cached) " >&6
5604 else
5605 eval "$as_ac_Header=\$ac_header_preproc"
5607 ac_res=`eval 'as_val=${'$as_ac_Header'}
5608 $as_echo "$as_val"'`
5609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5610 $as_echo "$ac_res" >&6; }
5613 as_val=`eval 'as_val=${'$as_ac_Header'}
5614 $as_echo "$as_val"'`
5615 if test "x$as_val" = x""yes; then
5616 cat >>confdefs.h <<_ACEOF
5617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5618 _ACEOF
5622 done
5624 ac_ext=cpp
5625 ac_cpp='$CXXCPP $CPPFLAGS'
5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5629 if test -z "$CXX"; then
5630 if test -n "$CCC"; then
5631 CXX=$CCC
5632 else
5633 if test -n "$ac_tool_prefix"; then
5634 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if test "${ac_cv_prog_CXX+set}" = set; then
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$CXX"; then
5644 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5659 IFS=$as_save_IFS
5663 CXX=$ac_cv_prog_CXX
5664 if test -n "$CXX"; then
5665 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5666 $as_echo "$CXX" >&6; }
5667 else
5668 { $as_echo "$as_me:$LINENO: result: no" >&5
5669 $as_echo "no" >&6; }
5673 test -n "$CXX" && break
5674 done
5676 if test -z "$CXX"; then
5677 ac_ct_CXX=$CXX
5678 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5680 # Extract the first word of "$ac_prog", so it can be a program name with args.
5681 set dummy $ac_prog; ac_word=$2
5682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$ac_ct_CXX"; then
5688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_prog_ac_ct_CXX="$ac_prog"
5698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5701 done
5702 done
5703 IFS=$as_save_IFS
5707 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5708 if test -n "$ac_ct_CXX"; then
5709 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5710 $as_echo "$ac_ct_CXX" >&6; }
5711 else
5712 { $as_echo "$as_me:$LINENO: result: no" >&5
5713 $as_echo "no" >&6; }
5717 test -n "$ac_ct_CXX" && break
5718 done
5720 if test "x$ac_ct_CXX" = x; then
5721 CXX="g++"
5722 else
5723 case $cross_compiling:$ac_tool_warned in
5724 yes:)
5725 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727 ac_tool_warned=yes ;;
5728 esac
5729 CXX=$ac_ct_CXX
5735 # Provide some information about the compiler.
5736 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5737 set X $ac_compile
5738 ac_compiler=$2
5739 { (ac_try="$ac_compiler --version >&5"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5745 $as_echo "$ac_try_echo") >&5
5746 (eval "$ac_compiler --version >&5") 2>&5
5747 ac_status=$?
5748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }
5750 { (ac_try="$ac_compiler -v >&5"
5751 case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754 esac
5755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5756 $as_echo "$ac_try_echo") >&5
5757 (eval "$ac_compiler -v >&5") 2>&5
5758 ac_status=$?
5759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }
5761 { (ac_try="$ac_compiler -V >&5"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767 $as_echo "$ac_try_echo") >&5
5768 (eval "$ac_compiler -V >&5") 2>&5
5769 ac_status=$?
5770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }
5773 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5774 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5775 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5786 main ()
5788 #ifndef __GNUC__
5789 choke me
5790 #endif
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803 $as_echo "$ac_try_echo") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_cxx_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 ac_compiler_gnu=yes
5815 else
5816 $as_echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_compiler_gnu=no
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5826 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5828 if test $ac_compiler_gnu = yes; then
5829 GXX=yes
5830 else
5831 GXX=
5833 ac_test_CXXFLAGS=${CXXFLAGS+set}
5834 ac_save_CXXFLAGS=$CXXFLAGS
5835 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5836 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5837 if test "${ac_cv_prog_cxx_g+set}" = set; then
5838 $as_echo_n "(cached) " >&6
5839 else
5840 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5841 ac_cxx_werror_flag=yes
5842 ac_cv_prog_cxx_g=no
5843 CXXFLAGS="-g"
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5852 main ()
5856 return 0;
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5861 case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864 esac
5865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5866 $as_echo "$ac_try_echo") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_cxx_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.$ac_objext; then
5877 ac_cv_prog_cxx_g=yes
5878 else
5879 $as_echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 CXXFLAGS=""
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5891 main ()
5895 return 0;
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5900 case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5903 esac
5904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5905 $as_echo "$ac_try_echo") >&5
5906 (eval "$ac_compile") 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } && {
5913 test -z "$ac_cxx_werror_flag" ||
5914 test ! -s conftest.err
5915 } && test -s conftest.$ac_objext; then
5917 else
5918 $as_echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5922 CXXFLAGS="-g"
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5931 main ()
5935 return 0;
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_cxx_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_cv_prog_cxx_g=yes
5957 else
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5973 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5974 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5975 if test "$ac_test_CXXFLAGS" = set; then
5976 CXXFLAGS=$ac_save_CXXFLAGS
5977 elif test $ac_cv_prog_cxx_g = yes; then
5978 if test "$GXX" = yes; then
5979 CXXFLAGS="-g -O2"
5980 else
5981 CXXFLAGS="-g"
5983 else
5984 if test "$GXX" = yes; then
5985 CXXFLAGS="-O2"
5986 else
5987 CXXFLAGS=
5990 ac_ext=cpp
5991 ac_cpp='$CXXCPP $CPPFLAGS'
5992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5996 depcc="$CXX" am_compiler_list=
5998 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5999 $as_echo_n "checking dependency style of $depcc... " >&6; }
6000 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6004 # We make a subdir and do the tests there. Otherwise we can end up
6005 # making bogus files that we don't know about and never remove. For
6006 # instance it was reported that on HP-UX the gcc test will end up
6007 # making a dummy file named `D' -- because `-MD' means `put the output
6008 # in D'.
6009 mkdir conftest.dir
6010 # Copy depcomp to subdir because otherwise we won't find it if we're
6011 # using a relative directory.
6012 cp "$am_depcomp" conftest.dir
6013 cd conftest.dir
6014 # We will build objects and dependencies in a subdirectory because
6015 # it helps to detect inapplicable dependency modes. For instance
6016 # both Tru64's cc and ICC support -MD to output dependencies as a
6017 # side effect of compilation, but ICC will put the dependencies in
6018 # the current directory while Tru64 will put them in the object
6019 # directory.
6020 mkdir sub
6022 am_cv_CXX_dependencies_compiler_type=none
6023 if test "$am_compiler_list" = ""; then
6024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6026 for depmode in $am_compiler_list; do
6027 # Setup a source with many dependencies, because some compilers
6028 # like to wrap large dependency lists on column 80 (with \), and
6029 # we should not choose a depcomp mode which is confused by this.
6031 # We need to recreate these files for each test, as the compiler may
6032 # overwrite some of them when testing with obscure command lines.
6033 # This happens at least with the AIX C compiler.
6034 : > sub/conftest.c
6035 for i in 1 2 3 4 5 6; do
6036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6038 # Solaris 8's {/usr,}/bin/sh.
6039 touch sub/conftst$i.h
6040 done
6041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6043 case $depmode in
6044 nosideeffect)
6045 # after this tag, mechanisms are not by side-effect, so they'll
6046 # only be used when explicitly requested
6047 if test "x$enable_dependency_tracking" = xyes; then
6048 continue
6049 else
6050 break
6053 none) break ;;
6054 esac
6055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6056 # mode. It turns out that the SunPro C++ compiler does not properly
6057 # handle `-M -o', and we need to detect this.
6058 if depmode=$depmode \
6059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6062 >/dev/null 2>conftest.err &&
6063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6065 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6067 # icc doesn't choke on unknown options, it will just issue warnings
6068 # or remarks (even with -Werror). So we grep stderr for any message
6069 # that says an option was ignored or not supported.
6070 # When given -MP, icc 7.0 and 7.1 complain thusly:
6071 # icc: Command line warning: ignoring option '-M'; no argument required
6072 # The diagnosis changed in icc 8.0:
6073 # icc: Command line remark: option '-MP' not supported
6074 if (grep 'ignoring option' conftest.err ||
6075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6076 am_cv_CXX_dependencies_compiler_type=$depmode
6077 break
6080 done
6082 cd ..
6083 rm -rf conftest.dir
6084 else
6085 am_cv_CXX_dependencies_compiler_type=none
6089 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6090 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6091 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6094 test "x$enable_dependency_tracking" != xno \
6095 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6096 am__fastdepCXX_TRUE=
6097 am__fastdepCXX_FALSE='#'
6098 else
6099 am__fastdepCXX_TRUE='#'
6100 am__fastdepCXX_FALSE=
6106 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6107 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6108 (test "X$CXX" != "Xg++"))) ; then
6109 ac_ext=cpp
6110 ac_cpp='$CXXCPP $CPPFLAGS'
6111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6114 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6115 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6116 if test -z "$CXXCPP"; then
6117 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6118 $as_echo_n "(cached) " >&6
6119 else
6120 # Double quotes because CXXCPP needs to be expanded
6121 for CXXCPP in "$CXX -E" "/lib/cpp"
6123 ac_preproc_ok=false
6124 for ac_cxx_preproc_warn_flag in '' yes
6126 # Use a header file that comes with gcc, so configuring glibc
6127 # with a fresh cross-compiler works.
6128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129 # <limits.h> exists even on freestanding compilers.
6130 # On the NeXT, cc -E runs the code through the compiler's parser,
6131 # not just through cpp. "Syntax error" is here to catch this case.
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #ifdef __STDC__
6139 # include <limits.h>
6140 #else
6141 # include <assert.h>
6142 #endif
6143 Syntax error
6144 _ACEOF
6145 if { (ac_try="$ac_cpp conftest.$ac_ext"
6146 case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6151 $as_echo "$ac_try_echo") >&5
6152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null && {
6159 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6160 test ! -s conftest.err
6161 }; then
6163 else
6164 $as_echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6167 # Broken: fails on valid input.
6168 continue
6171 rm -f conftest.err conftest.$ac_ext
6173 # OK, works on sane cases. Now check whether nonexistent headers
6174 # can be detected and how.
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <ac_nonexistent.h>
6182 _ACEOF
6183 if { (ac_try="$ac_cpp conftest.$ac_ext"
6184 case "(($ac_try" in
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6187 esac
6188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6189 $as_echo "$ac_try_echo") >&5
6190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } >/dev/null && {
6197 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6198 test ! -s conftest.err
6199 }; then
6200 # Broken: success on invalid input.
6201 continue
6202 else
6203 $as_echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 # Passes both tests.
6207 ac_preproc_ok=:
6208 break
6211 rm -f conftest.err conftest.$ac_ext
6213 done
6214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6215 rm -f conftest.err conftest.$ac_ext
6216 if $ac_preproc_ok; then
6217 break
6220 done
6221 ac_cv_prog_CXXCPP=$CXXCPP
6224 CXXCPP=$ac_cv_prog_CXXCPP
6225 else
6226 ac_cv_prog_CXXCPP=$CXXCPP
6228 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6229 $as_echo "$CXXCPP" >&6; }
6230 ac_preproc_ok=false
6231 for ac_cxx_preproc_warn_flag in '' yes
6233 # Use a header file that comes with gcc, so configuring glibc
6234 # with a fresh cross-compiler works.
6235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6236 # <limits.h> exists even on freestanding compilers.
6237 # On the NeXT, cc -E runs the code through the compiler's parser,
6238 # not just through cpp. "Syntax error" is here to catch this case.
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 #ifdef __STDC__
6246 # include <limits.h>
6247 #else
6248 # include <assert.h>
6249 #endif
6250 Syntax error
6251 _ACEOF
6252 if { (ac_try="$ac_cpp conftest.$ac_ext"
6253 case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256 esac
6257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6258 $as_echo "$ac_try_echo") >&5
6259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } >/dev/null && {
6266 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6267 test ! -s conftest.err
6268 }; then
6270 else
6271 $as_echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 # Broken: fails on valid input.
6275 continue
6278 rm -f conftest.err conftest.$ac_ext
6280 # OK, works on sane cases. Now check whether nonexistent headers
6281 # can be detected and how.
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <ac_nonexistent.h>
6289 _ACEOF
6290 if { (ac_try="$ac_cpp conftest.$ac_ext"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6296 $as_echo "$ac_try_echo") >&5
6297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6298 ac_status=$?
6299 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -f conftest.er1
6301 cat conftest.err >&5
6302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } >/dev/null && {
6304 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6305 test ! -s conftest.err
6306 }; then
6307 # Broken: success on invalid input.
6308 continue
6309 else
6310 $as_echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 # Passes both tests.
6314 ac_preproc_ok=:
6315 break
6318 rm -f conftest.err conftest.$ac_ext
6320 done
6321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6322 rm -f conftest.err conftest.$ac_ext
6323 if $ac_preproc_ok; then
6325 else
6326 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6328 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6329 See \`config.log' for more details." >&5
6330 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6331 See \`config.log' for more details." >&2;}
6332 { (exit 1); exit 1; }; }; }
6335 ac_ext=cpp
6336 ac_cpp='$CXXCPP $CPPFLAGS'
6337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6344 ac_ext=f
6345 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6346 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6348 if test -n "$ac_tool_prefix"; then
6349 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
6351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if test "${ac_cv_prog_F77+set}" = set; then
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$F77"; then
6359 ac_cv_prog_F77="$F77" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6372 done
6373 done
6374 IFS=$as_save_IFS
6378 F77=$ac_cv_prog_F77
6379 if test -n "$F77"; then
6380 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6381 $as_echo "$F77" >&6; }
6382 else
6383 { $as_echo "$as_me:$LINENO: result: no" >&5
6384 $as_echo "no" >&6; }
6388 test -n "$F77" && break
6389 done
6391 if test -z "$F77"; then
6392 ac_ct_F77=$F77
6393 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
6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
6396 set dummy $ac_prog; ac_word=$2
6397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$ac_ct_F77"; then
6403 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_ac_ct_F77="$ac_prog"
6413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6418 IFS=$as_save_IFS
6422 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6423 if test -n "$ac_ct_F77"; then
6424 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6425 $as_echo "$ac_ct_F77" >&6; }
6426 else
6427 { $as_echo "$as_me:$LINENO: result: no" >&5
6428 $as_echo "no" >&6; }
6432 test -n "$ac_ct_F77" && break
6433 done
6435 if test "x$ac_ct_F77" = x; then
6436 F77=""
6437 else
6438 case $cross_compiling:$ac_tool_warned in
6439 yes:)
6440 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442 ac_tool_warned=yes ;;
6443 esac
6444 F77=$ac_ct_F77
6449 # Provide some information about the compiler.
6450 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6451 set X $ac_compile
6452 ac_compiler=$2
6453 { (ac_try="$ac_compiler --version >&5"
6454 case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457 esac
6458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6459 $as_echo "$ac_try_echo") >&5
6460 (eval "$ac_compiler --version >&5") 2>&5
6461 ac_status=$?
6462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464 { (ac_try="$ac_compiler -v >&5"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6470 $as_echo "$ac_try_echo") >&5
6471 (eval "$ac_compiler -v >&5") 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }
6475 { (ac_try="$ac_compiler -V >&5"
6476 case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479 esac
6480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6481 $as_echo "$ac_try_echo") >&5
6482 (eval "$ac_compiler -V >&5") 2>&5
6483 ac_status=$?
6484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }
6486 rm -f a.out
6488 # If we don't use `.F' as extension, the preprocessor is not run on the
6489 # input file. (Note that this only needs to work for GNU compilers.)
6490 ac_save_ext=$ac_ext
6491 ac_ext=F
6492 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6493 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6494 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6495 $as_echo_n "(cached) " >&6
6496 else
6497 cat >conftest.$ac_ext <<_ACEOF
6498 program main
6499 #ifndef __GNUC__
6500 choke me
6501 #endif
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (ac_try="$ac_compile"
6507 case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510 esac
6511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6512 $as_echo "$ac_try_echo") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && {
6520 test -z "$ac_f77_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest.$ac_objext; then
6523 ac_compiler_gnu=yes
6524 else
6525 $as_echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 ac_compiler_gnu=no
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6535 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6536 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6537 ac_ext=$ac_save_ext
6538 ac_test_FFLAGS=${FFLAGS+set}
6539 ac_save_FFLAGS=$FFLAGS
6540 FFLAGS=
6541 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6542 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6543 if test "${ac_cv_prog_f77_g+set}" = set; then
6544 $as_echo_n "(cached) " >&6
6545 else
6546 FFLAGS=-g
6547 cat >conftest.$ac_ext <<_ACEOF
6548 program main
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_f77_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 ac_cv_prog_f77_g=yes
6571 else
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_cv_prog_f77_g=no
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6582 $as_echo "$ac_cv_prog_f77_g" >&6; }
6583 if test "$ac_test_FFLAGS" = set; then
6584 FFLAGS=$ac_save_FFLAGS
6585 elif test $ac_cv_prog_f77_g = yes; then
6586 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6587 FFLAGS="-g -O2"
6588 else
6589 FFLAGS="-g"
6591 else
6592 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6593 FFLAGS="-O2"
6594 else
6595 FFLAGS=
6599 if test $ac_compiler_gnu = yes; then
6600 G77=yes
6601 else
6602 G77=
6604 ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6614 # find the maximum length of command line arguments
6615 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6616 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6617 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6618 $as_echo_n "(cached) " >&6
6619 else
6621 teststring="ABCD"
6623 case $build_os in
6624 msdosdjgpp*)
6625 # On DJGPP, this test can blow up pretty badly due to problems in libc
6626 # (any single argument exceeding 2000 bytes causes a buffer overrun
6627 # during glob expansion). Even if it were fixed, the result of this
6628 # check would be larger than it should be.
6629 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6632 gnu*)
6633 # Under GNU Hurd, this test is not required because there is
6634 # no limit to the length of command line arguments.
6635 # Libtool will interpret -1 as no limit whatsoever
6636 lt_cv_sys_max_cmd_len=-1;
6639 cygwin* | mingw*)
6640 # On Win9x/ME, this test blows up -- it succeeds, but takes
6641 # about 5 minutes as the teststring grows exponentially.
6642 # Worse, since 9x/ME are not pre-emptively multitasking,
6643 # you end up with a "frozen" computer, even though with patience
6644 # the test eventually succeeds (with a max line length of 256k).
6645 # Instead, let's just punt: use the minimum linelength reported by
6646 # all of the supported platforms: 8192 (on NT/2K/XP).
6647 lt_cv_sys_max_cmd_len=8192;
6650 amigaos*)
6651 # On AmigaOS with pdksh, this test takes hours, literally.
6652 # So we just punt and use a minimum line length of 8192.
6653 lt_cv_sys_max_cmd_len=8192;
6656 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6657 # This has been around since 386BSD, at least. Likely further.
6658 if test -x /sbin/sysctl; then
6659 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6660 elif test -x /usr/sbin/sysctl; then
6661 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6662 else
6663 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6665 # And add a safety zone
6666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6670 interix*)
6671 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6672 lt_cv_sys_max_cmd_len=196608
6675 osf*)
6676 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6677 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6678 # nice to cause kernel panics so lets avoid the loop below.
6679 # First set a reasonable default.
6680 lt_cv_sys_max_cmd_len=16384
6682 if test -x /sbin/sysconfig; then
6683 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6684 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6685 esac
6688 sco3.2v5*)
6689 lt_cv_sys_max_cmd_len=102400
6691 sysv5* | sco5v6* | sysv4.2uw2*)
6692 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6693 if test -n "$kargmax"; then
6694 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6695 else
6696 lt_cv_sys_max_cmd_len=32768
6700 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6701 if test -n "$lt_cv_sys_max_cmd_len"; then
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6704 else
6705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6706 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6707 = "XX$teststring") >/dev/null 2>&1 &&
6708 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6709 lt_cv_sys_max_cmd_len=$new_result &&
6710 test $i != 17 # 1/2 MB should be enough
6712 i=`expr $i + 1`
6713 teststring=$teststring$teststring
6714 done
6715 teststring=
6716 # Add a significant safety factor because C++ compilers can tack on massive
6717 # amounts of additional arguments before passing them to the linker.
6718 # It appears as though 1/2 is a usable value.
6719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6722 esac
6726 if test -n $lt_cv_sys_max_cmd_len ; then
6727 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6728 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6729 else
6730 { $as_echo "$as_me:$LINENO: result: none" >&5
6731 $as_echo "none" >&6; }
6738 # Check for command to grab the raw symbol name followed by C symbol from nm.
6739 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6740 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6741 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6742 $as_echo_n "(cached) " >&6
6743 else
6745 # These are sane defaults that work on at least a few old systems.
6746 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6748 # Character class describing NM global symbol codes.
6749 symcode='[BCDEGRST]'
6751 # Regexp to match symbols that can be accessed directly from C.
6752 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6754 # Transform an extracted symbol line into a proper C declaration
6755 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6757 # Transform an extracted symbol line into symbol name and symbol address
6758 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'"
6760 # Define system-specific variables.
6761 case $host_os in
6762 aix*)
6763 symcode='[BCDT]'
6765 cygwin* | mingw* | pw32*)
6766 symcode='[ABCDGISTW]'
6768 hpux*) # Its linker distinguishes data from code symbols
6769 if test "$host_cpu" = ia64; then
6770 symcode='[ABCDEGRST]'
6772 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6773 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'"
6775 linux* | k*bsd*-gnu)
6776 if test "$host_cpu" = ia64; then
6777 symcode='[ABCDGIRSTW]'
6778 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6779 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'"
6782 irix* | nonstopux*)
6783 symcode='[BCDEGRST]'
6785 osf*)
6786 symcode='[BCDEGQRST]'
6788 solaris*)
6789 symcode='[BDRT]'
6791 sco3.2v5*)
6792 symcode='[DT]'
6794 sysv4.2uw2*)
6795 symcode='[DT]'
6797 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6798 symcode='[ABDT]'
6800 sysv4)
6801 symcode='[DFNSTU]'
6803 esac
6805 # Handle CRLF in mingw tool chain
6806 opt_cr=
6807 case $build_os in
6808 mingw*)
6809 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6811 esac
6813 # If we're using GNU nm, then use its standard symbol codes.
6814 case `$NM -V 2>&1` in
6815 *GNU* | *'with BFD'*)
6816 symcode='[ABCDGIRSTW]' ;;
6817 esac
6819 # Try without a prefix undercore, then with it.
6820 for ac_symprfx in "" "_"; do
6822 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6823 symxfrm="\\1 $ac_symprfx\\2 \\2"
6825 # Write the raw and C identifiers.
6826 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6828 # Check to see that the pipe works correctly.
6829 pipe_works=no
6831 rm -f conftest*
6832 cat > conftest.$ac_ext <<EOF
6833 #ifdef __cplusplus
6834 extern "C" {
6835 #endif
6836 char nm_test_var;
6837 void nm_test_func(){}
6838 #ifdef __cplusplus
6840 #endif
6841 int main(){nm_test_var='a';nm_test_func();return(0);}
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>&5
6846 ac_status=$?
6847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; then
6849 # Now try to grab the symbols.
6850 nlist=conftest.nm
6851 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6852 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } && test -s "$nlist"; then
6856 # Try sorting and uniquifying the output.
6857 if sort "$nlist" | uniq > "$nlist"T; then
6858 mv -f "$nlist"T "$nlist"
6859 else
6860 rm -f "$nlist"T
6863 # Make sure that we snagged all the symbols we need.
6864 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6865 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6866 cat <<EOF > conftest.$ac_ext
6867 #ifdef __cplusplus
6868 extern "C" {
6869 #endif
6872 # Now generate the symbol file.
6873 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6875 cat <<EOF >> conftest.$ac_ext
6876 #if defined (__STDC__) && __STDC__
6877 # define lt_ptr_t void *
6878 #else
6879 # define lt_ptr_t char *
6880 # define const
6881 #endif
6883 /* The mapping between symbol names and symbols. */
6884 const struct {
6885 const char *name;
6886 lt_ptr_t address;
6888 lt_preloaded_symbols[] =
6891 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6892 cat <<\EOF >> conftest.$ac_ext
6893 {0, (lt_ptr_t) 0}
6896 #ifdef __cplusplus
6898 #endif
6900 # Now try linking the two files.
6901 mv conftest.$ac_objext conftstm.$ac_objext
6902 lt_save_LIBS="$LIBS"
6903 lt_save_CFLAGS="$CFLAGS"
6904 LIBS="conftstm.$ac_objext"
6905 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907 (eval $ac_link) 2>&5
6908 ac_status=$?
6909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6911 pipe_works=yes
6913 LIBS="$lt_save_LIBS"
6914 CFLAGS="$lt_save_CFLAGS"
6915 else
6916 echo "cannot find nm_test_func in $nlist" >&5
6918 else
6919 echo "cannot find nm_test_var in $nlist" >&5
6921 else
6922 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6924 else
6925 echo "$progname: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6928 rm -f conftest* conftst*
6930 # Do not use the global_symbol_pipe unless it works.
6931 if test "$pipe_works" = yes; then
6932 break
6933 else
6934 lt_cv_sys_global_symbol_pipe=
6936 done
6940 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6941 lt_cv_sys_global_symbol_to_cdecl=
6943 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6944 { $as_echo "$as_me:$LINENO: result: failed" >&5
6945 $as_echo "failed" >&6; }
6946 else
6947 { $as_echo "$as_me:$LINENO: result: ok" >&5
6948 $as_echo "ok" >&6; }
6951 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6952 $as_echo_n "checking for objdir... " >&6; }
6953 if test "${lt_cv_objdir+set}" = set; then
6954 $as_echo_n "(cached) " >&6
6955 else
6956 rm -f .libs 2>/dev/null
6957 mkdir .libs 2>/dev/null
6958 if test -d .libs; then
6959 lt_cv_objdir=.libs
6960 else
6961 # MS-DOS does not allow filenames that begin with a dot.
6962 lt_cv_objdir=_libs
6964 rmdir .libs 2>/dev/null
6966 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6967 $as_echo "$lt_cv_objdir" >&6; }
6968 objdir=$lt_cv_objdir
6974 case $host_os in
6975 aix3*)
6976 # AIX sometimes has problems with the GCC collect2 program. For some
6977 # reason, if we set the COLLECT_NAMES environment variable, the problems
6978 # vanish in a puff of smoke.
6979 if test "X${COLLECT_NAMES+set}" != Xset; then
6980 COLLECT_NAMES=
6981 export COLLECT_NAMES
6984 esac
6986 # Sed substitution that helps us do robust quoting. It backslashifies
6987 # metacharacters that are still active within double-quoted strings.
6988 Xsed='sed -e 1s/^X//'
6989 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6991 # Same as above, but do not quote variable references.
6992 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6994 # Sed substitution to delay expansion of an escaped shell variable in a
6995 # double_quote_subst'ed string.
6996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6998 # Sed substitution to avoid accidental globbing in evaled expressions
6999 no_glob_subst='s/\*/\\\*/g'
7001 # Constants:
7002 rm="rm -f"
7004 # Global variables:
7005 default_ofile=libtool
7006 can_build_shared=yes
7008 # All known linkers require a `.a' archive for static linking (except MSVC,
7009 # which needs '.lib').
7010 libext=a
7011 ltmain="$ac_aux_dir/ltmain.sh"
7012 ofile="$default_ofile"
7013 with_gnu_ld="$lt_cv_prog_gnu_ld"
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}ar; ac_word=$2
7018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if test "${ac_cv_prog_AR+set}" = set; then
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$AR"; then
7024 ac_cv_prog_AR="$AR" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_AR="${ac_tool_prefix}ar"
7034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7037 done
7038 done
7039 IFS=$as_save_IFS
7043 AR=$ac_cv_prog_AR
7044 if test -n "$AR"; then
7045 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7046 $as_echo "$AR" >&6; }
7047 else
7048 { $as_echo "$as_me:$LINENO: result: no" >&5
7049 $as_echo "no" >&6; }
7054 if test -z "$ac_cv_prog_AR"; then
7055 ac_ct_AR=$AR
7056 # Extract the first word of "ar", so it can be a program name with args.
7057 set dummy ar; ac_word=$2
7058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -n "$ac_ct_AR"; then
7064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_AR="ar"
7074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7077 done
7078 done
7079 IFS=$as_save_IFS
7083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7084 if test -n "$ac_ct_AR"; then
7085 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7086 $as_echo "$ac_ct_AR" >&6; }
7087 else
7088 { $as_echo "$as_me:$LINENO: result: no" >&5
7089 $as_echo "no" >&6; }
7092 if test "x$ac_ct_AR" = x; then
7093 AR="false"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101 AR=$ac_ct_AR
7103 else
7104 AR="$ac_cv_prog_AR"
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if test "${ac_cv_prog_RANLIB+set}" = set; then
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$RANLIB"; then
7116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7129 done
7130 done
7131 IFS=$as_save_IFS
7135 RANLIB=$ac_cv_prog_RANLIB
7136 if test -n "$RANLIB"; then
7137 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7138 $as_echo "$RANLIB" >&6; }
7139 else
7140 { $as_echo "$as_me:$LINENO: result: no" >&5
7141 $as_echo "no" >&6; }
7146 if test -z "$ac_cv_prog_RANLIB"; then
7147 ac_ct_RANLIB=$RANLIB
7148 # Extract the first word of "ranlib", so it can be a program name with args.
7149 set dummy ranlib; ac_word=$2
7150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$ac_ct_RANLIB"; then
7156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_ac_ct_RANLIB="ranlib"
7166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7169 done
7170 done
7171 IFS=$as_save_IFS
7175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7176 if test -n "$ac_ct_RANLIB"; then
7177 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7178 $as_echo "$ac_ct_RANLIB" >&6; }
7179 else
7180 { $as_echo "$as_me:$LINENO: result: no" >&5
7181 $as_echo "no" >&6; }
7184 if test "x$ac_ct_RANLIB" = x; then
7185 RANLIB=":"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188 yes:)
7189 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191 ac_tool_warned=yes ;;
7192 esac
7193 RANLIB=$ac_ct_RANLIB
7195 else
7196 RANLIB="$ac_cv_prog_RANLIB"
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}strip; ac_word=$2
7202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if test "${ac_cv_prog_STRIP+set}" = set; then
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$STRIP"; then
7208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7221 done
7222 done
7223 IFS=$as_save_IFS
7227 STRIP=$ac_cv_prog_STRIP
7228 if test -n "$STRIP"; then
7229 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7230 $as_echo "$STRIP" >&6; }
7231 else
7232 { $as_echo "$as_me:$LINENO: result: no" >&5
7233 $as_echo "no" >&6; }
7238 if test -z "$ac_cv_prog_STRIP"; then
7239 ac_ct_STRIP=$STRIP
7240 # Extract the first word of "strip", so it can be a program name with args.
7241 set dummy strip; ac_word=$2
7242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$ac_ct_STRIP"; then
7248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_ac_ct_STRIP="strip"
7258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7261 done
7262 done
7263 IFS=$as_save_IFS
7267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7268 if test -n "$ac_ct_STRIP"; then
7269 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7270 $as_echo "$ac_ct_STRIP" >&6; }
7271 else
7272 { $as_echo "$as_me:$LINENO: result: no" >&5
7273 $as_echo "no" >&6; }
7276 if test "x$ac_ct_STRIP" = x; then
7277 STRIP=":"
7278 else
7279 case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285 STRIP=$ac_ct_STRIP
7287 else
7288 STRIP="$ac_cv_prog_STRIP"
7292 old_CC="$CC"
7293 old_CFLAGS="$CFLAGS"
7295 # Set sane defaults for various variables
7296 test -z "$AR" && AR=ar
7297 test -z "$AR_FLAGS" && AR_FLAGS=cru
7298 test -z "$AS" && AS=as
7299 test -z "$CC" && CC=cc
7300 test -z "$LTCC" && LTCC=$CC
7301 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7302 test -z "$DLLTOOL" && DLLTOOL=dlltool
7303 test -z "$LD" && LD=ld
7304 test -z "$LN_S" && LN_S="ln -s"
7305 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7306 test -z "$NM" && NM=nm
7307 test -z "$SED" && SED=sed
7308 test -z "$OBJDUMP" && OBJDUMP=objdump
7309 test -z "$RANLIB" && RANLIB=:
7310 test -z "$STRIP" && STRIP=:
7311 test -z "$ac_objext" && ac_objext=o
7313 # Determine commands to create old-style static archives.
7314 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7315 old_postinstall_cmds='chmod 644 $oldlib'
7316 old_postuninstall_cmds=
7318 if test -n "$RANLIB"; then
7319 case $host_os in
7320 openbsd*)
7321 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7324 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7326 esac
7327 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7330 for cc_temp in $compiler""; do
7331 case $cc_temp in
7332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7334 \-*) ;;
7335 *) break;;
7336 esac
7337 done
7338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7341 # Only perform the check for file, if the check method requires it
7342 case $deplibs_check_method in
7343 file_magic*)
7344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7345 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7346 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7347 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7348 $as_echo_n "(cached) " >&6
7349 else
7350 case $MAGIC_CMD in
7351 [\\/*] | ?:[\\/]*)
7352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7355 lt_save_MAGIC_CMD="$MAGIC_CMD"
7356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7358 for ac_dir in $ac_dummy; do
7359 IFS="$lt_save_ifs"
7360 test -z "$ac_dir" && ac_dir=.
7361 if test -f $ac_dir/${ac_tool_prefix}file; then
7362 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7363 if test -n "$file_magic_test_file"; then
7364 case $deplibs_check_method in
7365 "file_magic "*)
7366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7369 $EGREP "$file_magic_regex" > /dev/null; then
7371 else
7372 cat <<EOF 1>&2
7374 *** Warning: the command libtool uses to detect shared libraries,
7375 *** $file_magic_cmd, produces output that libtool cannot recognize.
7376 *** The result is that libtool may fail to recognize shared libraries
7377 *** as such. This will affect the creation of libtool libraries that
7378 *** depend on shared libraries, but programs linked with such libtool
7379 *** libraries will work regardless of this problem. Nevertheless, you
7380 *** may want to report the problem to your system manager and/or to
7381 *** bug-libtool@gnu.org
7384 fi ;;
7385 esac
7387 break
7389 done
7390 IFS="$lt_save_ifs"
7391 MAGIC_CMD="$lt_save_MAGIC_CMD"
7393 esac
7396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7397 if test -n "$MAGIC_CMD"; then
7398 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7399 $as_echo "$MAGIC_CMD" >&6; }
7400 else
7401 { $as_echo "$as_me:$LINENO: result: no" >&5
7402 $as_echo "no" >&6; }
7405 if test -z "$lt_cv_path_MAGIC_CMD"; then
7406 if test -n "$ac_tool_prefix"; then
7407 { $as_echo "$as_me:$LINENO: checking for file" >&5
7408 $as_echo_n "checking for file... " >&6; }
7409 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7410 $as_echo_n "(cached) " >&6
7411 else
7412 case $MAGIC_CMD in
7413 [\\/*] | ?:[\\/]*)
7414 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7417 lt_save_MAGIC_CMD="$MAGIC_CMD"
7418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7419 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7420 for ac_dir in $ac_dummy; do
7421 IFS="$lt_save_ifs"
7422 test -z "$ac_dir" && ac_dir=.
7423 if test -f $ac_dir/file; then
7424 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7425 if test -n "$file_magic_test_file"; then
7426 case $deplibs_check_method in
7427 "file_magic "*)
7428 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7430 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7431 $EGREP "$file_magic_regex" > /dev/null; then
7433 else
7434 cat <<EOF 1>&2
7436 *** Warning: the command libtool uses to detect shared libraries,
7437 *** $file_magic_cmd, produces output that libtool cannot recognize.
7438 *** The result is that libtool may fail to recognize shared libraries
7439 *** as such. This will affect the creation of libtool libraries that
7440 *** depend on shared libraries, but programs linked with such libtool
7441 *** libraries will work regardless of this problem. Nevertheless, you
7442 *** may want to report the problem to your system manager and/or to
7443 *** bug-libtool@gnu.org
7446 fi ;;
7447 esac
7449 break
7451 done
7452 IFS="$lt_save_ifs"
7453 MAGIC_CMD="$lt_save_MAGIC_CMD"
7455 esac
7458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7459 if test -n "$MAGIC_CMD"; then
7460 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7461 $as_echo "$MAGIC_CMD" >&6; }
7462 else
7463 { $as_echo "$as_me:$LINENO: result: no" >&5
7464 $as_echo "no" >&6; }
7467 else
7468 MAGIC_CMD=:
7474 esac
7476 enable_dlopen=no
7477 enable_win32_dll=no
7479 # Check whether --enable-libtool-lock was given.
7480 if test "${enable_libtool_lock+set}" = set; then
7481 enableval=$enable_libtool_lock;
7484 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7487 # Check whether --with-pic was given.
7488 if test "${with_pic+set}" = set; then
7489 withval=$with_pic; pic_mode="$withval"
7490 else
7491 pic_mode=default
7494 test -z "$pic_mode" && pic_mode=default
7496 # Use C for the default configuration in the libtool script
7497 tagname=
7498 lt_save_CC="$CC"
7499 ac_ext=c
7500 ac_cpp='$CPP $CPPFLAGS'
7501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506 # Source file extension for C test sources.
7507 ac_ext=c
7509 # Object file extension for compiled C test sources.
7510 objext=o
7511 objext=$objext
7513 # Code to be used in simple compile tests
7514 lt_simple_compile_test_code="int some_variable = 0;"
7516 # Code to be used in simple link tests
7517 lt_simple_link_test_code='int main(){return(0);}'
7520 # If no C compiler was specified, use CC.
7521 LTCC=${LTCC-"$CC"}
7523 # If no C compiler flags were specified, use CFLAGS.
7524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7526 # Allow CC to be a program name with arguments.
7527 compiler=$CC
7530 # save warnings/boilerplate of simple test code
7531 ac_outfile=conftest.$ac_objext
7532 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7534 _lt_compiler_boilerplate=`cat conftest.err`
7535 $rm conftest*
7537 ac_outfile=conftest.$ac_objext
7538 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7540 _lt_linker_boilerplate=`cat conftest.err`
7541 $rm conftest*
7545 lt_prog_compiler_no_builtin_flag=
7547 if test "$GCC" = yes; then
7548 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7551 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7552 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7553 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7554 $as_echo_n "(cached) " >&6
7555 else
7556 lt_cv_prog_compiler_rtti_exceptions=no
7557 ac_outfile=conftest.$ac_objext
7558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7559 lt_compiler_flag="-fno-rtti -fno-exceptions"
7560 # Insert the option either (1) after the last *FLAGS variable, or
7561 # (2) before a word containing "conftest.", or (3) at the end.
7562 # Note that $ac_compile itself does not contain backslashes and begins
7563 # with a dollar sign (not a hyphen), so the echo should work correctly.
7564 # The option is referenced via a variable to avoid confusing sed.
7565 lt_compile=`echo "$ac_compile" | $SED \
7566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7568 -e 's:$: $lt_compiler_flag:'`
7569 (eval echo "\"\$as_me:7569: $lt_compile\"" >&5)
7570 (eval "$lt_compile" 2>conftest.err)
7571 ac_status=$?
7572 cat conftest.err >&5
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 if (exit $ac_status) && test -s "$ac_outfile"; then
7575 # The compiler can only warn and ignore the option if not recognized
7576 # So say no if there are warnings other than the usual output.
7577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7580 lt_cv_prog_compiler_rtti_exceptions=yes
7583 $rm conftest*
7586 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7587 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7589 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7590 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7591 else
7597 lt_prog_compiler_wl=
7598 lt_prog_compiler_pic=
7599 lt_prog_compiler_static=
7601 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7602 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7604 if test "$GCC" = yes; then
7605 lt_prog_compiler_wl='-Wl,'
7606 lt_prog_compiler_static='-static'
7608 case $host_os in
7609 aix*)
7610 # All AIX code is PIC.
7611 if test "$host_cpu" = ia64; then
7612 # AIX 5 now supports IA64 processor
7613 lt_prog_compiler_static='-Bstatic'
7617 amigaos*)
7618 # FIXME: we need at least 68020 code to build shared libraries, but
7619 # adding the `-m68020' flag to GCC prevents building anything better,
7620 # like `-m68040'.
7621 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7624 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7625 # PIC is the default for these OSes.
7628 mingw* | cygwin* | pw32* | os2*)
7629 # This hack is so that the source file can tell whether it is being
7630 # built for inclusion in a dll (and should export symbols for example).
7631 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7632 # (--disable-auto-import) libraries
7633 lt_prog_compiler_pic='-DDLL_EXPORT'
7636 darwin* | rhapsody*)
7637 # PIC is the default on this platform
7638 # Common symbols not allowed in MH_DYLIB files
7639 lt_prog_compiler_pic='-fno-common'
7642 interix[3-9]*)
7643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7644 # Instead, we relocate shared libraries at runtime.
7647 msdosdjgpp*)
7648 # Just because we use GCC doesn't mean we suddenly get shared libraries
7649 # on systems that don't support them.
7650 lt_prog_compiler_can_build_shared=no
7651 enable_shared=no
7654 sysv4*MP*)
7655 if test -d /usr/nec; then
7656 lt_prog_compiler_pic=-Kconform_pic
7660 hpux*)
7661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7662 # not for PA HP-UX.
7663 case $host_cpu in
7664 hppa*64*|ia64*)
7665 # +Z the default
7668 lt_prog_compiler_pic='-fPIC'
7670 esac
7674 lt_prog_compiler_pic='-fPIC'
7676 esac
7677 else
7678 # PORTME Check for flag to pass linker flags through the system compiler.
7679 case $host_os in
7680 aix*)
7681 lt_prog_compiler_wl='-Wl,'
7682 if test "$host_cpu" = ia64; then
7683 # AIX 5 now supports IA64 processor
7684 lt_prog_compiler_static='-Bstatic'
7685 else
7686 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7689 darwin*)
7690 # PIC is the default on this platform
7691 # Common symbols not allowed in MH_DYLIB files
7692 case $cc_basename in
7693 xlc*)
7694 lt_prog_compiler_pic='-qnocommon'
7695 lt_prog_compiler_wl='-Wl,'
7697 esac
7700 mingw* | cygwin* | pw32* | os2*)
7701 # This hack is so that the source file can tell whether it is being
7702 # built for inclusion in a dll (and should export symbols for example).
7703 lt_prog_compiler_pic='-DDLL_EXPORT'
7706 hpux9* | hpux10* | hpux11*)
7707 lt_prog_compiler_wl='-Wl,'
7708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7709 # not for PA HP-UX.
7710 case $host_cpu in
7711 hppa*64*|ia64*)
7712 # +Z the default
7715 lt_prog_compiler_pic='+Z'
7717 esac
7718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7719 lt_prog_compiler_static='${wl}-a ${wl}archive'
7722 irix5* | irix6* | nonstopux*)
7723 lt_prog_compiler_wl='-Wl,'
7724 # PIC (with -KPIC) is the default.
7725 lt_prog_compiler_static='-non_shared'
7728 newsos6)
7729 lt_prog_compiler_pic='-KPIC'
7730 lt_prog_compiler_static='-Bstatic'
7733 linux* | k*bsd*-gnu)
7734 case $cc_basename in
7735 icc* | ecc*)
7736 lt_prog_compiler_wl='-Wl,'
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-static'
7740 pgcc* | pgf77* | pgf90* | pgf95*)
7741 # Portland Group compilers (*not* the Pentium gcc compiler,
7742 # which looks to be a dead project)
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='-fpic'
7745 lt_prog_compiler_static='-Bstatic'
7747 ccc*)
7748 lt_prog_compiler_wl='-Wl,'
7749 # All Alpha code is PIC.
7750 lt_prog_compiler_static='-non_shared'
7753 case `$CC -V 2>&1 | sed 5q` in
7754 *Sun\ C*)
7755 # Sun C 5.9
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-Bstatic'
7758 lt_prog_compiler_wl='-Wl,'
7760 *Sun\ F*)
7761 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7762 lt_prog_compiler_pic='-KPIC'
7763 lt_prog_compiler_static='-Bstatic'
7764 lt_prog_compiler_wl=''
7766 esac
7768 esac
7771 osf3* | osf4* | osf5*)
7772 lt_prog_compiler_wl='-Wl,'
7773 # All OSF/1 code is PIC.
7774 lt_prog_compiler_static='-non_shared'
7777 rdos*)
7778 lt_prog_compiler_static='-non_shared'
7781 solaris*)
7782 lt_prog_compiler_pic='-KPIC'
7783 lt_prog_compiler_static='-Bstatic'
7784 case $cc_basename in
7785 f77* | f90* | f95*)
7786 lt_prog_compiler_wl='-Qoption ld ';;
7788 lt_prog_compiler_wl='-Wl,';;
7789 esac
7792 sunos4*)
7793 lt_prog_compiler_wl='-Qoption ld '
7794 lt_prog_compiler_pic='-PIC'
7795 lt_prog_compiler_static='-Bstatic'
7798 sysv4 | sysv4.2uw2* | sysv4.3*)
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_pic='-KPIC'
7801 lt_prog_compiler_static='-Bstatic'
7804 sysv4*MP*)
7805 if test -d /usr/nec ;then
7806 lt_prog_compiler_pic='-Kconform_pic'
7807 lt_prog_compiler_static='-Bstatic'
7811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7817 unicos*)
7818 lt_prog_compiler_wl='-Wl,'
7819 lt_prog_compiler_can_build_shared=no
7822 uts4*)
7823 lt_prog_compiler_pic='-pic'
7824 lt_prog_compiler_static='-Bstatic'
7828 lt_prog_compiler_can_build_shared=no
7830 esac
7833 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7834 $as_echo "$lt_prog_compiler_pic" >&6; }
7837 # Check to make sure the PIC flag actually works.
7839 if test -n "$lt_prog_compiler_pic"; then
7841 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7842 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7843 if test "${lt_prog_compiler_pic_works+set}" = set; then
7844 $as_echo_n "(cached) " >&6
7845 else
7846 lt_prog_compiler_pic_works=no
7847 ac_outfile=conftest.$ac_objext
7848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7850 # Insert the option either (1) after the last *FLAGS variable, or
7851 # (2) before a word containing "conftest.", or (3) at the end.
7852 # Note that $ac_compile itself does not contain backslashes and begins
7853 # with a dollar sign (not a hyphen), so the echo should work correctly.
7854 # The option is referenced via a variable to avoid confusing sed.
7855 lt_compile=`echo "$ac_compile" | $SED \
7856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7858 -e 's:$: $lt_compiler_flag:'`
7859 (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7860 (eval "$lt_compile" 2>conftest.err)
7861 ac_status=$?
7862 cat conftest.err >&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 if (exit $ac_status) && test -s "$ac_outfile"; then
7865 # The compiler can only warn and ignore the option if not recognized
7866 # So say no if there are warnings other than the usual output.
7867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7870 lt_prog_compiler_pic_works=yes
7873 $rm conftest*
7876 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7877 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7879 if test x"$lt_prog_compiler_pic_works" = xyes; then
7880 case $lt_prog_compiler_pic in
7881 "" | " "*) ;;
7882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7883 esac
7884 else
7885 lt_prog_compiler_pic=
7886 lt_prog_compiler_can_build_shared=no
7890 case $host_os in
7891 # For platforms which do not support PIC, -DPIC is meaningless:
7892 *djgpp*)
7893 lt_prog_compiler_pic=
7896 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7898 esac
7901 # Check to make sure the static flag actually works.
7903 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7904 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7905 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7906 if test "${lt_prog_compiler_static_works+set}" = set; then
7907 $as_echo_n "(cached) " >&6
7908 else
7909 lt_prog_compiler_static_works=no
7910 save_LDFLAGS="$LDFLAGS"
7911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7912 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7914 # The linker can only warn and ignore the option if not recognized
7915 # So say no if there are warnings
7916 if test -s conftest.err; then
7917 # Append any errors to the config.log.
7918 cat conftest.err 1>&5
7919 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7921 if diff conftest.exp conftest.er2 >/dev/null; then
7922 lt_prog_compiler_static_works=yes
7924 else
7925 lt_prog_compiler_static_works=yes
7928 $rm conftest*
7929 LDFLAGS="$save_LDFLAGS"
7932 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7933 $as_echo "$lt_prog_compiler_static_works" >&6; }
7935 if test x"$lt_prog_compiler_static_works" = xyes; then
7937 else
7938 lt_prog_compiler_static=
7942 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7944 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7945 $as_echo_n "(cached) " >&6
7946 else
7947 lt_cv_prog_compiler_c_o=no
7948 $rm -r conftest 2>/dev/null
7949 mkdir conftest
7950 cd conftest
7951 mkdir out
7952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7954 lt_compiler_flag="-o out/conftest2.$ac_objext"
7955 # Insert the option either (1) after the last *FLAGS variable, or
7956 # (2) before a word containing "conftest.", or (3) at the end.
7957 # Note that $ac_compile itself does not contain backslashes and begins
7958 # with a dollar sign (not a hyphen), so the echo should work correctly.
7959 lt_compile=`echo "$ac_compile" | $SED \
7960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7962 -e 's:$: $lt_compiler_flag:'`
7963 (eval echo "\"\$as_me:7963: $lt_compile\"" >&5)
7964 (eval "$lt_compile" 2>out/conftest.err)
7965 ac_status=$?
7966 cat out/conftest.err >&5
7967 echo "$as_me:7967: \$? = $ac_status" >&5
7968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7969 then
7970 # The compiler can only warn and ignore the option if not recognized
7971 # So say no if there are warnings
7972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7975 lt_cv_prog_compiler_c_o=yes
7978 chmod u+w . 2>&5
7979 $rm conftest*
7980 # SGI C++ compiler will create directory out/ii_files/ for
7981 # template instantiation
7982 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7983 $rm out/* && rmdir out
7984 cd ..
7985 rmdir conftest
7986 $rm conftest*
7989 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7990 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7993 hard_links="nottested"
7994 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7995 # do not overwrite the value of need_locks provided by the user
7996 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7997 $as_echo_n "checking if we can lock with hard links... " >&6; }
7998 hard_links=yes
7999 $rm conftest*
8000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8001 touch conftest.a
8002 ln conftest.a conftest.b 2>&5 || hard_links=no
8003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8004 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8005 $as_echo "$hard_links" >&6; }
8006 if test "$hard_links" = no; then
8007 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8008 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8009 need_locks=warn
8011 else
8012 need_locks=no
8015 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8016 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8018 runpath_var=
8019 allow_undefined_flag=
8020 enable_shared_with_static_runtimes=no
8021 archive_cmds=
8022 archive_expsym_cmds=
8023 old_archive_From_new_cmds=
8024 old_archive_from_expsyms_cmds=
8025 export_dynamic_flag_spec=
8026 whole_archive_flag_spec=
8027 thread_safe_flag_spec=
8028 hardcode_libdir_flag_spec=
8029 hardcode_libdir_flag_spec_ld=
8030 hardcode_libdir_separator=
8031 hardcode_direct=no
8032 hardcode_minus_L=no
8033 hardcode_shlibpath_var=unsupported
8034 link_all_deplibs=unknown
8035 hardcode_automatic=no
8036 module_cmds=
8037 module_expsym_cmds=
8038 always_export_symbols=no
8039 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8040 # include_expsyms should be a list of space-separated symbols to be *always*
8041 # included in the symbol list
8042 include_expsyms=
8043 # exclude_expsyms can be an extended regexp of symbols to exclude
8044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8046 # as well as any symbol that contains `d'.
8047 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8049 # platforms (ab)use it in PIC code, but their linkers get confused if
8050 # the symbol is explicitly referenced. Since portable code cannot
8051 # rely on this symbol name, it's probably fine to never include it in
8052 # preloaded symbol tables.
8053 extract_expsyms_cmds=
8054 # Just being paranoid about ensuring that cc_basename is set.
8055 for cc_temp in $compiler""; do
8056 case $cc_temp in
8057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8059 \-*) ;;
8060 *) break;;
8061 esac
8062 done
8063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8065 case $host_os in
8066 cygwin* | mingw* | pw32*)
8067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8068 # When not using gcc, we currently assume that we are using
8069 # Microsoft Visual C++.
8070 if test "$GCC" != yes; then
8071 with_gnu_ld=no
8074 interix*)
8075 # we just hope/assume this is gcc and not c89 (= MSVC++)
8076 with_gnu_ld=yes
8078 openbsd*)
8079 with_gnu_ld=no
8081 esac
8083 ld_shlibs=yes
8084 if test "$with_gnu_ld" = yes; then
8085 # If archive_cmds runs LD, not CC, wlarc should be empty
8086 wlarc='${wl}'
8088 # Set some defaults for GNU ld with shared library support. These
8089 # are reset later if shared libraries are not supported. Putting them
8090 # here allows them to be overridden if necessary.
8091 runpath_var=LD_RUN_PATH
8092 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8093 export_dynamic_flag_spec='${wl}--export-dynamic'
8094 # ancient GNU ld didn't support --whole-archive et. al.
8095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8096 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8097 else
8098 whole_archive_flag_spec=
8100 supports_anon_versioning=no
8101 case `$LD -v 2>/dev/null` in
8102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8105 *\ 2.11.*) ;; # other 2.11 versions
8106 *) supports_anon_versioning=yes ;;
8107 esac
8109 # See if GNU ld supports shared libraries.
8110 case $host_os in
8111 aix3* | aix4* | aix5*)
8112 # On AIX/PPC, the GNU linker is very broken
8113 if test "$host_cpu" != ia64; then
8114 ld_shlibs=no
8115 cat <<EOF 1>&2
8117 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8118 *** to be unable to reliably create shared libraries on AIX.
8119 *** Therefore, libtool is disabling shared libraries support. If you
8120 *** really care for shared libraries, you may want to modify your PATH
8121 *** so that a non-GNU linker is found, and then restart.
8127 amigaos*)
8128 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)'
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 hardcode_minus_L=yes
8132 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8133 # that the semantics of dynamic libraries on AmigaOS, at least up
8134 # to version 4, is to share data among multiple programs linked
8135 # with the same dynamic library. Since this doesn't match the
8136 # behavior of shared libraries on other platforms, we can't use
8137 # them.
8138 ld_shlibs=no
8141 beos*)
8142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8143 allow_undefined_flag=unsupported
8144 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8145 # support --undefined. This deserves some investigation. FIXME
8146 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8147 else
8148 ld_shlibs=no
8152 cygwin* | mingw* | pw32*)
8153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8154 # as there is no search path for DLLs.
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 allow_undefined_flag=unsupported
8157 always_export_symbols=no
8158 enable_shared_with_static_runtimes=yes
8159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8163 # If the export-symbols file already is a .def file (1st line
8164 # is EXPORTS), use it as is; otherwise, prepend...
8165 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8166 cp $export_symbols $output_objdir/$soname.def;
8167 else
8168 echo EXPORTS > $output_objdir/$soname.def;
8169 cat $export_symbols >> $output_objdir/$soname.def;
8171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8172 else
8173 ld_shlibs=no
8177 interix[3-9]*)
8178 hardcode_direct=no
8179 hardcode_shlibpath_var=no
8180 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8181 export_dynamic_flag_spec='${wl}-E'
8182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8183 # Instead, shared libraries are loaded at an image base (0x10000000 by
8184 # default) and relocated if they conflict, which is a slow very memory
8185 # consuming and fragmenting process. To avoid this, we pick a random,
8186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8189 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'
8192 gnu* | linux* | k*bsd*-gnu)
8193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8194 tmp_addflag=
8195 case $cc_basename,$host_cpu in
8196 pgcc*) # Portland Group C compiler
8197 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'
8198 tmp_addflag=' $pic_flag'
8200 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8201 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'
8202 tmp_addflag=' $pic_flag -Mnomain' ;;
8203 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8204 tmp_addflag=' -i_dynamic' ;;
8205 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8206 tmp_addflag=' -i_dynamic -nofor_main' ;;
8207 ifc* | ifort*) # Intel Fortran compiler
8208 tmp_addflag=' -nofor_main' ;;
8209 esac
8210 case `$CC -V 2>&1 | sed 5q` in
8211 *Sun\ C*) # Sun C 5.9
8212 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'
8213 tmp_sharedflag='-G' ;;
8214 *Sun\ F*) # Sun Fortran 8.3
8215 tmp_sharedflag='-G' ;;
8217 tmp_sharedflag='-shared' ;;
8218 esac
8219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221 if test $supports_anon_versioning = yes; then
8222 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8224 $echo "local: *; };" >> $output_objdir/$libname.ver~
8225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8227 else
8228 ld_shlibs=no
8232 netbsd*)
8233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8234 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8235 wlarc=
8236 else
8237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8242 solaris*)
8243 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8244 ld_shlibs=no
8245 cat <<EOF 1>&2
8247 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8248 *** create shared libraries on Solaris systems. Therefore, libtool
8249 *** is disabling shared libraries support. We urge you to upgrade GNU
8250 *** binutils to release 2.9.1 or newer. Another option is to modify
8251 *** your PATH or compiler configuration so that the native linker is
8252 *** used, and then restart.
8255 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8258 else
8259 ld_shlibs=no
8263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8264 case `$LD -v 2>&1` in
8265 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8266 ld_shlibs=no
8267 cat <<_LT_EOF 1>&2
8269 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8270 *** reliably create shared libraries on SCO systems. Therefore, libtool
8271 *** is disabling shared libraries support. We urge you to upgrade GNU
8272 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8273 *** your PATH or compiler configuration so that the native linker is
8274 *** used, and then restart.
8276 _LT_EOF
8279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8280 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8283 else
8284 ld_shlibs=no
8287 esac
8290 sunos4*)
8291 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8292 wlarc=
8293 hardcode_direct=yes
8294 hardcode_shlibpath_var=no
8298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8301 else
8302 ld_shlibs=no
8305 esac
8307 if test "$ld_shlibs" = no; then
8308 runpath_var=
8309 hardcode_libdir_flag_spec=
8310 export_dynamic_flag_spec=
8311 whole_archive_flag_spec=
8313 else
8314 # PORTME fill in a description of your system's linker (not GNU ld)
8315 case $host_os in
8316 aix3*)
8317 allow_undefined_flag=unsupported
8318 always_export_symbols=yes
8319 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'
8320 # Note: this linker hardcodes the directories in LIBPATH if there
8321 # are no directories specified by -L.
8322 hardcode_minus_L=yes
8323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8324 # Neither direct hardcoding nor static linking is supported with a
8325 # broken collect2.
8326 hardcode_direct=unsupported
8330 aix4* | aix5*)
8331 if test "$host_cpu" = ia64; then
8332 # On IA64, the linker does run time linking by default, so we don't
8333 # have to do anything special.
8334 aix_use_runtimelinking=no
8335 exp_sym_flag='-Bexport'
8336 no_entry_flag=""
8337 else
8338 # If we're using GNU nm, then we don't want the "-C" option.
8339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8340 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8341 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'
8342 else
8343 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'
8345 aix_use_runtimelinking=no
8347 # Test if we are trying to use run time linking or normal
8348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8349 # need to do runtime linking.
8350 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8351 for ld_flag in $LDFLAGS; do
8352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8353 aix_use_runtimelinking=yes
8354 break
8356 done
8358 esac
8360 exp_sym_flag='-bexport'
8361 no_entry_flag='-bnoentry'
8364 # When large executables or shared objects are built, AIX ld can
8365 # have problems creating the table of contents. If linking a library
8366 # or program results in "error TOC overflow" add -mminimal-toc to
8367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8370 archive_cmds=''
8371 hardcode_direct=yes
8372 hardcode_libdir_separator=':'
8373 link_all_deplibs=yes
8375 if test "$GCC" = yes; then
8376 case $host_os in aix4.[012]|aix4.[012].*)
8377 # We only want to do this on AIX 4.2 and lower, the check
8378 # below for broken collect2 doesn't work under 4.3+
8379 collect2name=`${CC} -print-prog-name=collect2`
8380 if test -f "$collect2name" && \
8381 strings "$collect2name" | grep resolve_lib_name >/dev/null
8382 then
8383 # We have reworked collect2
8385 else
8386 # We have old collect2
8387 hardcode_direct=unsupported
8388 # It fails to find uninstalled libraries when the uninstalled
8389 # path is not listed in the libpath. Setting hardcode_minus_L
8390 # to unsupported forces relinking
8391 hardcode_minus_L=yes
8392 hardcode_libdir_flag_spec='-L$libdir'
8393 hardcode_libdir_separator=
8396 esac
8397 shared_flag='-shared'
8398 if test "$aix_use_runtimelinking" = yes; then
8399 shared_flag="$shared_flag "'${wl}-G'
8401 else
8402 # not using gcc
8403 if test "$host_cpu" = ia64; then
8404 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8405 # chokes on -Wl,-G. The following line is correct:
8406 shared_flag='-G'
8407 else
8408 if test "$aix_use_runtimelinking" = yes; then
8409 shared_flag='${wl}-G'
8410 else
8411 shared_flag='${wl}-bM:SRE'
8416 # It seems that -bexpall does not export symbols beginning with
8417 # underscore (_), so it is better to generate a list of symbols to export.
8418 always_export_symbols=yes
8419 if test "$aix_use_runtimelinking" = yes; then
8420 # Warning - without using the other runtime loading flags (-brtl),
8421 # -berok will link without error, but may produce a broken library.
8422 allow_undefined_flag='-berok'
8423 # Determine the default libpath from the value encoded in an empty executable.
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8432 main ()
8436 return 0;
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (ac_try="$ac_link"
8441 case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444 esac
8445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8446 $as_echo "$ac_try_echo") >&5
8447 (eval "$ac_link") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest$ac_exeext && {
8457 test "$cross_compiling" = yes ||
8458 $as_test_x conftest$ac_exeext
8459 }; then
8461 lt_aix_libpath_sed='
8462 /Import File Strings/,/^$/ {
8463 /^0/ {
8464 s/^0 *\(.*\)$/\1/
8468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8469 # Check for a 64-bit object if we didn't find anything.
8470 if test -z "$aix_libpath"; then
8471 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8473 else
8474 $as_echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8480 rm -rf conftest.dSYM
8481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8482 conftest$ac_exeext conftest.$ac_ext
8483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8486 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"
8487 else
8488 if test "$host_cpu" = ia64; then
8489 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8490 allow_undefined_flag="-z nodefs"
8491 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"
8492 else
8493 # Determine the default libpath from the value encoded in an empty executable.
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8502 main ()
8506 return 0;
8508 _ACEOF
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8511 case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514 esac
8515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516 $as_echo "$ac_try_echo") >&5
8517 (eval "$ac_link") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest$ac_exeext && {
8527 test "$cross_compiling" = yes ||
8528 $as_test_x conftest$ac_exeext
8529 }; then
8531 lt_aix_libpath_sed='
8532 /Import File Strings/,/^$/ {
8533 /^0/ {
8534 s/^0 *\(.*\)$/\1/
8538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8539 # Check for a 64-bit object if we didn't find anything.
8540 if test -z "$aix_libpath"; then
8541 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8543 else
8544 $as_echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8550 rm -rf conftest.dSYM
8551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8552 conftest$ac_exeext conftest.$ac_ext
8553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8555 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8556 # Warning - without using the other run time loading flags,
8557 # -berok will link without error, but may produce a broken library.
8558 no_undefined_flag=' ${wl}-bernotok'
8559 allow_undefined_flag=' ${wl}-berok'
8560 # Exported symbols can be pulled into shared objects from archives
8561 whole_archive_flag_spec='$convenience'
8562 archive_cmds_need_lc=yes
8563 # This is similar to how AIX traditionally builds its shared libraries.
8564 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'
8569 amigaos*)
8570 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)'
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_minus_L=yes
8573 # see comment about different semantics on the GNU ld section
8574 ld_shlibs=no
8577 bsdi[45]*)
8578 export_dynamic_flag_spec=-rdynamic
8581 cygwin* | mingw* | pw32*)
8582 # When not using gcc, we currently assume that we are using
8583 # Microsoft Visual C++.
8584 # hardcode_libdir_flag_spec is actually meaningless, as there is
8585 # no search path for DLLs.
8586 hardcode_libdir_flag_spec=' '
8587 allow_undefined_flag=unsupported
8588 # Tell ltmain to make .lib files, not .a files.
8589 libext=lib
8590 # Tell ltmain to make .dll files, not .so files.
8591 shrext_cmds=".dll"
8592 # FIXME: Setting linknames here is a bad hack.
8593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8594 # The linker will automatically build a .lib file if we build a DLL.
8595 old_archive_From_new_cmds='true'
8596 # FIXME: Should let the user specify the lib program.
8597 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8598 fix_srcfile_path='`cygpath -w "$srcfile"`'
8599 enable_shared_with_static_runtimes=yes
8602 darwin* | rhapsody*)
8603 case $host_os in
8604 rhapsody* | darwin1.[012])
8605 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8607 *) # Darwin 1.3 on
8608 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8609 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8610 else
8611 case ${MACOSX_DEPLOYMENT_TARGET} in
8612 10.[012])
8613 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8615 10.*)
8616 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8618 esac
8621 esac
8622 archive_cmds_need_lc=no
8623 hardcode_direct=no
8624 hardcode_automatic=yes
8625 hardcode_shlibpath_var=unsupported
8626 whole_archive_flag_spec=''
8627 link_all_deplibs=yes
8628 if test "$GCC" = yes ; then
8629 output_verbose_link_cmd='echo'
8630 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8633 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8634 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}'
8635 else
8636 case $cc_basename in
8637 xlc*)
8638 output_verbose_link_cmd='echo'
8639 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8640 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8642 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}'
8643 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}'
8646 ld_shlibs=no
8648 esac
8652 dgux*)
8653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_libdir_flag_spec='-L$libdir'
8655 hardcode_shlibpath_var=no
8658 freebsd1*)
8659 ld_shlibs=no
8662 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8663 # support. Future versions do this automatically, but an explicit c++rt0.o
8664 # does not break anything, and helps significantly (at the cost of a little
8665 # extra space).
8666 freebsd2.2*)
8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8668 hardcode_libdir_flag_spec='-R$libdir'
8669 hardcode_direct=yes
8670 hardcode_shlibpath_var=no
8673 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8674 freebsd2*)
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8676 hardcode_direct=yes
8677 hardcode_minus_L=yes
8678 hardcode_shlibpath_var=no
8681 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8682 freebsd* | dragonfly*)
8683 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8684 hardcode_libdir_flag_spec='-R$libdir'
8685 hardcode_direct=yes
8686 hardcode_shlibpath_var=no
8689 hpux9*)
8690 if test "$GCC" = yes; then
8691 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'
8692 else
8693 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'
8695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8696 hardcode_libdir_separator=:
8697 hardcode_direct=yes
8699 # hardcode_minus_L: Not really in the search PATH,
8700 # but as the default location of the library.
8701 hardcode_minus_L=yes
8702 export_dynamic_flag_spec='${wl}-E'
8705 hpux10*)
8706 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8708 else
8709 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8711 if test "$with_gnu_ld" = no; then
8712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713 hardcode_libdir_separator=:
8715 hardcode_direct=yes
8716 export_dynamic_flag_spec='${wl}-E'
8718 # hardcode_minus_L: Not really in the search PATH,
8719 # but as the default location of the library.
8720 hardcode_minus_L=yes
8724 hpux11*)
8725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8726 case $host_cpu in
8727 hppa*64*)
8728 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730 ia64*)
8731 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8736 esac
8737 else
8738 case $host_cpu in
8739 hppa*64*)
8740 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8742 ia64*)
8743 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8748 esac
8750 if test "$with_gnu_ld" = no; then
8751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8752 hardcode_libdir_separator=:
8754 case $host_cpu in
8755 hppa*64*|ia64*)
8756 hardcode_libdir_flag_spec_ld='+b $libdir'
8757 hardcode_direct=no
8758 hardcode_shlibpath_var=no
8761 hardcode_direct=yes
8762 export_dynamic_flag_spec='${wl}-E'
8764 # hardcode_minus_L: Not really in the search PATH,
8765 # but as the default location of the library.
8766 hardcode_minus_L=yes
8768 esac
8772 irix5* | irix6* | nonstopux*)
8773 if test "$GCC" = yes; then
8774 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'
8775 else
8776 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'
8777 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 hardcode_libdir_separator=:
8781 link_all_deplibs=yes
8784 netbsd*)
8785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8787 else
8788 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8790 hardcode_libdir_flag_spec='-R$libdir'
8791 hardcode_direct=yes
8792 hardcode_shlibpath_var=no
8795 newsos6)
8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_direct=yes
8798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8799 hardcode_libdir_separator=:
8800 hardcode_shlibpath_var=no
8803 openbsd*)
8804 if test -f /usr/libexec/ld.so; then
8805 hardcode_direct=yes
8806 hardcode_shlibpath_var=no
8807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8811 export_dynamic_flag_spec='${wl}-E'
8812 else
8813 case $host_os in
8814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8816 hardcode_libdir_flag_spec='-R$libdir'
8819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8822 esac
8824 else
8825 ld_shlibs=no
8829 os2*)
8830 hardcode_libdir_flag_spec='-L$libdir'
8831 hardcode_minus_L=yes
8832 allow_undefined_flag=unsupported
8833 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'
8834 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8837 osf3*)
8838 if test "$GCC" = yes; then
8839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8840 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'
8841 else
8842 allow_undefined_flag=' -expect_unresolved \*'
8843 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'
8845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8846 hardcode_libdir_separator=:
8849 osf4* | osf5*) # as osf3* with the addition of -msym flag
8850 if test "$GCC" = yes; then
8851 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8852 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'
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 else
8855 allow_undefined_flag=' -expect_unresolved \*'
8856 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'
8857 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8858 $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'
8860 # Both c and cxx compiler support -rpath directly
8861 hardcode_libdir_flag_spec='-rpath $libdir'
8863 hardcode_libdir_separator=:
8866 solaris*)
8867 no_undefined_flag=' -z text'
8868 if test "$GCC" = yes; then
8869 wlarc='${wl}'
8870 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8872 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8873 else
8874 wlarc=''
8875 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8879 hardcode_libdir_flag_spec='-R$libdir'
8880 hardcode_shlibpath_var=no
8881 case $host_os in
8882 solaris2.[0-5] | solaris2.[0-5].*) ;;
8884 # The compiler driver will combine and reorder linker options,
8885 # but understands `-z linker_flag'. GCC discards it without `$wl',
8886 # but is careful enough not to reorder.
8887 # Supported since Solaris 2.6 (maybe 2.5.1?)
8888 if test "$GCC" = yes; then
8889 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8890 else
8891 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8894 esac
8895 link_all_deplibs=yes
8898 sunos4*)
8899 if test "x$host_vendor" = xsequent; then
8900 # Use $CC to link under sequent, because it throws in some extra .o
8901 # files that make .init and .fini sections work.
8902 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8903 else
8904 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_libdir_flag_spec='-L$libdir'
8907 hardcode_direct=yes
8908 hardcode_minus_L=yes
8909 hardcode_shlibpath_var=no
8912 sysv4)
8913 case $host_vendor in
8914 sni)
8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_direct=yes # is this really true???
8918 siemens)
8919 ## LD is ld it makes a PLAMLIB
8920 ## CC just makes a GrossModule.
8921 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8922 reload_cmds='$CC -r -o $output$reload_objs'
8923 hardcode_direct=no
8925 motorola)
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8929 esac
8930 runpath_var='LD_RUN_PATH'
8931 hardcode_shlibpath_var=no
8934 sysv4.3*)
8935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936 hardcode_shlibpath_var=no
8937 export_dynamic_flag_spec='-Bexport'
8940 sysv4*MP*)
8941 if test -d /usr/nec; then
8942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943 hardcode_shlibpath_var=no
8944 runpath_var=LD_RUN_PATH
8945 hardcode_runpath_var=yes
8946 ld_shlibs=yes
8950 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8951 no_undefined_flag='${wl}-z,text'
8952 archive_cmds_need_lc=no
8953 hardcode_shlibpath_var=no
8954 runpath_var='LD_RUN_PATH'
8956 if test "$GCC" = yes; then
8957 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8958 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8959 else
8960 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8961 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 sysv5* | sco3.2v5* | sco5v6*)
8966 # Note: We can NOT use -z defs as we might desire, because we do not
8967 # link with -lc, and that would cause any symbols used from libc to
8968 # always be unresolved, which means just about no library would
8969 # ever link correctly. If we're not using GNU ld we use -z text
8970 # though, which does catch some bad symbols but isn't as heavy-handed
8971 # as -z defs.
8972 no_undefined_flag='${wl}-z,text'
8973 allow_undefined_flag='${wl}-z,nodefs'
8974 archive_cmds_need_lc=no
8975 hardcode_shlibpath_var=no
8976 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8977 hardcode_libdir_separator=':'
8978 link_all_deplibs=yes
8979 export_dynamic_flag_spec='${wl}-Bexport'
8980 runpath_var='LD_RUN_PATH'
8982 if test "$GCC" = yes; then
8983 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8984 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8985 else
8986 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8987 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 uts4*)
8992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8993 hardcode_libdir_flag_spec='-L$libdir'
8994 hardcode_shlibpath_var=no
8998 ld_shlibs=no
9000 esac
9003 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9004 $as_echo "$ld_shlibs" >&6; }
9005 test "$ld_shlibs" = no && can_build_shared=no
9008 # Do we need to explicitly link libc?
9010 case "x$archive_cmds_need_lc" in
9011 x|xyes)
9012 # Assume -lc should be added
9013 archive_cmds_need_lc=yes
9015 if test "$enable_shared" = yes && test "$GCC" = yes; then
9016 case $archive_cmds in
9017 *'~'*)
9018 # FIXME: we may have to deal with multi-command sequences.
9020 '$CC '*)
9021 # Test whether the compiler implicitly links with -lc since on some
9022 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9023 # to ld, don't add -lc before -lgcc.
9024 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9025 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9026 $rm conftest*
9027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9030 (eval $ac_compile) 2>&5
9031 ac_status=$?
9032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } 2>conftest.err; then
9034 soname=conftest
9035 lib=conftest
9036 libobjs=conftest.$ac_objext
9037 deplibs=
9038 wl=$lt_prog_compiler_wl
9039 pic_flag=$lt_prog_compiler_pic
9040 compiler_flags=-v
9041 linker_flags=-v
9042 verstring=
9043 output_objdir=.
9044 libname=conftest
9045 lt_save_allow_undefined_flag=$allow_undefined_flag
9046 allow_undefined_flag=
9047 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9048 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9049 ac_status=$?
9050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }
9052 then
9053 archive_cmds_need_lc=no
9054 else
9055 archive_cmds_need_lc=yes
9057 allow_undefined_flag=$lt_save_allow_undefined_flag
9058 else
9059 cat conftest.err 1>&5
9061 $rm conftest*
9062 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9063 $as_echo "$archive_cmds_need_lc" >&6; }
9065 esac
9068 esac
9070 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9071 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9072 library_names_spec=
9073 libname_spec='lib$name'
9074 soname_spec=
9075 shrext_cmds=".so"
9076 postinstall_cmds=
9077 postuninstall_cmds=
9078 finish_cmds=
9079 finish_eval=
9080 shlibpath_var=
9081 shlibpath_overrides_runpath=unknown
9082 version_type=none
9083 dynamic_linker="$host_os ld.so"
9084 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9086 if test "$GCC" = yes; then
9087 case $host_os in
9088 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9089 *) lt_awk_arg="/^libraries:/" ;;
9090 esac
9091 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9092 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9093 # if the path contains ";" then we assume it to be the separator
9094 # otherwise default to the standard path separator (i.e. ":") - it is
9095 # assumed that no part of a normal pathname contains ";" but that should
9096 # okay in the real world where ";" in dirpaths is itself problematic.
9097 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9098 else
9099 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9101 # Ok, now we have the path, separated by spaces, we can step through it
9102 # and add multilib dir if necessary.
9103 lt_tmp_lt_search_path_spec=
9104 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9105 for lt_sys_path in $lt_search_path_spec; do
9106 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9108 else
9109 test -d "$lt_sys_path" && \
9110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9112 done
9113 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9114 BEGIN {RS=" "; FS="/|\n";} {
9115 lt_foo="";
9116 lt_count=0;
9117 for (lt_i = NF; lt_i > 0; lt_i--) {
9118 if ($lt_i != "" && $lt_i != ".") {
9119 if ($lt_i == "..") {
9120 lt_count++;
9121 } else {
9122 if (lt_count == 0) {
9123 lt_foo="/" $lt_i lt_foo;
9124 } else {
9125 lt_count--;
9130 if (lt_foo != "") { lt_freq[lt_foo]++; }
9131 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9133 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9134 else
9135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9137 need_lib_prefix=unknown
9138 hardcode_into_libs=no
9140 # when you set need_version to no, make sure it does not cause -set_version
9141 # flags to be left without arguments
9142 need_version=unknown
9144 case $host_os in
9145 aix3*)
9146 version_type=linux
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9148 shlibpath_var=LIBPATH
9150 # AIX 3 has no versioning support, so we append a major version to the name.
9151 soname_spec='${libname}${release}${shared_ext}$major'
9154 aix4* | aix5*)
9155 version_type=linux
9156 need_lib_prefix=no
9157 need_version=no
9158 hardcode_into_libs=yes
9159 if test "$host_cpu" = ia64; then
9160 # AIX 5 supports IA64
9161 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 else
9164 # With GCC up to 2.95.x, collect2 would create an import file
9165 # for dependence libraries. The import file would start with
9166 # the line `#! .'. This would cause the generated library to
9167 # depend on `.', always an invalid library. This was fixed in
9168 # development snapshots of GCC prior to 3.0.
9169 case $host_os in
9170 aix4 | aix4.[01] | aix4.[01].*)
9171 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9172 echo ' yes '
9173 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9175 else
9176 can_build_shared=no
9179 esac
9180 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9181 # soname into executable. Probably we can add versioning support to
9182 # collect2, so additional links can be useful in future.
9183 if test "$aix_use_runtimelinking" = yes; then
9184 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9185 # instead of lib<name>.a to let people know that these are not
9186 # typical AIX shared libraries.
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 else
9189 # We preserve .a as extension for shared libraries through AIX4.2
9190 # and later when we are not doing run time linking.
9191 library_names_spec='${libname}${release}.a $libname.a'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9194 shlibpath_var=LIBPATH
9198 amigaos*)
9199 library_names_spec='$libname.ixlibrary $libname.a'
9200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9201 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'
9204 beos*)
9205 library_names_spec='${libname}${shared_ext}'
9206 dynamic_linker="$host_os ld.so"
9207 shlibpath_var=LIBRARY_PATH
9210 bsdi[45]*)
9211 version_type=linux
9212 need_version=no
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9219 # the default ld.so.conf also contains /usr/contrib/lib and
9220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9221 # libtool to hard-code these into programs
9224 cygwin* | mingw* | pw32*)
9225 version_type=windows
9226 shrext_cmds=".dll"
9227 need_version=no
9228 need_lib_prefix=no
9230 case $GCC,$host_os in
9231 yes,cygwin* | yes,mingw* | yes,pw32*)
9232 library_names_spec='$libname.dll.a'
9233 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9234 postinstall_cmds='base_file=`basename \${file}`~
9235 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9236 dldir=$destdir/`dirname \$dlpath`~
9237 test -d \$dldir || mkdir -p \$dldir~
9238 $install_prog $dir/$dlname \$dldir/$dlname~
9239 chmod a+x \$dldir/$dlname'
9240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9241 dlpath=$dir/\$dldll~
9242 $rm \$dlpath'
9243 shlibpath_overrides_runpath=yes
9245 case $host_os in
9246 cygwin*)
9247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9249 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9251 mingw*)
9252 # MinGW DLLs use traditional 'lib' prefix
9253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9254 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9255 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9256 # It is most probably a Windows format PATH printed by
9257 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9258 # path with ; separators, and with drive letters. We can handle the
9259 # drive letters (cygwin fileutils understands them), so leave them,
9260 # especially as we might pass files found there to a mingw objdump,
9261 # which wouldn't understand a cygwinified path. Ahh.
9262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9263 else
9264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9267 pw32*)
9268 # pw32 DLLs use 'pw' prefix rather than 'lib'
9269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271 esac
9275 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9277 esac
9278 dynamic_linker='Win32 ld.exe'
9279 # FIXME: first we should search . and the directory the executable is in
9280 shlibpath_var=PATH
9283 darwin* | rhapsody*)
9284 dynamic_linker="$host_os dyld"
9285 version_type=darwin
9286 need_lib_prefix=no
9287 need_version=no
9288 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9289 soname_spec='${libname}${release}${major}$shared_ext'
9290 shlibpath_overrides_runpath=yes
9291 shlibpath_var=DYLD_LIBRARY_PATH
9292 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9295 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9298 dgux*)
9299 version_type=linux
9300 need_lib_prefix=no
9301 need_version=no
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9307 freebsd1*)
9308 dynamic_linker=no
9311 freebsd* | dragonfly*)
9312 # DragonFly does not have aout. When/if they implement a new
9313 # versioning mechanism, adjust this.
9314 if test -x /usr/bin/objformat; then
9315 objformat=`/usr/bin/objformat`
9316 else
9317 case $host_os in
9318 freebsd[123]*) objformat=aout ;;
9319 *) objformat=elf ;;
9320 esac
9322 version_type=freebsd-$objformat
9323 case $version_type in
9324 freebsd-elf*)
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9326 need_version=no
9327 need_lib_prefix=no
9329 freebsd-*)
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9331 need_version=yes
9333 esac
9334 shlibpath_var=LD_LIBRARY_PATH
9335 case $host_os in
9336 freebsd2*)
9337 shlibpath_overrides_runpath=yes
9339 freebsd3.[01]* | freebsdelf3.[01]*)
9340 shlibpath_overrides_runpath=yes
9341 hardcode_into_libs=yes
9343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9345 shlibpath_overrides_runpath=no
9346 hardcode_into_libs=yes
9348 *) # from 4.6 on, and DragonFly
9349 shlibpath_overrides_runpath=yes
9350 hardcode_into_libs=yes
9352 esac
9355 gnu*)
9356 version_type=linux
9357 need_lib_prefix=no
9358 need_version=no
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 shlibpath_var=LD_LIBRARY_PATH
9362 hardcode_into_libs=yes
9365 hpux9* | hpux10* | hpux11*)
9366 # Give a soname corresponding to the major version so that dld.sl refuses to
9367 # link against other versions.
9368 version_type=sunos
9369 need_lib_prefix=no
9370 need_version=no
9371 case $host_cpu in
9372 ia64*)
9373 shrext_cmds='.so'
9374 hardcode_into_libs=yes
9375 dynamic_linker="$host_os dld.so"
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 if test "X$HPUX_IA64_MODE" = X32; then
9381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9382 else
9383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9387 hppa*64*)
9388 shrext_cmds='.sl'
9389 hardcode_into_libs=yes
9390 dynamic_linker="$host_os dld.sl"
9391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9399 shrext_cmds='.sl'
9400 dynamic_linker="$host_os dld.sl"
9401 shlibpath_var=SHLIB_PATH
9402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9406 esac
9407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9408 postinstall_cmds='chmod 555 $lib'
9411 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 shlibpath_overrides_runpath=no
9420 hardcode_into_libs=yes
9423 irix5* | irix6* | nonstopux*)
9424 case $host_os in
9425 nonstopux*) version_type=nonstopux ;;
9427 if test "$lt_cv_prog_gnu_ld" = yes; then
9428 version_type=linux
9429 else
9430 version_type=irix
9431 fi ;;
9432 esac
9433 need_lib_prefix=no
9434 need_version=no
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9437 case $host_os in
9438 irix5* | nonstopux*)
9439 libsuff= shlibsuff=
9442 case $LD in # libtool.m4 will add one of these switches to LD
9443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9444 libsuff= shlibsuff= libmagic=32-bit;;
9445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9446 libsuff=32 shlibsuff=N32 libmagic=N32;;
9447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9449 *) libsuff= shlibsuff= libmagic=never-match;;
9450 esac
9452 esac
9453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9454 shlibpath_overrides_runpath=no
9455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9457 hardcode_into_libs=yes
9460 # No shared lib support for Linux oldld, aout, or coff.
9461 linux*oldld* | linux*aout* | linux*coff*)
9462 dynamic_linker=no
9465 # This must be Linux ELF.
9466 linux* | k*bsd*-gnu)
9467 version_type=linux
9468 need_lib_prefix=no
9469 need_version=no
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=no
9475 # This implies no fast_install, which is unacceptable.
9476 # Some rework will be needed to allow for fast_install
9477 # before this can be enabled.
9478 hardcode_into_libs=yes
9480 # Append ld.so.conf contents to the search path
9481 if test -f /etc/ld.so.conf; then
9482 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' ' '`
9483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9486 # We used to test for /lib/ld.so.1 and disable shared libraries on
9487 # powerpc, because MkLinux only supported shared libraries with the
9488 # GNU dynamic linker. Since this was broken with cross compilers,
9489 # most powerpc-linux boxes support dynamic linking these days and
9490 # people can always --disable-shared, the test was removed, and we
9491 # assume the GNU/Linux dynamic linker is in use.
9492 dynamic_linker='GNU/Linux ld.so'
9495 netbsd*)
9496 version_type=sunos
9497 need_lib_prefix=no
9498 need_version=no
9499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9502 dynamic_linker='NetBSD (a.out) ld.so'
9503 else
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9505 soname_spec='${libname}${release}${shared_ext}$major'
9506 dynamic_linker='NetBSD ld.elf_so'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 shlibpath_overrides_runpath=yes
9510 hardcode_into_libs=yes
9513 newsos6)
9514 version_type=linux
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=yes
9520 nto-qnx*)
9521 version_type=linux
9522 need_lib_prefix=no
9523 need_version=no
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 shlibpath_overrides_runpath=yes
9530 openbsd*)
9531 version_type=sunos
9532 sys_lib_dlsearch_path_spec="/usr/lib"
9533 need_lib_prefix=no
9534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9535 case $host_os in
9536 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9537 *) need_version=no ;;
9538 esac
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9543 case $host_os in
9544 openbsd2.[89] | openbsd2.[89].*)
9545 shlibpath_overrides_runpath=no
9548 shlibpath_overrides_runpath=yes
9550 esac
9551 else
9552 shlibpath_overrides_runpath=yes
9556 os2*)
9557 libname_spec='$name'
9558 shrext_cmds=".dll"
9559 need_lib_prefix=no
9560 library_names_spec='$libname${shared_ext} $libname.a'
9561 dynamic_linker='OS/2 ld.exe'
9562 shlibpath_var=LIBPATH
9565 osf3* | osf4* | osf5*)
9566 version_type=osf
9567 need_lib_prefix=no
9568 need_version=no
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 shlibpath_var=LD_LIBRARY_PATH
9572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9576 rdos*)
9577 dynamic_linker=no
9580 solaris*)
9581 version_type=linux
9582 need_lib_prefix=no
9583 need_version=no
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes
9588 hardcode_into_libs=yes
9589 # ldd complains unless libraries are executable
9590 postinstall_cmds='chmod +x $lib'
9593 sunos4*)
9594 version_type=sunos
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9596 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 shlibpath_overrides_runpath=yes
9599 if test "$with_gnu_ld" = yes; then
9600 need_lib_prefix=no
9602 need_version=yes
9605 sysv4 | sysv4.3*)
9606 version_type=linux
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608 soname_spec='${libname}${release}${shared_ext}$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 case $host_vendor in
9611 sni)
9612 shlibpath_overrides_runpath=no
9613 need_lib_prefix=no
9614 export_dynamic_flag_spec='${wl}-Blargedynsym'
9615 runpath_var=LD_RUN_PATH
9617 siemens)
9618 need_lib_prefix=no
9620 motorola)
9621 need_lib_prefix=no
9622 need_version=no
9623 shlibpath_overrides_runpath=no
9624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9626 esac
9629 sysv4*MP*)
9630 if test -d /usr/nec ;then
9631 version_type=linux
9632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9633 soname_spec='$libname${shared_ext}.$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9639 version_type=freebsd-elf
9640 need_lib_prefix=no
9641 need_version=no
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 hardcode_into_libs=yes
9646 if test "$with_gnu_ld" = yes; then
9647 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9648 shlibpath_overrides_runpath=no
9649 else
9650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9651 shlibpath_overrides_runpath=yes
9652 case $host_os in
9653 sco3.2v5*)
9654 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9656 esac
9658 sys_lib_dlsearch_path_spec='/usr/lib'
9661 uts4*)
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
9669 dynamic_linker=no
9671 esac
9672 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9673 $as_echo "$dynamic_linker" >&6; }
9674 test "$dynamic_linker" = no && can_build_shared=no
9676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9677 if test "$GCC" = yes; then
9678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9681 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9682 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9683 hardcode_action=
9684 if test -n "$hardcode_libdir_flag_spec" || \
9685 test -n "$runpath_var" || \
9686 test "X$hardcode_automatic" = "Xyes" ; then
9688 # We can hardcode non-existant directories.
9689 if test "$hardcode_direct" != no &&
9690 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9691 # have to relink, otherwise we might link with an installed library
9692 # when we should be linking with a yet-to-be-installed one
9693 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9694 test "$hardcode_minus_L" != no; then
9695 # Linking always hardcodes the temporary library directory.
9696 hardcode_action=relink
9697 else
9698 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9699 hardcode_action=immediate
9701 else
9702 # We cannot hardcode anything, or else we can only hardcode existing
9703 # directories.
9704 hardcode_action=unsupported
9706 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9707 $as_echo "$hardcode_action" >&6; }
9709 if test "$hardcode_action" = relink; then
9710 # Fast installation is not supported
9711 enable_fast_install=no
9712 elif test "$shlibpath_overrides_runpath" = yes ||
9713 test "$enable_shared" = no; then
9714 # Fast installation is not necessary
9715 enable_fast_install=needless
9718 striplib=
9719 old_striplib=
9720 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9721 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9722 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9723 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9724 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9725 { $as_echo "$as_me:$LINENO: result: yes" >&5
9726 $as_echo "yes" >&6; }
9727 else
9728 # FIXME - insert some real tests, host_os isn't really good enough
9729 case $host_os in
9730 darwin*)
9731 if test -n "$STRIP" ; then
9732 striplib="$STRIP -x"
9733 old_striplib="$STRIP -S"
9734 { $as_echo "$as_me:$LINENO: result: yes" >&5
9735 $as_echo "yes" >&6; }
9736 else
9737 { $as_echo "$as_me:$LINENO: result: no" >&5
9738 $as_echo "no" >&6; }
9742 { $as_echo "$as_me:$LINENO: result: no" >&5
9743 $as_echo "no" >&6; }
9745 esac
9748 if test "x$enable_dlopen" != xyes; then
9749 enable_dlopen=unknown
9750 enable_dlopen_self=unknown
9751 enable_dlopen_self_static=unknown
9752 else
9753 lt_cv_dlopen=no
9754 lt_cv_dlopen_libs=
9756 case $host_os in
9757 beos*)
9758 lt_cv_dlopen="load_add_on"
9759 lt_cv_dlopen_libs=
9760 lt_cv_dlopen_self=yes
9763 mingw* | pw32*)
9764 lt_cv_dlopen="LoadLibrary"
9765 lt_cv_dlopen_libs=
9768 cygwin*)
9769 lt_cv_dlopen="dlopen"
9770 lt_cv_dlopen_libs=
9773 darwin*)
9774 # if libdl is installed we need to link against it
9775 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9777 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9778 $as_echo_n "(cached) " >&6
9779 else
9780 ac_check_lib_save_LIBS=$LIBS
9781 LIBS="-ldl $LIBS"
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9789 /* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9792 #ifdef __cplusplus
9793 extern "C"
9794 #endif
9795 char dlopen ();
9797 main ()
9799 return dlopen ();
9801 return 0;
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9806 case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809 esac
9810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9811 $as_echo "$ac_try_echo") >&5
9812 (eval "$ac_link") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest$ac_exeext && {
9822 test "$cross_compiling" = yes ||
9823 $as_test_x conftest$ac_exeext
9824 }; then
9825 ac_cv_lib_dl_dlopen=yes
9826 else
9827 $as_echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_cv_lib_dl_dlopen=no
9833 rm -rf conftest.dSYM
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835 conftest$ac_exeext conftest.$ac_ext
9836 LIBS=$ac_check_lib_save_LIBS
9838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9839 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9840 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9842 else
9844 lt_cv_dlopen="dyld"
9845 lt_cv_dlopen_libs=
9846 lt_cv_dlopen_self=yes
9853 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9854 $as_echo_n "checking for shl_load... " >&6; }
9855 if test "${ac_cv_func_shl_load+set}" = set; then
9856 $as_echo_n "(cached) " >&6
9857 else
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9866 #define shl_load innocuous_shl_load
9868 /* System header to define __stub macros and hopefully few prototypes,
9869 which can conflict with char shl_load (); below.
9870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9871 <limits.h> exists even on freestanding compilers. */
9873 #ifdef __STDC__
9874 # include <limits.h>
9875 #else
9876 # include <assert.h>
9877 #endif
9879 #undef shl_load
9881 /* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char shl_load ();
9888 /* The GNU C library defines this for functions which it implements
9889 to always fail with ENOSYS. Some functions are actually named
9890 something starting with __ and the normal name is an alias. */
9891 #if defined __stub_shl_load || defined __stub___shl_load
9892 choke me
9893 #endif
9896 main ()
9898 return shl_load ();
9900 return 0;
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908 esac
9909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9910 $as_echo "$ac_try_echo") >&5
9911 (eval "$ac_link") 2>conftest.er1
9912 ac_status=$?
9913 grep -v '^ *+' conftest.er1 >conftest.err
9914 rm -f conftest.er1
9915 cat conftest.err >&5
9916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && {
9918 test -z "$ac_c_werror_flag" ||
9919 test ! -s conftest.err
9920 } && test -s conftest$ac_exeext && {
9921 test "$cross_compiling" = yes ||
9922 $as_test_x conftest$ac_exeext
9923 }; then
9924 ac_cv_func_shl_load=yes
9925 else
9926 $as_echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_cv_func_shl_load=no
9932 rm -rf conftest.dSYM
9933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9934 conftest$ac_exeext conftest.$ac_ext
9936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9937 $as_echo "$ac_cv_func_shl_load" >&6; }
9938 if test "x$ac_cv_func_shl_load" = x""yes; then
9939 lt_cv_dlopen="shl_load"
9940 else
9941 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9942 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9943 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9944 $as_echo_n "(cached) " >&6
9945 else
9946 ac_check_lib_save_LIBS=$LIBS
9947 LIBS="-ldld $LIBS"
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9958 #ifdef __cplusplus
9959 extern "C"
9960 #endif
9961 char shl_load ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9977 $as_echo "$ac_try_echo") >&5
9978 (eval "$ac_link") 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest$ac_exeext && {
9988 test "$cross_compiling" = yes ||
9989 $as_test_x conftest$ac_exeext
9990 }; then
9991 ac_cv_lib_dld_shl_load=yes
9992 else
9993 $as_echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_cv_lib_dld_shl_load=no
9999 rm -rf conftest.dSYM
10000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10001 conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10005 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10006 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10007 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10008 else
10009 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10010 $as_echo_n "checking for dlopen... " >&6; }
10011 if test "${ac_cv_func_dlopen+set}" = set; then
10012 $as_echo_n "(cached) " >&6
10013 else
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h. */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10022 #define dlopen innocuous_dlopen
10024 /* System header to define __stub macros and hopefully few prototypes,
10025 which can conflict with char dlopen (); below.
10026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10027 <limits.h> exists even on freestanding compilers. */
10029 #ifdef __STDC__
10030 # include <limits.h>
10031 #else
10032 # include <assert.h>
10033 #endif
10035 #undef dlopen
10037 /* Override any GCC internal prototype to avoid an error.
10038 Use char because int might match the return type of a GCC
10039 builtin and then its argument prototype would still apply. */
10040 #ifdef __cplusplus
10041 extern "C"
10042 #endif
10043 char dlopen ();
10044 /* The GNU C library defines this for functions which it implements
10045 to always fail with ENOSYS. Some functions are actually named
10046 something starting with __ and the normal name is an alias. */
10047 #if defined __stub_dlopen || defined __stub___dlopen
10048 choke me
10049 #endif
10052 main ()
10054 return dlopen ();
10056 return 0;
10058 _ACEOF
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (ac_try="$ac_link"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064 esac
10065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10066 $as_echo "$ac_try_echo") >&5
10067 (eval "$ac_link") 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_c_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest$ac_exeext && {
10077 test "$cross_compiling" = yes ||
10078 $as_test_x conftest$ac_exeext
10079 }; then
10080 ac_cv_func_dlopen=yes
10081 else
10082 $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_func_dlopen=no
10088 rm -rf conftest.dSYM
10089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090 conftest$ac_exeext conftest.$ac_ext
10092 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10093 $as_echo "$ac_cv_func_dlopen" >&6; }
10094 if test "x$ac_cv_func_dlopen" = x""yes; then
10095 lt_cv_dlopen="dlopen"
10096 else
10097 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10098 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10100 $as_echo_n "(cached) " >&6
10101 else
10102 ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-ldl $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10111 /* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
10114 #ifdef __cplusplus
10115 extern "C"
10116 #endif
10117 char dlopen ();
10119 main ()
10121 return dlopen ();
10123 return 0;
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10133 $as_echo "$ac_try_echo") >&5
10134 (eval "$ac_link") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest$ac_exeext && {
10144 test "$cross_compiling" = yes ||
10145 $as_test_x conftest$ac_exeext
10146 }; then
10147 ac_cv_lib_dl_dlopen=yes
10148 else
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_cv_lib_dl_dlopen=no
10155 rm -rf conftest.dSYM
10156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10157 conftest$ac_exeext conftest.$ac_ext
10158 LIBS=$ac_check_lib_save_LIBS
10160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10161 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10162 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10164 else
10165 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10166 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10167 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10168 $as_echo_n "(cached) " >&6
10169 else
10170 ac_check_lib_save_LIBS=$LIBS
10171 LIBS="-lsvld $LIBS"
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 char dlopen ();
10187 main ()
10189 return dlopen ();
10191 return 0;
10193 _ACEOF
10194 rm -f conftest.$ac_objext conftest$ac_exeext
10195 if { (ac_try="$ac_link"
10196 case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10199 esac
10200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10201 $as_echo "$ac_try_echo") >&5
10202 (eval "$ac_link") 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && {
10209 test -z "$ac_c_werror_flag" ||
10210 test ! -s conftest.err
10211 } && test -s conftest$ac_exeext && {
10212 test "$cross_compiling" = yes ||
10213 $as_test_x conftest$ac_exeext
10214 }; then
10215 ac_cv_lib_svld_dlopen=yes
10216 else
10217 $as_echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 ac_cv_lib_svld_dlopen=no
10223 rm -rf conftest.dSYM
10224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10228 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10229 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10230 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10232 else
10233 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10234 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10235 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10236 $as_echo_n "(cached) " >&6
10237 else
10238 ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-ldld $LIBS"
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char dld_link ();
10255 main ()
10257 return dld_link ();
10259 return 0;
10261 _ACEOF
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267 esac
10268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10269 $as_echo "$ac_try_echo") >&5
10270 (eval "$ac_link") 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest$ac_exeext && {
10280 test "$cross_compiling" = yes ||
10281 $as_test_x conftest$ac_exeext
10282 }; then
10283 ac_cv_lib_dld_dld_link=yes
10284 else
10285 $as_echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ac_cv_lib_dld_dld_link=no
10291 rm -rf conftest.dSYM
10292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10293 conftest$ac_exeext conftest.$ac_ext
10294 LIBS=$ac_check_lib_save_LIBS
10296 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10297 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10298 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10299 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10318 esac
10320 if test "x$lt_cv_dlopen" != xno; then
10321 enable_dlopen=yes
10322 else
10323 enable_dlopen=no
10326 case $lt_cv_dlopen in
10327 dlopen)
10328 save_CPPFLAGS="$CPPFLAGS"
10329 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10331 save_LDFLAGS="$LDFLAGS"
10332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10334 save_LIBS="$LIBS"
10335 LIBS="$lt_cv_dlopen_libs $LIBS"
10337 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10338 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10339 if test "${lt_cv_dlopen_self+set}" = set; then
10340 $as_echo_n "(cached) " >&6
10341 else
10342 if test "$cross_compiling" = yes; then :
10343 lt_cv_dlopen_self=cross
10344 else
10345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10346 lt_status=$lt_dlunknown
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10348 "configure"
10349 #include "confdefs.h"
10351 #if HAVE_DLFCN_H
10352 #include <dlfcn.h>
10353 #endif
10355 #include <stdio.h>
10357 #ifdef RTLD_GLOBAL
10358 # define LT_DLGLOBAL RTLD_GLOBAL
10359 #else
10360 # ifdef DL_GLOBAL
10361 # define LT_DLGLOBAL DL_GLOBAL
10362 # else
10363 # define LT_DLGLOBAL 0
10364 # endif
10365 #endif
10367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10368 find out it does not work in some platform. */
10369 #ifndef LT_DLLAZY_OR_NOW
10370 # ifdef RTLD_LAZY
10371 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10372 # else
10373 # ifdef DL_LAZY
10374 # define LT_DLLAZY_OR_NOW DL_LAZY
10375 # else
10376 # ifdef RTLD_NOW
10377 # define LT_DLLAZY_OR_NOW RTLD_NOW
10378 # else
10379 # ifdef DL_NOW
10380 # define LT_DLLAZY_OR_NOW DL_NOW
10381 # else
10382 # define LT_DLLAZY_OR_NOW 0
10383 # endif
10384 # endif
10385 # endif
10386 # endif
10387 #endif
10389 #ifdef __cplusplus
10390 extern "C" void exit (int);
10391 #endif
10393 void fnord() { int i=42;}
10394 int main ()
10396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10397 int status = $lt_dlunknown;
10399 if (self)
10401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10402 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10403 /* dlclose (self); */
10405 else
10406 puts (dlerror ());
10408 exit (status);
10411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10412 (eval $ac_link) 2>&5
10413 ac_status=$?
10414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10416 (./conftest; exit; ) >&5 2>/dev/null
10417 lt_status=$?
10418 case x$lt_status in
10419 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10420 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10421 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10422 esac
10423 else :
10424 # compilation failed
10425 lt_cv_dlopen_self=no
10428 rm -fr conftest*
10432 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10433 $as_echo "$lt_cv_dlopen_self" >&6; }
10435 if test "x$lt_cv_dlopen_self" = xyes; then
10436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10437 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10438 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10439 if test "${lt_cv_dlopen_self_static+set}" = set; then
10440 $as_echo_n "(cached) " >&6
10441 else
10442 if test "$cross_compiling" = yes; then :
10443 lt_cv_dlopen_self_static=cross
10444 else
10445 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10446 lt_status=$lt_dlunknown
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10448 "configure"
10449 #include "confdefs.h"
10451 #if HAVE_DLFCN_H
10452 #include <dlfcn.h>
10453 #endif
10455 #include <stdio.h>
10457 #ifdef RTLD_GLOBAL
10458 # define LT_DLGLOBAL RTLD_GLOBAL
10459 #else
10460 # ifdef DL_GLOBAL
10461 # define LT_DLGLOBAL DL_GLOBAL
10462 # else
10463 # define LT_DLGLOBAL 0
10464 # endif
10465 #endif
10467 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10468 find out it does not work in some platform. */
10469 #ifndef LT_DLLAZY_OR_NOW
10470 # ifdef RTLD_LAZY
10471 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10472 # else
10473 # ifdef DL_LAZY
10474 # define LT_DLLAZY_OR_NOW DL_LAZY
10475 # else
10476 # ifdef RTLD_NOW
10477 # define LT_DLLAZY_OR_NOW RTLD_NOW
10478 # else
10479 # ifdef DL_NOW
10480 # define LT_DLLAZY_OR_NOW DL_NOW
10481 # else
10482 # define LT_DLLAZY_OR_NOW 0
10483 # endif
10484 # endif
10485 # endif
10486 # endif
10487 #endif
10489 #ifdef __cplusplus
10490 extern "C" void exit (int);
10491 #endif
10493 void fnord() { int i=42;}
10494 int main ()
10496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497 int status = $lt_dlunknown;
10499 if (self)
10501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10502 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10503 /* dlclose (self); */
10505 else
10506 puts (dlerror ());
10508 exit (status);
10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512 (eval $ac_link) 2>&5
10513 ac_status=$?
10514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10516 (./conftest; exit; ) >&5 2>/dev/null
10517 lt_status=$?
10518 case x$lt_status in
10519 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10520 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10521 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10522 esac
10523 else :
10524 # compilation failed
10525 lt_cv_dlopen_self_static=no
10528 rm -fr conftest*
10532 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10533 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10536 CPPFLAGS="$save_CPPFLAGS"
10537 LDFLAGS="$save_LDFLAGS"
10538 LIBS="$save_LIBS"
10540 esac
10542 case $lt_cv_dlopen_self in
10543 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10544 *) enable_dlopen_self=unknown ;;
10545 esac
10547 case $lt_cv_dlopen_self_static in
10548 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10549 *) enable_dlopen_self_static=unknown ;;
10550 esac
10554 # Report which library types will actually be built
10555 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10556 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10557 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10558 $as_echo "$can_build_shared" >&6; }
10560 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10561 $as_echo_n "checking whether to build shared libraries... " >&6; }
10562 test "$can_build_shared" = "no" && enable_shared=no
10564 # On AIX, shared libraries and static libraries use the same namespace, and
10565 # are all built from PIC.
10566 case $host_os in
10567 aix3*)
10568 test "$enable_shared" = yes && enable_static=no
10569 if test -n "$RANLIB"; then
10570 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10571 postinstall_cmds='$RANLIB $lib'
10575 aix4* | aix5*)
10576 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10577 test "$enable_shared" = yes && enable_static=no
10580 esac
10581 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10582 $as_echo "$enable_shared" >&6; }
10584 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10585 $as_echo_n "checking whether to build static libraries... " >&6; }
10586 # Make sure either enable_shared or enable_static is yes.
10587 test "$enable_shared" = yes || enable_static=yes
10588 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10589 $as_echo "$enable_static" >&6; }
10591 # The else clause should only fire when bootstrapping the
10592 # libtool distribution, otherwise you forgot to ship ltmain.sh
10593 # with your package, and you will get complaints that there are
10594 # no rules to generate ltmain.sh.
10595 if test -f "$ltmain"; then
10596 # See if we are running on zsh, and set the options which allow our commands through
10597 # without removal of \ escapes.
10598 if test -n "${ZSH_VERSION+set}" ; then
10599 setopt NO_GLOB_SUBST
10601 # Now quote all the things that may contain metacharacters while being
10602 # careful not to overquote the AC_SUBSTed values. We take copies of the
10603 # variables and quote the copies for generation of the libtool script.
10604 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10605 SED SHELL STRIP \
10606 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10607 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10608 deplibs_check_method reload_flag reload_cmds need_locks \
10609 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10610 lt_cv_sys_global_symbol_to_c_name_address \
10611 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10612 old_postinstall_cmds old_postuninstall_cmds \
10613 compiler \
10614 CC \
10615 LD \
10616 lt_prog_compiler_wl \
10617 lt_prog_compiler_pic \
10618 lt_prog_compiler_static \
10619 lt_prog_compiler_no_builtin_flag \
10620 export_dynamic_flag_spec \
10621 thread_safe_flag_spec \
10622 whole_archive_flag_spec \
10623 enable_shared_with_static_runtimes \
10624 old_archive_cmds \
10625 old_archive_from_new_cmds \
10626 predep_objects \
10627 postdep_objects \
10628 predeps \
10629 postdeps \
10630 compiler_lib_search_path \
10631 archive_cmds \
10632 archive_expsym_cmds \
10633 postinstall_cmds \
10634 postuninstall_cmds \
10635 old_archive_from_expsyms_cmds \
10636 allow_undefined_flag \
10637 no_undefined_flag \
10638 export_symbols_cmds \
10639 hardcode_libdir_flag_spec \
10640 hardcode_libdir_flag_spec_ld \
10641 hardcode_libdir_separator \
10642 hardcode_automatic \
10643 module_cmds \
10644 module_expsym_cmds \
10645 lt_cv_prog_compiler_c_o \
10646 fix_srcfile_path \
10647 exclude_expsyms \
10648 include_expsyms; do
10650 case $var in
10651 old_archive_cmds | \
10652 old_archive_from_new_cmds | \
10653 archive_cmds | \
10654 archive_expsym_cmds | \
10655 module_cmds | \
10656 module_expsym_cmds | \
10657 old_archive_from_expsyms_cmds | \
10658 export_symbols_cmds | \
10659 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10660 postinstall_cmds | postuninstall_cmds | \
10661 old_postinstall_cmds | old_postuninstall_cmds | \
10662 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10663 # Double-quote double-evaled strings.
10664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10669 esac
10670 done
10672 case $lt_echo in
10673 *'\$0 --fallback-echo"')
10674 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10676 esac
10678 cfgfile="${ofile}T"
10679 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10680 $rm -f "$cfgfile"
10681 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10682 $as_echo "$as_me: creating $ofile" >&6;}
10684 cat <<__EOF__ >> "$cfgfile"
10685 #! $SHELL
10687 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10688 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10689 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10691 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10692 # Free Software Foundation, Inc.
10694 # This file is part of GNU Libtool:
10695 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10697 # This program is free software; you can redistribute it and/or modify
10698 # it under the terms of the GNU General Public License as published by
10699 # the Free Software Foundation; either version 2 of the License, or
10700 # (at your option) any later version.
10702 # This program is distributed in the hope that it will be useful, but
10703 # WITHOUT ANY WARRANTY; without even the implied warranty of
10704 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10705 # General Public License for more details.
10707 # You should have received a copy of the GNU General Public License
10708 # along with this program; if not, write to the Free Software
10709 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10711 # As a special exception to the GNU General Public License, if you
10712 # distribute this file as part of a program that contains a
10713 # configuration script generated by Autoconf, you may include it under
10714 # the same distribution terms that you use for the rest of that program.
10716 # A sed program that does not truncate output.
10717 SED=$lt_SED
10719 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10720 Xsed="$SED -e 1s/^X//"
10722 # The HP-UX ksh and POSIX shell print the target directory to stdout
10723 # if CDPATH is set.
10724 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10726 # The names of the tagged configurations supported by this script.
10727 available_tags=
10729 # ### BEGIN LIBTOOL CONFIG
10731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10733 # Shell to use when invoking shell scripts.
10734 SHELL=$lt_SHELL
10736 # Whether or not to build shared libraries.
10737 build_libtool_libs=$enable_shared
10739 # Whether or not to build static libraries.
10740 build_old_libs=$enable_static
10742 # Whether or not to add -lc for building shared libraries.
10743 build_libtool_need_lc=$archive_cmds_need_lc
10745 # Whether or not to disallow shared libs when runtime libs are static
10746 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10748 # Whether or not to optimize for fast installation.
10749 fast_install=$enable_fast_install
10751 # The host system.
10752 host_alias=$host_alias
10753 host=$host
10754 host_os=$host_os
10756 # The build system.
10757 build_alias=$build_alias
10758 build=$build
10759 build_os=$build_os
10761 # An echo program that does not interpret backslashes.
10762 echo=$lt_echo
10764 # The archiver.
10765 AR=$lt_AR
10766 AR_FLAGS=$lt_AR_FLAGS
10768 # A C compiler.
10769 LTCC=$lt_LTCC
10771 # LTCC compiler flags.
10772 LTCFLAGS=$lt_LTCFLAGS
10774 # A language-specific compiler.
10775 CC=$lt_compiler
10777 # Is the compiler the GNU C compiler?
10778 with_gcc=$GCC
10780 # An ERE matcher.
10781 EGREP=$lt_EGREP
10783 # The linker used to build libraries.
10784 LD=$lt_LD
10786 # Whether we need hard or soft links.
10787 LN_S=$lt_LN_S
10789 # A BSD-compatible nm program.
10790 NM=$lt_NM
10792 # A symbol stripping program
10793 STRIP=$lt_STRIP
10795 # Used to examine libraries when file_magic_cmd begins "file"
10796 MAGIC_CMD=$MAGIC_CMD
10798 # Used on cygwin: DLL creation program.
10799 DLLTOOL="$DLLTOOL"
10801 # Used on cygwin: object dumper.
10802 OBJDUMP="$OBJDUMP"
10804 # Used on cygwin: assembler.
10805 AS="$AS"
10807 # The name of the directory that contains temporary libtool files.
10808 objdir=$objdir
10810 # How to create reloadable object files.
10811 reload_flag=$lt_reload_flag
10812 reload_cmds=$lt_reload_cmds
10814 # How to pass a linker flag through the compiler.
10815 wl=$lt_lt_prog_compiler_wl
10817 # Object file suffix (normally "o").
10818 objext="$ac_objext"
10820 # Old archive suffix (normally "a").
10821 libext="$libext"
10823 # Shared library suffix (normally ".so").
10824 shrext_cmds='$shrext_cmds'
10826 # Executable file suffix (normally "").
10827 exeext="$exeext"
10829 # Additional compiler flags for building library objects.
10830 pic_flag=$lt_lt_prog_compiler_pic
10831 pic_mode=$pic_mode
10833 # What is the maximum length of a command?
10834 max_cmd_len=$lt_cv_sys_max_cmd_len
10836 # Does compiler simultaneously support -c and -o options?
10837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10839 # Must we lock files when doing compilation?
10840 need_locks=$lt_need_locks
10842 # Do we need the lib prefix for modules?
10843 need_lib_prefix=$need_lib_prefix
10845 # Do we need a version for libraries?
10846 need_version=$need_version
10848 # Whether dlopen is supported.
10849 dlopen_support=$enable_dlopen
10851 # Whether dlopen of programs is supported.
10852 dlopen_self=$enable_dlopen_self
10854 # Whether dlopen of statically linked programs is supported.
10855 dlopen_self_static=$enable_dlopen_self_static
10857 # Compiler flag to prevent dynamic linking.
10858 link_static_flag=$lt_lt_prog_compiler_static
10860 # Compiler flag to turn off builtin functions.
10861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10863 # Compiler flag to allow reflexive dlopens.
10864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10866 # Compiler flag to generate shared objects directly from archives.
10867 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10869 # Compiler flag to generate thread-safe objects.
10870 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10872 # Library versioning type.
10873 version_type=$version_type
10875 # Format of library name prefix.
10876 libname_spec=$lt_libname_spec
10878 # List of archive names. First name is the real one, the rest are links.
10879 # The last name is the one that the linker finds with -lNAME.
10880 library_names_spec=$lt_library_names_spec
10882 # The coded name of the library, if different from the real name.
10883 soname_spec=$lt_soname_spec
10885 # Commands used to build and install an old-style archive.
10886 RANLIB=$lt_RANLIB
10887 old_archive_cmds=$lt_old_archive_cmds
10888 old_postinstall_cmds=$lt_old_postinstall_cmds
10889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10891 # Create an old-style archive from a shared archive.
10892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10894 # Create a temporary old-style archive to link instead of a shared archive.
10895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10897 # Commands used to build and install a shared archive.
10898 archive_cmds=$lt_archive_cmds
10899 archive_expsym_cmds=$lt_archive_expsym_cmds
10900 postinstall_cmds=$lt_postinstall_cmds
10901 postuninstall_cmds=$lt_postuninstall_cmds
10903 # Commands used to build a loadable module (assumed same as above if empty)
10904 module_cmds=$lt_module_cmds
10905 module_expsym_cmds=$lt_module_expsym_cmds
10907 # Commands to strip libraries.
10908 old_striplib=$lt_old_striplib
10909 striplib=$lt_striplib
10911 # Dependencies to place before the objects being linked to create a
10912 # shared library.
10913 predep_objects=$lt_predep_objects
10915 # Dependencies to place after the objects being linked to create a
10916 # shared library.
10917 postdep_objects=$lt_postdep_objects
10919 # Dependencies to place before the objects being linked to create a
10920 # shared library.
10921 predeps=$lt_predeps
10923 # Dependencies to place after the objects being linked to create a
10924 # shared library.
10925 postdeps=$lt_postdeps
10927 # The library search path used internally by the compiler when linking
10928 # a shared library.
10929 compiler_lib_search_path=$lt_compiler_lib_search_path
10931 # Method to check whether dependent libraries are shared objects.
10932 deplibs_check_method=$lt_deplibs_check_method
10934 # Command to use when deplibs_check_method == file_magic.
10935 file_magic_cmd=$lt_file_magic_cmd
10937 # Flag that allows shared libraries with undefined symbols to be built.
10938 allow_undefined_flag=$lt_allow_undefined_flag
10940 # Flag that forces no undefined symbols.
10941 no_undefined_flag=$lt_no_undefined_flag
10943 # Commands used to finish a libtool library installation in a directory.
10944 finish_cmds=$lt_finish_cmds
10946 # Same as above, but a single script fragment to be evaled but not shown.
10947 finish_eval=$lt_finish_eval
10949 # Take the output of nm and produce a listing of raw symbols and C names.
10950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10952 # Transform the output of nm in a proper C declaration
10953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10955 # Transform the output of nm in a C name address pair
10956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10958 # This is the shared library runtime path variable.
10959 runpath_var=$runpath_var
10961 # This is the shared library path variable.
10962 shlibpath_var=$shlibpath_var
10964 # Is shlibpath searched before the hard-coded library search path?
10965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10967 # How to hardcode a shared library path into an executable.
10968 hardcode_action=$hardcode_action
10970 # Whether we should hardcode library paths into libraries.
10971 hardcode_into_libs=$hardcode_into_libs
10973 # Flag to hardcode \$libdir into a binary during linking.
10974 # This must work even if \$libdir does not exist.
10975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10977 # If ld is used when linking, flag to hardcode \$libdir into
10978 # a binary during linking. This must work even if \$libdir does
10979 # not exist.
10980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10982 # Whether we need a single -rpath flag with a separated argument.
10983 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10986 # resulting binary.
10987 hardcode_direct=$hardcode_direct
10989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10990 # resulting binary.
10991 hardcode_minus_L=$hardcode_minus_L
10993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10994 # the resulting binary.
10995 hardcode_shlibpath_var=$hardcode_shlibpath_var
10997 # Set to yes if building a shared library automatically hardcodes DIR into the library
10998 # and all subsequent libraries and executables linked against it.
10999 hardcode_automatic=$hardcode_automatic
11001 # Variables whose values should be saved in libtool wrapper scripts and
11002 # restored at relink time.
11003 variables_saved_for_relink="$variables_saved_for_relink"
11005 # Whether libtool must link a program against all its dependency libraries.
11006 link_all_deplibs=$link_all_deplibs
11008 # Compile-time system search path for libraries
11009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11011 # Run-time system search path for libraries
11012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11014 # Fix the shell variable \$srcfile for the compiler.
11015 fix_srcfile_path=$lt_fix_srcfile_path
11017 # Set to yes if exported symbols are required.
11018 always_export_symbols=$always_export_symbols
11020 # The commands to list exported symbols.
11021 export_symbols_cmds=$lt_export_symbols_cmds
11023 # The commands to extract the exported symbol list from a shared archive.
11024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11026 # Symbols that should not be listed in the preloaded symbols.
11027 exclude_expsyms=$lt_exclude_expsyms
11029 # Symbols that must always be exported.
11030 include_expsyms=$lt_include_expsyms
11032 # ### END LIBTOOL CONFIG
11034 __EOF__
11037 case $host_os in
11038 aix3*)
11039 cat <<\EOF >> "$cfgfile"
11041 # AIX sometimes has problems with the GCC collect2 program. For some
11042 # reason, if we set the COLLECT_NAMES environment variable, the problems
11043 # vanish in a puff of smoke.
11044 if test "X${COLLECT_NAMES+set}" != Xset; then
11045 COLLECT_NAMES=
11046 export COLLECT_NAMES
11050 esac
11052 # We use sed instead of cat because bash on DJGPP gets confused if
11053 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11054 # text mode, it properly converts lines to CR/LF. This bash problem
11055 # is reportedly fixed, but why not run on old versions too?
11056 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11058 mv -f "$cfgfile" "$ofile" || \
11059 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11060 chmod +x "$ofile"
11062 else
11063 # If there is no Makefile yet, we rely on a make rule to execute
11064 # `config.status --recheck' to rerun these tests and create the
11065 # libtool script then.
11066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11067 if test -f "$ltmain_in"; then
11068 test -f Makefile && make "$ltmain"
11073 ac_ext=c
11074 ac_cpp='$CPP $CPPFLAGS'
11075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11079 CC="$lt_save_CC"
11082 # Check whether --with-tags was given.
11083 if test "${with_tags+set}" = set; then
11084 withval=$with_tags; tagnames="$withval"
11088 if test -f "$ltmain" && test -n "$tagnames"; then
11089 if test ! -f "${ofile}"; then
11090 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11091 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11094 if test -z "$LTCC"; then
11095 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11096 if test -z "$LTCC"; then
11097 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11098 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11099 else
11100 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11101 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11104 if test -z "$LTCFLAGS"; then
11105 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11108 # Extract list of available tagged configurations in $ofile.
11109 # Note that this assumes the entire list is on one line.
11110 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11113 for tagname in $tagnames; do
11114 IFS="$lt_save_ifs"
11115 # Check whether tagname contains only valid characters
11116 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11117 "") ;;
11118 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11119 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11120 { (exit 1); exit 1; }; }
11122 esac
11124 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11125 then
11126 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11127 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11128 { (exit 1); exit 1; }; }
11131 # Update the list of available tags.
11132 if test -n "$tagname"; then
11133 echo appending configuration tag \"$tagname\" to $ofile
11135 case $tagname in
11136 CXX)
11137 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11138 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11139 (test "X$CXX" != "Xg++"))) ; then
11140 ac_ext=cpp
11141 ac_cpp='$CXXCPP $CPPFLAGS'
11142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11149 archive_cmds_need_lc_CXX=no
11150 allow_undefined_flag_CXX=
11151 always_export_symbols_CXX=no
11152 archive_expsym_cmds_CXX=
11153 export_dynamic_flag_spec_CXX=
11154 hardcode_direct_CXX=no
11155 hardcode_libdir_flag_spec_CXX=
11156 hardcode_libdir_flag_spec_ld_CXX=
11157 hardcode_libdir_separator_CXX=
11158 hardcode_minus_L_CXX=no
11159 hardcode_shlibpath_var_CXX=unsupported
11160 hardcode_automatic_CXX=no
11161 module_cmds_CXX=
11162 module_expsym_cmds_CXX=
11163 link_all_deplibs_CXX=unknown
11164 old_archive_cmds_CXX=$old_archive_cmds
11165 no_undefined_flag_CXX=
11166 whole_archive_flag_spec_CXX=
11167 enable_shared_with_static_runtimes_CXX=no
11169 # Dependencies to place before and after the object being linked:
11170 predep_objects_CXX=
11171 postdep_objects_CXX=
11172 predeps_CXX=
11173 postdeps_CXX=
11174 compiler_lib_search_path_CXX=
11176 # Source file extension for C++ test sources.
11177 ac_ext=cpp
11179 # Object file extension for compiled C++ test sources.
11180 objext=o
11181 objext_CXX=$objext
11183 # Code to be used in simple compile tests
11184 lt_simple_compile_test_code="int some_variable = 0;"
11186 # Code to be used in simple link tests
11187 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11189 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11191 # If no C compiler was specified, use CC.
11192 LTCC=${LTCC-"$CC"}
11194 # If no C compiler flags were specified, use CFLAGS.
11195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11197 # Allow CC to be a program name with arguments.
11198 compiler=$CC
11201 # save warnings/boilerplate of simple test code
11202 ac_outfile=conftest.$ac_objext
11203 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11204 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11205 _lt_compiler_boilerplate=`cat conftest.err`
11206 $rm conftest*
11208 ac_outfile=conftest.$ac_objext
11209 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11210 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11211 _lt_linker_boilerplate=`cat conftest.err`
11212 $rm conftest*
11215 # Allow CC to be a program name with arguments.
11216 lt_save_CC=$CC
11217 lt_save_LD=$LD
11218 lt_save_GCC=$GCC
11219 GCC=$GXX
11220 lt_save_with_gnu_ld=$with_gnu_ld
11221 lt_save_path_LD=$lt_cv_path_LD
11222 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11223 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11224 else
11225 $as_unset lt_cv_prog_gnu_ld
11227 if test -n "${lt_cv_path_LDCXX+set}"; then
11228 lt_cv_path_LD=$lt_cv_path_LDCXX
11229 else
11230 $as_unset lt_cv_path_LD
11232 test -z "${LDCXX+set}" || LD=$LDCXX
11233 CC=${CXX-"c++"}
11234 compiler=$CC
11235 compiler_CXX=$CC
11236 for cc_temp in $compiler""; do
11237 case $cc_temp in
11238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11240 \-*) ;;
11241 *) break;;
11242 esac
11243 done
11244 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11247 # We don't want -fno-exception wen compiling C++ code, so set the
11248 # no_builtin_flag separately
11249 if test "$GXX" = yes; then
11250 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11251 else
11252 lt_prog_compiler_no_builtin_flag_CXX=
11255 if test "$GXX" = yes; then
11256 # Set up default GNU C++ configuration
11259 # Check whether --with-gnu-ld was given.
11260 if test "${with_gnu_ld+set}" = set; then
11261 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11262 else
11263 with_gnu_ld=no
11266 ac_prog=ld
11267 if test "$GCC" = yes; then
11268 # Check if gcc -print-prog-name=ld gives a path.
11269 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11270 $as_echo_n "checking for ld used by $CC... " >&6; }
11271 case $host in
11272 *-*-mingw*)
11273 # gcc leaves a trailing carriage return which upsets mingw
11274 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11276 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11277 esac
11278 case $ac_prog in
11279 # Accept absolute paths.
11280 [\\/]* | ?:[\\/]*)
11281 re_direlt='/[^/][^/]*/\.\./'
11282 # Canonicalize the pathname of ld
11283 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11284 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11285 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11286 done
11287 test -z "$LD" && LD="$ac_prog"
11290 # If it fails, then pretend we aren't using GCC.
11291 ac_prog=ld
11294 # If it is relative, then search for the first ld in PATH.
11295 with_gnu_ld=unknown
11297 esac
11298 elif test "$with_gnu_ld" = yes; then
11299 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11300 $as_echo_n "checking for GNU ld... " >&6; }
11301 else
11302 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11303 $as_echo_n "checking for non-GNU ld... " >&6; }
11305 if test "${lt_cv_path_LD+set}" = set; then
11306 $as_echo_n "(cached) " >&6
11307 else
11308 if test -z "$LD"; then
11309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11310 for ac_dir in $PATH; do
11311 IFS="$lt_save_ifs"
11312 test -z "$ac_dir" && ac_dir=.
11313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11314 lt_cv_path_LD="$ac_dir/$ac_prog"
11315 # Check to see if the program is GNU ld. I'd rather use --version,
11316 # but apparently some variants of GNU ld only accept -v.
11317 # Break only if it was the GNU/non-GNU ld that we prefer.
11318 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11319 *GNU* | *'with BFD'*)
11320 test "$with_gnu_ld" != no && break
11323 test "$with_gnu_ld" != yes && break
11325 esac
11327 done
11328 IFS="$lt_save_ifs"
11329 else
11330 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11334 LD="$lt_cv_path_LD"
11335 if test -n "$LD"; then
11336 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11337 $as_echo "$LD" >&6; }
11338 else
11339 { $as_echo "$as_me:$LINENO: result: no" >&5
11340 $as_echo "no" >&6; }
11342 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11343 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11344 { (exit 1); exit 1; }; }
11345 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11347 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11348 $as_echo_n "(cached) " >&6
11349 else
11350 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11351 case `$LD -v 2>&1 </dev/null` in
11352 *GNU* | *'with BFD'*)
11353 lt_cv_prog_gnu_ld=yes
11356 lt_cv_prog_gnu_ld=no
11358 esac
11360 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11361 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11362 with_gnu_ld=$lt_cv_prog_gnu_ld
11366 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11367 # archiving commands below assume that GNU ld is being used.
11368 if test "$with_gnu_ld" = yes; then
11369 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11370 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'
11372 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11375 # If archive_cmds runs LD, not CC, wlarc should be empty
11376 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11377 # investigate it a little bit more. (MM)
11378 wlarc='${wl}'
11380 # ancient GNU ld didn't support --whole-archive et. al.
11381 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11382 grep 'no-whole-archive' > /dev/null; then
11383 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11384 else
11385 whole_archive_flag_spec_CXX=
11387 else
11388 with_gnu_ld=no
11389 wlarc=
11391 # A generic and very simple default shared library creation
11392 # command for GNU C++ for the case where it uses the native
11393 # linker, instead of GNU ld. If possible, this setting should
11394 # overridden to take advantage of the native linker features on
11395 # the platform it is being used on.
11396 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11399 # Commands to make compiler produce verbose output that lists
11400 # what "hidden" libraries, object files and flags are used when
11401 # linking a shared library.
11402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11404 else
11405 GXX=no
11406 with_gnu_ld=no
11407 wlarc=
11410 # PORTME: fill in a description of your system's C++ link characteristics
11411 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11413 ld_shlibs_CXX=yes
11414 case $host_os in
11415 aix3*)
11416 # FIXME: insert proper C++ library support
11417 ld_shlibs_CXX=no
11419 aix4* | aix5*)
11420 if test "$host_cpu" = ia64; then
11421 # On IA64, the linker does run time linking by default, so we don't
11422 # have to do anything special.
11423 aix_use_runtimelinking=no
11424 exp_sym_flag='-Bexport'
11425 no_entry_flag=""
11426 else
11427 aix_use_runtimelinking=no
11429 # Test if we are trying to use run time linking or normal
11430 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11431 # need to do runtime linking.
11432 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11433 for ld_flag in $LDFLAGS; do
11434 case $ld_flag in
11435 *-brtl*)
11436 aix_use_runtimelinking=yes
11437 break
11439 esac
11440 done
11442 esac
11444 exp_sym_flag='-bexport'
11445 no_entry_flag='-bnoentry'
11448 # When large executables or shared objects are built, AIX ld can
11449 # have problems creating the table of contents. If linking a library
11450 # or program results in "error TOC overflow" add -mminimal-toc to
11451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11454 archive_cmds_CXX=''
11455 hardcode_direct_CXX=yes
11456 hardcode_libdir_separator_CXX=':'
11457 link_all_deplibs_CXX=yes
11459 if test "$GXX" = yes; then
11460 case $host_os in aix4.[012]|aix4.[012].*)
11461 # We only want to do this on AIX 4.2 and lower, the check
11462 # below for broken collect2 doesn't work under 4.3+
11463 collect2name=`${CC} -print-prog-name=collect2`
11464 if test -f "$collect2name" && \
11465 strings "$collect2name" | grep resolve_lib_name >/dev/null
11466 then
11467 # We have reworked collect2
11469 else
11470 # We have old collect2
11471 hardcode_direct_CXX=unsupported
11472 # It fails to find uninstalled libraries when the uninstalled
11473 # path is not listed in the libpath. Setting hardcode_minus_L
11474 # to unsupported forces relinking
11475 hardcode_minus_L_CXX=yes
11476 hardcode_libdir_flag_spec_CXX='-L$libdir'
11477 hardcode_libdir_separator_CXX=
11480 esac
11481 shared_flag='-shared'
11482 if test "$aix_use_runtimelinking" = yes; then
11483 shared_flag="$shared_flag "'${wl}-G'
11485 else
11486 # not using gcc
11487 if test "$host_cpu" = ia64; then
11488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11489 # chokes on -Wl,-G. The following line is correct:
11490 shared_flag='-G'
11491 else
11492 if test "$aix_use_runtimelinking" = yes; then
11493 shared_flag='${wl}-G'
11494 else
11495 shared_flag='${wl}-bM:SRE'
11500 # It seems that -bexpall does not export symbols beginning with
11501 # underscore (_), so it is better to generate a list of symbols to export.
11502 always_export_symbols_CXX=yes
11503 if test "$aix_use_runtimelinking" = yes; then
11504 # Warning - without using the other runtime loading flags (-brtl),
11505 # -berok will link without error, but may produce a broken library.
11506 allow_undefined_flag_CXX='-berok'
11507 # Determine the default libpath from the value encoded in an empty executable.
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h. */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11516 main ()
11520 return 0;
11522 _ACEOF
11523 rm -f conftest.$ac_objext conftest$ac_exeext
11524 if { (ac_try="$ac_link"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528 esac
11529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11530 $as_echo "$ac_try_echo") >&5
11531 (eval "$ac_link") 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_cxx_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest$ac_exeext && {
11541 test "$cross_compiling" = yes ||
11542 $as_test_x conftest$ac_exeext
11543 }; then
11545 lt_aix_libpath_sed='
11546 /Import File Strings/,/^$/ {
11547 /^0/ {
11548 s/^0 *\(.*\)$/\1/
11552 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11553 # Check for a 64-bit object if we didn't find anything.
11554 if test -z "$aix_libpath"; then
11555 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11557 else
11558 $as_echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11564 rm -rf conftest.dSYM
11565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11566 conftest$ac_exeext conftest.$ac_ext
11567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11569 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11571 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"
11572 else
11573 if test "$host_cpu" = ia64; then
11574 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11575 allow_undefined_flag_CXX="-z nodefs"
11576 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"
11577 else
11578 # Determine the default libpath from the value encoded in an empty executable.
11579 cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h. */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11587 main ()
11591 return 0;
11593 _ACEOF
11594 rm -f conftest.$ac_objext conftest$ac_exeext
11595 if { (ac_try="$ac_link"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599 esac
11600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11601 $as_echo "$ac_try_echo") >&5
11602 (eval "$ac_link") 2>conftest.er1
11603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
11607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } && {
11609 test -z "$ac_cxx_werror_flag" ||
11610 test ! -s conftest.err
11611 } && test -s conftest$ac_exeext && {
11612 test "$cross_compiling" = yes ||
11613 $as_test_x conftest$ac_exeext
11614 }; then
11616 lt_aix_libpath_sed='
11617 /Import File Strings/,/^$/ {
11618 /^0/ {
11619 s/^0 *\(.*\)$/\1/
11623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11624 # Check for a 64-bit object if we didn't find anything.
11625 if test -z "$aix_libpath"; then
11626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11628 else
11629 $as_echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11635 rm -rf conftest.dSYM
11636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11637 conftest$ac_exeext conftest.$ac_ext
11638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11640 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11641 # Warning - without using the other run time loading flags,
11642 # -berok will link without error, but may produce a broken library.
11643 no_undefined_flag_CXX=' ${wl}-bernotok'
11644 allow_undefined_flag_CXX=' ${wl}-berok'
11645 # Exported symbols can be pulled into shared objects from archives
11646 whole_archive_flag_spec_CXX='$convenience'
11647 archive_cmds_need_lc_CXX=yes
11648 # This is similar to how AIX traditionally builds its shared libraries.
11649 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'
11654 beos*)
11655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11656 allow_undefined_flag_CXX=unsupported
11657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11658 # support --undefined. This deserves some investigation. FIXME
11659 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11660 else
11661 ld_shlibs_CXX=no
11665 chorus*)
11666 case $cc_basename in
11668 # FIXME: insert proper C++ library support
11669 ld_shlibs_CXX=no
11671 esac
11674 cygwin* | mingw* | pw32*)
11675 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11676 # as there is no search path for DLLs.
11677 hardcode_libdir_flag_spec_CXX='-L$libdir'
11678 allow_undefined_flag_CXX=unsupported
11679 always_export_symbols_CXX=no
11680 enable_shared_with_static_runtimes_CXX=yes
11682 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11683 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'
11684 # If the export-symbols file already is a .def file (1st line
11685 # is EXPORTS), use it as is; otherwise, prepend...
11686 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11687 cp $export_symbols $output_objdir/$soname.def;
11688 else
11689 echo EXPORTS > $output_objdir/$soname.def;
11690 cat $export_symbols >> $output_objdir/$soname.def;
11692 $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'
11693 else
11694 ld_shlibs_CXX=no
11697 darwin* | rhapsody*)
11698 case $host_os in
11699 rhapsody* | darwin1.[012])
11700 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11702 *) # Darwin 1.3 on
11703 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11704 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11705 else
11706 case ${MACOSX_DEPLOYMENT_TARGET} in
11707 10.[012])
11708 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11710 10.*)
11711 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11713 esac
11716 esac
11717 archive_cmds_need_lc_CXX=no
11718 hardcode_direct_CXX=no
11719 hardcode_automatic_CXX=yes
11720 hardcode_shlibpath_var_CXX=unsupported
11721 whole_archive_flag_spec_CXX=''
11722 link_all_deplibs_CXX=yes
11724 if test "$GXX" = yes ; then
11725 lt_int_apple_cc_single_mod=no
11726 output_verbose_link_cmd='echo'
11727 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11728 lt_int_apple_cc_single_mod=yes
11730 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11731 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11732 else
11733 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'
11735 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11737 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11738 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11739 else
11740 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11742 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}'
11743 else
11744 case $cc_basename in
11745 xlc*)
11746 output_verbose_link_cmd='echo'
11747 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'
11748 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11750 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}'
11751 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}'
11754 ld_shlibs_CXX=no
11756 esac
11760 dgux*)
11761 case $cc_basename in
11762 ec++*)
11763 # FIXME: insert proper C++ library support
11764 ld_shlibs_CXX=no
11766 ghcx*)
11767 # Green Hills C++ Compiler
11768 # FIXME: insert proper C++ library support
11769 ld_shlibs_CXX=no
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11775 esac
11777 freebsd[12]*)
11778 # C++ shared libraries reported to be fairly broken before switch to ELF
11779 ld_shlibs_CXX=no
11781 freebsd-elf*)
11782 archive_cmds_need_lc_CXX=no
11784 freebsd* | dragonfly*)
11785 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11786 # conventions
11787 ld_shlibs_CXX=yes
11789 gnu*)
11791 hpux9*)
11792 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11793 hardcode_libdir_separator_CXX=:
11794 export_dynamic_flag_spec_CXX='${wl}-E'
11795 hardcode_direct_CXX=yes
11796 hardcode_minus_L_CXX=yes # Not in the search PATH,
11797 # but as the default
11798 # location of the library.
11800 case $cc_basename in
11801 CC*)
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11805 aCC*)
11806 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'
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11811 # There doesn't appear to be a way to prevent this compiler from
11812 # explicitly linking system object files so we need to strip them
11813 # from the output so that they don't get included in the library
11814 # dependencies.
11815 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'
11818 if test "$GXX" = yes; then
11819 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'
11820 else
11821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
11825 esac
11827 hpux10*|hpux11*)
11828 if test $with_gnu_ld = no; then
11829 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11830 hardcode_libdir_separator_CXX=:
11832 case $host_cpu in
11833 hppa*64*|ia64*) ;;
11835 export_dynamic_flag_spec_CXX='${wl}-E'
11837 esac
11839 case $host_cpu in
11840 hppa*64*|ia64*)
11841 hardcode_direct_CXX=no
11842 hardcode_shlibpath_var_CXX=no
11845 hardcode_direct_CXX=yes
11846 hardcode_minus_L_CXX=yes # Not in the search PATH,
11847 # but as the default
11848 # location of the library.
11850 esac
11852 case $cc_basename in
11853 CC*)
11854 # FIXME: insert proper C++ library support
11855 ld_shlibs_CXX=no
11857 aCC*)
11858 case $host_cpu in
11859 hppa*64*)
11860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11862 ia64*)
11863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11866 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868 esac
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11873 # There doesn't appear to be a way to prevent this compiler from
11874 # explicitly linking system object files so we need to strip them
11875 # from the output so that they don't get included in the library
11876 # dependencies.
11877 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'
11880 if test "$GXX" = yes; then
11881 if test $with_gnu_ld = no; then
11882 case $host_cpu in
11883 hppa*64*)
11884 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11886 ia64*)
11887 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11890 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'
11892 esac
11894 else
11895 # FIXME: insert proper C++ library support
11896 ld_shlibs_CXX=no
11899 esac
11901 interix[3-9]*)
11902 hardcode_direct_CXX=no
11903 hardcode_shlibpath_var_CXX=no
11904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11905 export_dynamic_flag_spec_CXX='${wl}-E'
11906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11907 # Instead, shared libraries are loaded at an image base (0x10000000 by
11908 # default) and relocated if they conflict, which is a slow very memory
11909 # consuming and fragmenting process. To avoid this, we pick a random,
11910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11911 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11912 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'
11913 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'
11915 irix5* | irix6*)
11916 case $cc_basename in
11917 CC*)
11918 # SGI C++
11919 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'
11921 # Archives containing C++ object files must be created using
11922 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11923 # necessary to make sure instantiated templates are included
11924 # in the archive.
11925 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11928 if test "$GXX" = yes; then
11929 if test "$with_gnu_ld" = no; then
11930 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'
11931 else
11932 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'
11935 link_all_deplibs_CXX=yes
11937 esac
11938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11939 hardcode_libdir_separator_CXX=:
11941 linux* | k*bsd*-gnu)
11942 case $cc_basename in
11943 KCC*)
11944 # Kuck and Associates, Inc. (KAI) C++ Compiler
11946 # KCC will only create a shared library if the output file
11947 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11948 # to its proper name (with version) after linking.
11949 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'
11950 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'
11951 # Commands to make compiler produce verbose output that lists
11952 # what "hidden" libraries, object files and flags are used when
11953 # linking a shared library.
11955 # There doesn't appear to be a way to prevent this compiler from
11956 # explicitly linking system object files so we need to strip them
11957 # from the output so that they don't get included in the library
11958 # dependencies.
11959 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'
11961 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11964 # Archives containing C++ object files must be created using
11965 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11966 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11968 icpc*)
11969 # Intel C++
11970 with_gnu_ld=yes
11971 # version 8.0 and above of icpc choke on multiply defined symbols
11972 # if we add $predep_objects and $postdep_objects, however 7.1 and
11973 # earlier do not add the objects themselves.
11974 case `$CC -V 2>&1` in
11975 *"Version 7."*)
11976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11977 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'
11979 *) # Version 8.0 or newer
11980 tmp_idyn=
11981 case $host_cpu in
11982 ia64*) tmp_idyn=' -i_dynamic';;
11983 esac
11984 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11985 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'
11987 esac
11988 archive_cmds_need_lc_CXX=no
11989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11991 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11993 pgCC*)
11994 # Portland Group C++ compiler
11995 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11996 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'
11998 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12000 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'
12002 cxx*)
12003 # Compaq C++
12004 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12005 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'
12007 runpath_var=LD_RUN_PATH
12008 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12009 hardcode_libdir_separator_CXX=:
12011 # Commands to make compiler produce verbose output that lists
12012 # what "hidden" libraries, object files and flags are used when
12013 # linking a shared library.
12015 # There doesn't appear to be a way to prevent this compiler from
12016 # explicitly linking system object files so we need to strip them
12017 # from the output so that they don't get included in the library
12018 # dependencies.
12019 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'
12022 case `$CC -V 2>&1 | sed 5q` in
12023 *Sun\ C*)
12024 # Sun C++ 5.9
12025 no_undefined_flag_CXX=' -zdefs'
12026 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12027 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'
12028 hardcode_libdir_flag_spec_CXX='-R$libdir'
12029 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'
12031 # Not sure whether something based on
12032 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12033 # would be better.
12034 output_verbose_link_cmd='echo'
12036 # Archives containing C++ object files must be created using
12037 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12038 # necessary to make sure instantiated templates are included
12039 # in the archive.
12040 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12042 esac
12044 esac
12046 lynxos*)
12047 # FIXME: insert proper C++ library support
12048 ld_shlibs_CXX=no
12050 m88k*)
12051 # FIXME: insert proper C++ library support
12052 ld_shlibs_CXX=no
12054 mvs*)
12055 case $cc_basename in
12056 cxx*)
12057 # FIXME: insert proper C++ library support
12058 ld_shlibs_CXX=no
12061 # FIXME: insert proper C++ library support
12062 ld_shlibs_CXX=no
12064 esac
12066 netbsd*)
12067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12069 wlarc=
12070 hardcode_libdir_flag_spec_CXX='-R$libdir'
12071 hardcode_direct_CXX=yes
12072 hardcode_shlibpath_var_CXX=no
12074 # Workaround some broken pre-1.5 toolchains
12075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12077 openbsd2*)
12078 # C++ shared libraries are fairly broken
12079 ld_shlibs_CXX=no
12081 openbsd*)
12082 if test -f /usr/libexec/ld.so; then
12083 hardcode_direct_CXX=yes
12084 hardcode_shlibpath_var_CXX=no
12085 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12088 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12089 export_dynamic_flag_spec_CXX='${wl}-E'
12090 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12092 output_verbose_link_cmd='echo'
12093 else
12094 ld_shlibs_CXX=no
12097 osf3*)
12098 case $cc_basename in
12099 KCC*)
12100 # Kuck and Associates, Inc. (KAI) C++ Compiler
12102 # KCC will only create a shared library if the output file
12103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12104 # to its proper name (with version) after linking.
12105 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'
12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108 hardcode_libdir_separator_CXX=:
12110 # Archives containing C++ object files must be created using
12111 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12115 RCC*)
12116 # Rational C++ 2.4.1
12117 # FIXME: insert proper C++ library support
12118 ld_shlibs_CXX=no
12120 cxx*)
12121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12122 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'
12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12125 hardcode_libdir_separator_CXX=:
12127 # Commands to make compiler produce verbose output that lists
12128 # what "hidden" libraries, object files and flags are used when
12129 # linking a shared library.
12131 # There doesn't appear to be a way to prevent this compiler from
12132 # explicitly linking system object files so we need to strip them
12133 # from the output so that they don't get included in the library
12134 # dependencies.
12135 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'
12138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12140 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'
12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12143 hardcode_libdir_separator_CXX=:
12145 # Commands to make compiler produce verbose output that lists
12146 # what "hidden" libraries, object files and flags are used when
12147 # linking a shared library.
12148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12150 else
12151 # FIXME: insert proper C++ library support
12152 ld_shlibs_CXX=no
12155 esac
12157 osf4* | osf5*)
12158 case $cc_basename in
12159 KCC*)
12160 # Kuck and Associates, Inc. (KAI) C++ Compiler
12162 # KCC will only create a shared library if the output file
12163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12164 # to its proper name (with version) after linking.
12165 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'
12167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12168 hardcode_libdir_separator_CXX=:
12170 # Archives containing C++ object files must be created using
12171 # the KAI C++ compiler.
12172 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12174 RCC*)
12175 # Rational C++ 2.4.1
12176 # FIXME: insert proper C++ library support
12177 ld_shlibs_CXX=no
12179 cxx*)
12180 allow_undefined_flag_CXX=' -expect_unresolved \*'
12181 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'
12182 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12183 echo "-hidden">> $lib.exp~
12184 $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~
12185 $rm $lib.exp'
12187 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12188 hardcode_libdir_separator_CXX=:
12190 # Commands to make compiler produce verbose output that lists
12191 # what "hidden" libraries, object files and flags are used when
12192 # linking a shared library.
12194 # There doesn't appear to be a way to prevent this compiler from
12195 # explicitly linking system object files so we need to strip them
12196 # from the output so that they don't get included in the library
12197 # dependencies.
12198 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'
12201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12203 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'
12205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12206 hardcode_libdir_separator_CXX=:
12208 # Commands to make compiler produce verbose output that lists
12209 # what "hidden" libraries, object files and flags are used when
12210 # linking a shared library.
12211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12213 else
12214 # FIXME: insert proper C++ library support
12215 ld_shlibs_CXX=no
12218 esac
12220 psos*)
12221 # FIXME: insert proper C++ library support
12222 ld_shlibs_CXX=no
12224 sunos4*)
12225 case $cc_basename in
12226 CC*)
12227 # Sun C++ 4.x
12228 # FIXME: insert proper C++ library support
12229 ld_shlibs_CXX=no
12231 lcc*)
12232 # Lucid
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12237 # FIXME: insert proper C++ library support
12238 ld_shlibs_CXX=no
12240 esac
12242 solaris*)
12243 case $cc_basename in
12244 CC*)
12245 # Sun C++ 4.2, 5.x and Centerline C++
12246 archive_cmds_need_lc_CXX=yes
12247 no_undefined_flag_CXX=' -zdefs'
12248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12250 $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'
12252 hardcode_libdir_flag_spec_CXX='-R$libdir'
12253 hardcode_shlibpath_var_CXX=no
12254 case $host_os in
12255 solaris2.[0-5] | solaris2.[0-5].*) ;;
12257 # The compiler driver will combine and reorder linker options,
12258 # but understands `-z linker_flag'.
12259 # Supported since Solaris 2.6 (maybe 2.5.1?)
12260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12262 esac
12263 link_all_deplibs_CXX=yes
12265 output_verbose_link_cmd='echo'
12267 # Archives containing C++ object files must be created using
12268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12269 # necessary to make sure instantiated templates are included
12270 # in the archive.
12271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12273 gcx*)
12274 # Green Hills C++ Compiler
12275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12277 # The C++ compiler must be used to create the archive.
12278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12281 # GNU C++ compiler with Solaris linker
12282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12284 if $CC --version | grep -v '^2\.7' > /dev/null; then
12285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12286 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12289 # Commands to make compiler produce verbose output that lists
12290 # what "hidden" libraries, object files and flags are used when
12291 # linking a shared library.
12292 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12293 else
12294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12295 # platform.
12296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12297 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12300 # Commands to make compiler produce verbose output that lists
12301 # what "hidden" libraries, object files and flags are used when
12302 # linking a shared library.
12303 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12307 case $host_os in
12308 solaris2.[0-5] | solaris2.[0-5].*) ;;
12310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12312 esac
12315 esac
12317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12318 no_undefined_flag_CXX='${wl}-z,text'
12319 archive_cmds_need_lc_CXX=no
12320 hardcode_shlibpath_var_CXX=no
12321 runpath_var='LD_RUN_PATH'
12323 case $cc_basename in
12324 CC*)
12325 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12332 esac
12334 sysv5* | sco3.2v5* | sco5v6*)
12335 # Note: We can NOT use -z defs as we might desire, because we do not
12336 # link with -lc, and that would cause any symbols used from libc to
12337 # always be unresolved, which means just about no library would
12338 # ever link correctly. If we're not using GNU ld we use -z text
12339 # though, which does catch some bad symbols but isn't as heavy-handed
12340 # as -z defs.
12341 # For security reasons, it is highly recommended that you always
12342 # use absolute paths for naming shared libraries, and exclude the
12343 # DT_RUNPATH tag from executables and libraries. But doing so
12344 # requires that you compile everything twice, which is a pain.
12345 # So that behaviour is only enabled if SCOABSPATH is set to a
12346 # non-empty value in the environment. Most likely only useful for
12347 # creating official distributions of packages.
12348 # This is a hack until libtool officially supports absolute path
12349 # names for shared libraries.
12350 no_undefined_flag_CXX='${wl}-z,text'
12351 allow_undefined_flag_CXX='${wl}-z,nodefs'
12352 archive_cmds_need_lc_CXX=no
12353 hardcode_shlibpath_var_CXX=no
12354 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12355 hardcode_libdir_separator_CXX=':'
12356 link_all_deplibs_CXX=yes
12357 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12358 runpath_var='LD_RUN_PATH'
12360 case $cc_basename in
12361 CC*)
12362 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12363 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12366 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12367 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12369 esac
12371 tandem*)
12372 case $cc_basename in
12373 NCC*)
12374 # NonStop-UX NCC 3.20
12375 # FIXME: insert proper C++ library support
12376 ld_shlibs_CXX=no
12379 # FIXME: insert proper C++ library support
12380 ld_shlibs_CXX=no
12382 esac
12384 vxworks*)
12385 # FIXME: insert proper C++ library support
12386 ld_shlibs_CXX=no
12389 # FIXME: insert proper C++ library support
12390 ld_shlibs_CXX=no
12392 esac
12393 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12394 $as_echo "$ld_shlibs_CXX" >&6; }
12395 test "$ld_shlibs_CXX" = no && can_build_shared=no
12397 GCC_CXX="$GXX"
12398 LD_CXX="$LD"
12401 cat > conftest.$ac_ext <<EOF
12402 class Foo
12404 public:
12405 Foo (void) { a = 0; }
12406 private:
12407 int a;
12411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12412 (eval $ac_compile) 2>&5
12413 ac_status=$?
12414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; then
12416 # Parse the compiler output and extract the necessary
12417 # objects, libraries and library flags.
12419 # Sentinel used to keep track of whether or not we are before
12420 # the conftest object file.
12421 pre_test_object_deps_done=no
12423 # The `*' in the case matches for architectures that use `case' in
12424 # $output_verbose_cmd can trigger glob expansion during the loop
12425 # eval without this substitution.
12426 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12428 for p in `eval $output_verbose_link_cmd`; do
12429 case $p in
12431 -L* | -R* | -l*)
12432 # Some compilers place space between "-{L,R}" and the path.
12433 # Remove the space.
12434 if test $p = "-L" \
12435 || test $p = "-R"; then
12436 prev=$p
12437 continue
12438 else
12439 prev=
12442 if test "$pre_test_object_deps_done" = no; then
12443 case $p in
12444 -L* | -R*)
12445 # Internal compiler library paths should come after those
12446 # provided the user. The postdeps already come after the
12447 # user supplied libs so there is no need to process them.
12448 if test -z "$compiler_lib_search_path_CXX"; then
12449 compiler_lib_search_path_CXX="${prev}${p}"
12450 else
12451 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12454 # The "-l" case would never come before the object being
12455 # linked, so don't bother handling this case.
12456 esac
12457 else
12458 if test -z "$postdeps_CXX"; then
12459 postdeps_CXX="${prev}${p}"
12460 else
12461 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12466 *.$objext)
12467 # This assumes that the test object file only shows up
12468 # once in the compiler output.
12469 if test "$p" = "conftest.$objext"; then
12470 pre_test_object_deps_done=yes
12471 continue
12474 if test "$pre_test_object_deps_done" = no; then
12475 if test -z "$predep_objects_CXX"; then
12476 predep_objects_CXX="$p"
12477 else
12478 predep_objects_CXX="$predep_objects_CXX $p"
12480 else
12481 if test -z "$postdep_objects_CXX"; then
12482 postdep_objects_CXX="$p"
12483 else
12484 postdep_objects_CXX="$postdep_objects_CXX $p"
12489 *) ;; # Ignore the rest.
12491 esac
12492 done
12494 # Clean up.
12495 rm -f a.out a.exe
12496 else
12497 echo "libtool.m4: error: problem compiling CXX test program"
12500 $rm -f confest.$objext
12502 # PORTME: override above test on systems where it is broken
12503 case $host_os in
12504 interix[3-9]*)
12505 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12506 # hack all around it, let's just trust "g++" to DTRT.
12507 predep_objects_CXX=
12508 postdep_objects_CXX=
12509 postdeps_CXX=
12512 linux*)
12513 case `$CC -V 2>&1 | sed 5q` in
12514 *Sun\ C*)
12515 # Sun C++ 5.9
12517 # The more standards-conforming stlport4 library is
12518 # incompatible with the Cstd library. Avoid specifying
12519 # it if it's in CXXFLAGS. Ignore libCrun as
12520 # -library=stlport4 depends on it.
12521 case " $CXX $CXXFLAGS " in
12522 *" -library=stlport4 "*)
12523 solaris_use_stlport4=yes
12525 esac
12526 if test "$solaris_use_stlport4" != yes; then
12527 postdeps_CXX='-library=Cstd -library=Crun'
12530 esac
12533 solaris*)
12534 case $cc_basename in
12535 CC*)
12536 # The more standards-conforming stlport4 library is
12537 # incompatible with the Cstd library. Avoid specifying
12538 # it if it's in CXXFLAGS. Ignore libCrun as
12539 # -library=stlport4 depends on it.
12540 case " $CXX $CXXFLAGS " in
12541 *" -library=stlport4 "*)
12542 solaris_use_stlport4=yes
12544 esac
12546 # Adding this requires a known-good setup of shared libraries for
12547 # Sun compiler versions before 5.6, else PIC objects from an old
12548 # archive will be linked into the output, leading to subtle bugs.
12549 if test "$solaris_use_stlport4" != yes; then
12550 postdeps_CXX='-library=Cstd -library=Crun'
12553 esac
12555 esac
12558 case " $postdeps_CXX " in
12559 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12560 esac
12562 lt_prog_compiler_wl_CXX=
12563 lt_prog_compiler_pic_CXX=
12564 lt_prog_compiler_static_CXX=
12566 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12567 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12569 # C++ specific cases for pic, static, wl, etc.
12570 if test "$GXX" = yes; then
12571 lt_prog_compiler_wl_CXX='-Wl,'
12572 lt_prog_compiler_static_CXX='-static'
12574 case $host_os in
12575 aix*)
12576 # All AIX code is PIC.
12577 if test "$host_cpu" = ia64; then
12578 # AIX 5 now supports IA64 processor
12579 lt_prog_compiler_static_CXX='-Bstatic'
12582 amigaos*)
12583 # FIXME: we need at least 68020 code to build shared libraries, but
12584 # adding the `-m68020' flag to GCC prevents building anything better,
12585 # like `-m68040'.
12586 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12589 # PIC is the default for these OSes.
12591 mingw* | cygwin* | os2* | pw32*)
12592 # This hack is so that the source file can tell whether it is being
12593 # built for inclusion in a dll (and should export symbols for example).
12594 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12595 # (--disable-auto-import) libraries
12596 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12598 darwin* | rhapsody*)
12599 # PIC is the default on this platform
12600 # Common symbols not allowed in MH_DYLIB files
12601 lt_prog_compiler_pic_CXX='-fno-common'
12603 *djgpp*)
12604 # DJGPP does not support shared libraries at all
12605 lt_prog_compiler_pic_CXX=
12607 interix[3-9]*)
12608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12609 # Instead, we relocate shared libraries at runtime.
12611 sysv4*MP*)
12612 if test -d /usr/nec; then
12613 lt_prog_compiler_pic_CXX=-Kconform_pic
12616 hpux*)
12617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12618 # not for PA HP-UX.
12619 case $host_cpu in
12620 hppa*64*|ia64*)
12623 lt_prog_compiler_pic_CXX='-fPIC'
12625 esac
12628 lt_prog_compiler_pic_CXX='-fPIC'
12630 esac
12631 else
12632 case $host_os in
12633 aix4* | aix5*)
12634 # All AIX code is PIC.
12635 if test "$host_cpu" = ia64; then
12636 # AIX 5 now supports IA64 processor
12637 lt_prog_compiler_static_CXX='-Bstatic'
12638 else
12639 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12642 chorus*)
12643 case $cc_basename in
12644 cxch68*)
12645 # Green Hills C++ Compiler
12646 # _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"
12648 esac
12650 darwin*)
12651 # PIC is the default on this platform
12652 # Common symbols not allowed in MH_DYLIB files
12653 case $cc_basename in
12654 xlc*)
12655 lt_prog_compiler_pic_CXX='-qnocommon'
12656 lt_prog_compiler_wl_CXX='-Wl,'
12658 esac
12660 dgux*)
12661 case $cc_basename in
12662 ec++*)
12663 lt_prog_compiler_pic_CXX='-KPIC'
12665 ghcx*)
12666 # Green Hills C++ Compiler
12667 lt_prog_compiler_pic_CXX='-pic'
12671 esac
12673 freebsd* | dragonfly*)
12674 # FreeBSD uses GNU C++
12676 hpux9* | hpux10* | hpux11*)
12677 case $cc_basename in
12678 CC*)
12679 lt_prog_compiler_wl_CXX='-Wl,'
12680 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12681 if test "$host_cpu" != ia64; then
12682 lt_prog_compiler_pic_CXX='+Z'
12685 aCC*)
12686 lt_prog_compiler_wl_CXX='-Wl,'
12687 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12688 case $host_cpu in
12689 hppa*64*|ia64*)
12690 # +Z the default
12693 lt_prog_compiler_pic_CXX='+Z'
12695 esac
12699 esac
12701 interix*)
12702 # This is c89, which is MS Visual C++ (no shared libs)
12703 # Anyone wants to do a port?
12705 irix5* | irix6* | nonstopux*)
12706 case $cc_basename in
12707 CC*)
12708 lt_prog_compiler_wl_CXX='-Wl,'
12709 lt_prog_compiler_static_CXX='-non_shared'
12710 # CC pic flag -KPIC is the default.
12714 esac
12716 linux* | k*bsd*-gnu)
12717 case $cc_basename in
12718 KCC*)
12719 # KAI C++ Compiler
12720 lt_prog_compiler_wl_CXX='--backend -Wl,'
12721 lt_prog_compiler_pic_CXX='-fPIC'
12723 icpc* | ecpc*)
12724 # Intel C++
12725 lt_prog_compiler_wl_CXX='-Wl,'
12726 lt_prog_compiler_pic_CXX='-KPIC'
12727 lt_prog_compiler_static_CXX='-static'
12729 pgCC*)
12730 # Portland Group C++ compiler.
12731 lt_prog_compiler_wl_CXX='-Wl,'
12732 lt_prog_compiler_pic_CXX='-fpic'
12733 lt_prog_compiler_static_CXX='-Bstatic'
12735 cxx*)
12736 # Compaq C++
12737 # Make sure the PIC flag is empty. It appears that all Alpha
12738 # Linux and Compaq Tru64 Unix objects are PIC.
12739 lt_prog_compiler_pic_CXX=
12740 lt_prog_compiler_static_CXX='-non_shared'
12743 case `$CC -V 2>&1 | sed 5q` in
12744 *Sun\ C*)
12745 # Sun C++ 5.9
12746 lt_prog_compiler_pic_CXX='-KPIC'
12747 lt_prog_compiler_static_CXX='-Bstatic'
12748 lt_prog_compiler_wl_CXX='-Qoption ld '
12750 esac
12752 esac
12754 lynxos*)
12756 m88k*)
12758 mvs*)
12759 case $cc_basename in
12760 cxx*)
12761 lt_prog_compiler_pic_CXX='-W c,exportall'
12765 esac
12767 netbsd*)
12769 osf3* | osf4* | osf5*)
12770 case $cc_basename in
12771 KCC*)
12772 lt_prog_compiler_wl_CXX='--backend -Wl,'
12774 RCC*)
12775 # Rational C++ 2.4.1
12776 lt_prog_compiler_pic_CXX='-pic'
12778 cxx*)
12779 # Digital/Compaq C++
12780 lt_prog_compiler_wl_CXX='-Wl,'
12781 # Make sure the PIC flag is empty. It appears that all Alpha
12782 # Linux and Compaq Tru64 Unix objects are PIC.
12783 lt_prog_compiler_pic_CXX=
12784 lt_prog_compiler_static_CXX='-non_shared'
12788 esac
12790 psos*)
12792 solaris*)
12793 case $cc_basename in
12794 CC*)
12795 # Sun C++ 4.2, 5.x and Centerline C++
12796 lt_prog_compiler_pic_CXX='-KPIC'
12797 lt_prog_compiler_static_CXX='-Bstatic'
12798 lt_prog_compiler_wl_CXX='-Qoption ld '
12800 gcx*)
12801 # Green Hills C++ Compiler
12802 lt_prog_compiler_pic_CXX='-PIC'
12806 esac
12808 sunos4*)
12809 case $cc_basename in
12810 CC*)
12811 # Sun C++ 4.x
12812 lt_prog_compiler_pic_CXX='-pic'
12813 lt_prog_compiler_static_CXX='-Bstatic'
12815 lcc*)
12816 # Lucid
12817 lt_prog_compiler_pic_CXX='-pic'
12821 esac
12823 tandem*)
12824 case $cc_basename in
12825 NCC*)
12826 # NonStop-UX NCC 3.20
12827 lt_prog_compiler_pic_CXX='-KPIC'
12831 esac
12833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12834 case $cc_basename in
12835 CC*)
12836 lt_prog_compiler_wl_CXX='-Wl,'
12837 lt_prog_compiler_pic_CXX='-KPIC'
12838 lt_prog_compiler_static_CXX='-Bstatic'
12840 esac
12842 vxworks*)
12845 lt_prog_compiler_can_build_shared_CXX=no
12847 esac
12850 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12851 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12854 # Check to make sure the PIC flag actually works.
12856 if test -n "$lt_prog_compiler_pic_CXX"; then
12858 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12859 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12860 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12861 $as_echo_n "(cached) " >&6
12862 else
12863 lt_prog_compiler_pic_works_CXX=no
12864 ac_outfile=conftest.$ac_objext
12865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12866 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12867 # Insert the option either (1) after the last *FLAGS variable, or
12868 # (2) before a word containing "conftest.", or (3) at the end.
12869 # Note that $ac_compile itself does not contain backslashes and begins
12870 # with a dollar sign (not a hyphen), so the echo should work correctly.
12871 # The option is referenced via a variable to avoid confusing sed.
12872 lt_compile=`echo "$ac_compile" | $SED \
12873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12875 -e 's:$: $lt_compiler_flag:'`
12876 (eval echo "\"\$as_me:12876: $lt_compile\"" >&5)
12877 (eval "$lt_compile" 2>conftest.err)
12878 ac_status=$?
12879 cat conftest.err >&5
12880 echo "$as_me:12880: \$? = $ac_status" >&5
12881 if (exit $ac_status) && test -s "$ac_outfile"; then
12882 # The compiler can only warn and ignore the option if not recognized
12883 # So say no if there are warnings other than the usual output.
12884 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12887 lt_prog_compiler_pic_works_CXX=yes
12890 $rm conftest*
12893 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12894 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12896 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12897 case $lt_prog_compiler_pic_CXX in
12898 "" | " "*) ;;
12899 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12900 esac
12901 else
12902 lt_prog_compiler_pic_CXX=
12903 lt_prog_compiler_can_build_shared_CXX=no
12907 case $host_os in
12908 # For platforms which do not support PIC, -DPIC is meaningless:
12909 *djgpp*)
12910 lt_prog_compiler_pic_CXX=
12913 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12915 esac
12918 # Check to make sure the static flag actually works.
12920 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12921 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12922 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12923 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12924 $as_echo_n "(cached) " >&6
12925 else
12926 lt_prog_compiler_static_works_CXX=no
12927 save_LDFLAGS="$LDFLAGS"
12928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12931 # The linker can only warn and ignore the option if not recognized
12932 # So say no if there are warnings
12933 if test -s conftest.err; then
12934 # Append any errors to the config.log.
12935 cat conftest.err 1>&5
12936 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12938 if diff conftest.exp conftest.er2 >/dev/null; then
12939 lt_prog_compiler_static_works_CXX=yes
12941 else
12942 lt_prog_compiler_static_works_CXX=yes
12945 $rm conftest*
12946 LDFLAGS="$save_LDFLAGS"
12949 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12950 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12952 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12954 else
12955 lt_prog_compiler_static_CXX=
12959 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12961 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12962 $as_echo_n "(cached) " >&6
12963 else
12964 lt_cv_prog_compiler_c_o_CXX=no
12965 $rm -r conftest 2>/dev/null
12966 mkdir conftest
12967 cd conftest
12968 mkdir out
12969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12971 lt_compiler_flag="-o out/conftest2.$ac_objext"
12972 # Insert the option either (1) after the last *FLAGS variable, or
12973 # (2) before a word containing "conftest.", or (3) at the end.
12974 # Note that $ac_compile itself does not contain backslashes and begins
12975 # with a dollar sign (not a hyphen), so the echo should work correctly.
12976 lt_compile=`echo "$ac_compile" | $SED \
12977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12979 -e 's:$: $lt_compiler_flag:'`
12980 (eval echo "\"\$as_me:12980: $lt_compile\"" >&5)
12981 (eval "$lt_compile" 2>out/conftest.err)
12982 ac_status=$?
12983 cat out/conftest.err >&5
12984 echo "$as_me:12984: \$? = $ac_status" >&5
12985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12986 then
12987 # The compiler can only warn and ignore the option if not recognized
12988 # So say no if there are warnings
12989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12992 lt_cv_prog_compiler_c_o_CXX=yes
12995 chmod u+w . 2>&5
12996 $rm conftest*
12997 # SGI C++ compiler will create directory out/ii_files/ for
12998 # template instantiation
12999 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13000 $rm out/* && rmdir out
13001 cd ..
13002 rmdir conftest
13003 $rm conftest*
13006 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13007 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13010 hard_links="nottested"
13011 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13012 # do not overwrite the value of need_locks provided by the user
13013 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13014 $as_echo_n "checking if we can lock with hard links... " >&6; }
13015 hard_links=yes
13016 $rm conftest*
13017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13018 touch conftest.a
13019 ln conftest.a conftest.b 2>&5 || hard_links=no
13020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13021 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13022 $as_echo "$hard_links" >&6; }
13023 if test "$hard_links" = no; then
13024 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13025 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13026 need_locks=warn
13028 else
13029 need_locks=no
13032 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13033 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13035 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13036 case $host_os in
13037 aix4* | aix5*)
13038 # If we're using GNU nm, then we don't want the "-C" option.
13039 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13040 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13041 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'
13042 else
13043 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'
13046 pw32*)
13047 export_symbols_cmds_CXX="$ltdll_cmds"
13049 cygwin* | mingw*)
13050 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'
13053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13055 esac
13057 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13058 $as_echo "$ld_shlibs_CXX" >&6; }
13059 test "$ld_shlibs_CXX" = no && can_build_shared=no
13062 # Do we need to explicitly link libc?
13064 case "x$archive_cmds_need_lc_CXX" in
13065 x|xyes)
13066 # Assume -lc should be added
13067 archive_cmds_need_lc_CXX=yes
13069 if test "$enable_shared" = yes && test "$GCC" = yes; then
13070 case $archive_cmds_CXX in
13071 *'~'*)
13072 # FIXME: we may have to deal with multi-command sequences.
13074 '$CC '*)
13075 # Test whether the compiler implicitly links with -lc since on some
13076 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13077 # to ld, don't add -lc before -lgcc.
13078 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13079 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13080 $rm conftest*
13081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>&5
13085 ac_status=$?
13086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } 2>conftest.err; then
13088 soname=conftest
13089 lib=conftest
13090 libobjs=conftest.$ac_objext
13091 deplibs=
13092 wl=$lt_prog_compiler_wl_CXX
13093 pic_flag=$lt_prog_compiler_pic_CXX
13094 compiler_flags=-v
13095 linker_flags=-v
13096 verstring=
13097 output_objdir=.
13098 libname=conftest
13099 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13100 allow_undefined_flag_CXX=
13101 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13102 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13103 ac_status=$?
13104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }
13106 then
13107 archive_cmds_need_lc_CXX=no
13108 else
13109 archive_cmds_need_lc_CXX=yes
13111 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13112 else
13113 cat conftest.err 1>&5
13115 $rm conftest*
13116 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13117 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13119 esac
13122 esac
13124 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13125 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13126 library_names_spec=
13127 libname_spec='lib$name'
13128 soname_spec=
13129 shrext_cmds=".so"
13130 postinstall_cmds=
13131 postuninstall_cmds=
13132 finish_cmds=
13133 finish_eval=
13134 shlibpath_var=
13135 shlibpath_overrides_runpath=unknown
13136 version_type=none
13137 dynamic_linker="$host_os ld.so"
13138 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13140 need_lib_prefix=unknown
13141 hardcode_into_libs=no
13143 # when you set need_version to no, make sure it does not cause -set_version
13144 # flags to be left without arguments
13145 need_version=unknown
13147 case $host_os in
13148 aix3*)
13149 version_type=linux
13150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13151 shlibpath_var=LIBPATH
13153 # AIX 3 has no versioning support, so we append a major version to the name.
13154 soname_spec='${libname}${release}${shared_ext}$major'
13157 aix4* | aix5*)
13158 version_type=linux
13159 need_lib_prefix=no
13160 need_version=no
13161 hardcode_into_libs=yes
13162 if test "$host_cpu" = ia64; then
13163 # AIX 5 supports IA64
13164 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13165 shlibpath_var=LD_LIBRARY_PATH
13166 else
13167 # With GCC up to 2.95.x, collect2 would create an import file
13168 # for dependence libraries. The import file would start with
13169 # the line `#! .'. This would cause the generated library to
13170 # depend on `.', always an invalid library. This was fixed in
13171 # development snapshots of GCC prior to 3.0.
13172 case $host_os in
13173 aix4 | aix4.[01] | aix4.[01].*)
13174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13175 echo ' yes '
13176 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13178 else
13179 can_build_shared=no
13182 esac
13183 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13184 # soname into executable. Probably we can add versioning support to
13185 # collect2, so additional links can be useful in future.
13186 if test "$aix_use_runtimelinking" = yes; then
13187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13188 # instead of lib<name>.a to let people know that these are not
13189 # typical AIX shared libraries.
13190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191 else
13192 # We preserve .a as extension for shared libraries through AIX4.2
13193 # and later when we are not doing run time linking.
13194 library_names_spec='${libname}${release}.a $libname.a'
13195 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LIBPATH
13201 amigaos*)
13202 library_names_spec='$libname.ixlibrary $libname.a'
13203 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13204 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'
13207 beos*)
13208 library_names_spec='${libname}${shared_ext}'
13209 dynamic_linker="$host_os ld.so"
13210 shlibpath_var=LIBRARY_PATH
13213 bsdi[45]*)
13214 version_type=linux
13215 need_version=no
13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13217 soname_spec='${libname}${release}${shared_ext}$major'
13218 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13219 shlibpath_var=LD_LIBRARY_PATH
13220 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13221 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13222 # the default ld.so.conf also contains /usr/contrib/lib and
13223 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13224 # libtool to hard-code these into programs
13227 cygwin* | mingw* | pw32*)
13228 version_type=windows
13229 shrext_cmds=".dll"
13230 need_version=no
13231 need_lib_prefix=no
13233 case $GCC,$host_os in
13234 yes,cygwin* | yes,mingw* | yes,pw32*)
13235 library_names_spec='$libname.dll.a'
13236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13237 postinstall_cmds='base_file=`basename \${file}`~
13238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13239 dldir=$destdir/`dirname \$dlpath`~
13240 test -d \$dldir || mkdir -p \$dldir~
13241 $install_prog $dir/$dlname \$dldir/$dlname~
13242 chmod a+x \$dldir/$dlname'
13243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13244 dlpath=$dir/\$dldll~
13245 $rm \$dlpath'
13246 shlibpath_overrides_runpath=yes
13248 case $host_os in
13249 cygwin*)
13250 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13251 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13252 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13254 mingw*)
13255 # MinGW DLLs use traditional 'lib' prefix
13256 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13258 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13259 # It is most probably a Windows format PATH printed by
13260 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13261 # path with ; separators, and with drive letters. We can handle the
13262 # drive letters (cygwin fileutils understands them), so leave them,
13263 # especially as we might pass files found there to a mingw objdump,
13264 # which wouldn't understand a cygwinified path. Ahh.
13265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13266 else
13267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13270 pw32*)
13271 # pw32 DLLs use 'pw' prefix rather than 'lib'
13272 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13274 esac
13278 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13280 esac
13281 dynamic_linker='Win32 ld.exe'
13282 # FIXME: first we should search . and the directory the executable is in
13283 shlibpath_var=PATH
13286 darwin* | rhapsody*)
13287 dynamic_linker="$host_os dyld"
13288 version_type=darwin
13289 need_lib_prefix=no
13290 need_version=no
13291 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13292 soname_spec='${libname}${release}${major}$shared_ext'
13293 shlibpath_overrides_runpath=yes
13294 shlibpath_var=DYLD_LIBRARY_PATH
13295 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13300 dgux*)
13301 version_type=linux
13302 need_lib_prefix=no
13303 need_version=no
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13305 soname_spec='${libname}${release}${shared_ext}$major'
13306 shlibpath_var=LD_LIBRARY_PATH
13309 freebsd1*)
13310 dynamic_linker=no
13313 freebsd* | dragonfly*)
13314 # DragonFly does not have aout. When/if they implement a new
13315 # versioning mechanism, adjust this.
13316 if test -x /usr/bin/objformat; then
13317 objformat=`/usr/bin/objformat`
13318 else
13319 case $host_os in
13320 freebsd[123]*) objformat=aout ;;
13321 *) objformat=elf ;;
13322 esac
13324 version_type=freebsd-$objformat
13325 case $version_type in
13326 freebsd-elf*)
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13328 need_version=no
13329 need_lib_prefix=no
13331 freebsd-*)
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13333 need_version=yes
13335 esac
13336 shlibpath_var=LD_LIBRARY_PATH
13337 case $host_os in
13338 freebsd2*)
13339 shlibpath_overrides_runpath=yes
13341 freebsd3.[01]* | freebsdelf3.[01]*)
13342 shlibpath_overrides_runpath=yes
13343 hardcode_into_libs=yes
13345 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13346 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13347 shlibpath_overrides_runpath=no
13348 hardcode_into_libs=yes
13350 *) # from 4.6 on, and DragonFly
13351 shlibpath_overrides_runpath=yes
13352 hardcode_into_libs=yes
13354 esac
13357 gnu*)
13358 version_type=linux
13359 need_lib_prefix=no
13360 need_version=no
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 hardcode_into_libs=yes
13367 hpux9* | hpux10* | hpux11*)
13368 # Give a soname corresponding to the major version so that dld.sl refuses to
13369 # link against other versions.
13370 version_type=sunos
13371 need_lib_prefix=no
13372 need_version=no
13373 case $host_cpu in
13374 ia64*)
13375 shrext_cmds='.so'
13376 hardcode_into_libs=yes
13377 dynamic_linker="$host_os dld.so"
13378 shlibpath_var=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 if test "X$HPUX_IA64_MODE" = X32; then
13383 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13384 else
13385 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13389 hppa*64*)
13390 shrext_cmds='.sl'
13391 hardcode_into_libs=yes
13392 dynamic_linker="$host_os dld.sl"
13393 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
13397 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13401 shrext_cmds='.sl'
13402 dynamic_linker="$host_os dld.sl"
13403 shlibpath_var=SHLIB_PATH
13404 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406 soname_spec='${libname}${release}${shared_ext}$major'
13408 esac
13409 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13410 postinstall_cmds='chmod 555 $lib'
13413 interix[3-9]*)
13414 version_type=linux
13415 need_lib_prefix=no
13416 need_version=no
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=no
13422 hardcode_into_libs=yes
13425 irix5* | irix6* | nonstopux*)
13426 case $host_os in
13427 nonstopux*) version_type=nonstopux ;;
13429 if test "$lt_cv_prog_gnu_ld" = yes; then
13430 version_type=linux
13431 else
13432 version_type=irix
13433 fi ;;
13434 esac
13435 need_lib_prefix=no
13436 need_version=no
13437 soname_spec='${libname}${release}${shared_ext}$major'
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13439 case $host_os in
13440 irix5* | nonstopux*)
13441 libsuff= shlibsuff=
13444 case $LD in # libtool.m4 will add one of these switches to LD
13445 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13446 libsuff= shlibsuff= libmagic=32-bit;;
13447 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13448 libsuff=32 shlibsuff=N32 libmagic=N32;;
13449 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13450 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13451 *) libsuff= shlibsuff= libmagic=never-match;;
13452 esac
13454 esac
13455 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13456 shlibpath_overrides_runpath=no
13457 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13458 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13459 hardcode_into_libs=yes
13462 # No shared lib support for Linux oldld, aout, or coff.
13463 linux*oldld* | linux*aout* | linux*coff*)
13464 dynamic_linker=no
13467 # This must be Linux ELF.
13468 linux* | k*bsd*-gnu)
13469 version_type=linux
13470 need_lib_prefix=no
13471 need_version=no
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 shlibpath_overrides_runpath=no
13477 # This implies no fast_install, which is unacceptable.
13478 # Some rework will be needed to allow for fast_install
13479 # before this can be enabled.
13480 hardcode_into_libs=yes
13482 # Append ld.so.conf contents to the search path
13483 if test -f /etc/ld.so.conf; then
13484 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' ' '`
13485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13488 # We used to test for /lib/ld.so.1 and disable shared libraries on
13489 # powerpc, because MkLinux only supported shared libraries with the
13490 # GNU dynamic linker. Since this was broken with cross compilers,
13491 # most powerpc-linux boxes support dynamic linking these days and
13492 # people can always --disable-shared, the test was removed, and we
13493 # assume the GNU/Linux dynamic linker is in use.
13494 dynamic_linker='GNU/Linux ld.so'
13497 netbsd*)
13498 version_type=sunos
13499 need_lib_prefix=no
13500 need_version=no
13501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13504 dynamic_linker='NetBSD (a.out) ld.so'
13505 else
13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13507 soname_spec='${libname}${release}${shared_ext}$major'
13508 dynamic_linker='NetBSD ld.elf_so'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 shlibpath_overrides_runpath=yes
13512 hardcode_into_libs=yes
13515 newsos6)
13516 version_type=linux
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=yes
13522 nto-qnx*)
13523 version_type=linux
13524 need_lib_prefix=no
13525 need_version=no
13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527 soname_spec='${libname}${release}${shared_ext}$major'
13528 shlibpath_var=LD_LIBRARY_PATH
13529 shlibpath_overrides_runpath=yes
13532 openbsd*)
13533 version_type=sunos
13534 sys_lib_dlsearch_path_spec="/usr/lib"
13535 need_lib_prefix=no
13536 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13537 case $host_os in
13538 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13539 *) need_version=no ;;
13540 esac
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13543 shlibpath_var=LD_LIBRARY_PATH
13544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13545 case $host_os in
13546 openbsd2.[89] | openbsd2.[89].*)
13547 shlibpath_overrides_runpath=no
13550 shlibpath_overrides_runpath=yes
13552 esac
13553 else
13554 shlibpath_overrides_runpath=yes
13558 os2*)
13559 libname_spec='$name'
13560 shrext_cmds=".dll"
13561 need_lib_prefix=no
13562 library_names_spec='$libname${shared_ext} $libname.a'
13563 dynamic_linker='OS/2 ld.exe'
13564 shlibpath_var=LIBPATH
13567 osf3* | osf4* | osf5*)
13568 version_type=osf
13569 need_lib_prefix=no
13570 need_version=no
13571 soname_spec='${libname}${release}${shared_ext}$major'
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13575 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13578 rdos*)
13579 dynamic_linker=no
13582 solaris*)
13583 version_type=linux
13584 need_lib_prefix=no
13585 need_version=no
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13587 soname_spec='${libname}${release}${shared_ext}$major'
13588 shlibpath_var=LD_LIBRARY_PATH
13589 shlibpath_overrides_runpath=yes
13590 hardcode_into_libs=yes
13591 # ldd complains unless libraries are executable
13592 postinstall_cmds='chmod +x $lib'
13595 sunos4*)
13596 version_type=sunos
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13598 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 shlibpath_overrides_runpath=yes
13601 if test "$with_gnu_ld" = yes; then
13602 need_lib_prefix=no
13604 need_version=yes
13607 sysv4 | sysv4.3*)
13608 version_type=linux
13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13610 soname_spec='${libname}${release}${shared_ext}$major'
13611 shlibpath_var=LD_LIBRARY_PATH
13612 case $host_vendor in
13613 sni)
13614 shlibpath_overrides_runpath=no
13615 need_lib_prefix=no
13616 export_dynamic_flag_spec='${wl}-Blargedynsym'
13617 runpath_var=LD_RUN_PATH
13619 siemens)
13620 need_lib_prefix=no
13622 motorola)
13623 need_lib_prefix=no
13624 need_version=no
13625 shlibpath_overrides_runpath=no
13626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13628 esac
13631 sysv4*MP*)
13632 if test -d /usr/nec ;then
13633 version_type=linux
13634 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13635 soname_spec='$libname${shared_ext}.$major'
13636 shlibpath_var=LD_LIBRARY_PATH
13640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13641 version_type=freebsd-elf
13642 need_lib_prefix=no
13643 need_version=no
13644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13645 soname_spec='${libname}${release}${shared_ext}$major'
13646 shlibpath_var=LD_LIBRARY_PATH
13647 hardcode_into_libs=yes
13648 if test "$with_gnu_ld" = yes; then
13649 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13650 shlibpath_overrides_runpath=no
13651 else
13652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13653 shlibpath_overrides_runpath=yes
13654 case $host_os in
13655 sco3.2v5*)
13656 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13658 esac
13660 sys_lib_dlsearch_path_spec='/usr/lib'
13663 uts4*)
13664 version_type=linux
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
13667 shlibpath_var=LD_LIBRARY_PATH
13671 dynamic_linker=no
13673 esac
13674 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13675 $as_echo "$dynamic_linker" >&6; }
13676 test "$dynamic_linker" = no && can_build_shared=no
13678 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13679 if test "$GCC" = yes; then
13680 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13683 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13684 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13685 hardcode_action_CXX=
13686 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13687 test -n "$runpath_var_CXX" || \
13688 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13690 # We can hardcode non-existant directories.
13691 if test "$hardcode_direct_CXX" != no &&
13692 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13693 # have to relink, otherwise we might link with an installed library
13694 # when we should be linking with a yet-to-be-installed one
13695 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13696 test "$hardcode_minus_L_CXX" != no; then
13697 # Linking always hardcodes the temporary library directory.
13698 hardcode_action_CXX=relink
13699 else
13700 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13701 hardcode_action_CXX=immediate
13703 else
13704 # We cannot hardcode anything, or else we can only hardcode existing
13705 # directories.
13706 hardcode_action_CXX=unsupported
13708 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13709 $as_echo "$hardcode_action_CXX" >&6; }
13711 if test "$hardcode_action_CXX" = relink; then
13712 # Fast installation is not supported
13713 enable_fast_install=no
13714 elif test "$shlibpath_overrides_runpath" = yes ||
13715 test "$enable_shared" = no; then
13716 # Fast installation is not necessary
13717 enable_fast_install=needless
13721 # The else clause should only fire when bootstrapping the
13722 # libtool distribution, otherwise you forgot to ship ltmain.sh
13723 # with your package, and you will get complaints that there are
13724 # no rules to generate ltmain.sh.
13725 if test -f "$ltmain"; then
13726 # See if we are running on zsh, and set the options which allow our commands through
13727 # without removal of \ escapes.
13728 if test -n "${ZSH_VERSION+set}" ; then
13729 setopt NO_GLOB_SUBST
13731 # Now quote all the things that may contain metacharacters while being
13732 # careful not to overquote the AC_SUBSTed values. We take copies of the
13733 # variables and quote the copies for generation of the libtool script.
13734 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13735 SED SHELL STRIP \
13736 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13737 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13738 deplibs_check_method reload_flag reload_cmds need_locks \
13739 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13740 lt_cv_sys_global_symbol_to_c_name_address \
13741 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13742 old_postinstall_cmds old_postuninstall_cmds \
13743 compiler_CXX \
13744 CC_CXX \
13745 LD_CXX \
13746 lt_prog_compiler_wl_CXX \
13747 lt_prog_compiler_pic_CXX \
13748 lt_prog_compiler_static_CXX \
13749 lt_prog_compiler_no_builtin_flag_CXX \
13750 export_dynamic_flag_spec_CXX \
13751 thread_safe_flag_spec_CXX \
13752 whole_archive_flag_spec_CXX \
13753 enable_shared_with_static_runtimes_CXX \
13754 old_archive_cmds_CXX \
13755 old_archive_from_new_cmds_CXX \
13756 predep_objects_CXX \
13757 postdep_objects_CXX \
13758 predeps_CXX \
13759 postdeps_CXX \
13760 compiler_lib_search_path_CXX \
13761 archive_cmds_CXX \
13762 archive_expsym_cmds_CXX \
13763 postinstall_cmds_CXX \
13764 postuninstall_cmds_CXX \
13765 old_archive_from_expsyms_cmds_CXX \
13766 allow_undefined_flag_CXX \
13767 no_undefined_flag_CXX \
13768 export_symbols_cmds_CXX \
13769 hardcode_libdir_flag_spec_CXX \
13770 hardcode_libdir_flag_spec_ld_CXX \
13771 hardcode_libdir_separator_CXX \
13772 hardcode_automatic_CXX \
13773 module_cmds_CXX \
13774 module_expsym_cmds_CXX \
13775 lt_cv_prog_compiler_c_o_CXX \
13776 fix_srcfile_path_CXX \
13777 exclude_expsyms_CXX \
13778 include_expsyms_CXX; do
13780 case $var in
13781 old_archive_cmds_CXX | \
13782 old_archive_from_new_cmds_CXX | \
13783 archive_cmds_CXX | \
13784 archive_expsym_cmds_CXX | \
13785 module_cmds_CXX | \
13786 module_expsym_cmds_CXX | \
13787 old_archive_from_expsyms_cmds_CXX | \
13788 export_symbols_cmds_CXX | \
13789 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13790 postinstall_cmds | postuninstall_cmds | \
13791 old_postinstall_cmds | old_postuninstall_cmds | \
13792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13793 # Double-quote double-evaled strings.
13794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13799 esac
13800 done
13802 case $lt_echo in
13803 *'\$0 --fallback-echo"')
13804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13806 esac
13808 cfgfile="$ofile"
13810 cat <<__EOF__ >> "$cfgfile"
13811 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13815 # Shell to use when invoking shell scripts.
13816 SHELL=$lt_SHELL
13818 # Whether or not to build shared libraries.
13819 build_libtool_libs=$enable_shared
13821 # Whether or not to build static libraries.
13822 build_old_libs=$enable_static
13824 # Whether or not to add -lc for building shared libraries.
13825 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13827 # Whether or not to disallow shared libs when runtime libs are static
13828 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13830 # Whether or not to optimize for fast installation.
13831 fast_install=$enable_fast_install
13833 # The host system.
13834 host_alias=$host_alias
13835 host=$host
13836 host_os=$host_os
13838 # The build system.
13839 build_alias=$build_alias
13840 build=$build
13841 build_os=$build_os
13843 # An echo program that does not interpret backslashes.
13844 echo=$lt_echo
13846 # The archiver.
13847 AR=$lt_AR
13848 AR_FLAGS=$lt_AR_FLAGS
13850 # A C compiler.
13851 LTCC=$lt_LTCC
13853 # LTCC compiler flags.
13854 LTCFLAGS=$lt_LTCFLAGS
13856 # A language-specific compiler.
13857 CC=$lt_compiler_CXX
13859 # Is the compiler the GNU C compiler?
13860 with_gcc=$GCC_CXX
13862 # An ERE matcher.
13863 EGREP=$lt_EGREP
13865 # The linker used to build libraries.
13866 LD=$lt_LD_CXX
13868 # Whether we need hard or soft links.
13869 LN_S=$lt_LN_S
13871 # A BSD-compatible nm program.
13872 NM=$lt_NM
13874 # A symbol stripping program
13875 STRIP=$lt_STRIP
13877 # Used to examine libraries when file_magic_cmd begins "file"
13878 MAGIC_CMD=$MAGIC_CMD
13880 # Used on cygwin: DLL creation program.
13881 DLLTOOL="$DLLTOOL"
13883 # Used on cygwin: object dumper.
13884 OBJDUMP="$OBJDUMP"
13886 # Used on cygwin: assembler.
13887 AS="$AS"
13889 # The name of the directory that contains temporary libtool files.
13890 objdir=$objdir
13892 # How to create reloadable object files.
13893 reload_flag=$lt_reload_flag
13894 reload_cmds=$lt_reload_cmds
13896 # How to pass a linker flag through the compiler.
13897 wl=$lt_lt_prog_compiler_wl_CXX
13899 # Object file suffix (normally "o").
13900 objext="$ac_objext"
13902 # Old archive suffix (normally "a").
13903 libext="$libext"
13905 # Shared library suffix (normally ".so").
13906 shrext_cmds='$shrext_cmds'
13908 # Executable file suffix (normally "").
13909 exeext="$exeext"
13911 # Additional compiler flags for building library objects.
13912 pic_flag=$lt_lt_prog_compiler_pic_CXX
13913 pic_mode=$pic_mode
13915 # What is the maximum length of a command?
13916 max_cmd_len=$lt_cv_sys_max_cmd_len
13918 # Does compiler simultaneously support -c and -o options?
13919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13921 # Must we lock files when doing compilation?
13922 need_locks=$lt_need_locks
13924 # Do we need the lib prefix for modules?
13925 need_lib_prefix=$need_lib_prefix
13927 # Do we need a version for libraries?
13928 need_version=$need_version
13930 # Whether dlopen is supported.
13931 dlopen_support=$enable_dlopen
13933 # Whether dlopen of programs is supported.
13934 dlopen_self=$enable_dlopen_self
13936 # Whether dlopen of statically linked programs is supported.
13937 dlopen_self_static=$enable_dlopen_self_static
13939 # Compiler flag to prevent dynamic linking.
13940 link_static_flag=$lt_lt_prog_compiler_static_CXX
13942 # Compiler flag to turn off builtin functions.
13943 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13945 # Compiler flag to allow reflexive dlopens.
13946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13948 # Compiler flag to generate shared objects directly from archives.
13949 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13951 # Compiler flag to generate thread-safe objects.
13952 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13954 # Library versioning type.
13955 version_type=$version_type
13957 # Format of library name prefix.
13958 libname_spec=$lt_libname_spec
13960 # List of archive names. First name is the real one, the rest are links.
13961 # The last name is the one that the linker finds with -lNAME.
13962 library_names_spec=$lt_library_names_spec
13964 # The coded name of the library, if different from the real name.
13965 soname_spec=$lt_soname_spec
13967 # Commands used to build and install an old-style archive.
13968 RANLIB=$lt_RANLIB
13969 old_archive_cmds=$lt_old_archive_cmds_CXX
13970 old_postinstall_cmds=$lt_old_postinstall_cmds
13971 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13973 # Create an old-style archive from a shared archive.
13974 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13976 # Create a temporary old-style archive to link instead of a shared archive.
13977 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13979 # Commands used to build and install a shared archive.
13980 archive_cmds=$lt_archive_cmds_CXX
13981 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13982 postinstall_cmds=$lt_postinstall_cmds
13983 postuninstall_cmds=$lt_postuninstall_cmds
13985 # Commands used to build a loadable module (assumed same as above if empty)
13986 module_cmds=$lt_module_cmds_CXX
13987 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13989 # Commands to strip libraries.
13990 old_striplib=$lt_old_striplib
13991 striplib=$lt_striplib
13993 # Dependencies to place before the objects being linked to create a
13994 # shared library.
13995 predep_objects=$lt_predep_objects_CXX
13997 # Dependencies to place after the objects being linked to create a
13998 # shared library.
13999 postdep_objects=$lt_postdep_objects_CXX
14001 # Dependencies to place before the objects being linked to create a
14002 # shared library.
14003 predeps=$lt_predeps_CXX
14005 # Dependencies to place after the objects being linked to create a
14006 # shared library.
14007 postdeps=$lt_postdeps_CXX
14009 # The library search path used internally by the compiler when linking
14010 # a shared library.
14011 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14013 # Method to check whether dependent libraries are shared objects.
14014 deplibs_check_method=$lt_deplibs_check_method
14016 # Command to use when deplibs_check_method == file_magic.
14017 file_magic_cmd=$lt_file_magic_cmd
14019 # Flag that allows shared libraries with undefined symbols to be built.
14020 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14022 # Flag that forces no undefined symbols.
14023 no_undefined_flag=$lt_no_undefined_flag_CXX
14025 # Commands used to finish a libtool library installation in a directory.
14026 finish_cmds=$lt_finish_cmds
14028 # Same as above, but a single script fragment to be evaled but not shown.
14029 finish_eval=$lt_finish_eval
14031 # Take the output of nm and produce a listing of raw symbols and C names.
14032 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14034 # Transform the output of nm in a proper C declaration
14035 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14037 # Transform the output of nm in a C name address pair
14038 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14040 # This is the shared library runtime path variable.
14041 runpath_var=$runpath_var
14043 # This is the shared library path variable.
14044 shlibpath_var=$shlibpath_var
14046 # Is shlibpath searched before the hard-coded library search path?
14047 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14049 # How to hardcode a shared library path into an executable.
14050 hardcode_action=$hardcode_action_CXX
14052 # Whether we should hardcode library paths into libraries.
14053 hardcode_into_libs=$hardcode_into_libs
14055 # Flag to hardcode \$libdir into a binary during linking.
14056 # This must work even if \$libdir does not exist.
14057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14059 # If ld is used when linking, flag to hardcode \$libdir into
14060 # a binary during linking. This must work even if \$libdir does
14061 # not exist.
14062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14064 # Whether we need a single -rpath flag with a separated argument.
14065 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14067 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14068 # resulting binary.
14069 hardcode_direct=$hardcode_direct_CXX
14071 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14072 # resulting binary.
14073 hardcode_minus_L=$hardcode_minus_L_CXX
14075 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14076 # the resulting binary.
14077 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14079 # Set to yes if building a shared library automatically hardcodes DIR into the library
14080 # and all subsequent libraries and executables linked against it.
14081 hardcode_automatic=$hardcode_automatic_CXX
14083 # Variables whose values should be saved in libtool wrapper scripts and
14084 # restored at relink time.
14085 variables_saved_for_relink="$variables_saved_for_relink"
14087 # Whether libtool must link a program against all its dependency libraries.
14088 link_all_deplibs=$link_all_deplibs_CXX
14090 # Compile-time system search path for libraries
14091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14093 # Run-time system search path for libraries
14094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14096 # Fix the shell variable \$srcfile for the compiler.
14097 fix_srcfile_path=$lt_fix_srcfile_path
14099 # Set to yes if exported symbols are required.
14100 always_export_symbols=$always_export_symbols_CXX
14102 # The commands to list exported symbols.
14103 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14105 # The commands to extract the exported symbol list from a shared archive.
14106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14108 # Symbols that should not be listed in the preloaded symbols.
14109 exclude_expsyms=$lt_exclude_expsyms_CXX
14111 # Symbols that must always be exported.
14112 include_expsyms=$lt_include_expsyms_CXX
14114 # ### END LIBTOOL TAG CONFIG: $tagname
14116 __EOF__
14119 else
14120 # If there is no Makefile yet, we rely on a make rule to execute
14121 # `config.status --recheck' to rerun these tests and create the
14122 # libtool script then.
14123 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14124 if test -f "$ltmain_in"; then
14125 test -f Makefile && make "$ltmain"
14130 ac_ext=c
14131 ac_cpp='$CPP $CPPFLAGS'
14132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14136 CC=$lt_save_CC
14137 LDCXX=$LD
14138 LD=$lt_save_LD
14139 GCC=$lt_save_GCC
14140 with_gnu_ldcxx=$with_gnu_ld
14141 with_gnu_ld=$lt_save_with_gnu_ld
14142 lt_cv_path_LDCXX=$lt_cv_path_LD
14143 lt_cv_path_LD=$lt_save_path_LD
14144 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14145 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14147 else
14148 tagname=""
14152 F77)
14153 if test -n "$F77" && test "X$F77" != "Xno"; then
14155 ac_ext=f
14156 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14157 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14161 archive_cmds_need_lc_F77=no
14162 allow_undefined_flag_F77=
14163 always_export_symbols_F77=no
14164 archive_expsym_cmds_F77=
14165 export_dynamic_flag_spec_F77=
14166 hardcode_direct_F77=no
14167 hardcode_libdir_flag_spec_F77=
14168 hardcode_libdir_flag_spec_ld_F77=
14169 hardcode_libdir_separator_F77=
14170 hardcode_minus_L_F77=no
14171 hardcode_automatic_F77=no
14172 module_cmds_F77=
14173 module_expsym_cmds_F77=
14174 link_all_deplibs_F77=unknown
14175 old_archive_cmds_F77=$old_archive_cmds
14176 no_undefined_flag_F77=
14177 whole_archive_flag_spec_F77=
14178 enable_shared_with_static_runtimes_F77=no
14180 # Source file extension for f77 test sources.
14181 ac_ext=f
14183 # Object file extension for compiled f77 test sources.
14184 objext=o
14185 objext_F77=$objext
14187 # Code to be used in simple compile tests
14188 lt_simple_compile_test_code="\
14189 subroutine t
14190 return
14194 # Code to be used in simple link tests
14195 lt_simple_link_test_code="\
14196 program t
14200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14202 # If no C compiler was specified, use CC.
14203 LTCC=${LTCC-"$CC"}
14205 # If no C compiler flags were specified, use CFLAGS.
14206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14208 # Allow CC to be a program name with arguments.
14209 compiler=$CC
14212 # save warnings/boilerplate of simple test code
14213 ac_outfile=conftest.$ac_objext
14214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14216 _lt_compiler_boilerplate=`cat conftest.err`
14217 $rm conftest*
14219 ac_outfile=conftest.$ac_objext
14220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14222 _lt_linker_boilerplate=`cat conftest.err`
14223 $rm conftest*
14226 # Allow CC to be a program name with arguments.
14227 lt_save_CC="$CC"
14228 CC=${F77-"f77"}
14229 compiler=$CC
14230 compiler_F77=$CC
14231 for cc_temp in $compiler""; do
14232 case $cc_temp in
14233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14235 \-*) ;;
14236 *) break;;
14237 esac
14238 done
14239 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14242 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14243 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14244 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14245 $as_echo "$can_build_shared" >&6; }
14247 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14248 $as_echo_n "checking whether to build shared libraries... " >&6; }
14249 test "$can_build_shared" = "no" && enable_shared=no
14251 # On AIX, shared libraries and static libraries use the same namespace, and
14252 # are all built from PIC.
14253 case $host_os in
14254 aix3*)
14255 test "$enable_shared" = yes && enable_static=no
14256 if test -n "$RANLIB"; then
14257 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14258 postinstall_cmds='$RANLIB $lib'
14261 aix4* | aix5*)
14262 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14263 test "$enable_shared" = yes && enable_static=no
14266 esac
14267 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14268 $as_echo "$enable_shared" >&6; }
14270 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14271 $as_echo_n "checking whether to build static libraries... " >&6; }
14272 # Make sure either enable_shared or enable_static is yes.
14273 test "$enable_shared" = yes || enable_static=yes
14274 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14275 $as_echo "$enable_static" >&6; }
14277 GCC_F77="$G77"
14278 LD_F77="$LD"
14280 lt_prog_compiler_wl_F77=
14281 lt_prog_compiler_pic_F77=
14282 lt_prog_compiler_static_F77=
14284 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14285 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14287 if test "$GCC" = yes; then
14288 lt_prog_compiler_wl_F77='-Wl,'
14289 lt_prog_compiler_static_F77='-static'
14291 case $host_os in
14292 aix*)
14293 # All AIX code is PIC.
14294 if test "$host_cpu" = ia64; then
14295 # AIX 5 now supports IA64 processor
14296 lt_prog_compiler_static_F77='-Bstatic'
14300 amigaos*)
14301 # FIXME: we need at least 68020 code to build shared libraries, but
14302 # adding the `-m68020' flag to GCC prevents building anything better,
14303 # like `-m68040'.
14304 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14307 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14308 # PIC is the default for these OSes.
14311 mingw* | cygwin* | pw32* | os2*)
14312 # This hack is so that the source file can tell whether it is being
14313 # built for inclusion in a dll (and should export symbols for example).
14314 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14315 # (--disable-auto-import) libraries
14316 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14319 darwin* | rhapsody*)
14320 # PIC is the default on this platform
14321 # Common symbols not allowed in MH_DYLIB files
14322 lt_prog_compiler_pic_F77='-fno-common'
14325 interix[3-9]*)
14326 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14327 # Instead, we relocate shared libraries at runtime.
14330 msdosdjgpp*)
14331 # Just because we use GCC doesn't mean we suddenly get shared libraries
14332 # on systems that don't support them.
14333 lt_prog_compiler_can_build_shared_F77=no
14334 enable_shared=no
14337 sysv4*MP*)
14338 if test -d /usr/nec; then
14339 lt_prog_compiler_pic_F77=-Kconform_pic
14343 hpux*)
14344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14345 # not for PA HP-UX.
14346 case $host_cpu in
14347 hppa*64*|ia64*)
14348 # +Z the default
14351 lt_prog_compiler_pic_F77='-fPIC'
14353 esac
14357 lt_prog_compiler_pic_F77='-fPIC'
14359 esac
14360 else
14361 # PORTME Check for flag to pass linker flags through the system compiler.
14362 case $host_os in
14363 aix*)
14364 lt_prog_compiler_wl_F77='-Wl,'
14365 if test "$host_cpu" = ia64; then
14366 # AIX 5 now supports IA64 processor
14367 lt_prog_compiler_static_F77='-Bstatic'
14368 else
14369 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14372 darwin*)
14373 # PIC is the default on this platform
14374 # Common symbols not allowed in MH_DYLIB files
14375 case $cc_basename in
14376 xlc*)
14377 lt_prog_compiler_pic_F77='-qnocommon'
14378 lt_prog_compiler_wl_F77='-Wl,'
14380 esac
14383 mingw* | cygwin* | pw32* | os2*)
14384 # This hack is so that the source file can tell whether it is being
14385 # built for inclusion in a dll (and should export symbols for example).
14386 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14389 hpux9* | hpux10* | hpux11*)
14390 lt_prog_compiler_wl_F77='-Wl,'
14391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14392 # not for PA HP-UX.
14393 case $host_cpu in
14394 hppa*64*|ia64*)
14395 # +Z the default
14398 lt_prog_compiler_pic_F77='+Z'
14400 esac
14401 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14402 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14405 irix5* | irix6* | nonstopux*)
14406 lt_prog_compiler_wl_F77='-Wl,'
14407 # PIC (with -KPIC) is the default.
14408 lt_prog_compiler_static_F77='-non_shared'
14411 newsos6)
14412 lt_prog_compiler_pic_F77='-KPIC'
14413 lt_prog_compiler_static_F77='-Bstatic'
14416 linux* | k*bsd*-gnu)
14417 case $cc_basename in
14418 icc* | ecc*)
14419 lt_prog_compiler_wl_F77='-Wl,'
14420 lt_prog_compiler_pic_F77='-KPIC'
14421 lt_prog_compiler_static_F77='-static'
14423 pgcc* | pgf77* | pgf90* | pgf95*)
14424 # Portland Group compilers (*not* the Pentium gcc compiler,
14425 # which looks to be a dead project)
14426 lt_prog_compiler_wl_F77='-Wl,'
14427 lt_prog_compiler_pic_F77='-fpic'
14428 lt_prog_compiler_static_F77='-Bstatic'
14430 ccc*)
14431 lt_prog_compiler_wl_F77='-Wl,'
14432 # All Alpha code is PIC.
14433 lt_prog_compiler_static_F77='-non_shared'
14436 case `$CC -V 2>&1 | sed 5q` in
14437 *Sun\ C*)
14438 # Sun C 5.9
14439 lt_prog_compiler_pic_F77='-KPIC'
14440 lt_prog_compiler_static_F77='-Bstatic'
14441 lt_prog_compiler_wl_F77='-Wl,'
14443 *Sun\ F*)
14444 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14445 lt_prog_compiler_pic_F77='-KPIC'
14446 lt_prog_compiler_static_F77='-Bstatic'
14447 lt_prog_compiler_wl_F77=''
14449 esac
14451 esac
14454 osf3* | osf4* | osf5*)
14455 lt_prog_compiler_wl_F77='-Wl,'
14456 # All OSF/1 code is PIC.
14457 lt_prog_compiler_static_F77='-non_shared'
14460 rdos*)
14461 lt_prog_compiler_static_F77='-non_shared'
14464 solaris*)
14465 lt_prog_compiler_pic_F77='-KPIC'
14466 lt_prog_compiler_static_F77='-Bstatic'
14467 case $cc_basename in
14468 f77* | f90* | f95*)
14469 lt_prog_compiler_wl_F77='-Qoption ld ';;
14471 lt_prog_compiler_wl_F77='-Wl,';;
14472 esac
14475 sunos4*)
14476 lt_prog_compiler_wl_F77='-Qoption ld '
14477 lt_prog_compiler_pic_F77='-PIC'
14478 lt_prog_compiler_static_F77='-Bstatic'
14481 sysv4 | sysv4.2uw2* | sysv4.3*)
14482 lt_prog_compiler_wl_F77='-Wl,'
14483 lt_prog_compiler_pic_F77='-KPIC'
14484 lt_prog_compiler_static_F77='-Bstatic'
14487 sysv4*MP*)
14488 if test -d /usr/nec ;then
14489 lt_prog_compiler_pic_F77='-Kconform_pic'
14490 lt_prog_compiler_static_F77='-Bstatic'
14494 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14495 lt_prog_compiler_wl_F77='-Wl,'
14496 lt_prog_compiler_pic_F77='-KPIC'
14497 lt_prog_compiler_static_F77='-Bstatic'
14500 unicos*)
14501 lt_prog_compiler_wl_F77='-Wl,'
14502 lt_prog_compiler_can_build_shared_F77=no
14505 uts4*)
14506 lt_prog_compiler_pic_F77='-pic'
14507 lt_prog_compiler_static_F77='-Bstatic'
14511 lt_prog_compiler_can_build_shared_F77=no
14513 esac
14516 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14517 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14520 # Check to make sure the PIC flag actually works.
14522 if test -n "$lt_prog_compiler_pic_F77"; then
14524 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14525 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14526 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14527 $as_echo_n "(cached) " >&6
14528 else
14529 lt_prog_compiler_pic_works_F77=no
14530 ac_outfile=conftest.$ac_objext
14531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14532 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14533 # Insert the option either (1) after the last *FLAGS variable, or
14534 # (2) before a word containing "conftest.", or (3) at the end.
14535 # Note that $ac_compile itself does not contain backslashes and begins
14536 # with a dollar sign (not a hyphen), so the echo should work correctly.
14537 # The option is referenced via a variable to avoid confusing sed.
14538 lt_compile=`echo "$ac_compile" | $SED \
14539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14541 -e 's:$: $lt_compiler_flag:'`
14542 (eval echo "\"\$as_me:14542: $lt_compile\"" >&5)
14543 (eval "$lt_compile" 2>conftest.err)
14544 ac_status=$?
14545 cat conftest.err >&5
14546 echo "$as_me:14546: \$? = $ac_status" >&5
14547 if (exit $ac_status) && test -s "$ac_outfile"; then
14548 # The compiler can only warn and ignore the option if not recognized
14549 # So say no if there are warnings other than the usual output.
14550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14553 lt_prog_compiler_pic_works_F77=yes
14556 $rm conftest*
14559 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14560 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14562 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14563 case $lt_prog_compiler_pic_F77 in
14564 "" | " "*) ;;
14565 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14566 esac
14567 else
14568 lt_prog_compiler_pic_F77=
14569 lt_prog_compiler_can_build_shared_F77=no
14573 case $host_os in
14574 # For platforms which do not support PIC, -DPIC is meaningless:
14575 *djgpp*)
14576 lt_prog_compiler_pic_F77=
14579 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14581 esac
14584 # Check to make sure the static flag actually works.
14586 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14587 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14588 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14589 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14590 $as_echo_n "(cached) " >&6
14591 else
14592 lt_prog_compiler_static_works_F77=no
14593 save_LDFLAGS="$LDFLAGS"
14594 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14595 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14597 # The linker can only warn and ignore the option if not recognized
14598 # So say no if there are warnings
14599 if test -s conftest.err; then
14600 # Append any errors to the config.log.
14601 cat conftest.err 1>&5
14602 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14604 if diff conftest.exp conftest.er2 >/dev/null; then
14605 lt_prog_compiler_static_works_F77=yes
14607 else
14608 lt_prog_compiler_static_works_F77=yes
14611 $rm conftest*
14612 LDFLAGS="$save_LDFLAGS"
14615 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14616 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14618 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14620 else
14621 lt_prog_compiler_static_F77=
14625 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14627 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14628 $as_echo_n "(cached) " >&6
14629 else
14630 lt_cv_prog_compiler_c_o_F77=no
14631 $rm -r conftest 2>/dev/null
14632 mkdir conftest
14633 cd conftest
14634 mkdir out
14635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14637 lt_compiler_flag="-o out/conftest2.$ac_objext"
14638 # Insert the option either (1) after the last *FLAGS variable, or
14639 # (2) before a word containing "conftest.", or (3) at the end.
14640 # Note that $ac_compile itself does not contain backslashes and begins
14641 # with a dollar sign (not a hyphen), so the echo should work correctly.
14642 lt_compile=`echo "$ac_compile" | $SED \
14643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14645 -e 's:$: $lt_compiler_flag:'`
14646 (eval echo "\"\$as_me:14646: $lt_compile\"" >&5)
14647 (eval "$lt_compile" 2>out/conftest.err)
14648 ac_status=$?
14649 cat out/conftest.err >&5
14650 echo "$as_me:14650: \$? = $ac_status" >&5
14651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14652 then
14653 # The compiler can only warn and ignore the option if not recognized
14654 # So say no if there are warnings
14655 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14658 lt_cv_prog_compiler_c_o_F77=yes
14661 chmod u+w . 2>&5
14662 $rm conftest*
14663 # SGI C++ compiler will create directory out/ii_files/ for
14664 # template instantiation
14665 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14666 $rm out/* && rmdir out
14667 cd ..
14668 rmdir conftest
14669 $rm conftest*
14672 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14673 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14676 hard_links="nottested"
14677 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14678 # do not overwrite the value of need_locks provided by the user
14679 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14680 $as_echo_n "checking if we can lock with hard links... " >&6; }
14681 hard_links=yes
14682 $rm conftest*
14683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14684 touch conftest.a
14685 ln conftest.a conftest.b 2>&5 || hard_links=no
14686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14687 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14688 $as_echo "$hard_links" >&6; }
14689 if test "$hard_links" = no; then
14690 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14691 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14692 need_locks=warn
14694 else
14695 need_locks=no
14698 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14699 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14701 runpath_var=
14702 allow_undefined_flag_F77=
14703 enable_shared_with_static_runtimes_F77=no
14704 archive_cmds_F77=
14705 archive_expsym_cmds_F77=
14706 old_archive_From_new_cmds_F77=
14707 old_archive_from_expsyms_cmds_F77=
14708 export_dynamic_flag_spec_F77=
14709 whole_archive_flag_spec_F77=
14710 thread_safe_flag_spec_F77=
14711 hardcode_libdir_flag_spec_F77=
14712 hardcode_libdir_flag_spec_ld_F77=
14713 hardcode_libdir_separator_F77=
14714 hardcode_direct_F77=no
14715 hardcode_minus_L_F77=no
14716 hardcode_shlibpath_var_F77=unsupported
14717 link_all_deplibs_F77=unknown
14718 hardcode_automatic_F77=no
14719 module_cmds_F77=
14720 module_expsym_cmds_F77=
14721 always_export_symbols_F77=no
14722 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14723 # include_expsyms should be a list of space-separated symbols to be *always*
14724 # included in the symbol list
14725 include_expsyms_F77=
14726 # exclude_expsyms can be an extended regexp of symbols to exclude
14727 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14729 # as well as any symbol that contains `d'.
14730 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14732 # platforms (ab)use it in PIC code, but their linkers get confused if
14733 # the symbol is explicitly referenced. Since portable code cannot
14734 # rely on this symbol name, it's probably fine to never include it in
14735 # preloaded symbol tables.
14736 extract_expsyms_cmds=
14737 # Just being paranoid about ensuring that cc_basename is set.
14738 for cc_temp in $compiler""; do
14739 case $cc_temp in
14740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14742 \-*) ;;
14743 *) break;;
14744 esac
14745 done
14746 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14748 case $host_os in
14749 cygwin* | mingw* | pw32*)
14750 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14751 # When not using gcc, we currently assume that we are using
14752 # Microsoft Visual C++.
14753 if test "$GCC" != yes; then
14754 with_gnu_ld=no
14757 interix*)
14758 # we just hope/assume this is gcc and not c89 (= MSVC++)
14759 with_gnu_ld=yes
14761 openbsd*)
14762 with_gnu_ld=no
14764 esac
14766 ld_shlibs_F77=yes
14767 if test "$with_gnu_ld" = yes; then
14768 # If archive_cmds runs LD, not CC, wlarc should be empty
14769 wlarc='${wl}'
14771 # Set some defaults for GNU ld with shared library support. These
14772 # are reset later if shared libraries are not supported. Putting them
14773 # here allows them to be overridden if necessary.
14774 runpath_var=LD_RUN_PATH
14775 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14776 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14777 # ancient GNU ld didn't support --whole-archive et. al.
14778 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14779 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14780 else
14781 whole_archive_flag_spec_F77=
14783 supports_anon_versioning=no
14784 case `$LD -v 2>/dev/null` in
14785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14788 *\ 2.11.*) ;; # other 2.11 versions
14789 *) supports_anon_versioning=yes ;;
14790 esac
14792 # See if GNU ld supports shared libraries.
14793 case $host_os in
14794 aix3* | aix4* | aix5*)
14795 # On AIX/PPC, the GNU linker is very broken
14796 if test "$host_cpu" != ia64; then
14797 ld_shlibs_F77=no
14798 cat <<EOF 1>&2
14800 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14801 *** to be unable to reliably create shared libraries on AIX.
14802 *** Therefore, libtool is disabling shared libraries support. If you
14803 *** really care for shared libraries, you may want to modify your PATH
14804 *** so that a non-GNU linker is found, and then restart.
14810 amigaos*)
14811 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)'
14812 hardcode_libdir_flag_spec_F77='-L$libdir'
14813 hardcode_minus_L_F77=yes
14815 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14816 # that the semantics of dynamic libraries on AmigaOS, at least up
14817 # to version 4, is to share data among multiple programs linked
14818 # with the same dynamic library. Since this doesn't match the
14819 # behavior of shared libraries on other platforms, we can't use
14820 # them.
14821 ld_shlibs_F77=no
14824 beos*)
14825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14826 allow_undefined_flag_F77=unsupported
14827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14828 # support --undefined. This deserves some investigation. FIXME
14829 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14830 else
14831 ld_shlibs_F77=no
14835 cygwin* | mingw* | pw32*)
14836 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14837 # as there is no search path for DLLs.
14838 hardcode_libdir_flag_spec_F77='-L$libdir'
14839 allow_undefined_flag_F77=unsupported
14840 always_export_symbols_F77=no
14841 enable_shared_with_static_runtimes_F77=yes
14842 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14844 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14845 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14846 # If the export-symbols file already is a .def file (1st line
14847 # is EXPORTS), use it as is; otherwise, prepend...
14848 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14849 cp $export_symbols $output_objdir/$soname.def;
14850 else
14851 echo EXPORTS > $output_objdir/$soname.def;
14852 cat $export_symbols >> $output_objdir/$soname.def;
14854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14855 else
14856 ld_shlibs_F77=no
14860 interix[3-9]*)
14861 hardcode_direct_F77=no
14862 hardcode_shlibpath_var_F77=no
14863 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14864 export_dynamic_flag_spec_F77='${wl}-E'
14865 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14866 # Instead, shared libraries are loaded at an image base (0x10000000 by
14867 # default) and relocated if they conflict, which is a slow very memory
14868 # consuming and fragmenting process. To avoid this, we pick a random,
14869 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14870 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14871 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'
14872 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'
14875 gnu* | linux* | k*bsd*-gnu)
14876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14877 tmp_addflag=
14878 case $cc_basename,$host_cpu in
14879 pgcc*) # Portland Group C compiler
14880 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'
14881 tmp_addflag=' $pic_flag'
14883 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14884 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'
14885 tmp_addflag=' $pic_flag -Mnomain' ;;
14886 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14887 tmp_addflag=' -i_dynamic' ;;
14888 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14889 tmp_addflag=' -i_dynamic -nofor_main' ;;
14890 ifc* | ifort*) # Intel Fortran compiler
14891 tmp_addflag=' -nofor_main' ;;
14892 esac
14893 case `$CC -V 2>&1 | sed 5q` in
14894 *Sun\ C*) # Sun C 5.9
14895 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'
14896 tmp_sharedflag='-G' ;;
14897 *Sun\ F*) # Sun Fortran 8.3
14898 tmp_sharedflag='-G' ;;
14900 tmp_sharedflag='-shared' ;;
14901 esac
14902 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14904 if test $supports_anon_versioning = yes; then
14905 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14907 $echo "local: *; };" >> $output_objdir/$libname.ver~
14908 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14910 else
14911 ld_shlibs_F77=no
14915 netbsd*)
14916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14917 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14918 wlarc=
14919 else
14920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14925 solaris*)
14926 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14927 ld_shlibs_F77=no
14928 cat <<EOF 1>&2
14930 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14931 *** create shared libraries on Solaris systems. Therefore, libtool
14932 *** is disabling shared libraries support. We urge you to upgrade GNU
14933 *** binutils to release 2.9.1 or newer. Another option is to modify
14934 *** your PATH or compiler configuration so that the native linker is
14935 *** used, and then restart.
14938 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14939 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14940 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14941 else
14942 ld_shlibs_F77=no
14946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14947 case `$LD -v 2>&1` in
14948 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14949 ld_shlibs_F77=no
14950 cat <<_LT_EOF 1>&2
14952 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14953 *** reliably create shared libraries on SCO systems. Therefore, libtool
14954 *** is disabling shared libraries support. We urge you to upgrade GNU
14955 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14956 *** your PATH or compiler configuration so that the native linker is
14957 *** used, and then restart.
14959 _LT_EOF
14962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14963 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14964 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14965 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14966 else
14967 ld_shlibs_F77=no
14970 esac
14973 sunos4*)
14974 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14975 wlarc=
14976 hardcode_direct_F77=yes
14977 hardcode_shlibpath_var_F77=no
14981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14982 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14984 else
14985 ld_shlibs_F77=no
14988 esac
14990 if test "$ld_shlibs_F77" = no; then
14991 runpath_var=
14992 hardcode_libdir_flag_spec_F77=
14993 export_dynamic_flag_spec_F77=
14994 whole_archive_flag_spec_F77=
14996 else
14997 # PORTME fill in a description of your system's linker (not GNU ld)
14998 case $host_os in
14999 aix3*)
15000 allow_undefined_flag_F77=unsupported
15001 always_export_symbols_F77=yes
15002 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'
15003 # Note: this linker hardcodes the directories in LIBPATH if there
15004 # are no directories specified by -L.
15005 hardcode_minus_L_F77=yes
15006 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15007 # Neither direct hardcoding nor static linking is supported with a
15008 # broken collect2.
15009 hardcode_direct_F77=unsupported
15013 aix4* | aix5*)
15014 if test "$host_cpu" = ia64; then
15015 # On IA64, the linker does run time linking by default, so we don't
15016 # have to do anything special.
15017 aix_use_runtimelinking=no
15018 exp_sym_flag='-Bexport'
15019 no_entry_flag=""
15020 else
15021 # If we're using GNU nm, then we don't want the "-C" option.
15022 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15023 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15024 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'
15025 else
15026 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'
15028 aix_use_runtimelinking=no
15030 # Test if we are trying to use run time linking or normal
15031 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15032 # need to do runtime linking.
15033 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15034 for ld_flag in $LDFLAGS; do
15035 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15036 aix_use_runtimelinking=yes
15037 break
15039 done
15041 esac
15043 exp_sym_flag='-bexport'
15044 no_entry_flag='-bnoentry'
15047 # When large executables or shared objects are built, AIX ld can
15048 # have problems creating the table of contents. If linking a library
15049 # or program results in "error TOC overflow" add -mminimal-toc to
15050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15053 archive_cmds_F77=''
15054 hardcode_direct_F77=yes
15055 hardcode_libdir_separator_F77=':'
15056 link_all_deplibs_F77=yes
15058 if test "$GCC" = yes; then
15059 case $host_os in aix4.[012]|aix4.[012].*)
15060 # We only want to do this on AIX 4.2 and lower, the check
15061 # below for broken collect2 doesn't work under 4.3+
15062 collect2name=`${CC} -print-prog-name=collect2`
15063 if test -f "$collect2name" && \
15064 strings "$collect2name" | grep resolve_lib_name >/dev/null
15065 then
15066 # We have reworked collect2
15068 else
15069 # We have old collect2
15070 hardcode_direct_F77=unsupported
15071 # It fails to find uninstalled libraries when the uninstalled
15072 # path is not listed in the libpath. Setting hardcode_minus_L
15073 # to unsupported forces relinking
15074 hardcode_minus_L_F77=yes
15075 hardcode_libdir_flag_spec_F77='-L$libdir'
15076 hardcode_libdir_separator_F77=
15079 esac
15080 shared_flag='-shared'
15081 if test "$aix_use_runtimelinking" = yes; then
15082 shared_flag="$shared_flag "'${wl}-G'
15084 else
15085 # not using gcc
15086 if test "$host_cpu" = ia64; then
15087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15088 # chokes on -Wl,-G. The following line is correct:
15089 shared_flag='-G'
15090 else
15091 if test "$aix_use_runtimelinking" = yes; then
15092 shared_flag='${wl}-G'
15093 else
15094 shared_flag='${wl}-bM:SRE'
15099 # It seems that -bexpall does not export symbols beginning with
15100 # underscore (_), so it is better to generate a list of symbols to export.
15101 always_export_symbols_F77=yes
15102 if test "$aix_use_runtimelinking" = yes; then
15103 # Warning - without using the other runtime loading flags (-brtl),
15104 # -berok will link without error, but may produce a broken library.
15105 allow_undefined_flag_F77='-berok'
15106 # Determine the default libpath from the value encoded in an empty executable.
15107 cat >conftest.$ac_ext <<_ACEOF
15108 program main
15111 _ACEOF
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (ac_try="$ac_link"
15114 case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117 esac
15118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15119 $as_echo "$ac_try_echo") >&5
15120 (eval "$ac_link") 2>conftest.er1
15121 ac_status=$?
15122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
15125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } && {
15127 test -z "$ac_f77_werror_flag" ||
15128 test ! -s conftest.err
15129 } && test -s conftest$ac_exeext && {
15130 test "$cross_compiling" = yes ||
15131 $as_test_x conftest$ac_exeext
15132 }; then
15134 lt_aix_libpath_sed='
15135 /Import File Strings/,/^$/ {
15136 /^0/ {
15137 s/^0 *\(.*\)$/\1/
15141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15142 # Check for a 64-bit object if we didn't find anything.
15143 if test -z "$aix_libpath"; then
15144 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15146 else
15147 $as_echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15153 rm -rf conftest.dSYM
15154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15155 conftest$ac_exeext conftest.$ac_ext
15156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15158 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15159 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"
15160 else
15161 if test "$host_cpu" = ia64; then
15162 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15163 allow_undefined_flag_F77="-z nodefs"
15164 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"
15165 else
15166 # Determine the default libpath from the value encoded in an empty executable.
15167 cat >conftest.$ac_ext <<_ACEOF
15168 program main
15171 _ACEOF
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (ac_try="$ac_link"
15174 case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15177 esac
15178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15179 $as_echo "$ac_try_echo") >&5
15180 (eval "$ac_link") 2>conftest.er1
15181 ac_status=$?
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
15185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } && {
15187 test -z "$ac_f77_werror_flag" ||
15188 test ! -s conftest.err
15189 } && test -s conftest$ac_exeext && {
15190 test "$cross_compiling" = yes ||
15191 $as_test_x conftest$ac_exeext
15192 }; then
15194 lt_aix_libpath_sed='
15195 /Import File Strings/,/^$/ {
15196 /^0/ {
15197 s/^0 *\(.*\)$/\1/
15201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15202 # Check for a 64-bit object if we didn't find anything.
15203 if test -z "$aix_libpath"; then
15204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15206 else
15207 $as_echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15213 rm -rf conftest.dSYM
15214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15215 conftest$ac_exeext conftest.$ac_ext
15216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15218 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15219 # Warning - without using the other run time loading flags,
15220 # -berok will link without error, but may produce a broken library.
15221 no_undefined_flag_F77=' ${wl}-bernotok'
15222 allow_undefined_flag_F77=' ${wl}-berok'
15223 # Exported symbols can be pulled into shared objects from archives
15224 whole_archive_flag_spec_F77='$convenience'
15225 archive_cmds_need_lc_F77=yes
15226 # This is similar to how AIX traditionally builds its shared libraries.
15227 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'
15232 amigaos*)
15233 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)'
15234 hardcode_libdir_flag_spec_F77='-L$libdir'
15235 hardcode_minus_L_F77=yes
15236 # see comment about different semantics on the GNU ld section
15237 ld_shlibs_F77=no
15240 bsdi[45]*)
15241 export_dynamic_flag_spec_F77=-rdynamic
15244 cygwin* | mingw* | pw32*)
15245 # When not using gcc, we currently assume that we are using
15246 # Microsoft Visual C++.
15247 # hardcode_libdir_flag_spec is actually meaningless, as there is
15248 # no search path for DLLs.
15249 hardcode_libdir_flag_spec_F77=' '
15250 allow_undefined_flag_F77=unsupported
15251 # Tell ltmain to make .lib files, not .a files.
15252 libext=lib
15253 # Tell ltmain to make .dll files, not .so files.
15254 shrext_cmds=".dll"
15255 # FIXME: Setting linknames here is a bad hack.
15256 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15257 # The linker will automatically build a .lib file if we build a DLL.
15258 old_archive_From_new_cmds_F77='true'
15259 # FIXME: Should let the user specify the lib program.
15260 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15261 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15262 enable_shared_with_static_runtimes_F77=yes
15265 darwin* | rhapsody*)
15266 case $host_os in
15267 rhapsody* | darwin1.[012])
15268 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15270 *) # Darwin 1.3 on
15271 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15272 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15273 else
15274 case ${MACOSX_DEPLOYMENT_TARGET} in
15275 10.[012])
15276 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15278 10.*)
15279 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15281 esac
15284 esac
15285 archive_cmds_need_lc_F77=no
15286 hardcode_direct_F77=no
15287 hardcode_automatic_F77=yes
15288 hardcode_shlibpath_var_F77=unsupported
15289 whole_archive_flag_spec_F77=''
15290 link_all_deplibs_F77=yes
15291 if test "$GCC" = yes ; then
15292 output_verbose_link_cmd='echo'
15293 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15294 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15295 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15296 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15297 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}'
15298 else
15299 case $cc_basename in
15300 xlc*)
15301 output_verbose_link_cmd='echo'
15302 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15303 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15304 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15305 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}'
15306 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}'
15309 ld_shlibs_F77=no
15311 esac
15315 dgux*)
15316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15317 hardcode_libdir_flag_spec_F77='-L$libdir'
15318 hardcode_shlibpath_var_F77=no
15321 freebsd1*)
15322 ld_shlibs_F77=no
15325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15326 # support. Future versions do this automatically, but an explicit c++rt0.o
15327 # does not break anything, and helps significantly (at the cost of a little
15328 # extra space).
15329 freebsd2.2*)
15330 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15331 hardcode_libdir_flag_spec_F77='-R$libdir'
15332 hardcode_direct_F77=yes
15333 hardcode_shlibpath_var_F77=no
15336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15337 freebsd2*)
15338 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15339 hardcode_direct_F77=yes
15340 hardcode_minus_L_F77=yes
15341 hardcode_shlibpath_var_F77=no
15344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15345 freebsd* | dragonfly*)
15346 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15347 hardcode_libdir_flag_spec_F77='-R$libdir'
15348 hardcode_direct_F77=yes
15349 hardcode_shlibpath_var_F77=no
15352 hpux9*)
15353 if test "$GCC" = yes; then
15354 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'
15355 else
15356 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'
15358 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15359 hardcode_libdir_separator_F77=:
15360 hardcode_direct_F77=yes
15362 # hardcode_minus_L: Not really in the search PATH,
15363 # but as the default location of the library.
15364 hardcode_minus_L_F77=yes
15365 export_dynamic_flag_spec_F77='${wl}-E'
15368 hpux10*)
15369 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15370 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15371 else
15372 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15374 if test "$with_gnu_ld" = no; then
15375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15376 hardcode_libdir_separator_F77=:
15378 hardcode_direct_F77=yes
15379 export_dynamic_flag_spec_F77='${wl}-E'
15381 # hardcode_minus_L: Not really in the search PATH,
15382 # but as the default location of the library.
15383 hardcode_minus_L_F77=yes
15387 hpux11*)
15388 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15389 case $host_cpu in
15390 hppa*64*)
15391 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15393 ia64*)
15394 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15397 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15399 esac
15400 else
15401 case $host_cpu in
15402 hppa*64*)
15403 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15405 ia64*)
15406 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15409 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15411 esac
15413 if test "$with_gnu_ld" = no; then
15414 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15415 hardcode_libdir_separator_F77=:
15417 case $host_cpu in
15418 hppa*64*|ia64*)
15419 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15420 hardcode_direct_F77=no
15421 hardcode_shlibpath_var_F77=no
15424 hardcode_direct_F77=yes
15425 export_dynamic_flag_spec_F77='${wl}-E'
15427 # hardcode_minus_L: Not really in the search PATH,
15428 # but as the default location of the library.
15429 hardcode_minus_L_F77=yes
15431 esac
15435 irix5* | irix6* | nonstopux*)
15436 if test "$GCC" = yes; then
15437 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'
15438 else
15439 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'
15440 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15442 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15443 hardcode_libdir_separator_F77=:
15444 link_all_deplibs_F77=yes
15447 netbsd*)
15448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15449 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15450 else
15451 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15453 hardcode_libdir_flag_spec_F77='-R$libdir'
15454 hardcode_direct_F77=yes
15455 hardcode_shlibpath_var_F77=no
15458 newsos6)
15459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_direct_F77=yes
15461 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15462 hardcode_libdir_separator_F77=:
15463 hardcode_shlibpath_var_F77=no
15466 openbsd*)
15467 if test -f /usr/libexec/ld.so; then
15468 hardcode_direct_F77=yes
15469 hardcode_shlibpath_var_F77=no
15470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15471 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15472 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15473 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15474 export_dynamic_flag_spec_F77='${wl}-E'
15475 else
15476 case $host_os in
15477 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15478 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15479 hardcode_libdir_flag_spec_F77='-R$libdir'
15482 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15483 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15485 esac
15487 else
15488 ld_shlibs_F77=no
15492 os2*)
15493 hardcode_libdir_flag_spec_F77='-L$libdir'
15494 hardcode_minus_L_F77=yes
15495 allow_undefined_flag_F77=unsupported
15496 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'
15497 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15500 osf3*)
15501 if test "$GCC" = yes; then
15502 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15503 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'
15504 else
15505 allow_undefined_flag_F77=' -expect_unresolved \*'
15506 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'
15508 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15509 hardcode_libdir_separator_F77=:
15512 osf4* | osf5*) # as osf3* with the addition of -msym flag
15513 if test "$GCC" = yes; then
15514 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15515 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'
15516 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15517 else
15518 allow_undefined_flag_F77=' -expect_unresolved \*'
15519 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'
15520 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~
15521 $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'
15523 # Both c and cxx compiler support -rpath directly
15524 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15526 hardcode_libdir_separator_F77=:
15529 solaris*)
15530 no_undefined_flag_F77=' -z text'
15531 if test "$GCC" = yes; then
15532 wlarc='${wl}'
15533 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15534 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15535 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15536 else
15537 wlarc=''
15538 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15542 hardcode_libdir_flag_spec_F77='-R$libdir'
15543 hardcode_shlibpath_var_F77=no
15544 case $host_os in
15545 solaris2.[0-5] | solaris2.[0-5].*) ;;
15547 # The compiler driver will combine and reorder linker options,
15548 # but understands `-z linker_flag'. GCC discards it without `$wl',
15549 # but is careful enough not to reorder.
15550 # Supported since Solaris 2.6 (maybe 2.5.1?)
15551 if test "$GCC" = yes; then
15552 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15553 else
15554 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15557 esac
15558 link_all_deplibs_F77=yes
15561 sunos4*)
15562 if test "x$host_vendor" = xsequent; then
15563 # Use $CC to link under sequent, because it throws in some extra .o
15564 # files that make .init and .fini sections work.
15565 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15566 else
15567 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15569 hardcode_libdir_flag_spec_F77='-L$libdir'
15570 hardcode_direct_F77=yes
15571 hardcode_minus_L_F77=yes
15572 hardcode_shlibpath_var_F77=no
15575 sysv4)
15576 case $host_vendor in
15577 sni)
15578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_direct_F77=yes # is this really true???
15581 siemens)
15582 ## LD is ld it makes a PLAMLIB
15583 ## CC just makes a GrossModule.
15584 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15585 reload_cmds_F77='$CC -r -o $output$reload_objs'
15586 hardcode_direct_F77=no
15588 motorola)
15589 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15590 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15592 esac
15593 runpath_var='LD_RUN_PATH'
15594 hardcode_shlibpath_var_F77=no
15597 sysv4.3*)
15598 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_shlibpath_var_F77=no
15600 export_dynamic_flag_spec_F77='-Bexport'
15603 sysv4*MP*)
15604 if test -d /usr/nec; then
15605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606 hardcode_shlibpath_var_F77=no
15607 runpath_var=LD_RUN_PATH
15608 hardcode_runpath_var=yes
15609 ld_shlibs_F77=yes
15613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15614 no_undefined_flag_F77='${wl}-z,text'
15615 archive_cmds_need_lc_F77=no
15616 hardcode_shlibpath_var_F77=no
15617 runpath_var='LD_RUN_PATH'
15619 if test "$GCC" = yes; then
15620 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 else
15623 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15624 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 sysv5* | sco3.2v5* | sco5v6*)
15629 # Note: We can NOT use -z defs as we might desire, because we do not
15630 # link with -lc, and that would cause any symbols used from libc to
15631 # always be unresolved, which means just about no library would
15632 # ever link correctly. If we're not using GNU ld we use -z text
15633 # though, which does catch some bad symbols but isn't as heavy-handed
15634 # as -z defs.
15635 no_undefined_flag_F77='${wl}-z,text'
15636 allow_undefined_flag_F77='${wl}-z,nodefs'
15637 archive_cmds_need_lc_F77=no
15638 hardcode_shlibpath_var_F77=no
15639 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15640 hardcode_libdir_separator_F77=':'
15641 link_all_deplibs_F77=yes
15642 export_dynamic_flag_spec_F77='${wl}-Bexport'
15643 runpath_var='LD_RUN_PATH'
15645 if test "$GCC" = yes; then
15646 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15647 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15648 else
15649 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15650 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15654 uts4*)
15655 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656 hardcode_libdir_flag_spec_F77='-L$libdir'
15657 hardcode_shlibpath_var_F77=no
15661 ld_shlibs_F77=no
15663 esac
15666 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15667 $as_echo "$ld_shlibs_F77" >&6; }
15668 test "$ld_shlibs_F77" = no && can_build_shared=no
15671 # Do we need to explicitly link libc?
15673 case "x$archive_cmds_need_lc_F77" in
15674 x|xyes)
15675 # Assume -lc should be added
15676 archive_cmds_need_lc_F77=yes
15678 if test "$enable_shared" = yes && test "$GCC" = yes; then
15679 case $archive_cmds_F77 in
15680 *'~'*)
15681 # FIXME: we may have to deal with multi-command sequences.
15683 '$CC '*)
15684 # Test whether the compiler implicitly links with -lc since on some
15685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15686 # to ld, don't add -lc before -lgcc.
15687 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15688 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15689 $rm conftest*
15690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15693 (eval $ac_compile) 2>&5
15694 ac_status=$?
15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } 2>conftest.err; then
15697 soname=conftest
15698 lib=conftest
15699 libobjs=conftest.$ac_objext
15700 deplibs=
15701 wl=$lt_prog_compiler_wl_F77
15702 pic_flag=$lt_prog_compiler_pic_F77
15703 compiler_flags=-v
15704 linker_flags=-v
15705 verstring=
15706 output_objdir=.
15707 libname=conftest
15708 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15709 allow_undefined_flag_F77=
15710 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15711 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15712 ac_status=$?
15713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }
15715 then
15716 archive_cmds_need_lc_F77=no
15717 else
15718 archive_cmds_need_lc_F77=yes
15720 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15721 else
15722 cat conftest.err 1>&5
15724 $rm conftest*
15725 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15726 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15728 esac
15731 esac
15733 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15734 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15735 library_names_spec=
15736 libname_spec='lib$name'
15737 soname_spec=
15738 shrext_cmds=".so"
15739 postinstall_cmds=
15740 postuninstall_cmds=
15741 finish_cmds=
15742 finish_eval=
15743 shlibpath_var=
15744 shlibpath_overrides_runpath=unknown
15745 version_type=none
15746 dynamic_linker="$host_os ld.so"
15747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15749 need_lib_prefix=unknown
15750 hardcode_into_libs=no
15752 # when you set need_version to no, make sure it does not cause -set_version
15753 # flags to be left without arguments
15754 need_version=unknown
15756 case $host_os in
15757 aix3*)
15758 version_type=linux
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15760 shlibpath_var=LIBPATH
15762 # AIX 3 has no versioning support, so we append a major version to the name.
15763 soname_spec='${libname}${release}${shared_ext}$major'
15766 aix4* | aix5*)
15767 version_type=linux
15768 need_lib_prefix=no
15769 need_version=no
15770 hardcode_into_libs=yes
15771 if test "$host_cpu" = ia64; then
15772 # AIX 5 supports IA64
15773 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15774 shlibpath_var=LD_LIBRARY_PATH
15775 else
15776 # With GCC up to 2.95.x, collect2 would create an import file
15777 # for dependence libraries. The import file would start with
15778 # the line `#! .'. This would cause the generated library to
15779 # depend on `.', always an invalid library. This was fixed in
15780 # development snapshots of GCC prior to 3.0.
15781 case $host_os in
15782 aix4 | aix4.[01] | aix4.[01].*)
15783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15784 echo ' yes '
15785 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15787 else
15788 can_build_shared=no
15791 esac
15792 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15793 # soname into executable. Probably we can add versioning support to
15794 # collect2, so additional links can be useful in future.
15795 if test "$aix_use_runtimelinking" = yes; then
15796 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15797 # instead of lib<name>.a to let people know that these are not
15798 # typical AIX shared libraries.
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800 else
15801 # We preserve .a as extension for shared libraries through AIX4.2
15802 # and later when we are not doing run time linking.
15803 library_names_spec='${libname}${release}.a $libname.a'
15804 soname_spec='${libname}${release}${shared_ext}$major'
15806 shlibpath_var=LIBPATH
15810 amigaos*)
15811 library_names_spec='$libname.ixlibrary $libname.a'
15812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15813 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'
15816 beos*)
15817 library_names_spec='${libname}${shared_ext}'
15818 dynamic_linker="$host_os ld.so"
15819 shlibpath_var=LIBRARY_PATH
15822 bsdi[45]*)
15823 version_type=linux
15824 need_version=no
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15830 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15831 # the default ld.so.conf also contains /usr/contrib/lib and
15832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15833 # libtool to hard-code these into programs
15836 cygwin* | mingw* | pw32*)
15837 version_type=windows
15838 shrext_cmds=".dll"
15839 need_version=no
15840 need_lib_prefix=no
15842 case $GCC,$host_os in
15843 yes,cygwin* | yes,mingw* | yes,pw32*)
15844 library_names_spec='$libname.dll.a'
15845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15846 postinstall_cmds='base_file=`basename \${file}`~
15847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15848 dldir=$destdir/`dirname \$dlpath`~
15849 test -d \$dldir || mkdir -p \$dldir~
15850 $install_prog $dir/$dlname \$dldir/$dlname~
15851 chmod a+x \$dldir/$dlname'
15852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15853 dlpath=$dir/\$dldll~
15854 $rm \$dlpath'
15855 shlibpath_overrides_runpath=yes
15857 case $host_os in
15858 cygwin*)
15859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15861 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15863 mingw*)
15864 # MinGW DLLs use traditional 'lib' prefix
15865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15867 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15868 # It is most probably a Windows format PATH printed by
15869 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15870 # path with ; separators, and with drive letters. We can handle the
15871 # drive letters (cygwin fileutils understands them), so leave them,
15872 # especially as we might pass files found there to a mingw objdump,
15873 # which wouldn't understand a cygwinified path. Ahh.
15874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15875 else
15876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15879 pw32*)
15880 # pw32 DLLs use 'pw' prefix rather than 'lib'
15881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15883 esac
15887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15889 esac
15890 dynamic_linker='Win32 ld.exe'
15891 # FIXME: first we should search . and the directory the executable is in
15892 shlibpath_var=PATH
15895 darwin* | rhapsody*)
15896 dynamic_linker="$host_os dyld"
15897 version_type=darwin
15898 need_lib_prefix=no
15899 need_version=no
15900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15901 soname_spec='${libname}${release}${major}$shared_ext'
15902 shlibpath_overrides_runpath=yes
15903 shlibpath_var=DYLD_LIBRARY_PATH
15904 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15909 dgux*)
15910 version_type=linux
15911 need_lib_prefix=no
15912 need_version=no
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 shlibpath_var=LD_LIBRARY_PATH
15918 freebsd1*)
15919 dynamic_linker=no
15922 freebsd* | dragonfly*)
15923 # DragonFly does not have aout. When/if they implement a new
15924 # versioning mechanism, adjust this.
15925 if test -x /usr/bin/objformat; then
15926 objformat=`/usr/bin/objformat`
15927 else
15928 case $host_os in
15929 freebsd[123]*) objformat=aout ;;
15930 *) objformat=elf ;;
15931 esac
15933 version_type=freebsd-$objformat
15934 case $version_type in
15935 freebsd-elf*)
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15937 need_version=no
15938 need_lib_prefix=no
15940 freebsd-*)
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15942 need_version=yes
15944 esac
15945 shlibpath_var=LD_LIBRARY_PATH
15946 case $host_os in
15947 freebsd2*)
15948 shlibpath_overrides_runpath=yes
15950 freebsd3.[01]* | freebsdelf3.[01]*)
15951 shlibpath_overrides_runpath=yes
15952 hardcode_into_libs=yes
15954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15956 shlibpath_overrides_runpath=no
15957 hardcode_into_libs=yes
15959 *) # from 4.6 on, and DragonFly
15960 shlibpath_overrides_runpath=yes
15961 hardcode_into_libs=yes
15963 esac
15966 gnu*)
15967 version_type=linux
15968 need_lib_prefix=no
15969 need_version=no
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 hardcode_into_libs=yes
15976 hpux9* | hpux10* | hpux11*)
15977 # Give a soname corresponding to the major version so that dld.sl refuses to
15978 # link against other versions.
15979 version_type=sunos
15980 need_lib_prefix=no
15981 need_version=no
15982 case $host_cpu in
15983 ia64*)
15984 shrext_cmds='.so'
15985 hardcode_into_libs=yes
15986 dynamic_linker="$host_os dld.so"
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990 soname_spec='${libname}${release}${shared_ext}$major'
15991 if test "X$HPUX_IA64_MODE" = X32; then
15992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15993 else
15994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15998 hppa*64*)
15999 shrext_cmds='.sl'
16000 hardcode_into_libs=yes
16001 dynamic_linker="$host_os dld.sl"
16002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16010 shrext_cmds='.sl'
16011 dynamic_linker="$host_os dld.sl"
16012 shlibpath_var=SHLIB_PATH
16013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015 soname_spec='${libname}${release}${shared_ext}$major'
16017 esac
16018 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16019 postinstall_cmds='chmod 555 $lib'
16022 interix[3-9]*)
16023 version_type=linux
16024 need_lib_prefix=no
16025 need_version=no
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 shlibpath_overrides_runpath=no
16031 hardcode_into_libs=yes
16034 irix5* | irix6* | nonstopux*)
16035 case $host_os in
16036 nonstopux*) version_type=nonstopux ;;
16038 if test "$lt_cv_prog_gnu_ld" = yes; then
16039 version_type=linux
16040 else
16041 version_type=irix
16042 fi ;;
16043 esac
16044 need_lib_prefix=no
16045 need_version=no
16046 soname_spec='${libname}${release}${shared_ext}$major'
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16048 case $host_os in
16049 irix5* | nonstopux*)
16050 libsuff= shlibsuff=
16053 case $LD in # libtool.m4 will add one of these switches to LD
16054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16055 libsuff= shlibsuff= libmagic=32-bit;;
16056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16057 libsuff=32 shlibsuff=N32 libmagic=N32;;
16058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16060 *) libsuff= shlibsuff= libmagic=never-match;;
16061 esac
16063 esac
16064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16065 shlibpath_overrides_runpath=no
16066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16068 hardcode_into_libs=yes
16071 # No shared lib support for Linux oldld, aout, or coff.
16072 linux*oldld* | linux*aout* | linux*coff*)
16073 dynamic_linker=no
16076 # This must be Linux ELF.
16077 linux* | k*bsd*-gnu)
16078 version_type=linux
16079 need_lib_prefix=no
16080 need_version=no
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16082 soname_spec='${libname}${release}${shared_ext}$major'
16083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=no
16086 # This implies no fast_install, which is unacceptable.
16087 # Some rework will be needed to allow for fast_install
16088 # before this can be enabled.
16089 hardcode_into_libs=yes
16091 # Append ld.so.conf contents to the search path
16092 if test -f /etc/ld.so.conf; then
16093 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' ' '`
16094 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16097 # We used to test for /lib/ld.so.1 and disable shared libraries on
16098 # powerpc, because MkLinux only supported shared libraries with the
16099 # GNU dynamic linker. Since this was broken with cross compilers,
16100 # most powerpc-linux boxes support dynamic linking these days and
16101 # people can always --disable-shared, the test was removed, and we
16102 # assume the GNU/Linux dynamic linker is in use.
16103 dynamic_linker='GNU/Linux ld.so'
16106 netbsd*)
16107 version_type=sunos
16108 need_lib_prefix=no
16109 need_version=no
16110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16113 dynamic_linker='NetBSD (a.out) ld.so'
16114 else
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 dynamic_linker='NetBSD ld.elf_so'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=yes
16121 hardcode_into_libs=yes
16124 newsos6)
16125 version_type=linux
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 shlibpath_var=LD_LIBRARY_PATH
16128 shlibpath_overrides_runpath=yes
16131 nto-qnx*)
16132 version_type=linux
16133 need_lib_prefix=no
16134 need_version=no
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 shlibpath_overrides_runpath=yes
16141 openbsd*)
16142 version_type=sunos
16143 sys_lib_dlsearch_path_spec="/usr/lib"
16144 need_lib_prefix=no
16145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16146 case $host_os in
16147 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16148 *) need_version=no ;;
16149 esac
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16154 case $host_os in
16155 openbsd2.[89] | openbsd2.[89].*)
16156 shlibpath_overrides_runpath=no
16159 shlibpath_overrides_runpath=yes
16161 esac
16162 else
16163 shlibpath_overrides_runpath=yes
16167 os2*)
16168 libname_spec='$name'
16169 shrext_cmds=".dll"
16170 need_lib_prefix=no
16171 library_names_spec='$libname${shared_ext} $libname.a'
16172 dynamic_linker='OS/2 ld.exe'
16173 shlibpath_var=LIBPATH
16176 osf3* | osf4* | osf5*)
16177 version_type=osf
16178 need_lib_prefix=no
16179 need_version=no
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16187 rdos*)
16188 dynamic_linker=no
16191 solaris*)
16192 version_type=linux
16193 need_lib_prefix=no
16194 need_version=no
16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16196 soname_spec='${libname}${release}${shared_ext}$major'
16197 shlibpath_var=LD_LIBRARY_PATH
16198 shlibpath_overrides_runpath=yes
16199 hardcode_into_libs=yes
16200 # ldd complains unless libraries are executable
16201 postinstall_cmds='chmod +x $lib'
16204 sunos4*)
16205 version_type=sunos
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16208 shlibpath_var=LD_LIBRARY_PATH
16209 shlibpath_overrides_runpath=yes
16210 if test "$with_gnu_ld" = yes; then
16211 need_lib_prefix=no
16213 need_version=yes
16216 sysv4 | sysv4.3*)
16217 version_type=linux
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 case $host_vendor in
16222 sni)
16223 shlibpath_overrides_runpath=no
16224 need_lib_prefix=no
16225 export_dynamic_flag_spec='${wl}-Blargedynsym'
16226 runpath_var=LD_RUN_PATH
16228 siemens)
16229 need_lib_prefix=no
16231 motorola)
16232 need_lib_prefix=no
16233 need_version=no
16234 shlibpath_overrides_runpath=no
16235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16237 esac
16240 sysv4*MP*)
16241 if test -d /usr/nec ;then
16242 version_type=linux
16243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16244 soname_spec='$libname${shared_ext}.$major'
16245 shlibpath_var=LD_LIBRARY_PATH
16249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16250 version_type=freebsd-elf
16251 need_lib_prefix=no
16252 need_version=no
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16254 soname_spec='${libname}${release}${shared_ext}$major'
16255 shlibpath_var=LD_LIBRARY_PATH
16256 hardcode_into_libs=yes
16257 if test "$with_gnu_ld" = yes; then
16258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16259 shlibpath_overrides_runpath=no
16260 else
16261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16262 shlibpath_overrides_runpath=yes
16263 case $host_os in
16264 sco3.2v5*)
16265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16267 esac
16269 sys_lib_dlsearch_path_spec='/usr/lib'
16272 uts4*)
16273 version_type=linux
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 shlibpath_var=LD_LIBRARY_PATH
16280 dynamic_linker=no
16282 esac
16283 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16284 $as_echo "$dynamic_linker" >&6; }
16285 test "$dynamic_linker" = no && can_build_shared=no
16287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16288 if test "$GCC" = yes; then
16289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16292 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16294 hardcode_action_F77=
16295 if test -n "$hardcode_libdir_flag_spec_F77" || \
16296 test -n "$runpath_var_F77" || \
16297 test "X$hardcode_automatic_F77" = "Xyes" ; then
16299 # We can hardcode non-existant directories.
16300 if test "$hardcode_direct_F77" != no &&
16301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16302 # have to relink, otherwise we might link with an installed library
16303 # when we should be linking with a yet-to-be-installed one
16304 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16305 test "$hardcode_minus_L_F77" != no; then
16306 # Linking always hardcodes the temporary library directory.
16307 hardcode_action_F77=relink
16308 else
16309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16310 hardcode_action_F77=immediate
16312 else
16313 # We cannot hardcode anything, or else we can only hardcode existing
16314 # directories.
16315 hardcode_action_F77=unsupported
16317 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16318 $as_echo "$hardcode_action_F77" >&6; }
16320 if test "$hardcode_action_F77" = relink; then
16321 # Fast installation is not supported
16322 enable_fast_install=no
16323 elif test "$shlibpath_overrides_runpath" = yes ||
16324 test "$enable_shared" = no; then
16325 # Fast installation is not necessary
16326 enable_fast_install=needless
16330 # The else clause should only fire when bootstrapping the
16331 # libtool distribution, otherwise you forgot to ship ltmain.sh
16332 # with your package, and you will get complaints that there are
16333 # no rules to generate ltmain.sh.
16334 if test -f "$ltmain"; then
16335 # See if we are running on zsh, and set the options which allow our commands through
16336 # without removal of \ escapes.
16337 if test -n "${ZSH_VERSION+set}" ; then
16338 setopt NO_GLOB_SUBST
16340 # Now quote all the things that may contain metacharacters while being
16341 # careful not to overquote the AC_SUBSTed values. We take copies of the
16342 # variables and quote the copies for generation of the libtool script.
16343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16344 SED SHELL STRIP \
16345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16347 deplibs_check_method reload_flag reload_cmds need_locks \
16348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16349 lt_cv_sys_global_symbol_to_c_name_address \
16350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16351 old_postinstall_cmds old_postuninstall_cmds \
16352 compiler_F77 \
16353 CC_F77 \
16354 LD_F77 \
16355 lt_prog_compiler_wl_F77 \
16356 lt_prog_compiler_pic_F77 \
16357 lt_prog_compiler_static_F77 \
16358 lt_prog_compiler_no_builtin_flag_F77 \
16359 export_dynamic_flag_spec_F77 \
16360 thread_safe_flag_spec_F77 \
16361 whole_archive_flag_spec_F77 \
16362 enable_shared_with_static_runtimes_F77 \
16363 old_archive_cmds_F77 \
16364 old_archive_from_new_cmds_F77 \
16365 predep_objects_F77 \
16366 postdep_objects_F77 \
16367 predeps_F77 \
16368 postdeps_F77 \
16369 compiler_lib_search_path_F77 \
16370 archive_cmds_F77 \
16371 archive_expsym_cmds_F77 \
16372 postinstall_cmds_F77 \
16373 postuninstall_cmds_F77 \
16374 old_archive_from_expsyms_cmds_F77 \
16375 allow_undefined_flag_F77 \
16376 no_undefined_flag_F77 \
16377 export_symbols_cmds_F77 \
16378 hardcode_libdir_flag_spec_F77 \
16379 hardcode_libdir_flag_spec_ld_F77 \
16380 hardcode_libdir_separator_F77 \
16381 hardcode_automatic_F77 \
16382 module_cmds_F77 \
16383 module_expsym_cmds_F77 \
16384 lt_cv_prog_compiler_c_o_F77 \
16385 fix_srcfile_path_F77 \
16386 exclude_expsyms_F77 \
16387 include_expsyms_F77; do
16389 case $var in
16390 old_archive_cmds_F77 | \
16391 old_archive_from_new_cmds_F77 | \
16392 archive_cmds_F77 | \
16393 archive_expsym_cmds_F77 | \
16394 module_cmds_F77 | \
16395 module_expsym_cmds_F77 | \
16396 old_archive_from_expsyms_cmds_F77 | \
16397 export_symbols_cmds_F77 | \
16398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16399 postinstall_cmds | postuninstall_cmds | \
16400 old_postinstall_cmds | old_postuninstall_cmds | \
16401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16402 # Double-quote double-evaled strings.
16403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16408 esac
16409 done
16411 case $lt_echo in
16412 *'\$0 --fallback-echo"')
16413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16415 esac
16417 cfgfile="$ofile"
16419 cat <<__EOF__ >> "$cfgfile"
16420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16424 # Shell to use when invoking shell scripts.
16425 SHELL=$lt_SHELL
16427 # Whether or not to build shared libraries.
16428 build_libtool_libs=$enable_shared
16430 # Whether or not to build static libraries.
16431 build_old_libs=$enable_static
16433 # Whether or not to add -lc for building shared libraries.
16434 build_libtool_need_lc=$archive_cmds_need_lc_F77
16436 # Whether or not to disallow shared libs when runtime libs are static
16437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16439 # Whether or not to optimize for fast installation.
16440 fast_install=$enable_fast_install
16442 # The host system.
16443 host_alias=$host_alias
16444 host=$host
16445 host_os=$host_os
16447 # The build system.
16448 build_alias=$build_alias
16449 build=$build
16450 build_os=$build_os
16452 # An echo program that does not interpret backslashes.
16453 echo=$lt_echo
16455 # The archiver.
16456 AR=$lt_AR
16457 AR_FLAGS=$lt_AR_FLAGS
16459 # A C compiler.
16460 LTCC=$lt_LTCC
16462 # LTCC compiler flags.
16463 LTCFLAGS=$lt_LTCFLAGS
16465 # A language-specific compiler.
16466 CC=$lt_compiler_F77
16468 # Is the compiler the GNU C compiler?
16469 with_gcc=$GCC_F77
16471 # An ERE matcher.
16472 EGREP=$lt_EGREP
16474 # The linker used to build libraries.
16475 LD=$lt_LD_F77
16477 # Whether we need hard or soft links.
16478 LN_S=$lt_LN_S
16480 # A BSD-compatible nm program.
16481 NM=$lt_NM
16483 # A symbol stripping program
16484 STRIP=$lt_STRIP
16486 # Used to examine libraries when file_magic_cmd begins "file"
16487 MAGIC_CMD=$MAGIC_CMD
16489 # Used on cygwin: DLL creation program.
16490 DLLTOOL="$DLLTOOL"
16492 # Used on cygwin: object dumper.
16493 OBJDUMP="$OBJDUMP"
16495 # Used on cygwin: assembler.
16496 AS="$AS"
16498 # The name of the directory that contains temporary libtool files.
16499 objdir=$objdir
16501 # How to create reloadable object files.
16502 reload_flag=$lt_reload_flag
16503 reload_cmds=$lt_reload_cmds
16505 # How to pass a linker flag through the compiler.
16506 wl=$lt_lt_prog_compiler_wl_F77
16508 # Object file suffix (normally "o").
16509 objext="$ac_objext"
16511 # Old archive suffix (normally "a").
16512 libext="$libext"
16514 # Shared library suffix (normally ".so").
16515 shrext_cmds='$shrext_cmds'
16517 # Executable file suffix (normally "").
16518 exeext="$exeext"
16520 # Additional compiler flags for building library objects.
16521 pic_flag=$lt_lt_prog_compiler_pic_F77
16522 pic_mode=$pic_mode
16524 # What is the maximum length of a command?
16525 max_cmd_len=$lt_cv_sys_max_cmd_len
16527 # Does compiler simultaneously support -c and -o options?
16528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16530 # Must we lock files when doing compilation?
16531 need_locks=$lt_need_locks
16533 # Do we need the lib prefix for modules?
16534 need_lib_prefix=$need_lib_prefix
16536 # Do we need a version for libraries?
16537 need_version=$need_version
16539 # Whether dlopen is supported.
16540 dlopen_support=$enable_dlopen
16542 # Whether dlopen of programs is supported.
16543 dlopen_self=$enable_dlopen_self
16545 # Whether dlopen of statically linked programs is supported.
16546 dlopen_self_static=$enable_dlopen_self_static
16548 # Compiler flag to prevent dynamic linking.
16549 link_static_flag=$lt_lt_prog_compiler_static_F77
16551 # Compiler flag to turn off builtin functions.
16552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16554 # Compiler flag to allow reflexive dlopens.
16555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16557 # Compiler flag to generate shared objects directly from archives.
16558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16560 # Compiler flag to generate thread-safe objects.
16561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16563 # Library versioning type.
16564 version_type=$version_type
16566 # Format of library name prefix.
16567 libname_spec=$lt_libname_spec
16569 # List of archive names. First name is the real one, the rest are links.
16570 # The last name is the one that the linker finds with -lNAME.
16571 library_names_spec=$lt_library_names_spec
16573 # The coded name of the library, if different from the real name.
16574 soname_spec=$lt_soname_spec
16576 # Commands used to build and install an old-style archive.
16577 RANLIB=$lt_RANLIB
16578 old_archive_cmds=$lt_old_archive_cmds_F77
16579 old_postinstall_cmds=$lt_old_postinstall_cmds
16580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16582 # Create an old-style archive from a shared archive.
16583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16585 # Create a temporary old-style archive to link instead of a shared archive.
16586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16588 # Commands used to build and install a shared archive.
16589 archive_cmds=$lt_archive_cmds_F77
16590 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16591 postinstall_cmds=$lt_postinstall_cmds
16592 postuninstall_cmds=$lt_postuninstall_cmds
16594 # Commands used to build a loadable module (assumed same as above if empty)
16595 module_cmds=$lt_module_cmds_F77
16596 module_expsym_cmds=$lt_module_expsym_cmds_F77
16598 # Commands to strip libraries.
16599 old_striplib=$lt_old_striplib
16600 striplib=$lt_striplib
16602 # Dependencies to place before the objects being linked to create a
16603 # shared library.
16604 predep_objects=$lt_predep_objects_F77
16606 # Dependencies to place after the objects being linked to create a
16607 # shared library.
16608 postdep_objects=$lt_postdep_objects_F77
16610 # Dependencies to place before the objects being linked to create a
16611 # shared library.
16612 predeps=$lt_predeps_F77
16614 # Dependencies to place after the objects being linked to create a
16615 # shared library.
16616 postdeps=$lt_postdeps_F77
16618 # The library search path used internally by the compiler when linking
16619 # a shared library.
16620 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16622 # Method to check whether dependent libraries are shared objects.
16623 deplibs_check_method=$lt_deplibs_check_method
16625 # Command to use when deplibs_check_method == file_magic.
16626 file_magic_cmd=$lt_file_magic_cmd
16628 # Flag that allows shared libraries with undefined symbols to be built.
16629 allow_undefined_flag=$lt_allow_undefined_flag_F77
16631 # Flag that forces no undefined symbols.
16632 no_undefined_flag=$lt_no_undefined_flag_F77
16634 # Commands used to finish a libtool library installation in a directory.
16635 finish_cmds=$lt_finish_cmds
16637 # Same as above, but a single script fragment to be evaled but not shown.
16638 finish_eval=$lt_finish_eval
16640 # Take the output of nm and produce a listing of raw symbols and C names.
16641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16643 # Transform the output of nm in a proper C declaration
16644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16646 # Transform the output of nm in a C name address pair
16647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16649 # This is the shared library runtime path variable.
16650 runpath_var=$runpath_var
16652 # This is the shared library path variable.
16653 shlibpath_var=$shlibpath_var
16655 # Is shlibpath searched before the hard-coded library search path?
16656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16658 # How to hardcode a shared library path into an executable.
16659 hardcode_action=$hardcode_action_F77
16661 # Whether we should hardcode library paths into libraries.
16662 hardcode_into_libs=$hardcode_into_libs
16664 # Flag to hardcode \$libdir into a binary during linking.
16665 # This must work even if \$libdir does not exist.
16666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16668 # If ld is used when linking, flag to hardcode \$libdir into
16669 # a binary during linking. This must work even if \$libdir does
16670 # not exist.
16671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16673 # Whether we need a single -rpath flag with a separated argument.
16674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16677 # resulting binary.
16678 hardcode_direct=$hardcode_direct_F77
16680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16681 # resulting binary.
16682 hardcode_minus_L=$hardcode_minus_L_F77
16684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16685 # the resulting binary.
16686 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16688 # Set to yes if building a shared library automatically hardcodes DIR into the library
16689 # and all subsequent libraries and executables linked against it.
16690 hardcode_automatic=$hardcode_automatic_F77
16692 # Variables whose values should be saved in libtool wrapper scripts and
16693 # restored at relink time.
16694 variables_saved_for_relink="$variables_saved_for_relink"
16696 # Whether libtool must link a program against all its dependency libraries.
16697 link_all_deplibs=$link_all_deplibs_F77
16699 # Compile-time system search path for libraries
16700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16702 # Run-time system search path for libraries
16703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16705 # Fix the shell variable \$srcfile for the compiler.
16706 fix_srcfile_path=$lt_fix_srcfile_path
16708 # Set to yes if exported symbols are required.
16709 always_export_symbols=$always_export_symbols_F77
16711 # The commands to list exported symbols.
16712 export_symbols_cmds=$lt_export_symbols_cmds_F77
16714 # The commands to extract the exported symbol list from a shared archive.
16715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16717 # Symbols that should not be listed in the preloaded symbols.
16718 exclude_expsyms=$lt_exclude_expsyms_F77
16720 # Symbols that must always be exported.
16721 include_expsyms=$lt_include_expsyms_F77
16723 # ### END LIBTOOL TAG CONFIG: $tagname
16725 __EOF__
16728 else
16729 # If there is no Makefile yet, we rely on a make rule to execute
16730 # `config.status --recheck' to rerun these tests and create the
16731 # libtool script then.
16732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16733 if test -f "$ltmain_in"; then
16734 test -f Makefile && make "$ltmain"
16739 ac_ext=c
16740 ac_cpp='$CPP $CPPFLAGS'
16741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16745 CC="$lt_save_CC"
16747 else
16748 tagname=""
16752 GCJ)
16753 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16756 # Source file extension for Java test sources.
16757 ac_ext=java
16759 # Object file extension for compiled Java test sources.
16760 objext=o
16761 objext_GCJ=$objext
16763 # Code to be used in simple compile tests
16764 lt_simple_compile_test_code="class foo {}"
16766 # Code to be used in simple link tests
16767 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16769 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16771 # If no C compiler was specified, use CC.
16772 LTCC=${LTCC-"$CC"}
16774 # If no C compiler flags were specified, use CFLAGS.
16775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16777 # Allow CC to be a program name with arguments.
16778 compiler=$CC
16781 # save warnings/boilerplate of simple test code
16782 ac_outfile=conftest.$ac_objext
16783 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16784 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16785 _lt_compiler_boilerplate=`cat conftest.err`
16786 $rm conftest*
16788 ac_outfile=conftest.$ac_objext
16789 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16790 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16791 _lt_linker_boilerplate=`cat conftest.err`
16792 $rm conftest*
16795 # Allow CC to be a program name with arguments.
16796 lt_save_CC="$CC"
16797 CC=${GCJ-"gcj"}
16798 compiler=$CC
16799 compiler_GCJ=$CC
16800 for cc_temp in $compiler""; do
16801 case $cc_temp in
16802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16804 \-*) ;;
16805 *) break;;
16806 esac
16807 done
16808 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16811 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16812 archive_cmds_need_lc_GCJ=no
16814 old_archive_cmds_GCJ=$old_archive_cmds
16817 lt_prog_compiler_no_builtin_flag_GCJ=
16819 if test "$GCC" = yes; then
16820 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16823 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16824 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16825 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16826 $as_echo_n "(cached) " >&6
16827 else
16828 lt_cv_prog_compiler_rtti_exceptions=no
16829 ac_outfile=conftest.$ac_objext
16830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16831 lt_compiler_flag="-fno-rtti -fno-exceptions"
16832 # Insert the option either (1) after the last *FLAGS variable, or
16833 # (2) before a word containing "conftest.", or (3) at the end.
16834 # Note that $ac_compile itself does not contain backslashes and begins
16835 # with a dollar sign (not a hyphen), so the echo should work correctly.
16836 # The option is referenced via a variable to avoid confusing sed.
16837 lt_compile=`echo "$ac_compile" | $SED \
16838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16840 -e 's:$: $lt_compiler_flag:'`
16841 (eval echo "\"\$as_me:16841: $lt_compile\"" >&5)
16842 (eval "$lt_compile" 2>conftest.err)
16843 ac_status=$?
16844 cat conftest.err >&5
16845 echo "$as_me:16845: \$? = $ac_status" >&5
16846 if (exit $ac_status) && test -s "$ac_outfile"; then
16847 # The compiler can only warn and ignore the option if not recognized
16848 # So say no if there are warnings other than the usual output.
16849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16852 lt_cv_prog_compiler_rtti_exceptions=yes
16855 $rm conftest*
16858 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16859 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16861 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16862 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16863 else
16869 lt_prog_compiler_wl_GCJ=
16870 lt_prog_compiler_pic_GCJ=
16871 lt_prog_compiler_static_GCJ=
16873 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16874 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16876 if test "$GCC" = yes; then
16877 lt_prog_compiler_wl_GCJ='-Wl,'
16878 lt_prog_compiler_static_GCJ='-static'
16880 case $host_os in
16881 aix*)
16882 # All AIX code is PIC.
16883 if test "$host_cpu" = ia64; then
16884 # AIX 5 now supports IA64 processor
16885 lt_prog_compiler_static_GCJ='-Bstatic'
16889 amigaos*)
16890 # FIXME: we need at least 68020 code to build shared libraries, but
16891 # adding the `-m68020' flag to GCC prevents building anything better,
16892 # like `-m68040'.
16893 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16897 # PIC is the default for these OSes.
16900 mingw* | cygwin* | pw32* | os2*)
16901 # This hack is so that the source file can tell whether it is being
16902 # built for inclusion in a dll (and should export symbols for example).
16903 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16904 # (--disable-auto-import) libraries
16905 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16908 darwin* | rhapsody*)
16909 # PIC is the default on this platform
16910 # Common symbols not allowed in MH_DYLIB files
16911 lt_prog_compiler_pic_GCJ='-fno-common'
16914 interix[3-9]*)
16915 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16916 # Instead, we relocate shared libraries at runtime.
16919 msdosdjgpp*)
16920 # Just because we use GCC doesn't mean we suddenly get shared libraries
16921 # on systems that don't support them.
16922 lt_prog_compiler_can_build_shared_GCJ=no
16923 enable_shared=no
16926 sysv4*MP*)
16927 if test -d /usr/nec; then
16928 lt_prog_compiler_pic_GCJ=-Kconform_pic
16932 hpux*)
16933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16934 # not for PA HP-UX.
16935 case $host_cpu in
16936 hppa*64*|ia64*)
16937 # +Z the default
16940 lt_prog_compiler_pic_GCJ='-fPIC'
16942 esac
16946 lt_prog_compiler_pic_GCJ='-fPIC'
16948 esac
16949 else
16950 # PORTME Check for flag to pass linker flags through the system compiler.
16951 case $host_os in
16952 aix*)
16953 lt_prog_compiler_wl_GCJ='-Wl,'
16954 if test "$host_cpu" = ia64; then
16955 # AIX 5 now supports IA64 processor
16956 lt_prog_compiler_static_GCJ='-Bstatic'
16957 else
16958 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16961 darwin*)
16962 # PIC is the default on this platform
16963 # Common symbols not allowed in MH_DYLIB files
16964 case $cc_basename in
16965 xlc*)
16966 lt_prog_compiler_pic_GCJ='-qnocommon'
16967 lt_prog_compiler_wl_GCJ='-Wl,'
16969 esac
16972 mingw* | cygwin* | pw32* | os2*)
16973 # This hack is so that the source file can tell whether it is being
16974 # built for inclusion in a dll (and should export symbols for example).
16975 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16978 hpux9* | hpux10* | hpux11*)
16979 lt_prog_compiler_wl_GCJ='-Wl,'
16980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16981 # not for PA HP-UX.
16982 case $host_cpu in
16983 hppa*64*|ia64*)
16984 # +Z the default
16987 lt_prog_compiler_pic_GCJ='+Z'
16989 esac
16990 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16991 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16994 irix5* | irix6* | nonstopux*)
16995 lt_prog_compiler_wl_GCJ='-Wl,'
16996 # PIC (with -KPIC) is the default.
16997 lt_prog_compiler_static_GCJ='-non_shared'
17000 newsos6)
17001 lt_prog_compiler_pic_GCJ='-KPIC'
17002 lt_prog_compiler_static_GCJ='-Bstatic'
17005 linux* | k*bsd*-gnu)
17006 case $cc_basename in
17007 icc* | ecc*)
17008 lt_prog_compiler_wl_GCJ='-Wl,'
17009 lt_prog_compiler_pic_GCJ='-KPIC'
17010 lt_prog_compiler_static_GCJ='-static'
17012 pgcc* | pgf77* | pgf90* | pgf95*)
17013 # Portland Group compilers (*not* the Pentium gcc compiler,
17014 # which looks to be a dead project)
17015 lt_prog_compiler_wl_GCJ='-Wl,'
17016 lt_prog_compiler_pic_GCJ='-fpic'
17017 lt_prog_compiler_static_GCJ='-Bstatic'
17019 ccc*)
17020 lt_prog_compiler_wl_GCJ='-Wl,'
17021 # All Alpha code is PIC.
17022 lt_prog_compiler_static_GCJ='-non_shared'
17025 case `$CC -V 2>&1 | sed 5q` in
17026 *Sun\ C*)
17027 # Sun C 5.9
17028 lt_prog_compiler_pic_GCJ='-KPIC'
17029 lt_prog_compiler_static_GCJ='-Bstatic'
17030 lt_prog_compiler_wl_GCJ='-Wl,'
17032 *Sun\ F*)
17033 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17034 lt_prog_compiler_pic_GCJ='-KPIC'
17035 lt_prog_compiler_static_GCJ='-Bstatic'
17036 lt_prog_compiler_wl_GCJ=''
17038 esac
17040 esac
17043 osf3* | osf4* | osf5*)
17044 lt_prog_compiler_wl_GCJ='-Wl,'
17045 # All OSF/1 code is PIC.
17046 lt_prog_compiler_static_GCJ='-non_shared'
17049 rdos*)
17050 lt_prog_compiler_static_GCJ='-non_shared'
17053 solaris*)
17054 lt_prog_compiler_pic_GCJ='-KPIC'
17055 lt_prog_compiler_static_GCJ='-Bstatic'
17056 case $cc_basename in
17057 f77* | f90* | f95*)
17058 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17060 lt_prog_compiler_wl_GCJ='-Wl,';;
17061 esac
17064 sunos4*)
17065 lt_prog_compiler_wl_GCJ='-Qoption ld '
17066 lt_prog_compiler_pic_GCJ='-PIC'
17067 lt_prog_compiler_static_GCJ='-Bstatic'
17070 sysv4 | sysv4.2uw2* | sysv4.3*)
17071 lt_prog_compiler_wl_GCJ='-Wl,'
17072 lt_prog_compiler_pic_GCJ='-KPIC'
17073 lt_prog_compiler_static_GCJ='-Bstatic'
17076 sysv4*MP*)
17077 if test -d /usr/nec ;then
17078 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17079 lt_prog_compiler_static_GCJ='-Bstatic'
17083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17084 lt_prog_compiler_wl_GCJ='-Wl,'
17085 lt_prog_compiler_pic_GCJ='-KPIC'
17086 lt_prog_compiler_static_GCJ='-Bstatic'
17089 unicos*)
17090 lt_prog_compiler_wl_GCJ='-Wl,'
17091 lt_prog_compiler_can_build_shared_GCJ=no
17094 uts4*)
17095 lt_prog_compiler_pic_GCJ='-pic'
17096 lt_prog_compiler_static_GCJ='-Bstatic'
17100 lt_prog_compiler_can_build_shared_GCJ=no
17102 esac
17105 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17106 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17109 # Check to make sure the PIC flag actually works.
17111 if test -n "$lt_prog_compiler_pic_GCJ"; then
17113 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17114 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17115 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17116 $as_echo_n "(cached) " >&6
17117 else
17118 lt_prog_compiler_pic_works_GCJ=no
17119 ac_outfile=conftest.$ac_objext
17120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17121 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17122 # Insert the option either (1) after the last *FLAGS variable, or
17123 # (2) before a word containing "conftest.", or (3) at the end.
17124 # Note that $ac_compile itself does not contain backslashes and begins
17125 # with a dollar sign (not a hyphen), so the echo should work correctly.
17126 # The option is referenced via a variable to avoid confusing sed.
17127 lt_compile=`echo "$ac_compile" | $SED \
17128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17130 -e 's:$: $lt_compiler_flag:'`
17131 (eval echo "\"\$as_me:17131: $lt_compile\"" >&5)
17132 (eval "$lt_compile" 2>conftest.err)
17133 ac_status=$?
17134 cat conftest.err >&5
17135 echo "$as_me:17135: \$? = $ac_status" >&5
17136 if (exit $ac_status) && test -s "$ac_outfile"; then
17137 # The compiler can only warn and ignore the option if not recognized
17138 # So say no if there are warnings other than the usual output.
17139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17142 lt_prog_compiler_pic_works_GCJ=yes
17145 $rm conftest*
17148 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17149 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
17151 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17152 case $lt_prog_compiler_pic_GCJ in
17153 "" | " "*) ;;
17154 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17155 esac
17156 else
17157 lt_prog_compiler_pic_GCJ=
17158 lt_prog_compiler_can_build_shared_GCJ=no
17162 case $host_os in
17163 # For platforms which do not support PIC, -DPIC is meaningless:
17164 *djgpp*)
17165 lt_prog_compiler_pic_GCJ=
17168 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17170 esac
17173 # Check to make sure the static flag actually works.
17175 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17176 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17177 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17178 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17179 $as_echo_n "(cached) " >&6
17180 else
17181 lt_prog_compiler_static_works_GCJ=no
17182 save_LDFLAGS="$LDFLAGS"
17183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17184 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17186 # The linker can only warn and ignore the option if not recognized
17187 # So say no if there are warnings
17188 if test -s conftest.err; then
17189 # Append any errors to the config.log.
17190 cat conftest.err 1>&5
17191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17193 if diff conftest.exp conftest.er2 >/dev/null; then
17194 lt_prog_compiler_static_works_GCJ=yes
17196 else
17197 lt_prog_compiler_static_works_GCJ=yes
17200 $rm conftest*
17201 LDFLAGS="$save_LDFLAGS"
17204 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17205 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
17207 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17209 else
17210 lt_prog_compiler_static_GCJ=
17214 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17216 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17217 $as_echo_n "(cached) " >&6
17218 else
17219 lt_cv_prog_compiler_c_o_GCJ=no
17220 $rm -r conftest 2>/dev/null
17221 mkdir conftest
17222 cd conftest
17223 mkdir out
17224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17226 lt_compiler_flag="-o out/conftest2.$ac_objext"
17227 # Insert the option either (1) after the last *FLAGS variable, or
17228 # (2) before a word containing "conftest.", or (3) at the end.
17229 # Note that $ac_compile itself does not contain backslashes and begins
17230 # with a dollar sign (not a hyphen), so the echo should work correctly.
17231 lt_compile=`echo "$ac_compile" | $SED \
17232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17234 -e 's:$: $lt_compiler_flag:'`
17235 (eval echo "\"\$as_me:17235: $lt_compile\"" >&5)
17236 (eval "$lt_compile" 2>out/conftest.err)
17237 ac_status=$?
17238 cat out/conftest.err >&5
17239 echo "$as_me:17239: \$? = $ac_status" >&5
17240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17241 then
17242 # The compiler can only warn and ignore the option if not recognized
17243 # So say no if there are warnings
17244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17247 lt_cv_prog_compiler_c_o_GCJ=yes
17250 chmod u+w . 2>&5
17251 $rm conftest*
17252 # SGI C++ compiler will create directory out/ii_files/ for
17253 # template instantiation
17254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17255 $rm out/* && rmdir out
17256 cd ..
17257 rmdir conftest
17258 $rm conftest*
17261 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17262 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17265 hard_links="nottested"
17266 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17267 # do not overwrite the value of need_locks provided by the user
17268 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17269 $as_echo_n "checking if we can lock with hard links... " >&6; }
17270 hard_links=yes
17271 $rm conftest*
17272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17273 touch conftest.a
17274 ln conftest.a conftest.b 2>&5 || hard_links=no
17275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17276 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17277 $as_echo "$hard_links" >&6; }
17278 if test "$hard_links" = no; then
17279 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17280 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17281 need_locks=warn
17283 else
17284 need_locks=no
17287 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17288 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17290 runpath_var=
17291 allow_undefined_flag_GCJ=
17292 enable_shared_with_static_runtimes_GCJ=no
17293 archive_cmds_GCJ=
17294 archive_expsym_cmds_GCJ=
17295 old_archive_From_new_cmds_GCJ=
17296 old_archive_from_expsyms_cmds_GCJ=
17297 export_dynamic_flag_spec_GCJ=
17298 whole_archive_flag_spec_GCJ=
17299 thread_safe_flag_spec_GCJ=
17300 hardcode_libdir_flag_spec_GCJ=
17301 hardcode_libdir_flag_spec_ld_GCJ=
17302 hardcode_libdir_separator_GCJ=
17303 hardcode_direct_GCJ=no
17304 hardcode_minus_L_GCJ=no
17305 hardcode_shlibpath_var_GCJ=unsupported
17306 link_all_deplibs_GCJ=unknown
17307 hardcode_automatic_GCJ=no
17308 module_cmds_GCJ=
17309 module_expsym_cmds_GCJ=
17310 always_export_symbols_GCJ=no
17311 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17312 # include_expsyms should be a list of space-separated symbols to be *always*
17313 # included in the symbol list
17314 include_expsyms_GCJ=
17315 # exclude_expsyms can be an extended regexp of symbols to exclude
17316 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17318 # as well as any symbol that contains `d'.
17319 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17321 # platforms (ab)use it in PIC code, but their linkers get confused if
17322 # the symbol is explicitly referenced. Since portable code cannot
17323 # rely on this symbol name, it's probably fine to never include it in
17324 # preloaded symbol tables.
17325 extract_expsyms_cmds=
17326 # Just being paranoid about ensuring that cc_basename is set.
17327 for cc_temp in $compiler""; do
17328 case $cc_temp in
17329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17331 \-*) ;;
17332 *) break;;
17333 esac
17334 done
17335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17337 case $host_os in
17338 cygwin* | mingw* | pw32*)
17339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17340 # When not using gcc, we currently assume that we are using
17341 # Microsoft Visual C++.
17342 if test "$GCC" != yes; then
17343 with_gnu_ld=no
17346 interix*)
17347 # we just hope/assume this is gcc and not c89 (= MSVC++)
17348 with_gnu_ld=yes
17350 openbsd*)
17351 with_gnu_ld=no
17353 esac
17355 ld_shlibs_GCJ=yes
17356 if test "$with_gnu_ld" = yes; then
17357 # If archive_cmds runs LD, not CC, wlarc should be empty
17358 wlarc='${wl}'
17360 # Set some defaults for GNU ld with shared library support. These
17361 # are reset later if shared libraries are not supported. Putting them
17362 # here allows them to be overridden if necessary.
17363 runpath_var=LD_RUN_PATH
17364 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17365 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17366 # ancient GNU ld didn't support --whole-archive et. al.
17367 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17368 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17369 else
17370 whole_archive_flag_spec_GCJ=
17372 supports_anon_versioning=no
17373 case `$LD -v 2>/dev/null` in
17374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17377 *\ 2.11.*) ;; # other 2.11 versions
17378 *) supports_anon_versioning=yes ;;
17379 esac
17381 # See if GNU ld supports shared libraries.
17382 case $host_os in
17383 aix3* | aix4* | aix5*)
17384 # On AIX/PPC, the GNU linker is very broken
17385 if test "$host_cpu" != ia64; then
17386 ld_shlibs_GCJ=no
17387 cat <<EOF 1>&2
17389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17390 *** to be unable to reliably create shared libraries on AIX.
17391 *** Therefore, libtool is disabling shared libraries support. If you
17392 *** really care for shared libraries, you may want to modify your PATH
17393 *** so that a non-GNU linker is found, and then restart.
17399 amigaos*)
17400 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)'
17401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17402 hardcode_minus_L_GCJ=yes
17404 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17405 # that the semantics of dynamic libraries on AmigaOS, at least up
17406 # to version 4, is to share data among multiple programs linked
17407 # with the same dynamic library. Since this doesn't match the
17408 # behavior of shared libraries on other platforms, we can't use
17409 # them.
17410 ld_shlibs_GCJ=no
17413 beos*)
17414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17415 allow_undefined_flag_GCJ=unsupported
17416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17417 # support --undefined. This deserves some investigation. FIXME
17418 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419 else
17420 ld_shlibs_GCJ=no
17424 cygwin* | mingw* | pw32*)
17425 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17426 # as there is no search path for DLLs.
17427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17428 allow_undefined_flag_GCJ=unsupported
17429 always_export_symbols_GCJ=no
17430 enable_shared_with_static_runtimes_GCJ=yes
17431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17433 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17435 # If the export-symbols file already is a .def file (1st line
17436 # is EXPORTS), use it as is; otherwise, prepend...
17437 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17438 cp $export_symbols $output_objdir/$soname.def;
17439 else
17440 echo EXPORTS > $output_objdir/$soname.def;
17441 cat $export_symbols >> $output_objdir/$soname.def;
17443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17444 else
17445 ld_shlibs_GCJ=no
17449 interix[3-9]*)
17450 hardcode_direct_GCJ=no
17451 hardcode_shlibpath_var_GCJ=no
17452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17453 export_dynamic_flag_spec_GCJ='${wl}-E'
17454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17455 # Instead, shared libraries are loaded at an image base (0x10000000 by
17456 # default) and relocated if they conflict, which is a slow very memory
17457 # consuming and fragmenting process. To avoid this, we pick a random,
17458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17460 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'
17461 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'
17464 gnu* | linux* | k*bsd*-gnu)
17465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17466 tmp_addflag=
17467 case $cc_basename,$host_cpu in
17468 pgcc*) # Portland Group C compiler
17469 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'
17470 tmp_addflag=' $pic_flag'
17472 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17473 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'
17474 tmp_addflag=' $pic_flag -Mnomain' ;;
17475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17476 tmp_addflag=' -i_dynamic' ;;
17477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17478 tmp_addflag=' -i_dynamic -nofor_main' ;;
17479 ifc* | ifort*) # Intel Fortran compiler
17480 tmp_addflag=' -nofor_main' ;;
17481 esac
17482 case `$CC -V 2>&1 | sed 5q` in
17483 *Sun\ C*) # Sun C 5.9
17484 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'
17485 tmp_sharedflag='-G' ;;
17486 *Sun\ F*) # Sun Fortran 8.3
17487 tmp_sharedflag='-G' ;;
17489 tmp_sharedflag='-shared' ;;
17490 esac
17491 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17493 if test $supports_anon_versioning = yes; then
17494 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17496 $echo "local: *; };" >> $output_objdir/$libname.ver~
17497 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17499 else
17500 ld_shlibs_GCJ=no
17504 netbsd*)
17505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17506 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17507 wlarc=
17508 else
17509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17514 solaris*)
17515 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17516 ld_shlibs_GCJ=no
17517 cat <<EOF 1>&2
17519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17520 *** create shared libraries on Solaris systems. Therefore, libtool
17521 *** is disabling shared libraries support. We urge you to upgrade GNU
17522 *** binutils to release 2.9.1 or newer. Another option is to modify
17523 *** your PATH or compiler configuration so that the native linker is
17524 *** used, and then restart.
17527 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17530 else
17531 ld_shlibs_GCJ=no
17535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17536 case `$LD -v 2>&1` in
17537 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17538 ld_shlibs_GCJ=no
17539 cat <<_LT_EOF 1>&2
17541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17542 *** reliably create shared libraries on SCO systems. Therefore, libtool
17543 *** is disabling shared libraries support. We urge you to upgrade GNU
17544 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17545 *** your PATH or compiler configuration so that the native linker is
17546 *** used, and then restart.
17548 _LT_EOF
17551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17553 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17554 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17555 else
17556 ld_shlibs_GCJ=no
17559 esac
17562 sunos4*)
17563 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17564 wlarc=
17565 hardcode_direct_GCJ=yes
17566 hardcode_shlibpath_var_GCJ=no
17570 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17571 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17572 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17573 else
17574 ld_shlibs_GCJ=no
17577 esac
17579 if test "$ld_shlibs_GCJ" = no; then
17580 runpath_var=
17581 hardcode_libdir_flag_spec_GCJ=
17582 export_dynamic_flag_spec_GCJ=
17583 whole_archive_flag_spec_GCJ=
17585 else
17586 # PORTME fill in a description of your system's linker (not GNU ld)
17587 case $host_os in
17588 aix3*)
17589 allow_undefined_flag_GCJ=unsupported
17590 always_export_symbols_GCJ=yes
17591 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'
17592 # Note: this linker hardcodes the directories in LIBPATH if there
17593 # are no directories specified by -L.
17594 hardcode_minus_L_GCJ=yes
17595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17596 # Neither direct hardcoding nor static linking is supported with a
17597 # broken collect2.
17598 hardcode_direct_GCJ=unsupported
17602 aix4* | aix5*)
17603 if test "$host_cpu" = ia64; then
17604 # On IA64, the linker does run time linking by default, so we don't
17605 # have to do anything special.
17606 aix_use_runtimelinking=no
17607 exp_sym_flag='-Bexport'
17608 no_entry_flag=""
17609 else
17610 # If we're using GNU nm, then we don't want the "-C" option.
17611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17613 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'
17614 else
17615 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'
17617 aix_use_runtimelinking=no
17619 # Test if we are trying to use run time linking or normal
17620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17621 # need to do runtime linking.
17622 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17623 for ld_flag in $LDFLAGS; do
17624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17625 aix_use_runtimelinking=yes
17626 break
17628 done
17630 esac
17632 exp_sym_flag='-bexport'
17633 no_entry_flag='-bnoentry'
17636 # When large executables or shared objects are built, AIX ld can
17637 # have problems creating the table of contents. If linking a library
17638 # or program results in "error TOC overflow" add -mminimal-toc to
17639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17642 archive_cmds_GCJ=''
17643 hardcode_direct_GCJ=yes
17644 hardcode_libdir_separator_GCJ=':'
17645 link_all_deplibs_GCJ=yes
17647 if test "$GCC" = yes; then
17648 case $host_os in aix4.[012]|aix4.[012].*)
17649 # We only want to do this on AIX 4.2 and lower, the check
17650 # below for broken collect2 doesn't work under 4.3+
17651 collect2name=`${CC} -print-prog-name=collect2`
17652 if test -f "$collect2name" && \
17653 strings "$collect2name" | grep resolve_lib_name >/dev/null
17654 then
17655 # We have reworked collect2
17657 else
17658 # We have old collect2
17659 hardcode_direct_GCJ=unsupported
17660 # It fails to find uninstalled libraries when the uninstalled
17661 # path is not listed in the libpath. Setting hardcode_minus_L
17662 # to unsupported forces relinking
17663 hardcode_minus_L_GCJ=yes
17664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17665 hardcode_libdir_separator_GCJ=
17668 esac
17669 shared_flag='-shared'
17670 if test "$aix_use_runtimelinking" = yes; then
17671 shared_flag="$shared_flag "'${wl}-G'
17673 else
17674 # not using gcc
17675 if test "$host_cpu" = ia64; then
17676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17677 # chokes on -Wl,-G. The following line is correct:
17678 shared_flag='-G'
17679 else
17680 if test "$aix_use_runtimelinking" = yes; then
17681 shared_flag='${wl}-G'
17682 else
17683 shared_flag='${wl}-bM:SRE'
17688 # It seems that -bexpall does not export symbols beginning with
17689 # underscore (_), so it is better to generate a list of symbols to export.
17690 always_export_symbols_GCJ=yes
17691 if test "$aix_use_runtimelinking" = yes; then
17692 # Warning - without using the other runtime loading flags (-brtl),
17693 # -berok will link without error, but may produce a broken library.
17694 allow_undefined_flag_GCJ='-berok'
17695 # Determine the default libpath from the value encoded in an empty executable.
17696 cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h. */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17704 main ()
17708 return 0;
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719 (eval "$ac_link") 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } && {
17726 test -z "$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17728 } && test -s conftest$ac_exeext && {
17729 test "$cross_compiling" = yes ||
17730 $as_test_x conftest$ac_exeext
17731 }; then
17733 lt_aix_libpath_sed='
17734 /Import File Strings/,/^$/ {
17735 /^0/ {
17736 s/^0 *\(.*\)$/\1/
17740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17741 # Check for a 64-bit object if we didn't find anything.
17742 if test -z "$aix_libpath"; then
17743 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17745 else
17746 $as_echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17752 rm -rf conftest.dSYM
17753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17754 conftest$ac_exeext conftest.$ac_ext
17755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17757 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17758 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"
17759 else
17760 if test "$host_cpu" = ia64; then
17761 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17762 allow_undefined_flag_GCJ="-z nodefs"
17763 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"
17764 else
17765 # Determine the default libpath from the value encoded in an empty executable.
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17774 main ()
17778 return 0;
17780 _ACEOF
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (ac_try="$ac_link"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17786 esac
17787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788 $as_echo "$ac_try_echo") >&5
17789 (eval "$ac_link") 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest$ac_exeext && {
17799 test "$cross_compiling" = yes ||
17800 $as_test_x conftest$ac_exeext
17801 }; then
17803 lt_aix_libpath_sed='
17804 /Import File Strings/,/^$/ {
17805 /^0/ {
17806 s/^0 *\(.*\)$/\1/
17810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17811 # Check for a 64-bit object if we didn't find anything.
17812 if test -z "$aix_libpath"; then
17813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17815 else
17816 $as_echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17822 rm -rf conftest.dSYM
17823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17824 conftest$ac_exeext conftest.$ac_ext
17825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17827 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17828 # Warning - without using the other run time loading flags,
17829 # -berok will link without error, but may produce a broken library.
17830 no_undefined_flag_GCJ=' ${wl}-bernotok'
17831 allow_undefined_flag_GCJ=' ${wl}-berok'
17832 # Exported symbols can be pulled into shared objects from archives
17833 whole_archive_flag_spec_GCJ='$convenience'
17834 archive_cmds_need_lc_GCJ=yes
17835 # This is similar to how AIX traditionally builds its shared libraries.
17836 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'
17841 amigaos*)
17842 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)'
17843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17844 hardcode_minus_L_GCJ=yes
17845 # see comment about different semantics on the GNU ld section
17846 ld_shlibs_GCJ=no
17849 bsdi[45]*)
17850 export_dynamic_flag_spec_GCJ=-rdynamic
17853 cygwin* | mingw* | pw32*)
17854 # When not using gcc, we currently assume that we are using
17855 # Microsoft Visual C++.
17856 # hardcode_libdir_flag_spec is actually meaningless, as there is
17857 # no search path for DLLs.
17858 hardcode_libdir_flag_spec_GCJ=' '
17859 allow_undefined_flag_GCJ=unsupported
17860 # Tell ltmain to make .lib files, not .a files.
17861 libext=lib
17862 # Tell ltmain to make .dll files, not .so files.
17863 shrext_cmds=".dll"
17864 # FIXME: Setting linknames here is a bad hack.
17865 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17866 # The linker will automatically build a .lib file if we build a DLL.
17867 old_archive_From_new_cmds_GCJ='true'
17868 # FIXME: Should let the user specify the lib program.
17869 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17870 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17871 enable_shared_with_static_runtimes_GCJ=yes
17874 darwin* | rhapsody*)
17875 case $host_os in
17876 rhapsody* | darwin1.[012])
17877 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17879 *) # Darwin 1.3 on
17880 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17881 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17882 else
17883 case ${MACOSX_DEPLOYMENT_TARGET} in
17884 10.[012])
17885 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17887 10.*)
17888 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17890 esac
17893 esac
17894 archive_cmds_need_lc_GCJ=no
17895 hardcode_direct_GCJ=no
17896 hardcode_automatic_GCJ=yes
17897 hardcode_shlibpath_var_GCJ=unsupported
17898 whole_archive_flag_spec_GCJ=''
17899 link_all_deplibs_GCJ=yes
17900 if test "$GCC" = yes ; then
17901 output_verbose_link_cmd='echo'
17902 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17903 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17905 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17906 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}'
17907 else
17908 case $cc_basename in
17909 xlc*)
17910 output_verbose_link_cmd='echo'
17911 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17912 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17914 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}'
17915 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}'
17918 ld_shlibs_GCJ=no
17920 esac
17924 dgux*)
17925 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17926 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17927 hardcode_shlibpath_var_GCJ=no
17930 freebsd1*)
17931 ld_shlibs_GCJ=no
17934 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17935 # support. Future versions do this automatically, but an explicit c++rt0.o
17936 # does not break anything, and helps significantly (at the cost of a little
17937 # extra space).
17938 freebsd2.2*)
17939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17941 hardcode_direct_GCJ=yes
17942 hardcode_shlibpath_var_GCJ=no
17945 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17946 freebsd2*)
17947 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17948 hardcode_direct_GCJ=yes
17949 hardcode_minus_L_GCJ=yes
17950 hardcode_shlibpath_var_GCJ=no
17953 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17954 freebsd* | dragonfly*)
17955 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17956 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17957 hardcode_direct_GCJ=yes
17958 hardcode_shlibpath_var_GCJ=no
17961 hpux9*)
17962 if test "$GCC" = yes; then
17963 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'
17964 else
17965 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'
17967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17968 hardcode_libdir_separator_GCJ=:
17969 hardcode_direct_GCJ=yes
17971 # hardcode_minus_L: Not really in the search PATH,
17972 # but as the default location of the library.
17973 hardcode_minus_L_GCJ=yes
17974 export_dynamic_flag_spec_GCJ='${wl}-E'
17977 hpux10*)
17978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17979 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17980 else
17981 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17983 if test "$with_gnu_ld" = no; then
17984 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17985 hardcode_libdir_separator_GCJ=:
17987 hardcode_direct_GCJ=yes
17988 export_dynamic_flag_spec_GCJ='${wl}-E'
17990 # hardcode_minus_L: Not really in the search PATH,
17991 # but as the default location of the library.
17992 hardcode_minus_L_GCJ=yes
17996 hpux11*)
17997 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17998 case $host_cpu in
17999 hppa*64*)
18000 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18002 ia64*)
18003 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18008 esac
18009 else
18010 case $host_cpu in
18011 hppa*64*)
18012 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18014 ia64*)
18015 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18018 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18020 esac
18022 if test "$with_gnu_ld" = no; then
18023 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18024 hardcode_libdir_separator_GCJ=:
18026 case $host_cpu in
18027 hppa*64*|ia64*)
18028 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18029 hardcode_direct_GCJ=no
18030 hardcode_shlibpath_var_GCJ=no
18033 hardcode_direct_GCJ=yes
18034 export_dynamic_flag_spec_GCJ='${wl}-E'
18036 # hardcode_minus_L: Not really in the search PATH,
18037 # but as the default location of the library.
18038 hardcode_minus_L_GCJ=yes
18040 esac
18044 irix5* | irix6* | nonstopux*)
18045 if test "$GCC" = yes; then
18046 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'
18047 else
18048 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'
18049 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18052 hardcode_libdir_separator_GCJ=:
18053 link_all_deplibs_GCJ=yes
18056 netbsd*)
18057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18058 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18059 else
18060 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18062 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18063 hardcode_direct_GCJ=yes
18064 hardcode_shlibpath_var_GCJ=no
18067 newsos6)
18068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18069 hardcode_direct_GCJ=yes
18070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18071 hardcode_libdir_separator_GCJ=:
18072 hardcode_shlibpath_var_GCJ=no
18075 openbsd*)
18076 if test -f /usr/libexec/ld.so; then
18077 hardcode_direct_GCJ=yes
18078 hardcode_shlibpath_var_GCJ=no
18079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18080 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18081 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18083 export_dynamic_flag_spec_GCJ='${wl}-E'
18084 else
18085 case $host_os in
18086 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18087 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18088 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18091 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18094 esac
18096 else
18097 ld_shlibs_GCJ=no
18101 os2*)
18102 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18103 hardcode_minus_L_GCJ=yes
18104 allow_undefined_flag_GCJ=unsupported
18105 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'
18106 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18109 osf3*)
18110 if test "$GCC" = yes; then
18111 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18112 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'
18113 else
18114 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18115 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'
18117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18118 hardcode_libdir_separator_GCJ=:
18121 osf4* | osf5*) # as osf3* with the addition of -msym flag
18122 if test "$GCC" = yes; then
18123 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18124 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'
18125 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18126 else
18127 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18128 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'
18129 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~
18130 $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'
18132 # Both c and cxx compiler support -rpath directly
18133 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18135 hardcode_libdir_separator_GCJ=:
18138 solaris*)
18139 no_undefined_flag_GCJ=' -z text'
18140 if test "$GCC" = yes; then
18141 wlarc='${wl}'
18142 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18143 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18144 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18145 else
18146 wlarc=''
18147 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18148 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18149 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18152 hardcode_shlibpath_var_GCJ=no
18153 case $host_os in
18154 solaris2.[0-5] | solaris2.[0-5].*) ;;
18156 # The compiler driver will combine and reorder linker options,
18157 # but understands `-z linker_flag'. GCC discards it without `$wl',
18158 # but is careful enough not to reorder.
18159 # Supported since Solaris 2.6 (maybe 2.5.1?)
18160 if test "$GCC" = yes; then
18161 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18162 else
18163 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18166 esac
18167 link_all_deplibs_GCJ=yes
18170 sunos4*)
18171 if test "x$host_vendor" = xsequent; then
18172 # Use $CC to link under sequent, because it throws in some extra .o
18173 # files that make .init and .fini sections work.
18174 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18175 else
18176 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18179 hardcode_direct_GCJ=yes
18180 hardcode_minus_L_GCJ=yes
18181 hardcode_shlibpath_var_GCJ=no
18184 sysv4)
18185 case $host_vendor in
18186 sni)
18187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18188 hardcode_direct_GCJ=yes # is this really true???
18190 siemens)
18191 ## LD is ld it makes a PLAMLIB
18192 ## CC just makes a GrossModule.
18193 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18194 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18195 hardcode_direct_GCJ=no
18197 motorola)
18198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18199 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18201 esac
18202 runpath_var='LD_RUN_PATH'
18203 hardcode_shlibpath_var_GCJ=no
18206 sysv4.3*)
18207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18208 hardcode_shlibpath_var_GCJ=no
18209 export_dynamic_flag_spec_GCJ='-Bexport'
18212 sysv4*MP*)
18213 if test -d /usr/nec; then
18214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18215 hardcode_shlibpath_var_GCJ=no
18216 runpath_var=LD_RUN_PATH
18217 hardcode_runpath_var=yes
18218 ld_shlibs_GCJ=yes
18222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18223 no_undefined_flag_GCJ='${wl}-z,text'
18224 archive_cmds_need_lc_GCJ=no
18225 hardcode_shlibpath_var_GCJ=no
18226 runpath_var='LD_RUN_PATH'
18228 if test "$GCC" = yes; then
18229 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18230 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18231 else
18232 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18233 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18237 sysv5* | sco3.2v5* | sco5v6*)
18238 # Note: We can NOT use -z defs as we might desire, because we do not
18239 # link with -lc, and that would cause any symbols used from libc to
18240 # always be unresolved, which means just about no library would
18241 # ever link correctly. If we're not using GNU ld we use -z text
18242 # though, which does catch some bad symbols but isn't as heavy-handed
18243 # as -z defs.
18244 no_undefined_flag_GCJ='${wl}-z,text'
18245 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18246 archive_cmds_need_lc_GCJ=no
18247 hardcode_shlibpath_var_GCJ=no
18248 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18249 hardcode_libdir_separator_GCJ=':'
18250 link_all_deplibs_GCJ=yes
18251 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18252 runpath_var='LD_RUN_PATH'
18254 if test "$GCC" = yes; then
18255 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18256 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18257 else
18258 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18259 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18263 uts4*)
18264 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18266 hardcode_shlibpath_var_GCJ=no
18270 ld_shlibs_GCJ=no
18272 esac
18275 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18276 $as_echo "$ld_shlibs_GCJ" >&6; }
18277 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18280 # Do we need to explicitly link libc?
18282 case "x$archive_cmds_need_lc_GCJ" in
18283 x|xyes)
18284 # Assume -lc should be added
18285 archive_cmds_need_lc_GCJ=yes
18287 if test "$enable_shared" = yes && test "$GCC" = yes; then
18288 case $archive_cmds_GCJ in
18289 *'~'*)
18290 # FIXME: we may have to deal with multi-command sequences.
18292 '$CC '*)
18293 # Test whether the compiler implicitly links with -lc since on some
18294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18295 # to ld, don't add -lc before -lgcc.
18296 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18297 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18298 $rm conftest*
18299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18302 (eval $ac_compile) 2>&5
18303 ac_status=$?
18304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } 2>conftest.err; then
18306 soname=conftest
18307 lib=conftest
18308 libobjs=conftest.$ac_objext
18309 deplibs=
18310 wl=$lt_prog_compiler_wl_GCJ
18311 pic_flag=$lt_prog_compiler_pic_GCJ
18312 compiler_flags=-v
18313 linker_flags=-v
18314 verstring=
18315 output_objdir=.
18316 libname=conftest
18317 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18318 allow_undefined_flag_GCJ=
18319 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18320 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18321 ac_status=$?
18322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }
18324 then
18325 archive_cmds_need_lc_GCJ=no
18326 else
18327 archive_cmds_need_lc_GCJ=yes
18329 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18330 else
18331 cat conftest.err 1>&5
18333 $rm conftest*
18334 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18335 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18337 esac
18340 esac
18342 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18343 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18344 library_names_spec=
18345 libname_spec='lib$name'
18346 soname_spec=
18347 shrext_cmds=".so"
18348 postinstall_cmds=
18349 postuninstall_cmds=
18350 finish_cmds=
18351 finish_eval=
18352 shlibpath_var=
18353 shlibpath_overrides_runpath=unknown
18354 version_type=none
18355 dynamic_linker="$host_os ld.so"
18356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18358 need_lib_prefix=unknown
18359 hardcode_into_libs=no
18361 # when you set need_version to no, make sure it does not cause -set_version
18362 # flags to be left without arguments
18363 need_version=unknown
18365 case $host_os in
18366 aix3*)
18367 version_type=linux
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18369 shlibpath_var=LIBPATH
18371 # AIX 3 has no versioning support, so we append a major version to the name.
18372 soname_spec='${libname}${release}${shared_ext}$major'
18375 aix4* | aix5*)
18376 version_type=linux
18377 need_lib_prefix=no
18378 need_version=no
18379 hardcode_into_libs=yes
18380 if test "$host_cpu" = ia64; then
18381 # AIX 5 supports IA64
18382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 else
18385 # With GCC up to 2.95.x, collect2 would create an import file
18386 # for dependence libraries. The import file would start with
18387 # the line `#! .'. This would cause the generated library to
18388 # depend on `.', always an invalid library. This was fixed in
18389 # development snapshots of GCC prior to 3.0.
18390 case $host_os in
18391 aix4 | aix4.[01] | aix4.[01].*)
18392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18393 echo ' yes '
18394 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18396 else
18397 can_build_shared=no
18400 esac
18401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18402 # soname into executable. Probably we can add versioning support to
18403 # collect2, so additional links can be useful in future.
18404 if test "$aix_use_runtimelinking" = yes; then
18405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18406 # instead of lib<name>.a to let people know that these are not
18407 # typical AIX shared libraries.
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409 else
18410 # We preserve .a as extension for shared libraries through AIX4.2
18411 # and later when we are not doing run time linking.
18412 library_names_spec='${libname}${release}.a $libname.a'
18413 soname_spec='${libname}${release}${shared_ext}$major'
18415 shlibpath_var=LIBPATH
18419 amigaos*)
18420 library_names_spec='$libname.ixlibrary $libname.a'
18421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18422 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'
18425 beos*)
18426 library_names_spec='${libname}${shared_ext}'
18427 dynamic_linker="$host_os ld.so"
18428 shlibpath_var=LIBRARY_PATH
18431 bsdi[45]*)
18432 version_type=linux
18433 need_version=no
18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435 soname_spec='${libname}${release}${shared_ext}$major'
18436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18437 shlibpath_var=LD_LIBRARY_PATH
18438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18440 # the default ld.so.conf also contains /usr/contrib/lib and
18441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18442 # libtool to hard-code these into programs
18445 cygwin* | mingw* | pw32*)
18446 version_type=windows
18447 shrext_cmds=".dll"
18448 need_version=no
18449 need_lib_prefix=no
18451 case $GCC,$host_os in
18452 yes,cygwin* | yes,mingw* | yes,pw32*)
18453 library_names_spec='$libname.dll.a'
18454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18455 postinstall_cmds='base_file=`basename \${file}`~
18456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18457 dldir=$destdir/`dirname \$dlpath`~
18458 test -d \$dldir || mkdir -p \$dldir~
18459 $install_prog $dir/$dlname \$dldir/$dlname~
18460 chmod a+x \$dldir/$dlname'
18461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18462 dlpath=$dir/\$dldll~
18463 $rm \$dlpath'
18464 shlibpath_overrides_runpath=yes
18466 case $host_os in
18467 cygwin*)
18468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18470 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18472 mingw*)
18473 # MinGW DLLs use traditional 'lib' prefix
18474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18477 # It is most probably a Windows format PATH printed by
18478 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18479 # path with ; separators, and with drive letters. We can handle the
18480 # drive letters (cygwin fileutils understands them), so leave them,
18481 # especially as we might pass files found there to a mingw objdump,
18482 # which wouldn't understand a cygwinified path. Ahh.
18483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18484 else
18485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18488 pw32*)
18489 # pw32 DLLs use 'pw' prefix rather than 'lib'
18490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18492 esac
18496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18498 esac
18499 dynamic_linker='Win32 ld.exe'
18500 # FIXME: first we should search . and the directory the executable is in
18501 shlibpath_var=PATH
18504 darwin* | rhapsody*)
18505 dynamic_linker="$host_os dyld"
18506 version_type=darwin
18507 need_lib_prefix=no
18508 need_version=no
18509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18510 soname_spec='${libname}${release}${major}$shared_ext'
18511 shlibpath_overrides_runpath=yes
18512 shlibpath_var=DYLD_LIBRARY_PATH
18513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18518 dgux*)
18519 version_type=linux
18520 need_lib_prefix=no
18521 need_version=no
18522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18523 soname_spec='${libname}${release}${shared_ext}$major'
18524 shlibpath_var=LD_LIBRARY_PATH
18527 freebsd1*)
18528 dynamic_linker=no
18531 freebsd* | dragonfly*)
18532 # DragonFly does not have aout. When/if they implement a new
18533 # versioning mechanism, adjust this.
18534 if test -x /usr/bin/objformat; then
18535 objformat=`/usr/bin/objformat`
18536 else
18537 case $host_os in
18538 freebsd[123]*) objformat=aout ;;
18539 *) objformat=elf ;;
18540 esac
18542 version_type=freebsd-$objformat
18543 case $version_type in
18544 freebsd-elf*)
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18546 need_version=no
18547 need_lib_prefix=no
18549 freebsd-*)
18550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18551 need_version=yes
18553 esac
18554 shlibpath_var=LD_LIBRARY_PATH
18555 case $host_os in
18556 freebsd2*)
18557 shlibpath_overrides_runpath=yes
18559 freebsd3.[01]* | freebsdelf3.[01]*)
18560 shlibpath_overrides_runpath=yes
18561 hardcode_into_libs=yes
18563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18565 shlibpath_overrides_runpath=no
18566 hardcode_into_libs=yes
18568 *) # from 4.6 on, and DragonFly
18569 shlibpath_overrides_runpath=yes
18570 hardcode_into_libs=yes
18572 esac
18575 gnu*)
18576 version_type=linux
18577 need_lib_prefix=no
18578 need_version=no
18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18580 soname_spec='${libname}${release}${shared_ext}$major'
18581 shlibpath_var=LD_LIBRARY_PATH
18582 hardcode_into_libs=yes
18585 hpux9* | hpux10* | hpux11*)
18586 # Give a soname corresponding to the major version so that dld.sl refuses to
18587 # link against other versions.
18588 version_type=sunos
18589 need_lib_prefix=no
18590 need_version=no
18591 case $host_cpu in
18592 ia64*)
18593 shrext_cmds='.so'
18594 hardcode_into_libs=yes
18595 dynamic_linker="$host_os dld.so"
18596 shlibpath_var=LD_LIBRARY_PATH
18597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18599 soname_spec='${libname}${release}${shared_ext}$major'
18600 if test "X$HPUX_IA64_MODE" = X32; then
18601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18602 else
18603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18607 hppa*64*)
18608 shrext_cmds='.sl'
18609 hardcode_into_libs=yes
18610 dynamic_linker="$host_os dld.sl"
18611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614 soname_spec='${libname}${release}${shared_ext}$major'
18615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18619 shrext_cmds='.sl'
18620 dynamic_linker="$host_os dld.sl"
18621 shlibpath_var=SHLIB_PATH
18622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18624 soname_spec='${libname}${release}${shared_ext}$major'
18626 esac
18627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18628 postinstall_cmds='chmod 555 $lib'
18631 interix[3-9]*)
18632 version_type=linux
18633 need_lib_prefix=no
18634 need_version=no
18635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18636 soname_spec='${libname}${release}${shared_ext}$major'
18637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18638 shlibpath_var=LD_LIBRARY_PATH
18639 shlibpath_overrides_runpath=no
18640 hardcode_into_libs=yes
18643 irix5* | irix6* | nonstopux*)
18644 case $host_os in
18645 nonstopux*) version_type=nonstopux ;;
18647 if test "$lt_cv_prog_gnu_ld" = yes; then
18648 version_type=linux
18649 else
18650 version_type=irix
18651 fi ;;
18652 esac
18653 need_lib_prefix=no
18654 need_version=no
18655 soname_spec='${libname}${release}${shared_ext}$major'
18656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18657 case $host_os in
18658 irix5* | nonstopux*)
18659 libsuff= shlibsuff=
18662 case $LD in # libtool.m4 will add one of these switches to LD
18663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18664 libsuff= shlibsuff= libmagic=32-bit;;
18665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18666 libsuff=32 shlibsuff=N32 libmagic=N32;;
18667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18669 *) libsuff= shlibsuff= libmagic=never-match;;
18670 esac
18672 esac
18673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18674 shlibpath_overrides_runpath=no
18675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18677 hardcode_into_libs=yes
18680 # No shared lib support for Linux oldld, aout, or coff.
18681 linux*oldld* | linux*aout* | linux*coff*)
18682 dynamic_linker=no
18685 # This must be Linux ELF.
18686 linux* | k*bsd*-gnu)
18687 version_type=linux
18688 need_lib_prefix=no
18689 need_version=no
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 soname_spec='${libname}${release}${shared_ext}$major'
18692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18693 shlibpath_var=LD_LIBRARY_PATH
18694 shlibpath_overrides_runpath=no
18695 # This implies no fast_install, which is unacceptable.
18696 # Some rework will be needed to allow for fast_install
18697 # before this can be enabled.
18698 hardcode_into_libs=yes
18700 # Append ld.so.conf contents to the search path
18701 if test -f /etc/ld.so.conf; then
18702 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' ' '`
18703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18706 # We used to test for /lib/ld.so.1 and disable shared libraries on
18707 # powerpc, because MkLinux only supported shared libraries with the
18708 # GNU dynamic linker. Since this was broken with cross compilers,
18709 # most powerpc-linux boxes support dynamic linking these days and
18710 # people can always --disable-shared, the test was removed, and we
18711 # assume the GNU/Linux dynamic linker is in use.
18712 dynamic_linker='GNU/Linux ld.so'
18715 netbsd*)
18716 version_type=sunos
18717 need_lib_prefix=no
18718 need_version=no
18719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18722 dynamic_linker='NetBSD (a.out) ld.so'
18723 else
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18726 dynamic_linker='NetBSD ld.elf_so'
18728 shlibpath_var=LD_LIBRARY_PATH
18729 shlibpath_overrides_runpath=yes
18730 hardcode_into_libs=yes
18733 newsos6)
18734 version_type=linux
18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18736 shlibpath_var=LD_LIBRARY_PATH
18737 shlibpath_overrides_runpath=yes
18740 nto-qnx*)
18741 version_type=linux
18742 need_lib_prefix=no
18743 need_version=no
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 soname_spec='${libname}${release}${shared_ext}$major'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 shlibpath_overrides_runpath=yes
18750 openbsd*)
18751 version_type=sunos
18752 sys_lib_dlsearch_path_spec="/usr/lib"
18753 need_lib_prefix=no
18754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18755 case $host_os in
18756 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18757 *) need_version=no ;;
18758 esac
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18761 shlibpath_var=LD_LIBRARY_PATH
18762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18763 case $host_os in
18764 openbsd2.[89] | openbsd2.[89].*)
18765 shlibpath_overrides_runpath=no
18768 shlibpath_overrides_runpath=yes
18770 esac
18771 else
18772 shlibpath_overrides_runpath=yes
18776 os2*)
18777 libname_spec='$name'
18778 shrext_cmds=".dll"
18779 need_lib_prefix=no
18780 library_names_spec='$libname${shared_ext} $libname.a'
18781 dynamic_linker='OS/2 ld.exe'
18782 shlibpath_var=LIBPATH
18785 osf3* | osf4* | osf5*)
18786 version_type=osf
18787 need_lib_prefix=no
18788 need_version=no
18789 soname_spec='${libname}${release}${shared_ext}$major'
18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18796 rdos*)
18797 dynamic_linker=no
18800 solaris*)
18801 version_type=linux
18802 need_lib_prefix=no
18803 need_version=no
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18805 soname_spec='${libname}${release}${shared_ext}$major'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 shlibpath_overrides_runpath=yes
18808 hardcode_into_libs=yes
18809 # ldd complains unless libraries are executable
18810 postinstall_cmds='chmod +x $lib'
18813 sunos4*)
18814 version_type=sunos
18815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18816 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18817 shlibpath_var=LD_LIBRARY_PATH
18818 shlibpath_overrides_runpath=yes
18819 if test "$with_gnu_ld" = yes; then
18820 need_lib_prefix=no
18822 need_version=yes
18825 sysv4 | sysv4.3*)
18826 version_type=linux
18827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18828 soname_spec='${libname}${release}${shared_ext}$major'
18829 shlibpath_var=LD_LIBRARY_PATH
18830 case $host_vendor in
18831 sni)
18832 shlibpath_overrides_runpath=no
18833 need_lib_prefix=no
18834 export_dynamic_flag_spec='${wl}-Blargedynsym'
18835 runpath_var=LD_RUN_PATH
18837 siemens)
18838 need_lib_prefix=no
18840 motorola)
18841 need_lib_prefix=no
18842 need_version=no
18843 shlibpath_overrides_runpath=no
18844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18846 esac
18849 sysv4*MP*)
18850 if test -d /usr/nec ;then
18851 version_type=linux
18852 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18853 soname_spec='$libname${shared_ext}.$major'
18854 shlibpath_var=LD_LIBRARY_PATH
18858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18859 version_type=freebsd-elf
18860 need_lib_prefix=no
18861 need_version=no
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 shlibpath_var=LD_LIBRARY_PATH
18865 hardcode_into_libs=yes
18866 if test "$with_gnu_ld" = yes; then
18867 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18868 shlibpath_overrides_runpath=no
18869 else
18870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18871 shlibpath_overrides_runpath=yes
18872 case $host_os in
18873 sco3.2v5*)
18874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18876 esac
18878 sys_lib_dlsearch_path_spec='/usr/lib'
18881 uts4*)
18882 version_type=linux
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884 soname_spec='${libname}${release}${shared_ext}$major'
18885 shlibpath_var=LD_LIBRARY_PATH
18889 dynamic_linker=no
18891 esac
18892 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18893 $as_echo "$dynamic_linker" >&6; }
18894 test "$dynamic_linker" = no && can_build_shared=no
18896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18897 if test "$GCC" = yes; then
18898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18901 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18902 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18903 hardcode_action_GCJ=
18904 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18905 test -n "$runpath_var_GCJ" || \
18906 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18908 # We can hardcode non-existant directories.
18909 if test "$hardcode_direct_GCJ" != no &&
18910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18911 # have to relink, otherwise we might link with an installed library
18912 # when we should be linking with a yet-to-be-installed one
18913 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18914 test "$hardcode_minus_L_GCJ" != no; then
18915 # Linking always hardcodes the temporary library directory.
18916 hardcode_action_GCJ=relink
18917 else
18918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18919 hardcode_action_GCJ=immediate
18921 else
18922 # We cannot hardcode anything, or else we can only hardcode existing
18923 # directories.
18924 hardcode_action_GCJ=unsupported
18926 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18927 $as_echo "$hardcode_action_GCJ" >&6; }
18929 if test "$hardcode_action_GCJ" = relink; then
18930 # Fast installation is not supported
18931 enable_fast_install=no
18932 elif test "$shlibpath_overrides_runpath" = yes ||
18933 test "$enable_shared" = no; then
18934 # Fast installation is not necessary
18935 enable_fast_install=needless
18939 # The else clause should only fire when bootstrapping the
18940 # libtool distribution, otherwise you forgot to ship ltmain.sh
18941 # with your package, and you will get complaints that there are
18942 # no rules to generate ltmain.sh.
18943 if test -f "$ltmain"; then
18944 # See if we are running on zsh, and set the options which allow our commands through
18945 # without removal of \ escapes.
18946 if test -n "${ZSH_VERSION+set}" ; then
18947 setopt NO_GLOB_SUBST
18949 # Now quote all the things that may contain metacharacters while being
18950 # careful not to overquote the AC_SUBSTed values. We take copies of the
18951 # variables and quote the copies for generation of the libtool script.
18952 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18953 SED SHELL STRIP \
18954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18956 deplibs_check_method reload_flag reload_cmds need_locks \
18957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18958 lt_cv_sys_global_symbol_to_c_name_address \
18959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18960 old_postinstall_cmds old_postuninstall_cmds \
18961 compiler_GCJ \
18962 CC_GCJ \
18963 LD_GCJ \
18964 lt_prog_compiler_wl_GCJ \
18965 lt_prog_compiler_pic_GCJ \
18966 lt_prog_compiler_static_GCJ \
18967 lt_prog_compiler_no_builtin_flag_GCJ \
18968 export_dynamic_flag_spec_GCJ \
18969 thread_safe_flag_spec_GCJ \
18970 whole_archive_flag_spec_GCJ \
18971 enable_shared_with_static_runtimes_GCJ \
18972 old_archive_cmds_GCJ \
18973 old_archive_from_new_cmds_GCJ \
18974 predep_objects_GCJ \
18975 postdep_objects_GCJ \
18976 predeps_GCJ \
18977 postdeps_GCJ \
18978 compiler_lib_search_path_GCJ \
18979 archive_cmds_GCJ \
18980 archive_expsym_cmds_GCJ \
18981 postinstall_cmds_GCJ \
18982 postuninstall_cmds_GCJ \
18983 old_archive_from_expsyms_cmds_GCJ \
18984 allow_undefined_flag_GCJ \
18985 no_undefined_flag_GCJ \
18986 export_symbols_cmds_GCJ \
18987 hardcode_libdir_flag_spec_GCJ \
18988 hardcode_libdir_flag_spec_ld_GCJ \
18989 hardcode_libdir_separator_GCJ \
18990 hardcode_automatic_GCJ \
18991 module_cmds_GCJ \
18992 module_expsym_cmds_GCJ \
18993 lt_cv_prog_compiler_c_o_GCJ \
18994 fix_srcfile_path_GCJ \
18995 exclude_expsyms_GCJ \
18996 include_expsyms_GCJ; do
18998 case $var in
18999 old_archive_cmds_GCJ | \
19000 old_archive_from_new_cmds_GCJ | \
19001 archive_cmds_GCJ | \
19002 archive_expsym_cmds_GCJ | \
19003 module_cmds_GCJ | \
19004 module_expsym_cmds_GCJ | \
19005 old_archive_from_expsyms_cmds_GCJ | \
19006 export_symbols_cmds_GCJ | \
19007 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19008 postinstall_cmds | postuninstall_cmds | \
19009 old_postinstall_cmds | old_postuninstall_cmds | \
19010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19011 # Double-quote double-evaled strings.
19012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19017 esac
19018 done
19020 case $lt_echo in
19021 *'\$0 --fallback-echo"')
19022 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19024 esac
19026 cfgfile="$ofile"
19028 cat <<__EOF__ >> "$cfgfile"
19029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19033 # Shell to use when invoking shell scripts.
19034 SHELL=$lt_SHELL
19036 # Whether or not to build shared libraries.
19037 build_libtool_libs=$enable_shared
19039 # Whether or not to build static libraries.
19040 build_old_libs=$enable_static
19042 # Whether or not to add -lc for building shared libraries.
19043 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19045 # Whether or not to disallow shared libs when runtime libs are static
19046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19048 # Whether or not to optimize for fast installation.
19049 fast_install=$enable_fast_install
19051 # The host system.
19052 host_alias=$host_alias
19053 host=$host
19054 host_os=$host_os
19056 # The build system.
19057 build_alias=$build_alias
19058 build=$build
19059 build_os=$build_os
19061 # An echo program that does not interpret backslashes.
19062 echo=$lt_echo
19064 # The archiver.
19065 AR=$lt_AR
19066 AR_FLAGS=$lt_AR_FLAGS
19068 # A C compiler.
19069 LTCC=$lt_LTCC
19071 # LTCC compiler flags.
19072 LTCFLAGS=$lt_LTCFLAGS
19074 # A language-specific compiler.
19075 CC=$lt_compiler_GCJ
19077 # Is the compiler the GNU C compiler?
19078 with_gcc=$GCC_GCJ
19080 # An ERE matcher.
19081 EGREP=$lt_EGREP
19083 # The linker used to build libraries.
19084 LD=$lt_LD_GCJ
19086 # Whether we need hard or soft links.
19087 LN_S=$lt_LN_S
19089 # A BSD-compatible nm program.
19090 NM=$lt_NM
19092 # A symbol stripping program
19093 STRIP=$lt_STRIP
19095 # Used to examine libraries when file_magic_cmd begins "file"
19096 MAGIC_CMD=$MAGIC_CMD
19098 # Used on cygwin: DLL creation program.
19099 DLLTOOL="$DLLTOOL"
19101 # Used on cygwin: object dumper.
19102 OBJDUMP="$OBJDUMP"
19104 # Used on cygwin: assembler.
19105 AS="$AS"
19107 # The name of the directory that contains temporary libtool files.
19108 objdir=$objdir
19110 # How to create reloadable object files.
19111 reload_flag=$lt_reload_flag
19112 reload_cmds=$lt_reload_cmds
19114 # How to pass a linker flag through the compiler.
19115 wl=$lt_lt_prog_compiler_wl_GCJ
19117 # Object file suffix (normally "o").
19118 objext="$ac_objext"
19120 # Old archive suffix (normally "a").
19121 libext="$libext"
19123 # Shared library suffix (normally ".so").
19124 shrext_cmds='$shrext_cmds'
19126 # Executable file suffix (normally "").
19127 exeext="$exeext"
19129 # Additional compiler flags for building library objects.
19130 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19131 pic_mode=$pic_mode
19133 # What is the maximum length of a command?
19134 max_cmd_len=$lt_cv_sys_max_cmd_len
19136 # Does compiler simultaneously support -c and -o options?
19137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19139 # Must we lock files when doing compilation?
19140 need_locks=$lt_need_locks
19142 # Do we need the lib prefix for modules?
19143 need_lib_prefix=$need_lib_prefix
19145 # Do we need a version for libraries?
19146 need_version=$need_version
19148 # Whether dlopen is supported.
19149 dlopen_support=$enable_dlopen
19151 # Whether dlopen of programs is supported.
19152 dlopen_self=$enable_dlopen_self
19154 # Whether dlopen of statically linked programs is supported.
19155 dlopen_self_static=$enable_dlopen_self_static
19157 # Compiler flag to prevent dynamic linking.
19158 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19160 # Compiler flag to turn off builtin functions.
19161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19163 # Compiler flag to allow reflexive dlopens.
19164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19166 # Compiler flag to generate shared objects directly from archives.
19167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19169 # Compiler flag to generate thread-safe objects.
19170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19172 # Library versioning type.
19173 version_type=$version_type
19175 # Format of library name prefix.
19176 libname_spec=$lt_libname_spec
19178 # List of archive names. First name is the real one, the rest are links.
19179 # The last name is the one that the linker finds with -lNAME.
19180 library_names_spec=$lt_library_names_spec
19182 # The coded name of the library, if different from the real name.
19183 soname_spec=$lt_soname_spec
19185 # Commands used to build and install an old-style archive.
19186 RANLIB=$lt_RANLIB
19187 old_archive_cmds=$lt_old_archive_cmds_GCJ
19188 old_postinstall_cmds=$lt_old_postinstall_cmds
19189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19191 # Create an old-style archive from a shared archive.
19192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19194 # Create a temporary old-style archive to link instead of a shared archive.
19195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19197 # Commands used to build and install a shared archive.
19198 archive_cmds=$lt_archive_cmds_GCJ
19199 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200 postinstall_cmds=$lt_postinstall_cmds
19201 postuninstall_cmds=$lt_postuninstall_cmds
19203 # Commands used to build a loadable module (assumed same as above if empty)
19204 module_cmds=$lt_module_cmds_GCJ
19205 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19207 # Commands to strip libraries.
19208 old_striplib=$lt_old_striplib
19209 striplib=$lt_striplib
19211 # Dependencies to place before the objects being linked to create a
19212 # shared library.
19213 predep_objects=$lt_predep_objects_GCJ
19215 # Dependencies to place after the objects being linked to create a
19216 # shared library.
19217 postdep_objects=$lt_postdep_objects_GCJ
19219 # Dependencies to place before the objects being linked to create a
19220 # shared library.
19221 predeps=$lt_predeps_GCJ
19223 # Dependencies to place after the objects being linked to create a
19224 # shared library.
19225 postdeps=$lt_postdeps_GCJ
19227 # The library search path used internally by the compiler when linking
19228 # a shared library.
19229 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19231 # Method to check whether dependent libraries are shared objects.
19232 deplibs_check_method=$lt_deplibs_check_method
19234 # Command to use when deplibs_check_method == file_magic.
19235 file_magic_cmd=$lt_file_magic_cmd
19237 # Flag that allows shared libraries with undefined symbols to be built.
19238 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19240 # Flag that forces no undefined symbols.
19241 no_undefined_flag=$lt_no_undefined_flag_GCJ
19243 # Commands used to finish a libtool library installation in a directory.
19244 finish_cmds=$lt_finish_cmds
19246 # Same as above, but a single script fragment to be evaled but not shown.
19247 finish_eval=$lt_finish_eval
19249 # Take the output of nm and produce a listing of raw symbols and C names.
19250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19252 # Transform the output of nm in a proper C declaration
19253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19255 # Transform the output of nm in a C name address pair
19256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19258 # This is the shared library runtime path variable.
19259 runpath_var=$runpath_var
19261 # This is the shared library path variable.
19262 shlibpath_var=$shlibpath_var
19264 # Is shlibpath searched before the hard-coded library search path?
19265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19267 # How to hardcode a shared library path into an executable.
19268 hardcode_action=$hardcode_action_GCJ
19270 # Whether we should hardcode library paths into libraries.
19271 hardcode_into_libs=$hardcode_into_libs
19273 # Flag to hardcode \$libdir into a binary during linking.
19274 # This must work even if \$libdir does not exist.
19275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19277 # If ld is used when linking, flag to hardcode \$libdir into
19278 # a binary during linking. This must work even if \$libdir does
19279 # not exist.
19280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19282 # Whether we need a single -rpath flag with a separated argument.
19283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19286 # resulting binary.
19287 hardcode_direct=$hardcode_direct_GCJ
19289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19290 # resulting binary.
19291 hardcode_minus_L=$hardcode_minus_L_GCJ
19293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19294 # the resulting binary.
19295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19297 # Set to yes if building a shared library automatically hardcodes DIR into the library
19298 # and all subsequent libraries and executables linked against it.
19299 hardcode_automatic=$hardcode_automatic_GCJ
19301 # Variables whose values should be saved in libtool wrapper scripts and
19302 # restored at relink time.
19303 variables_saved_for_relink="$variables_saved_for_relink"
19305 # Whether libtool must link a program against all its dependency libraries.
19306 link_all_deplibs=$link_all_deplibs_GCJ
19308 # Compile-time system search path for libraries
19309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19311 # Run-time system search path for libraries
19312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19314 # Fix the shell variable \$srcfile for the compiler.
19315 fix_srcfile_path=$lt_fix_srcfile_path
19317 # Set to yes if exported symbols are required.
19318 always_export_symbols=$always_export_symbols_GCJ
19320 # The commands to list exported symbols.
19321 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19323 # The commands to extract the exported symbol list from a shared archive.
19324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19326 # Symbols that should not be listed in the preloaded symbols.
19327 exclude_expsyms=$lt_exclude_expsyms_GCJ
19329 # Symbols that must always be exported.
19330 include_expsyms=$lt_include_expsyms_GCJ
19332 # ### END LIBTOOL TAG CONFIG: $tagname
19334 __EOF__
19337 else
19338 # If there is no Makefile yet, we rely on a make rule to execute
19339 # `config.status --recheck' to rerun these tests and create the
19340 # libtool script then.
19341 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19342 if test -f "$ltmain_in"; then
19343 test -f Makefile && make "$ltmain"
19348 ac_ext=c
19349 ac_cpp='$CPP $CPPFLAGS'
19350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19354 CC="$lt_save_CC"
19356 else
19357 tagname=""
19364 # Source file extension for RC test sources.
19365 ac_ext=rc
19367 # Object file extension for compiled RC test sources.
19368 objext=o
19369 objext_RC=$objext
19371 # Code to be used in simple compile tests
19372 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19374 # Code to be used in simple link tests
19375 lt_simple_link_test_code="$lt_simple_compile_test_code"
19377 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19379 # If no C compiler was specified, use CC.
19380 LTCC=${LTCC-"$CC"}
19382 # If no C compiler flags were specified, use CFLAGS.
19383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19385 # Allow CC to be a program name with arguments.
19386 compiler=$CC
19389 # save warnings/boilerplate of simple test code
19390 ac_outfile=conftest.$ac_objext
19391 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19392 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19393 _lt_compiler_boilerplate=`cat conftest.err`
19394 $rm conftest*
19396 ac_outfile=conftest.$ac_objext
19397 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19398 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19399 _lt_linker_boilerplate=`cat conftest.err`
19400 $rm conftest*
19403 # Allow CC to be a program name with arguments.
19404 lt_save_CC="$CC"
19405 CC=${RC-"windres"}
19406 compiler=$CC
19407 compiler_RC=$CC
19408 for cc_temp in $compiler""; do
19409 case $cc_temp in
19410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19412 \-*) ;;
19413 *) break;;
19414 esac
19415 done
19416 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19418 lt_cv_prog_compiler_c_o_RC=yes
19420 # The else clause should only fire when bootstrapping the
19421 # libtool distribution, otherwise you forgot to ship ltmain.sh
19422 # with your package, and you will get complaints that there are
19423 # no rules to generate ltmain.sh.
19424 if test -f "$ltmain"; then
19425 # See if we are running on zsh, and set the options which allow our commands through
19426 # without removal of \ escapes.
19427 if test -n "${ZSH_VERSION+set}" ; then
19428 setopt NO_GLOB_SUBST
19430 # Now quote all the things that may contain metacharacters while being
19431 # careful not to overquote the AC_SUBSTed values. We take copies of the
19432 # variables and quote the copies for generation of the libtool script.
19433 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19434 SED SHELL STRIP \
19435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19437 deplibs_check_method reload_flag reload_cmds need_locks \
19438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19439 lt_cv_sys_global_symbol_to_c_name_address \
19440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19441 old_postinstall_cmds old_postuninstall_cmds \
19442 compiler_RC \
19443 CC_RC \
19444 LD_RC \
19445 lt_prog_compiler_wl_RC \
19446 lt_prog_compiler_pic_RC \
19447 lt_prog_compiler_static_RC \
19448 lt_prog_compiler_no_builtin_flag_RC \
19449 export_dynamic_flag_spec_RC \
19450 thread_safe_flag_spec_RC \
19451 whole_archive_flag_spec_RC \
19452 enable_shared_with_static_runtimes_RC \
19453 old_archive_cmds_RC \
19454 old_archive_from_new_cmds_RC \
19455 predep_objects_RC \
19456 postdep_objects_RC \
19457 predeps_RC \
19458 postdeps_RC \
19459 compiler_lib_search_path_RC \
19460 archive_cmds_RC \
19461 archive_expsym_cmds_RC \
19462 postinstall_cmds_RC \
19463 postuninstall_cmds_RC \
19464 old_archive_from_expsyms_cmds_RC \
19465 allow_undefined_flag_RC \
19466 no_undefined_flag_RC \
19467 export_symbols_cmds_RC \
19468 hardcode_libdir_flag_spec_RC \
19469 hardcode_libdir_flag_spec_ld_RC \
19470 hardcode_libdir_separator_RC \
19471 hardcode_automatic_RC \
19472 module_cmds_RC \
19473 module_expsym_cmds_RC \
19474 lt_cv_prog_compiler_c_o_RC \
19475 fix_srcfile_path_RC \
19476 exclude_expsyms_RC \
19477 include_expsyms_RC; do
19479 case $var in
19480 old_archive_cmds_RC | \
19481 old_archive_from_new_cmds_RC | \
19482 archive_cmds_RC | \
19483 archive_expsym_cmds_RC | \
19484 module_cmds_RC | \
19485 module_expsym_cmds_RC | \
19486 old_archive_from_expsyms_cmds_RC | \
19487 export_symbols_cmds_RC | \
19488 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19489 postinstall_cmds | postuninstall_cmds | \
19490 old_postinstall_cmds | old_postuninstall_cmds | \
19491 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19492 # Double-quote double-evaled strings.
19493 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19498 esac
19499 done
19501 case $lt_echo in
19502 *'\$0 --fallback-echo"')
19503 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19505 esac
19507 cfgfile="$ofile"
19509 cat <<__EOF__ >> "$cfgfile"
19510 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19514 # Shell to use when invoking shell scripts.
19515 SHELL=$lt_SHELL
19517 # Whether or not to build shared libraries.
19518 build_libtool_libs=$enable_shared
19520 # Whether or not to build static libraries.
19521 build_old_libs=$enable_static
19523 # Whether or not to add -lc for building shared libraries.
19524 build_libtool_need_lc=$archive_cmds_need_lc_RC
19526 # Whether or not to disallow shared libs when runtime libs are static
19527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19529 # Whether or not to optimize for fast installation.
19530 fast_install=$enable_fast_install
19532 # The host system.
19533 host_alias=$host_alias
19534 host=$host
19535 host_os=$host_os
19537 # The build system.
19538 build_alias=$build_alias
19539 build=$build
19540 build_os=$build_os
19542 # An echo program that does not interpret backslashes.
19543 echo=$lt_echo
19545 # The archiver.
19546 AR=$lt_AR
19547 AR_FLAGS=$lt_AR_FLAGS
19549 # A C compiler.
19550 LTCC=$lt_LTCC
19552 # LTCC compiler flags.
19553 LTCFLAGS=$lt_LTCFLAGS
19555 # A language-specific compiler.
19556 CC=$lt_compiler_RC
19558 # Is the compiler the GNU C compiler?
19559 with_gcc=$GCC_RC
19561 # An ERE matcher.
19562 EGREP=$lt_EGREP
19564 # The linker used to build libraries.
19565 LD=$lt_LD_RC
19567 # Whether we need hard or soft links.
19568 LN_S=$lt_LN_S
19570 # A BSD-compatible nm program.
19571 NM=$lt_NM
19573 # A symbol stripping program
19574 STRIP=$lt_STRIP
19576 # Used to examine libraries when file_magic_cmd begins "file"
19577 MAGIC_CMD=$MAGIC_CMD
19579 # Used on cygwin: DLL creation program.
19580 DLLTOOL="$DLLTOOL"
19582 # Used on cygwin: object dumper.
19583 OBJDUMP="$OBJDUMP"
19585 # Used on cygwin: assembler.
19586 AS="$AS"
19588 # The name of the directory that contains temporary libtool files.
19589 objdir=$objdir
19591 # How to create reloadable object files.
19592 reload_flag=$lt_reload_flag
19593 reload_cmds=$lt_reload_cmds
19595 # How to pass a linker flag through the compiler.
19596 wl=$lt_lt_prog_compiler_wl_RC
19598 # Object file suffix (normally "o").
19599 objext="$ac_objext"
19601 # Old archive suffix (normally "a").
19602 libext="$libext"
19604 # Shared library suffix (normally ".so").
19605 shrext_cmds='$shrext_cmds'
19607 # Executable file suffix (normally "").
19608 exeext="$exeext"
19610 # Additional compiler flags for building library objects.
19611 pic_flag=$lt_lt_prog_compiler_pic_RC
19612 pic_mode=$pic_mode
19614 # What is the maximum length of a command?
19615 max_cmd_len=$lt_cv_sys_max_cmd_len
19617 # Does compiler simultaneously support -c and -o options?
19618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19620 # Must we lock files when doing compilation?
19621 need_locks=$lt_need_locks
19623 # Do we need the lib prefix for modules?
19624 need_lib_prefix=$need_lib_prefix
19626 # Do we need a version for libraries?
19627 need_version=$need_version
19629 # Whether dlopen is supported.
19630 dlopen_support=$enable_dlopen
19632 # Whether dlopen of programs is supported.
19633 dlopen_self=$enable_dlopen_self
19635 # Whether dlopen of statically linked programs is supported.
19636 dlopen_self_static=$enable_dlopen_self_static
19638 # Compiler flag to prevent dynamic linking.
19639 link_static_flag=$lt_lt_prog_compiler_static_RC
19641 # Compiler flag to turn off builtin functions.
19642 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19644 # Compiler flag to allow reflexive dlopens.
19645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19647 # Compiler flag to generate shared objects directly from archives.
19648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19650 # Compiler flag to generate thread-safe objects.
19651 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19653 # Library versioning type.
19654 version_type=$version_type
19656 # Format of library name prefix.
19657 libname_spec=$lt_libname_spec
19659 # List of archive names. First name is the real one, the rest are links.
19660 # The last name is the one that the linker finds with -lNAME.
19661 library_names_spec=$lt_library_names_spec
19663 # The coded name of the library, if different from the real name.
19664 soname_spec=$lt_soname_spec
19666 # Commands used to build and install an old-style archive.
19667 RANLIB=$lt_RANLIB
19668 old_archive_cmds=$lt_old_archive_cmds_RC
19669 old_postinstall_cmds=$lt_old_postinstall_cmds
19670 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19672 # Create an old-style archive from a shared archive.
19673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19675 # Create a temporary old-style archive to link instead of a shared archive.
19676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19678 # Commands used to build and install a shared archive.
19679 archive_cmds=$lt_archive_cmds_RC
19680 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19681 postinstall_cmds=$lt_postinstall_cmds
19682 postuninstall_cmds=$lt_postuninstall_cmds
19684 # Commands used to build a loadable module (assumed same as above if empty)
19685 module_cmds=$lt_module_cmds_RC
19686 module_expsym_cmds=$lt_module_expsym_cmds_RC
19688 # Commands to strip libraries.
19689 old_striplib=$lt_old_striplib
19690 striplib=$lt_striplib
19692 # Dependencies to place before the objects being linked to create a
19693 # shared library.
19694 predep_objects=$lt_predep_objects_RC
19696 # Dependencies to place after the objects being linked to create a
19697 # shared library.
19698 postdep_objects=$lt_postdep_objects_RC
19700 # Dependencies to place before the objects being linked to create a
19701 # shared library.
19702 predeps=$lt_predeps_RC
19704 # Dependencies to place after the objects being linked to create a
19705 # shared library.
19706 postdeps=$lt_postdeps_RC
19708 # The library search path used internally by the compiler when linking
19709 # a shared library.
19710 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19712 # Method to check whether dependent libraries are shared objects.
19713 deplibs_check_method=$lt_deplibs_check_method
19715 # Command to use when deplibs_check_method == file_magic.
19716 file_magic_cmd=$lt_file_magic_cmd
19718 # Flag that allows shared libraries with undefined symbols to be built.
19719 allow_undefined_flag=$lt_allow_undefined_flag_RC
19721 # Flag that forces no undefined symbols.
19722 no_undefined_flag=$lt_no_undefined_flag_RC
19724 # Commands used to finish a libtool library installation in a directory.
19725 finish_cmds=$lt_finish_cmds
19727 # Same as above, but a single script fragment to be evaled but not shown.
19728 finish_eval=$lt_finish_eval
19730 # Take the output of nm and produce a listing of raw symbols and C names.
19731 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19733 # Transform the output of nm in a proper C declaration
19734 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19736 # Transform the output of nm in a C name address pair
19737 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19739 # This is the shared library runtime path variable.
19740 runpath_var=$runpath_var
19742 # This is the shared library path variable.
19743 shlibpath_var=$shlibpath_var
19745 # Is shlibpath searched before the hard-coded library search path?
19746 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19748 # How to hardcode a shared library path into an executable.
19749 hardcode_action=$hardcode_action_RC
19751 # Whether we should hardcode library paths into libraries.
19752 hardcode_into_libs=$hardcode_into_libs
19754 # Flag to hardcode \$libdir into a binary during linking.
19755 # This must work even if \$libdir does not exist.
19756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19758 # If ld is used when linking, flag to hardcode \$libdir into
19759 # a binary during linking. This must work even if \$libdir does
19760 # not exist.
19761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19763 # Whether we need a single -rpath flag with a separated argument.
19764 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19766 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19767 # resulting binary.
19768 hardcode_direct=$hardcode_direct_RC
19770 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19771 # resulting binary.
19772 hardcode_minus_L=$hardcode_minus_L_RC
19774 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19775 # the resulting binary.
19776 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19778 # Set to yes if building a shared library automatically hardcodes DIR into the library
19779 # and all subsequent libraries and executables linked against it.
19780 hardcode_automatic=$hardcode_automatic_RC
19782 # Variables whose values should be saved in libtool wrapper scripts and
19783 # restored at relink time.
19784 variables_saved_for_relink="$variables_saved_for_relink"
19786 # Whether libtool must link a program against all its dependency libraries.
19787 link_all_deplibs=$link_all_deplibs_RC
19789 # Compile-time system search path for libraries
19790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19792 # Run-time system search path for libraries
19793 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19795 # Fix the shell variable \$srcfile for the compiler.
19796 fix_srcfile_path=$lt_fix_srcfile_path
19798 # Set to yes if exported symbols are required.
19799 always_export_symbols=$always_export_symbols_RC
19801 # The commands to list exported symbols.
19802 export_symbols_cmds=$lt_export_symbols_cmds_RC
19804 # The commands to extract the exported symbol list from a shared archive.
19805 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19807 # Symbols that should not be listed in the preloaded symbols.
19808 exclude_expsyms=$lt_exclude_expsyms_RC
19810 # Symbols that must always be exported.
19811 include_expsyms=$lt_include_expsyms_RC
19813 # ### END LIBTOOL TAG CONFIG: $tagname
19815 __EOF__
19818 else
19819 # If there is no Makefile yet, we rely on a make rule to execute
19820 # `config.status --recheck' to rerun these tests and create the
19821 # libtool script then.
19822 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19823 if test -f "$ltmain_in"; then
19824 test -f Makefile && make "$ltmain"
19829 ac_ext=c
19830 ac_cpp='$CPP $CPPFLAGS'
19831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19835 CC="$lt_save_CC"
19840 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19841 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19842 { (exit 1); exit 1; }; }
19844 esac
19846 # Append the new tag name to the list of available tags.
19847 if test -n "$tagname" ; then
19848 available_tags="$available_tags $tagname"
19851 done
19852 IFS="$lt_save_ifs"
19854 # Now substitute the updated list of available tags.
19855 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19856 mv "${ofile}T" "$ofile"
19857 chmod +x "$ofile"
19858 else
19859 rm -f "${ofile}T"
19860 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19861 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19862 { (exit 1); exit 1; }; }
19868 # This can be used to rebuild libtool when needed
19869 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19871 # Always use our own libtool.
19872 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19874 # Prevent multiple expansion
19896 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19897 $as_echo_n "checking for ANSI C header files... " >&6; }
19898 if test "${ac_cv_header_stdc+set}" = set; then
19899 $as_echo_n "(cached) " >&6
19900 else
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907 #include <stdlib.h>
19908 #include <stdarg.h>
19909 #include <string.h>
19910 #include <float.h>
19913 main ()
19917 return 0;
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925 esac
19926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19927 $as_echo "$ac_try_echo") >&5
19928 (eval "$ac_compile") 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest.$ac_objext; then
19938 ac_cv_header_stdc=yes
19939 else
19940 $as_echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 ac_cv_header_stdc=no
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 if test $ac_cv_header_stdc = yes; then
19949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h. */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 #include <string.h>
19958 _ACEOF
19959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19960 $EGREP "memchr" >/dev/null 2>&1; then
19962 else
19963 ac_cv_header_stdc=no
19965 rm -f conftest*
19969 if test $ac_cv_header_stdc = yes; then
19970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h. */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19977 #include <stdlib.h>
19979 _ACEOF
19980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19981 $EGREP "free" >/dev/null 2>&1; then
19983 else
19984 ac_cv_header_stdc=no
19986 rm -f conftest*
19990 if test $ac_cv_header_stdc = yes; then
19991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19992 if test "$cross_compiling" = yes; then
19994 else
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h. */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 #include <ctype.h>
20002 #include <stdlib.h>
20003 #if ((' ' & 0x0FF) == 0x020)
20004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20006 #else
20007 # define ISLOWER(c) \
20008 (('a' <= (c) && (c) <= 'i') \
20009 || ('j' <= (c) && (c) <= 'r') \
20010 || ('s' <= (c) && (c) <= 'z'))
20011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20012 #endif
20014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20016 main ()
20018 int i;
20019 for (i = 0; i < 256; i++)
20020 if (XOR (islower (i), ISLOWER (i))
20021 || toupper (i) != TOUPPER (i))
20022 return 2;
20023 return 0;
20025 _ACEOF
20026 rm -f conftest$ac_exeext
20027 if { (ac_try="$ac_link"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20033 $as_echo "$ac_try_echo") >&5
20034 (eval "$ac_link") 2>&5
20035 ac_status=$?
20036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041 esac
20042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20043 $as_echo "$ac_try_echo") >&5
20044 (eval "$ac_try") 2>&5
20045 ac_status=$?
20046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; }; then
20049 else
20050 $as_echo "$as_me: program exited with status $ac_status" >&5
20051 $as_echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ( exit $ac_status )
20055 ac_cv_header_stdc=no
20057 rm -rf conftest.dSYM
20058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20064 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20065 $as_echo "$ac_cv_header_stdc" >&6; }
20066 if test $ac_cv_header_stdc = yes; then
20068 cat >>confdefs.h <<\_ACEOF
20069 #define STDC_HEADERS 1
20070 _ACEOF
20078 for ac_header in sys/types.h sys/param.h sys/stat.h sys/time.h
20080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20083 $as_echo_n "checking for $ac_header... " >&6; }
20084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20085 $as_echo_n "(cached) " >&6
20087 ac_res=`eval 'as_val=${'$as_ac_Header'}
20088 $as_echo "$as_val"'`
20089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20090 $as_echo "$ac_res" >&6; }
20091 else
20092 # Is the header compilable?
20093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20094 $as_echo_n "checking $ac_header usability... " >&6; }
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h. */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 $ac_includes_default
20102 #include <$ac_header>
20103 _ACEOF
20104 rm -f conftest.$ac_objext
20105 if { (ac_try="$ac_compile"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109 esac
20110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20111 $as_echo "$ac_try_echo") >&5
20112 (eval "$ac_compile") 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } && {
20119 test -z "$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 } && test -s conftest.$ac_objext; then
20122 ac_header_compiler=yes
20123 else
20124 $as_echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ac_header_compiler=no
20130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20132 $as_echo "$ac_header_compiler" >&6; }
20134 # Is the header present?
20135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20136 $as_echo_n "checking $ac_header presence... " >&6; }
20137 cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h. */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20143 #include <$ac_header>
20144 _ACEOF
20145 if { (ac_try="$ac_cpp conftest.$ac_ext"
20146 case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149 esac
20150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20151 $as_echo "$ac_try_echo") >&5
20152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20153 ac_status=$?
20154 grep -v '^ *+' conftest.er1 >conftest.err
20155 rm -f conftest.er1
20156 cat conftest.err >&5
20157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } >/dev/null && {
20159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20160 test ! -s conftest.err
20161 }; then
20162 ac_header_preproc=yes
20163 else
20164 $as_echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ac_header_preproc=no
20170 rm -f conftest.err conftest.$ac_ext
20171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20172 $as_echo "$ac_header_preproc" >&6; }
20174 # So? What about this header?
20175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20176 yes:no: )
20177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20181 ac_header_preproc=yes
20183 no:yes:* )
20184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20187 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20191 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20196 ( cat <<\_ASBOX
20197 ## ----------------------------------------------- ##
20198 ## Report this to Alistair Crooks <agc@NetBSD.org> ##
20199 ## ----------------------------------------------- ##
20200 _ASBOX
20201 ) | sed "s/^/$as_me: WARNING: /" >&2
20203 esac
20204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20205 $as_echo_n "checking for $ac_header... " >&6; }
20206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20207 $as_echo_n "(cached) " >&6
20208 else
20209 eval "$as_ac_Header=\$ac_header_preproc"
20211 ac_res=`eval 'as_val=${'$as_ac_Header'}
20212 $as_echo "$as_val"'`
20213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20214 $as_echo "$ac_res" >&6; }
20217 as_val=`eval 'as_val=${'$as_ac_Header'}
20218 $as_echo "$as_val"'`
20219 if test "x$as_val" = x""yes; then
20220 cat >>confdefs.h <<_ACEOF
20221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20222 _ACEOF
20226 done
20233 for ac_header in sys/mman.h sys/uio.h sys/socket.h sys/time.h sys/vfs.h
20235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20238 $as_echo_n "checking for $ac_header... " >&6; }
20239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20240 $as_echo_n "(cached) " >&6
20242 ac_res=`eval 'as_val=${'$as_ac_Header'}
20243 $as_echo "$as_val"'`
20244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20245 $as_echo "$ac_res" >&6; }
20246 else
20247 # Is the header compilable?
20248 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20249 $as_echo_n "checking $ac_header usability... " >&6; }
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 $ac_includes_default
20257 #include <$ac_header>
20258 _ACEOF
20259 rm -f conftest.$ac_objext
20260 if { (ac_try="$ac_compile"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264 esac
20265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20266 $as_echo "$ac_try_echo") >&5
20267 (eval "$ac_compile") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest.$ac_objext; then
20277 ac_header_compiler=yes
20278 else
20279 $as_echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_header_compiler=no
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20287 $as_echo "$ac_header_compiler" >&6; }
20289 # Is the header present?
20290 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20291 $as_echo_n "checking $ac_header presence... " >&6; }
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h. */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298 #include <$ac_header>
20299 _ACEOF
20300 if { (ac_try="$ac_cpp conftest.$ac_ext"
20301 case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20304 esac
20305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20306 $as_echo "$ac_try_echo") >&5
20307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } >/dev/null && {
20314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 }; then
20317 ac_header_preproc=yes
20318 else
20319 $as_echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20322 ac_header_preproc=no
20325 rm -f conftest.err conftest.$ac_ext
20326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20327 $as_echo "$ac_header_preproc" >&6; }
20329 # So? What about this header?
20330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20331 yes:no: )
20332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20333 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20336 ac_header_preproc=yes
20338 no:yes:* )
20339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20340 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20342 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20344 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20346 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20350 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20351 ( cat <<\_ASBOX
20352 ## ----------------------------------------------- ##
20353 ## Report this to Alistair Crooks <agc@NetBSD.org> ##
20354 ## ----------------------------------------------- ##
20355 _ASBOX
20356 ) | sed "s/^/$as_me: WARNING: /" >&2
20358 esac
20359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20360 $as_echo_n "checking for $ac_header... " >&6; }
20361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20362 $as_echo_n "(cached) " >&6
20363 else
20364 eval "$as_ac_Header=\$ac_header_preproc"
20366 ac_res=`eval 'as_val=${'$as_ac_Header'}
20367 $as_echo "$as_val"'`
20368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20369 $as_echo "$ac_res" >&6; }
20372 as_val=`eval 'as_val=${'$as_ac_Header'}
20373 $as_echo "$as_val"'`
20374 if test "x$as_val" = x""yes; then
20375 cat >>confdefs.h <<_ACEOF
20376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20377 _ACEOF
20381 done
20388 for ac_header in arpa/inet.h netinet/in.h netinet/tcp.h netdb.h poll.h
20390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20392 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20393 $as_echo_n "checking for $ac_header... " >&6; }
20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20395 $as_echo_n "(cached) " >&6
20397 ac_res=`eval 'as_val=${'$as_ac_Header'}
20398 $as_echo "$as_val"'`
20399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20400 $as_echo "$ac_res" >&6; }
20401 else
20402 # Is the header compilable?
20403 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20404 $as_echo_n "checking $ac_header usability... " >&6; }
20405 cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h. */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20411 $ac_includes_default
20412 #include <$ac_header>
20413 _ACEOF
20414 rm -f conftest.$ac_objext
20415 if { (ac_try="$ac_compile"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20419 esac
20420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20421 $as_echo "$ac_try_echo") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 ac_header_compiler=yes
20433 else
20434 $as_echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 ac_header_compiler=no
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20442 $as_echo "$ac_header_compiler" >&6; }
20444 # Is the header present?
20445 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20446 $as_echo_n "checking $ac_header presence... " >&6; }
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h. */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 #include <$ac_header>
20454 _ACEOF
20455 if { (ac_try="$ac_cpp conftest.$ac_ext"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459 esac
20460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20461 $as_echo "$ac_try_echo") >&5
20462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20463 ac_status=$?
20464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
20467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } >/dev/null && {
20469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20470 test ! -s conftest.err
20471 }; then
20472 ac_header_preproc=yes
20473 else
20474 $as_echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 ac_header_preproc=no
20480 rm -f conftest.err conftest.$ac_ext
20481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20482 $as_echo "$ac_header_preproc" >&6; }
20484 # So? What about this header?
20485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20486 yes:no: )
20487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20488 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20491 ac_header_preproc=yes
20493 no:yes:* )
20494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20495 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20497 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20499 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20501 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20503 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20505 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20506 ( cat <<\_ASBOX
20507 ## ----------------------------------------------- ##
20508 ## Report this to Alistair Crooks <agc@NetBSD.org> ##
20509 ## ----------------------------------------------- ##
20510 _ASBOX
20511 ) | sed "s/^/$as_me: WARNING: /" >&2
20513 esac
20514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20515 $as_echo_n "checking for $ac_header... " >&6; }
20516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20517 $as_echo_n "(cached) " >&6
20518 else
20519 eval "$as_ac_Header=\$ac_header_preproc"
20521 ac_res=`eval 'as_val=${'$as_ac_Header'}
20522 $as_echo "$as_val"'`
20523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20524 $as_echo "$ac_res" >&6; }
20527 as_val=`eval 'as_val=${'$as_ac_Header'}
20528 $as_echo "$as_val"'`
20529 if test "x$as_val" = x""yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20532 _ACEOF
20536 done
20542 for ac_header in asm/byteorder.h sys/bswap.h sys/byteorder.h sys/select.h
20544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20547 $as_echo_n "checking for $ac_header... " >&6; }
20548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20549 $as_echo_n "(cached) " >&6
20551 ac_res=`eval 'as_val=${'$as_ac_Header'}
20552 $as_echo "$as_val"'`
20553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20554 $as_echo "$ac_res" >&6; }
20555 else
20556 # Is the header compilable?
20557 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20558 $as_echo_n "checking $ac_header usability... " >&6; }
20559 cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h. */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 $ac_includes_default
20566 #include <$ac_header>
20567 _ACEOF
20568 rm -f conftest.$ac_objext
20569 if { (ac_try="$ac_compile"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20573 esac
20574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575 $as_echo "$ac_try_echo") >&5
20576 (eval "$ac_compile") 2>conftest.er1
20577 ac_status=$?
20578 grep -v '^ *+' conftest.er1 >conftest.err
20579 rm -f conftest.er1
20580 cat conftest.err >&5
20581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && {
20583 test -z "$ac_c_werror_flag" ||
20584 test ! -s conftest.err
20585 } && test -s conftest.$ac_objext; then
20586 ac_header_compiler=yes
20587 else
20588 $as_echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_header_compiler=no
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20596 $as_echo "$ac_header_compiler" >&6; }
20598 # Is the header present?
20599 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20600 $as_echo_n "checking $ac_header presence... " >&6; }
20601 cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h. */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20607 #include <$ac_header>
20608 _ACEOF
20609 if { (ac_try="$ac_cpp conftest.$ac_ext"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20615 $as_echo "$ac_try_echo") >&5
20616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } >/dev/null && {
20623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20625 }; then
20626 ac_header_preproc=yes
20627 else
20628 $as_echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_header_preproc=no
20634 rm -f conftest.err conftest.$ac_ext
20635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20636 $as_echo "$ac_header_preproc" >&6; }
20638 # So? What about this header?
20639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20640 yes:no: )
20641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20642 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20645 ac_header_preproc=yes
20647 no:yes:* )
20648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20649 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20651 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20653 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20655 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20659 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20660 ( cat <<\_ASBOX
20661 ## ----------------------------------------------- ##
20662 ## Report this to Alistair Crooks <agc@NetBSD.org> ##
20663 ## ----------------------------------------------- ##
20664 _ASBOX
20665 ) | sed "s/^/$as_me: WARNING: /" >&2
20667 esac
20668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20669 $as_echo_n "checking for $ac_header... " >&6; }
20670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671 $as_echo_n "(cached) " >&6
20672 else
20673 eval "$as_ac_Header=\$ac_header_preproc"
20675 ac_res=`eval 'as_val=${'$as_ac_Header'}
20676 $as_echo "$as_val"'`
20677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20678 $as_echo "$ac_res" >&6; }
20681 as_val=`eval 'as_val=${'$as_ac_Header'}
20682 $as_echo "$as_val"'`
20683 if test "x$as_val" = x""yes; then
20684 cat >>confdefs.h <<_ACEOF
20685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20686 _ACEOF
20690 done
20695 for ac_header in libkern/OSByteOrder.h byteswap.h machine/endian.h
20697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20700 $as_echo_n "checking for $ac_header... " >&6; }
20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20702 $as_echo_n "(cached) " >&6
20704 ac_res=`eval 'as_val=${'$as_ac_Header'}
20705 $as_echo "$as_val"'`
20706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20707 $as_echo "$ac_res" >&6; }
20708 else
20709 # Is the header compilable?
20710 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20711 $as_echo_n "checking $ac_header usability... " >&6; }
20712 cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h. */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20718 $ac_includes_default
20719 #include <$ac_header>
20720 _ACEOF
20721 rm -f conftest.$ac_objext
20722 if { (ac_try="$ac_compile"
20723 case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20726 esac
20727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20728 $as_echo "$ac_try_echo") >&5
20729 (eval "$ac_compile") 2>conftest.er1
20730 ac_status=$?
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
20734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } && {
20736 test -z "$ac_c_werror_flag" ||
20737 test ! -s conftest.err
20738 } && test -s conftest.$ac_objext; then
20739 ac_header_compiler=yes
20740 else
20741 $as_echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 ac_header_compiler=no
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20749 $as_echo "$ac_header_compiler" >&6; }
20751 # Is the header present?
20752 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20753 $as_echo_n "checking $ac_header presence... " >&6; }
20754 cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h. */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 #include <$ac_header>
20761 _ACEOF
20762 if { (ac_try="$ac_cpp conftest.$ac_ext"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20766 esac
20767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20768 $as_echo "$ac_try_echo") >&5
20769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } >/dev/null && {
20776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 }; then
20779 ac_header_preproc=yes
20780 else
20781 $as_echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_header_preproc=no
20787 rm -f conftest.err conftest.$ac_ext
20788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20789 $as_echo "$ac_header_preproc" >&6; }
20791 # So? What about this header?
20792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20793 yes:no: )
20794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20795 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20798 ac_header_preproc=yes
20800 no:yes:* )
20801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20802 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20804 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20806 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20808 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20810 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20812 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20813 ( cat <<\_ASBOX
20814 ## ----------------------------------------------- ##
20815 ## Report this to Alistair Crooks <agc@NetBSD.org> ##
20816 ## ----------------------------------------------- ##
20817 _ASBOX
20818 ) | sed "s/^/$as_me: WARNING: /" >&2
20820 esac
20821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20822 $as_echo_n "checking for $ac_header... " >&6; }
20823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20824 $as_echo_n "(cached) " >&6
20825 else
20826 eval "$as_ac_Header=\$ac_header_preproc"
20828 ac_res=`eval 'as_val=${'$as_ac_Header'}
20829 $as_echo "$as_val"'`
20830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20831 $as_echo "$ac_res" >&6; }
20834 as_val=`eval 'as_val=${'$as_ac_Header'}
20835 $as_echo "$as_val"'`
20836 if test "x$as_val" = x""yes; then
20837 cat >>confdefs.h <<_ACEOF
20838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20839 _ACEOF
20843 done
20852 for ac_header in ctype.h errno.h fcntl.h pthread.h pwd.h signal.h stdint.h
20854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20856 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20857 $as_echo_n "checking for $ac_header... " >&6; }
20858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20859 $as_echo_n "(cached) " >&6
20861 ac_res=`eval 'as_val=${'$as_ac_Header'}
20862 $as_echo "$as_val"'`
20863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20864 $as_echo "$ac_res" >&6; }
20865 else
20866 # Is the header compilable?
20867 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20868 $as_echo_n "checking $ac_header usability... " >&6; }
20869 cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h. */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 $ac_includes_default
20876 #include <$ac_header>
20877 _ACEOF
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20883 esac
20884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20885 $as_echo "$ac_try_echo") >&5
20886 (eval "$ac_compile") 2>conftest.er1
20887 ac_status=$?
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
20891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } && {
20893 test -z "$ac_c_werror_flag" ||
20894 test ! -s conftest.err
20895 } && test -s conftest.$ac_objext; then
20896 ac_header_compiler=yes
20897 else
20898 $as_echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901 ac_header_compiler=no
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20906 $as_echo "$ac_header_compiler" >&6; }
20908 # Is the header present?
20909 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20910 $as_echo_n "checking $ac_header presence... " >&6; }
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 #include <$ac_header>
20918 _ACEOF
20919 if { (ac_try="$ac_cpp conftest.$ac_ext"
20920 case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923 esac
20924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20925 $as_echo "$ac_try_echo") >&5
20926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20927 ac_status=$?
20928 grep -v '^ *+' conftest.er1 >conftest.err
20929 rm -f conftest.er1
20930 cat conftest.err >&5
20931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } >/dev/null && {
20933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20934 test ! -s conftest.err
20935 }; then
20936 ac_header_preproc=yes
20937 else
20938 $as_echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 ac_header_preproc=no
20944 rm -f conftest.err conftest.$ac_ext
20945 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20946 $as_echo "$ac_header_preproc" >&6; }
20948 # So? What about this header?
20949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20950 yes:no: )
20951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20952 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20955 ac_header_preproc=yes
20957 no:yes:* )
20958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20959 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20961 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20963 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20965 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20967 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20969 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20970 ( cat <<\_ASBOX
20971 ## ----------------------------------------------- ##
20972 ## Report this to Alistair Crooks <agc@NetBSD.org> ##
20973 ## ----------------------------------------------- ##
20974 _ASBOX
20975 ) | sed "s/^/$as_me: WARNING: /" >&2
20977 esac
20978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 $as_echo_n "checking for $ac_header... " >&6; }
20980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20981 $as_echo_n "(cached) " >&6
20982 else
20983 eval "$as_ac_Header=\$ac_header_preproc"
20985 ac_res=`eval 'as_val=${'$as_ac_Header'}
20986 $as_echo "$as_val"'`
20987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20988 $as_echo "$ac_res" >&6; }
20991 as_val=`eval 'as_val=${'$as_ac_Header'}
20992 $as_echo "$as_val"'`
20993 if test "x$as_val" = x""yes; then
20994 cat >>confdefs.h <<_ACEOF
20995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20996 _ACEOF
21000 done
21009 for ac_header in stdlib.h syslog.h unistd.h string.h stdarg.h utime.h uuid.h
21011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21014 $as_echo_n "checking for $ac_header... " >&6; }
21015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21016 $as_echo_n "(cached) " >&6
21018 ac_res=`eval 'as_val=${'$as_ac_Header'}
21019 $as_echo "$as_val"'`
21020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21021 $as_echo "$ac_res" >&6; }
21022 else
21023 # Is the header compilable?
21024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21025 $as_echo_n "checking $ac_header usability... " >&6; }
21026 cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h. */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032 $ac_includes_default
21033 #include <$ac_header>
21034 _ACEOF
21035 rm -f conftest.$ac_objext
21036 if { (ac_try="$ac_compile"
21037 case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21040 esac
21041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21042 $as_echo "$ac_try_echo") >&5
21043 (eval "$ac_compile") 2>conftest.er1
21044 ac_status=$?
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
21048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest.$ac_objext; then
21053 ac_header_compiler=yes
21054 else
21055 $as_echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ac_header_compiler=no
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21063 $as_echo "$ac_header_compiler" >&6; }
21065 # Is the header present?
21066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21067 $as_echo_n "checking $ac_header presence... " >&6; }
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 #include <$ac_header>
21075 _ACEOF
21076 if { (ac_try="$ac_cpp conftest.$ac_ext"
21077 case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080 esac
21081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21082 $as_echo "$ac_try_echo") >&5
21083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21084 ac_status=$?
21085 grep -v '^ *+' conftest.er1 >conftest.err
21086 rm -f conftest.er1
21087 cat conftest.err >&5
21088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } >/dev/null && {
21090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21091 test ! -s conftest.err
21092 }; then
21093 ac_header_preproc=yes
21094 else
21095 $as_echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_header_preproc=no
21101 rm -f conftest.err conftest.$ac_ext
21102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21103 $as_echo "$ac_header_preproc" >&6; }
21105 # So? What about this header?
21106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21107 yes:no: )
21108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21112 ac_header_preproc=yes
21114 no:yes:* )
21115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21127 ( cat <<\_ASBOX
21128 ## ----------------------------------------------- ##
21129 ## Report this to Alistair Crooks <agc@NetBSD.org> ##
21130 ## ----------------------------------------------- ##
21131 _ASBOX
21132 ) | sed "s/^/$as_me: WARNING: /" >&2
21134 esac
21135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21136 $as_echo_n "checking for $ac_header... " >&6; }
21137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21138 $as_echo_n "(cached) " >&6
21139 else
21140 eval "$as_ac_Header=\$ac_header_preproc"
21142 ac_res=`eval 'as_val=${'$as_ac_Header'}
21143 $as_echo "$as_val"'`
21144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21145 $as_echo "$ac_res" >&6; }
21148 as_val=`eval 'as_val=${'$as_ac_Header'}
21149 $as_echo "$as_val"'`
21150 if test "x$as_val" = x""yes; then
21151 cat >>confdefs.h <<_ACEOF
21152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21153 _ACEOF
21157 done
21160 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21161 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21162 if test "${ac_cv_c_const+set}" = set; then
21163 $as_echo_n "(cached) " >&6
21164 else
21165 cat >conftest.$ac_ext <<_ACEOF
21166 /* confdefs.h. */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21173 main ()
21175 /* FIXME: Include the comments suggested by Paul. */
21176 #ifndef __cplusplus
21177 /* Ultrix mips cc rejects this. */
21178 typedef int charset[2];
21179 const charset cs;
21180 /* SunOS 4.1.1 cc rejects this. */
21181 char const *const *pcpcc;
21182 char **ppc;
21183 /* NEC SVR4.0.2 mips cc rejects this. */
21184 struct point {int x, y;};
21185 static struct point const zero = {0,0};
21186 /* AIX XL C 1.02.0.0 rejects this.
21187 It does not let you subtract one const X* pointer from another in
21188 an arm of an if-expression whose if-part is not a constant
21189 expression */
21190 const char *g = "string";
21191 pcpcc = &g + (g ? g-g : 0);
21192 /* HPUX 7.0 cc rejects these. */
21193 ++pcpcc;
21194 ppc = (char**) pcpcc;
21195 pcpcc = (char const *const *) ppc;
21196 { /* SCO 3.2v4 cc rejects this. */
21197 char *t;
21198 char const *s = 0 ? (char *) 0 : (char const *) 0;
21200 *t++ = 0;
21201 if (s) return 0;
21203 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21204 int x[] = {25, 17};
21205 const int *foo = &x[0];
21206 ++foo;
21208 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21209 typedef const int *iptr;
21210 iptr p = 0;
21211 ++p;
21213 { /* AIX XL C 1.02.0.0 rejects this saying
21214 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21215 struct s { int j; const int *ap[3]; };
21216 struct s *b; b->j = 5;
21218 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21219 const int foo = 10;
21220 if (!foo) return 0;
21222 return !cs[0] && !zero.x;
21223 #endif
21226 return 0;
21228 _ACEOF
21229 rm -f conftest.$ac_objext
21230 if { (ac_try="$ac_compile"
21231 case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21234 esac
21235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21236 $as_echo "$ac_try_echo") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.$ac_objext; then
21247 ac_cv_c_const=yes
21248 else
21249 $as_echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_c_const=no
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21258 $as_echo "$ac_cv_c_const" >&6; }
21259 if test $ac_cv_c_const = no; then
21261 cat >>confdefs.h <<\_ACEOF
21262 #define const /**/
21263 _ACEOF
21267 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21268 $as_echo_n "checking for size_t... " >&6; }
21269 if test "${ac_cv_type_size_t+set}" = set; then
21270 $as_echo_n "(cached) " >&6
21271 else
21272 ac_cv_type_size_t=no
21273 cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h. */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279 $ac_includes_default
21281 main ()
21283 if (sizeof (size_t))
21284 return 0;
21286 return 0;
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21294 esac
21295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21296 $as_echo "$ac_try_echo") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21298 ac_status=$?
21299 grep -v '^ *+' conftest.er1 >conftest.err
21300 rm -f conftest.er1
21301 cat conftest.err >&5
21302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && {
21304 test -z "$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21306 } && test -s conftest.$ac_objext; then
21307 cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h. */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 $ac_includes_default
21315 main ()
21317 if (sizeof ((size_t)))
21318 return 0;
21320 return 0;
21322 _ACEOF
21323 rm -f conftest.$ac_objext
21324 if { (ac_try="$ac_compile"
21325 case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21328 esac
21329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21330 $as_echo "$ac_try_echo") >&5
21331 (eval "$ac_compile") 2>conftest.er1
21332 ac_status=$?
21333 grep -v '^ *+' conftest.er1 >conftest.err
21334 rm -f conftest.er1
21335 cat conftest.err >&5
21336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && {
21338 test -z "$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21340 } && test -s conftest.$ac_objext; then
21342 else
21343 $as_echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_cv_type_size_t=yes
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 else
21351 $as_echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21360 $as_echo "$ac_cv_type_size_t" >&6; }
21361 if test "x$ac_cv_type_size_t" = x""yes; then
21363 else
21365 cat >>confdefs.h <<_ACEOF
21366 #define size_t unsigned int
21367 _ACEOF
21371 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
21372 $as_echo_n "checking for socklen_t... " >&6; }
21373 if test "${ac_cv_type_socklen_t+set}" = set; then
21374 $as_echo_n "(cached) " >&6
21375 else
21376 ac_cv_type_socklen_t=no
21377 cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h. */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21384 #include <sys/socket.h>
21385 #include <arpa/inet.h>
21389 main ()
21391 if (sizeof (socklen_t))
21392 return 0;
21394 return 0;
21396 _ACEOF
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21402 esac
21403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21404 $as_echo "$ac_try_echo") >&5
21405 (eval "$ac_compile") 2>conftest.er1
21406 ac_status=$?
21407 grep -v '^ *+' conftest.er1 >conftest.err
21408 rm -f conftest.er1
21409 cat conftest.err >&5
21410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && {
21412 test -z "$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 } && test -s conftest.$ac_objext; then
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21422 #include <sys/socket.h>
21423 #include <arpa/inet.h>
21427 main ()
21429 if (sizeof ((socklen_t)))
21430 return 0;
21432 return 0;
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21440 esac
21441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21442 $as_echo "$ac_try_echo") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21444 ac_status=$?
21445 grep -v '^ *+' conftest.er1 >conftest.err
21446 rm -f conftest.er1
21447 cat conftest.err >&5
21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21454 else
21455 $as_echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_cv_type_socklen_t=yes
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 else
21463 $as_echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21472 $as_echo "$ac_cv_type_socklen_t" >&6; }
21473 if test "x$ac_cv_type_socklen_t" = x""yes; then
21475 cat >>confdefs.h <<_ACEOF
21476 #define HAVE_SOCKLEN_T 1
21477 _ACEOF
21482 { $as_echo "$as_me:$LINENO: checking for long long" >&5
21483 $as_echo_n "checking for long long... " >&6; }
21484 if test "${ac_cv_type_long_long+set}" = set; then
21485 $as_echo_n "(cached) " >&6
21486 else
21487 ac_cv_type_long_long=no
21488 cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h. */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 $ac_includes_default
21496 main ()
21498 if (sizeof (long long))
21499 return 0;
21501 return 0;
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21509 esac
21510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21511 $as_echo "$ac_try_echo") >&5
21512 (eval "$ac_compile") 2>conftest.er1
21513 ac_status=$?
21514 grep -v '^ *+' conftest.er1 >conftest.err
21515 rm -f conftest.er1
21516 cat conftest.err >&5
21517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } && {
21519 test -z "$ac_c_werror_flag" ||
21520 test ! -s conftest.err
21521 } && test -s conftest.$ac_objext; then
21522 cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h. */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 $ac_includes_default
21530 main ()
21532 if (sizeof ((long long)))
21533 return 0;
21535 return 0;
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21545 $as_echo "$ac_try_echo") >&5
21546 (eval "$ac_compile") 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && {
21553 test -z "$ac_c_werror_flag" ||
21554 test ! -s conftest.err
21555 } && test -s conftest.$ac_objext; then
21557 else
21558 $as_echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ac_cv_type_long_long=yes
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 else
21566 $as_echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21574 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21575 $as_echo "$ac_cv_type_long_long" >&6; }
21576 if test "x$ac_cv_type_long_long" = x""yes; then
21578 cat >>confdefs.h <<_ACEOF
21579 #define HAVE_LONG_LONG 1
21580 _ACEOF
21584 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
21585 $as_echo_n "checking for unsigned long long... " >&6; }
21586 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
21587 $as_echo_n "(cached) " >&6
21588 else
21589 ac_cv_type_unsigned_long_long=no
21590 cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h. */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 $ac_includes_default
21598 main ()
21600 if (sizeof (unsigned long long))
21601 return 0;
21603 return 0;
21605 _ACEOF
21606 rm -f conftest.$ac_objext
21607 if { (ac_try="$ac_compile"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21611 esac
21612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21613 $as_echo "$ac_try_echo") >&5
21614 (eval "$ac_compile") 2>conftest.er1
21615 ac_status=$?
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
21619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest.$ac_objext; then
21624 cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h. */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 $ac_includes_default
21632 main ()
21634 if (sizeof ((unsigned long long)))
21635 return 0;
21637 return 0;
21639 _ACEOF
21640 rm -f conftest.$ac_objext
21641 if { (ac_try="$ac_compile"
21642 case "(($ac_try" in
21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644 *) ac_try_echo=$ac_try;;
21645 esac
21646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21647 $as_echo "$ac_try_echo") >&5
21648 (eval "$ac_compile") 2>conftest.er1
21649 ac_status=$?
21650 grep -v '^ *+' conftest.er1 >conftest.err
21651 rm -f conftest.er1
21652 cat conftest.err >&5
21653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && {
21655 test -z "$ac_c_werror_flag" ||
21656 test ! -s conftest.err
21657 } && test -s conftest.$ac_objext; then
21659 else
21660 $as_echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 ac_cv_type_unsigned_long_long=yes
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667 else
21668 $as_echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
21677 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
21678 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then
21680 cat >>confdefs.h <<_ACEOF
21681 #define HAVE_UNSIGNED_LONG_LONG 1
21682 _ACEOF
21687 cat >>confdefs.h <<_ACEOF
21688 #define HAVE_SOCKLEN_T $ac_cv_type_socklen_t
21689 _ACEOF
21691 cat >>confdefs.h <<_ACEOF
21692 #define HAVE_LONG_LONG $ac_cv_type_long_long
21693 _ACEOF
21695 cat >>confdefs.h <<_ACEOF
21696 #define HAVE_UNSIGNED_LONG_LONG $ac_cv_type_unsigned_long_long
21697 _ACEOF
21700 # Checks for typedefs, structures, and compiler characteristics.
21703 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
21704 $as_echo_n "checking for unsigned long long int... " >&6; }
21705 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
21706 $as_echo_n "(cached) " >&6
21707 else
21708 cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h. */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 /* For now, do not test the preprocessor; as of 2007 there are too many
21716 implementations with broken preprocessors. Perhaps this can
21717 be revisited in 2012. In the meantime, code should not expect
21718 #if to work with literals wider than 32 bits. */
21719 /* Test literals. */
21720 long long int ll = 9223372036854775807ll;
21721 long long int nll = -9223372036854775807LL;
21722 unsigned long long int ull = 18446744073709551615ULL;
21723 /* Test constant expressions. */
21724 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21725 ? 1 : -1)];
21726 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21727 ? 1 : -1)];
21728 int i = 63;
21730 main ()
21732 /* Test availability of runtime routines for shift and division. */
21733 long long int llmax = 9223372036854775807ll;
21734 unsigned long long int ullmax = 18446744073709551615ull;
21735 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21736 | (llmax / ll) | (llmax % ll)
21737 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21738 | (ullmax / ull) | (ullmax % ull));
21740 return 0;
21743 _ACEOF
21744 rm -f conftest.$ac_objext conftest$ac_exeext
21745 if { (ac_try="$ac_link"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21749 esac
21750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21751 $as_echo "$ac_try_echo") >&5
21752 (eval "$ac_link") 2>conftest.er1
21753 ac_status=$?
21754 grep -v '^ *+' conftest.er1 >conftest.err
21755 rm -f conftest.er1
21756 cat conftest.err >&5
21757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } && {
21759 test -z "$ac_c_werror_flag" ||
21760 test ! -s conftest.err
21761 } && test -s conftest$ac_exeext && {
21762 test "$cross_compiling" = yes ||
21763 $as_test_x conftest$ac_exeext
21764 }; then
21765 ac_cv_type_unsigned_long_long_int=yes
21766 else
21767 $as_echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ac_cv_type_unsigned_long_long_int=no
21773 rm -rf conftest.dSYM
21774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21775 conftest$ac_exeext conftest.$ac_ext
21777 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
21778 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
21779 if test $ac_cv_type_unsigned_long_long_int = yes; then
21781 cat >>confdefs.h <<\_ACEOF
21782 #define HAVE_UNSIGNED_LONG_LONG_INT 1
21783 _ACEOF
21788 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
21789 $as_echo_n "checking for long long int... " >&6; }
21790 if test "${ac_cv_type_long_long_int+set}" = set; then
21791 $as_echo_n "(cached) " >&6
21792 else
21793 cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h. */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 /* For now, do not test the preprocessor; as of 2007 there are too many
21801 implementations with broken preprocessors. Perhaps this can
21802 be revisited in 2012. In the meantime, code should not expect
21803 #if to work with literals wider than 32 bits. */
21804 /* Test literals. */
21805 long long int ll = 9223372036854775807ll;
21806 long long int nll = -9223372036854775807LL;
21807 unsigned long long int ull = 18446744073709551615ULL;
21808 /* Test constant expressions. */
21809 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21810 ? 1 : -1)];
21811 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21812 ? 1 : -1)];
21813 int i = 63;
21815 main ()
21817 /* Test availability of runtime routines for shift and division. */
21818 long long int llmax = 9223372036854775807ll;
21819 unsigned long long int ullmax = 18446744073709551615ull;
21820 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21821 | (llmax / ll) | (llmax % ll)
21822 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21823 | (ullmax / ull) | (ullmax % ull));
21825 return 0;
21828 _ACEOF
21829 rm -f conftest.$ac_objext conftest$ac_exeext
21830 if { (ac_try="$ac_link"
21831 case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21834 esac
21835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21836 $as_echo "$ac_try_echo") >&5
21837 (eval "$ac_link") 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest$ac_exeext && {
21847 test "$cross_compiling" = yes ||
21848 $as_test_x conftest$ac_exeext
21849 }; then
21850 if test "$cross_compiling" = yes; then
21851 ac_cv_type_long_long_int=yes
21852 else
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h. */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 #include <limits.h>
21860 #ifndef LLONG_MAX
21861 # define HALF \
21862 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
21863 # define LLONG_MAX (HALF - 1 + HALF)
21864 #endif
21866 main ()
21868 long long int n = 1;
21869 int i;
21870 for (i = 0; ; i++)
21872 long long int m = n << i;
21873 if (m >> i != n)
21874 return 1;
21875 if (LLONG_MAX / 2 < m)
21876 break;
21878 return 0;
21880 return 0;
21882 _ACEOF
21883 rm -f conftest$ac_exeext
21884 if { (ac_try="$ac_link"
21885 case "(($ac_try" in
21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887 *) ac_try_echo=$ac_try;;
21888 esac
21889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21890 $as_echo "$ac_try_echo") >&5
21891 (eval "$ac_link") 2>&5
21892 ac_status=$?
21893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21895 { (case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898 esac
21899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21900 $as_echo "$ac_try_echo") >&5
21901 (eval "$ac_try") 2>&5
21902 ac_status=$?
21903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; }; then
21905 ac_cv_type_long_long_int=yes
21906 else
21907 $as_echo "$as_me: program exited with status $ac_status" >&5
21908 $as_echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21911 ( exit $ac_status )
21912 ac_cv_type_long_long_int=no
21914 rm -rf conftest.dSYM
21915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21919 else
21920 $as_echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ac_cv_type_long_long_int=no
21926 rm -rf conftest.dSYM
21927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21928 conftest$ac_exeext conftest.$ac_ext
21930 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21931 $as_echo "$ac_cv_type_long_long_int" >&6; }
21932 if test $ac_cv_type_long_long_int = yes; then
21934 cat >>confdefs.h <<\_ACEOF
21935 #define HAVE_LONG_LONG_INT 1
21936 _ACEOF
21940 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21941 $as_echo_n "checking for size_t... " >&6; }
21942 if test "${ac_cv_type_size_t+set}" = set; then
21943 $as_echo_n "(cached) " >&6
21944 else
21945 ac_cv_type_size_t=no
21946 cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h. */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 $ac_includes_default
21954 main ()
21956 if (sizeof (size_t))
21957 return 0;
21959 return 0;
21961 _ACEOF
21962 rm -f conftest.$ac_objext
21963 if { (ac_try="$ac_compile"
21964 case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21967 esac
21968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21969 $as_echo "$ac_try_echo") >&5
21970 (eval "$ac_compile") 2>conftest.er1
21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest.$ac_objext; then
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 $ac_includes_default
21988 main ()
21990 if (sizeof ((size_t)))
21991 return 0;
21993 return 0;
21995 _ACEOF
21996 rm -f conftest.$ac_objext
21997 if { (ac_try="$ac_compile"
21998 case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001 esac
22002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22003 $as_echo "$ac_try_echo") >&5
22004 (eval "$ac_compile") 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && {
22011 test -z "$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 } && test -s conftest.$ac_objext; then
22015 else
22016 $as_echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 ac_cv_type_size_t=yes
22022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023 else
22024 $as_echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22033 $as_echo "$ac_cv_type_size_t" >&6; }
22034 if test "x$ac_cv_type_size_t" = x""yes; then
22036 else
22038 cat >>confdefs.h <<_ACEOF
22039 #define size_t unsigned int
22040 _ACEOF
22045 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
22046 $as_echo_n "checking for uint16_t... " >&6; }
22047 if test "${ac_cv_c_uint16_t+set}" = set; then
22048 $as_echo_n "(cached) " >&6
22049 else
22050 ac_cv_c_uint16_t=no
22051 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
22052 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
22053 cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h. */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 $ac_includes_default
22061 main ()
22063 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
22064 test_array [0] = 0
22067 return 0;
22069 _ACEOF
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22075 esac
22076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22077 $as_echo "$ac_try_echo") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22088 case $ac_type in
22089 uint16_t) ac_cv_c_uint16_t=yes ;;
22090 *) ac_cv_c_uint16_t=$ac_type ;;
22091 esac
22093 else
22094 $as_echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22101 test "$ac_cv_c_uint16_t" != no && break
22102 done
22104 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
22105 $as_echo "$ac_cv_c_uint16_t" >&6; }
22106 case $ac_cv_c_uint16_t in #(
22107 no|yes) ;; #(
22111 cat >>confdefs.h <<_ACEOF
22112 #define uint16_t $ac_cv_c_uint16_t
22113 _ACEOF
22115 esac
22118 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
22119 $as_echo_n "checking for uint32_t... " >&6; }
22120 if test "${ac_cv_c_uint32_t+set}" = set; then
22121 $as_echo_n "(cached) " >&6
22122 else
22123 ac_cv_c_uint32_t=no
22124 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
22125 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 $ac_includes_default
22134 main ()
22136 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
22137 test_array [0] = 0
22140 return 0;
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (ac_try="$ac_compile"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22148 esac
22149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22150 $as_echo "$ac_try_echo") >&5
22151 (eval "$ac_compile") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest.$ac_objext; then
22161 case $ac_type in
22162 uint32_t) ac_cv_c_uint32_t=yes ;;
22163 *) ac_cv_c_uint32_t=$ac_type ;;
22164 esac
22166 else
22167 $as_echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22174 test "$ac_cv_c_uint32_t" != no && break
22175 done
22177 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
22178 $as_echo "$ac_cv_c_uint32_t" >&6; }
22179 case $ac_cv_c_uint32_t in #(
22180 no|yes) ;; #(
22183 cat >>confdefs.h <<\_ACEOF
22184 #define _UINT32_T 1
22185 _ACEOF
22188 cat >>confdefs.h <<_ACEOF
22189 #define uint32_t $ac_cv_c_uint32_t
22190 _ACEOF
22192 esac
22195 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
22196 $as_echo_n "checking for uint64_t... " >&6; }
22197 if test "${ac_cv_c_uint64_t+set}" = set; then
22198 $as_echo_n "(cached) " >&6
22199 else
22200 ac_cv_c_uint64_t=no
22201 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
22202 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
22203 cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h. */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 $ac_includes_default
22211 main ()
22213 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
22214 test_array [0] = 0
22217 return 0;
22219 _ACEOF
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225 esac
22226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227 $as_echo "$ac_try_echo") >&5
22228 (eval "$ac_compile") 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest.$ac_objext; then
22238 case $ac_type in
22239 uint64_t) ac_cv_c_uint64_t=yes ;;
22240 *) ac_cv_c_uint64_t=$ac_type ;;
22241 esac
22243 else
22244 $as_echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251 test "$ac_cv_c_uint64_t" != no && break
22252 done
22254 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
22255 $as_echo "$ac_cv_c_uint64_t" >&6; }
22256 case $ac_cv_c_uint64_t in #(
22257 no|yes) ;; #(
22260 cat >>confdefs.h <<\_ACEOF
22261 #define _UINT64_T 1
22262 _ACEOF
22265 cat >>confdefs.h <<_ACEOF
22266 #define uint64_t $ac_cv_c_uint64_t
22267 _ACEOF
22269 esac
22272 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
22273 $as_echo_n "checking for uint8_t... " >&6; }
22274 if test "${ac_cv_c_uint8_t+set}" = set; then
22275 $as_echo_n "(cached) " >&6
22276 else
22277 ac_cv_c_uint8_t=no
22278 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
22279 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h. */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 $ac_includes_default
22288 main ()
22290 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
22291 test_array [0] = 0
22294 return 0;
22296 _ACEOF
22297 rm -f conftest.$ac_objext
22298 if { (ac_try="$ac_compile"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302 esac
22303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22304 $as_echo "$ac_try_echo") >&5
22305 (eval "$ac_compile") 2>conftest.er1
22306 ac_status=$?
22307 grep -v '^ *+' conftest.er1 >conftest.err
22308 rm -f conftest.er1
22309 cat conftest.err >&5
22310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } && {
22312 test -z "$ac_c_werror_flag" ||
22313 test ! -s conftest.err
22314 } && test -s conftest.$ac_objext; then
22315 case $ac_type in
22316 uint8_t) ac_cv_c_uint8_t=yes ;;
22317 *) ac_cv_c_uint8_t=$ac_type ;;
22318 esac
22320 else
22321 $as_echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22328 test "$ac_cv_c_uint8_t" != no && break
22329 done
22331 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
22332 $as_echo "$ac_cv_c_uint8_t" >&6; }
22333 case $ac_cv_c_uint8_t in #(
22334 no|yes) ;; #(
22337 cat >>confdefs.h <<\_ACEOF
22338 #define _UINT8_T 1
22339 _ACEOF
22342 cat >>confdefs.h <<_ACEOF
22343 #define uint8_t $ac_cv_c_uint8_t
22344 _ACEOF
22346 esac
22349 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22350 $as_echo_n "checking for library containing gethostbyname... " >&6; }
22351 if test "${ac_cv_search_gethostbyname+set}" = set; then
22352 $as_echo_n "(cached) " >&6
22353 else
22354 ac_func_search_save_LIBS=$LIBS
22355 cat >conftest.$ac_ext <<_ACEOF
22356 /* confdefs.h. */
22357 _ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22362 /* Override any GCC internal prototype to avoid an error.
22363 Use char because int might match the return type of a GCC
22364 builtin and then its argument prototype would still apply. */
22365 #ifdef __cplusplus
22366 extern "C"
22367 #endif
22368 char gethostbyname ();
22370 main ()
22372 return gethostbyname ();
22374 return 0;
22376 _ACEOF
22377 for ac_lib in '' nsl; do
22378 if test -z "$ac_lib"; then
22379 ac_res="none required"
22380 else
22381 ac_res=-l$ac_lib
22382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22384 rm -f conftest.$ac_objext conftest$ac_exeext
22385 if { (ac_try="$ac_link"
22386 case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22389 esac
22390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22391 $as_echo "$ac_try_echo") >&5
22392 (eval "$ac_link") 2>conftest.er1
22393 ac_status=$?
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
22397 $as_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_exeext && {
22402 test "$cross_compiling" = yes ||
22403 $as_test_x conftest$ac_exeext
22404 }; then
22405 ac_cv_search_gethostbyname=$ac_res
22406 else
22407 $as_echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22413 rm -rf conftest.dSYM
22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22415 conftest$ac_exeext
22416 if test "${ac_cv_search_gethostbyname+set}" = set; then
22417 break
22419 done
22420 if test "${ac_cv_search_gethostbyname+set}" = set; then
22422 else
22423 ac_cv_search_gethostbyname=no
22425 rm conftest.$ac_ext
22426 LIBS=$ac_func_search_save_LIBS
22428 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22429 $as_echo "$ac_cv_search_gethostbyname" >&6; }
22430 ac_res=$ac_cv_search_gethostbyname
22431 if test "$ac_res" != no; then
22432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22436 { $as_echo "$as_me:$LINENO: checking for library containing connect" >&5
22437 $as_echo_n "checking for library containing connect... " >&6; }
22438 if test "${ac_cv_search_connect+set}" = set; then
22439 $as_echo_n "(cached) " >&6
22440 else
22441 ac_func_search_save_LIBS=$LIBS
22442 cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h. */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22449 /* Override any GCC internal prototype to avoid an error.
22450 Use char because int might match the return type of a GCC
22451 builtin and then its argument prototype would still apply. */
22452 #ifdef __cplusplus
22453 extern "C"
22454 #endif
22455 char connect ();
22457 main ()
22459 return connect ();
22461 return 0;
22463 _ACEOF
22464 for ac_lib in '' socket; do
22465 if test -z "$ac_lib"; then
22466 ac_res="none required"
22467 else
22468 ac_res=-l$ac_lib
22469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22471 rm -f conftest.$ac_objext conftest$ac_exeext
22472 if { (ac_try="$ac_link"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476 esac
22477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22478 $as_echo "$ac_try_echo") >&5
22479 (eval "$ac_link") 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } && {
22486 test -z "$ac_c_werror_flag" ||
22487 test ! -s conftest.err
22488 } && test -s conftest$ac_exeext && {
22489 test "$cross_compiling" = yes ||
22490 $as_test_x conftest$ac_exeext
22491 }; then
22492 ac_cv_search_connect=$ac_res
22493 else
22494 $as_echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22500 rm -rf conftest.dSYM
22501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22502 conftest$ac_exeext
22503 if test "${ac_cv_search_connect+set}" = set; then
22504 break
22506 done
22507 if test "${ac_cv_search_connect+set}" = set; then
22509 else
22510 ac_cv_search_connect=no
22512 rm conftest.$ac_ext
22513 LIBS=$ac_func_search_save_LIBS
22515 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
22516 $as_echo "$ac_cv_search_connect" >&6; }
22517 ac_res=$ac_cv_search_connect
22518 if test "$ac_res" != no; then
22519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22523 { $as_echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
22524 $as_echo_n "checking for library containing inet_aton... " >&6; }
22525 if test "${ac_cv_search_inet_aton+set}" = set; then
22526 $as_echo_n "(cached) " >&6
22527 else
22528 ac_func_search_save_LIBS=$LIBS
22529 cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h. */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22536 /* Override any GCC internal prototype to avoid an error.
22537 Use char because int might match the return type of a GCC
22538 builtin and then its argument prototype would still apply. */
22539 #ifdef __cplusplus
22540 extern "C"
22541 #endif
22542 char inet_aton ();
22544 main ()
22546 return inet_aton ();
22548 return 0;
22550 _ACEOF
22551 for ac_lib in '' resolv; do
22552 if test -z "$ac_lib"; then
22553 ac_res="none required"
22554 else
22555 ac_res=-l$ac_lib
22556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22558 rm -f conftest.$ac_objext conftest$ac_exeext
22559 if { (ac_try="$ac_link"
22560 case "(($ac_try" in
22561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22562 *) ac_try_echo=$ac_try;;
22563 esac
22564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22565 $as_echo "$ac_try_echo") >&5
22566 (eval "$ac_link") 2>conftest.er1
22567 ac_status=$?
22568 grep -v '^ *+' conftest.er1 >conftest.err
22569 rm -f conftest.er1
22570 cat conftest.err >&5
22571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } && {
22573 test -z "$ac_c_werror_flag" ||
22574 test ! -s conftest.err
22575 } && test -s conftest$ac_exeext && {
22576 test "$cross_compiling" = yes ||
22577 $as_test_x conftest$ac_exeext
22578 }; then
22579 ac_cv_search_inet_aton=$ac_res
22580 else
22581 $as_echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22587 rm -rf conftest.dSYM
22588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22589 conftest$ac_exeext
22590 if test "${ac_cv_search_inet_aton+set}" = set; then
22591 break
22593 done
22594 if test "${ac_cv_search_inet_aton+set}" = set; then
22596 else
22597 ac_cv_search_inet_aton=no
22599 rm conftest.$ac_ext
22600 LIBS=$ac_func_search_save_LIBS
22602 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
22603 $as_echo "$ac_cv_search_inet_aton" >&6; }
22604 ac_res=$ac_cv_search_inet_aton
22605 if test "$ac_res" != no; then
22606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22610 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
22611 $as_echo_n "checking for library containing pthread_create... " >&6; }
22612 if test "${ac_cv_search_pthread_create+set}" = set; then
22613 $as_echo_n "(cached) " >&6
22614 else
22615 ac_func_search_save_LIBS=$LIBS
22616 cat >conftest.$ac_ext <<_ACEOF
22617 /* confdefs.h. */
22618 _ACEOF
22619 cat confdefs.h >>conftest.$ac_ext
22620 cat >>conftest.$ac_ext <<_ACEOF
22621 /* end confdefs.h. */
22623 /* Override any GCC internal prototype to avoid an error.
22624 Use char because int might match the return type of a GCC
22625 builtin and then its argument prototype would still apply. */
22626 #ifdef __cplusplus
22627 extern "C"
22628 #endif
22629 char pthread_create ();
22631 main ()
22633 return pthread_create ();
22635 return 0;
22637 _ACEOF
22638 for ac_lib in '' pthread; do
22639 if test -z "$ac_lib"; then
22640 ac_res="none required"
22641 else
22642 ac_res=-l$ac_lib
22643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22645 rm -f conftest.$ac_objext conftest$ac_exeext
22646 if { (ac_try="$ac_link"
22647 case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22650 esac
22651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22652 $as_echo "$ac_try_echo") >&5
22653 (eval "$ac_link") 2>conftest.er1
22654 ac_status=$?
22655 grep -v '^ *+' conftest.er1 >conftest.err
22656 rm -f conftest.er1
22657 cat conftest.err >&5
22658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } && {
22660 test -z "$ac_c_werror_flag" ||
22661 test ! -s conftest.err
22662 } && test -s conftest$ac_exeext && {
22663 test "$cross_compiling" = yes ||
22664 $as_test_x conftest$ac_exeext
22665 }; then
22666 ac_cv_search_pthread_create=$ac_res
22667 else
22668 $as_echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22674 rm -rf conftest.dSYM
22675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22676 conftest$ac_exeext
22677 if test "${ac_cv_search_pthread_create+set}" = set; then
22678 break
22680 done
22681 if test "${ac_cv_search_pthread_create+set}" = set; then
22683 else
22684 ac_cv_search_pthread_create=no
22686 rm conftest.$ac_ext
22687 LIBS=$ac_func_search_save_LIBS
22689 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
22690 $as_echo "$ac_cv_search_pthread_create" >&6; }
22691 ac_res=$ac_cv_search_pthread_create
22692 if test "$ac_res" != no; then
22693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22704 for ac_func in __bswap64 asprintf asnprintf bswap64 daemon fsync_range
22706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22708 $as_echo_n "checking for $ac_func... " >&6; }
22709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22710 $as_echo_n "(cached) " >&6
22711 else
22712 cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h. */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22720 #define $ac_func innocuous_$ac_func
22722 /* System header to define __stub macros and hopefully few prototypes,
22723 which can conflict with char $ac_func (); below.
22724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22725 <limits.h> exists even on freestanding compilers. */
22727 #ifdef __STDC__
22728 # include <limits.h>
22729 #else
22730 # include <assert.h>
22731 #endif
22733 #undef $ac_func
22735 /* Override any GCC internal prototype to avoid an error.
22736 Use char because int might match the return type of a GCC
22737 builtin and then its argument prototype would still apply. */
22738 #ifdef __cplusplus
22739 extern "C"
22740 #endif
22741 char $ac_func ();
22742 /* The GNU C library defines this for functions which it implements
22743 to always fail with ENOSYS. Some functions are actually named
22744 something starting with __ and the normal name is an alias. */
22745 #if defined __stub_$ac_func || defined __stub___$ac_func
22746 choke me
22747 #endif
22750 main ()
22752 return $ac_func ();
22754 return 0;
22756 _ACEOF
22757 rm -f conftest.$ac_objext conftest$ac_exeext
22758 if { (ac_try="$ac_link"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22762 esac
22763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22764 $as_echo "$ac_try_echo") >&5
22765 (eval "$ac_link") 2>conftest.er1
22766 ac_status=$?
22767 grep -v '^ *+' conftest.er1 >conftest.err
22768 rm -f conftest.er1
22769 cat conftest.err >&5
22770 $as_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_exeext && {
22775 test "$cross_compiling" = yes ||
22776 $as_test_x conftest$ac_exeext
22777 }; then
22778 eval "$as_ac_var=yes"
22779 else
22780 $as_echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 eval "$as_ac_var=no"
22786 rm -rf conftest.dSYM
22787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22788 conftest$ac_exeext conftest.$ac_ext
22790 ac_res=`eval 'as_val=${'$as_ac_var'}
22791 $as_echo "$as_val"'`
22792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22793 $as_echo "$ac_res" >&6; }
22794 as_val=`eval 'as_val=${'$as_ac_var'}
22795 $as_echo "$as_val"'`
22796 if test "x$as_val" = x""yes; then
22797 cat >>confdefs.h <<_ACEOF
22798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22799 _ACEOF
22802 done
22811 for ac_func in getaddrinfo getnameinfo htobe64 memset bcopy poll snprintf
22813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22814 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22815 $as_echo_n "checking for $ac_func... " >&6; }
22816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22817 $as_echo_n "(cached) " >&6
22818 else
22819 cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h. */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22827 #define $ac_func innocuous_$ac_func
22829 /* System header to define __stub macros and hopefully few prototypes,
22830 which can conflict with char $ac_func (); below.
22831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22832 <limits.h> exists even on freestanding compilers. */
22834 #ifdef __STDC__
22835 # include <limits.h>
22836 #else
22837 # include <assert.h>
22838 #endif
22840 #undef $ac_func
22842 /* Override any GCC internal prototype to avoid an error.
22843 Use char because int might match the return type of a GCC
22844 builtin and then its argument prototype would still apply. */
22845 #ifdef __cplusplus
22846 extern "C"
22847 #endif
22848 char $ac_func ();
22849 /* The GNU C library defines this for functions which it implements
22850 to always fail with ENOSYS. Some functions are actually named
22851 something starting with __ and the normal name is an alias. */
22852 #if defined __stub_$ac_func || defined __stub___$ac_func
22853 choke me
22854 #endif
22857 main ()
22859 return $ac_func ();
22861 return 0;
22863 _ACEOF
22864 rm -f conftest.$ac_objext conftest$ac_exeext
22865 if { (ac_try="$ac_link"
22866 case "(($ac_try" in
22867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868 *) ac_try_echo=$ac_try;;
22869 esac
22870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22871 $as_echo "$ac_try_echo") >&5
22872 (eval "$ac_link") 2>conftest.er1
22873 ac_status=$?
22874 grep -v '^ *+' conftest.er1 >conftest.err
22875 rm -f conftest.er1
22876 cat conftest.err >&5
22877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest$ac_exeext && {
22882 test "$cross_compiling" = yes ||
22883 $as_test_x conftest$ac_exeext
22884 }; then
22885 eval "$as_ac_var=yes"
22886 else
22887 $as_echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 eval "$as_ac_var=no"
22893 rm -rf conftest.dSYM
22894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22895 conftest$ac_exeext conftest.$ac_ext
22897 ac_res=`eval 'as_val=${'$as_ac_var'}
22898 $as_echo "$as_val"'`
22899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22900 $as_echo "$ac_res" >&6; }
22901 as_val=`eval 'as_val=${'$as_ac_var'}
22902 $as_echo "$as_val"'`
22903 if test "x$as_val" = x""yes; then
22904 cat >>confdefs.h <<_ACEOF
22905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22906 _ACEOF
22909 done
22917 for ac_func in strlcpy strtoll syslog uuid_create uuid_to_string vasprintf
22919 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22920 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22921 $as_echo_n "checking for $ac_func... " >&6; }
22922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22923 $as_echo_n "(cached) " >&6
22924 else
22925 cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h. */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22933 #define $ac_func innocuous_$ac_func
22935 /* System header to define __stub macros and hopefully few prototypes,
22936 which can conflict with char $ac_func (); below.
22937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22938 <limits.h> exists even on freestanding compilers. */
22940 #ifdef __STDC__
22941 # include <limits.h>
22942 #else
22943 # include <assert.h>
22944 #endif
22946 #undef $ac_func
22948 /* Override any GCC internal prototype to avoid an error.
22949 Use char because int might match the return type of a GCC
22950 builtin and then its argument prototype would still apply. */
22951 #ifdef __cplusplus
22952 extern "C"
22953 #endif
22954 char $ac_func ();
22955 /* The GNU C library defines this for functions which it implements
22956 to always fail with ENOSYS. Some functions are actually named
22957 something starting with __ and the normal name is an alias. */
22958 #if defined __stub_$ac_func || defined __stub___$ac_func
22959 choke me
22960 #endif
22963 main ()
22965 return $ac_func ();
22967 return 0;
22969 _ACEOF
22970 rm -f conftest.$ac_objext conftest$ac_exeext
22971 if { (ac_try="$ac_link"
22972 case "(($ac_try" in
22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974 *) ac_try_echo=$ac_try;;
22975 esac
22976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22977 $as_echo "$ac_try_echo") >&5
22978 (eval "$ac_link") 2>conftest.er1
22979 ac_status=$?
22980 grep -v '^ *+' conftest.er1 >conftest.err
22981 rm -f conftest.er1
22982 cat conftest.err >&5
22983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } && {
22985 test -z "$ac_c_werror_flag" ||
22986 test ! -s conftest.err
22987 } && test -s conftest$ac_exeext && {
22988 test "$cross_compiling" = yes ||
22989 $as_test_x conftest$ac_exeext
22990 }; then
22991 eval "$as_ac_var=yes"
22992 else
22993 $as_echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22996 eval "$as_ac_var=no"
22999 rm -rf conftest.dSYM
23000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23001 conftest$ac_exeext conftest.$ac_ext
23003 ac_res=`eval 'as_val=${'$as_ac_var'}
23004 $as_echo "$as_val"'`
23005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23006 $as_echo "$ac_res" >&6; }
23007 as_val=`eval 'as_val=${'$as_ac_var'}
23008 $as_echo "$as_val"'`
23009 if test "x$as_val" = x""yes; then
23010 cat >>confdefs.h <<_ACEOF
23011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23012 _ACEOF
23015 done
23020 for ac_func in vasprintf vasnprintf vsnprintf
23022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23023 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23024 $as_echo_n "checking for $ac_func... " >&6; }
23025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23026 $as_echo_n "(cached) " >&6
23027 else
23028 cat >conftest.$ac_ext <<_ACEOF
23029 /* confdefs.h. */
23030 _ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h. */
23034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23036 #define $ac_func innocuous_$ac_func
23038 /* System header to define __stub macros and hopefully few prototypes,
23039 which can conflict with char $ac_func (); below.
23040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23041 <limits.h> exists even on freestanding compilers. */
23043 #ifdef __STDC__
23044 # include <limits.h>
23045 #else
23046 # include <assert.h>
23047 #endif
23049 #undef $ac_func
23051 /* Override any GCC internal prototype to avoid an error.
23052 Use char because int might match the return type of a GCC
23053 builtin and then its argument prototype would still apply. */
23054 #ifdef __cplusplus
23055 extern "C"
23056 #endif
23057 char $ac_func ();
23058 /* The GNU C library defines this for functions which it implements
23059 to always fail with ENOSYS. Some functions are actually named
23060 something starting with __ and the normal name is an alias. */
23061 #if defined __stub_$ac_func || defined __stub___$ac_func
23062 choke me
23063 #endif
23066 main ()
23068 return $ac_func ();
23070 return 0;
23072 _ACEOF
23073 rm -f conftest.$ac_objext conftest$ac_exeext
23074 if { (ac_try="$ac_link"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23078 esac
23079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23080 $as_echo "$ac_try_echo") >&5
23081 (eval "$ac_link") 2>conftest.er1
23082 ac_status=$?
23083 grep -v '^ *+' conftest.er1 >conftest.err
23084 rm -f conftest.er1
23085 cat conftest.err >&5
23086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } && {
23088 test -z "$ac_c_werror_flag" ||
23089 test ! -s conftest.err
23090 } && test -s conftest$ac_exeext && {
23091 test "$cross_compiling" = yes ||
23092 $as_test_x conftest$ac_exeext
23093 }; then
23094 eval "$as_ac_var=yes"
23095 else
23096 $as_echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23099 eval "$as_ac_var=no"
23102 rm -rf conftest.dSYM
23103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23104 conftest$ac_exeext conftest.$ac_ext
23106 ac_res=`eval 'as_val=${'$as_ac_var'}
23107 $as_echo "$as_val"'`
23108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23109 $as_echo "$ac_res" >&6; }
23110 as_val=`eval 'as_val=${'$as_ac_var'}
23111 $as_echo "$as_val"'`
23112 if test "x$as_val" = x""yes; then
23113 cat >>confdefs.h <<_ACEOF
23114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23115 _ACEOF
23118 done
23121 ac_config_files="$ac_config_files Makefile"
23123 cat >confcache <<\_ACEOF
23124 # This file is a shell script that caches the results of configure
23125 # tests run on this system so they can be shared between configure
23126 # scripts and configure runs, see configure's option --config-cache.
23127 # It is not useful on other systems. If it contains results you don't
23128 # want to keep, you may remove or edit it.
23130 # config.status only pays attention to the cache file if you give it
23131 # the --recheck option to rerun configure.
23133 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23134 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23135 # following values.
23137 _ACEOF
23139 # The following way of writing the cache mishandles newlines in values,
23140 # but we know of no workaround that is simple, portable, and efficient.
23141 # So, we kill variables containing newlines.
23142 # Ultrix sh set writes to stderr and can't be redirected directly,
23143 # and sets the high bit in the cache file unless we assign to the vars.
23145 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23146 eval ac_val=\$$ac_var
23147 case $ac_val in #(
23148 *${as_nl}*)
23149 case $ac_var in #(
23150 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23151 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23152 esac
23153 case $ac_var in #(
23154 _ | IFS | as_nl) ;; #(
23155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23156 *) $as_unset $ac_var ;;
23157 esac ;;
23158 esac
23159 done
23161 (set) 2>&1 |
23162 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23163 *${as_nl}ac_space=\ *)
23164 # `set' does not quote correctly, so add quotes (double-quote
23165 # substitution turns \\\\ into \\, and sed turns \\ into \).
23166 sed -n \
23167 "s/'/'\\\\''/g;
23168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23169 ;; #(
23171 # `set' quotes correctly as required by POSIX, so do not add quotes.
23172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23174 esac |
23175 sort
23177 sed '
23178 /^ac_cv_env_/b end
23179 t clear
23180 :clear
23181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23182 t end
23183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23184 :end' >>confcache
23185 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23186 if test -w "$cache_file"; then
23187 test "x$cache_file" != "x/dev/null" &&
23188 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23189 $as_echo "$as_me: updating cache $cache_file" >&6;}
23190 cat confcache >$cache_file
23191 else
23192 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23193 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23196 rm -f confcache
23198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23199 # Let make expand exec_prefix.
23200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23202 DEFS=-DHAVE_CONFIG_H
23204 ac_libobjs=
23205 ac_ltlibobjs=
23206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23207 # 1. Remove the extension, and $U if already installed.
23208 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23209 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23210 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23211 # will be set to the directory where LIBOBJS objects are built.
23212 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23213 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23214 done
23215 LIBOBJS=$ac_libobjs
23217 LTLIBOBJS=$ac_ltlibobjs
23220 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23221 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23222 Usually this means the macro was only invoked conditionally." >&5
23223 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23224 Usually this means the macro was only invoked conditionally." >&2;}
23225 { (exit 1); exit 1; }; }
23227 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23228 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23229 Usually this means the macro was only invoked conditionally." >&5
23230 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23231 Usually this means the macro was only invoked conditionally." >&2;}
23232 { (exit 1); exit 1; }; }
23234 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23235 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23236 Usually this means the macro was only invoked conditionally." >&5
23237 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23238 Usually this means the macro was only invoked conditionally." >&2;}
23239 { (exit 1); exit 1; }; }
23241 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23242 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23243 Usually this means the macro was only invoked conditionally." >&5
23244 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23245 Usually this means the macro was only invoked conditionally." >&2;}
23246 { (exit 1); exit 1; }; }
23249 : ${CONFIG_STATUS=./config.status}
23250 ac_write_fail=0
23251 ac_clean_files_save=$ac_clean_files
23252 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23253 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23254 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23255 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23256 #! $SHELL
23257 # Generated by $as_me.
23258 # Run this file to recreate the current configuration.
23259 # Compiler output produced by configure, useful for debugging
23260 # configure, is in config.log if it exists.
23262 debug=false
23263 ac_cs_recheck=false
23264 ac_cs_silent=false
23265 SHELL=\${CONFIG_SHELL-$SHELL}
23266 _ACEOF
23268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23269 ## --------------------- ##
23270 ## M4sh Initialization. ##
23271 ## --------------------- ##
23273 # Be more Bourne compatible
23274 DUALCASE=1; export DUALCASE # for MKS sh
23275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23276 emulate sh
23277 NULLCMD=:
23278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23279 # is contrary to our usage. Disable this feature.
23280 alias -g '${1+"$@"}'='"$@"'
23281 setopt NO_GLOB_SUBST
23282 else
23283 case `(set -o) 2>/dev/null` in
23284 *posix*) set -o posix ;;
23285 esac
23292 # PATH needs CR
23293 # Avoid depending upon Character Ranges.
23294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23297 as_cr_digits='0123456789'
23298 as_cr_alnum=$as_cr_Letters$as_cr_digits
23300 as_nl='
23302 export as_nl
23303 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23304 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23307 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23308 as_echo='printf %s\n'
23309 as_echo_n='printf %s'
23310 else
23311 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23312 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23313 as_echo_n='/usr/ucb/echo -n'
23314 else
23315 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23316 as_echo_n_body='eval
23317 arg=$1;
23318 case $arg in
23319 *"$as_nl"*)
23320 expr "X$arg" : "X\\(.*\\)$as_nl";
23321 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23322 esac;
23323 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23325 export as_echo_n_body
23326 as_echo_n='sh -c $as_echo_n_body as_echo'
23328 export as_echo_body
23329 as_echo='sh -c $as_echo_body as_echo'
23332 # The user is always right.
23333 if test "${PATH_SEPARATOR+set}" != set; then
23334 PATH_SEPARATOR=:
23335 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23336 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23337 PATH_SEPARATOR=';'
23341 # Support unset when possible.
23342 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23343 as_unset=unset
23344 else
23345 as_unset=false
23349 # IFS
23350 # We need space, tab and new line, in precisely that order. Quoting is
23351 # there to prevent editors from complaining about space-tab.
23352 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23353 # splitting by setting IFS to empty value.)
23354 IFS=" "" $as_nl"
23356 # Find who we are. Look in the path if we contain no directory separator.
23357 case $0 in
23358 *[\\/]* ) as_myself=$0 ;;
23359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23360 for as_dir in $PATH
23362 IFS=$as_save_IFS
23363 test -z "$as_dir" && as_dir=.
23364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23365 done
23366 IFS=$as_save_IFS
23369 esac
23370 # We did not find ourselves, most probably we were run as `sh COMMAND'
23371 # in which case we are not to be found in the path.
23372 if test "x$as_myself" = x; then
23373 as_myself=$0
23375 if test ! -f "$as_myself"; then
23376 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23377 { (exit 1); exit 1; }
23380 # Work around bugs in pre-3.0 UWIN ksh.
23381 for as_var in ENV MAIL MAILPATH
23382 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23383 done
23384 PS1='$ '
23385 PS2='> '
23386 PS4='+ '
23388 # NLS nuisances.
23389 LC_ALL=C
23390 export LC_ALL
23391 LANGUAGE=C
23392 export LANGUAGE
23394 # Required to use basename.
23395 if expr a : '\(a\)' >/dev/null 2>&1 &&
23396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23397 as_expr=expr
23398 else
23399 as_expr=false
23402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23403 as_basename=basename
23404 else
23405 as_basename=false
23409 # Name of the executable.
23410 as_me=`$as_basename -- "$0" ||
23411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23412 X"$0" : 'X\(//\)$' \| \
23413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23414 $as_echo X/"$0" |
23415 sed '/^.*\/\([^/][^/]*\)\/*$/{
23416 s//\1/
23419 /^X\/\(\/\/\)$/{
23420 s//\1/
23423 /^X\/\(\/\).*/{
23424 s//\1/
23427 s/.*/./; q'`
23429 # CDPATH.
23430 $as_unset CDPATH
23434 as_lineno_1=$LINENO
23435 as_lineno_2=$LINENO
23436 test "x$as_lineno_1" != "x$as_lineno_2" &&
23437 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23439 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23440 # uniformly replaced by the line number. The first 'sed' inserts a
23441 # line-number line after each line using $LINENO; the second 'sed'
23442 # does the real work. The second script uses 'N' to pair each
23443 # line-number line with the line containing $LINENO, and appends
23444 # trailing '-' during substitution so that $LINENO is not a special
23445 # case at line end.
23446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23447 # scripts with optimization help from Paolo Bonzini. Blame Lee
23448 # E. McMahon (1931-1989) for sed's syntax. :-)
23449 sed -n '
23451 /[$]LINENO/=
23452 ' <$as_myself |
23453 sed '
23454 s/[$]LINENO.*/&-/
23455 t lineno
23457 :lineno
23459 :loop
23460 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23461 t loop
23462 s/-\n.*//
23463 ' >$as_me.lineno &&
23464 chmod +x "$as_me.lineno" ||
23465 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23466 { (exit 1); exit 1; }; }
23468 # Don't try to exec as it changes $[0], causing all sort of problems
23469 # (the dirname of $[0] is not the place where we might find the
23470 # original and so on. Autoconf is especially sensitive to this).
23471 . "./$as_me.lineno"
23472 # Exit status is that of the last command.
23473 exit
23477 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23478 as_dirname=dirname
23479 else
23480 as_dirname=false
23483 ECHO_C= ECHO_N= ECHO_T=
23484 case `echo -n x` in
23485 -n*)
23486 case `echo 'x\c'` in
23487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23488 *) ECHO_C='\c';;
23489 esac;;
23491 ECHO_N='-n';;
23492 esac
23493 if expr a : '\(a\)' >/dev/null 2>&1 &&
23494 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23495 as_expr=expr
23496 else
23497 as_expr=false
23500 rm -f conf$$ conf$$.exe conf$$.file
23501 if test -d conf$$.dir; then
23502 rm -f conf$$.dir/conf$$.file
23503 else
23504 rm -f conf$$.dir
23505 mkdir conf$$.dir 2>/dev/null
23507 if (echo >conf$$.file) 2>/dev/null; then
23508 if ln -s conf$$.file conf$$ 2>/dev/null; then
23509 as_ln_s='ln -s'
23510 # ... but there are two gotchas:
23511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23513 # In both cases, we have to default to `cp -p'.
23514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23515 as_ln_s='cp -p'
23516 elif ln conf$$.file conf$$ 2>/dev/null; then
23517 as_ln_s=ln
23518 else
23519 as_ln_s='cp -p'
23521 else
23522 as_ln_s='cp -p'
23524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23525 rmdir conf$$.dir 2>/dev/null
23527 if mkdir -p . 2>/dev/null; then
23528 as_mkdir_p=:
23529 else
23530 test -d ./-p && rmdir ./-p
23531 as_mkdir_p=false
23534 if test -x / >/dev/null 2>&1; then
23535 as_test_x='test -x'
23536 else
23537 if ls -dL / >/dev/null 2>&1; then
23538 as_ls_L_option=L
23539 else
23540 as_ls_L_option=
23542 as_test_x='
23543 eval sh -c '\''
23544 if test -d "$1"; then
23545 test -d "$1/.";
23546 else
23547 case $1 in
23548 -*)set "./$1";;
23549 esac;
23550 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23551 ???[sx]*):;;*)false;;esac;fi
23552 '\'' sh
23555 as_executable_p=$as_test_x
23557 # Sed expression to map a string onto a valid CPP name.
23558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23560 # Sed expression to map a string onto a valid variable name.
23561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23564 exec 6>&1
23566 # Save the log message, to keep $[0] and so on meaningful, and to
23567 # report actual input values of CONFIG_FILES etc. instead of their
23568 # values after options handling.
23569 ac_log="
23570 This file was extended by netbsd-iscsi $as_me 20090622, which was
23571 generated by GNU Autoconf 2.63. Invocation command line was
23573 CONFIG_FILES = $CONFIG_FILES
23574 CONFIG_HEADERS = $CONFIG_HEADERS
23575 CONFIG_LINKS = $CONFIG_LINKS
23576 CONFIG_COMMANDS = $CONFIG_COMMANDS
23577 $ $0 $@
23579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23582 _ACEOF
23584 case $ac_config_files in *"
23585 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23586 esac
23588 case $ac_config_headers in *"
23589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23590 esac
23593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23594 # Files that config.status was made for.
23595 config_files="$ac_config_files"
23596 config_headers="$ac_config_headers"
23597 config_commands="$ac_config_commands"
23599 _ACEOF
23601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23602 ac_cs_usage="\
23603 \`$as_me' instantiates files from templates according to the
23604 current configuration.
23606 Usage: $0 [OPTION]... [FILE]...
23608 -h, --help print this help, then exit
23609 -V, --version print version number and configuration settings, then exit
23610 -q, --quiet, --silent
23611 do not print progress messages
23612 -d, --debug don't remove temporary files
23613 --recheck update $as_me by reconfiguring in the same conditions
23614 --file=FILE[:TEMPLATE]
23615 instantiate the configuration file FILE
23616 --header=FILE[:TEMPLATE]
23617 instantiate the configuration header FILE
23619 Configuration files:
23620 $config_files
23622 Configuration headers:
23623 $config_headers
23625 Configuration commands:
23626 $config_commands
23628 Report bugs to <bug-autoconf@gnu.org>."
23630 _ACEOF
23631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23632 ac_cs_version="\\
23633 netbsd-iscsi config.status 20090622
23634 configured by $0, generated by GNU Autoconf 2.63,
23635 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23637 Copyright (C) 2008 Free Software Foundation, Inc.
23638 This config.status script is free software; the Free Software Foundation
23639 gives unlimited permission to copy, distribute and modify it."
23641 ac_pwd='$ac_pwd'
23642 srcdir='$srcdir'
23643 INSTALL='$INSTALL'
23644 MKDIR_P='$MKDIR_P'
23645 AWK='$AWK'
23646 test -n "\$AWK" || AWK=awk
23647 _ACEOF
23649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23650 # The default lists apply if the user does not specify any file.
23651 ac_need_defaults=:
23652 while test $# != 0
23654 case $1 in
23655 --*=*)
23656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23658 ac_shift=:
23661 ac_option=$1
23662 ac_optarg=$2
23663 ac_shift=shift
23665 esac
23667 case $ac_option in
23668 # Handling of the options.
23669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23670 ac_cs_recheck=: ;;
23671 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23672 $as_echo "$ac_cs_version"; exit ;;
23673 --debug | --debu | --deb | --de | --d | -d )
23674 debug=: ;;
23675 --file | --fil | --fi | --f )
23676 $ac_shift
23677 case $ac_optarg in
23678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23679 esac
23680 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23681 ac_need_defaults=false;;
23682 --header | --heade | --head | --hea )
23683 $ac_shift
23684 case $ac_optarg in
23685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23686 esac
23687 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23688 ac_need_defaults=false;;
23689 --he | --h)
23690 # Conflict between --help and --header
23691 { $as_echo "$as_me: error: ambiguous option: $1
23692 Try \`$0 --help' for more information." >&2
23693 { (exit 1); exit 1; }; };;
23694 --help | --hel | -h )
23695 $as_echo "$ac_cs_usage"; exit ;;
23696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23698 ac_cs_silent=: ;;
23700 # This is an error.
23701 -*) { $as_echo "$as_me: error: unrecognized option: $1
23702 Try \`$0 --help' for more information." >&2
23703 { (exit 1); exit 1; }; } ;;
23705 *) ac_config_targets="$ac_config_targets $1"
23706 ac_need_defaults=false ;;
23708 esac
23709 shift
23710 done
23712 ac_configure_extra_args=
23714 if $ac_cs_silent; then
23715 exec 6>/dev/null
23716 ac_configure_extra_args="$ac_configure_extra_args --silent"
23719 _ACEOF
23720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23721 if \$ac_cs_recheck; then
23722 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23723 shift
23724 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23725 CONFIG_SHELL='$SHELL'
23726 export CONFIG_SHELL
23727 exec "\$@"
23730 _ACEOF
23731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23732 exec 5>>config.log
23734 echo
23735 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23736 ## Running $as_me. ##
23737 _ASBOX
23738 $as_echo "$ac_log"
23739 } >&5
23741 _ACEOF
23742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23744 # INIT-COMMANDS
23746 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23748 _ACEOF
23750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23752 # Handling of arguments.
23753 for ac_config_target in $ac_config_targets
23755 case $ac_config_target in
23756 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23757 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23758 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23760 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23761 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23762 { (exit 1); exit 1; }; };;
23763 esac
23764 done
23767 # If the user did not use the arguments to specify the items to instantiate,
23768 # then the envvar interface is used. Set only those that are not.
23769 # We use the long form for the default assignment because of an extremely
23770 # bizarre bug on SunOS 4.1.3.
23771 if $ac_need_defaults; then
23772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23777 # Have a temporary directory for convenience. Make it in the build tree
23778 # simply because there is no reason against having it here, and in addition,
23779 # creating and moving files from /tmp can sometimes cause problems.
23780 # Hook for its removal unless debugging.
23781 # Note that there is a small window in which the directory will not be cleaned:
23782 # after its creation but before its name has been assigned to `$tmp'.
23783 $debug ||
23785 tmp=
23786 trap 'exit_status=$?
23787 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23789 trap '{ (exit 1); exit 1; }' 1 2 13 15
23791 # Create a (secure) tmp directory for tmp files.
23794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23795 test -n "$tmp" && test -d "$tmp"
23796 } ||
23798 tmp=./conf$$-$RANDOM
23799 (umask 077 && mkdir "$tmp")
23800 } ||
23802 $as_echo "$as_me: cannot create a temporary directory in ." >&2
23803 { (exit 1); exit 1; }
23806 # Set up the scripts for CONFIG_FILES section.
23807 # No need to generate them if there are no CONFIG_FILES.
23808 # This happens for instance with `./config.status config.h'.
23809 if test -n "$CONFIG_FILES"; then
23812 ac_cr=' '
23813 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23814 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23815 ac_cs_awk_cr='\\r'
23816 else
23817 ac_cs_awk_cr=$ac_cr
23820 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23821 _ACEOF
23825 echo "cat >conf$$subs.awk <<_ACEOF" &&
23826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23827 echo "_ACEOF"
23828 } >conf$$subs.sh ||
23829 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23830 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23831 { (exit 1); exit 1; }; }
23832 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23833 ac_delim='%!_!# '
23834 for ac_last_try in false false false false false :; do
23835 . ./conf$$subs.sh ||
23836 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23837 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23838 { (exit 1); exit 1; }; }
23840 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23841 if test $ac_delim_n = $ac_delim_num; then
23842 break
23843 elif $ac_last_try; then
23844 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23845 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23846 { (exit 1); exit 1; }; }
23847 else
23848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23850 done
23851 rm -f conf$$subs.sh
23853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23854 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23855 _ACEOF
23856 sed -n '
23858 s/^/S["/; s/!.*/"]=/
23861 s/^[^!]*!//
23862 :repl
23863 t repl
23864 s/'"$ac_delim"'$//
23865 t delim
23868 s/\(.\{148\}\).*/\1/
23869 t more1
23870 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23873 b repl
23874 :more1
23875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23878 s/.\{148\}//
23879 t nl
23880 :delim
23882 s/\(.\{148\}\).*/\1/
23883 t more2
23884 s/["\\]/\\&/g; s/^/"/; s/$/"/
23887 :more2
23888 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23891 s/.\{148\}//
23892 t delim
23893 ' <conf$$subs.awk | sed '
23894 /^[^""]/{
23896 s/\n//
23898 ' >>$CONFIG_STATUS || ac_write_fail=1
23899 rm -f conf$$subs.awk
23900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23901 _ACAWK
23902 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23903 for (key in S) S_is_set[key] = 1
23904 FS = "\a"
23908 line = $ 0
23909 nfields = split(line, field, "@")
23910 substed = 0
23911 len = length(field[1])
23912 for (i = 2; i < nfields; i++) {
23913 key = field[i]
23914 keylen = length(key)
23915 if (S_is_set[key]) {
23916 value = S[key]
23917 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23918 len += length(value) + length(field[++i])
23919 substed = 1
23920 } else
23921 len += 1 + keylen
23924 print line
23927 _ACAWK
23928 _ACEOF
23929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23930 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23931 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23932 else
23934 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23935 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23936 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23937 { (exit 1); exit 1; }; }
23938 _ACEOF
23940 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23941 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23942 # trailing colons and then remove the whole line if VPATH becomes empty
23943 # (actually we leave an empty line to preserve line numbers).
23944 if test "x$srcdir" = x.; then
23945 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23946 s/:*\$(srcdir):*/:/
23947 s/:*\${srcdir}:*/:/
23948 s/:*@srcdir@:*/:/
23949 s/^\([^=]*=[ ]*\):*/\1/
23950 s/:*$//
23951 s/^[^=]*=[ ]*$//
23955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23956 fi # test -n "$CONFIG_FILES"
23958 # Set up the scripts for CONFIG_HEADERS section.
23959 # No need to generate them if there are no CONFIG_HEADERS.
23960 # This happens for instance with `./config.status Makefile'.
23961 if test -n "$CONFIG_HEADERS"; then
23962 cat >"$tmp/defines.awk" <<\_ACAWK ||
23963 BEGIN {
23964 _ACEOF
23966 # Transform confdefs.h into an awk script `defines.awk', embedded as
23967 # here-document in config.status, that substitutes the proper values into
23968 # config.h.in to produce config.h.
23970 # Create a delimiter string that does not exist in confdefs.h, to ease
23971 # handling of long lines.
23972 ac_delim='%!_!# '
23973 for ac_last_try in false false :; do
23974 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23975 if test -z "$ac_t"; then
23976 break
23977 elif $ac_last_try; then
23978 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23979 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23980 { (exit 1); exit 1; }; }
23981 else
23982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23984 done
23986 # For the awk script, D is an array of macro values keyed by name,
23987 # likewise P contains macro parameters if any. Preserve backslash
23988 # newline sequences.
23990 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23991 sed -n '
23992 s/.\{148\}/&'"$ac_delim"'/g
23993 t rset
23994 :rset
23995 s/^[ ]*#[ ]*define[ ][ ]*/ /
23996 t def
23998 :def
23999 s/\\$//
24000 t bsnl
24001 s/["\\]/\\&/g
24002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24003 D["\1"]=" \3"/p
24004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24006 :bsnl
24007 s/["\\]/\\&/g
24008 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24009 D["\1"]=" \3\\\\\\n"\\/p
24010 t cont
24011 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24012 t cont
24014 :cont
24016 s/.\{148\}/&'"$ac_delim"'/g
24017 t clear
24018 :clear
24019 s/\\$//
24020 t bsnlc
24021 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24023 :bsnlc
24024 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24025 b cont
24026 ' <confdefs.h | sed '
24027 s/'"$ac_delim"'/"\\\
24028 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24031 for (key in D) D_is_set[key] = 1
24032 FS = "\a"
24034 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24035 line = \$ 0
24036 split(line, arg, " ")
24037 if (arg[1] == "#") {
24038 defundef = arg[2]
24039 mac1 = arg[3]
24040 } else {
24041 defundef = substr(arg[1], 2)
24042 mac1 = arg[2]
24044 split(mac1, mac2, "(") #)
24045 macro = mac2[1]
24046 prefix = substr(line, 1, index(line, defundef) - 1)
24047 if (D_is_set[macro]) {
24048 # Preserve the white space surrounding the "#".
24049 print prefix "define", macro P[macro] D[macro]
24050 next
24051 } else {
24052 # Replace #undef with comments. This is necessary, for example,
24053 # in the case of _POSIX_SOURCE, which is predefined and required
24054 # on some systems where configure will not decide to define it.
24055 if (defundef == "undef") {
24056 print "/*", prefix defundef, macro, "*/"
24057 next
24061 { print }
24062 _ACAWK
24063 _ACEOF
24064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24065 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24066 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24067 { (exit 1); exit 1; }; }
24068 fi # test -n "$CONFIG_HEADERS"
24071 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24072 shift
24073 for ac_tag
24075 case $ac_tag in
24076 :[FHLC]) ac_mode=$ac_tag; continue;;
24077 esac
24078 case $ac_mode$ac_tag in
24079 :[FHL]*:*);;
24080 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24081 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24082 { (exit 1); exit 1; }; };;
24083 :[FH]-) ac_tag=-:-;;
24084 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24085 esac
24086 ac_save_IFS=$IFS
24087 IFS=:
24088 set x $ac_tag
24089 IFS=$ac_save_IFS
24090 shift
24091 ac_file=$1
24092 shift
24094 case $ac_mode in
24095 :L) ac_source=$1;;
24096 :[FH])
24097 ac_file_inputs=
24098 for ac_f
24100 case $ac_f in
24101 -) ac_f="$tmp/stdin";;
24102 *) # Look for the file first in the build tree, then in the source tree
24103 # (if the path is not absolute). The absolute path cannot be DOS-style,
24104 # because $ac_f cannot contain `:'.
24105 test -f "$ac_f" ||
24106 case $ac_f in
24107 [\\/$]*) false;;
24108 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24109 esac ||
24110 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24111 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24112 { (exit 1); exit 1; }; };;
24113 esac
24114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24115 ac_file_inputs="$ac_file_inputs '$ac_f'"
24116 done
24118 # Let's still pretend it is `configure' which instantiates (i.e., don't
24119 # use $as_me), people would be surprised to read:
24120 # /* config.h. Generated by config.status. */
24121 configure_input='Generated from '`
24122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24123 `' by configure.'
24124 if test x"$ac_file" != x-; then
24125 configure_input="$ac_file. $configure_input"
24126 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24127 $as_echo "$as_me: creating $ac_file" >&6;}
24129 # Neutralize special characters interpreted by sed in replacement strings.
24130 case $configure_input in #(
24131 *\&* | *\|* | *\\* )
24132 ac_sed_conf_input=`$as_echo "$configure_input" |
24133 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24134 *) ac_sed_conf_input=$configure_input;;
24135 esac
24137 case $ac_tag in
24138 *:-:* | *:-) cat >"$tmp/stdin" \
24139 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24140 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24141 { (exit 1); exit 1; }; } ;;
24142 esac
24144 esac
24146 ac_dir=`$as_dirname -- "$ac_file" ||
24147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24148 X"$ac_file" : 'X\(//\)[^/]' \| \
24149 X"$ac_file" : 'X\(//\)$' \| \
24150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24151 $as_echo X"$ac_file" |
24152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24153 s//\1/
24156 /^X\(\/\/\)[^/].*/{
24157 s//\1/
24160 /^X\(\/\/\)$/{
24161 s//\1/
24164 /^X\(\/\).*/{
24165 s//\1/
24168 s/.*/./; q'`
24169 { as_dir="$ac_dir"
24170 case $as_dir in #(
24171 -*) as_dir=./$as_dir;;
24172 esac
24173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24174 as_dirs=
24175 while :; do
24176 case $as_dir in #(
24177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24178 *) as_qdir=$as_dir;;
24179 esac
24180 as_dirs="'$as_qdir' $as_dirs"
24181 as_dir=`$as_dirname -- "$as_dir" ||
24182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24183 X"$as_dir" : 'X\(//\)[^/]' \| \
24184 X"$as_dir" : 'X\(//\)$' \| \
24185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24186 $as_echo X"$as_dir" |
24187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24188 s//\1/
24191 /^X\(\/\/\)[^/].*/{
24192 s//\1/
24195 /^X\(\/\/\)$/{
24196 s//\1/
24199 /^X\(\/\).*/{
24200 s//\1/
24203 s/.*/./; q'`
24204 test -d "$as_dir" && break
24205 done
24206 test -z "$as_dirs" || eval "mkdir $as_dirs"
24207 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24208 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24209 { (exit 1); exit 1; }; }; }
24210 ac_builddir=.
24212 case "$ac_dir" in
24213 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24215 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24216 # A ".." for each directory in $ac_dir_suffix.
24217 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24218 case $ac_top_builddir_sub in
24219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24221 esac ;;
24222 esac
24223 ac_abs_top_builddir=$ac_pwd
24224 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24225 # for backward compatibility:
24226 ac_top_builddir=$ac_top_build_prefix
24228 case $srcdir in
24229 .) # We are building in place.
24230 ac_srcdir=.
24231 ac_top_srcdir=$ac_top_builddir_sub
24232 ac_abs_top_srcdir=$ac_pwd ;;
24233 [\\/]* | ?:[\\/]* ) # Absolute name.
24234 ac_srcdir=$srcdir$ac_dir_suffix;
24235 ac_top_srcdir=$srcdir
24236 ac_abs_top_srcdir=$srcdir ;;
24237 *) # Relative name.
24238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24239 ac_top_srcdir=$ac_top_build_prefix$srcdir
24240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24241 esac
24242 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24245 case $ac_mode in
24248 # CONFIG_FILE
24251 case $INSTALL in
24252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24254 esac
24255 ac_MKDIR_P=$MKDIR_P
24256 case $MKDIR_P in
24257 [\\/$]* | ?:[\\/]* ) ;;
24258 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24259 esac
24260 _ACEOF
24262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24263 # If the template does not know about datarootdir, expand it.
24264 # FIXME: This hack should be removed a few years after 2.60.
24265 ac_datarootdir_hack=; ac_datarootdir_seen=
24267 ac_sed_dataroot='
24268 /datarootdir/ {
24272 /@datadir@/p
24273 /@docdir@/p
24274 /@infodir@/p
24275 /@localedir@/p
24276 /@mandir@/p
24278 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24279 *datarootdir*) ac_datarootdir_seen=yes;;
24280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24281 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24282 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24283 _ACEOF
24284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24285 ac_datarootdir_hack='
24286 s&@datadir@&$datadir&g
24287 s&@docdir@&$docdir&g
24288 s&@infodir@&$infodir&g
24289 s&@localedir@&$localedir&g
24290 s&@mandir@&$mandir&g
24291 s&\\\${datarootdir}&$datarootdir&g' ;;
24292 esac
24293 _ACEOF
24295 # Neutralize VPATH when `$srcdir' = `.'.
24296 # Shell code in configure.ac might set extrasub.
24297 # FIXME: do we really want to maintain this feature?
24298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24299 ac_sed_extra="$ac_vpsub
24300 $extrasub
24301 _ACEOF
24302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24305 s|@configure_input@|$ac_sed_conf_input|;t t
24306 s&@top_builddir@&$ac_top_builddir_sub&;t t
24307 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24308 s&@srcdir@&$ac_srcdir&;t t
24309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24310 s&@top_srcdir@&$ac_top_srcdir&;t t
24311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24312 s&@builddir@&$ac_builddir&;t t
24313 s&@abs_builddir@&$ac_abs_builddir&;t t
24314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24315 s&@INSTALL@&$ac_INSTALL&;t t
24316 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24317 $ac_datarootdir_hack
24319 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24320 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24321 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24322 { (exit 1); exit 1; }; }
24324 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24325 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24326 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24327 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24328 which seems to be undefined. Please make sure it is defined." >&5
24329 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24330 which seems to be undefined. Please make sure it is defined." >&2;}
24332 rm -f "$tmp/stdin"
24333 case $ac_file in
24334 -) cat "$tmp/out" && rm -f "$tmp/out";;
24335 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24336 esac \
24337 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24338 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24339 { (exit 1); exit 1; }; }
24343 # CONFIG_HEADER
24345 if test x"$ac_file" != x-; then
24347 $as_echo "/* $configure_input */" \
24348 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24349 } >"$tmp/config.h" \
24350 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24351 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24352 { (exit 1); exit 1; }; }
24353 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24354 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24355 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24356 else
24357 rm -f "$ac_file"
24358 mv "$tmp/config.h" "$ac_file" \
24359 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24360 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24361 { (exit 1); exit 1; }; }
24363 else
24364 $as_echo "/* $configure_input */" \
24365 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24366 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24367 $as_echo "$as_me: error: could not create -" >&2;}
24368 { (exit 1); exit 1; }; }
24370 # Compute "$ac_file"'s index in $config_headers.
24371 _am_arg="$ac_file"
24372 _am_stamp_count=1
24373 for _am_header in $config_headers :; do
24374 case $_am_header in
24375 $_am_arg | $_am_arg:* )
24376 break ;;
24378 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24379 esac
24380 done
24381 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24382 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24383 X"$_am_arg" : 'X\(//\)[^/]' \| \
24384 X"$_am_arg" : 'X\(//\)$' \| \
24385 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24386 $as_echo X"$_am_arg" |
24387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24388 s//\1/
24391 /^X\(\/\/\)[^/].*/{
24392 s//\1/
24395 /^X\(\/\/\)$/{
24396 s//\1/
24399 /^X\(\/\).*/{
24400 s//\1/
24403 s/.*/./; q'`/stamp-h$_am_stamp_count
24406 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24407 $as_echo "$as_me: executing $ac_file commands" >&6;}
24409 esac
24412 case $ac_file$ac_mode in
24413 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24414 # Strip MF so we end up with the name of the file.
24415 mf=`echo "$mf" | sed -e 's/:.*$//'`
24416 # Check whether this is an Automake generated Makefile or not.
24417 # We used to match only the files named `Makefile.in', but
24418 # some people rename them; so instead we look at the file content.
24419 # Grep'ing the first line is not enough: some people post-process
24420 # each Makefile.in and add a new line on top of each file to say so.
24421 # Grep'ing the whole file is not good either: AIX grep has a line
24422 # limit of 2048, but all sed's we know have understand at least 4000.
24423 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24424 dirpart=`$as_dirname -- "$mf" ||
24425 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24426 X"$mf" : 'X\(//\)[^/]' \| \
24427 X"$mf" : 'X\(//\)$' \| \
24428 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24429 $as_echo X"$mf" |
24430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24431 s//\1/
24434 /^X\(\/\/\)[^/].*/{
24435 s//\1/
24438 /^X\(\/\/\)$/{
24439 s//\1/
24442 /^X\(\/\).*/{
24443 s//\1/
24446 s/.*/./; q'`
24447 else
24448 continue
24450 # Extract the definition of DEPDIR, am__include, and am__quote
24451 # from the Makefile without running `make'.
24452 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24453 test -z "$DEPDIR" && continue
24454 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24455 test -z "am__include" && continue
24456 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24457 # When using ansi2knr, U may be empty or an underscore; expand it
24458 U=`sed -n 's/^U = //p' < "$mf"`
24459 # Find all dependency output files, they are included files with
24460 # $(DEPDIR) in their names. We invoke sed twice because it is the
24461 # simplest approach to changing $(DEPDIR) to its actual value in the
24462 # expansion.
24463 for file in `sed -n "
24464 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24465 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24466 # Make sure the directory exists.
24467 test -f "$dirpart/$file" && continue
24468 fdir=`$as_dirname -- "$file" ||
24469 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24470 X"$file" : 'X\(//\)[^/]' \| \
24471 X"$file" : 'X\(//\)$' \| \
24472 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24473 $as_echo X"$file" |
24474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24475 s//\1/
24478 /^X\(\/\/\)[^/].*/{
24479 s//\1/
24482 /^X\(\/\/\)$/{
24483 s//\1/
24486 /^X\(\/\).*/{
24487 s//\1/
24490 s/.*/./; q'`
24491 { as_dir=$dirpart/$fdir
24492 case $as_dir in #(
24493 -*) as_dir=./$as_dir;;
24494 esac
24495 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24496 as_dirs=
24497 while :; do
24498 case $as_dir in #(
24499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24500 *) as_qdir=$as_dir;;
24501 esac
24502 as_dirs="'$as_qdir' $as_dirs"
24503 as_dir=`$as_dirname -- "$as_dir" ||
24504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24505 X"$as_dir" : 'X\(//\)[^/]' \| \
24506 X"$as_dir" : 'X\(//\)$' \| \
24507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24508 $as_echo X"$as_dir" |
24509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24510 s//\1/
24513 /^X\(\/\/\)[^/].*/{
24514 s//\1/
24517 /^X\(\/\/\)$/{
24518 s//\1/
24521 /^X\(\/\).*/{
24522 s//\1/
24525 s/.*/./; q'`
24526 test -d "$as_dir" && break
24527 done
24528 test -z "$as_dirs" || eval "mkdir $as_dirs"
24529 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24530 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24531 { (exit 1); exit 1; }; }; }
24532 # echo "creating $dirpart/$file"
24533 echo '# dummy' > "$dirpart/$file"
24534 done
24535 done
24538 esac
24539 done # for ac_tag
24542 { (exit 0); exit 0; }
24543 _ACEOF
24544 chmod +x $CONFIG_STATUS
24545 ac_clean_files=$ac_clean_files_save
24547 test $ac_write_fail = 0 ||
24548 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24549 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24550 { (exit 1); exit 1; }; }
24553 # configure is writing to config.log, and then calls config.status.
24554 # config.status does its own redirection, appending to config.log.
24555 # Unfortunately, on DOS this fails, as config.log is still kept open
24556 # by configure, so config.status won't be able to write to it; its
24557 # output is simply discarded. So we exec the FD to /dev/null,
24558 # effectively closing config.log, so it can be properly (re)opened and
24559 # appended to by config.status. When coming back to configure, we
24560 # need to make the FD available again.
24561 if test "$no_create" != yes; then
24562 ac_cs_success=:
24563 ac_config_status_args=
24564 test "$silent" = yes &&
24565 ac_config_status_args="$ac_config_status_args --quiet"
24566 exec 5>/dev/null
24567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24568 exec 5>>config.log
24569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24570 # would make configure fail if this is the last instruction.
24571 $ac_cs_success || { (exit 1); exit 1; }
24573 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24574 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24575 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24578 ac_config_files="$ac_config_files src/Makefile"
24580 cat >confcache <<\_ACEOF
24581 # This file is a shell script that caches the results of configure
24582 # tests run on this system so they can be shared between configure
24583 # scripts and configure runs, see configure's option --config-cache.
24584 # It is not useful on other systems. If it contains results you don't
24585 # want to keep, you may remove or edit it.
24587 # config.status only pays attention to the cache file if you give it
24588 # the --recheck option to rerun configure.
24590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24592 # following values.
24594 _ACEOF
24596 # The following way of writing the cache mishandles newlines in values,
24597 # but we know of no workaround that is simple, portable, and efficient.
24598 # So, we kill variables containing newlines.
24599 # Ultrix sh set writes to stderr and can't be redirected directly,
24600 # and sets the high bit in the cache file unless we assign to the vars.
24602 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24603 eval ac_val=\$$ac_var
24604 case $ac_val in #(
24605 *${as_nl}*)
24606 case $ac_var in #(
24607 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
24608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24609 esac
24610 case $ac_var in #(
24611 _ | IFS | as_nl) ;; #(
24612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24613 *) $as_unset $ac_var ;;
24614 esac ;;
24615 esac
24616 done
24618 (set) 2>&1 |
24619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24620 *${as_nl}ac_space=\ *)
24621 # `set' does not quote correctly, so add quotes (double-quote
24622 # substitution turns \\\\ into \\, and sed turns \\ into \).
24623 sed -n \
24624 "s/'/'\\\\''/g;
24625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24626 ;; #(
24628 # `set' quotes correctly as required by POSIX, so do not add quotes.
24629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24631 esac |
24632 sort
24634 sed '
24635 /^ac_cv_env_/b end
24636 t clear
24637 :clear
24638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24639 t end
24640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24641 :end' >>confcache
24642 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24643 if test -w "$cache_file"; then
24644 test "x$cache_file" != "x/dev/null" &&
24645 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24646 $as_echo "$as_me: updating cache $cache_file" >&6;}
24647 cat confcache >$cache_file
24648 else
24649 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24650 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24653 rm -f confcache
24655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24656 # Let make expand exec_prefix.
24657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24659 DEFS=-DHAVE_CONFIG_H
24661 ac_libobjs=
24662 ac_ltlibobjs=
24663 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24664 # 1. Remove the extension, and $U if already installed.
24665 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24666 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24667 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24668 # will be set to the directory where LIBOBJS objects are built.
24669 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24670 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24671 done
24672 LIBOBJS=$ac_libobjs
24674 LTLIBOBJS=$ac_ltlibobjs
24677 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24678 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24679 Usually this means the macro was only invoked conditionally." >&5
24680 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24681 Usually this means the macro was only invoked conditionally." >&2;}
24682 { (exit 1); exit 1; }; }
24684 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24685 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24686 Usually this means the macro was only invoked conditionally." >&5
24687 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24688 Usually this means the macro was only invoked conditionally." >&2;}
24689 { (exit 1); exit 1; }; }
24691 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24692 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24693 Usually this means the macro was only invoked conditionally." >&5
24694 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24695 Usually this means the macro was only invoked conditionally." >&2;}
24696 { (exit 1); exit 1; }; }
24698 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24699 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24700 Usually this means the macro was only invoked conditionally." >&5
24701 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24702 Usually this means the macro was only invoked conditionally." >&2;}
24703 { (exit 1); exit 1; }; }
24706 : ${CONFIG_STATUS=./config.status}
24707 ac_write_fail=0
24708 ac_clean_files_save=$ac_clean_files
24709 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24710 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24711 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24712 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24713 #! $SHELL
24714 # Generated by $as_me.
24715 # Run this file to recreate the current configuration.
24716 # Compiler output produced by configure, useful for debugging
24717 # configure, is in config.log if it exists.
24719 debug=false
24720 ac_cs_recheck=false
24721 ac_cs_silent=false
24722 SHELL=\${CONFIG_SHELL-$SHELL}
24723 _ACEOF
24725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24726 ## --------------------- ##
24727 ## M4sh Initialization. ##
24728 ## --------------------- ##
24730 # Be more Bourne compatible
24731 DUALCASE=1; export DUALCASE # for MKS sh
24732 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24733 emulate sh
24734 NULLCMD=:
24735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24736 # is contrary to our usage. Disable this feature.
24737 alias -g '${1+"$@"}'='"$@"'
24738 setopt NO_GLOB_SUBST
24739 else
24740 case `(set -o) 2>/dev/null` in
24741 *posix*) set -o posix ;;
24742 esac
24749 # PATH needs CR
24750 # Avoid depending upon Character Ranges.
24751 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24752 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24753 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24754 as_cr_digits='0123456789'
24755 as_cr_alnum=$as_cr_Letters$as_cr_digits
24757 as_nl='
24759 export as_nl
24760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24761 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24764 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24765 as_echo='printf %s\n'
24766 as_echo_n='printf %s'
24767 else
24768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24770 as_echo_n='/usr/ucb/echo -n'
24771 else
24772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24773 as_echo_n_body='eval
24774 arg=$1;
24775 case $arg in
24776 *"$as_nl"*)
24777 expr "X$arg" : "X\\(.*\\)$as_nl";
24778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24779 esac;
24780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24782 export as_echo_n_body
24783 as_echo_n='sh -c $as_echo_n_body as_echo'
24785 export as_echo_body
24786 as_echo='sh -c $as_echo_body as_echo'
24789 # The user is always right.
24790 if test "${PATH_SEPARATOR+set}" != set; then
24791 PATH_SEPARATOR=:
24792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24794 PATH_SEPARATOR=';'
24798 # Support unset when possible.
24799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24800 as_unset=unset
24801 else
24802 as_unset=false
24806 # IFS
24807 # We need space, tab and new line, in precisely that order. Quoting is
24808 # there to prevent editors from complaining about space-tab.
24809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24810 # splitting by setting IFS to empty value.)
24811 IFS=" "" $as_nl"
24813 # Find who we are. Look in the path if we contain no directory separator.
24814 case $0 in
24815 *[\\/]* ) as_myself=$0 ;;
24816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24817 for as_dir in $PATH
24819 IFS=$as_save_IFS
24820 test -z "$as_dir" && as_dir=.
24821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24822 done
24823 IFS=$as_save_IFS
24826 esac
24827 # We did not find ourselves, most probably we were run as `sh COMMAND'
24828 # in which case we are not to be found in the path.
24829 if test "x$as_myself" = x; then
24830 as_myself=$0
24832 if test ! -f "$as_myself"; then
24833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24834 { (exit 1); exit 1; }
24837 # Work around bugs in pre-3.0 UWIN ksh.
24838 for as_var in ENV MAIL MAILPATH
24839 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24840 done
24841 PS1='$ '
24842 PS2='> '
24843 PS4='+ '
24845 # NLS nuisances.
24846 LC_ALL=C
24847 export LC_ALL
24848 LANGUAGE=C
24849 export LANGUAGE
24851 # Required to use basename.
24852 if expr a : '\(a\)' >/dev/null 2>&1 &&
24853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24854 as_expr=expr
24855 else
24856 as_expr=false
24859 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24860 as_basename=basename
24861 else
24862 as_basename=false
24866 # Name of the executable.
24867 as_me=`$as_basename -- "$0" ||
24868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24869 X"$0" : 'X\(//\)$' \| \
24870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24871 $as_echo X/"$0" |
24872 sed '/^.*\/\([^/][^/]*\)\/*$/{
24873 s//\1/
24876 /^X\/\(\/\/\)$/{
24877 s//\1/
24880 /^X\/\(\/\).*/{
24881 s//\1/
24884 s/.*/./; q'`
24886 # CDPATH.
24887 $as_unset CDPATH
24891 as_lineno_1=$LINENO
24892 as_lineno_2=$LINENO
24893 test "x$as_lineno_1" != "x$as_lineno_2" &&
24894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24897 # uniformly replaced by the line number. The first 'sed' inserts a
24898 # line-number line after each line using $LINENO; the second 'sed'
24899 # does the real work. The second script uses 'N' to pair each
24900 # line-number line with the line containing $LINENO, and appends
24901 # trailing '-' during substitution so that $LINENO is not a special
24902 # case at line end.
24903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24904 # scripts with optimization help from Paolo Bonzini. Blame Lee
24905 # E. McMahon (1931-1989) for sed's syntax. :-)
24906 sed -n '
24908 /[$]LINENO/=
24909 ' <$as_myself |
24910 sed '
24911 s/[$]LINENO.*/&-/
24912 t lineno
24914 :lineno
24916 :loop
24917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24918 t loop
24919 s/-\n.*//
24920 ' >$as_me.lineno &&
24921 chmod +x "$as_me.lineno" ||
24922 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24923 { (exit 1); exit 1; }; }
24925 # Don't try to exec as it changes $[0], causing all sort of problems
24926 # (the dirname of $[0] is not the place where we might find the
24927 # original and so on. Autoconf is especially sensitive to this).
24928 . "./$as_me.lineno"
24929 # Exit status is that of the last command.
24930 exit
24934 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24935 as_dirname=dirname
24936 else
24937 as_dirname=false
24940 ECHO_C= ECHO_N= ECHO_T=
24941 case `echo -n x` in
24942 -n*)
24943 case `echo 'x\c'` in
24944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24945 *) ECHO_C='\c';;
24946 esac;;
24948 ECHO_N='-n';;
24949 esac
24950 if expr a : '\(a\)' >/dev/null 2>&1 &&
24951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24952 as_expr=expr
24953 else
24954 as_expr=false
24957 rm -f conf$$ conf$$.exe conf$$.file
24958 if test -d conf$$.dir; then
24959 rm -f conf$$.dir/conf$$.file
24960 else
24961 rm -f conf$$.dir
24962 mkdir conf$$.dir 2>/dev/null
24964 if (echo >conf$$.file) 2>/dev/null; then
24965 if ln -s conf$$.file conf$$ 2>/dev/null; then
24966 as_ln_s='ln -s'
24967 # ... but there are two gotchas:
24968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24970 # In both cases, we have to default to `cp -p'.
24971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24972 as_ln_s='cp -p'
24973 elif ln conf$$.file conf$$ 2>/dev/null; then
24974 as_ln_s=ln
24975 else
24976 as_ln_s='cp -p'
24978 else
24979 as_ln_s='cp -p'
24981 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24982 rmdir conf$$.dir 2>/dev/null
24984 if mkdir -p . 2>/dev/null; then
24985 as_mkdir_p=:
24986 else
24987 test -d ./-p && rmdir ./-p
24988 as_mkdir_p=false
24991 if test -x / >/dev/null 2>&1; then
24992 as_test_x='test -x'
24993 else
24994 if ls -dL / >/dev/null 2>&1; then
24995 as_ls_L_option=L
24996 else
24997 as_ls_L_option=
24999 as_test_x='
25000 eval sh -c '\''
25001 if test -d "$1"; then
25002 test -d "$1/.";
25003 else
25004 case $1 in
25005 -*)set "./$1";;
25006 esac;
25007 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25008 ???[sx]*):;;*)false;;esac;fi
25009 '\'' sh
25012 as_executable_p=$as_test_x
25014 # Sed expression to map a string onto a valid CPP name.
25015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25017 # Sed expression to map a string onto a valid variable name.
25018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25021 exec 6>&1
25023 # Save the log message, to keep $[0] and so on meaningful, and to
25024 # report actual input values of CONFIG_FILES etc. instead of their
25025 # values after options handling.
25026 ac_log="
25027 This file was extended by netbsd-iscsi $as_me 20090622, which was
25028 generated by GNU Autoconf 2.63. Invocation command line was
25030 CONFIG_FILES = $CONFIG_FILES
25031 CONFIG_HEADERS = $CONFIG_HEADERS
25032 CONFIG_LINKS = $CONFIG_LINKS
25033 CONFIG_COMMANDS = $CONFIG_COMMANDS
25034 $ $0 $@
25036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25039 _ACEOF
25041 case $ac_config_files in *"
25042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25043 esac
25045 case $ac_config_headers in *"
25046 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25047 esac
25050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25051 # Files that config.status was made for.
25052 config_files="$ac_config_files"
25053 config_headers="$ac_config_headers"
25054 config_commands="$ac_config_commands"
25056 _ACEOF
25058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25059 ac_cs_usage="\
25060 \`$as_me' instantiates files from templates according to the
25061 current configuration.
25063 Usage: $0 [OPTION]... [FILE]...
25065 -h, --help print this help, then exit
25066 -V, --version print version number and configuration settings, then exit
25067 -q, --quiet, --silent
25068 do not print progress messages
25069 -d, --debug don't remove temporary files
25070 --recheck update $as_me by reconfiguring in the same conditions
25071 --file=FILE[:TEMPLATE]
25072 instantiate the configuration file FILE
25073 --header=FILE[:TEMPLATE]
25074 instantiate the configuration header FILE
25076 Configuration files:
25077 $config_files
25079 Configuration headers:
25080 $config_headers
25082 Configuration commands:
25083 $config_commands
25085 Report bugs to <bug-autoconf@gnu.org>."
25087 _ACEOF
25088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25089 ac_cs_version="\\
25090 netbsd-iscsi config.status 20090622
25091 configured by $0, generated by GNU Autoconf 2.63,
25092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25094 Copyright (C) 2008 Free Software Foundation, Inc.
25095 This config.status script is free software; the Free Software Foundation
25096 gives unlimited permission to copy, distribute and modify it."
25098 ac_pwd='$ac_pwd'
25099 srcdir='$srcdir'
25100 INSTALL='$INSTALL'
25101 MKDIR_P='$MKDIR_P'
25102 AWK='$AWK'
25103 test -n "\$AWK" || AWK=awk
25104 _ACEOF
25106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25107 # The default lists apply if the user does not specify any file.
25108 ac_need_defaults=:
25109 while test $# != 0
25111 case $1 in
25112 --*=*)
25113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25115 ac_shift=:
25118 ac_option=$1
25119 ac_optarg=$2
25120 ac_shift=shift
25122 esac
25124 case $ac_option in
25125 # Handling of the options.
25126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25127 ac_cs_recheck=: ;;
25128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25129 $as_echo "$ac_cs_version"; exit ;;
25130 --debug | --debu | --deb | --de | --d | -d )
25131 debug=: ;;
25132 --file | --fil | --fi | --f )
25133 $ac_shift
25134 case $ac_optarg in
25135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25136 esac
25137 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25138 ac_need_defaults=false;;
25139 --header | --heade | --head | --hea )
25140 $ac_shift
25141 case $ac_optarg in
25142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25143 esac
25144 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25145 ac_need_defaults=false;;
25146 --he | --h)
25147 # Conflict between --help and --header
25148 { $as_echo "$as_me: error: ambiguous option: $1
25149 Try \`$0 --help' for more information." >&2
25150 { (exit 1); exit 1; }; };;
25151 --help | --hel | -h )
25152 $as_echo "$ac_cs_usage"; exit ;;
25153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25155 ac_cs_silent=: ;;
25157 # This is an error.
25158 -*) { $as_echo "$as_me: error: unrecognized option: $1
25159 Try \`$0 --help' for more information." >&2
25160 { (exit 1); exit 1; }; } ;;
25162 *) ac_config_targets="$ac_config_targets $1"
25163 ac_need_defaults=false ;;
25165 esac
25166 shift
25167 done
25169 ac_configure_extra_args=
25171 if $ac_cs_silent; then
25172 exec 6>/dev/null
25173 ac_configure_extra_args="$ac_configure_extra_args --silent"
25176 _ACEOF
25177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25178 if \$ac_cs_recheck; then
25179 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25180 shift
25181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25182 CONFIG_SHELL='$SHELL'
25183 export CONFIG_SHELL
25184 exec "\$@"
25187 _ACEOF
25188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25189 exec 5>>config.log
25191 echo
25192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25193 ## Running $as_me. ##
25194 _ASBOX
25195 $as_echo "$ac_log"
25196 } >&5
25198 _ACEOF
25199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25201 # INIT-COMMANDS
25203 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25205 _ACEOF
25207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25209 # Handling of arguments.
25210 for ac_config_target in $ac_config_targets
25212 case $ac_config_target in
25213 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25214 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25215 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25216 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25218 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25219 $as_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 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25261 { (exit 1); exit 1; }
25264 # Set up the scripts for CONFIG_FILES section.
25265 # No need to generate them if there are no CONFIG_FILES.
25266 # This happens for instance with `./config.status config.h'.
25267 if test -n "$CONFIG_FILES"; then
25270 ac_cr=' '
25271 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25272 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25273 ac_cs_awk_cr='\\r'
25274 else
25275 ac_cs_awk_cr=$ac_cr
25278 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25279 _ACEOF
25283 echo "cat >conf$$subs.awk <<_ACEOF" &&
25284 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25285 echo "_ACEOF"
25286 } >conf$$subs.sh ||
25287 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25288 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25289 { (exit 1); exit 1; }; }
25290 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25291 ac_delim='%!_!# '
25292 for ac_last_try in false false false false false :; do
25293 . ./conf$$subs.sh ||
25294 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25295 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25296 { (exit 1); exit 1; }; }
25298 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25299 if test $ac_delim_n = $ac_delim_num; then
25300 break
25301 elif $ac_last_try; then
25302 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25303 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25304 { (exit 1); exit 1; }; }
25305 else
25306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25308 done
25309 rm -f conf$$subs.sh
25311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25312 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25313 _ACEOF
25314 sed -n '
25316 s/^/S["/; s/!.*/"]=/
25319 s/^[^!]*!//
25320 :repl
25321 t repl
25322 s/'"$ac_delim"'$//
25323 t delim
25326 s/\(.\{148\}\).*/\1/
25327 t more1
25328 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25331 b repl
25332 :more1
25333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25336 s/.\{148\}//
25337 t nl
25338 :delim
25340 s/\(.\{148\}\).*/\1/
25341 t more2
25342 s/["\\]/\\&/g; s/^/"/; s/$/"/
25345 :more2
25346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25349 s/.\{148\}//
25350 t delim
25351 ' <conf$$subs.awk | sed '
25352 /^[^""]/{
25354 s/\n//
25356 ' >>$CONFIG_STATUS || ac_write_fail=1
25357 rm -f conf$$subs.awk
25358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25359 _ACAWK
25360 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25361 for (key in S) S_is_set[key] = 1
25362 FS = "\a"
25366 line = $ 0
25367 nfields = split(line, field, "@")
25368 substed = 0
25369 len = length(field[1])
25370 for (i = 2; i < nfields; i++) {
25371 key = field[i]
25372 keylen = length(key)
25373 if (S_is_set[key]) {
25374 value = S[key]
25375 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25376 len += length(value) + length(field[++i])
25377 substed = 1
25378 } else
25379 len += 1 + keylen
25382 print line
25385 _ACAWK
25386 _ACEOF
25387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25388 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25389 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25390 else
25392 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25393 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25394 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
25395 { (exit 1); exit 1; }; }
25396 _ACEOF
25398 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25399 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25400 # trailing colons and then remove the whole line if VPATH becomes empty
25401 # (actually we leave an empty line to preserve line numbers).
25402 if test "x$srcdir" = x.; then
25403 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25404 s/:*\$(srcdir):*/:/
25405 s/:*\${srcdir}:*/:/
25406 s/:*@srcdir@:*/:/
25407 s/^\([^=]*=[ ]*\):*/\1/
25408 s/:*$//
25409 s/^[^=]*=[ ]*$//
25413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25414 fi # test -n "$CONFIG_FILES"
25416 # Set up the scripts for CONFIG_HEADERS section.
25417 # No need to generate them if there are no CONFIG_HEADERS.
25418 # This happens for instance with `./config.status Makefile'.
25419 if test -n "$CONFIG_HEADERS"; then
25420 cat >"$tmp/defines.awk" <<\_ACAWK ||
25421 BEGIN {
25422 _ACEOF
25424 # Transform confdefs.h into an awk script `defines.awk', embedded as
25425 # here-document in config.status, that substitutes the proper values into
25426 # config.h.in to produce config.h.
25428 # Create a delimiter string that does not exist in confdefs.h, to ease
25429 # handling of long lines.
25430 ac_delim='%!_!# '
25431 for ac_last_try in false false :; do
25432 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25433 if test -z "$ac_t"; then
25434 break
25435 elif $ac_last_try; then
25436 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25437 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25438 { (exit 1); exit 1; }; }
25439 else
25440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25442 done
25444 # For the awk script, D is an array of macro values keyed by name,
25445 # likewise P contains macro parameters if any. Preserve backslash
25446 # newline sequences.
25448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25449 sed -n '
25450 s/.\{148\}/&'"$ac_delim"'/g
25451 t rset
25452 :rset
25453 s/^[ ]*#[ ]*define[ ][ ]*/ /
25454 t def
25456 :def
25457 s/\\$//
25458 t bsnl
25459 s/["\\]/\\&/g
25460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25461 D["\1"]=" \3"/p
25462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25464 :bsnl
25465 s/["\\]/\\&/g
25466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25467 D["\1"]=" \3\\\\\\n"\\/p
25468 t cont
25469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25470 t cont
25472 :cont
25474 s/.\{148\}/&'"$ac_delim"'/g
25475 t clear
25476 :clear
25477 s/\\$//
25478 t bsnlc
25479 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25481 :bsnlc
25482 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25483 b cont
25484 ' <confdefs.h | sed '
25485 s/'"$ac_delim"'/"\\\
25486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25489 for (key in D) D_is_set[key] = 1
25490 FS = "\a"
25492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25493 line = \$ 0
25494 split(line, arg, " ")
25495 if (arg[1] == "#") {
25496 defundef = arg[2]
25497 mac1 = arg[3]
25498 } else {
25499 defundef = substr(arg[1], 2)
25500 mac1 = arg[2]
25502 split(mac1, mac2, "(") #)
25503 macro = mac2[1]
25504 prefix = substr(line, 1, index(line, defundef) - 1)
25505 if (D_is_set[macro]) {
25506 # Preserve the white space surrounding the "#".
25507 print prefix "define", macro P[macro] D[macro]
25508 next
25509 } else {
25510 # Replace #undef with comments. This is necessary, for example,
25511 # in the case of _POSIX_SOURCE, which is predefined and required
25512 # on some systems where configure will not decide to define it.
25513 if (defundef == "undef") {
25514 print "/*", prefix defundef, macro, "*/"
25515 next
25519 { print }
25520 _ACAWK
25521 _ACEOF
25522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25523 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25524 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25525 { (exit 1); exit 1; }; }
25526 fi # test -n "$CONFIG_HEADERS"
25529 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25530 shift
25531 for ac_tag
25533 case $ac_tag in
25534 :[FHLC]) ac_mode=$ac_tag; continue;;
25535 esac
25536 case $ac_mode$ac_tag in
25537 :[FHL]*:*);;
25538 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25539 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25540 { (exit 1); exit 1; }; };;
25541 :[FH]-) ac_tag=-:-;;
25542 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25543 esac
25544 ac_save_IFS=$IFS
25545 IFS=:
25546 set x $ac_tag
25547 IFS=$ac_save_IFS
25548 shift
25549 ac_file=$1
25550 shift
25552 case $ac_mode in
25553 :L) ac_source=$1;;
25554 :[FH])
25555 ac_file_inputs=
25556 for ac_f
25558 case $ac_f in
25559 -) ac_f="$tmp/stdin";;
25560 *) # Look for the file first in the build tree, then in the source tree
25561 # (if the path is not absolute). The absolute path cannot be DOS-style,
25562 # because $ac_f cannot contain `:'.
25563 test -f "$ac_f" ||
25564 case $ac_f in
25565 [\\/$]*) false;;
25566 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25567 esac ||
25568 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25569 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25570 { (exit 1); exit 1; }; };;
25571 esac
25572 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25573 ac_file_inputs="$ac_file_inputs '$ac_f'"
25574 done
25576 # Let's still pretend it is `configure' which instantiates (i.e., don't
25577 # use $as_me), people would be surprised to read:
25578 # /* config.h. Generated by config.status. */
25579 configure_input='Generated from '`
25580 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25581 `' by configure.'
25582 if test x"$ac_file" != x-; then
25583 configure_input="$ac_file. $configure_input"
25584 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25585 $as_echo "$as_me: creating $ac_file" >&6;}
25587 # Neutralize special characters interpreted by sed in replacement strings.
25588 case $configure_input in #(
25589 *\&* | *\|* | *\\* )
25590 ac_sed_conf_input=`$as_echo "$configure_input" |
25591 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25592 *) ac_sed_conf_input=$configure_input;;
25593 esac
25595 case $ac_tag in
25596 *:-:* | *:-) cat >"$tmp/stdin" \
25597 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25598 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25599 { (exit 1); exit 1; }; } ;;
25600 esac
25602 esac
25604 ac_dir=`$as_dirname -- "$ac_file" ||
25605 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25606 X"$ac_file" : 'X\(//\)[^/]' \| \
25607 X"$ac_file" : 'X\(//\)$' \| \
25608 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25609 $as_echo X"$ac_file" |
25610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25611 s//\1/
25614 /^X\(\/\/\)[^/].*/{
25615 s//\1/
25618 /^X\(\/\/\)$/{
25619 s//\1/
25622 /^X\(\/\).*/{
25623 s//\1/
25626 s/.*/./; q'`
25627 { as_dir="$ac_dir"
25628 case $as_dir in #(
25629 -*) as_dir=./$as_dir;;
25630 esac
25631 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25632 as_dirs=
25633 while :; do
25634 case $as_dir in #(
25635 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25636 *) as_qdir=$as_dir;;
25637 esac
25638 as_dirs="'$as_qdir' $as_dirs"
25639 as_dir=`$as_dirname -- "$as_dir" ||
25640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25641 X"$as_dir" : 'X\(//\)[^/]' \| \
25642 X"$as_dir" : 'X\(//\)$' \| \
25643 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25644 $as_echo X"$as_dir" |
25645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25646 s//\1/
25649 /^X\(\/\/\)[^/].*/{
25650 s//\1/
25653 /^X\(\/\/\)$/{
25654 s//\1/
25657 /^X\(\/\).*/{
25658 s//\1/
25661 s/.*/./; q'`
25662 test -d "$as_dir" && break
25663 done
25664 test -z "$as_dirs" || eval "mkdir $as_dirs"
25665 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25666 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25667 { (exit 1); exit 1; }; }; }
25668 ac_builddir=.
25670 case "$ac_dir" in
25671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25673 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25674 # A ".." for each directory in $ac_dir_suffix.
25675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25676 case $ac_top_builddir_sub in
25677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25679 esac ;;
25680 esac
25681 ac_abs_top_builddir=$ac_pwd
25682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25683 # for backward compatibility:
25684 ac_top_builddir=$ac_top_build_prefix
25686 case $srcdir in
25687 .) # We are building in place.
25688 ac_srcdir=.
25689 ac_top_srcdir=$ac_top_builddir_sub
25690 ac_abs_top_srcdir=$ac_pwd ;;
25691 [\\/]* | ?:[\\/]* ) # Absolute name.
25692 ac_srcdir=$srcdir$ac_dir_suffix;
25693 ac_top_srcdir=$srcdir
25694 ac_abs_top_srcdir=$srcdir ;;
25695 *) # Relative name.
25696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25697 ac_top_srcdir=$ac_top_build_prefix$srcdir
25698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25699 esac
25700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25703 case $ac_mode in
25706 # CONFIG_FILE
25709 case $INSTALL in
25710 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25711 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25712 esac
25713 ac_MKDIR_P=$MKDIR_P
25714 case $MKDIR_P in
25715 [\\/$]* | ?:[\\/]* ) ;;
25716 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25717 esac
25718 _ACEOF
25720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25721 # If the template does not know about datarootdir, expand it.
25722 # FIXME: This hack should be removed a few years after 2.60.
25723 ac_datarootdir_hack=; ac_datarootdir_seen=
25725 ac_sed_dataroot='
25726 /datarootdir/ {
25730 /@datadir@/p
25731 /@docdir@/p
25732 /@infodir@/p
25733 /@localedir@/p
25734 /@mandir@/p
25736 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25737 *datarootdir*) ac_datarootdir_seen=yes;;
25738 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25739 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25740 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25741 _ACEOF
25742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25743 ac_datarootdir_hack='
25744 s&@datadir@&$datadir&g
25745 s&@docdir@&$docdir&g
25746 s&@infodir@&$infodir&g
25747 s&@localedir@&$localedir&g
25748 s&@mandir@&$mandir&g
25749 s&\\\${datarootdir}&$datarootdir&g' ;;
25750 esac
25751 _ACEOF
25753 # Neutralize VPATH when `$srcdir' = `.'.
25754 # Shell code in configure.ac might set extrasub.
25755 # FIXME: do we really want to maintain this feature?
25756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25757 ac_sed_extra="$ac_vpsub
25758 $extrasub
25759 _ACEOF
25760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25763 s|@configure_input@|$ac_sed_conf_input|;t t
25764 s&@top_builddir@&$ac_top_builddir_sub&;t t
25765 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25766 s&@srcdir@&$ac_srcdir&;t t
25767 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25768 s&@top_srcdir@&$ac_top_srcdir&;t t
25769 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25770 s&@builddir@&$ac_builddir&;t t
25771 s&@abs_builddir@&$ac_abs_builddir&;t t
25772 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25773 s&@INSTALL@&$ac_INSTALL&;t t
25774 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25775 $ac_datarootdir_hack
25777 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25778 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25779 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25780 { (exit 1); exit 1; }; }
25782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25783 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25785 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25786 which seems to be undefined. Please make sure it is defined." >&5
25787 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25788 which seems to be undefined. Please make sure it is defined." >&2;}
25790 rm -f "$tmp/stdin"
25791 case $ac_file in
25792 -) cat "$tmp/out" && rm -f "$tmp/out";;
25793 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25794 esac \
25795 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25796 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25797 { (exit 1); exit 1; }; }
25801 # CONFIG_HEADER
25803 if test x"$ac_file" != x-; then
25805 $as_echo "/* $configure_input */" \
25806 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25807 } >"$tmp/config.h" \
25808 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25809 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25810 { (exit 1); exit 1; }; }
25811 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25812 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25813 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25814 else
25815 rm -f "$ac_file"
25816 mv "$tmp/config.h" "$ac_file" \
25817 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25818 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25819 { (exit 1); exit 1; }; }
25821 else
25822 $as_echo "/* $configure_input */" \
25823 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25824 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25825 $as_echo "$as_me: error: could not create -" >&2;}
25826 { (exit 1); exit 1; }; }
25828 # Compute "$ac_file"'s index in $config_headers.
25829 _am_arg="$ac_file"
25830 _am_stamp_count=1
25831 for _am_header in $config_headers :; do
25832 case $_am_header in
25833 $_am_arg | $_am_arg:* )
25834 break ;;
25836 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25837 esac
25838 done
25839 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25840 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25841 X"$_am_arg" : 'X\(//\)[^/]' \| \
25842 X"$_am_arg" : 'X\(//\)$' \| \
25843 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25844 $as_echo X"$_am_arg" |
25845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25846 s//\1/
25849 /^X\(\/\/\)[^/].*/{
25850 s//\1/
25853 /^X\(\/\/\)$/{
25854 s//\1/
25857 /^X\(\/\).*/{
25858 s//\1/
25861 s/.*/./; q'`/stamp-h$_am_stamp_count
25864 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25865 $as_echo "$as_me: executing $ac_file commands" >&6;}
25867 esac
25870 case $ac_file$ac_mode in
25871 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25872 # Strip MF so we end up with the name of the file.
25873 mf=`echo "$mf" | sed -e 's/:.*$//'`
25874 # Check whether this is an Automake generated Makefile or not.
25875 # We used to match only the files named `Makefile.in', but
25876 # some people rename them; so instead we look at the file content.
25877 # Grep'ing the first line is not enough: some people post-process
25878 # each Makefile.in and add a new line on top of each file to say so.
25879 # Grep'ing the whole file is not good either: AIX grep has a line
25880 # limit of 2048, but all sed's we know have understand at least 4000.
25881 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25882 dirpart=`$as_dirname -- "$mf" ||
25883 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25884 X"$mf" : 'X\(//\)[^/]' \| \
25885 X"$mf" : 'X\(//\)$' \| \
25886 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25887 $as_echo X"$mf" |
25888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25889 s//\1/
25892 /^X\(\/\/\)[^/].*/{
25893 s//\1/
25896 /^X\(\/\/\)$/{
25897 s//\1/
25900 /^X\(\/\).*/{
25901 s//\1/
25904 s/.*/./; q'`
25905 else
25906 continue
25908 # Extract the definition of DEPDIR, am__include, and am__quote
25909 # from the Makefile without running `make'.
25910 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25911 test -z "$DEPDIR" && continue
25912 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25913 test -z "am__include" && continue
25914 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25915 # When using ansi2knr, U may be empty or an underscore; expand it
25916 U=`sed -n 's/^U = //p' < "$mf"`
25917 # Find all dependency output files, they are included files with
25918 # $(DEPDIR) in their names. We invoke sed twice because it is the
25919 # simplest approach to changing $(DEPDIR) to its actual value in the
25920 # expansion.
25921 for file in `sed -n "
25922 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25923 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25924 # Make sure the directory exists.
25925 test -f "$dirpart/$file" && continue
25926 fdir=`$as_dirname -- "$file" ||
25927 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25928 X"$file" : 'X\(//\)[^/]' \| \
25929 X"$file" : 'X\(//\)$' \| \
25930 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25931 $as_echo X"$file" |
25932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25933 s//\1/
25936 /^X\(\/\/\)[^/].*/{
25937 s//\1/
25940 /^X\(\/\/\)$/{
25941 s//\1/
25944 /^X\(\/\).*/{
25945 s//\1/
25948 s/.*/./; q'`
25949 { as_dir=$dirpart/$fdir
25950 case $as_dir in #(
25951 -*) as_dir=./$as_dir;;
25952 esac
25953 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25954 as_dirs=
25955 while :; do
25956 case $as_dir in #(
25957 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25958 *) as_qdir=$as_dir;;
25959 esac
25960 as_dirs="'$as_qdir' $as_dirs"
25961 as_dir=`$as_dirname -- "$as_dir" ||
25962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25963 X"$as_dir" : 'X\(//\)[^/]' \| \
25964 X"$as_dir" : 'X\(//\)$' \| \
25965 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25966 $as_echo X"$as_dir" |
25967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25968 s//\1/
25971 /^X\(\/\/\)[^/].*/{
25972 s//\1/
25975 /^X\(\/\/\)$/{
25976 s//\1/
25979 /^X\(\/\).*/{
25980 s//\1/
25983 s/.*/./; q'`
25984 test -d "$as_dir" && break
25985 done
25986 test -z "$as_dirs" || eval "mkdir $as_dirs"
25987 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25988 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25989 { (exit 1); exit 1; }; }; }
25990 # echo "creating $dirpart/$file"
25991 echo '# dummy' > "$dirpart/$file"
25992 done
25993 done
25996 esac
25997 done # for ac_tag
26000 { (exit 0); exit 0; }
26001 _ACEOF
26002 chmod +x $CONFIG_STATUS
26003 ac_clean_files=$ac_clean_files_save
26005 test $ac_write_fail = 0 ||
26006 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26007 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26008 { (exit 1); exit 1; }; }
26011 # configure is writing to config.log, and then calls config.status.
26012 # config.status does its own redirection, appending to config.log.
26013 # Unfortunately, on DOS this fails, as config.log is still kept open
26014 # by configure, so config.status won't be able to write to it; its
26015 # output is simply discarded. So we exec the FD to /dev/null,
26016 # effectively closing config.log, so it can be properly (re)opened and
26017 # appended to by config.status. When coming back to configure, we
26018 # need to make the FD available again.
26019 if test "$no_create" != yes; then
26020 ac_cs_success=:
26021 ac_config_status_args=
26022 test "$silent" = yes &&
26023 ac_config_status_args="$ac_config_status_args --quiet"
26024 exec 5>/dev/null
26025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26026 exec 5>>config.log
26027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26028 # would make configure fail if this is the last instruction.
26029 $ac_cs_success || { (exit 1); exit 1; }
26031 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26032 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26033 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26036 ac_config_files="$ac_config_files src/lib/Makefile"
26038 cat >confcache <<\_ACEOF
26039 # This file is a shell script that caches the results of configure
26040 # tests run on this system so they can be shared between configure
26041 # scripts and configure runs, see configure's option --config-cache.
26042 # It is not useful on other systems. If it contains results you don't
26043 # want to keep, you may remove or edit it.
26045 # config.status only pays attention to the cache file if you give it
26046 # the --recheck option to rerun configure.
26048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26050 # following values.
26052 _ACEOF
26054 # The following way of writing the cache mishandles newlines in values,
26055 # but we know of no workaround that is simple, portable, and efficient.
26056 # So, we kill variables containing newlines.
26057 # Ultrix sh set writes to stderr and can't be redirected directly,
26058 # and sets the high bit in the cache file unless we assign to the vars.
26060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26061 eval ac_val=\$$ac_var
26062 case $ac_val in #(
26063 *${as_nl}*)
26064 case $ac_var in #(
26065 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26067 esac
26068 case $ac_var in #(
26069 _ | IFS | as_nl) ;; #(
26070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26071 *) $as_unset $ac_var ;;
26072 esac ;;
26073 esac
26074 done
26076 (set) 2>&1 |
26077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26078 *${as_nl}ac_space=\ *)
26079 # `set' does not quote correctly, so add quotes (double-quote
26080 # substitution turns \\\\ into \\, and sed turns \\ into \).
26081 sed -n \
26082 "s/'/'\\\\''/g;
26083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26084 ;; #(
26086 # `set' quotes correctly as required by POSIX, so do not add quotes.
26087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26089 esac |
26090 sort
26092 sed '
26093 /^ac_cv_env_/b end
26094 t clear
26095 :clear
26096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26097 t end
26098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26099 :end' >>confcache
26100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26101 if test -w "$cache_file"; then
26102 test "x$cache_file" != "x/dev/null" &&
26103 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26104 $as_echo "$as_me: updating cache $cache_file" >&6;}
26105 cat confcache >$cache_file
26106 else
26107 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26111 rm -f confcache
26113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26114 # Let make expand exec_prefix.
26115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26117 DEFS=-DHAVE_CONFIG_H
26119 ac_libobjs=
26120 ac_ltlibobjs=
26121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26122 # 1. Remove the extension, and $U if already installed.
26123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26126 # will be set to the directory where LIBOBJS objects are built.
26127 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26128 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26129 done
26130 LIBOBJS=$ac_libobjs
26132 LTLIBOBJS=$ac_ltlibobjs
26135 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26136 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26137 Usually this means the macro was only invoked conditionally." >&5
26138 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26139 Usually this means the macro was only invoked conditionally." >&2;}
26140 { (exit 1); exit 1; }; }
26142 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26143 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26144 Usually this means the macro was only invoked conditionally." >&5
26145 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
26146 Usually this means the macro was only invoked conditionally." >&2;}
26147 { (exit 1); exit 1; }; }
26149 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26150 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26151 Usually this means the macro was only invoked conditionally." >&5
26152 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26153 Usually this means the macro was only invoked conditionally." >&2;}
26154 { (exit 1); exit 1; }; }
26156 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26157 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26158 Usually this means the macro was only invoked conditionally." >&5
26159 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26160 Usually this means the macro was only invoked conditionally." >&2;}
26161 { (exit 1); exit 1; }; }
26164 : ${CONFIG_STATUS=./config.status}
26165 ac_write_fail=0
26166 ac_clean_files_save=$ac_clean_files
26167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26168 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26169 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26170 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26171 #! $SHELL
26172 # Generated by $as_me.
26173 # Run this file to recreate the current configuration.
26174 # Compiler output produced by configure, useful for debugging
26175 # configure, is in config.log if it exists.
26177 debug=false
26178 ac_cs_recheck=false
26179 ac_cs_silent=false
26180 SHELL=\${CONFIG_SHELL-$SHELL}
26181 _ACEOF
26183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26184 ## --------------------- ##
26185 ## M4sh Initialization. ##
26186 ## --------------------- ##
26188 # Be more Bourne compatible
26189 DUALCASE=1; export DUALCASE # for MKS sh
26190 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26191 emulate sh
26192 NULLCMD=:
26193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26194 # is contrary to our usage. Disable this feature.
26195 alias -g '${1+"$@"}'='"$@"'
26196 setopt NO_GLOB_SUBST
26197 else
26198 case `(set -o) 2>/dev/null` in
26199 *posix*) set -o posix ;;
26200 esac
26207 # PATH needs CR
26208 # Avoid depending upon Character Ranges.
26209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26212 as_cr_digits='0123456789'
26213 as_cr_alnum=$as_cr_Letters$as_cr_digits
26215 as_nl='
26217 export as_nl
26218 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26219 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26220 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26222 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26223 as_echo='printf %s\n'
26224 as_echo_n='printf %s'
26225 else
26226 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26227 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26228 as_echo_n='/usr/ucb/echo -n'
26229 else
26230 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26231 as_echo_n_body='eval
26232 arg=$1;
26233 case $arg in
26234 *"$as_nl"*)
26235 expr "X$arg" : "X\\(.*\\)$as_nl";
26236 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26237 esac;
26238 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26240 export as_echo_n_body
26241 as_echo_n='sh -c $as_echo_n_body as_echo'
26243 export as_echo_body
26244 as_echo='sh -c $as_echo_body as_echo'
26247 # The user is always right.
26248 if test "${PATH_SEPARATOR+set}" != set; then
26249 PATH_SEPARATOR=:
26250 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26251 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26252 PATH_SEPARATOR=';'
26256 # Support unset when possible.
26257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26258 as_unset=unset
26259 else
26260 as_unset=false
26264 # IFS
26265 # We need space, tab and new line, in precisely that order. Quoting is
26266 # there to prevent editors from complaining about space-tab.
26267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26268 # splitting by setting IFS to empty value.)
26269 IFS=" "" $as_nl"
26271 # Find who we are. Look in the path if we contain no directory separator.
26272 case $0 in
26273 *[\\/]* ) as_myself=$0 ;;
26274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26275 for as_dir in $PATH
26277 IFS=$as_save_IFS
26278 test -z "$as_dir" && as_dir=.
26279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26280 done
26281 IFS=$as_save_IFS
26284 esac
26285 # We did not find ourselves, most probably we were run as `sh COMMAND'
26286 # in which case we are not to be found in the path.
26287 if test "x$as_myself" = x; then
26288 as_myself=$0
26290 if test ! -f "$as_myself"; then
26291 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26292 { (exit 1); exit 1; }
26295 # Work around bugs in pre-3.0 UWIN ksh.
26296 for as_var in ENV MAIL MAILPATH
26297 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26298 done
26299 PS1='$ '
26300 PS2='> '
26301 PS4='+ '
26303 # NLS nuisances.
26304 LC_ALL=C
26305 export LC_ALL
26306 LANGUAGE=C
26307 export LANGUAGE
26309 # Required to use basename.
26310 if expr a : '\(a\)' >/dev/null 2>&1 &&
26311 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26312 as_expr=expr
26313 else
26314 as_expr=false
26317 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26318 as_basename=basename
26319 else
26320 as_basename=false
26324 # Name of the executable.
26325 as_me=`$as_basename -- "$0" ||
26326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26327 X"$0" : 'X\(//\)$' \| \
26328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26329 $as_echo X/"$0" |
26330 sed '/^.*\/\([^/][^/]*\)\/*$/{
26331 s//\1/
26334 /^X\/\(\/\/\)$/{
26335 s//\1/
26338 /^X\/\(\/\).*/{
26339 s//\1/
26342 s/.*/./; q'`
26344 # CDPATH.
26345 $as_unset CDPATH
26349 as_lineno_1=$LINENO
26350 as_lineno_2=$LINENO
26351 test "x$as_lineno_1" != "x$as_lineno_2" &&
26352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26355 # uniformly replaced by the line number. The first 'sed' inserts a
26356 # line-number line after each line using $LINENO; the second 'sed'
26357 # does the real work. The second script uses 'N' to pair each
26358 # line-number line with the line containing $LINENO, and appends
26359 # trailing '-' during substitution so that $LINENO is not a special
26360 # case at line end.
26361 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26362 # scripts with optimization help from Paolo Bonzini. Blame Lee
26363 # E. McMahon (1931-1989) for sed's syntax. :-)
26364 sed -n '
26366 /[$]LINENO/=
26367 ' <$as_myself |
26368 sed '
26369 s/[$]LINENO.*/&-/
26370 t lineno
26372 :lineno
26374 :loop
26375 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26376 t loop
26377 s/-\n.*//
26378 ' >$as_me.lineno &&
26379 chmod +x "$as_me.lineno" ||
26380 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26381 { (exit 1); exit 1; }; }
26383 # Don't try to exec as it changes $[0], causing all sort of problems
26384 # (the dirname of $[0] is not the place where we might find the
26385 # original and so on. Autoconf is especially sensitive to this).
26386 . "./$as_me.lineno"
26387 # Exit status is that of the last command.
26388 exit
26392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26393 as_dirname=dirname
26394 else
26395 as_dirname=false
26398 ECHO_C= ECHO_N= ECHO_T=
26399 case `echo -n x` in
26400 -n*)
26401 case `echo 'x\c'` in
26402 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26403 *) ECHO_C='\c';;
26404 esac;;
26406 ECHO_N='-n';;
26407 esac
26408 if expr a : '\(a\)' >/dev/null 2>&1 &&
26409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26410 as_expr=expr
26411 else
26412 as_expr=false
26415 rm -f conf$$ conf$$.exe conf$$.file
26416 if test -d conf$$.dir; then
26417 rm -f conf$$.dir/conf$$.file
26418 else
26419 rm -f conf$$.dir
26420 mkdir conf$$.dir 2>/dev/null
26422 if (echo >conf$$.file) 2>/dev/null; then
26423 if ln -s conf$$.file conf$$ 2>/dev/null; then
26424 as_ln_s='ln -s'
26425 # ... but there are two gotchas:
26426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26428 # In both cases, we have to default to `cp -p'.
26429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26430 as_ln_s='cp -p'
26431 elif ln conf$$.file conf$$ 2>/dev/null; then
26432 as_ln_s=ln
26433 else
26434 as_ln_s='cp -p'
26436 else
26437 as_ln_s='cp -p'
26439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26440 rmdir conf$$.dir 2>/dev/null
26442 if mkdir -p . 2>/dev/null; then
26443 as_mkdir_p=:
26444 else
26445 test -d ./-p && rmdir ./-p
26446 as_mkdir_p=false
26449 if test -x / >/dev/null 2>&1; then
26450 as_test_x='test -x'
26451 else
26452 if ls -dL / >/dev/null 2>&1; then
26453 as_ls_L_option=L
26454 else
26455 as_ls_L_option=
26457 as_test_x='
26458 eval sh -c '\''
26459 if test -d "$1"; then
26460 test -d "$1/.";
26461 else
26462 case $1 in
26463 -*)set "./$1";;
26464 esac;
26465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26466 ???[sx]*):;;*)false;;esac;fi
26467 '\'' sh
26470 as_executable_p=$as_test_x
26472 # Sed expression to map a string onto a valid CPP name.
26473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26475 # Sed expression to map a string onto a valid variable name.
26476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26479 exec 6>&1
26481 # Save the log message, to keep $[0] and so on meaningful, and to
26482 # report actual input values of CONFIG_FILES etc. instead of their
26483 # values after options handling.
26484 ac_log="
26485 This file was extended by netbsd-iscsi $as_me 20090622, which was
26486 generated by GNU Autoconf 2.63. Invocation command line was
26488 CONFIG_FILES = $CONFIG_FILES
26489 CONFIG_HEADERS = $CONFIG_HEADERS
26490 CONFIG_LINKS = $CONFIG_LINKS
26491 CONFIG_COMMANDS = $CONFIG_COMMANDS
26492 $ $0 $@
26494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26497 _ACEOF
26499 case $ac_config_files in *"
26500 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26501 esac
26503 case $ac_config_headers in *"
26504 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26505 esac
26508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26509 # Files that config.status was made for.
26510 config_files="$ac_config_files"
26511 config_headers="$ac_config_headers"
26512 config_commands="$ac_config_commands"
26514 _ACEOF
26516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26517 ac_cs_usage="\
26518 \`$as_me' instantiates files from templates according to the
26519 current configuration.
26521 Usage: $0 [OPTION]... [FILE]...
26523 -h, --help print this help, then exit
26524 -V, --version print version number and configuration settings, then exit
26525 -q, --quiet, --silent
26526 do not print progress messages
26527 -d, --debug don't remove temporary files
26528 --recheck update $as_me by reconfiguring in the same conditions
26529 --file=FILE[:TEMPLATE]
26530 instantiate the configuration file FILE
26531 --header=FILE[:TEMPLATE]
26532 instantiate the configuration header FILE
26534 Configuration files:
26535 $config_files
26537 Configuration headers:
26538 $config_headers
26540 Configuration commands:
26541 $config_commands
26543 Report bugs to <bug-autoconf@gnu.org>."
26545 _ACEOF
26546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26547 ac_cs_version="\\
26548 netbsd-iscsi config.status 20090622
26549 configured by $0, generated by GNU Autoconf 2.63,
26550 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26552 Copyright (C) 2008 Free Software Foundation, Inc.
26553 This config.status script is free software; the Free Software Foundation
26554 gives unlimited permission to copy, distribute and modify it."
26556 ac_pwd='$ac_pwd'
26557 srcdir='$srcdir'
26558 INSTALL='$INSTALL'
26559 MKDIR_P='$MKDIR_P'
26560 AWK='$AWK'
26561 test -n "\$AWK" || AWK=awk
26562 _ACEOF
26564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26565 # The default lists apply if the user does not specify any file.
26566 ac_need_defaults=:
26567 while test $# != 0
26569 case $1 in
26570 --*=*)
26571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26573 ac_shift=:
26576 ac_option=$1
26577 ac_optarg=$2
26578 ac_shift=shift
26580 esac
26582 case $ac_option in
26583 # Handling of the options.
26584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26585 ac_cs_recheck=: ;;
26586 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26587 $as_echo "$ac_cs_version"; exit ;;
26588 --debug | --debu | --deb | --de | --d | -d )
26589 debug=: ;;
26590 --file | --fil | --fi | --f )
26591 $ac_shift
26592 case $ac_optarg in
26593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26594 esac
26595 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26596 ac_need_defaults=false;;
26597 --header | --heade | --head | --hea )
26598 $ac_shift
26599 case $ac_optarg in
26600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26601 esac
26602 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26603 ac_need_defaults=false;;
26604 --he | --h)
26605 # Conflict between --help and --header
26606 { $as_echo "$as_me: error: ambiguous option: $1
26607 Try \`$0 --help' for more information." >&2
26608 { (exit 1); exit 1; }; };;
26609 --help | --hel | -h )
26610 $as_echo "$ac_cs_usage"; exit ;;
26611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26613 ac_cs_silent=: ;;
26615 # This is an error.
26616 -*) { $as_echo "$as_me: error: unrecognized option: $1
26617 Try \`$0 --help' for more information." >&2
26618 { (exit 1); exit 1; }; } ;;
26620 *) ac_config_targets="$ac_config_targets $1"
26621 ac_need_defaults=false ;;
26623 esac
26624 shift
26625 done
26627 ac_configure_extra_args=
26629 if $ac_cs_silent; then
26630 exec 6>/dev/null
26631 ac_configure_extra_args="$ac_configure_extra_args --silent"
26634 _ACEOF
26635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26636 if \$ac_cs_recheck; then
26637 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26638 shift
26639 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26640 CONFIG_SHELL='$SHELL'
26641 export CONFIG_SHELL
26642 exec "\$@"
26645 _ACEOF
26646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26647 exec 5>>config.log
26649 echo
26650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26651 ## Running $as_me. ##
26652 _ASBOX
26653 $as_echo "$ac_log"
26654 } >&5
26656 _ACEOF
26657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26659 # INIT-COMMANDS
26661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26663 _ACEOF
26665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26667 # Handling of arguments.
26668 for ac_config_target in $ac_config_targets
26670 case $ac_config_target in
26671 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26672 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26673 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26674 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26675 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
26677 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26678 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26679 { (exit 1); exit 1; }; };;
26680 esac
26681 done
26684 # If the user did not use the arguments to specify the items to instantiate,
26685 # then the envvar interface is used. Set only those that are not.
26686 # We use the long form for the default assignment because of an extremely
26687 # bizarre bug on SunOS 4.1.3.
26688 if $ac_need_defaults; then
26689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26694 # Have a temporary directory for convenience. Make it in the build tree
26695 # simply because there is no reason against having it here, and in addition,
26696 # creating and moving files from /tmp can sometimes cause problems.
26697 # Hook for its removal unless debugging.
26698 # Note that there is a small window in which the directory will not be cleaned:
26699 # after its creation but before its name has been assigned to `$tmp'.
26700 $debug ||
26702 tmp=
26703 trap 'exit_status=$?
26704 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26706 trap '{ (exit 1); exit 1; }' 1 2 13 15
26708 # Create a (secure) tmp directory for tmp files.
26711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26712 test -n "$tmp" && test -d "$tmp"
26713 } ||
26715 tmp=./conf$$-$RANDOM
26716 (umask 077 && mkdir "$tmp")
26717 } ||
26719 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26720 { (exit 1); exit 1; }
26723 # Set up the scripts for CONFIG_FILES section.
26724 # No need to generate them if there are no CONFIG_FILES.
26725 # This happens for instance with `./config.status config.h'.
26726 if test -n "$CONFIG_FILES"; then
26729 ac_cr=' '
26730 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26731 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26732 ac_cs_awk_cr='\\r'
26733 else
26734 ac_cs_awk_cr=$ac_cr
26737 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26738 _ACEOF
26742 echo "cat >conf$$subs.awk <<_ACEOF" &&
26743 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26744 echo "_ACEOF"
26745 } >conf$$subs.sh ||
26746 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26747 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26748 { (exit 1); exit 1; }; }
26749 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26750 ac_delim='%!_!# '
26751 for ac_last_try in false false false false false :; do
26752 . ./conf$$subs.sh ||
26753 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26754 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26755 { (exit 1); exit 1; }; }
26757 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26758 if test $ac_delim_n = $ac_delim_num; then
26759 break
26760 elif $ac_last_try; then
26761 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26762 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26763 { (exit 1); exit 1; }; }
26764 else
26765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26767 done
26768 rm -f conf$$subs.sh
26770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26771 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26772 _ACEOF
26773 sed -n '
26775 s/^/S["/; s/!.*/"]=/
26778 s/^[^!]*!//
26779 :repl
26780 t repl
26781 s/'"$ac_delim"'$//
26782 t delim
26785 s/\(.\{148\}\).*/\1/
26786 t more1
26787 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26790 b repl
26791 :more1
26792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26795 s/.\{148\}//
26796 t nl
26797 :delim
26799 s/\(.\{148\}\).*/\1/
26800 t more2
26801 s/["\\]/\\&/g; s/^/"/; s/$/"/
26804 :more2
26805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26808 s/.\{148\}//
26809 t delim
26810 ' <conf$$subs.awk | sed '
26811 /^[^""]/{
26813 s/\n//
26815 ' >>$CONFIG_STATUS || ac_write_fail=1
26816 rm -f conf$$subs.awk
26817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26818 _ACAWK
26819 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26820 for (key in S) S_is_set[key] = 1
26821 FS = "\a"
26825 line = $ 0
26826 nfields = split(line, field, "@")
26827 substed = 0
26828 len = length(field[1])
26829 for (i = 2; i < nfields; i++) {
26830 key = field[i]
26831 keylen = length(key)
26832 if (S_is_set[key]) {
26833 value = S[key]
26834 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26835 len += length(value) + length(field[++i])
26836 substed = 1
26837 } else
26838 len += 1 + keylen
26841 print line
26844 _ACAWK
26845 _ACEOF
26846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26847 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26848 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26849 else
26851 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26852 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26853 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26854 { (exit 1); exit 1; }; }
26855 _ACEOF
26857 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26858 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26859 # trailing colons and then remove the whole line if VPATH becomes empty
26860 # (actually we leave an empty line to preserve line numbers).
26861 if test "x$srcdir" = x.; then
26862 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26863 s/:*\$(srcdir):*/:/
26864 s/:*\${srcdir}:*/:/
26865 s/:*@srcdir@:*/:/
26866 s/^\([^=]*=[ ]*\):*/\1/
26867 s/:*$//
26868 s/^[^=]*=[ ]*$//
26872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26873 fi # test -n "$CONFIG_FILES"
26875 # Set up the scripts for CONFIG_HEADERS section.
26876 # No need to generate them if there are no CONFIG_HEADERS.
26877 # This happens for instance with `./config.status Makefile'.
26878 if test -n "$CONFIG_HEADERS"; then
26879 cat >"$tmp/defines.awk" <<\_ACAWK ||
26880 BEGIN {
26881 _ACEOF
26883 # Transform confdefs.h into an awk script `defines.awk', embedded as
26884 # here-document in config.status, that substitutes the proper values into
26885 # config.h.in to produce config.h.
26887 # Create a delimiter string that does not exist in confdefs.h, to ease
26888 # handling of long lines.
26889 ac_delim='%!_!# '
26890 for ac_last_try in false false :; do
26891 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26892 if test -z "$ac_t"; then
26893 break
26894 elif $ac_last_try; then
26895 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26896 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26897 { (exit 1); exit 1; }; }
26898 else
26899 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26901 done
26903 # For the awk script, D is an array of macro values keyed by name,
26904 # likewise P contains macro parameters if any. Preserve backslash
26905 # newline sequences.
26907 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26908 sed -n '
26909 s/.\{148\}/&'"$ac_delim"'/g
26910 t rset
26911 :rset
26912 s/^[ ]*#[ ]*define[ ][ ]*/ /
26913 t def
26915 :def
26916 s/\\$//
26917 t bsnl
26918 s/["\\]/\\&/g
26919 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26920 D["\1"]=" \3"/p
26921 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26923 :bsnl
26924 s/["\\]/\\&/g
26925 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26926 D["\1"]=" \3\\\\\\n"\\/p
26927 t cont
26928 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26929 t cont
26931 :cont
26933 s/.\{148\}/&'"$ac_delim"'/g
26934 t clear
26935 :clear
26936 s/\\$//
26937 t bsnlc
26938 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26940 :bsnlc
26941 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26942 b cont
26943 ' <confdefs.h | sed '
26944 s/'"$ac_delim"'/"\\\
26945 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26948 for (key in D) D_is_set[key] = 1
26949 FS = "\a"
26951 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26952 line = \$ 0
26953 split(line, arg, " ")
26954 if (arg[1] == "#") {
26955 defundef = arg[2]
26956 mac1 = arg[3]
26957 } else {
26958 defundef = substr(arg[1], 2)
26959 mac1 = arg[2]
26961 split(mac1, mac2, "(") #)
26962 macro = mac2[1]
26963 prefix = substr(line, 1, index(line, defundef) - 1)
26964 if (D_is_set[macro]) {
26965 # Preserve the white space surrounding the "#".
26966 print prefix "define", macro P[macro] D[macro]
26967 next
26968 } else {
26969 # Replace #undef with comments. This is necessary, for example,
26970 # in the case of _POSIX_SOURCE, which is predefined and required
26971 # on some systems where configure will not decide to define it.
26972 if (defundef == "undef") {
26973 print "/*", prefix defundef, macro, "*/"
26974 next
26978 { print }
26979 _ACAWK
26980 _ACEOF
26981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26982 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26983 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26984 { (exit 1); exit 1; }; }
26985 fi # test -n "$CONFIG_HEADERS"
26988 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26989 shift
26990 for ac_tag
26992 case $ac_tag in
26993 :[FHLC]) ac_mode=$ac_tag; continue;;
26994 esac
26995 case $ac_mode$ac_tag in
26996 :[FHL]*:*);;
26997 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
26998 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26999 { (exit 1); exit 1; }; };;
27000 :[FH]-) ac_tag=-:-;;
27001 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27002 esac
27003 ac_save_IFS=$IFS
27004 IFS=:
27005 set x $ac_tag
27006 IFS=$ac_save_IFS
27007 shift
27008 ac_file=$1
27009 shift
27011 case $ac_mode in
27012 :L) ac_source=$1;;
27013 :[FH])
27014 ac_file_inputs=
27015 for ac_f
27017 case $ac_f in
27018 -) ac_f="$tmp/stdin";;
27019 *) # Look for the file first in the build tree, then in the source tree
27020 # (if the path is not absolute). The absolute path cannot be DOS-style,
27021 # because $ac_f cannot contain `:'.
27022 test -f "$ac_f" ||
27023 case $ac_f in
27024 [\\/$]*) false;;
27025 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27026 esac ||
27027 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27028 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27029 { (exit 1); exit 1; }; };;
27030 esac
27031 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27032 ac_file_inputs="$ac_file_inputs '$ac_f'"
27033 done
27035 # Let's still pretend it is `configure' which instantiates (i.e., don't
27036 # use $as_me), people would be surprised to read:
27037 # /* config.h. Generated by config.status. */
27038 configure_input='Generated from '`
27039 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27040 `' by configure.'
27041 if test x"$ac_file" != x-; then
27042 configure_input="$ac_file. $configure_input"
27043 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27044 $as_echo "$as_me: creating $ac_file" >&6;}
27046 # Neutralize special characters interpreted by sed in replacement strings.
27047 case $configure_input in #(
27048 *\&* | *\|* | *\\* )
27049 ac_sed_conf_input=`$as_echo "$configure_input" |
27050 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27051 *) ac_sed_conf_input=$configure_input;;
27052 esac
27054 case $ac_tag in
27055 *:-:* | *:-) cat >"$tmp/stdin" \
27056 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27057 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27058 { (exit 1); exit 1; }; } ;;
27059 esac
27061 esac
27063 ac_dir=`$as_dirname -- "$ac_file" ||
27064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27065 X"$ac_file" : 'X\(//\)[^/]' \| \
27066 X"$ac_file" : 'X\(//\)$' \| \
27067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27068 $as_echo X"$ac_file" |
27069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27070 s//\1/
27073 /^X\(\/\/\)[^/].*/{
27074 s//\1/
27077 /^X\(\/\/\)$/{
27078 s//\1/
27081 /^X\(\/\).*/{
27082 s//\1/
27085 s/.*/./; q'`
27086 { as_dir="$ac_dir"
27087 case $as_dir in #(
27088 -*) as_dir=./$as_dir;;
27089 esac
27090 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27091 as_dirs=
27092 while :; do
27093 case $as_dir in #(
27094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27095 *) as_qdir=$as_dir;;
27096 esac
27097 as_dirs="'$as_qdir' $as_dirs"
27098 as_dir=`$as_dirname -- "$as_dir" ||
27099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27100 X"$as_dir" : 'X\(//\)[^/]' \| \
27101 X"$as_dir" : 'X\(//\)$' \| \
27102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27103 $as_echo X"$as_dir" |
27104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27105 s//\1/
27108 /^X\(\/\/\)[^/].*/{
27109 s//\1/
27112 /^X\(\/\/\)$/{
27113 s//\1/
27116 /^X\(\/\).*/{
27117 s//\1/
27120 s/.*/./; q'`
27121 test -d "$as_dir" && break
27122 done
27123 test -z "$as_dirs" || eval "mkdir $as_dirs"
27124 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27125 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27126 { (exit 1); exit 1; }; }; }
27127 ac_builddir=.
27129 case "$ac_dir" in
27130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27133 # A ".." for each directory in $ac_dir_suffix.
27134 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27135 case $ac_top_builddir_sub in
27136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27138 esac ;;
27139 esac
27140 ac_abs_top_builddir=$ac_pwd
27141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27142 # for backward compatibility:
27143 ac_top_builddir=$ac_top_build_prefix
27145 case $srcdir in
27146 .) # We are building in place.
27147 ac_srcdir=.
27148 ac_top_srcdir=$ac_top_builddir_sub
27149 ac_abs_top_srcdir=$ac_pwd ;;
27150 [\\/]* | ?:[\\/]* ) # Absolute name.
27151 ac_srcdir=$srcdir$ac_dir_suffix;
27152 ac_top_srcdir=$srcdir
27153 ac_abs_top_srcdir=$srcdir ;;
27154 *) # Relative name.
27155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27156 ac_top_srcdir=$ac_top_build_prefix$srcdir
27157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27158 esac
27159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27162 case $ac_mode in
27165 # CONFIG_FILE
27168 case $INSTALL in
27169 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27170 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27171 esac
27172 ac_MKDIR_P=$MKDIR_P
27173 case $MKDIR_P in
27174 [\\/$]* | ?:[\\/]* ) ;;
27175 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27176 esac
27177 _ACEOF
27179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27180 # If the template does not know about datarootdir, expand it.
27181 # FIXME: This hack should be removed a few years after 2.60.
27182 ac_datarootdir_hack=; ac_datarootdir_seen=
27184 ac_sed_dataroot='
27185 /datarootdir/ {
27189 /@datadir@/p
27190 /@docdir@/p
27191 /@infodir@/p
27192 /@localedir@/p
27193 /@mandir@/p
27195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27196 *datarootdir*) ac_datarootdir_seen=yes;;
27197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27198 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27200 _ACEOF
27201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27202 ac_datarootdir_hack='
27203 s&@datadir@&$datadir&g
27204 s&@docdir@&$docdir&g
27205 s&@infodir@&$infodir&g
27206 s&@localedir@&$localedir&g
27207 s&@mandir@&$mandir&g
27208 s&\\\${datarootdir}&$datarootdir&g' ;;
27209 esac
27210 _ACEOF
27212 # Neutralize VPATH when `$srcdir' = `.'.
27213 # Shell code in configure.ac might set extrasub.
27214 # FIXME: do we really want to maintain this feature?
27215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27216 ac_sed_extra="$ac_vpsub
27217 $extrasub
27218 _ACEOF
27219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27222 s|@configure_input@|$ac_sed_conf_input|;t t
27223 s&@top_builddir@&$ac_top_builddir_sub&;t t
27224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27225 s&@srcdir@&$ac_srcdir&;t t
27226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27227 s&@top_srcdir@&$ac_top_srcdir&;t t
27228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27229 s&@builddir@&$ac_builddir&;t t
27230 s&@abs_builddir@&$ac_abs_builddir&;t t
27231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27232 s&@INSTALL@&$ac_INSTALL&;t t
27233 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27234 $ac_datarootdir_hack
27236 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27237 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27238 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27239 { (exit 1); exit 1; }; }
27241 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27242 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27243 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27244 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27245 which seems to be undefined. Please make sure it is defined." >&5
27246 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27247 which seems to be undefined. Please make sure it is defined." >&2;}
27249 rm -f "$tmp/stdin"
27250 case $ac_file in
27251 -) cat "$tmp/out" && rm -f "$tmp/out";;
27252 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27253 esac \
27254 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27255 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27256 { (exit 1); exit 1; }; }
27260 # CONFIG_HEADER
27262 if test x"$ac_file" != x-; then
27264 $as_echo "/* $configure_input */" \
27265 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27266 } >"$tmp/config.h" \
27267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27268 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27269 { (exit 1); exit 1; }; }
27270 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27271 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27272 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27273 else
27274 rm -f "$ac_file"
27275 mv "$tmp/config.h" "$ac_file" \
27276 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27277 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27278 { (exit 1); exit 1; }; }
27280 else
27281 $as_echo "/* $configure_input */" \
27282 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27283 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27284 $as_echo "$as_me: error: could not create -" >&2;}
27285 { (exit 1); exit 1; }; }
27287 # Compute "$ac_file"'s index in $config_headers.
27288 _am_arg="$ac_file"
27289 _am_stamp_count=1
27290 for _am_header in $config_headers :; do
27291 case $_am_header in
27292 $_am_arg | $_am_arg:* )
27293 break ;;
27295 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27296 esac
27297 done
27298 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27299 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27300 X"$_am_arg" : 'X\(//\)[^/]' \| \
27301 X"$_am_arg" : 'X\(//\)$' \| \
27302 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27303 $as_echo X"$_am_arg" |
27304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27305 s//\1/
27308 /^X\(\/\/\)[^/].*/{
27309 s//\1/
27312 /^X\(\/\/\)$/{
27313 s//\1/
27316 /^X\(\/\).*/{
27317 s//\1/
27320 s/.*/./; q'`/stamp-h$_am_stamp_count
27323 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27324 $as_echo "$as_me: executing $ac_file commands" >&6;}
27326 esac
27329 case $ac_file$ac_mode in
27330 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27331 # Strip MF so we end up with the name of the file.
27332 mf=`echo "$mf" | sed -e 's/:.*$//'`
27333 # Check whether this is an Automake generated Makefile or not.
27334 # We used to match only the files named `Makefile.in', but
27335 # some people rename them; so instead we look at the file content.
27336 # Grep'ing the first line is not enough: some people post-process
27337 # each Makefile.in and add a new line on top of each file to say so.
27338 # Grep'ing the whole file is not good either: AIX grep has a line
27339 # limit of 2048, but all sed's we know have understand at least 4000.
27340 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27341 dirpart=`$as_dirname -- "$mf" ||
27342 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27343 X"$mf" : 'X\(//\)[^/]' \| \
27344 X"$mf" : 'X\(//\)$' \| \
27345 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27346 $as_echo X"$mf" |
27347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27348 s//\1/
27351 /^X\(\/\/\)[^/].*/{
27352 s//\1/
27355 /^X\(\/\/\)$/{
27356 s//\1/
27359 /^X\(\/\).*/{
27360 s//\1/
27363 s/.*/./; q'`
27364 else
27365 continue
27367 # Extract the definition of DEPDIR, am__include, and am__quote
27368 # from the Makefile without running `make'.
27369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27370 test -z "$DEPDIR" && continue
27371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27372 test -z "am__include" && continue
27373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27374 # When using ansi2knr, U may be empty or an underscore; expand it
27375 U=`sed -n 's/^U = //p' < "$mf"`
27376 # Find all dependency output files, they are included files with
27377 # $(DEPDIR) in their names. We invoke sed twice because it is the
27378 # simplest approach to changing $(DEPDIR) to its actual value in the
27379 # expansion.
27380 for file in `sed -n "
27381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27383 # Make sure the directory exists.
27384 test -f "$dirpart/$file" && continue
27385 fdir=`$as_dirname -- "$file" ||
27386 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27387 X"$file" : 'X\(//\)[^/]' \| \
27388 X"$file" : 'X\(//\)$' \| \
27389 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27390 $as_echo X"$file" |
27391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27392 s//\1/
27395 /^X\(\/\/\)[^/].*/{
27396 s//\1/
27399 /^X\(\/\/\)$/{
27400 s//\1/
27403 /^X\(\/\).*/{
27404 s//\1/
27407 s/.*/./; q'`
27408 { as_dir=$dirpart/$fdir
27409 case $as_dir in #(
27410 -*) as_dir=./$as_dir;;
27411 esac
27412 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27413 as_dirs=
27414 while :; do
27415 case $as_dir in #(
27416 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27417 *) as_qdir=$as_dir;;
27418 esac
27419 as_dirs="'$as_qdir' $as_dirs"
27420 as_dir=`$as_dirname -- "$as_dir" ||
27421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27422 X"$as_dir" : 'X\(//\)[^/]' \| \
27423 X"$as_dir" : 'X\(//\)$' \| \
27424 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27425 $as_echo X"$as_dir" |
27426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27427 s//\1/
27430 /^X\(\/\/\)[^/].*/{
27431 s//\1/
27434 /^X\(\/\/\)$/{
27435 s//\1/
27438 /^X\(\/\).*/{
27439 s//\1/
27442 s/.*/./; q'`
27443 test -d "$as_dir" && break
27444 done
27445 test -z "$as_dirs" || eval "mkdir $as_dirs"
27446 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27447 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27448 { (exit 1); exit 1; }; }; }
27449 # echo "creating $dirpart/$file"
27450 echo '# dummy' > "$dirpart/$file"
27451 done
27452 done
27455 esac
27456 done # for ac_tag
27459 { (exit 0); exit 0; }
27460 _ACEOF
27461 chmod +x $CONFIG_STATUS
27462 ac_clean_files=$ac_clean_files_save
27464 test $ac_write_fail = 0 ||
27465 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27466 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27467 { (exit 1); exit 1; }; }
27470 # configure is writing to config.log, and then calls config.status.
27471 # config.status does its own redirection, appending to config.log.
27472 # Unfortunately, on DOS this fails, as config.log is still kept open
27473 # by configure, so config.status won't be able to write to it; its
27474 # output is simply discarded. So we exec the FD to /dev/null,
27475 # effectively closing config.log, so it can be properly (re)opened and
27476 # appended to by config.status. When coming back to configure, we
27477 # need to make the FD available again.
27478 if test "$no_create" != yes; then
27479 ac_cs_success=:
27480 ac_config_status_args=
27481 test "$silent" = yes &&
27482 ac_config_status_args="$ac_config_status_args --quiet"
27483 exec 5>/dev/null
27484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27485 exec 5>>config.log
27486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27487 # would make configure fail if this is the last instruction.
27488 $ac_cs_success || { (exit 1); exit 1; }
27490 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27491 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27492 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27495 ac_config_files="$ac_config_files src/target/Makefile"
27497 cat >confcache <<\_ACEOF
27498 # This file is a shell script that caches the results of configure
27499 # tests run on this system so they can be shared between configure
27500 # scripts and configure runs, see configure's option --config-cache.
27501 # It is not useful on other systems. If it contains results you don't
27502 # want to keep, you may remove or edit it.
27504 # config.status only pays attention to the cache file if you give it
27505 # the --recheck option to rerun configure.
27507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27509 # following values.
27511 _ACEOF
27513 # The following way of writing the cache mishandles newlines in values,
27514 # but we know of no workaround that is simple, portable, and efficient.
27515 # So, we kill variables containing newlines.
27516 # Ultrix sh set writes to stderr and can't be redirected directly,
27517 # and sets the high bit in the cache file unless we assign to the vars.
27519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27520 eval ac_val=\$$ac_var
27521 case $ac_val in #(
27522 *${as_nl}*)
27523 case $ac_var in #(
27524 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27525 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27526 esac
27527 case $ac_var in #(
27528 _ | IFS | as_nl) ;; #(
27529 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27530 *) $as_unset $ac_var ;;
27531 esac ;;
27532 esac
27533 done
27535 (set) 2>&1 |
27536 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27537 *${as_nl}ac_space=\ *)
27538 # `set' does not quote correctly, so add quotes (double-quote
27539 # substitution turns \\\\ into \\, and sed turns \\ into \).
27540 sed -n \
27541 "s/'/'\\\\''/g;
27542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27543 ;; #(
27545 # `set' quotes correctly as required by POSIX, so do not add quotes.
27546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27548 esac |
27549 sort
27551 sed '
27552 /^ac_cv_env_/b end
27553 t clear
27554 :clear
27555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27556 t end
27557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27558 :end' >>confcache
27559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27560 if test -w "$cache_file"; then
27561 test "x$cache_file" != "x/dev/null" &&
27562 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27563 $as_echo "$as_me: updating cache $cache_file" >&6;}
27564 cat confcache >$cache_file
27565 else
27566 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27567 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27570 rm -f confcache
27572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27573 # Let make expand exec_prefix.
27574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27576 DEFS=-DHAVE_CONFIG_H
27578 ac_libobjs=
27579 ac_ltlibobjs=
27580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27581 # 1. Remove the extension, and $U if already installed.
27582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27583 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27585 # will be set to the directory where LIBOBJS objects are built.
27586 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27587 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27588 done
27589 LIBOBJS=$ac_libobjs
27591 LTLIBOBJS=$ac_ltlibobjs
27594 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27595 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27596 Usually this means the macro was only invoked conditionally." >&5
27597 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27598 Usually this means the macro was only invoked conditionally." >&2;}
27599 { (exit 1); exit 1; }; }
27601 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27602 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27603 Usually this means the macro was only invoked conditionally." >&5
27604 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
27605 Usually this means the macro was only invoked conditionally." >&2;}
27606 { (exit 1); exit 1; }; }
27608 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27609 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27610 Usually this means the macro was only invoked conditionally." >&5
27611 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27612 Usually this means the macro was only invoked conditionally." >&2;}
27613 { (exit 1); exit 1; }; }
27615 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27616 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27617 Usually this means the macro was only invoked conditionally." >&5
27618 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27619 Usually this means the macro was only invoked conditionally." >&2;}
27620 { (exit 1); exit 1; }; }
27623 : ${CONFIG_STATUS=./config.status}
27624 ac_write_fail=0
27625 ac_clean_files_save=$ac_clean_files
27626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27627 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27628 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27629 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27630 #! $SHELL
27631 # Generated by $as_me.
27632 # Run this file to recreate the current configuration.
27633 # Compiler output produced by configure, useful for debugging
27634 # configure, is in config.log if it exists.
27636 debug=false
27637 ac_cs_recheck=false
27638 ac_cs_silent=false
27639 SHELL=\${CONFIG_SHELL-$SHELL}
27640 _ACEOF
27642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27643 ## --------------------- ##
27644 ## M4sh Initialization. ##
27645 ## --------------------- ##
27647 # Be more Bourne compatible
27648 DUALCASE=1; export DUALCASE # for MKS sh
27649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27650 emulate sh
27651 NULLCMD=:
27652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27653 # is contrary to our usage. Disable this feature.
27654 alias -g '${1+"$@"}'='"$@"'
27655 setopt NO_GLOB_SUBST
27656 else
27657 case `(set -o) 2>/dev/null` in
27658 *posix*) set -o posix ;;
27659 esac
27666 # PATH needs CR
27667 # Avoid depending upon Character Ranges.
27668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27671 as_cr_digits='0123456789'
27672 as_cr_alnum=$as_cr_Letters$as_cr_digits
27674 as_nl='
27676 export as_nl
27677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27681 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27682 as_echo='printf %s\n'
27683 as_echo_n='printf %s'
27684 else
27685 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27686 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27687 as_echo_n='/usr/ucb/echo -n'
27688 else
27689 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27690 as_echo_n_body='eval
27691 arg=$1;
27692 case $arg in
27693 *"$as_nl"*)
27694 expr "X$arg" : "X\\(.*\\)$as_nl";
27695 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27696 esac;
27697 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27699 export as_echo_n_body
27700 as_echo_n='sh -c $as_echo_n_body as_echo'
27702 export as_echo_body
27703 as_echo='sh -c $as_echo_body as_echo'
27706 # The user is always right.
27707 if test "${PATH_SEPARATOR+set}" != set; then
27708 PATH_SEPARATOR=:
27709 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27710 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27711 PATH_SEPARATOR=';'
27715 # Support unset when possible.
27716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27717 as_unset=unset
27718 else
27719 as_unset=false
27723 # IFS
27724 # We need space, tab and new line, in precisely that order. Quoting is
27725 # there to prevent editors from complaining about space-tab.
27726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27727 # splitting by setting IFS to empty value.)
27728 IFS=" "" $as_nl"
27730 # Find who we are. Look in the path if we contain no directory separator.
27731 case $0 in
27732 *[\\/]* ) as_myself=$0 ;;
27733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27734 for as_dir in $PATH
27736 IFS=$as_save_IFS
27737 test -z "$as_dir" && as_dir=.
27738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27739 done
27740 IFS=$as_save_IFS
27743 esac
27744 # We did not find ourselves, most probably we were run as `sh COMMAND'
27745 # in which case we are not to be found in the path.
27746 if test "x$as_myself" = x; then
27747 as_myself=$0
27749 if test ! -f "$as_myself"; then
27750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27751 { (exit 1); exit 1; }
27754 # Work around bugs in pre-3.0 UWIN ksh.
27755 for as_var in ENV MAIL MAILPATH
27756 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27757 done
27758 PS1='$ '
27759 PS2='> '
27760 PS4='+ '
27762 # NLS nuisances.
27763 LC_ALL=C
27764 export LC_ALL
27765 LANGUAGE=C
27766 export LANGUAGE
27768 # Required to use basename.
27769 if expr a : '\(a\)' >/dev/null 2>&1 &&
27770 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27771 as_expr=expr
27772 else
27773 as_expr=false
27776 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27777 as_basename=basename
27778 else
27779 as_basename=false
27783 # Name of the executable.
27784 as_me=`$as_basename -- "$0" ||
27785 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27786 X"$0" : 'X\(//\)$' \| \
27787 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27788 $as_echo X/"$0" |
27789 sed '/^.*\/\([^/][^/]*\)\/*$/{
27790 s//\1/
27793 /^X\/\(\/\/\)$/{
27794 s//\1/
27797 /^X\/\(\/\).*/{
27798 s//\1/
27801 s/.*/./; q'`
27803 # CDPATH.
27804 $as_unset CDPATH
27808 as_lineno_1=$LINENO
27809 as_lineno_2=$LINENO
27810 test "x$as_lineno_1" != "x$as_lineno_2" &&
27811 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27813 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27814 # uniformly replaced by the line number. The first 'sed' inserts a
27815 # line-number line after each line using $LINENO; the second 'sed'
27816 # does the real work. The second script uses 'N' to pair each
27817 # line-number line with the line containing $LINENO, and appends
27818 # trailing '-' during substitution so that $LINENO is not a special
27819 # case at line end.
27820 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27821 # scripts with optimization help from Paolo Bonzini. Blame Lee
27822 # E. McMahon (1931-1989) for sed's syntax. :-)
27823 sed -n '
27825 /[$]LINENO/=
27826 ' <$as_myself |
27827 sed '
27828 s/[$]LINENO.*/&-/
27829 t lineno
27831 :lineno
27833 :loop
27834 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27835 t loop
27836 s/-\n.*//
27837 ' >$as_me.lineno &&
27838 chmod +x "$as_me.lineno" ||
27839 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27840 { (exit 1); exit 1; }; }
27842 # Don't try to exec as it changes $[0], causing all sort of problems
27843 # (the dirname of $[0] is not the place where we might find the
27844 # original and so on. Autoconf is especially sensitive to this).
27845 . "./$as_me.lineno"
27846 # Exit status is that of the last command.
27847 exit
27851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27852 as_dirname=dirname
27853 else
27854 as_dirname=false
27857 ECHO_C= ECHO_N= ECHO_T=
27858 case `echo -n x` in
27859 -n*)
27860 case `echo 'x\c'` in
27861 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27862 *) ECHO_C='\c';;
27863 esac;;
27865 ECHO_N='-n';;
27866 esac
27867 if expr a : '\(a\)' >/dev/null 2>&1 &&
27868 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27869 as_expr=expr
27870 else
27871 as_expr=false
27874 rm -f conf$$ conf$$.exe conf$$.file
27875 if test -d conf$$.dir; then
27876 rm -f conf$$.dir/conf$$.file
27877 else
27878 rm -f conf$$.dir
27879 mkdir conf$$.dir 2>/dev/null
27881 if (echo >conf$$.file) 2>/dev/null; then
27882 if ln -s conf$$.file conf$$ 2>/dev/null; then
27883 as_ln_s='ln -s'
27884 # ... but there are two gotchas:
27885 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27886 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27887 # In both cases, we have to default to `cp -p'.
27888 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27889 as_ln_s='cp -p'
27890 elif ln conf$$.file conf$$ 2>/dev/null; then
27891 as_ln_s=ln
27892 else
27893 as_ln_s='cp -p'
27895 else
27896 as_ln_s='cp -p'
27898 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27899 rmdir conf$$.dir 2>/dev/null
27901 if mkdir -p . 2>/dev/null; then
27902 as_mkdir_p=:
27903 else
27904 test -d ./-p && rmdir ./-p
27905 as_mkdir_p=false
27908 if test -x / >/dev/null 2>&1; then
27909 as_test_x='test -x'
27910 else
27911 if ls -dL / >/dev/null 2>&1; then
27912 as_ls_L_option=L
27913 else
27914 as_ls_L_option=
27916 as_test_x='
27917 eval sh -c '\''
27918 if test -d "$1"; then
27919 test -d "$1/.";
27920 else
27921 case $1 in
27922 -*)set "./$1";;
27923 esac;
27924 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27925 ???[sx]*):;;*)false;;esac;fi
27926 '\'' sh
27929 as_executable_p=$as_test_x
27931 # Sed expression to map a string onto a valid CPP name.
27932 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27934 # Sed expression to map a string onto a valid variable name.
27935 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27938 exec 6>&1
27940 # Save the log message, to keep $[0] and so on meaningful, and to
27941 # report actual input values of CONFIG_FILES etc. instead of their
27942 # values after options handling.
27943 ac_log="
27944 This file was extended by netbsd-iscsi $as_me 20090622, which was
27945 generated by GNU Autoconf 2.63. Invocation command line was
27947 CONFIG_FILES = $CONFIG_FILES
27948 CONFIG_HEADERS = $CONFIG_HEADERS
27949 CONFIG_LINKS = $CONFIG_LINKS
27950 CONFIG_COMMANDS = $CONFIG_COMMANDS
27951 $ $0 $@
27953 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27956 _ACEOF
27958 case $ac_config_files in *"
27959 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27960 esac
27962 case $ac_config_headers in *"
27963 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27964 esac
27967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27968 # Files that config.status was made for.
27969 config_files="$ac_config_files"
27970 config_headers="$ac_config_headers"
27971 config_commands="$ac_config_commands"
27973 _ACEOF
27975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27976 ac_cs_usage="\
27977 \`$as_me' instantiates files from templates according to the
27978 current configuration.
27980 Usage: $0 [OPTION]... [FILE]...
27982 -h, --help print this help, then exit
27983 -V, --version print version number and configuration settings, then exit
27984 -q, --quiet, --silent
27985 do not print progress messages
27986 -d, --debug don't remove temporary files
27987 --recheck update $as_me by reconfiguring in the same conditions
27988 --file=FILE[:TEMPLATE]
27989 instantiate the configuration file FILE
27990 --header=FILE[:TEMPLATE]
27991 instantiate the configuration header FILE
27993 Configuration files:
27994 $config_files
27996 Configuration headers:
27997 $config_headers
27999 Configuration commands:
28000 $config_commands
28002 Report bugs to <bug-autoconf@gnu.org>."
28004 _ACEOF
28005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28006 ac_cs_version="\\
28007 netbsd-iscsi config.status 20090622
28008 configured by $0, generated by GNU Autoconf 2.63,
28009 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28011 Copyright (C) 2008 Free Software Foundation, Inc.
28012 This config.status script is free software; the Free Software Foundation
28013 gives unlimited permission to copy, distribute and modify it."
28015 ac_pwd='$ac_pwd'
28016 srcdir='$srcdir'
28017 INSTALL='$INSTALL'
28018 MKDIR_P='$MKDIR_P'
28019 AWK='$AWK'
28020 test -n "\$AWK" || AWK=awk
28021 _ACEOF
28023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28024 # The default lists apply if the user does not specify any file.
28025 ac_need_defaults=:
28026 while test $# != 0
28028 case $1 in
28029 --*=*)
28030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28031 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28032 ac_shift=:
28035 ac_option=$1
28036 ac_optarg=$2
28037 ac_shift=shift
28039 esac
28041 case $ac_option in
28042 # Handling of the options.
28043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28044 ac_cs_recheck=: ;;
28045 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28046 $as_echo "$ac_cs_version"; exit ;;
28047 --debug | --debu | --deb | --de | --d | -d )
28048 debug=: ;;
28049 --file | --fil | --fi | --f )
28050 $ac_shift
28051 case $ac_optarg in
28052 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28053 esac
28054 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
28055 ac_need_defaults=false;;
28056 --header | --heade | --head | --hea )
28057 $ac_shift
28058 case $ac_optarg in
28059 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28060 esac
28061 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
28062 ac_need_defaults=false;;
28063 --he | --h)
28064 # Conflict between --help and --header
28065 { $as_echo "$as_me: error: ambiguous option: $1
28066 Try \`$0 --help' for more information." >&2
28067 { (exit 1); exit 1; }; };;
28068 --help | --hel | -h )
28069 $as_echo "$ac_cs_usage"; exit ;;
28070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28071 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28072 ac_cs_silent=: ;;
28074 # This is an error.
28075 -*) { $as_echo "$as_me: error: unrecognized option: $1
28076 Try \`$0 --help' for more information." >&2
28077 { (exit 1); exit 1; }; } ;;
28079 *) ac_config_targets="$ac_config_targets $1"
28080 ac_need_defaults=false ;;
28082 esac
28083 shift
28084 done
28086 ac_configure_extra_args=
28088 if $ac_cs_silent; then
28089 exec 6>/dev/null
28090 ac_configure_extra_args="$ac_configure_extra_args --silent"
28093 _ACEOF
28094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28095 if \$ac_cs_recheck; then
28096 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28097 shift
28098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28099 CONFIG_SHELL='$SHELL'
28100 export CONFIG_SHELL
28101 exec "\$@"
28104 _ACEOF
28105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28106 exec 5>>config.log
28108 echo
28109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28110 ## Running $as_me. ##
28111 _ASBOX
28112 $as_echo "$ac_log"
28113 } >&5
28115 _ACEOF
28116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28118 # INIT-COMMANDS
28120 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28122 _ACEOF
28124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28126 # Handling of arguments.
28127 for ac_config_target in $ac_config_targets
28129 case $ac_config_target in
28130 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
28131 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28132 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28133 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28134 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
28135 "src/target/Makefile") CONFIG_FILES="$CONFIG_FILES src/target/Makefile" ;;
28137 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28138 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28139 { (exit 1); exit 1; }; };;
28140 esac
28141 done
28144 # If the user did not use the arguments to specify the items to instantiate,
28145 # then the envvar interface is used. Set only those that are not.
28146 # We use the long form for the default assignment because of an extremely
28147 # bizarre bug on SunOS 4.1.3.
28148 if $ac_need_defaults; then
28149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28154 # Have a temporary directory for convenience. Make it in the build tree
28155 # simply because there is no reason against having it here, and in addition,
28156 # creating and moving files from /tmp can sometimes cause problems.
28157 # Hook for its removal unless debugging.
28158 # Note that there is a small window in which the directory will not be cleaned:
28159 # after its creation but before its name has been assigned to `$tmp'.
28160 $debug ||
28162 tmp=
28163 trap 'exit_status=$?
28164 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28166 trap '{ (exit 1); exit 1; }' 1 2 13 15
28168 # Create a (secure) tmp directory for tmp files.
28171 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28172 test -n "$tmp" && test -d "$tmp"
28173 } ||
28175 tmp=./conf$$-$RANDOM
28176 (umask 077 && mkdir "$tmp")
28177 } ||
28179 $as_echo "$as_me: cannot create a temporary directory in ." >&2
28180 { (exit 1); exit 1; }
28183 # Set up the scripts for CONFIG_FILES section.
28184 # No need to generate them if there are no CONFIG_FILES.
28185 # This happens for instance with `./config.status config.h'.
28186 if test -n "$CONFIG_FILES"; then
28189 ac_cr=' '
28190 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28191 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28192 ac_cs_awk_cr='\\r'
28193 else
28194 ac_cs_awk_cr=$ac_cr
28197 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28198 _ACEOF
28202 echo "cat >conf$$subs.awk <<_ACEOF" &&
28203 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28204 echo "_ACEOF"
28205 } >conf$$subs.sh ||
28206 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28207 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28208 { (exit 1); exit 1; }; }
28209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28210 ac_delim='%!_!# '
28211 for ac_last_try in false false false false false :; do
28212 . ./conf$$subs.sh ||
28213 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28214 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28215 { (exit 1); exit 1; }; }
28217 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28218 if test $ac_delim_n = $ac_delim_num; then
28219 break
28220 elif $ac_last_try; then
28221 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28222 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28223 { (exit 1); exit 1; }; }
28224 else
28225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28227 done
28228 rm -f conf$$subs.sh
28230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28231 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28232 _ACEOF
28233 sed -n '
28235 s/^/S["/; s/!.*/"]=/
28238 s/^[^!]*!//
28239 :repl
28240 t repl
28241 s/'"$ac_delim"'$//
28242 t delim
28245 s/\(.\{148\}\).*/\1/
28246 t more1
28247 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28250 b repl
28251 :more1
28252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28255 s/.\{148\}//
28256 t nl
28257 :delim
28259 s/\(.\{148\}\).*/\1/
28260 t more2
28261 s/["\\]/\\&/g; s/^/"/; s/$/"/
28264 :more2
28265 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28268 s/.\{148\}//
28269 t delim
28270 ' <conf$$subs.awk | sed '
28271 /^[^""]/{
28273 s/\n//
28275 ' >>$CONFIG_STATUS || ac_write_fail=1
28276 rm -f conf$$subs.awk
28277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28278 _ACAWK
28279 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28280 for (key in S) S_is_set[key] = 1
28281 FS = "\a"
28285 line = $ 0
28286 nfields = split(line, field, "@")
28287 substed = 0
28288 len = length(field[1])
28289 for (i = 2; i < nfields; i++) {
28290 key = field[i]
28291 keylen = length(key)
28292 if (S_is_set[key]) {
28293 value = S[key]
28294 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28295 len += length(value) + length(field[++i])
28296 substed = 1
28297 } else
28298 len += 1 + keylen
28301 print line
28304 _ACAWK
28305 _ACEOF
28306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28307 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28308 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28309 else
28311 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28312 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
28313 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
28314 { (exit 1); exit 1; }; }
28315 _ACEOF
28317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28319 # trailing colons and then remove the whole line if VPATH becomes empty
28320 # (actually we leave an empty line to preserve line numbers).
28321 if test "x$srcdir" = x.; then
28322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28323 s/:*\$(srcdir):*/:/
28324 s/:*\${srcdir}:*/:/
28325 s/:*@srcdir@:*/:/
28326 s/^\([^=]*=[ ]*\):*/\1/
28327 s/:*$//
28328 s/^[^=]*=[ ]*$//
28332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28333 fi # test -n "$CONFIG_FILES"
28335 # Set up the scripts for CONFIG_HEADERS section.
28336 # No need to generate them if there are no CONFIG_HEADERS.
28337 # This happens for instance with `./config.status Makefile'.
28338 if test -n "$CONFIG_HEADERS"; then
28339 cat >"$tmp/defines.awk" <<\_ACAWK ||
28340 BEGIN {
28341 _ACEOF
28343 # Transform confdefs.h into an awk script `defines.awk', embedded as
28344 # here-document in config.status, that substitutes the proper values into
28345 # config.h.in to produce config.h.
28347 # Create a delimiter string that does not exist in confdefs.h, to ease
28348 # handling of long lines.
28349 ac_delim='%!_!# '
28350 for ac_last_try in false false :; do
28351 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28352 if test -z "$ac_t"; then
28353 break
28354 elif $ac_last_try; then
28355 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
28356 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
28357 { (exit 1); exit 1; }; }
28358 else
28359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28361 done
28363 # For the awk script, D is an array of macro values keyed by name,
28364 # likewise P contains macro parameters if any. Preserve backslash
28365 # newline sequences.
28367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28368 sed -n '
28369 s/.\{148\}/&'"$ac_delim"'/g
28370 t rset
28371 :rset
28372 s/^[ ]*#[ ]*define[ ][ ]*/ /
28373 t def
28375 :def
28376 s/\\$//
28377 t bsnl
28378 s/["\\]/\\&/g
28379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28380 D["\1"]=" \3"/p
28381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28383 :bsnl
28384 s/["\\]/\\&/g
28385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28386 D["\1"]=" \3\\\\\\n"\\/p
28387 t cont
28388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28389 t cont
28391 :cont
28393 s/.\{148\}/&'"$ac_delim"'/g
28394 t clear
28395 :clear
28396 s/\\$//
28397 t bsnlc
28398 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28400 :bsnlc
28401 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28402 b cont
28403 ' <confdefs.h | sed '
28404 s/'"$ac_delim"'/"\\\
28405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28408 for (key in D) D_is_set[key] = 1
28409 FS = "\a"
28411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28412 line = \$ 0
28413 split(line, arg, " ")
28414 if (arg[1] == "#") {
28415 defundef = arg[2]
28416 mac1 = arg[3]
28417 } else {
28418 defundef = substr(arg[1], 2)
28419 mac1 = arg[2]
28421 split(mac1, mac2, "(") #)
28422 macro = mac2[1]
28423 prefix = substr(line, 1, index(line, defundef) - 1)
28424 if (D_is_set[macro]) {
28425 # Preserve the white space surrounding the "#".
28426 print prefix "define", macro P[macro] D[macro]
28427 next
28428 } else {
28429 # Replace #undef with comments. This is necessary, for example,
28430 # in the case of _POSIX_SOURCE, which is predefined and required
28431 # on some systems where configure will not decide to define it.
28432 if (defundef == "undef") {
28433 print "/*", prefix defundef, macro, "*/"
28434 next
28438 { print }
28439 _ACAWK
28440 _ACEOF
28441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28442 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
28443 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
28444 { (exit 1); exit 1; }; }
28445 fi # test -n "$CONFIG_HEADERS"
28448 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28449 shift
28450 for ac_tag
28452 case $ac_tag in
28453 :[FHLC]) ac_mode=$ac_tag; continue;;
28454 esac
28455 case $ac_mode$ac_tag in
28456 :[FHL]*:*);;
28457 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
28458 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
28459 { (exit 1); exit 1; }; };;
28460 :[FH]-) ac_tag=-:-;;
28461 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28462 esac
28463 ac_save_IFS=$IFS
28464 IFS=:
28465 set x $ac_tag
28466 IFS=$ac_save_IFS
28467 shift
28468 ac_file=$1
28469 shift
28471 case $ac_mode in
28472 :L) ac_source=$1;;
28473 :[FH])
28474 ac_file_inputs=
28475 for ac_f
28477 case $ac_f in
28478 -) ac_f="$tmp/stdin";;
28479 *) # Look for the file first in the build tree, then in the source tree
28480 # (if the path is not absolute). The absolute path cannot be DOS-style,
28481 # because $ac_f cannot contain `:'.
28482 test -f "$ac_f" ||
28483 case $ac_f in
28484 [\\/$]*) false;;
28485 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28486 esac ||
28487 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28488 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28489 { (exit 1); exit 1; }; };;
28490 esac
28491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28492 ac_file_inputs="$ac_file_inputs '$ac_f'"
28493 done
28495 # Let's still pretend it is `configure' which instantiates (i.e., don't
28496 # use $as_me), people would be surprised to read:
28497 # /* config.h. Generated by config.status. */
28498 configure_input='Generated from '`
28499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28500 `' by configure.'
28501 if test x"$ac_file" != x-; then
28502 configure_input="$ac_file. $configure_input"
28503 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
28504 $as_echo "$as_me: creating $ac_file" >&6;}
28506 # Neutralize special characters interpreted by sed in replacement strings.
28507 case $configure_input in #(
28508 *\&* | *\|* | *\\* )
28509 ac_sed_conf_input=`$as_echo "$configure_input" |
28510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28511 *) ac_sed_conf_input=$configure_input;;
28512 esac
28514 case $ac_tag in
28515 *:-:* | *:-) cat >"$tmp/stdin" \
28516 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28517 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28518 { (exit 1); exit 1; }; } ;;
28519 esac
28521 esac
28523 ac_dir=`$as_dirname -- "$ac_file" ||
28524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28525 X"$ac_file" : 'X\(//\)[^/]' \| \
28526 X"$ac_file" : 'X\(//\)$' \| \
28527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28528 $as_echo X"$ac_file" |
28529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28530 s//\1/
28533 /^X\(\/\/\)[^/].*/{
28534 s//\1/
28537 /^X\(\/\/\)$/{
28538 s//\1/
28541 /^X\(\/\).*/{
28542 s//\1/
28545 s/.*/./; q'`
28546 { as_dir="$ac_dir"
28547 case $as_dir in #(
28548 -*) as_dir=./$as_dir;;
28549 esac
28550 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28551 as_dirs=
28552 while :; do
28553 case $as_dir in #(
28554 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28555 *) as_qdir=$as_dir;;
28556 esac
28557 as_dirs="'$as_qdir' $as_dirs"
28558 as_dir=`$as_dirname -- "$as_dir" ||
28559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28560 X"$as_dir" : 'X\(//\)[^/]' \| \
28561 X"$as_dir" : 'X\(//\)$' \| \
28562 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28563 $as_echo X"$as_dir" |
28564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28565 s//\1/
28568 /^X\(\/\/\)[^/].*/{
28569 s//\1/
28572 /^X\(\/\/\)$/{
28573 s//\1/
28576 /^X\(\/\).*/{
28577 s//\1/
28580 s/.*/./; q'`
28581 test -d "$as_dir" && break
28582 done
28583 test -z "$as_dirs" || eval "mkdir $as_dirs"
28584 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28585 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
28586 { (exit 1); exit 1; }; }; }
28587 ac_builddir=.
28589 case "$ac_dir" in
28590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28592 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28593 # A ".." for each directory in $ac_dir_suffix.
28594 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28595 case $ac_top_builddir_sub in
28596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28598 esac ;;
28599 esac
28600 ac_abs_top_builddir=$ac_pwd
28601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28602 # for backward compatibility:
28603 ac_top_builddir=$ac_top_build_prefix
28605 case $srcdir in
28606 .) # We are building in place.
28607 ac_srcdir=.
28608 ac_top_srcdir=$ac_top_builddir_sub
28609 ac_abs_top_srcdir=$ac_pwd ;;
28610 [\\/]* | ?:[\\/]* ) # Absolute name.
28611 ac_srcdir=$srcdir$ac_dir_suffix;
28612 ac_top_srcdir=$srcdir
28613 ac_abs_top_srcdir=$srcdir ;;
28614 *) # Relative name.
28615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28616 ac_top_srcdir=$ac_top_build_prefix$srcdir
28617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28618 esac
28619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28622 case $ac_mode in
28625 # CONFIG_FILE
28628 case $INSTALL in
28629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28630 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28631 esac
28632 ac_MKDIR_P=$MKDIR_P
28633 case $MKDIR_P in
28634 [\\/$]* | ?:[\\/]* ) ;;
28635 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28636 esac
28637 _ACEOF
28639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28640 # If the template does not know about datarootdir, expand it.
28641 # FIXME: This hack should be removed a few years after 2.60.
28642 ac_datarootdir_hack=; ac_datarootdir_seen=
28644 ac_sed_dataroot='
28645 /datarootdir/ {
28649 /@datadir@/p
28650 /@docdir@/p
28651 /@infodir@/p
28652 /@localedir@/p
28653 /@mandir@/p
28655 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28656 *datarootdir*) ac_datarootdir_seen=yes;;
28657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28658 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28659 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28660 _ACEOF
28661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28662 ac_datarootdir_hack='
28663 s&@datadir@&$datadir&g
28664 s&@docdir@&$docdir&g
28665 s&@infodir@&$infodir&g
28666 s&@localedir@&$localedir&g
28667 s&@mandir@&$mandir&g
28668 s&\\\${datarootdir}&$datarootdir&g' ;;
28669 esac
28670 _ACEOF
28672 # Neutralize VPATH when `$srcdir' = `.'.
28673 # Shell code in configure.ac might set extrasub.
28674 # FIXME: do we really want to maintain this feature?
28675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28676 ac_sed_extra="$ac_vpsub
28677 $extrasub
28678 _ACEOF
28679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28682 s|@configure_input@|$ac_sed_conf_input|;t t
28683 s&@top_builddir@&$ac_top_builddir_sub&;t t
28684 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28685 s&@srcdir@&$ac_srcdir&;t t
28686 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28687 s&@top_srcdir@&$ac_top_srcdir&;t t
28688 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28689 s&@builddir@&$ac_builddir&;t t
28690 s&@abs_builddir@&$ac_abs_builddir&;t t
28691 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28692 s&@INSTALL@&$ac_INSTALL&;t t
28693 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28694 $ac_datarootdir_hack
28696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28697 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28698 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28699 { (exit 1); exit 1; }; }
28701 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28702 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28703 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28704 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28705 which seems to be undefined. Please make sure it is defined." >&5
28706 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28707 which seems to be undefined. Please make sure it is defined." >&2;}
28709 rm -f "$tmp/stdin"
28710 case $ac_file in
28711 -) cat "$tmp/out" && rm -f "$tmp/out";;
28712 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28713 esac \
28714 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28715 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28716 { (exit 1); exit 1; }; }
28720 # CONFIG_HEADER
28722 if test x"$ac_file" != x-; then
28724 $as_echo "/* $configure_input */" \
28725 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28726 } >"$tmp/config.h" \
28727 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28728 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28729 { (exit 1); exit 1; }; }
28730 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28731 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28732 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28733 else
28734 rm -f "$ac_file"
28735 mv "$tmp/config.h" "$ac_file" \
28736 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28737 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28738 { (exit 1); exit 1; }; }
28740 else
28741 $as_echo "/* $configure_input */" \
28742 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28743 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28744 $as_echo "$as_me: error: could not create -" >&2;}
28745 { (exit 1); exit 1; }; }
28747 # Compute "$ac_file"'s index in $config_headers.
28748 _am_arg="$ac_file"
28749 _am_stamp_count=1
28750 for _am_header in $config_headers :; do
28751 case $_am_header in
28752 $_am_arg | $_am_arg:* )
28753 break ;;
28755 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28756 esac
28757 done
28758 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28759 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28760 X"$_am_arg" : 'X\(//\)[^/]' \| \
28761 X"$_am_arg" : 'X\(//\)$' \| \
28762 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28763 $as_echo X"$_am_arg" |
28764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28765 s//\1/
28768 /^X\(\/\/\)[^/].*/{
28769 s//\1/
28772 /^X\(\/\/\)$/{
28773 s//\1/
28776 /^X\(\/\).*/{
28777 s//\1/
28780 s/.*/./; q'`/stamp-h$_am_stamp_count
28783 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28784 $as_echo "$as_me: executing $ac_file commands" >&6;}
28786 esac
28789 case $ac_file$ac_mode in
28790 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28791 # Strip MF so we end up with the name of the file.
28792 mf=`echo "$mf" | sed -e 's/:.*$//'`
28793 # Check whether this is an Automake generated Makefile or not.
28794 # We used to match only the files named `Makefile.in', but
28795 # some people rename them; so instead we look at the file content.
28796 # Grep'ing the first line is not enough: some people post-process
28797 # each Makefile.in and add a new line on top of each file to say so.
28798 # Grep'ing the whole file is not good either: AIX grep has a line
28799 # limit of 2048, but all sed's we know have understand at least 4000.
28800 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28801 dirpart=`$as_dirname -- "$mf" ||
28802 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28803 X"$mf" : 'X\(//\)[^/]' \| \
28804 X"$mf" : 'X\(//\)$' \| \
28805 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28806 $as_echo X"$mf" |
28807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28808 s//\1/
28811 /^X\(\/\/\)[^/].*/{
28812 s//\1/
28815 /^X\(\/\/\)$/{
28816 s//\1/
28819 /^X\(\/\).*/{
28820 s//\1/
28823 s/.*/./; q'`
28824 else
28825 continue
28827 # Extract the definition of DEPDIR, am__include, and am__quote
28828 # from the Makefile without running `make'.
28829 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28830 test -z "$DEPDIR" && continue
28831 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28832 test -z "am__include" && continue
28833 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28834 # When using ansi2knr, U may be empty or an underscore; expand it
28835 U=`sed -n 's/^U = //p' < "$mf"`
28836 # Find all dependency output files, they are included files with
28837 # $(DEPDIR) in their names. We invoke sed twice because it is the
28838 # simplest approach to changing $(DEPDIR) to its actual value in the
28839 # expansion.
28840 for file in `sed -n "
28841 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28842 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28843 # Make sure the directory exists.
28844 test -f "$dirpart/$file" && continue
28845 fdir=`$as_dirname -- "$file" ||
28846 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28847 X"$file" : 'X\(//\)[^/]' \| \
28848 X"$file" : 'X\(//\)$' \| \
28849 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28850 $as_echo X"$file" |
28851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28852 s//\1/
28855 /^X\(\/\/\)[^/].*/{
28856 s//\1/
28859 /^X\(\/\/\)$/{
28860 s//\1/
28863 /^X\(\/\).*/{
28864 s//\1/
28867 s/.*/./; q'`
28868 { as_dir=$dirpart/$fdir
28869 case $as_dir in #(
28870 -*) as_dir=./$as_dir;;
28871 esac
28872 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28873 as_dirs=
28874 while :; do
28875 case $as_dir in #(
28876 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28877 *) as_qdir=$as_dir;;
28878 esac
28879 as_dirs="'$as_qdir' $as_dirs"
28880 as_dir=`$as_dirname -- "$as_dir" ||
28881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28882 X"$as_dir" : 'X\(//\)[^/]' \| \
28883 X"$as_dir" : 'X\(//\)$' \| \
28884 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28885 $as_echo X"$as_dir" |
28886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28887 s//\1/
28890 /^X\(\/\/\)[^/].*/{
28891 s//\1/
28894 /^X\(\/\/\)$/{
28895 s//\1/
28898 /^X\(\/\).*/{
28899 s//\1/
28902 s/.*/./; q'`
28903 test -d "$as_dir" && break
28904 done
28905 test -z "$as_dirs" || eval "mkdir $as_dirs"
28906 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28907 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
28908 { (exit 1); exit 1; }; }; }
28909 # echo "creating $dirpart/$file"
28910 echo '# dummy' > "$dirpart/$file"
28911 done
28912 done
28915 esac
28916 done # for ac_tag
28919 { (exit 0); exit 0; }
28920 _ACEOF
28921 chmod +x $CONFIG_STATUS
28922 ac_clean_files=$ac_clean_files_save
28924 test $ac_write_fail = 0 ||
28925 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28926 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28927 { (exit 1); exit 1; }; }
28930 # configure is writing to config.log, and then calls config.status.
28931 # config.status does its own redirection, appending to config.log.
28932 # Unfortunately, on DOS this fails, as config.log is still kept open
28933 # by configure, so config.status won't be able to write to it; its
28934 # output is simply discarded. So we exec the FD to /dev/null,
28935 # effectively closing config.log, so it can be properly (re)opened and
28936 # appended to by config.status. When coming back to configure, we
28937 # need to make the FD available again.
28938 if test "$no_create" != yes; then
28939 ac_cs_success=:
28940 ac_config_status_args=
28941 test "$silent" = yes &&
28942 ac_config_status_args="$ac_config_status_args --quiet"
28943 exec 5>/dev/null
28944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28945 exec 5>>config.log
28946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28947 # would make configure fail if this is the last instruction.
28948 $ac_cs_success || { (exit 1); exit 1; }
28950 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28951 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28952 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28955 ac_config_files="$ac_config_files src/initiator/Makefile"
28957 cat >confcache <<\_ACEOF
28958 # This file is a shell script that caches the results of configure
28959 # tests run on this system so they can be shared between configure
28960 # scripts and configure runs, see configure's option --config-cache.
28961 # It is not useful on other systems. If it contains results you don't
28962 # want to keep, you may remove or edit it.
28964 # config.status only pays attention to the cache file if you give it
28965 # the --recheck option to rerun configure.
28967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28969 # following values.
28971 _ACEOF
28973 # The following way of writing the cache mishandles newlines in values,
28974 # but we know of no workaround that is simple, portable, and efficient.
28975 # So, we kill variables containing newlines.
28976 # Ultrix sh set writes to stderr and can't be redirected directly,
28977 # and sets the high bit in the cache file unless we assign to the vars.
28979 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28980 eval ac_val=\$$ac_var
28981 case $ac_val in #(
28982 *${as_nl}*)
28983 case $ac_var in #(
28984 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28986 esac
28987 case $ac_var in #(
28988 _ | IFS | as_nl) ;; #(
28989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28990 *) $as_unset $ac_var ;;
28991 esac ;;
28992 esac
28993 done
28995 (set) 2>&1 |
28996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28997 *${as_nl}ac_space=\ *)
28998 # `set' does not quote correctly, so add quotes (double-quote
28999 # substitution turns \\\\ into \\, and sed turns \\ into \).
29000 sed -n \
29001 "s/'/'\\\\''/g;
29002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29003 ;; #(
29005 # `set' quotes correctly as required by POSIX, so do not add quotes.
29006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29008 esac |
29009 sort
29011 sed '
29012 /^ac_cv_env_/b end
29013 t clear
29014 :clear
29015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29016 t end
29017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29018 :end' >>confcache
29019 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29020 if test -w "$cache_file"; then
29021 test "x$cache_file" != "x/dev/null" &&
29022 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29023 $as_echo "$as_me: updating cache $cache_file" >&6;}
29024 cat confcache >$cache_file
29025 else
29026 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29027 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29030 rm -f confcache
29032 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29033 # Let make expand exec_prefix.
29034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29036 DEFS=-DHAVE_CONFIG_H
29038 ac_libobjs=
29039 ac_ltlibobjs=
29040 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29041 # 1. Remove the extension, and $U if already installed.
29042 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29043 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29044 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29045 # will be set to the directory where LIBOBJS objects are built.
29046 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29047 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29048 done
29049 LIBOBJS=$ac_libobjs
29051 LTLIBOBJS=$ac_ltlibobjs
29054 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29055 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29056 Usually this means the macro was only invoked conditionally." >&5
29057 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29058 Usually this means the macro was only invoked conditionally." >&2;}
29059 { (exit 1); exit 1; }; }
29061 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29062 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29063 Usually this means the macro was only invoked conditionally." >&5
29064 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
29065 Usually this means the macro was only invoked conditionally." >&2;}
29066 { (exit 1); exit 1; }; }
29068 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29069 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29070 Usually this means the macro was only invoked conditionally." >&5
29071 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29072 Usually this means the macro was only invoked conditionally." >&2;}
29073 { (exit 1); exit 1; }; }
29075 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29076 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29077 Usually this means the macro was only invoked conditionally." >&5
29078 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29079 Usually this means the macro was only invoked conditionally." >&2;}
29080 { (exit 1); exit 1; }; }
29083 : ${CONFIG_STATUS=./config.status}
29084 ac_write_fail=0
29085 ac_clean_files_save=$ac_clean_files
29086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29087 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29089 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29090 #! $SHELL
29091 # Generated by $as_me.
29092 # Run this file to recreate the current configuration.
29093 # Compiler output produced by configure, useful for debugging
29094 # configure, is in config.log if it exists.
29096 debug=false
29097 ac_cs_recheck=false
29098 ac_cs_silent=false
29099 SHELL=\${CONFIG_SHELL-$SHELL}
29100 _ACEOF
29102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29103 ## --------------------- ##
29104 ## M4sh Initialization. ##
29105 ## --------------------- ##
29107 # Be more Bourne compatible
29108 DUALCASE=1; export DUALCASE # for MKS sh
29109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29110 emulate sh
29111 NULLCMD=:
29112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29113 # is contrary to our usage. Disable this feature.
29114 alias -g '${1+"$@"}'='"$@"'
29115 setopt NO_GLOB_SUBST
29116 else
29117 case `(set -o) 2>/dev/null` in
29118 *posix*) set -o posix ;;
29119 esac
29126 # PATH needs CR
29127 # Avoid depending upon Character Ranges.
29128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29131 as_cr_digits='0123456789'
29132 as_cr_alnum=$as_cr_Letters$as_cr_digits
29134 as_nl='
29136 export as_nl
29137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29141 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29142 as_echo='printf %s\n'
29143 as_echo_n='printf %s'
29144 else
29145 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29146 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29147 as_echo_n='/usr/ucb/echo -n'
29148 else
29149 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29150 as_echo_n_body='eval
29151 arg=$1;
29152 case $arg in
29153 *"$as_nl"*)
29154 expr "X$arg" : "X\\(.*\\)$as_nl";
29155 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29156 esac;
29157 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29159 export as_echo_n_body
29160 as_echo_n='sh -c $as_echo_n_body as_echo'
29162 export as_echo_body
29163 as_echo='sh -c $as_echo_body as_echo'
29166 # The user is always right.
29167 if test "${PATH_SEPARATOR+set}" != set; then
29168 PATH_SEPARATOR=:
29169 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29170 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29171 PATH_SEPARATOR=';'
29175 # Support unset when possible.
29176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29177 as_unset=unset
29178 else
29179 as_unset=false
29183 # IFS
29184 # We need space, tab and new line, in precisely that order. Quoting is
29185 # there to prevent editors from complaining about space-tab.
29186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29187 # splitting by setting IFS to empty value.)
29188 IFS=" "" $as_nl"
29190 # Find who we are. Look in the path if we contain no directory separator.
29191 case $0 in
29192 *[\\/]* ) as_myself=$0 ;;
29193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29194 for as_dir in $PATH
29196 IFS=$as_save_IFS
29197 test -z "$as_dir" && as_dir=.
29198 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29199 done
29200 IFS=$as_save_IFS
29203 esac
29204 # We did not find ourselves, most probably we were run as `sh COMMAND'
29205 # in which case we are not to be found in the path.
29206 if test "x$as_myself" = x; then
29207 as_myself=$0
29209 if test ! -f "$as_myself"; then
29210 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29211 { (exit 1); exit 1; }
29214 # Work around bugs in pre-3.0 UWIN ksh.
29215 for as_var in ENV MAIL MAILPATH
29216 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29217 done
29218 PS1='$ '
29219 PS2='> '
29220 PS4='+ '
29222 # NLS nuisances.
29223 LC_ALL=C
29224 export LC_ALL
29225 LANGUAGE=C
29226 export LANGUAGE
29228 # Required to use basename.
29229 if expr a : '\(a\)' >/dev/null 2>&1 &&
29230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29231 as_expr=expr
29232 else
29233 as_expr=false
29236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29237 as_basename=basename
29238 else
29239 as_basename=false
29243 # Name of the executable.
29244 as_me=`$as_basename -- "$0" ||
29245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29246 X"$0" : 'X\(//\)$' \| \
29247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29248 $as_echo X/"$0" |
29249 sed '/^.*\/\([^/][^/]*\)\/*$/{
29250 s//\1/
29253 /^X\/\(\/\/\)$/{
29254 s//\1/
29257 /^X\/\(\/\).*/{
29258 s//\1/
29261 s/.*/./; q'`
29263 # CDPATH.
29264 $as_unset CDPATH
29268 as_lineno_1=$LINENO
29269 as_lineno_2=$LINENO
29270 test "x$as_lineno_1" != "x$as_lineno_2" &&
29271 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29273 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29274 # uniformly replaced by the line number. The first 'sed' inserts a
29275 # line-number line after each line using $LINENO; the second 'sed'
29276 # does the real work. The second script uses 'N' to pair each
29277 # line-number line with the line containing $LINENO, and appends
29278 # trailing '-' during substitution so that $LINENO is not a special
29279 # case at line end.
29280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29281 # scripts with optimization help from Paolo Bonzini. Blame Lee
29282 # E. McMahon (1931-1989) for sed's syntax. :-)
29283 sed -n '
29285 /[$]LINENO/=
29286 ' <$as_myself |
29287 sed '
29288 s/[$]LINENO.*/&-/
29289 t lineno
29291 :lineno
29293 :loop
29294 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29295 t loop
29296 s/-\n.*//
29297 ' >$as_me.lineno &&
29298 chmod +x "$as_me.lineno" ||
29299 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29300 { (exit 1); exit 1; }; }
29302 # Don't try to exec as it changes $[0], causing all sort of problems
29303 # (the dirname of $[0] is not the place where we might find the
29304 # original and so on. Autoconf is especially sensitive to this).
29305 . "./$as_me.lineno"
29306 # Exit status is that of the last command.
29307 exit
29311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29312 as_dirname=dirname
29313 else
29314 as_dirname=false
29317 ECHO_C= ECHO_N= ECHO_T=
29318 case `echo -n x` in
29319 -n*)
29320 case `echo 'x\c'` in
29321 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29322 *) ECHO_C='\c';;
29323 esac;;
29325 ECHO_N='-n';;
29326 esac
29327 if expr a : '\(a\)' >/dev/null 2>&1 &&
29328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29329 as_expr=expr
29330 else
29331 as_expr=false
29334 rm -f conf$$ conf$$.exe conf$$.file
29335 if test -d conf$$.dir; then
29336 rm -f conf$$.dir/conf$$.file
29337 else
29338 rm -f conf$$.dir
29339 mkdir conf$$.dir 2>/dev/null
29341 if (echo >conf$$.file) 2>/dev/null; then
29342 if ln -s conf$$.file conf$$ 2>/dev/null; then
29343 as_ln_s='ln -s'
29344 # ... but there are two gotchas:
29345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29347 # In both cases, we have to default to `cp -p'.
29348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29349 as_ln_s='cp -p'
29350 elif ln conf$$.file conf$$ 2>/dev/null; then
29351 as_ln_s=ln
29352 else
29353 as_ln_s='cp -p'
29355 else
29356 as_ln_s='cp -p'
29358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29359 rmdir conf$$.dir 2>/dev/null
29361 if mkdir -p . 2>/dev/null; then
29362 as_mkdir_p=:
29363 else
29364 test -d ./-p && rmdir ./-p
29365 as_mkdir_p=false
29368 if test -x / >/dev/null 2>&1; then
29369 as_test_x='test -x'
29370 else
29371 if ls -dL / >/dev/null 2>&1; then
29372 as_ls_L_option=L
29373 else
29374 as_ls_L_option=
29376 as_test_x='
29377 eval sh -c '\''
29378 if test -d "$1"; then
29379 test -d "$1/.";
29380 else
29381 case $1 in
29382 -*)set "./$1";;
29383 esac;
29384 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29385 ???[sx]*):;;*)false;;esac;fi
29386 '\'' sh
29389 as_executable_p=$as_test_x
29391 # Sed expression to map a string onto a valid CPP name.
29392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29394 # Sed expression to map a string onto a valid variable name.
29395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29398 exec 6>&1
29400 # Save the log message, to keep $[0] and so on meaningful, and to
29401 # report actual input values of CONFIG_FILES etc. instead of their
29402 # values after options handling.
29403 ac_log="
29404 This file was extended by netbsd-iscsi $as_me 20090622, which was
29405 generated by GNU Autoconf 2.63. Invocation command line was
29407 CONFIG_FILES = $CONFIG_FILES
29408 CONFIG_HEADERS = $CONFIG_HEADERS
29409 CONFIG_LINKS = $CONFIG_LINKS
29410 CONFIG_COMMANDS = $CONFIG_COMMANDS
29411 $ $0 $@
29413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29416 _ACEOF
29418 case $ac_config_files in *"
29419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29420 esac
29422 case $ac_config_headers in *"
29423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29424 esac
29427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29428 # Files that config.status was made for.
29429 config_files="$ac_config_files"
29430 config_headers="$ac_config_headers"
29431 config_commands="$ac_config_commands"
29433 _ACEOF
29435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29436 ac_cs_usage="\
29437 \`$as_me' instantiates files from templates according to the
29438 current configuration.
29440 Usage: $0 [OPTION]... [FILE]...
29442 -h, --help print this help, then exit
29443 -V, --version print version number and configuration settings, then exit
29444 -q, --quiet, --silent
29445 do not print progress messages
29446 -d, --debug don't remove temporary files
29447 --recheck update $as_me by reconfiguring in the same conditions
29448 --file=FILE[:TEMPLATE]
29449 instantiate the configuration file FILE
29450 --header=FILE[:TEMPLATE]
29451 instantiate the configuration header FILE
29453 Configuration files:
29454 $config_files
29456 Configuration headers:
29457 $config_headers
29459 Configuration commands:
29460 $config_commands
29462 Report bugs to <bug-autoconf@gnu.org>."
29464 _ACEOF
29465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29466 ac_cs_version="\\
29467 netbsd-iscsi config.status 20090622
29468 configured by $0, generated by GNU Autoconf 2.63,
29469 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29471 Copyright (C) 2008 Free Software Foundation, Inc.
29472 This config.status script is free software; the Free Software Foundation
29473 gives unlimited permission to copy, distribute and modify it."
29475 ac_pwd='$ac_pwd'
29476 srcdir='$srcdir'
29477 INSTALL='$INSTALL'
29478 MKDIR_P='$MKDIR_P'
29479 AWK='$AWK'
29480 test -n "\$AWK" || AWK=awk
29481 _ACEOF
29483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29484 # The default lists apply if the user does not specify any file.
29485 ac_need_defaults=:
29486 while test $# != 0
29488 case $1 in
29489 --*=*)
29490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29492 ac_shift=:
29495 ac_option=$1
29496 ac_optarg=$2
29497 ac_shift=shift
29499 esac
29501 case $ac_option in
29502 # Handling of the options.
29503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29504 ac_cs_recheck=: ;;
29505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29506 $as_echo "$ac_cs_version"; exit ;;
29507 --debug | --debu | --deb | --de | --d | -d )
29508 debug=: ;;
29509 --file | --fil | --fi | --f )
29510 $ac_shift
29511 case $ac_optarg in
29512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29513 esac
29514 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29515 ac_need_defaults=false;;
29516 --header | --heade | --head | --hea )
29517 $ac_shift
29518 case $ac_optarg in
29519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29520 esac
29521 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29522 ac_need_defaults=false;;
29523 --he | --h)
29524 # Conflict between --help and --header
29525 { $as_echo "$as_me: error: ambiguous option: $1
29526 Try \`$0 --help' for more information." >&2
29527 { (exit 1); exit 1; }; };;
29528 --help | --hel | -h )
29529 $as_echo "$ac_cs_usage"; exit ;;
29530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29532 ac_cs_silent=: ;;
29534 # This is an error.
29535 -*) { $as_echo "$as_me: error: unrecognized option: $1
29536 Try \`$0 --help' for more information." >&2
29537 { (exit 1); exit 1; }; } ;;
29539 *) ac_config_targets="$ac_config_targets $1"
29540 ac_need_defaults=false ;;
29542 esac
29543 shift
29544 done
29546 ac_configure_extra_args=
29548 if $ac_cs_silent; then
29549 exec 6>/dev/null
29550 ac_configure_extra_args="$ac_configure_extra_args --silent"
29553 _ACEOF
29554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29555 if \$ac_cs_recheck; then
29556 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29557 shift
29558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29559 CONFIG_SHELL='$SHELL'
29560 export CONFIG_SHELL
29561 exec "\$@"
29564 _ACEOF
29565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29566 exec 5>>config.log
29568 echo
29569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29570 ## Running $as_me. ##
29571 _ASBOX
29572 $as_echo "$ac_log"
29573 } >&5
29575 _ACEOF
29576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29578 # INIT-COMMANDS
29580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29582 _ACEOF
29584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29586 # Handling of arguments.
29587 for ac_config_target in $ac_config_targets
29589 case $ac_config_target in
29590 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29591 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29592 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29593 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29594 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
29595 "src/target/Makefile") CONFIG_FILES="$CONFIG_FILES src/target/Makefile" ;;
29596 "src/initiator/Makefile") CONFIG_FILES="$CONFIG_FILES src/initiator/Makefile" ;;
29598 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29599 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29600 { (exit 1); exit 1; }; };;
29601 esac
29602 done
29605 # If the user did not use the arguments to specify the items to instantiate,
29606 # then the envvar interface is used. Set only those that are not.
29607 # We use the long form for the default assignment because of an extremely
29608 # bizarre bug on SunOS 4.1.3.
29609 if $ac_need_defaults; then
29610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29612 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29615 # Have a temporary directory for convenience. Make it in the build tree
29616 # simply because there is no reason against having it here, and in addition,
29617 # creating and moving files from /tmp can sometimes cause problems.
29618 # Hook for its removal unless debugging.
29619 # Note that there is a small window in which the directory will not be cleaned:
29620 # after its creation but before its name has been assigned to `$tmp'.
29621 $debug ||
29623 tmp=
29624 trap 'exit_status=$?
29625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29627 trap '{ (exit 1); exit 1; }' 1 2 13 15
29629 # Create a (secure) tmp directory for tmp files.
29632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29633 test -n "$tmp" && test -d "$tmp"
29634 } ||
29636 tmp=./conf$$-$RANDOM
29637 (umask 077 && mkdir "$tmp")
29638 } ||
29640 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29641 { (exit 1); exit 1; }
29644 # Set up the scripts for CONFIG_FILES section.
29645 # No need to generate them if there are no CONFIG_FILES.
29646 # This happens for instance with `./config.status config.h'.
29647 if test -n "$CONFIG_FILES"; then
29650 ac_cr=' '
29651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29653 ac_cs_awk_cr='\\r'
29654 else
29655 ac_cs_awk_cr=$ac_cr
29658 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29659 _ACEOF
29663 echo "cat >conf$$subs.awk <<_ACEOF" &&
29664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29665 echo "_ACEOF"
29666 } >conf$$subs.sh ||
29667 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29668 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29669 { (exit 1); exit 1; }; }
29670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29671 ac_delim='%!_!# '
29672 for ac_last_try in false false false false false :; do
29673 . ./conf$$subs.sh ||
29674 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29675 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29676 { (exit 1); exit 1; }; }
29678 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29679 if test $ac_delim_n = $ac_delim_num; then
29680 break
29681 elif $ac_last_try; then
29682 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29683 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29684 { (exit 1); exit 1; }; }
29685 else
29686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29688 done
29689 rm -f conf$$subs.sh
29691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29692 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29693 _ACEOF
29694 sed -n '
29696 s/^/S["/; s/!.*/"]=/
29699 s/^[^!]*!//
29700 :repl
29701 t repl
29702 s/'"$ac_delim"'$//
29703 t delim
29706 s/\(.\{148\}\).*/\1/
29707 t more1
29708 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29711 b repl
29712 :more1
29713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29716 s/.\{148\}//
29717 t nl
29718 :delim
29720 s/\(.\{148\}\).*/\1/
29721 t more2
29722 s/["\\]/\\&/g; s/^/"/; s/$/"/
29725 :more2
29726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29729 s/.\{148\}//
29730 t delim
29731 ' <conf$$subs.awk | sed '
29732 /^[^""]/{
29734 s/\n//
29736 ' >>$CONFIG_STATUS || ac_write_fail=1
29737 rm -f conf$$subs.awk
29738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29739 _ACAWK
29740 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29741 for (key in S) S_is_set[key] = 1
29742 FS = "\a"
29746 line = $ 0
29747 nfields = split(line, field, "@")
29748 substed = 0
29749 len = length(field[1])
29750 for (i = 2; i < nfields; i++) {
29751 key = field[i]
29752 keylen = length(key)
29753 if (S_is_set[key]) {
29754 value = S[key]
29755 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29756 len += length(value) + length(field[++i])
29757 substed = 1
29758 } else
29759 len += 1 + keylen
29762 print line
29765 _ACAWK
29766 _ACEOF
29767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29770 else
29772 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29773 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29774 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29775 { (exit 1); exit 1; }; }
29776 _ACEOF
29778 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29779 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29780 # trailing colons and then remove the whole line if VPATH becomes empty
29781 # (actually we leave an empty line to preserve line numbers).
29782 if test "x$srcdir" = x.; then
29783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29784 s/:*\$(srcdir):*/:/
29785 s/:*\${srcdir}:*/:/
29786 s/:*@srcdir@:*/:/
29787 s/^\([^=]*=[ ]*\):*/\1/
29788 s/:*$//
29789 s/^[^=]*=[ ]*$//
29793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29794 fi # test -n "$CONFIG_FILES"
29796 # Set up the scripts for CONFIG_HEADERS section.
29797 # No need to generate them if there are no CONFIG_HEADERS.
29798 # This happens for instance with `./config.status Makefile'.
29799 if test -n "$CONFIG_HEADERS"; then
29800 cat >"$tmp/defines.awk" <<\_ACAWK ||
29801 BEGIN {
29802 _ACEOF
29804 # Transform confdefs.h into an awk script `defines.awk', embedded as
29805 # here-document in config.status, that substitutes the proper values into
29806 # config.h.in to produce config.h.
29808 # Create a delimiter string that does not exist in confdefs.h, to ease
29809 # handling of long lines.
29810 ac_delim='%!_!# '
29811 for ac_last_try in false false :; do
29812 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29813 if test -z "$ac_t"; then
29814 break
29815 elif $ac_last_try; then
29816 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29817 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29818 { (exit 1); exit 1; }; }
29819 else
29820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29822 done
29824 # For the awk script, D is an array of macro values keyed by name,
29825 # likewise P contains macro parameters if any. Preserve backslash
29826 # newline sequences.
29828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29829 sed -n '
29830 s/.\{148\}/&'"$ac_delim"'/g
29831 t rset
29832 :rset
29833 s/^[ ]*#[ ]*define[ ][ ]*/ /
29834 t def
29836 :def
29837 s/\\$//
29838 t bsnl
29839 s/["\\]/\\&/g
29840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29841 D["\1"]=" \3"/p
29842 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29844 :bsnl
29845 s/["\\]/\\&/g
29846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29847 D["\1"]=" \3\\\\\\n"\\/p
29848 t cont
29849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29850 t cont
29852 :cont
29854 s/.\{148\}/&'"$ac_delim"'/g
29855 t clear
29856 :clear
29857 s/\\$//
29858 t bsnlc
29859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29861 :bsnlc
29862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29863 b cont
29864 ' <confdefs.h | sed '
29865 s/'"$ac_delim"'/"\\\
29866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29869 for (key in D) D_is_set[key] = 1
29870 FS = "\a"
29872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29873 line = \$ 0
29874 split(line, arg, " ")
29875 if (arg[1] == "#") {
29876 defundef = arg[2]
29877 mac1 = arg[3]
29878 } else {
29879 defundef = substr(arg[1], 2)
29880 mac1 = arg[2]
29882 split(mac1, mac2, "(") #)
29883 macro = mac2[1]
29884 prefix = substr(line, 1, index(line, defundef) - 1)
29885 if (D_is_set[macro]) {
29886 # Preserve the white space surrounding the "#".
29887 print prefix "define", macro P[macro] D[macro]
29888 next
29889 } else {
29890 # Replace #undef with comments. This is necessary, for example,
29891 # in the case of _POSIX_SOURCE, which is predefined and required
29892 # on some systems where configure will not decide to define it.
29893 if (defundef == "undef") {
29894 print "/*", prefix defundef, macro, "*/"
29895 next
29899 { print }
29900 _ACAWK
29901 _ACEOF
29902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29903 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29904 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29905 { (exit 1); exit 1; }; }
29906 fi # test -n "$CONFIG_HEADERS"
29909 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29910 shift
29911 for ac_tag
29913 case $ac_tag in
29914 :[FHLC]) ac_mode=$ac_tag; continue;;
29915 esac
29916 case $ac_mode$ac_tag in
29917 :[FHL]*:*);;
29918 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29919 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29920 { (exit 1); exit 1; }; };;
29921 :[FH]-) ac_tag=-:-;;
29922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29923 esac
29924 ac_save_IFS=$IFS
29925 IFS=:
29926 set x $ac_tag
29927 IFS=$ac_save_IFS
29928 shift
29929 ac_file=$1
29930 shift
29932 case $ac_mode in
29933 :L) ac_source=$1;;
29934 :[FH])
29935 ac_file_inputs=
29936 for ac_f
29938 case $ac_f in
29939 -) ac_f="$tmp/stdin";;
29940 *) # Look for the file first in the build tree, then in the source tree
29941 # (if the path is not absolute). The absolute path cannot be DOS-style,
29942 # because $ac_f cannot contain `:'.
29943 test -f "$ac_f" ||
29944 case $ac_f in
29945 [\\/$]*) false;;
29946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29947 esac ||
29948 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29949 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29950 { (exit 1); exit 1; }; };;
29951 esac
29952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29953 ac_file_inputs="$ac_file_inputs '$ac_f'"
29954 done
29956 # Let's still pretend it is `configure' which instantiates (i.e., don't
29957 # use $as_me), people would be surprised to read:
29958 # /* config.h. Generated by config.status. */
29959 configure_input='Generated from '`
29960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29961 `' by configure.'
29962 if test x"$ac_file" != x-; then
29963 configure_input="$ac_file. $configure_input"
29964 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29965 $as_echo "$as_me: creating $ac_file" >&6;}
29967 # Neutralize special characters interpreted by sed in replacement strings.
29968 case $configure_input in #(
29969 *\&* | *\|* | *\\* )
29970 ac_sed_conf_input=`$as_echo "$configure_input" |
29971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29972 *) ac_sed_conf_input=$configure_input;;
29973 esac
29975 case $ac_tag in
29976 *:-:* | *:-) cat >"$tmp/stdin" \
29977 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29978 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29979 { (exit 1); exit 1; }; } ;;
29980 esac
29982 esac
29984 ac_dir=`$as_dirname -- "$ac_file" ||
29985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29986 X"$ac_file" : 'X\(//\)[^/]' \| \
29987 X"$ac_file" : 'X\(//\)$' \| \
29988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29989 $as_echo X"$ac_file" |
29990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29991 s//\1/
29994 /^X\(\/\/\)[^/].*/{
29995 s//\1/
29998 /^X\(\/\/\)$/{
29999 s//\1/
30002 /^X\(\/\).*/{
30003 s//\1/
30006 s/.*/./; q'`
30007 { as_dir="$ac_dir"
30008 case $as_dir in #(
30009 -*) as_dir=./$as_dir;;
30010 esac
30011 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30012 as_dirs=
30013 while :; do
30014 case $as_dir in #(
30015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30016 *) as_qdir=$as_dir;;
30017 esac
30018 as_dirs="'$as_qdir' $as_dirs"
30019 as_dir=`$as_dirname -- "$as_dir" ||
30020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30021 X"$as_dir" : 'X\(//\)[^/]' \| \
30022 X"$as_dir" : 'X\(//\)$' \| \
30023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30024 $as_echo X"$as_dir" |
30025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30026 s//\1/
30029 /^X\(\/\/\)[^/].*/{
30030 s//\1/
30033 /^X\(\/\/\)$/{
30034 s//\1/
30037 /^X\(\/\).*/{
30038 s//\1/
30041 s/.*/./; q'`
30042 test -d "$as_dir" && break
30043 done
30044 test -z "$as_dirs" || eval "mkdir $as_dirs"
30045 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30046 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30047 { (exit 1); exit 1; }; }; }
30048 ac_builddir=.
30050 case "$ac_dir" in
30051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30054 # A ".." for each directory in $ac_dir_suffix.
30055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30056 case $ac_top_builddir_sub in
30057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30059 esac ;;
30060 esac
30061 ac_abs_top_builddir=$ac_pwd
30062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30063 # for backward compatibility:
30064 ac_top_builddir=$ac_top_build_prefix
30066 case $srcdir in
30067 .) # We are building in place.
30068 ac_srcdir=.
30069 ac_top_srcdir=$ac_top_builddir_sub
30070 ac_abs_top_srcdir=$ac_pwd ;;
30071 [\\/]* | ?:[\\/]* ) # Absolute name.
30072 ac_srcdir=$srcdir$ac_dir_suffix;
30073 ac_top_srcdir=$srcdir
30074 ac_abs_top_srcdir=$srcdir ;;
30075 *) # Relative name.
30076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30077 ac_top_srcdir=$ac_top_build_prefix$srcdir
30078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30079 esac
30080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30083 case $ac_mode in
30086 # CONFIG_FILE
30089 case $INSTALL in
30090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30092 esac
30093 ac_MKDIR_P=$MKDIR_P
30094 case $MKDIR_P in
30095 [\\/$]* | ?:[\\/]* ) ;;
30096 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30097 esac
30098 _ACEOF
30100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30101 # If the template does not know about datarootdir, expand it.
30102 # FIXME: This hack should be removed a few years after 2.60.
30103 ac_datarootdir_hack=; ac_datarootdir_seen=
30105 ac_sed_dataroot='
30106 /datarootdir/ {
30110 /@datadir@/p
30111 /@docdir@/p
30112 /@infodir@/p
30113 /@localedir@/p
30114 /@mandir@/p
30116 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30117 *datarootdir*) ac_datarootdir_seen=yes;;
30118 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30119 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30120 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30121 _ACEOF
30122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30123 ac_datarootdir_hack='
30124 s&@datadir@&$datadir&g
30125 s&@docdir@&$docdir&g
30126 s&@infodir@&$infodir&g
30127 s&@localedir@&$localedir&g
30128 s&@mandir@&$mandir&g
30129 s&\\\${datarootdir}&$datarootdir&g' ;;
30130 esac
30131 _ACEOF
30133 # Neutralize VPATH when `$srcdir' = `.'.
30134 # Shell code in configure.ac might set extrasub.
30135 # FIXME: do we really want to maintain this feature?
30136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30137 ac_sed_extra="$ac_vpsub
30138 $extrasub
30139 _ACEOF
30140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30143 s|@configure_input@|$ac_sed_conf_input|;t t
30144 s&@top_builddir@&$ac_top_builddir_sub&;t t
30145 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30146 s&@srcdir@&$ac_srcdir&;t t
30147 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30148 s&@top_srcdir@&$ac_top_srcdir&;t t
30149 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30150 s&@builddir@&$ac_builddir&;t t
30151 s&@abs_builddir@&$ac_abs_builddir&;t t
30152 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30153 s&@INSTALL@&$ac_INSTALL&;t t
30154 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30155 $ac_datarootdir_hack
30157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30158 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30159 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30160 { (exit 1); exit 1; }; }
30162 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30163 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30164 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30165 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30166 which seems to be undefined. Please make sure it is defined." >&5
30167 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30168 which seems to be undefined. Please make sure it is defined." >&2;}
30170 rm -f "$tmp/stdin"
30171 case $ac_file in
30172 -) cat "$tmp/out" && rm -f "$tmp/out";;
30173 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30174 esac \
30175 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30176 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30177 { (exit 1); exit 1; }; }
30181 # CONFIG_HEADER
30183 if test x"$ac_file" != x-; then
30185 $as_echo "/* $configure_input */" \
30186 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30187 } >"$tmp/config.h" \
30188 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30189 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30190 { (exit 1); exit 1; }; }
30191 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30192 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30193 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30194 else
30195 rm -f "$ac_file"
30196 mv "$tmp/config.h" "$ac_file" \
30197 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30198 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30199 { (exit 1); exit 1; }; }
30201 else
30202 $as_echo "/* $configure_input */" \
30203 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30204 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30205 $as_echo "$as_me: error: could not create -" >&2;}
30206 { (exit 1); exit 1; }; }
30208 # Compute "$ac_file"'s index in $config_headers.
30209 _am_arg="$ac_file"
30210 _am_stamp_count=1
30211 for _am_header in $config_headers :; do
30212 case $_am_header in
30213 $_am_arg | $_am_arg:* )
30214 break ;;
30216 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30217 esac
30218 done
30219 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30220 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30221 X"$_am_arg" : 'X\(//\)[^/]' \| \
30222 X"$_am_arg" : 'X\(//\)$' \| \
30223 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30224 $as_echo X"$_am_arg" |
30225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30226 s//\1/
30229 /^X\(\/\/\)[^/].*/{
30230 s//\1/
30233 /^X\(\/\/\)$/{
30234 s//\1/
30237 /^X\(\/\).*/{
30238 s//\1/
30241 s/.*/./; q'`/stamp-h$_am_stamp_count
30244 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30245 $as_echo "$as_me: executing $ac_file commands" >&6;}
30247 esac
30250 case $ac_file$ac_mode in
30251 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30252 # Strip MF so we end up with the name of the file.
30253 mf=`echo "$mf" | sed -e 's/:.*$//'`
30254 # Check whether this is an Automake generated Makefile or not.
30255 # We used to match only the files named `Makefile.in', but
30256 # some people rename them; so instead we look at the file content.
30257 # Grep'ing the first line is not enough: some people post-process
30258 # each Makefile.in and add a new line on top of each file to say so.
30259 # Grep'ing the whole file is not good either: AIX grep has a line
30260 # limit of 2048, but all sed's we know have understand at least 4000.
30261 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30262 dirpart=`$as_dirname -- "$mf" ||
30263 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30264 X"$mf" : 'X\(//\)[^/]' \| \
30265 X"$mf" : 'X\(//\)$' \| \
30266 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30267 $as_echo X"$mf" |
30268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30269 s//\1/
30272 /^X\(\/\/\)[^/].*/{
30273 s//\1/
30276 /^X\(\/\/\)$/{
30277 s//\1/
30280 /^X\(\/\).*/{
30281 s//\1/
30284 s/.*/./; q'`
30285 else
30286 continue
30288 # Extract the definition of DEPDIR, am__include, and am__quote
30289 # from the Makefile without running `make'.
30290 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30291 test -z "$DEPDIR" && continue
30292 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30293 test -z "am__include" && continue
30294 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30295 # When using ansi2knr, U may be empty or an underscore; expand it
30296 U=`sed -n 's/^U = //p' < "$mf"`
30297 # Find all dependency output files, they are included files with
30298 # $(DEPDIR) in their names. We invoke sed twice because it is the
30299 # simplest approach to changing $(DEPDIR) to its actual value in the
30300 # expansion.
30301 for file in `sed -n "
30302 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30303 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30304 # Make sure the directory exists.
30305 test -f "$dirpart/$file" && continue
30306 fdir=`$as_dirname -- "$file" ||
30307 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30308 X"$file" : 'X\(//\)[^/]' \| \
30309 X"$file" : 'X\(//\)$' \| \
30310 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30311 $as_echo X"$file" |
30312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30313 s//\1/
30316 /^X\(\/\/\)[^/].*/{
30317 s//\1/
30320 /^X\(\/\/\)$/{
30321 s//\1/
30324 /^X\(\/\).*/{
30325 s//\1/
30328 s/.*/./; q'`
30329 { as_dir=$dirpart/$fdir
30330 case $as_dir in #(
30331 -*) as_dir=./$as_dir;;
30332 esac
30333 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30334 as_dirs=
30335 while :; do
30336 case $as_dir in #(
30337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30338 *) as_qdir=$as_dir;;
30339 esac
30340 as_dirs="'$as_qdir' $as_dirs"
30341 as_dir=`$as_dirname -- "$as_dir" ||
30342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30343 X"$as_dir" : 'X\(//\)[^/]' \| \
30344 X"$as_dir" : 'X\(//\)$' \| \
30345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30346 $as_echo X"$as_dir" |
30347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30348 s//\1/
30351 /^X\(\/\/\)[^/].*/{
30352 s//\1/
30355 /^X\(\/\/\)$/{
30356 s//\1/
30359 /^X\(\/\).*/{
30360 s//\1/
30363 s/.*/./; q'`
30364 test -d "$as_dir" && break
30365 done
30366 test -z "$as_dirs" || eval "mkdir $as_dirs"
30367 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30368 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30369 { (exit 1); exit 1; }; }; }
30370 # echo "creating $dirpart/$file"
30371 echo '# dummy' > "$dirpart/$file"
30372 done
30373 done
30376 esac
30377 done # for ac_tag
30380 { (exit 0); exit 0; }
30381 _ACEOF
30382 chmod +x $CONFIG_STATUS
30383 ac_clean_files=$ac_clean_files_save
30385 test $ac_write_fail = 0 ||
30386 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30387 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30388 { (exit 1); exit 1; }; }
30391 # configure is writing to config.log, and then calls config.status.
30392 # config.status does its own redirection, appending to config.log.
30393 # Unfortunately, on DOS this fails, as config.log is still kept open
30394 # by configure, so config.status won't be able to write to it; its
30395 # output is simply discarded. So we exec the FD to /dev/null,
30396 # effectively closing config.log, so it can be properly (re)opened and
30397 # appended to by config.status. When coming back to configure, we
30398 # need to make the FD available again.
30399 if test "$no_create" != yes; then
30400 ac_cs_success=:
30401 ac_config_status_args=
30402 test "$silent" = yes &&
30403 ac_config_status_args="$ac_config_status_args --quiet"
30404 exec 5>/dev/null
30405 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30406 exec 5>>config.log
30407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30408 # would make configure fail if this is the last instruction.
30409 $ac_cs_success || { (exit 1); exit 1; }
30411 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30412 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30413 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}