Merge branch 'master' into msp430
[llvm/msp430.git] / configure
bloba30e77a06543205dbbffb7fb9fb1256650a4bf0b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs 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 *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
545 case X$ECHO in
546 X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 esac
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
562 else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
573 exit 0
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
591 done
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
598 else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
615 done
616 IFS="$lt_save_ifs"
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
664 prev="$cmd"
665 done
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 # Initializations.
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 # include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 # include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 ENABLE_PROFILING
834 DISABLE_ASSERTIONS
835 ENABLE_EXPENSIVE_CHECKS
836 EXPENSIVE_CHECKS
837 DEBUG_RUNTIME
839 TARGET_HAS_JIT
840 ENABLE_DOXYGEN
841 ENABLE_THREADS
842 ENABLE_PIC
843 TARGETS_TO_BUILD
844 ENABLE_CBE_PRINTF_A
845 EXTRA_OPTIONS
846 BINUTILS_INCDIR
848 CXXFLAGS
849 ac_ct_CXX
851 ifGNUmake
852 LN_S
855 DATE
856 FIND
857 MKDIR
859 RANLIB
863 BINPWD
864 GRAPHVIZ
867 DOTTY
868 PERL
869 HAVE_PERL
870 INSTALL_PROGRAM
871 INSTALL_SCRIPT
872 INSTALL_DATA
873 BZIP2
874 DOXYGEN
875 GROFF
876 GZIP
877 POD2HTML
878 POD2MAN
879 RUNTEST
880 TCLSH
882 OCAMLC
883 OCAMLOPT
884 OCAMLDEP
885 OCAMLDOC
887 INSTALL_LTDL_TRUE
888 INSTALL_LTDL_FALSE
889 CONVENIENCE_LTDL_TRUE
890 CONVENIENCE_LTDL_FALSE
891 LIBADD_DL
892 ECHO
894 STRIP
895 CXXCPP
897 FFLAGS
898 ac_ct_F77
899 LIBTOOL
900 LLVMGCC
901 LLVMGXX
902 LLVMGCCCOMMAND
903 LLVMGXXCOMMAND
904 USE_UDIS86
905 HAVE_PTHREAD
906 HUGE_VAL_SANITY
907 ALLOCA
908 MMAP_FILE
909 LLVMCC1
910 LLVMCC1PLUS
911 LLVMGCCDIR
912 LLVMGCCLIBEXEC
913 LLVMGCC_VERSION
914 LLVMGCC_MAJVERS
915 LLVMGCC_LANGS
916 SHLIBEXT
917 LLVM_PREFIX
918 LLVM_BINDIR
919 LLVM_LIBDIR
920 LLVM_DATADIR
921 LLVM_DOCSDIR
922 LLVM_ETCDIR
923 LLVM_INCLUDEDIR
924 LLVM_INFODIR
925 LLVM_MANDIR
926 LLVM_CONFIGTIME
927 BINDINGS_TO_BUILD
928 ALL_BINDINGS
929 OCAML_LIBDIR
930 ENABLE_VISIBILITY_INLINES_HIDDEN
931 RPATH
932 RDYNAMIC
933 LIBOBJS
934 LTLIBOBJS'
935 ac_subst_files=''
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
940 CFLAGS
941 LDFLAGS
942 CPPFLAGS
945 CXXFLAGS
947 CXXCPP
949 FFLAGS'
950 ac_subdirs_all='projects/sample
951 projects/privbracket
952 projects/llvm-stacker
953 projects/llvm-test
954 projects/test-suite
955 projects/llvm-reopt
956 projects/llvm-gcc
957 projects/llvm-java
958 projects/llvm-tv
959 projects/llvm-poolalloc
960 projects/poolalloc
961 projects/llvm-kernel'
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1029 ac_dashdash=yes ;;
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070 eval enable_$ac_feature=no ;;
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089 eval enable_$ac_feature=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1279 -with-* | --with-*)
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_package=`echo $ac_package| sed 's/-/_/g'`
1286 eval with_$ac_package=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package | sed 's/-/_/g'`
1295 eval with_$ac_package=no ;;
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 esac
1338 done
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1346 # Be sure to have absolute directory names.
1347 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1352 eval ac_val=\$$ac_var
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
1359 done
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
1400 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
1403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404 echo X"$0" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1413 /^X\(\/\/\)$/{
1414 s//\1/
1417 /^X\(\/\).*/{
1418 s//\1/
1421 s/.*/./; q'`
1422 srcdir=$ac_confdir
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 srcdir=..
1426 else
1427 ac_srcdir_defaulted=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432 { (exit 1); exit 1; }; }
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437 { (exit 1); exit 1; }; }
1438 pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
1463 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1472 Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1518 cat <<\_ACEOF
1520 System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524 _ACEOF
1527 if test -n "$ac_init_help"; then
1528 case $ac_init_help in
1529 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1530 esac
1531 cat <<\_ACEOF
1533 Optional Features:
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-optimized
1537 --enable-profiling
1538 --enable-assertions
1539 --enable-expensive-checks
1541 --enable-debug-runtime
1542 --enable-jit Enable Just In Time Compiling (default is YES)
1543 --enable-doxygen Build doxygen documentation (default is NO)
1544 --enable-threads Use threads if available (default is YES)
1545 --enable-pic Build LLVM with Position Independent Code (default
1546 is YES)
1547 --enable-targets Build specific host targets:
1548 all,host-only,{target-name} (default=all)
1549 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1550 %a (default is YES)
1551 --enable-bindings Build specific language bindings:
1552 all,auto,none,{binding-name} (default=auto)
1553 --enable-ltdl-install install libltdl
1554 --enable-shared[=PKGS] build shared libraries
1555 [default=yes]
1556 --enable-static[=PKGS] build static libraries
1557 [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation
1560 [default=yes]
1561 --disable-libtool-lock avoid locking (might break parallel builds)
1563 Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1567 searches PATH)
1568 --with-llvmgcc Specify location of llvm-gcc driver (default
1569 searches PATH)
1570 --with-llvmgxx Specify location of llvm-g++ driver (default
1571 searches PATH)
1572 --with-extra-options Specify addtional options to compile LLVM with
1573 --with-ocaml-libdir Specify install location for ocaml bindings (default
1574 is stdlib)
1575 --with-binutils-include Specify path to binutils/include/ containing
1576 plugin-api.h file for gold plugin.
1577 --with-tclinclude directory where tcl headers are
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-tags[=TAGS] include additional configurations [automatic]
1582 --with-udis86=<path> Use udis86 external x86 disassembler library
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to <llvmbugs@cs.uiuc.edu>.
1602 _ACEOF
1603 ac_status=$?
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" || continue
1610 ac_builddir=.
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1628 case $srcdir in
1629 .) # We are building in place.
1630 ac_srcdir=.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
1652 else
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
1656 done
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1661 cat <<\_ACEOF
1662 llvm configure 2.6svn
1663 generated by GNU Autoconf 2.60
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1670 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1671 _ACEOF
1672 exit
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1678 It was created by llvm $as_me 2.6svn, which was
1679 generated by GNU Autoconf 2.60. Invocation command line was
1681 $ $0 $@
1683 _ACEOF
1684 exec 5>>config.log
1686 cat <<_ASUNAME
1687 ## --------- ##
1688 ## Platform. ##
1689 ## --------- ##
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708 _ASUNAME
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1716 done
1717 IFS=$as_save_IFS
1719 } >&5
1721 cat >&5 <<_ACEOF
1724 ## ----------- ##
1725 ## Core tests. ##
1726 ## ----------- ##
1728 _ACEOF
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_configure_args=
1737 ac_configure_args0=
1738 ac_configure_args1=
1739 ac_must_keep_next=false
1740 for ac_pass in 1 2
1742 for ac_arg
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
1749 *\'*)
1750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1758 else
1759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1768 -* ) ac_must_keep_next=true ;;
1769 esac
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1773 esac
1774 done
1775 done
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log. We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1787 echo
1789 cat <<\_ASBOX
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1793 _ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
1811 (set) 2>&1 |
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1814 sed -n \
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 esac |
1822 sort
1824 echo
1826 cat <<\_ASBOX
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1830 _ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 echo "$ac_var='\''$ac_val'\''"
1839 done | sort
1840 echo
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1847 _ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
1856 done | sort
1857 echo
1860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862 ## ----------- ##
1863 ## confdefs.h. ##
1864 ## ----------- ##
1865 _ASBOX
1866 echo
1867 cat confdefs.h
1868 echo
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1873 } >&5
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876 exit $exit_status
1878 for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 done
1881 ac_signal=0
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1886 # Predefined preprocessor variables.
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 _ACEOF
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 _ACEOF
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 _ACEOF
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 _ACEOF
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 _ACEOF
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917 elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919 else
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
1923 shift
1924 for ac_site_file
1926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 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 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 echo "$as_me: loading cache $cache_file" >&6;}
1940 case $cache_file in
1941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
1943 esac
1945 else
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 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 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,set)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1974 echo "$as_me: former value: $ac_old_val" >&2;}
1975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1976 echo "$as_me: current value: $ac_new_val" >&2;}
1977 ac_cache_corrupted=:
1978 fi;;
1979 esac
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1982 case $ac_new_val in
1983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 *) ac_arg=$ac_var=$ac_new_val ;;
1985 esac
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 esac
1991 done
1992 if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
2024 ac_ext=c
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2040 ac_aux_dir=
2041 for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2045 break
2046 elif 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/shtool"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2053 break
2055 done
2056 if test -z "$ac_aux_dir"; then
2057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059 { (exit 1); exit 1; }; }
2062 # These three variables are undocumented and unsupported,
2063 # and are intended to be withdrawn in a future Autoconf release.
2064 # They can cause serious problems if a builder's source tree is in a directory
2065 # whose full name contains unusual characters.
2066 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072 if test ${srcdir} != "." ; then
2073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
2080 for i in `ls ${srcdir}/projects`
2082 if test -d ${srcdir}/projects/${i} ; then
2083 case ${i} in
2084 CVS) ;;
2085 sample) subdirs="$subdirs projects/sample"
2087 privbracket) subdirs="$subdirs projects/privbracket"
2089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2091 # llvm-test is the old name of the test-suite, kept here for backwards
2092 # compatibility
2093 llvm-test) subdirs="$subdirs projects/llvm-test"
2095 test-suite) subdirs="$subdirs projects/test-suite"
2097 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2099 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2101 llvm-java) subdirs="$subdirs projects/llvm-java"
2103 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2105 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2107 poolalloc) subdirs="$subdirs projects/poolalloc"
2109 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2112 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2115 esac
2117 done
2120 # Make sure we can run config.sub.
2121 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124 { (exit 1); exit 1; }; }
2126 { echo "$as_me:$LINENO: checking build system type" >&5
2127 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 ac_build_alias=$build_alias
2132 test "x$ac_build_alias" = x &&
2133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134 test "x$ac_build_alias" = x &&
2135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
2138 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145 echo "${ECHO_T}$ac_cv_build" >&6; }
2146 case $ac_cv_build in
2147 *-*-*) ;;
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149 echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2151 esac
2152 build=$ac_cv_build
2153 ac_save_IFS=$IFS; IFS='-'
2154 set x $ac_cv_build
2155 shift
2156 build_cpu=$1
2157 build_vendor=$2
2158 shift; shift
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2161 build_os=$*
2162 IFS=$ac_save_IFS
2163 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2166 { echo "$as_me:$LINENO: checking host system type" >&5
2167 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168 if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 if test "x$host_alias" = x; then
2172 ac_cv_host=$ac_cv_build
2173 else
2174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2181 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182 echo "${ECHO_T}$ac_cv_host" >&6; }
2183 case $ac_cv_host in
2184 *-*-*) ;;
2185 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186 echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2188 esac
2189 host=$ac_cv_host
2190 ac_save_IFS=$IFS; IFS='-'
2191 set x $ac_cv_host
2192 shift
2193 host_cpu=$1
2194 host_vendor=$2
2195 shift; shift
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2198 host_os=$*
2199 IFS=$ac_save_IFS
2200 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203 { echo "$as_me:$LINENO: checking target system type" >&5
2204 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2205 if test "${ac_cv_target+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 if test "x$target_alias" = x; then
2209 ac_cv_target=$ac_cv_host
2210 else
2211 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2214 { (exit 1); exit 1; }; }
2218 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219 echo "${ECHO_T}$ac_cv_target" >&6; }
2220 case $ac_cv_target in
2221 *-*-*) ;;
2222 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223 echo "$as_me: error: invalid value of canonical target" >&2;}
2224 { (exit 1); exit 1; }; };;
2225 esac
2226 target=$ac_cv_target
2227 ac_save_IFS=$IFS; IFS='-'
2228 set x $ac_cv_target
2229 shift
2230 target_cpu=$1
2231 target_vendor=$2
2232 shift; shift
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2235 target_os=$*
2236 IFS=$ac_save_IFS
2237 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2240 # The aliases save the names the user supplied, while $host etc.
2241 # will get canonicalized.
2242 test -n "$target_alias" &&
2243 test "$program_prefix$program_suffix$program_transform_name" = \
2244 NONENONEs,x,x, &&
2245 program_prefix=${target_alias}-
2247 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2249 if test "${llvm_cv_os_type+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 case $host in
2253 *-*-aix*)
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="AIX"
2257 llvm_cv_platform_type="Unix" ;;
2258 *-*-irix*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="IRIX"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-cygwin*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="Cygwin"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-darwin*)
2269 llvm_cv_link_all_option="-Wl,-all_load"
2270 llvm_cv_no_link_all_option="-Wl,-noall_load"
2271 llvm_cv_os_type="Darwin"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-freebsd*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="FreeBSD"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-openbsd*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="OpenBSD"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-netbsd*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="NetBSD"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-dragonfly*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="DragonFly"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-hpux*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="HP-UX"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-interix*)
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="Interix"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-linux*)
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="Linux"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-solaris*)
2309 llvm_cv_link_all_option="-Wl,-z,allextract"
2310 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2311 llvm_cv_os_type="SunOS"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-win32*)
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="Win32"
2317 llvm_cv_platform_type="Win32" ;;
2318 *-*-mingw*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="MingW"
2322 llvm_cv_platform_type="Win32" ;;
2324 llvm_cv_link_all_option=""
2325 llvm_cv_no_link_all_option=""
2326 llvm_cv_os_type="Unknown"
2327 llvm_cv_platform_type="Unknown" ;;
2328 esac
2330 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2331 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2333 if test "$llvm_cv_os_type" = "Unknown" ; then
2334 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2335 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2336 { (exit 1); exit 1; }; }
2339 OS=$llvm_cv_os_type
2342 LINKALL=$llvm_cv_link_all_option
2344 NOLINKALL=$llvm_cv_no_link_all_option
2347 case $llvm_cv_platform_type in
2348 Unix)
2350 cat >>confdefs.h <<\_ACEOF
2351 #define LLVM_ON_UNIX 1
2352 _ACEOF
2354 LLVM_ON_UNIX=1
2356 LLVM_ON_WIN32=0
2359 Win32)
2361 cat >>confdefs.h <<\_ACEOF
2362 #define LLVM_ON_WIN32 1
2363 _ACEOF
2365 LLVM_ON_UNIX=0
2367 LLVM_ON_WIN32=1
2370 esac
2372 { echo "$as_me:$LINENO: checking target architecture" >&5
2373 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2374 if test "${llvm_cv_target_arch+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 case $target in
2378 i?86-*) llvm_cv_target_arch="x86" ;;
2379 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2380 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2381 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2382 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2383 ia64-*) llvm_cv_target_arch="IA64" ;;
2384 arm*-*) llvm_cv_target_arch="ARM" ;;
2385 mips-*) llvm_cv_target_arch="Mips" ;;
2386 pic16-*) llvm_cv_target_arch="PIC16" ;;
2387 xcore-*) llvm_cv_target_arch="XCore" ;;
2388 msp430-*) llvm_cv_target_arch="MSP430" ;;
2389 *) llvm_cv_target_arch="Unknown" ;;
2390 esac
2392 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2395 if test "$llvm_cv_target_arch" = "Unknown" ; then
2396 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2400 ARCH=$llvm_cv_target_arch
2403 ac_ext=c
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2430 done
2431 done
2432 IFS=$as_save_IFS
2436 CC=$ac_cv_prog_CC
2437 if test -n "$CC"; then
2438 { echo "$as_me:$LINENO: result: $CC" >&5
2439 echo "${ECHO_T}$CC" >&6; }
2440 else
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2447 if test -z "$ac_cv_prog_CC"; then
2448 ac_ct_CC=$CC
2449 # Extract the first word of "gcc", so it can be a program name with args.
2450 set dummy gcc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456 if test -n "$ac_ct_CC"; then
2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_CC="gcc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2470 done
2471 done
2472 IFS=$as_save_IFS
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6; }
2480 else
2481 { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&5
2493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 CC=$ac_ct_CC
2500 else
2501 CC="$ac_cv_prog_CC"
2504 if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}cc; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2527 done
2528 done
2529 IFS=$as_save_IFS
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535 { echo "$as_me:$LINENO: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6; }
2537 else
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2545 if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547 set dummy cc; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 else
2556 ac_prog_rejected=no
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2568 ac_cv_prog_CC="cc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2572 done
2573 done
2574 IFS=$as_save_IFS
2576 if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592 { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2594 else
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 for ac_prog in cl.exe
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2626 done
2627 done
2628 IFS=$as_save_IFS
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634 { echo "$as_me:$LINENO: result: $CC" >&5
2635 echo "${ECHO_T}$CC" >&6; }
2636 else
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2642 test -n "$CC" && break
2643 done
2645 if test -z "$CC"; then
2646 ac_ct_CC=$CC
2647 for ac_prog in cl.exe
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_CC="$ac_prog"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2670 done
2671 done
2672 IFS=$as_save_IFS
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6; }
2680 else
2681 { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2686 test -n "$ac_ct_CC" && break
2687 done
2689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693 yes:)
2694 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695 whose name does not start with the host triplet. If you think this
2696 configuration is useful to you, please write to autoconf@gnu.org." >&5
2697 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698 whose name does not start with the host triplet. If you think this
2699 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700 ac_tool_warned=yes ;;
2701 esac
2702 CC=$ac_ct_CC
2709 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2715 # Provide some information about the compiler.
2716 echo "$as_me:$LINENO: checking for C compiler version" >&5
2717 ac_compiler=`set X $ac_compile; echo $2`
2718 { (ac_try="$ac_compiler --version >&5"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler --version >&5") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (ac_try="$ac_compiler -v >&5"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -v >&5") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2738 { (ac_try="$ac_compiler -V >&5"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler -V >&5") 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2757 main ()
2761 return 0;
2763 _ACEOF
2764 ac_clean_files_save=$ac_clean_files
2765 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2766 # Try to create an executable without -o first, disregard a.out.
2767 # It will help us diagnose broken compilers, and finding out an intuition
2768 # of exeext.
2769 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2771 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2773 # List of possible output files, starting from the most likely.
2774 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775 # only as a last resort. b.out is created by i960 compilers.
2776 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2778 # The IRIX 6 linker writes into existing files which may not be
2779 # executable, retaining their permissions. Remove them first so a
2780 # subsequent execution test works.
2781 ac_rmfiles=
2782 for ac_file in $ac_files
2784 case $ac_file in
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2787 esac
2788 done
2789 rm -f $ac_rmfiles
2791 if { (ac_try="$ac_link_default"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_link_default") 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
2801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2804 # so that the user can short-circuit this test for compilers unknown to
2805 # Autoconf.
2806 for ac_file in $ac_files
2808 test -f "$ac_file" || continue
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2812 [ab].out )
2813 # We found the default executable, but exeext='' is most
2814 # certainly right.
2815 break;;
2816 *.* )
2817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818 then :; else
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2825 # actually working.
2826 break;;
2828 break;;
2829 esac
2830 done
2831 test "$ac_cv_exeext" = no && ac_cv_exeext=
2833 else
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: C compiler cannot create executables
2840 See \`config.log' for more details." >&2;}
2841 { (exit 77); exit 77; }; }
2844 ac_exeext=$ac_cv_exeext
2845 { echo "$as_me:$LINENO: result: $ac_file" >&5
2846 echo "${ECHO_T}$ac_file" >&6; }
2848 # Check that the compiler produces executables we can run. If not, either
2849 # the compiler is broken, or we cross compile.
2850 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2852 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853 # If not cross compiling, check that we can run a simple program.
2854 if test "$cross_compiling" != yes; then
2855 if { ac_try='./$ac_file'
2856 { (case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859 esac
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_try") 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 cross_compiling=no
2866 else
2867 if test "$cross_compiling" = maybe; then
2868 cross_compiling=yes
2869 else
2870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot run C compiled programs.
2874 If you meant to cross compile, use \`--host'.
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2880 { echo "$as_me:$LINENO: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6; }
2883 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2884 ac_clean_files=$ac_clean_files_save
2885 # Check that the compiler produces executables we can run. If not, either
2886 # the compiler is broken, or we cross compile.
2887 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890 echo "${ECHO_T}$cross_compiling" >&6; }
2892 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894 if { (ac_try="$ac_link"
2895 case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906 # work properly (i.e., refer to `conftest.exe'), while it won't with
2907 # `rm'.
2908 for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
2910 case $ac_file in
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 break;;
2914 * ) break;;
2915 esac
2916 done
2917 else
2918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919 See \`config.log' for more details." >&5
2920 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&2;}
2922 { (exit 1); exit 1; }; }
2925 rm -f conftest$ac_cv_exeext
2926 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2929 rm -f conftest.$ac_ext
2930 EXEEXT=$ac_cv_exeext
2931 ac_exeext=$EXEEXT
2932 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2934 if test "${ac_cv_objext+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h. */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2945 main ()
2949 return 0;
2951 _ACEOF
2952 rm -f conftest.o conftest.obj
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
2963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
2965 case $ac_file in
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968 break;;
2969 esac
2970 done
2971 else
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976 See \`config.log' for more details." >&5
2977 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978 See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2984 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985 echo "${ECHO_T}$ac_cv_objext" >&6; }
2986 OBJEXT=$ac_cv_objext
2987 ac_objext=$OBJEXT
2988 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2990 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3001 main ()
3003 #ifndef __GNUC__
3004 choke me
3005 #endif
3008 return 0;
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3013 case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_compiler_gnu=yes
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 ac_compiler_gnu=no
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3059 GCC=`test $ac_compiler_gnu = yes && echo yes`
3060 ac_test_CFLAGS=${CFLAGS+set}
3061 ac_save_CFLAGS=$CFLAGS
3062 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cc_g+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3069 ac_cv_prog_cc_g=no
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3079 main ()
3083 return 0;
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 ac_cv_prog_cc_g=yes
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 CFLAGS=""
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3134 main ()
3138 return 0;
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 CFLAGS="-g"
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3190 main ()
3194 return 0;
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 ac_cv_prog_cc_g=yes
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3254 CFLAGS="-g -O2"
3255 else
3256 CFLAGS="-g"
3258 else
3259 if test "$GCC" = yes; then
3260 CFLAGS="-O2"
3261 else
3262 CFLAGS=
3265 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 ac_cv_prog_cc_c89=no
3271 ac_save_CC=$CC
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include <stdarg.h>
3279 #include <stdio.h>
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3286 char **p;
3287 int i;
3289 return p[i];
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312 #define FOO(x) 'x'
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 int argc;
3320 char **argv;
3322 main ()
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3326 return 0;
3328 _ACEOF
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 ac_cv_prog_cc_c89=$ac_arg
3368 else
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3375 rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3377 done
3378 rm -f conftest.$ac_ext
3379 CC=$ac_save_CC
3382 # AC_CACHE_VAL
3383 case "x$ac_cv_prog_cc_c89" in
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386 echo "${ECHO_T}none needed" >&6; } ;;
3387 xno)
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389 echo "${ECHO_T}unsupported" >&6; } ;;
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3394 esac
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3411 # On Suns, sometimes $CPP names a directory.
3412 if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3415 if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #ifdef __STDC__
3438 # include <limits.h>
3439 #else
3440 # include <assert.h>
3441 #endif
3442 Syntax error
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3463 else
3464 ac_cpp_err=yes
3466 if test -z "$ac_cpp_err"; then
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 # Broken: fails on valid input.
3473 continue
3476 rm -f conftest.err conftest.$ac_ext
3478 # OK, works on sane cases. Now check whether nonexistent headers
3479 # can be detected and how.
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #include <ac_nonexistent.h>
3487 _ACEOF
3488 if { (ac_try="$ac_cpp conftest.$ac_ext"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 else
3505 ac_cpp_err=
3507 else
3508 ac_cpp_err=yes
3510 if test -z "$ac_cpp_err"; then
3511 # Broken: success on invalid input.
3512 continue
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Passes both tests.
3518 ac_preproc_ok=:
3519 break
3522 rm -f conftest.err conftest.$ac_ext
3524 done
3525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526 rm -f conftest.err conftest.$ac_ext
3527 if $ac_preproc_ok; then
3528 break
3531 done
3532 ac_cv_prog_CPP=$CPP
3535 CPP=$ac_cv_prog_CPP
3536 else
3537 ac_cv_prog_CPP=$CPP
3539 { echo "$as_me:$LINENO: result: $CPP" >&5
3540 echo "${ECHO_T}$CPP" >&6; }
3541 ac_preproc_ok=false
3542 for ac_c_preproc_warn_flag in '' yes
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #ifdef __STDC__
3557 # include <limits.h>
3558 #else
3559 # include <assert.h>
3560 #endif
3561 Syntax error
3562 _ACEOF
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 else
3580 ac_cpp_err=
3582 else
3583 ac_cpp_err=yes
3585 if test -z "$ac_cpp_err"; then
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 # Broken: fails on valid input.
3592 continue
3595 rm -f conftest.err conftest.$ac_ext
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <ac_nonexistent.h>
3606 _ACEOF
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } >/dev/null; then
3620 if test -s conftest.err; then
3621 ac_cpp_err=$ac_c_preproc_warn_flag
3622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623 else
3624 ac_cpp_err=
3626 else
3627 ac_cpp_err=yes
3629 if test -z "$ac_cpp_err"; then
3630 # Broken: success on invalid input.
3631 continue
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 # Passes both tests.
3637 ac_preproc_ok=:
3638 break
3641 rm -f conftest.err conftest.$ac_ext
3643 done
3644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645 rm -f conftest.err conftest.$ac_ext
3646 if $ac_preproc_ok; then
3648 else
3649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650 See \`config.log' for more details." >&5
3651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652 See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 # Extract the first word of "grep ggrep" to use in msg output
3669 if test -z "$GREP"; then
3670 set dummy grep ggrep; ac_prog_name=$2
3671 if test "${ac_cv_path_GREP+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 ac_path_GREP_found=false
3675 # Loop through the user's path and test for each of PROGNAME-LIST
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_prog in grep ggrep; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3684 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3685 # Check for GNU ac_path_GREP and select it if it is found.
3686 # Check for GNU $ac_path_GREP
3687 case `"$ac_path_GREP" --version 2>&1` in
3688 *GNU*)
3689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3691 ac_count=0
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693 while :
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'GREP' >> "conftest.nl"
3699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 ac_count=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_GREP="$ac_path_GREP"
3705 ac_path_GREP_max=$ac_count
3707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3709 done
3710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 esac
3714 $ac_path_GREP_found && break 3
3715 done
3716 done
3718 done
3719 IFS=$as_save_IFS
3724 GREP="$ac_cv_path_GREP"
3725 if test -z "$GREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3731 else
3732 ac_cv_path_GREP=$GREP
3737 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739 GREP="$ac_cv_path_GREP"
3742 { echo "$as_me:$LINENO: checking for egrep" >&5
3743 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744 if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748 then ac_cv_path_EGREP="$GREP -E"
3749 else
3750 # Extract the first word of "egrep" to use in msg output
3751 if test -z "$EGREP"; then
3752 set dummy egrep; ac_prog_name=$2
3753 if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 ac_path_EGREP_found=false
3757 # Loop through the user's path and test for each of PROGNAME-LIST
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_prog in egrep; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3766 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3767 # Check for GNU ac_path_EGREP and select it if it is found.
3768 # Check for GNU $ac_path_EGREP
3769 case `"$ac_path_EGREP" --version 2>&1` in
3770 *GNU*)
3771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3773 ac_count=0
3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775 while :
3777 cat "conftest.in" "conftest.in" >"conftest.tmp"
3778 mv "conftest.tmp" "conftest.in"
3779 cp "conftest.in" "conftest.nl"
3780 echo 'EGREP' >> "conftest.nl"
3781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783 ac_count=`expr $ac_count + 1`
3784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785 # Best one so far, save it but keep looking for a better one
3786 ac_cv_path_EGREP="$ac_path_EGREP"
3787 ac_path_EGREP_max=$ac_count
3789 # 10*(2^10) chars as input seems more than enough
3790 test $ac_count -gt 10 && break
3791 done
3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793 esac
3796 $ac_path_EGREP_found && break 3
3797 done
3798 done
3800 done
3801 IFS=$as_save_IFS
3806 EGREP="$ac_cv_path_EGREP"
3807 if test -z "$EGREP"; then
3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810 { (exit 1); exit 1; }; }
3813 else
3814 ac_cv_path_EGREP=$EGREP
3820 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822 EGREP="$ac_cv_path_EGREP"
3825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3827 if test "${ac_cv_header_stdc+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #include <stdlib.h>
3837 #include <stdarg.h>
3838 #include <string.h>
3839 #include <float.h>
3842 main ()
3846 return 0;
3848 _ACEOF
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } &&
3863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3864 { (case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_try") 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_try") 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_header_stdc=yes
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 ac_cv_header_stdc=no
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 if test $ac_cv_header_stdc = yes; then
3894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895 cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h. */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 #include <string.h>
3903 _ACEOF
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "memchr" >/dev/null 2>&1; then
3907 else
3908 ac_cv_header_stdc=no
3910 rm -f conftest*
3914 if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h. */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <stdlib.h>
3924 _ACEOF
3925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926 $EGREP "free" >/dev/null 2>&1; then
3928 else
3929 ac_cv_header_stdc=no
3931 rm -f conftest*
3935 if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #include <ctype.h>
3947 #include <stdlib.h>
3948 #if ((' ' & 0x0FF) == 0x020)
3949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951 #else
3952 # define ISLOWER(c) \
3953 (('a' <= (c) && (c) <= 'i') \
3954 || ('j' <= (c) && (c) <= 'r') \
3955 || ('s' <= (c) && (c) <= 'z'))
3956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957 #endif
3959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3961 main ()
3963 int i;
3964 for (i = 0; i < 256; i++)
3965 if (XOR (islower (i), ISLOWER (i))
3966 || toupper (i) != TOUPPER (i))
3967 return 2;
3968 return 0;
3970 _ACEOF
3971 rm -f conftest$ac_exeext
3972 if { (ac_try="$ac_link"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_link") 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3992 else
3993 echo "$as_me: program exited with status $ac_status" >&5
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ( exit $ac_status )
3998 ac_cv_header_stdc=no
4000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4008 if test $ac_cv_header_stdc = yes; then
4010 cat >>confdefs.h <<\_ACEOF
4011 #define STDC_HEADERS 1
4012 _ACEOF
4016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h. */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 $ac_includes_default
4043 #include <$ac_header>
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4060 { (case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_try") 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 eval "$as_ac_Header=yes"
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 eval "$as_ac_Header=no"
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091 echo "${ECHO_T}$ac_res" >&6; }
4092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095 _ACEOF
4099 done
4102 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104 if test "${ac_cv_c_bigendian+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 # See if sys/param.h defines the BYTE_ORDER macro.
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <sys/types.h>
4115 #include <sys/param.h>
4118 main ()
4120 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4121 bogus endian macros
4122 #endif
4125 return 0;
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4130 case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156 esac
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 # It does; now see whether it defined to BIG_ENDIAN or not.
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <sys/types.h>
4170 #include <sys/param.h>
4173 main ()
4175 #if BYTE_ORDER != BIG_ENDIAN
4176 not big endian
4177 #endif
4180 return 0;
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4185 case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_cv_c_bigendian=yes
4218 else
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ac_cv_c_bigendian=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 else
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 # It does not; compile a test program.
4231 if test "$cross_compiling" = yes; then
4232 # try to guess the endianness by grepping values into an object file
4233 ac_cv_c_bigendian=unknown
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4247 main ()
4249 _ascii (); _ebcdic ();
4251 return 0;
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4256 case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289 ac_cv_c_bigendian=yes
4291 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292 if test "$ac_cv_c_bigendian" = unknown; then
4293 ac_cv_c_bigendian=no
4294 else
4295 # finding both strings is unlikely to happen, but who knows?
4296 ac_cv_c_bigendian=unknown
4299 else
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 else
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h. */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4316 main ()
4319 /* Are we little or big endian? From Harbison&Steele. */
4320 union
4322 long int l;
4323 char c[sizeof (long int)];
4324 } u;
4325 u.l = 1;
4326 return u.c[sizeof (long int) - 1] == 1;
4329 return 0;
4331 _ACEOF
4332 rm -f conftest$ac_exeext
4333 if { (ac_try="$ac_link"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_link") 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_c_bigendian=no
4353 else
4354 echo "$as_me: program exited with status $ac_status" >&5
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 ( exit $ac_status )
4359 ac_cv_c_bigendian=yes
4361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371 case $ac_cv_c_bigendian in
4372 yes)
4373 ENDIAN=big
4376 ENDIAN=little
4379 { { echo "$as_me:$LINENO: error: unknown endianness
4380 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381 echo "$as_me: error: unknown endianness
4382 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383 { (exit 1); exit 1; }; } ;;
4384 esac
4387 if test "$cross_compiling" = yes; then
4388 LLVM_CROSS_COMPILING=1
4391 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393 if test "${ac_cv_build_exeext+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397 ac_cv_build_exeext=.exe
4398 else
4399 ac_build_prefix=${build_alias}-
4401 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402 set dummy ${ac_build_prefix}gcc; ac_word=$2
4403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 if test -n "$BUILD_CC"; then
4409 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4422 done
4423 done
4424 IFS=$as_save_IFS
4428 BUILD_CC=$ac_cv_prog_BUILD_CC
4429 if test -n "$BUILD_CC"; then
4430 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431 echo "${ECHO_T}$BUILD_CC" >&6; }
4432 else
4433 { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4438 if test -z "$BUILD_CC"; then
4439 # Extract the first word of "gcc", so it can be a program name with args.
4440 set dummy gcc; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 if test -n "$BUILD_CC"; then
4447 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_BUILD_CC="gcc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4462 IFS=$as_save_IFS
4466 BUILD_CC=$ac_cv_prog_BUILD_CC
4467 if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469 echo "${ECHO_T}$BUILD_CC" >&6; }
4470 else
4471 { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4476 if test -z "$BUILD_CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478 set dummy cc; ac_word=$2
4479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 if test -n "$BUILD_CC"; then
4485 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4486 else
4487 ac_prog_rejected=no
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4497 continue
4499 ac_cv_prog_BUILD_CC="cc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4503 done
4504 done
4505 IFS=$as_save_IFS
4507 if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_BUILD_CC
4510 shift
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set BUILD_CC to just the basename; use the full file name.
4515 shift
4516 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4521 BUILD_CC=$ac_cv_prog_BUILD_CC
4522 if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524 echo "${ECHO_T}$BUILD_CC" >&6; }
4525 else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4533 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535 { (exit 1); exit 1; }; }
4536 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4537 rm -f conftest*
4538 echo 'int main () { return 0; }' > conftest.$ac_ext
4539 ac_cv_build_exeext=
4540 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541 (eval $ac_build_link) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 for file in conftest.*; do
4546 case $file in
4547 *.c | *.o | *.obj | *.dSYM) ;;
4548 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4549 esac
4550 done
4551 else
4552 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554 { (exit 1); exit 1; }; }
4556 rm -f conftest*
4557 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4561 BUILD_EXEEXT=""
4562 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565 ac_build_exeext=$BUILD_EXEEXT
4567 ac_build_prefix=${build_alias}-
4568 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4569 set dummy ${ac_build_prefix}g++; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 if test -n "$BUILD_CXX"; then
4576 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4595 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4596 if test -n "$BUILD_CXX"; then
4597 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4598 echo "${ECHO_T}$BUILD_CXX" >&6; }
4599 else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4605 if test -z "$BUILD_CXX"; then
4606 # Extract the first word of "g++", so it can be a program name with args.
4607 set dummy g++; ac_word=$2
4608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 if test -n "$BUILD_CXX"; then
4614 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_prog_BUILD_CXX="g++"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4627 done
4628 done
4629 IFS=$as_save_IFS
4633 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4634 if test -n "$BUILD_CXX"; then
4635 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4636 echo "${ECHO_T}$BUILD_CXX" >&6; }
4637 else
4638 { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4643 if test -z "$BUILD_CXX"; then
4644 # Extract the first word of "c++", so it can be a program name with args.
4645 set dummy c++; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 if test -n "$BUILD_CXX"; then
4652 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4653 else
4654 ac_prog_rejected=no
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4663 ac_prog_rejected=yes
4664 continue
4666 ac_cv_prog_BUILD_CXX="c++"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4672 IFS=$as_save_IFS
4674 if test $ac_prog_rejected = yes; then
4675 # We found a bogon in the path, so make sure we never use it.
4676 set dummy $ac_cv_prog_BUILD_CXX
4677 shift
4678 if test $# != 0; then
4679 # We chose a different compiler from the bogus one.
4680 # However, it has the same basename, so the bogon will be chosen
4681 # first if we set BUILD_CXX to just the basename; use the full file name.
4682 shift
4683 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4688 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689 if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691 echo "${ECHO_T}$BUILD_CXX" >&6; }
4692 else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4700 else
4701 LLVM_CROSS_COMPILING=0
4705 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4706 cvsbuild="yes"
4707 optimize="no"
4708 CVSBUILD=CVSBUILD=1
4710 else
4711 cvsbuild="no"
4712 optimize="yes"
4716 # Check whether --enable-optimized was given.
4717 if test "${enable_optimized+set}" = set; then
4718 enableval=$enable_optimized;
4719 else
4720 enableval=$optimize
4723 if test ${enableval} = "no" ; then
4724 ENABLE_OPTIMIZED=
4726 else
4727 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4731 # Check whether --enable-profiling was given.
4732 if test "${enable_profiling+set}" = set; then
4733 enableval=$enable_profiling;
4734 else
4735 enableval="no"
4738 if test ${enableval} = "no" ; then
4739 ENABLE_PROFILING=
4741 else
4742 ENABLE_PROFILING=ENABLE_PROFILING=1
4746 # Check whether --enable-assertions was given.
4747 if test "${enable_assertions+set}" = set; then
4748 enableval=$enable_assertions;
4749 else
4750 enableval="yes"
4753 if test ${enableval} = "yes" ; then
4754 DISABLE_ASSERTIONS=
4756 else
4757 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4761 # Check whether --enable-expensive-checks was given.
4762 if test "${enable_expensive_checks+set}" = set; then
4763 enableval=$enable_expensive_checks;
4764 else
4765 enableval="no"
4768 if test ${enableval} = "yes" ; then
4769 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4771 EXPENSIVE_CHECKS=yes
4773 else
4774 ENABLE_EXPENSIVE_CHECKS=
4776 EXPENSIVE_CHECKS=no
4780 # Check whether --enable-debug-runtime was given.
4781 if test "${enable_debug_runtime+set}" = set; then
4782 enableval=$enable_debug_runtime;
4783 else
4784 enableval=no
4787 if test ${enableval} = "no" ; then
4788 DEBUG_RUNTIME=
4790 else
4791 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4795 # Check whether --enable-jit was given.
4796 if test "${enable_jit+set}" = set; then
4797 enableval=$enable_jit;
4798 else
4799 enableval=default
4802 if test ${enableval} = "no"
4803 then
4804 JIT=
4806 else
4807 case "$llvm_cv_target_arch" in
4808 x86) TARGET_HAS_JIT=1
4810 Sparc) TARGET_HAS_JIT=0
4812 PowerPC) TARGET_HAS_JIT=1
4814 x86_64) TARGET_HAS_JIT=1
4816 Alpha) TARGET_HAS_JIT=1
4818 IA64) TARGET_HAS_JIT=0
4820 ARM) TARGET_HAS_JIT=0
4822 Mips) TARGET_HAS_JIT=0
4824 PIC16) TARGET_HAS_JIT=0
4826 XCore) TARGET_HAS_JIT=0
4828 MSP430) TARGET_HAS_JIT=0
4830 *) TARGET_HAS_JIT=0
4832 esac
4835 # Check whether --enable-doxygen was given.
4836 if test "${enable_doxygen+set}" = set; then
4837 enableval=$enable_doxygen;
4838 else
4839 enableval=default
4842 case "$enableval" in
4843 yes) ENABLE_DOXYGEN=1
4845 no) ENABLE_DOXYGEN=0
4847 default) ENABLE_DOXYGEN=0
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4852 esac
4854 # Check whether --enable-threads was given.
4855 if test "${enable_threads+set}" = set; then
4856 enableval=$enable_threads;
4857 else
4858 enableval=default
4861 case "$enableval" in
4862 yes) ENABLE_THREADS=1
4864 no) ENABLE_THREADS=0
4866 default) ENABLE_THREADS=1
4868 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4869 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4870 { (exit 1); exit 1; }; } ;;
4871 esac
4873 cat >>confdefs.h <<_ACEOF
4874 #define ENABLE_THREADS $ENABLE_THREADS
4875 _ACEOF
4878 # Check whether --enable-pic was given.
4879 if test "${enable_pic+set}" = set; then
4880 enableval=$enable_pic;
4881 else
4882 enableval=default
4885 case "$enableval" in
4886 yes) ENABLE_PIC=1
4888 no) ENABLE_PIC=0
4890 default) ENABLE_PIC=1
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4895 esac
4897 cat >>confdefs.h <<_ACEOF
4898 #define ENABLE_PIC $ENABLE_PIC
4899 _ACEOF
4902 TARGETS_TO_BUILD=""
4903 # Check whether --enable-targets was given.
4904 if test "${enable_targets+set}" = set; then
4905 enableval=$enable_targets;
4906 else
4907 enableval=all
4910 case "$enableval" in
4911 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4912 host-only)
4913 case "$llvm_cv_target_arch" in
4914 x86) TARGETS_TO_BUILD="X86" ;;
4915 x86_64) TARGETS_TO_BUILD="X86" ;;
4916 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4917 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4918 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4919 IA64) TARGETS_TO_BUILD="IA64" ;;
4920 ARM) TARGETS_TO_BUILD="ARM" ;;
4921 Mips) TARGETS_TO_BUILD="Mips" ;;
4922 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4923 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4924 XCore) TARGETS_TO_BUILD="XCore" ;;
4925 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4926 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4927 echo "$as_me: error: Can not set target to build" >&2;}
4928 { (exit 1); exit 1; }; } ;;
4929 esac
4931 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4932 case "$a_target" in
4933 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4934 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4935 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4936 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4937 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4938 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4939 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4940 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4941 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4942 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4943 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4944 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4945 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4946 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4947 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4948 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4949 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4950 { (exit 1); exit 1; }; } ;;
4951 esac
4952 done
4954 esac
4955 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4958 # Check whether --enable-cbe-printf-a was given.
4959 if test "${enable_cbe_printf_a+set}" = set; then
4960 enableval=$enable_cbe_printf_a;
4961 else
4962 enableval=default
4965 case "$enableval" in
4966 yes) ENABLE_CBE_PRINTF_A=1
4968 no) ENABLE_CBE_PRINTF_A=0
4970 default) ENABLE_CBE_PRINTF_A=1
4972 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4973 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4974 { (exit 1); exit 1; }; } ;;
4975 esac
4977 cat >>confdefs.h <<_ACEOF
4978 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4979 _ACEOF
4983 # Check whether --with-llvmgccdir was given.
4984 if test "${with_llvmgccdir+set}" = set; then
4985 withval=$with_llvmgccdir;
4986 else
4987 withval=default
4990 case "$withval" in
4991 default) WITH_LLVMGCCDIR=default ;;
4992 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4993 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4994 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4995 { (exit 1); exit 1; }; } ;;
4996 esac
4999 # Check whether --with-llvmgcc was given.
5000 if test "${with_llvmgcc+set}" = set; then
5001 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5002 WITH_LLVMGCCDIR=""
5007 # Check whether --with-llvmgxx was given.
5008 if test "${with_llvmgxx+set}" = set; then
5009 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5010 WITH_LLVMGCCDIR=""
5013 if test -n "$LLVMGCC"; then
5014 LLVMGCCCOMMAND="$LLVMGCC"
5017 if test -n "$LLVMGXX"; then
5018 LLVMGXXCOMMAND="$LLVMGXX"
5021 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5022 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5023 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5024 { (exit 1); exit 1; }; };
5027 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5028 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5029 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5030 { (exit 1); exit 1; }; };
5034 # Check whether --with-extra-options was given.
5035 if test "${with_extra_options+set}" = set; then
5036 withval=$with_extra_options;
5037 else
5038 withval=default
5041 case "$withval" in
5042 default) EXTRA_OPTIONS= ;;
5043 *) EXTRA_OPTIONS=$withval ;;
5044 esac
5045 EXTRA_OPTIONS=$EXTRA_OPTIONS
5048 # Check whether --enable-bindings was given.
5049 if test "${enable_bindings+set}" = set; then
5050 enableval=$enable_bindings;
5051 else
5052 enableval=default
5055 BINDINGS_TO_BUILD=""
5056 case "$enableval" in
5057 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5058 all ) BINDINGS_TO_BUILD="ocaml" ;;
5059 none | no) BINDINGS_TO_BUILD="" ;;
5060 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5061 case "$a_binding" in
5062 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5063 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5064 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5065 { (exit 1); exit 1; }; } ;;
5066 esac
5067 done
5069 esac
5072 # Check whether --with-ocaml-libdir was given.
5073 if test "${with_ocaml_libdir+set}" = set; then
5074 withval=$with_ocaml_libdir;
5075 else
5076 withval=auto
5079 case "$withval" in
5080 auto) with_ocaml_libdir="$withval" ;;
5081 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5082 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5083 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5084 { (exit 1); exit 1; }; } ;;
5085 esac
5088 # Check whether --with-binutils-include was given.
5089 if test "${with_binutils_include+set}" = set; then
5090 withval=$with_binutils_include;
5091 else
5092 withval=default
5095 case "$withval" in
5096 default) WITH_BINUTILS_INCDIR=default ;;
5097 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5098 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5099 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5101 esac
5102 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5103 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5105 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5106 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5107 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5108 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5109 { (exit 1); exit 1; }; };
5114 ac_ext=c
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5121 # On Suns, sometimes $CPP names a directory.
5122 if test -n "$CPP" && test -d "$CPP"; then
5123 CPP=
5125 if test -z "$CPP"; then
5126 if test "${ac_cv_prog_CPP+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 # Double quotes because CPP needs to be expanded
5130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5132 ac_preproc_ok=false
5133 for ac_c_preproc_warn_flag in '' yes
5135 # Use a header file that comes with gcc, so configuring glibc
5136 # with a fresh cross-compiler works.
5137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #ifdef __STDC__
5148 # include <limits.h>
5149 #else
5150 # include <assert.h>
5151 #endif
5152 Syntax error
5153 _ACEOF
5154 if { (ac_try="$ac_cpp conftest.$ac_ext"
5155 case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158 esac
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } >/dev/null; then
5167 if test -s conftest.err; then
5168 ac_cpp_err=$ac_c_preproc_warn_flag
5169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5170 else
5171 ac_cpp_err=
5173 else
5174 ac_cpp_err=yes
5176 if test -z "$ac_cpp_err"; then
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 # Broken: fails on valid input.
5183 continue
5186 rm -f conftest.err conftest.$ac_ext
5188 # OK, works on sane cases. Now check whether nonexistent headers
5189 # can be detected and how.
5190 cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h. */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 #include <ac_nonexistent.h>
5197 _ACEOF
5198 if { (ac_try="$ac_cpp conftest.$ac_ext"
5199 case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } >/dev/null; then
5211 if test -s conftest.err; then
5212 ac_cpp_err=$ac_c_preproc_warn_flag
5213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5214 else
5215 ac_cpp_err=
5217 else
5218 ac_cpp_err=yes
5220 if test -z "$ac_cpp_err"; then
5221 # Broken: success on invalid input.
5222 continue
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 # Passes both tests.
5228 ac_preproc_ok=:
5229 break
5232 rm -f conftest.err conftest.$ac_ext
5234 done
5235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5236 rm -f conftest.err conftest.$ac_ext
5237 if $ac_preproc_ok; then
5238 break
5241 done
5242 ac_cv_prog_CPP=$CPP
5245 CPP=$ac_cv_prog_CPP
5246 else
5247 ac_cv_prog_CPP=$CPP
5249 { echo "$as_me:$LINENO: result: $CPP" >&5
5250 echo "${ECHO_T}$CPP" >&6; }
5251 ac_preproc_ok=false
5252 for ac_c_preproc_warn_flag in '' yes
5254 # Use a header file that comes with gcc, so configuring glibc
5255 # with a fresh cross-compiler works.
5256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5257 # <limits.h> exists even on freestanding compilers.
5258 # On the NeXT, cc -E runs the code through the compiler's parser,
5259 # not just through cpp. "Syntax error" is here to catch this case.
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #ifdef __STDC__
5267 # include <limits.h>
5268 #else
5269 # include <assert.h>
5270 #endif
5271 Syntax error
5272 _ACEOF
5273 if { (ac_try="$ac_cpp conftest.$ac_ext"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5280 ac_status=$?
5281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } >/dev/null; then
5286 if test -s conftest.err; then
5287 ac_cpp_err=$ac_c_preproc_warn_flag
5288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5289 else
5290 ac_cpp_err=
5292 else
5293 ac_cpp_err=yes
5295 if test -z "$ac_cpp_err"; then
5297 else
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5301 # Broken: fails on valid input.
5302 continue
5305 rm -f conftest.err conftest.$ac_ext
5307 # OK, works on sane cases. Now check whether nonexistent headers
5308 # can be detected and how.
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h. */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 #include <ac_nonexistent.h>
5316 _ACEOF
5317 if { (ac_try="$ac_cpp conftest.$ac_ext"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } >/dev/null; then
5330 if test -s conftest.err; then
5331 ac_cpp_err=$ac_c_preproc_warn_flag
5332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5333 else
5334 ac_cpp_err=
5336 else
5337 ac_cpp_err=yes
5339 if test -z "$ac_cpp_err"; then
5340 # Broken: success on invalid input.
5341 continue
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 # Passes both tests.
5347 ac_preproc_ok=:
5348 break
5351 rm -f conftest.err conftest.$ac_ext
5353 done
5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355 rm -f conftest.err conftest.$ac_ext
5356 if $ac_preproc_ok; then
5358 else
5359 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5360 See \`config.log' for more details." >&5
5361 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5362 See \`config.log' for more details." >&2;}
5363 { (exit 1); exit 1; }; }
5366 ac_ext=c
5367 ac_cpp='$CPP $CPPFLAGS'
5368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372 ac_ext=c
5373 ac_cpp='$CPP $CPPFLAGS'
5374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5377 if test -n "$ac_tool_prefix"; then
5378 for ac_prog in gcc
5380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5384 if test "${ac_cv_prog_CC+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 if test -n "$CC"; then
5388 ac_cv_prog_CC="$CC" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5407 CC=$ac_cv_prog_CC
5408 if test -n "$CC"; then
5409 { echo "$as_me:$LINENO: result: $CC" >&5
5410 echo "${ECHO_T}$CC" >&6; }
5411 else
5412 { echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6; }
5417 test -n "$CC" && break
5418 done
5420 if test -z "$CC"; then
5421 ac_ct_CC=$CC
5422 for ac_prog in gcc
5424 # Extract the first word of "$ac_prog", so it can be a program name with args.
5425 set dummy $ac_prog; ac_word=$2
5426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 if test -n "$ac_ct_CC"; then
5432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_ac_ct_CC="$ac_prog"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5452 if test -n "$ac_ct_CC"; then
5453 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5454 echo "${ECHO_T}$ac_ct_CC" >&6; }
5455 else
5456 { echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6; }
5461 test -n "$ac_ct_CC" && break
5462 done
5464 if test "x$ac_ct_CC" = x; then
5465 CC=""
5466 else
5467 case $cross_compiling:$ac_tool_warned in
5468 yes:)
5469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5470 whose name does not start with the host triplet. If you think this
5471 configuration is useful to you, please write to autoconf@gnu.org." >&5
5472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5473 whose name does not start with the host triplet. If you think this
5474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5475 ac_tool_warned=yes ;;
5476 esac
5477 CC=$ac_ct_CC
5482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: no acceptable C compiler found in \$PATH
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5488 # Provide some information about the compiler.
5489 echo "$as_me:$LINENO: checking for C compiler version" >&5
5490 ac_compiler=`set X $ac_compile; echo $2`
5491 { (ac_try="$ac_compiler --version >&5"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compiler --version >&5") 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }
5501 { (ac_try="$ac_compiler -v >&5"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compiler -v >&5") 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }
5511 { (ac_try="$ac_compiler -V >&5"
5512 case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compiler -V >&5") 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }
5522 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5523 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5524 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5535 main ()
5537 #ifndef __GNUC__
5538 choke me
5539 #endif
5542 return 0;
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5547 case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5560 { (case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563 esac
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_try") 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; } &&
5569 { ac_try='test -s conftest.$ac_objext'
5570 { (case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_try") 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_compiler_gnu=yes
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 ac_compiler_gnu=no
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5591 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5593 GCC=`test $ac_compiler_gnu = yes && echo yes`
5594 ac_test_CFLAGS=${CFLAGS+set}
5595 ac_save_CFLAGS=$CFLAGS
5596 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5597 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5598 if test "${ac_cv_prog_cc_g+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601 ac_save_c_werror_flag=$ac_c_werror_flag
5602 ac_c_werror_flag=yes
5603 ac_cv_prog_cc_g=no
5604 CFLAGS="-g"
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5613 main ()
5617 return 0;
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (ac_try="$ac_compile"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5635 { (case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638 esac
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_try") 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest.$ac_objext'
5645 { (case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_try") 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_prog_cc_g=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 CFLAGS=""
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5668 main ()
5672 return 0;
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (ac_try="$ac_compile"
5677 case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5690 { (case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_try") 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_try") 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5714 ac_c_werror_flag=$ac_save_c_werror_flag
5715 CFLAGS="-g"
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5724 main ()
5728 return 0;
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (ac_try="$ac_compile"
5733 case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5746 { (case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_try") 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; } &&
5755 { ac_try='test -s conftest.$ac_objext'
5756 { (case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759 esac
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_try") 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 ac_cv_prog_cc_g=yes
5766 else
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_c_werror_flag=$ac_save_c_werror_flag
5782 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5783 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5784 if test "$ac_test_CFLAGS" = set; then
5785 CFLAGS=$ac_save_CFLAGS
5786 elif test $ac_cv_prog_cc_g = yes; then
5787 if test "$GCC" = yes; then
5788 CFLAGS="-g -O2"
5789 else
5790 CFLAGS="-g"
5792 else
5793 if test "$GCC" = yes; then
5794 CFLAGS="-O2"
5795 else
5796 CFLAGS=
5799 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5800 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_cc_c89+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 ac_cv_prog_cc_c89=no
5805 ac_save_CC=$CC
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 #include <stdarg.h>
5813 #include <stdio.h>
5814 #include <sys/types.h>
5815 #include <sys/stat.h>
5816 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5817 struct buf { int x; };
5818 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5819 static char *e (p, i)
5820 char **p;
5821 int i;
5823 return p[i];
5825 static char *f (char * (*g) (char **, int), char **p, ...)
5827 char *s;
5828 va_list v;
5829 va_start (v,p);
5830 s = g (p, va_arg (v,int));
5831 va_end (v);
5832 return s;
5835 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5836 function prototypes and stuff, but not '\xHH' hex character constants.
5837 These don't provoke an error unfortunately, instead are silently treated
5838 as 'x'. The following induces an error, until -std is added to get
5839 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5840 array size at least. It's necessary to write '\x00'==0 to get something
5841 that's true only with -std. */
5842 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5844 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5845 inside strings and character constants. */
5846 #define FOO(x) 'x'
5847 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5849 int test (int i, double x);
5850 struct s1 {int (*f) (int a);};
5851 struct s2 {int (*f) (double a);};
5852 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5853 int argc;
5854 char **argv;
5856 main ()
5858 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5860 return 0;
5862 _ACEOF
5863 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5864 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5866 CC="$ac_save_CC $ac_arg"
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compile") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5882 { (case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_try") 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_prog_cc_c89=$ac_arg
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5909 rm -f core conftest.err conftest.$ac_objext
5910 test "x$ac_cv_prog_cc_c89" != "xno" && break
5911 done
5912 rm -f conftest.$ac_ext
5913 CC=$ac_save_CC
5916 # AC_CACHE_VAL
5917 case "x$ac_cv_prog_cc_c89" in
5919 { echo "$as_me:$LINENO: result: none needed" >&5
5920 echo "${ECHO_T}none needed" >&6; } ;;
5921 xno)
5922 { echo "$as_me:$LINENO: result: unsupported" >&5
5923 echo "${ECHO_T}unsupported" >&6; } ;;
5925 CC="$CC $ac_cv_prog_cc_c89"
5926 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5927 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5928 esac
5931 ac_ext=c
5932 ac_cpp='$CPP $CPPFLAGS'
5933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937 ac_ext=cpp
5938 ac_cpp='$CXXCPP $CPPFLAGS'
5939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5942 if test -z "$CXX"; then
5943 if test -n "$CCC"; then
5944 CXX=$CCC
5945 else
5946 if test -n "$ac_tool_prefix"; then
5947 for ac_prog in g++
5949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953 if test "${ac_cv_prog_CXX+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 if test -n "$CXX"; then
5957 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5966 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5970 done
5971 done
5972 IFS=$as_save_IFS
5976 CXX=$ac_cv_prog_CXX
5977 if test -n "$CXX"; then
5978 { echo "$as_me:$LINENO: result: $CXX" >&5
5979 echo "${ECHO_T}$CXX" >&6; }
5980 else
5981 { echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6; }
5986 test -n "$CXX" && break
5987 done
5989 if test -z "$CXX"; then
5990 ac_ct_CXX=$CXX
5991 for ac_prog in g++
5993 # Extract the first word of "$ac_prog", so it can be a program name with args.
5994 set dummy $ac_prog; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 if test -n "$ac_ct_CXX"; then
6001 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_ac_ct_CXX="$ac_prog"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6014 done
6015 done
6016 IFS=$as_save_IFS
6020 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6021 if test -n "$ac_ct_CXX"; then
6022 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6023 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6024 else
6025 { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6030 test -n "$ac_ct_CXX" && break
6031 done
6033 if test "x$ac_ct_CXX" = x; then
6034 CXX="g++"
6035 else
6036 case $cross_compiling:$ac_tool_warned in
6037 yes:)
6038 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6039 whose name does not start with the host triplet. If you think this
6040 configuration is useful to you, please write to autoconf@gnu.org." >&5
6041 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6042 whose name does not start with the host triplet. If you think this
6043 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6044 ac_tool_warned=yes ;;
6045 esac
6046 CXX=$ac_ct_CXX
6052 # Provide some information about the compiler.
6053 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6054 ac_compiler=`set X $ac_compile; echo $2`
6055 { (ac_try="$ac_compiler --version >&5"
6056 case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compiler --version >&5") 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }
6065 { (ac_try="$ac_compiler -v >&5"
6066 case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069 esac
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compiler -v >&5") 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }
6075 { (ac_try="$ac_compiler -V >&5"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compiler -V >&5") 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }
6086 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6087 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6088 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6099 main ()
6101 #ifndef __GNUC__
6102 choke me
6103 #endif
6106 return 0;
6108 _ACEOF
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6111 case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6124 { (case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_try") 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_try") 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_compiler_gnu=yes
6144 else
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6148 ac_compiler_gnu=no
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6155 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6156 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6157 GXX=`test $ac_compiler_gnu = yes && echo yes`
6158 ac_test_CXXFLAGS=${CXXFLAGS+set}
6159 ac_save_CXXFLAGS=$CXXFLAGS
6160 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6161 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6162 if test "${ac_cv_prog_cxx_g+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6166 ac_cxx_werror_flag=yes
6167 ac_cv_prog_cxx_g=no
6168 CXXFLAGS="-g"
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6177 main ()
6181 return 0;
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (ac_try="$ac_compile"
6186 case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compile") 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6199 { (case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_try") 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; } &&
6208 { ac_try='test -s conftest.$ac_objext'
6209 { (case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_try") 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_prog_cxx_g=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 CXXFLAGS=""
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6232 main ()
6236 return 0;
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (ac_try="$ac_compile"
6241 case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_compile") 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6254 { (case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_try") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest.$ac_objext'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6279 CXXFLAGS="-g"
6280 cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6288 main ()
6292 return 0;
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (ac_try="$ac_compile"
6297 case "(($ac_try" in
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_compile") 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 ac_cv_prog_cxx_g=yes
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6346 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6347 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6348 if test "$ac_test_CXXFLAGS" = set; then
6349 CXXFLAGS=$ac_save_CXXFLAGS
6350 elif test $ac_cv_prog_cxx_g = yes; then
6351 if test "$GXX" = yes; then
6352 CXXFLAGS="-g -O2"
6353 else
6354 CXXFLAGS="-g"
6356 else
6357 if test "$GXX" = yes; then
6358 CXXFLAGS="-O2"
6359 else
6360 CXXFLAGS=
6363 ac_ext=c
6364 ac_cpp='$CPP $CPPFLAGS'
6365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6370 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6371 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6372 if test "${lt_cv_path_NM+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 if test -n "$NM"; then
6376 # Let the user override the test.
6377 lt_cv_path_NM="$NM"
6378 else
6379 lt_nm_to_check="${ac_tool_prefix}nm"
6380 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6381 lt_nm_to_check="$lt_nm_to_check nm"
6383 for lt_tmp_nm in $lt_nm_to_check; do
6384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6385 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6386 IFS="$lt_save_ifs"
6387 test -z "$ac_dir" && ac_dir=.
6388 tmp_nm="$ac_dir/$lt_tmp_nm"
6389 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6390 # Check to see if the nm accepts a BSD-compat flag.
6391 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6392 # nm: unknown option "B" ignored
6393 # Tru64's nm complains that /dev/null is an invalid object file
6394 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6395 */dev/null* | *'Invalid file or object type'*)
6396 lt_cv_path_NM="$tmp_nm -B"
6397 break
6400 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6401 */dev/null*)
6402 lt_cv_path_NM="$tmp_nm -p"
6403 break
6406 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6407 continue # so that we can try to find one that supports BSD flags
6409 esac
6411 esac
6413 done
6414 IFS="$lt_save_ifs"
6415 done
6416 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6419 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6420 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6421 NM="$lt_cv_path_NM"
6425 { echo "$as_me:$LINENO: checking for GNU make" >&5
6426 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6427 if test "${llvm_cv_gnu_make_command+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430 llvm_cv_gnu_make_command=''
6431 for a in "$MAKE" make gmake gnumake ; do
6432 if test -z "$a" ; then continue ; fi ;
6433 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6434 then
6435 llvm_cv_gnu_make_command=$a ;
6436 break;
6438 done
6440 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6441 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6442 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6443 ifGNUmake='' ;
6444 else
6445 ifGNUmake='#' ;
6446 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6447 echo "${ECHO_T}\"Not found\"" >&6; };
6451 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6452 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6453 LN_S=$as_ln_s
6454 if test "$LN_S" = "ln -s"; then
6455 { echo "$as_me:$LINENO: result: yes" >&5
6456 echo "${ECHO_T}yes" >&6; }
6457 else
6458 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6459 echo "${ECHO_T}no, using $LN_S" >&6; }
6462 # Extract the first word of "cmp", so it can be a program name with args.
6463 set dummy cmp; ac_word=$2
6464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6466 if test "${ac_cv_path_CMP+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 case $CMP in
6470 [\\/]* | ?:[\\/]*)
6471 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6485 done
6486 done
6487 IFS=$as_save_IFS
6489 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6491 esac
6493 CMP=$ac_cv_path_CMP
6494 if test -n "$CMP"; then
6495 { echo "$as_me:$LINENO: result: $CMP" >&5
6496 echo "${ECHO_T}$CMP" >&6; }
6497 else
6498 { echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6; }
6503 # Extract the first word of "cp", so it can be a program name with args.
6504 set dummy cp; ac_word=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_CP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 case $CP in
6511 [\\/]* | ?:[\\/]*)
6512 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6526 done
6527 done
6528 IFS=$as_save_IFS
6530 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6532 esac
6534 CP=$ac_cv_path_CP
6535 if test -n "$CP"; then
6536 { echo "$as_me:$LINENO: result: $CP" >&5
6537 echo "${ECHO_T}$CP" >&6; }
6538 else
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6544 # Extract the first word of "date", so it can be a program name with args.
6545 set dummy date; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_path_DATE+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 case $DATE in
6552 [\\/]* | ?:[\\/]*)
6553 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6567 done
6568 done
6569 IFS=$as_save_IFS
6571 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6573 esac
6575 DATE=$ac_cv_path_DATE
6576 if test -n "$DATE"; then
6577 { echo "$as_me:$LINENO: result: $DATE" >&5
6578 echo "${ECHO_T}$DATE" >&6; }
6579 else
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6585 # Extract the first word of "find", so it can be a program name with args.
6586 set dummy find; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_FIND+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592 case $FIND in
6593 [\\/]* | ?:[\\/]*)
6594 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6608 done
6609 done
6610 IFS=$as_save_IFS
6612 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6614 esac
6616 FIND=$ac_cv_path_FIND
6617 if test -n "$FIND"; then
6618 { echo "$as_me:$LINENO: result: $FIND" >&5
6619 echo "${ECHO_T}$FIND" >&6; }
6620 else
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6626 # Extract the first word of "grep", so it can be a program name with args.
6627 set dummy grep; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_GREP+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 case $GREP in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6651 IFS=$as_save_IFS
6653 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6655 esac
6657 GREP=$ac_cv_path_GREP
6658 if test -n "$GREP"; then
6659 { echo "$as_me:$LINENO: result: $GREP" >&5
6660 echo "${ECHO_T}$GREP" >&6; }
6661 else
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 # Extract the first word of "mkdir", so it can be a program name with args.
6668 set dummy mkdir; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_MKDIR+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 case $MKDIR in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6690 done
6691 done
6692 IFS=$as_save_IFS
6694 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6696 esac
6698 MKDIR=$ac_cv_path_MKDIR
6699 if test -n "$MKDIR"; then
6700 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6701 echo "${ECHO_T}$MKDIR" >&6; }
6702 else
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 # Extract the first word of "mv", so it can be a program name with args.
6709 set dummy mv; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_MV+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 case $MV in
6716 [\\/]* | ?:[\\/]*)
6717 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6731 done
6732 done
6733 IFS=$as_save_IFS
6735 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6737 esac
6739 MV=$ac_cv_path_MV
6740 if test -n "$MV"; then
6741 { echo "$as_me:$LINENO: result: $MV" >&5
6742 echo "${ECHO_T}$MV" >&6; }
6743 else
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_prog_RANLIB+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 if test -n "$RANLIB"; then
6758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6771 done
6772 done
6773 IFS=$as_save_IFS
6777 RANLIB=$ac_cv_prog_RANLIB
6778 if test -n "$RANLIB"; then
6779 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6780 echo "${ECHO_T}$RANLIB" >&6; }
6781 else
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6788 if test -z "$ac_cv_prog_RANLIB"; then
6789 ac_ct_RANLIB=$RANLIB
6790 # Extract the first word of "ranlib", so it can be a program name with args.
6791 set dummy ranlib; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 if test -n "$ac_ct_RANLIB"; then
6798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_ac_ct_RANLIB="ranlib"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6811 done
6812 done
6813 IFS=$as_save_IFS
6817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6818 if test -n "$ac_ct_RANLIB"; then
6819 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6820 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6821 else
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6826 if test "x$ac_ct_RANLIB" = x; then
6827 RANLIB=":"
6828 else
6829 case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6832 whose name does not start with the host triplet. If you think this
6833 configuration is useful to you, please write to autoconf@gnu.org." >&5
6834 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6835 whose name does not start with the host triplet. If you think this
6836 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 RANLIB=$ac_ct_RANLIB
6841 else
6842 RANLIB="$ac_cv_prog_RANLIB"
6845 # Extract the first word of "rm", so it can be a program name with args.
6846 set dummy rm; ac_word=$2
6847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6849 if test "${ac_cv_path_RM+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852 case $RM in
6853 [\\/]* | ?:[\\/]*)
6854 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6868 done
6869 done
6870 IFS=$as_save_IFS
6872 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6874 esac
6876 RM=$ac_cv_path_RM
6877 if test -n "$RM"; then
6878 { echo "$as_me:$LINENO: result: $RM" >&5
6879 echo "${ECHO_T}$RM" >&6; }
6880 else
6881 { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6886 # Extract the first word of "sed", so it can be a program name with args.
6887 set dummy sed; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_SED+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893 case $SED in
6894 [\\/]* | ?:[\\/]*)
6895 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6909 done
6910 done
6911 IFS=$as_save_IFS
6913 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6915 esac
6917 SED=$ac_cv_path_SED
6918 if test -n "$SED"; then
6919 { echo "$as_me:$LINENO: result: $SED" >&5
6920 echo "${ECHO_T}$SED" >&6; }
6921 else
6922 { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6927 # Extract the first word of "tar", so it can be a program name with args.
6928 set dummy tar; ac_word=$2
6929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931 if test "${ac_cv_path_TAR+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 case $TAR in
6935 [\\/]* | ?:[\\/]*)
6936 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6950 done
6951 done
6952 IFS=$as_save_IFS
6954 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6956 esac
6958 TAR=$ac_cv_path_TAR
6959 if test -n "$TAR"; then
6960 { echo "$as_me:$LINENO: result: $TAR" >&5
6961 echo "${ECHO_T}$TAR" >&6; }
6962 else
6963 { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6968 # Extract the first word of "pwd", so it can be a program name with args.
6969 set dummy pwd; ac_word=$2
6970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972 if test "${ac_cv_path_BINPWD+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975 case $BINPWD in
6976 [\\/]* | ?:[\\/]*)
6977 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6987 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6991 done
6992 done
6993 IFS=$as_save_IFS
6995 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6997 esac
6999 BINPWD=$ac_cv_path_BINPWD
7000 if test -n "$BINPWD"; then
7001 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7002 echo "${ECHO_T}$BINPWD" >&6; }
7003 else
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7010 # Extract the first word of "Graphviz", so it can be a program name with args.
7011 set dummy Graphviz; ac_word=$2
7012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017 case $GRAPHVIZ in
7018 [\\/]* | ?:[\\/]*)
7019 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7033 done
7034 done
7035 IFS=$as_save_IFS
7037 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7039 esac
7041 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7042 if test -n "$GRAPHVIZ"; then
7043 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7044 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7045 else
7046 { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7051 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE_GRAPHVIZ 1
7055 _ACEOF
7057 if test "$llvm_cv_os_type" = "MingW" ; then
7058 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7061 cat >>confdefs.h <<_ACEOF
7062 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7063 _ACEOF
7066 # Extract the first word of "dot", so it can be a program name with args.
7067 set dummy dot; ac_word=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_DOT+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 case $DOT in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7093 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7095 esac
7097 DOT=$ac_cv_path_DOT
7098 if test -n "$DOT"; then
7099 { echo "$as_me:$LINENO: result: $DOT" >&5
7100 echo "${ECHO_T}$DOT" >&6; }
7101 else
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 if test "$DOT" != "echo dot" ; then
7109 cat >>confdefs.h <<\_ACEOF
7110 #define HAVE_DOT 1
7111 _ACEOF
7113 if test "$llvm_cv_os_type" = "MingW" ; then
7114 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7117 cat >>confdefs.h <<_ACEOF
7118 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7119 _ACEOF
7122 for ac_prog in gv gsview32
7124 # Extract the first word of "$ac_prog", so it can be a program name with args.
7125 set dummy $ac_prog; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_GV+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 case $GV in
7132 [\\/]* | ?:[\\/]*)
7133 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7147 done
7148 done
7149 IFS=$as_save_IFS
7152 esac
7154 GV=$ac_cv_path_GV
7155 if test -n "$GV"; then
7156 { echo "$as_me:$LINENO: result: $GV" >&5
7157 echo "${ECHO_T}$GV" >&6; }
7158 else
7159 { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7164 test -n "$GV" && break
7165 done
7166 test -n "$GV" || GV="echo gv"
7168 if test "$GV" != "echo gv" ; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define HAVE_GV 1
7172 _ACEOF
7174 if test "$llvm_cv_os_type" = "MingW" ; then
7175 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7178 cat >>confdefs.h <<_ACEOF
7179 #define LLVM_PATH_GV "$GV${EXEEXT}"
7180 _ACEOF
7183 # Extract the first word of "dotty", so it can be a program name with args.
7184 set dummy dotty; ac_word=$2
7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187 if test "${ac_cv_path_DOTTY+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 case $DOTTY in
7191 [\\/]* | ?:[\\/]*)
7192 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7206 done
7207 done
7208 IFS=$as_save_IFS
7210 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7212 esac
7214 DOTTY=$ac_cv_path_DOTTY
7215 if test -n "$DOTTY"; then
7216 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7217 echo "${ECHO_T}$DOTTY" >&6; }
7218 else
7219 { echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6; }
7224 if test "$DOTTY" != "echo dotty" ; then
7226 cat >>confdefs.h <<\_ACEOF
7227 #define HAVE_DOTTY 1
7228 _ACEOF
7230 if test "$llvm_cv_os_type" = "MingW" ; then
7231 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7234 cat >>confdefs.h <<_ACEOF
7235 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7236 _ACEOF
7241 # Extract the first word of "perl", so it can be a program name with args.
7242 set dummy perl; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_PERL+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 case $PERL in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7266 IFS=$as_save_IFS
7268 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7270 esac
7272 PERL=$ac_cv_path_PERL
7273 if test -n "$PERL"; then
7274 { echo "$as_me:$LINENO: result: $PERL" >&5
7275 echo "${ECHO_T}$PERL" >&6; }
7276 else
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 if test "$PERL" != "none"; then
7283 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7284 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7285 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7286 { echo "$as_me:$LINENO: result: yes" >&5
7287 echo "${ECHO_T}yes" >&6; }
7288 else
7289 PERL=none
7290 { echo "$as_me:$LINENO: result: not found" >&5
7291 echo "${ECHO_T}not found" >&6; }
7296 if test x"$PERL" = xnone; then
7297 HAVE_PERL=0
7299 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7300 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7301 { (exit 1); exit 1; }; }
7302 else
7303 HAVE_PERL=1
7307 # Find a good install program. We prefer a C program (faster),
7308 # so one script is as good as another. But avoid the broken or
7309 # incompatible versions:
7310 # SysV /etc/install, /usr/sbin/install
7311 # SunOS /usr/etc/install
7312 # IRIX /sbin/install
7313 # AIX /bin/install
7314 # AmigaOS /C/install, which installs bootblocks on floppy discs
7315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7318 # OS/2's system install, which has a completely different semantic
7319 # ./install, which can be erroneously created by make from ./install.sh.
7320 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7321 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7322 if test -z "$INSTALL"; then
7323 if test "${ac_cv_path_install+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 # Account for people who put trailing slashes in PATH elements.
7332 case $as_dir/ in
7333 ./ | .// | /cC/* | \
7334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7335 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7336 /usr/ucb/* ) ;;
7338 # OSF1 and SCO ODT 3.0 have their own names for install.
7339 # Don't use installbsd from OSF since it installs stuff as root
7340 # by default.
7341 for ac_prog in ginstall scoinst install; do
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7344 if test $ac_prog = install &&
7345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346 # AIX install. It has an incompatible calling convention.
7348 elif test $ac_prog = install &&
7349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7350 # program-specific install script used by HP pwplus--don't use.
7352 else
7353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7354 break 3
7357 done
7358 done
7360 esac
7361 done
7362 IFS=$as_save_IFS
7366 if test "${ac_cv_path_install+set}" = set; then
7367 INSTALL=$ac_cv_path_install
7368 else
7369 # As a last resort, use the slow shell script. Don't cache a
7370 # value for INSTALL within a source directory, because that will
7371 # break other packages using the cache if that directory is
7372 # removed, or if the value is a relative name.
7373 INSTALL=$ac_install_sh
7376 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7377 echo "${ECHO_T}$INSTALL" >&6; }
7379 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7380 # It thinks the first close brace ends the variable substitution.
7381 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7383 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7385 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7388 # Extract the first word of "bzip2", so it can be a program name with args.
7389 set dummy bzip2; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_BZIP2+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 case $BZIP2 in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7411 done
7412 done
7413 IFS=$as_save_IFS
7416 esac
7418 BZIP2=$ac_cv_path_BZIP2
7419 if test -n "$BZIP2"; then
7420 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7421 echo "${ECHO_T}$BZIP2" >&6; }
7422 else
7423 { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7428 # Extract the first word of "doxygen", so it can be a program name with args.
7429 set dummy doxygen; ac_word=$2
7430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7432 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 case $DOXYGEN in
7436 [\\/]* | ?:[\\/]*)
7437 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7451 done
7452 done
7453 IFS=$as_save_IFS
7456 esac
7458 DOXYGEN=$ac_cv_path_DOXYGEN
7459 if test -n "$DOXYGEN"; then
7460 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7461 echo "${ECHO_T}$DOXYGEN" >&6; }
7462 else
7463 { echo "$as_me:$LINENO: result: no" >&5
7464 echo "${ECHO_T}no" >&6; }
7468 # Extract the first word of "groff", so it can be a program name with args.
7469 set dummy groff; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_GROFF+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 case $GROFF in
7476 [\\/]* | ?:[\\/]*)
7477 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7491 done
7492 done
7493 IFS=$as_save_IFS
7496 esac
7498 GROFF=$ac_cv_path_GROFF
7499 if test -n "$GROFF"; then
7500 { echo "$as_me:$LINENO: result: $GROFF" >&5
7501 echo "${ECHO_T}$GROFF" >&6; }
7502 else
7503 { echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6; }
7508 # Extract the first word of "gzip", so it can be a program name with args.
7509 set dummy gzip; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_path_GZIP+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 case $GZIP in
7516 [\\/]* | ?:[\\/]*)
7517 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7531 done
7532 done
7533 IFS=$as_save_IFS
7536 esac
7538 GZIP=$ac_cv_path_GZIP
7539 if test -n "$GZIP"; then
7540 { echo "$as_me:$LINENO: result: $GZIP" >&5
7541 echo "${ECHO_T}$GZIP" >&6; }
7542 else
7543 { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7548 # Extract the first word of "pod2html", so it can be a program name with args.
7549 set dummy pod2html; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_POD2HTML+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 case $POD2HTML in
7556 [\\/]* | ?:[\\/]*)
7557 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7571 done
7572 done
7573 IFS=$as_save_IFS
7576 esac
7578 POD2HTML=$ac_cv_path_POD2HTML
7579 if test -n "$POD2HTML"; then
7580 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7581 echo "${ECHO_T}$POD2HTML" >&6; }
7582 else
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 # Extract the first word of "pod2man", so it can be a program name with args.
7589 set dummy pod2man; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_path_POD2MAN+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 case $POD2MAN in
7596 [\\/]* | ?:[\\/]*)
7597 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7611 done
7612 done
7613 IFS=$as_save_IFS
7616 esac
7618 POD2MAN=$ac_cv_path_POD2MAN
7619 if test -n "$POD2MAN"; then
7620 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7621 echo "${ECHO_T}$POD2MAN" >&6; }
7622 else
7623 { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7628 # Extract the first word of "runtest", so it can be a program name with args.
7629 set dummy runtest; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_path_RUNTEST+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 case $RUNTEST in
7636 [\\/]* | ?:[\\/]*)
7637 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7651 done
7652 done
7653 IFS=$as_save_IFS
7656 esac
7658 RUNTEST=$ac_cv_path_RUNTEST
7659 if test -n "$RUNTEST"; then
7660 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7661 echo "${ECHO_T}$RUNTEST" >&6; }
7662 else
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7669 no_itcl=true
7670 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7671 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7673 # Check whether --with-tclinclude was given.
7674 if test "${with_tclinclude+set}" = set; then
7675 withval=$with_tclinclude; with_tclinclude=${withval}
7676 else
7677 with_tclinclude=''
7680 if test "${ac_cv_path_tclsh+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7684 if test x"${with_tclinclude}" != x ; then
7685 if test -f ${with_tclinclude}/tclsh ; then
7686 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7687 elif test -f ${with_tclinclude}/src/tclsh ; then
7688 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7689 else
7690 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7691 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7692 { (exit 1); exit 1; }; }
7696 if test x"${ac_cv_path_tclsh}" = x ; then
7697 { echo "$as_me:$LINENO: result: none" >&5
7698 echo "${ECHO_T}none" >&6; }
7699 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7701 # Extract the first word of "$ac_prog", so it can be a program name with args.
7702 set dummy $ac_prog; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_path_TCLSH+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 case $TCLSH in
7709 [\\/]* | ?:[\\/]*)
7710 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7724 done
7725 done
7726 IFS=$as_save_IFS
7729 esac
7731 TCLSH=$ac_cv_path_TCLSH
7732 if test -n "$TCLSH"; then
7733 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7734 echo "${ECHO_T}$TCLSH" >&6; }
7735 else
7736 { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7741 test -n "$TCLSH" && break
7742 done
7744 if test x"${TCLSH}" = x ; then
7745 ac_cv_path_tclsh='';
7746 else
7747 ac_cv_path_tclsh="${TCLSH}";
7749 else
7750 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7751 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7752 TCLSH="${ac_cv_path_tclsh}"
7758 # Extract the first word of "zip", so it can be a program name with args.
7759 set dummy zip; ac_word=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_path_ZIP+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765 case $ZIP in
7766 [\\/]* | ?:[\\/]*)
7767 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7781 done
7782 done
7783 IFS=$as_save_IFS
7786 esac
7788 ZIP=$ac_cv_path_ZIP
7789 if test -n "$ZIP"; then
7790 { echo "$as_me:$LINENO: result: $ZIP" >&5
7791 echo "${ECHO_T}$ZIP" >&6; }
7792 else
7793 { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7798 for ac_prog in ocamlc
7800 # Extract the first word of "$ac_prog", so it can be a program name with args.
7801 set dummy $ac_prog; ac_word=$2
7802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804 if test "${ac_cv_path_OCAMLC+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807 case $OCAMLC in
7808 [\\/]* | ?:[\\/]*)
7809 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7823 done
7824 done
7825 IFS=$as_save_IFS
7828 esac
7830 OCAMLC=$ac_cv_path_OCAMLC
7831 if test -n "$OCAMLC"; then
7832 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7833 echo "${ECHO_T}$OCAMLC" >&6; }
7834 else
7835 { echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6; }
7840 test -n "$OCAMLC" && break
7841 done
7843 for ac_prog in ocamlopt
7845 # Extract the first word of "$ac_prog", so it can be a program name with args.
7846 set dummy $ac_prog; ac_word=$2
7847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7849 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 case $OCAMLOPT in
7853 [\\/]* | ?:[\\/]*)
7854 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7868 done
7869 done
7870 IFS=$as_save_IFS
7873 esac
7875 OCAMLOPT=$ac_cv_path_OCAMLOPT
7876 if test -n "$OCAMLOPT"; then
7877 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7878 echo "${ECHO_T}$OCAMLOPT" >&6; }
7879 else
7880 { echo "$as_me:$LINENO: result: no" >&5
7881 echo "${ECHO_T}no" >&6; }
7885 test -n "$OCAMLOPT" && break
7886 done
7888 for ac_prog in ocamldep
7890 # Extract the first word of "$ac_prog", so it can be a program name with args.
7891 set dummy $ac_prog; ac_word=$2
7892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7894 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 case $OCAMLDEP in
7898 [\\/]* | ?:[\\/]*)
7899 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7913 done
7914 done
7915 IFS=$as_save_IFS
7918 esac
7920 OCAMLDEP=$ac_cv_path_OCAMLDEP
7921 if test -n "$OCAMLDEP"; then
7922 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7923 echo "${ECHO_T}$OCAMLDEP" >&6; }
7924 else
7925 { echo "$as_me:$LINENO: result: no" >&5
7926 echo "${ECHO_T}no" >&6; }
7930 test -n "$OCAMLDEP" && break
7931 done
7933 for ac_prog in ocamldoc
7935 # Extract the first word of "$ac_prog", so it can be a program name with args.
7936 set dummy $ac_prog; ac_word=$2
7937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7939 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942 case $OCAMLDOC in
7943 [\\/]* | ?:[\\/]*)
7944 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7958 done
7959 done
7960 IFS=$as_save_IFS
7963 esac
7965 OCAMLDOC=$ac_cv_path_OCAMLDOC
7966 if test -n "$OCAMLDOC"; then
7967 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7968 echo "${ECHO_T}$OCAMLDOC" >&6; }
7969 else
7970 { echo "$as_me:$LINENO: result: no" >&5
7971 echo "${ECHO_T}no" >&6; }
7975 test -n "$OCAMLDOC" && break
7976 done
7978 for ac_prog in gas as
7980 # Extract the first word of "$ac_prog", so it can be a program name with args.
7981 set dummy $ac_prog; ac_word=$2
7982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7984 if test "${ac_cv_path_GAS+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987 case $GAS in
7988 [\\/]* | ?:[\\/]*)
7989 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8008 esac
8010 GAS=$ac_cv_path_GAS
8011 if test -n "$GAS"; then
8012 { echo "$as_me:$LINENO: result: $GAS" >&5
8013 echo "${ECHO_T}$GAS" >&6; }
8014 else
8015 { echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6; }
8020 test -n "$GAS" && break
8021 done
8024 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8025 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8026 if test "${llvm_cv_link_use_r+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029 ac_ext=c
8030 ac_cpp='$CPP $CPPFLAGS'
8031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035 oldcflags="$CFLAGS"
8036 CFLAGS="$CFLAGS -Wl,-R."
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8045 main ()
8047 int main() { return 0; }
8049 return 0;
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (ac_try="$ac_link"
8054 case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_link") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_try") 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_try") 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 llvm_cv_link_use_r=yes
8087 else
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 llvm_cv_link_use_r=no
8094 rm -f core conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8096 CFLAGS="$oldcflags"
8097 ac_ext=c
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8105 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8106 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8107 if test "$llvm_cv_link_use_r" = yes ; then
8109 cat >>confdefs.h <<\_ACEOF
8110 #define HAVE_LINK_R 1
8111 _ACEOF
8116 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8117 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8118 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121 ac_ext=c
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127 oldcflags="$CFLAGS"
8128 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h. */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8137 main ()
8139 int main() { return 0; }
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_link") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8159 { (case "(($ac_try" in
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_try") 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; } &&
8168 { ac_try='test -s conftest$ac_exeext'
8169 { (case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_try") 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 llvm_cv_link_use_export_dynamic=yes
8179 else
8180 echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8183 llvm_cv_link_use_export_dynamic=no
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 CFLAGS="$oldcflags"
8189 ac_ext=c
8190 ac_cpp='$CPP $CPPFLAGS'
8191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8198 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8199 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_LINK_EXPORT_DYNAMIC 1
8203 _ACEOF
8210 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8211 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8212 if test "${ac_cv_c_const+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8223 main ()
8225 /* FIXME: Include the comments suggested by Paul. */
8226 #ifndef __cplusplus
8227 /* Ultrix mips cc rejects this. */
8228 typedef int charset[2];
8229 const charset x;
8230 /* SunOS 4.1.1 cc rejects this. */
8231 char const *const *ccp;
8232 char **p;
8233 /* NEC SVR4.0.2 mips cc rejects this. */
8234 struct point {int x, y;};
8235 static struct point const zero = {0,0};
8236 /* AIX XL C 1.02.0.0 rejects this.
8237 It does not let you subtract one const X* pointer from another in
8238 an arm of an if-expression whose if-part is not a constant
8239 expression */
8240 const char *g = "string";
8241 ccp = &g + (g ? g-g : 0);
8242 /* HPUX 7.0 cc rejects these. */
8243 ++ccp;
8244 p = (char**) ccp;
8245 ccp = (char const *const *) p;
8246 { /* SCO 3.2v4 cc rejects this. */
8247 char *t;
8248 char const *s = 0 ? (char *) 0 : (char const *) 0;
8250 *t++ = 0;
8251 if (s) return 0;
8253 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8254 int x[] = {25, 17};
8255 const int *foo = &x[0];
8256 ++foo;
8258 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8259 typedef const int *iptr;
8260 iptr p = 0;
8261 ++p;
8263 { /* AIX XL C 1.02.0.0 rejects this saying
8264 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8265 struct s { int j; const int *ap[3]; };
8266 struct s *b; b->j = 5;
8268 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8269 const int foo = 10;
8270 if (!foo) return 0;
8272 return !x[0] && !zero.x;
8273 #endif
8276 return 0;
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8281 case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 ac_cv_c_const=yes
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 ac_cv_c_const=no
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8324 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8325 if test $ac_cv_c_const = no; then
8327 cat >>confdefs.h <<\_ACEOF
8328 #define const
8329 _ACEOF
8338 ac_header_dirent=no
8339 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8340 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8341 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8342 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 #include <sys/types.h>
8353 #include <$ac_hdr>
8356 main ()
8358 if ((DIR *) 0)
8359 return 0;
8361 return 0;
8363 _ACEOF
8364 rm -f conftest.$ac_objext
8365 if { (ac_try="$ac_compile"
8366 case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_compile") 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8379 { (case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_try") 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_try") 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 eval "$as_ac_Header=yes"
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 eval "$as_ac_Header=no"
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 ac_res=`eval echo '${'$as_ac_Header'}'`
8409 { echo "$as_me:$LINENO: result: $ac_res" >&5
8410 echo "${ECHO_T}$ac_res" >&6; }
8411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8412 cat >>confdefs.h <<_ACEOF
8413 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8414 _ACEOF
8416 ac_header_dirent=$ac_hdr; break
8419 done
8420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8421 if test $ac_header_dirent = dirent.h; then
8422 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8423 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8424 if test "${ac_cv_search_opendir+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 ac_func_search_save_LIBS=$LIBS
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h. */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8435 /* Override any GCC internal prototype to avoid an error.
8436 Use char because int might match the return type of a GCC
8437 builtin and then its argument prototype would still apply. */
8438 #ifdef __cplusplus
8439 extern "C"
8440 #endif
8441 char opendir ();
8443 main ()
8445 return opendir ();
8447 return 0;
8449 _ACEOF
8450 for ac_lib in '' dir; do
8451 if test -z "$ac_lib"; then
8452 ac_res="none required"
8453 else
8454 ac_res=-l$ac_lib
8455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8457 rm -f conftest.$ac_objext conftest$ac_exeext
8458 if { (ac_try="$ac_link"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_link") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8472 { (case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_try") 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; } &&
8481 { ac_try='test -s conftest$ac_exeext'
8482 { (case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_try") 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 ac_cv_search_opendir=$ac_res
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8499 rm -f core conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext
8501 if test "${ac_cv_search_opendir+set}" = set; then
8502 break
8504 done
8505 if test "${ac_cv_search_opendir+set}" = set; then
8507 else
8508 ac_cv_search_opendir=no
8510 rm conftest.$ac_ext
8511 LIBS=$ac_func_search_save_LIBS
8513 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8514 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8515 ac_res=$ac_cv_search_opendir
8516 if test "$ac_res" != no; then
8517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8521 else
8522 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8523 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8524 if test "${ac_cv_search_opendir+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 ac_func_search_save_LIBS=$LIBS
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8535 /* Override any GCC internal prototype to avoid an error.
8536 Use char because int might match the return type of a GCC
8537 builtin and then its argument prototype would still apply. */
8538 #ifdef __cplusplus
8539 extern "C"
8540 #endif
8541 char opendir ();
8543 main ()
8545 return opendir ();
8547 return 0;
8549 _ACEOF
8550 for ac_lib in '' x; do
8551 if test -z "$ac_lib"; then
8552 ac_res="none required"
8553 else
8554 ac_res=-l$ac_lib
8555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8559 case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562 esac
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_link") 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8572 { (case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_try") 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_try") 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; }; then
8591 ac_cv_search_opendir=$ac_res
8592 else
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8599 rm -f core conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext
8601 if test "${ac_cv_search_opendir+set}" = set; then
8602 break
8604 done
8605 if test "${ac_cv_search_opendir+set}" = set; then
8607 else
8608 ac_cv_search_opendir=no
8610 rm conftest.$ac_ext
8611 LIBS=$ac_func_search_save_LIBS
8613 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8614 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8615 ac_res=$ac_cv_search_opendir
8616 if test "$ac_res" != no; then
8617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8624 for ac_header in dlfcn.h
8626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 ac_res=`eval echo '${'$as_ac_Header'}'`
8634 { echo "$as_me:$LINENO: result: $ac_res" >&5
8635 echo "${ECHO_T}$ac_res" >&6; }
8636 else
8637 # Is the header compilable?
8638 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h. */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 $ac_includes_default
8647 #include <$ac_header>
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8651 case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_compile") 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8664 { (case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8667 esac
8668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669 (eval "$ac_try") 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; } &&
8673 { ac_try='test -s conftest.$ac_objext'
8674 { (case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677 esac
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_try") 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_header_compiler=yes
8684 else
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 ac_header_compiler=no
8691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8693 echo "${ECHO_T}$ac_header_compiler" >&6; }
8695 # Is the header present?
8696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 #include <$ac_header>
8705 _ACEOF
8706 if { (ac_try="$ac_cpp conftest.$ac_ext"
8707 case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710 esac
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } >/dev/null; then
8719 if test -s conftest.err; then
8720 ac_cpp_err=$ac_c_preproc_warn_flag
8721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8722 else
8723 ac_cpp_err=
8725 else
8726 ac_cpp_err=yes
8728 if test -z "$ac_cpp_err"; then
8729 ac_header_preproc=yes
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_header_preproc=no
8737 rm -f conftest.err conftest.$ac_ext
8738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8739 echo "${ECHO_T}$ac_header_preproc" >&6; }
8741 # So? What about this header?
8742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8743 yes:no: )
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8748 ac_header_preproc=yes
8750 no:yes:* )
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8763 ( cat <<\_ASBOX
8764 ## ----------------------------------- ##
8765 ## Report this to llvmbugs@cs.uiuc.edu ##
8766 ## ----------------------------------- ##
8767 _ASBOX
8768 ) | sed "s/^/$as_me: WARNING: /" >&2
8770 esac
8771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 eval "$as_ac_Header=\$ac_header_preproc"
8778 ac_res=`eval echo '${'$as_ac_Header'}'`
8779 { echo "$as_me:$LINENO: result: $ac_res" >&5
8780 echo "${ECHO_T}$ac_res" >&6; }
8783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8784 cat >>confdefs.h <<_ACEOF
8785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8786 _ACEOF
8790 done
8792 # Check whether --enable-ltdl-install was given.
8793 if test "${enable_ltdl_install+set}" = set; then
8794 enableval=$enable_ltdl_install;
8800 if test x"${enable_ltdl_install-no}" != xno; then
8801 INSTALL_LTDL_TRUE=
8802 INSTALL_LTDL_FALSE='#'
8803 else
8804 INSTALL_LTDL_TRUE='#'
8805 INSTALL_LTDL_FALSE=
8810 if test x"${enable_ltdl_convenience-no}" != xno; then
8811 CONVENIENCE_LTDL_TRUE=
8812 CONVENIENCE_LTDL_FALSE='#'
8813 else
8814 CONVENIENCE_LTDL_TRUE='#'
8815 CONVENIENCE_LTDL_FALSE=
8819 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8820 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8821 library_names_spec=
8822 libname_spec='lib$name'
8823 soname_spec=
8824 shrext_cmds=".so"
8825 postinstall_cmds=
8826 postuninstall_cmds=
8827 finish_cmds=
8828 finish_eval=
8829 shlibpath_var=
8830 shlibpath_overrides_runpath=unknown
8831 version_type=none
8832 dynamic_linker="$host_os ld.so"
8833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8834 if test "$GCC" = yes; then
8835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8837 # if the path contains ";" then we assume it to be the separator
8838 # otherwise default to the standard path separator (i.e. ":") - it is
8839 # assumed that no part of a normal pathname contains ";" but that should
8840 # okay in the real world where ";" in dirpaths is itself problematic.
8841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8842 else
8843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8845 else
8846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8848 need_lib_prefix=unknown
8849 hardcode_into_libs=no
8851 # when you set need_version to no, make sure it does not cause -set_version
8852 # flags to be left without arguments
8853 need_version=unknown
8855 case $host_os in
8856 aix3*)
8857 version_type=linux
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8859 shlibpath_var=LIBPATH
8861 # AIX 3 has no versioning support, so we append a major version to the name.
8862 soname_spec='${libname}${release}${shared_ext}$major'
8865 aix4* | aix5*)
8866 version_type=linux
8867 need_lib_prefix=no
8868 need_version=no
8869 hardcode_into_libs=yes
8870 if test "$host_cpu" = ia64; then
8871 # AIX 5 supports IA64
8872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8873 shlibpath_var=LD_LIBRARY_PATH
8874 else
8875 # With GCC up to 2.95.x, collect2 would create an import file
8876 # for dependence libraries. The import file would start with
8877 # the line `#! .'. This would cause the generated library to
8878 # depend on `.', always an invalid library. This was fixed in
8879 # development snapshots of GCC prior to 3.0.
8880 case $host_os in
8881 aix4 | aix4.[01] | aix4.[01].*)
8882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8883 echo ' yes '
8884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8886 else
8887 can_build_shared=no
8890 esac
8891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8892 # soname into executable. Probably we can add versioning support to
8893 # collect2, so additional links can be useful in future.
8894 if test "$aix_use_runtimelinking" = yes; then
8895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8896 # instead of lib<name>.a to let people know that these are not
8897 # typical AIX shared libraries.
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8899 else
8900 # We preserve .a as extension for shared libraries through AIX4.2
8901 # and later when we are not doing run time linking.
8902 library_names_spec='${libname}${release}.a $libname.a'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8905 shlibpath_var=LIBPATH
8909 amigaos*)
8910 library_names_spec='$libname.ixlibrary $libname.a'
8911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8912 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'
8915 beos*)
8916 library_names_spec='${libname}${shared_ext}'
8917 dynamic_linker="$host_os ld.so"
8918 shlibpath_var=LIBRARY_PATH
8921 bsdi[45]*)
8922 version_type=linux
8923 need_version=no
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8927 shlibpath_var=LD_LIBRARY_PATH
8928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8930 # the default ld.so.conf also contains /usr/contrib/lib and
8931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8932 # libtool to hard-code these into programs
8935 cygwin* | mingw* | pw32*)
8936 version_type=windows
8937 shrext_cmds=".dll"
8938 need_version=no
8939 need_lib_prefix=no
8941 case $GCC,$host_os in
8942 yes,cygwin* | yes,mingw* | yes,pw32*)
8943 library_names_spec='$libname.dll.a'
8944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8945 postinstall_cmds='base_file=`basename \${file}`~
8946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8947 dldir=$destdir/`dirname \$dlpath`~
8948 test -d \$dldir || mkdir -p \$dldir~
8949 $install_prog $dir/$dlname \$dldir/$dlname~
8950 chmod a+x \$dldir/$dlname'
8951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8952 dlpath=$dir/\$dldll~
8953 $rm \$dlpath'
8954 shlibpath_overrides_runpath=yes
8956 case $host_os in
8957 cygwin*)
8958 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8959 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8960 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8962 mingw*)
8963 # MinGW DLLs use traditional 'lib' prefix
8964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8966 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8967 # It is most probably a Windows format PATH printed by
8968 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8969 # path with ; separators, and with drive letters. We can handle the
8970 # drive letters (cygwin fileutils understands them), so leave them,
8971 # especially as we might pass files found there to a mingw objdump,
8972 # which wouldn't understand a cygwinified path. Ahh.
8973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8974 else
8975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8978 pw32*)
8979 # pw32 DLLs use 'pw' prefix rather than 'lib'
8980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8982 esac
8986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8988 esac
8989 dynamic_linker='Win32 ld.exe'
8990 # FIXME: first we should search . and the directory the executable is in
8991 shlibpath_var=PATH
8994 darwin* | rhapsody*)
8995 dynamic_linker="$host_os dyld"
8996 version_type=darwin
8997 need_lib_prefix=no
8998 need_version=no
8999 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9000 soname_spec='${libname}${release}${major}$shared_ext'
9001 shlibpath_overrides_runpath=yes
9002 shlibpath_var=DYLD_LIBRARY_PATH
9003 shrext_cmds='.dylib'
9004 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9005 if test "$GCC" = yes; then
9006 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9007 else
9008 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9013 dgux*)
9014 version_type=linux
9015 need_lib_prefix=no
9016 need_version=no
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 shlibpath_var=LD_LIBRARY_PATH
9022 freebsd1*)
9023 dynamic_linker=no
9026 kfreebsd*-gnu)
9027 version_type=linux
9028 need_lib_prefix=no
9029 need_version=no
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=no
9034 hardcode_into_libs=yes
9035 dynamic_linker='GNU ld.so'
9038 freebsd* | dragonfly*)
9039 # DragonFly does not have aout. When/if they implement a new
9040 # versioning mechanism, adjust this.
9041 if test -x /usr/bin/objformat; then
9042 objformat=`/usr/bin/objformat`
9043 else
9044 case $host_os in
9045 freebsd[123]*) objformat=aout ;;
9046 *) objformat=elf ;;
9047 esac
9049 version_type=freebsd-$objformat
9050 case $version_type in
9051 freebsd-elf*)
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9053 need_version=no
9054 need_lib_prefix=no
9056 freebsd-*)
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9058 need_version=yes
9060 esac
9061 shlibpath_var=LD_LIBRARY_PATH
9062 case $host_os in
9063 freebsd2*)
9064 shlibpath_overrides_runpath=yes
9066 freebsd3.[01]* | freebsdelf3.[01]*)
9067 shlibpath_overrides_runpath=yes
9068 hardcode_into_libs=yes
9070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9072 shlibpath_overrides_runpath=no
9073 hardcode_into_libs=yes
9075 freebsd*) # from 4.6 on
9076 shlibpath_overrides_runpath=yes
9077 hardcode_into_libs=yes
9079 esac
9082 gnu*)
9083 version_type=linux
9084 need_lib_prefix=no
9085 need_version=no
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 shlibpath_var=LD_LIBRARY_PATH
9089 hardcode_into_libs=yes
9092 hpux9* | hpux10* | hpux11*)
9093 # Give a soname corresponding to the major version so that dld.sl refuses to
9094 # link against other versions.
9095 version_type=sunos
9096 need_lib_prefix=no
9097 need_version=no
9098 case $host_cpu in
9099 ia64*)
9100 shrext_cmds='.so'
9101 hardcode_into_libs=yes
9102 dynamic_linker="$host_os dld.so"
9103 shlibpath_var=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 if test "X$HPUX_IA64_MODE" = X32; then
9108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9109 else
9110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114 hppa*64*)
9115 shrext_cmds='.sl'
9116 hardcode_into_libs=yes
9117 dynamic_linker="$host_os dld.sl"
9118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9126 shrext_cmds='.sl'
9127 dynamic_linker="$host_os dld.sl"
9128 shlibpath_var=SHLIB_PATH
9129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9133 esac
9134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9135 postinstall_cmds='chmod 555 $lib'
9138 interix3*)
9139 version_type=linux
9140 need_lib_prefix=no
9141 need_version=no
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=no
9147 hardcode_into_libs=yes
9150 irix5* | irix6* | nonstopux*)
9151 case $host_os in
9152 nonstopux*) version_type=nonstopux ;;
9154 if test "$lt_cv_prog_gnu_ld" = yes; then
9155 version_type=linux
9156 else
9157 version_type=irix
9158 fi ;;
9159 esac
9160 need_lib_prefix=no
9161 need_version=no
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9164 case $host_os in
9165 irix5* | nonstopux*)
9166 libsuff= shlibsuff=
9169 case $LD in # libtool.m4 will add one of these switches to LD
9170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9171 libsuff= shlibsuff= libmagic=32-bit;;
9172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9173 libsuff=32 shlibsuff=N32 libmagic=N32;;
9174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9176 *) libsuff= shlibsuff= libmagic=never-match;;
9177 esac
9179 esac
9180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9181 shlibpath_overrides_runpath=no
9182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9184 hardcode_into_libs=yes
9187 # No shared lib support for Linux oldld, aout, or coff.
9188 linux*oldld* | linux*aout* | linux*coff*)
9189 dynamic_linker=no
9192 # This must be Linux ELF.
9193 linux*)
9194 version_type=linux
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=no
9202 # This implies no fast_install, which is unacceptable.
9203 # Some rework will be needed to allow for fast_install
9204 # before this can be enabled.
9205 hardcode_into_libs=yes
9207 # Append ld.so.conf contents to the search path
9208 if test -f /etc/ld.so.conf; then
9209 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9210 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9213 # We used to test for /lib/ld.so.1 and disable shared libraries on
9214 # powerpc, because MkLinux only supported shared libraries with the
9215 # GNU dynamic linker. Since this was broken with cross compilers,
9216 # most powerpc-linux boxes support dynamic linking these days and
9217 # people can always --disable-shared, the test was removed, and we
9218 # assume the GNU/Linux dynamic linker is in use.
9219 dynamic_linker='GNU/Linux ld.so'
9222 knetbsd*-gnu)
9223 version_type=linux
9224 need_lib_prefix=no
9225 need_version=no
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 shlibpath_overrides_runpath=no
9230 hardcode_into_libs=yes
9231 dynamic_linker='GNU ld.so'
9234 netbsd*)
9235 version_type=sunos
9236 need_lib_prefix=no
9237 need_version=no
9238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9241 dynamic_linker='NetBSD (a.out) ld.so'
9242 else
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 dynamic_linker='NetBSD ld.elf_so'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 hardcode_into_libs=yes
9252 newsos6)
9253 version_type=linux
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=yes
9259 nto-qnx*)
9260 version_type=linux
9261 need_lib_prefix=no
9262 need_version=no
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=yes
9269 openbsd*)
9270 version_type=sunos
9271 sys_lib_dlsearch_path_spec="/usr/lib"
9272 need_lib_prefix=no
9273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9274 case $host_os in
9275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9276 *) need_version=no ;;
9277 esac
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9280 shlibpath_var=LD_LIBRARY_PATH
9281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9282 case $host_os in
9283 openbsd2.[89] | openbsd2.[89].*)
9284 shlibpath_overrides_runpath=no
9287 shlibpath_overrides_runpath=yes
9289 esac
9290 else
9291 shlibpath_overrides_runpath=yes
9295 os2*)
9296 libname_spec='$name'
9297 shrext_cmds=".dll"
9298 need_lib_prefix=no
9299 library_names_spec='$libname${shared_ext} $libname.a'
9300 dynamic_linker='OS/2 ld.exe'
9301 shlibpath_var=LIBPATH
9304 osf3* | osf4* | osf5*)
9305 version_type=osf
9306 need_lib_prefix=no
9307 need_version=no
9308 soname_spec='${libname}${release}${shared_ext}$major'
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9315 solaris*)
9316 version_type=linux
9317 need_lib_prefix=no
9318 need_version=no
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9323 hardcode_into_libs=yes
9324 # ldd complains unless libraries are executable
9325 postinstall_cmds='chmod +x $lib'
9328 sunos4*)
9329 version_type=sunos
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9331 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 shlibpath_overrides_runpath=yes
9334 if test "$with_gnu_ld" = yes; then
9335 need_lib_prefix=no
9337 need_version=yes
9340 sysv4 | sysv4.3*)
9341 version_type=linux
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 shlibpath_var=LD_LIBRARY_PATH
9345 case $host_vendor in
9346 sni)
9347 shlibpath_overrides_runpath=no
9348 need_lib_prefix=no
9349 export_dynamic_flag_spec='${wl}-Blargedynsym'
9350 runpath_var=LD_RUN_PATH
9352 siemens)
9353 need_lib_prefix=no
9355 motorola)
9356 need_lib_prefix=no
9357 need_version=no
9358 shlibpath_overrides_runpath=no
9359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9361 esac
9364 sysv4*MP*)
9365 if test -d /usr/nec ;then
9366 version_type=linux
9367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9368 soname_spec='$libname${shared_ext}.$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9374 version_type=freebsd-elf
9375 need_lib_prefix=no
9376 need_version=no
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 hardcode_into_libs=yes
9381 if test "$with_gnu_ld" = yes; then
9382 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9383 shlibpath_overrides_runpath=no
9384 else
9385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9386 shlibpath_overrides_runpath=yes
9387 case $host_os in
9388 sco3.2v5*)
9389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9391 esac
9393 sys_lib_dlsearch_path_spec='/usr/lib'
9396 uts4*)
9397 version_type=linux
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9404 dynamic_linker=no
9406 esac
9407 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9408 echo "${ECHO_T}$dynamic_linker" >&6; }
9409 test "$dynamic_linker" = no && can_build_shared=no
9411 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9412 if test "$GCC" = yes; then
9413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9417 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9418 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9419 if test "${libltdl_cv_shlibext+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9423 module=yes
9424 eval libltdl_cv_shlibext=$shrext_cmds
9427 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9428 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9429 if test -n "$libltdl_cv_shlibext"; then
9431 cat >>confdefs.h <<_ACEOF
9432 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9433 _ACEOF
9438 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9439 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9440 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 libltdl_cv_shlibpath_var="$shlibpath_var"
9445 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9446 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9447 if test -n "$libltdl_cv_shlibpath_var"; then
9449 cat >>confdefs.h <<_ACEOF
9450 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9451 _ACEOF
9456 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9457 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9458 if test "${libltdl_cv_sys_search_path+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9463 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9464 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9465 if test -n "$libltdl_cv_sys_search_path"; then
9466 sys_search_path=
9467 for dir in $libltdl_cv_sys_search_path; do
9468 if test -z "$sys_search_path"; then
9469 sys_search_path="$dir"
9470 else
9471 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9473 done
9475 cat >>confdefs.h <<_ACEOF
9476 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9477 _ACEOF
9481 { echo "$as_me:$LINENO: checking for objdir" >&5
9482 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9483 if test "${libltdl_cv_objdir+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486 libltdl_cv_objdir="$objdir"
9487 if test -n "$objdir"; then
9489 else
9490 rm -f .libs 2>/dev/null
9491 mkdir .libs 2>/dev/null
9492 if test -d .libs; then
9493 libltdl_cv_objdir=.libs
9494 else
9495 # MS-DOS does not allow filenames that begin with a dot.
9496 libltdl_cv_objdir=_libs
9498 rmdir .libs 2>/dev/null
9502 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9503 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9505 cat >>confdefs.h <<_ACEOF
9506 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9507 _ACEOF
9514 # Check for command to grab the raw symbol name followed by C symbol from nm.
9515 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9516 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9517 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9521 # These are sane defaults that work on at least a few old systems.
9522 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9524 # Character class describing NM global symbol codes.
9525 symcode='[BCDEGRST]'
9527 # Regexp to match symbols that can be accessed directly from C.
9528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9530 # Transform an extracted symbol line into a proper C declaration
9531 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9533 # Transform an extracted symbol line into symbol name and symbol address
9534 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'"
9536 # Define system-specific variables.
9537 case $host_os in
9538 aix*)
9539 symcode='[BCDT]'
9541 cygwin* | mingw* | pw32*)
9542 symcode='[ABCDGISTW]'
9544 hpux*) # Its linker distinguishes data from code symbols
9545 if test "$host_cpu" = ia64; then
9546 symcode='[ABCDEGRST]'
9548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9549 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'"
9551 linux*)
9552 if test "$host_cpu" = ia64; then
9553 symcode='[ABCDGIRSTW]'
9554 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9555 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'"
9558 irix* | nonstopux*)
9559 symcode='[BCDEGRST]'
9561 osf*)
9562 symcode='[BCDEGQRST]'
9564 solaris*)
9565 symcode='[BDRT]'
9567 sco3.2v5*)
9568 symcode='[DT]'
9570 sysv4.2uw2*)
9571 symcode='[DT]'
9573 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9574 symcode='[ABDT]'
9576 sysv4)
9577 symcode='[DFNSTU]'
9579 esac
9581 # Handle CRLF in mingw tool chain
9582 opt_cr=
9583 case $build_os in
9584 mingw*)
9585 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9587 esac
9589 # If we're using GNU nm, then use its standard symbol codes.
9590 case `$NM -V 2>&1` in
9591 *GNU* | *'with BFD'*)
9592 symcode='[ABCDGIRSTW]' ;;
9593 esac
9595 # Try without a prefix undercore, then with it.
9596 for ac_symprfx in "" "_"; do
9598 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9599 symxfrm="\\1 $ac_symprfx\\2 \\2"
9601 # Write the raw and C identifiers.
9602 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9604 # Check to see that the pipe works correctly.
9605 pipe_works=no
9607 rm -f conftest*
9608 cat > conftest.$ac_ext <<EOF
9609 #ifdef __cplusplus
9610 extern "C" {
9611 #endif
9612 char nm_test_var;
9613 void nm_test_func(){}
9614 #ifdef __cplusplus
9616 #endif
9617 int main(){nm_test_var='a';nm_test_func();return(0);}
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; then
9625 # Now try to grab the symbols.
9626 nlist=conftest.nm
9627 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9628 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && test -s "$nlist"; then
9632 # Try sorting and uniquifying the output.
9633 if sort "$nlist" | uniq > "$nlist"T; then
9634 mv -f "$nlist"T "$nlist"
9635 else
9636 rm -f "$nlist"T
9639 # Make sure that we snagged all the symbols we need.
9640 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9641 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9642 cat <<EOF > conftest.$ac_ext
9643 #ifdef __cplusplus
9644 extern "C" {
9645 #endif
9648 # Now generate the symbol file.
9649 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9651 cat <<EOF >> conftest.$ac_ext
9652 #if defined (__STDC__) && __STDC__
9653 # define lt_ptr_t void *
9654 #else
9655 # define lt_ptr_t char *
9656 # define const
9657 #endif
9659 /* The mapping between symbol names and symbols. */
9660 const struct {
9661 const char *name;
9662 lt_ptr_t address;
9664 lt_preloaded_symbols[] =
9667 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9668 cat <<\EOF >> conftest.$ac_ext
9669 {0, (lt_ptr_t) 0}
9672 #ifdef __cplusplus
9674 #endif
9676 # Now try linking the two files.
9677 mv conftest.$ac_objext conftstm.$ac_objext
9678 lt_save_LIBS="$LIBS"
9679 lt_save_CFLAGS="$CFLAGS"
9680 LIBS="conftstm.$ac_objext"
9681 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9687 pipe_works=yes
9689 LIBS="$lt_save_LIBS"
9690 CFLAGS="$lt_save_CFLAGS"
9691 else
9692 echo "cannot find nm_test_func in $nlist" >&5
9694 else
9695 echo "cannot find nm_test_var in $nlist" >&5
9697 else
9698 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9700 else
9701 echo "$progname: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9704 rm -f conftest* conftst*
9706 # Do not use the global_symbol_pipe unless it works.
9707 if test "$pipe_works" = yes; then
9708 break
9709 else
9710 lt_cv_sys_global_symbol_pipe=
9712 done
9716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9717 lt_cv_sys_global_symbol_to_cdecl=
9719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9720 { echo "$as_me:$LINENO: result: failed" >&5
9721 echo "${ECHO_T}failed" >&6; }
9722 else
9723 { echo "$as_me:$LINENO: result: ok" >&5
9724 echo "${ECHO_T}ok" >&6; }
9728 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9729 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9730 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9734 libltdl_cv_preloaded_symbols=yes
9735 else
9736 libltdl_cv_preloaded_symbols=no
9740 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9741 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9742 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9744 cat >>confdefs.h <<\_ACEOF
9745 #define HAVE_PRELOADED_SYMBOLS 1
9746 _ACEOF
9750 LIBADD_DL=
9752 ac_ext=c
9753 ac_cpp='$CPP $CPPFLAGS'
9754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9759 { echo "$as_me:$LINENO: checking for shl_load" >&5
9760 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9761 if test "${ac_cv_func_shl_load+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h. */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9770 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9772 #define shl_load innocuous_shl_load
9774 /* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char shl_load (); below.
9776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9777 <limits.h> exists even on freestanding compilers. */
9779 #ifdef __STDC__
9780 # include <limits.h>
9781 #else
9782 # include <assert.h>
9783 #endif
9785 #undef shl_load
9787 /* Override any GCC internal prototype to avoid an error.
9788 Use char because int might match the return type of a GCC
9789 builtin and then its argument prototype would still apply. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 char shl_load ();
9794 /* The GNU C library defines this for functions which it implements
9795 to always fail with ENOSYS. Some functions are actually named
9796 something starting with __ and the normal name is an alias. */
9797 #if defined __stub_shl_load || defined __stub___shl_load
9798 choke me
9799 #endif
9802 main ()
9804 return shl_load ();
9806 return 0;
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9811 case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_link") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824 { (case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_try") 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_func_shl_load=yes
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_cv_func_shl_load=no
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9854 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9855 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9856 if test $ac_cv_func_shl_load = yes; then
9858 cat >>confdefs.h <<\_ACEOF
9859 #define HAVE_SHL_LOAD 1
9860 _ACEOF
9862 else
9863 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9864 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-ldld $LIBS"
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h. */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char shl_load ();
9885 main ()
9887 return shl_load ();
9889 return 0;
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_lib_dld_shl_load=yes
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_cv_lib_dld_shl_load=no
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9940 if test $ac_cv_lib_dld_shl_load = yes; then
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_SHL_LOAD 1
9944 _ACEOF
9946 LIBADD_DL="$LIBADD_DL -ldld"
9947 else
9948 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953 ac_check_lib_save_LIBS=$LIBS
9954 LIBS="-ldl $LIBS"
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9962 /* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
9965 #ifdef __cplusplus
9966 extern "C"
9967 #endif
9968 char dlopen ();
9970 main ()
9972 return dlopen ();
9974 return 0;
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_cv_lib_dl_dlopen=yes
10012 else
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_cv_lib_dl_dlopen=no
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10025 if test $ac_cv_lib_dl_dlopen = yes; then
10027 cat >>confdefs.h <<\_ACEOF
10028 #define HAVE_LIBDL 1
10029 _ACEOF
10031 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10032 else
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10039 #if HAVE_DLFCN_H
10040 # include <dlfcn.h>
10041 #endif
10044 main ()
10046 dlopen(0, 0);
10048 return 0;
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_link") 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066 { (case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_try") 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_LIBDL 1
10088 _ACEOF
10089 libltdl_cv_func_dlopen="yes"
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10095 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10096 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099 ac_check_lib_save_LIBS=$LIBS
10100 LIBS="-lsvld $LIBS"
10101 cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h. */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10108 /* Override any GCC internal prototype to avoid an error.
10109 Use char because int might match the return type of a GCC
10110 builtin and then its argument prototype would still apply. */
10111 #ifdef __cplusplus
10112 extern "C"
10113 #endif
10114 char dlopen ();
10116 main ()
10118 return dlopen ();
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10131 ac_status=$?
10132 grep -v '^ *+' conftest.er1 >conftest.err
10133 rm -f conftest.er1
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } &&
10137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_lib_svld_dlopen=yes
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_cv_lib_svld_dlopen=no
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10169 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10170 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10171 if test $ac_cv_lib_svld_dlopen = yes; then
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_LIBDL 1
10175 _ACEOF
10177 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10178 else
10179 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10180 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10181 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184 ac_check_lib_save_LIBS=$LIBS
10185 LIBS="-ldld $LIBS"
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10193 /* Override any GCC internal prototype to avoid an error.
10194 Use char because int might match the return type of a GCC
10195 builtin and then its argument prototype would still apply. */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 char dld_link ();
10201 main ()
10203 return dld_link ();
10205 return 0;
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_link") 2>conftest.er1
10216 ac_status=$?
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -f conftest.er1
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_try") 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest$ac_exeext'
10233 { (case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_try") 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_cv_lib_dld_dld_link=yes
10243 else
10244 echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10247 ac_cv_lib_dld_dld_link=no
10250 rm -f core conftest.err conftest.$ac_objext \
10251 conftest$ac_exeext conftest.$ac_ext
10252 LIBS=$ac_check_lib_save_LIBS
10254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10255 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10256 if test $ac_cv_lib_dld_dld_link = yes; then
10258 cat >>confdefs.h <<\_ACEOF
10259 #define HAVE_DLD 1
10260 _ACEOF
10262 LIBADD_DL="$LIBADD_DL -ldld"
10263 else
10264 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10265 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10266 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h. */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10277 #define _dyld_func_lookup innocuous__dyld_func_lookup
10279 /* System header to define __stub macros and hopefully few prototypes,
10280 which can conflict with char _dyld_func_lookup (); below.
10281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10282 <limits.h> exists even on freestanding compilers. */
10284 #ifdef __STDC__
10285 # include <limits.h>
10286 #else
10287 # include <assert.h>
10288 #endif
10290 #undef _dyld_func_lookup
10292 /* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10295 #ifdef __cplusplus
10296 extern "C"
10297 #endif
10298 char _dyld_func_lookup ();
10299 /* The GNU C library defines this for functions which it implements
10300 to always fail with ENOSYS. Some functions are actually named
10301 something starting with __ and the normal name is an alias. */
10302 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10303 choke me
10304 #endif
10307 main ()
10309 return _dyld_func_lookup ();
10311 return 0;
10313 _ACEOF
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (ac_try="$ac_link"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_link") 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10329 { (case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_try") 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; } &&
10338 { ac_try='test -s conftest$ac_exeext'
10339 { (case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_try") 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_func__dyld_func_lookup=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_func__dyld_func_lookup=no
10356 rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10359 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10360 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10361 if test $ac_cv_func__dyld_func_lookup = yes; then
10363 cat >>confdefs.h <<\_ACEOF
10364 #define HAVE_DYLD 1
10365 _ACEOF
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10390 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10391 then
10392 lt_save_LIBS="$LIBS"
10393 LIBS="$LIBS $LIBADD_DL"
10395 for ac_func in dlerror
10397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403 cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h. */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10411 #define $ac_func innocuous_$ac_func
10413 /* System header to define __stub macros and hopefully few prototypes,
10414 which can conflict with char $ac_func (); below.
10415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416 <limits.h> exists even on freestanding compilers. */
10418 #ifdef __STDC__
10419 # include <limits.h>
10420 #else
10421 # include <assert.h>
10422 #endif
10424 #undef $ac_func
10426 /* Override any GCC internal prototype to avoid an error.
10427 Use char because int might match the return type of a GCC
10428 builtin and then its argument prototype would still apply. */
10429 #ifdef __cplusplus
10430 extern "C"
10431 #endif
10432 char $ac_func ();
10433 /* The GNU C library defines this for functions which it implements
10434 to always fail with ENOSYS. Some functions are actually named
10435 something starting with __ and the normal name is an alias. */
10436 #if defined __stub_$ac_func || defined __stub___$ac_func
10437 choke me
10438 #endif
10441 main ()
10443 return $ac_func ();
10445 return 0;
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_link") 2>conftest.er1
10456 ac_status=$?
10457 grep -v '^ *+' conftest.er1 >conftest.err
10458 rm -f conftest.er1
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest$ac_exeext'
10473 { (case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476 esac
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_try") 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 eval "$as_ac_var=yes"
10483 else
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 eval "$as_ac_var=no"
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10493 ac_res=`eval echo '${'$as_ac_var'}'`
10494 { echo "$as_me:$LINENO: result: $ac_res" >&5
10495 echo "${ECHO_T}$ac_res" >&6; }
10496 if test `eval echo '${'$as_ac_var'}'` = yes; then
10497 cat >>confdefs.h <<_ACEOF
10498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10499 _ACEOF
10502 done
10504 LIBS="$lt_save_LIBS"
10506 ac_ext=c
10507 ac_cpp='$CPP $CPPFLAGS'
10508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10514 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10515 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10516 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519 ac_cv_sys_symbol_underscore=no
10520 cat > conftest.$ac_ext <<EOF
10521 void nm_test_func(){}
10522 int main(){nm_test_func;return 0;}
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; then
10529 # Now try to grab the symbols.
10530 ac_nlist=conftest.nm
10531 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10532 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && test -s "$ac_nlist"; then
10536 # See whether the symbols have a leading underscore.
10537 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10538 ac_cv_sys_symbol_underscore=yes
10539 else
10540 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10542 else
10543 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10546 else
10547 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10549 else
10550 echo "configure: failed program was:" >&5
10551 cat conftest.c >&5
10553 rm -rf conftest*
10556 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10557 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10560 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10561 if test x"$libltdl_cv_func_dlopen" = xyes ||
10562 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10563 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10564 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10565 if test "${libltdl_cv_need_uscore+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 libltdl_cv_need_uscore=unknown
10569 save_LIBS="$LIBS"
10570 LIBS="$LIBS $LIBADD_DL"
10571 if test "$cross_compiling" = yes; then :
10572 libltdl_cv_need_uscore=cross
10573 else
10574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10575 lt_status=$lt_dlunknown
10576 cat > conftest.$ac_ext <<EOF
10577 #line 10563 "configure"
10578 #include "confdefs.h"
10580 #if HAVE_DLFCN_H
10581 #include <dlfcn.h>
10582 #endif
10584 #include <stdio.h>
10586 #ifdef RTLD_GLOBAL
10587 # define LT_DLGLOBAL RTLD_GLOBAL
10588 #else
10589 # ifdef DL_GLOBAL
10590 # define LT_DLGLOBAL DL_GLOBAL
10591 # else
10592 # define LT_DLGLOBAL 0
10593 # endif
10594 #endif
10596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10597 find out it does not work in some platform. */
10598 #ifndef LT_DLLAZY_OR_NOW
10599 # ifdef RTLD_LAZY
10600 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10601 # else
10602 # ifdef DL_LAZY
10603 # define LT_DLLAZY_OR_NOW DL_LAZY
10604 # else
10605 # ifdef RTLD_NOW
10606 # define LT_DLLAZY_OR_NOW RTLD_NOW
10607 # else
10608 # ifdef DL_NOW
10609 # define LT_DLLAZY_OR_NOW DL_NOW
10610 # else
10611 # define LT_DLLAZY_OR_NOW 0
10612 # endif
10613 # endif
10614 # endif
10615 # endif
10616 #endif
10618 #ifdef __cplusplus
10619 extern "C" void exit (int);
10620 #endif
10622 void fnord() { int i=42;}
10623 int main ()
10625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10626 int status = $lt_dlunknown;
10628 if (self)
10630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10631 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10632 /* dlclose (self); */
10634 else
10635 puts (dlerror ());
10637 exit (status);
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10645 (./conftest; exit; ) >&5 2>/dev/null
10646 lt_status=$?
10647 case x$lt_status in
10648 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10649 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10650 x$lt_dlunknown|x*) ;;
10651 esac
10652 else :
10653 # compilation failed
10657 rm -fr conftest*
10659 LIBS="$save_LIBS"
10662 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10663 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10667 if test x"$libltdl_cv_need_uscore" = xyes; then
10669 cat >>confdefs.h <<\_ACEOF
10670 #define NEED_USCORE 1
10671 _ACEOF
10676 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10677 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10678 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 # PORTME does your system automatically load deplibs for dlopen?
10682 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10683 # For now, we just catch OSes we know something about -- in the
10684 # future, we'll try test this programmatically.
10685 libltdl_cv_sys_dlopen_deplibs=unknown
10686 case "$host_os" in
10687 aix3*|aix4.1.*|aix4.2.*)
10688 # Unknown whether this is true for these versions of AIX, but
10689 # we want this `case' here to explicitly catch those versions.
10690 libltdl_cv_sys_dlopen_deplibs=unknown
10692 aix[45]*)
10693 libltdl_cv_sys_dlopen_deplibs=yes
10695 darwin*)
10696 # Assuming the user has installed a libdl from somewhere, this is true
10697 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10698 libltdl_cv_sys_dlopen_deplibs=yes
10700 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10701 # GNU and its variants, using gnu ld.so (Glibc)
10702 libltdl_cv_sys_dlopen_deplibs=yes
10704 hpux10*|hpux11*)
10705 libltdl_cv_sys_dlopen_deplibs=yes
10707 interix*)
10708 libltdl_cv_sys_dlopen_deplibs=yes
10710 irix[12345]*|irix6.[01]*)
10711 # Catch all versions of IRIX before 6.2, and indicate that we don't
10712 # know how it worked for any of those versions.
10713 libltdl_cv_sys_dlopen_deplibs=unknown
10715 irix*)
10716 # The case above catches anything before 6.2, and it's known that
10717 # at 6.2 and later dlopen does load deplibs.
10718 libltdl_cv_sys_dlopen_deplibs=yes
10720 netbsd*)
10721 libltdl_cv_sys_dlopen_deplibs=yes
10723 openbsd*)
10724 libltdl_cv_sys_dlopen_deplibs=yes
10726 osf[1234]*)
10727 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10728 # it did *not* use an RPATH in a shared library to find objects the
10729 # library depends on, so we explictly say `no'.
10730 libltdl_cv_sys_dlopen_deplibs=no
10732 osf5.0|osf5.0a|osf5.1)
10733 # dlopen *does* load deplibs and with the right loader patch applied
10734 # it even uses RPATH in a shared library to search for shared objects
10735 # that the library depends on, but there's no easy way to know if that
10736 # patch is installed. Since this is the case, all we can really
10737 # say is unknown -- it depends on the patch being installed. If
10738 # it is, this changes to `yes'. Without it, it would be `no'.
10739 libltdl_cv_sys_dlopen_deplibs=unknown
10741 osf*)
10742 # the two cases above should catch all versions of osf <= 5.1. Read
10743 # the comments above for what we know about them.
10744 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10745 # is used to find them so we can finally say `yes'.
10746 libltdl_cv_sys_dlopen_deplibs=yes
10748 solaris*)
10749 libltdl_cv_sys_dlopen_deplibs=yes
10751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10752 libltdl_cv_sys_dlopen_deplibs=yes
10754 esac
10757 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10758 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10759 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10761 cat >>confdefs.h <<\_ACEOF
10762 #define LTDL_DLOPEN_DEPLIBS 1
10763 _ACEOF
10768 for ac_header in argz.h
10770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 ac_res=`eval echo '${'$as_ac_Header'}'`
10778 { echo "$as_me:$LINENO: result: $ac_res" >&5
10779 echo "${ECHO_T}$ac_res" >&6; }
10780 else
10781 # Is the header compilable?
10782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h. */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 $ac_includes_default
10791 #include <$ac_header>
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (ac_try="$ac_compile"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_compile") 2>conftest.er1
10801 ac_status=$?
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } &&
10807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10808 { (case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811 esac
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_try") 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; } &&
10817 { ac_try='test -s conftest.$ac_objext'
10818 { (case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_try") 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 ac_header_compiler=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ac_header_compiler=no
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10837 echo "${ECHO_T}$ac_header_compiler" >&6; }
10839 # Is the header present?
10840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10842 cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h. */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <$ac_header>
10849 _ACEOF
10850 if { (ac_try="$ac_cpp conftest.$ac_ext"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } >/dev/null; then
10863 if test -s conftest.err; then
10864 ac_cpp_err=$ac_c_preproc_warn_flag
10865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10866 else
10867 ac_cpp_err=
10869 else
10870 ac_cpp_err=yes
10872 if test -z "$ac_cpp_err"; then
10873 ac_header_preproc=yes
10874 else
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10878 ac_header_preproc=no
10881 rm -f conftest.err conftest.$ac_ext
10882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10883 echo "${ECHO_T}$ac_header_preproc" >&6; }
10885 # So? What about this header?
10886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10887 yes:no: )
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10892 ac_header_preproc=yes
10894 no:yes:* )
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10907 ( cat <<\_ASBOX
10908 ## ----------------------------------- ##
10909 ## Report this to llvmbugs@cs.uiuc.edu ##
10910 ## ----------------------------------- ##
10911 _ASBOX
10912 ) | sed "s/^/$as_me: WARNING: /" >&2
10914 esac
10915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920 eval "$as_ac_Header=\$ac_header_preproc"
10922 ac_res=`eval echo '${'$as_ac_Header'}'`
10923 { echo "$as_me:$LINENO: result: $ac_res" >&5
10924 echo "${ECHO_T}$ac_res" >&6; }
10927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10928 cat >>confdefs.h <<_ACEOF
10929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10930 _ACEOF
10934 done
10937 { echo "$as_me:$LINENO: checking for error_t" >&5
10938 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10939 if test "${ac_cv_type_error_t+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 #if HAVE_ARGZ_H
10949 # include <argz.h>
10950 #endif
10952 typedef error_t ac__type_new_;
10954 main ()
10956 if ((ac__type_new_ *) 0)
10957 return 0;
10958 if (sizeof (ac__type_new_))
10959 return 0;
10961 return 0;
10963 _ACEOF
10964 rm -f conftest.$ac_objext
10965 if { (ac_try="$ac_compile"
10966 case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969 esac
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_compile") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10979 { (case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_try") 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try='test -s conftest.$ac_objext'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_type_error_t=yes
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_cv_type_error_t=no
11006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11008 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11009 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11010 if test $ac_cv_type_error_t = yes; then
11012 cat >>confdefs.h <<_ACEOF
11013 #define HAVE_ERROR_T 1
11014 _ACEOF
11017 else
11019 cat >>confdefs.h <<\_ACEOF
11020 #define error_t int
11021 _ACEOF
11031 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11047 #define $ac_func innocuous_$ac_func
11049 /* System header to define __stub macros and hopefully few prototypes,
11050 which can conflict with char $ac_func (); below.
11051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052 <limits.h> exists even on freestanding compilers. */
11054 #ifdef __STDC__
11055 # include <limits.h>
11056 #else
11057 # include <assert.h>
11058 #endif
11060 #undef $ac_func
11062 /* Override any GCC internal prototype to avoid an error.
11063 Use char because int might match the return type of a GCC
11064 builtin and then its argument prototype would still apply. */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 char $ac_func ();
11069 /* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
11071 something starting with __ and the normal name is an alias. */
11072 #if defined __stub_$ac_func || defined __stub___$ac_func
11073 choke me
11074 #endif
11077 main ()
11079 return $ac_func ();
11081 return 0;
11083 _ACEOF
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (ac_try="$ac_link"
11086 case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_link") 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099 { (case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_try") 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; } &&
11108 { ac_try='test -s conftest$ac_exeext'
11109 { (case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_try") 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 eval "$as_ac_var=yes"
11119 else
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 eval "$as_ac_var=no"
11126 rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11129 ac_res=`eval echo '${'$as_ac_var'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11132 if test `eval echo '${'$as_ac_var'}'` = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11135 _ACEOF
11138 done
11167 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11168 stdio.h unistd.h
11170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 ac_res=`eval echo '${'$as_ac_Header'}'`
11178 { echo "$as_me:$LINENO: result: $ac_res" >&5
11179 echo "${ECHO_T}$ac_res" >&6; }
11180 else
11181 # Is the header compilable?
11182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11184 cat >conftest.$ac_ext <<_ACEOF
11185 /* confdefs.h. */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 $ac_includes_default
11191 #include <$ac_header>
11192 _ACEOF
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198 esac
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
11207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11208 { (case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211 esac
11212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_try") 2>&5
11214 ac_status=$?
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; } &&
11217 { ac_try='test -s conftest.$ac_objext'
11218 { (case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_try") 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; }; then
11227 ac_header_compiler=yes
11228 else
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11232 ac_header_compiler=no
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11237 echo "${ECHO_T}$ac_header_compiler" >&6; }
11239 # Is the header present?
11240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h. */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 #include <$ac_header>
11249 _ACEOF
11250 if { (ac_try="$ac_cpp conftest.$ac_ext"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } >/dev/null; then
11263 if test -s conftest.err; then
11264 ac_cpp_err=$ac_c_preproc_warn_flag
11265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11266 else
11267 ac_cpp_err=
11269 else
11270 ac_cpp_err=yes
11272 if test -z "$ac_cpp_err"; then
11273 ac_header_preproc=yes
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 ac_header_preproc=no
11281 rm -f conftest.err conftest.$ac_ext
11282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11283 echo "${ECHO_T}$ac_header_preproc" >&6; }
11285 # So? What about this header?
11286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11287 yes:no: )
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11292 ac_header_preproc=yes
11294 no:yes:* )
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11307 ( cat <<\_ASBOX
11308 ## ----------------------------------- ##
11309 ## Report this to llvmbugs@cs.uiuc.edu ##
11310 ## ----------------------------------- ##
11311 _ASBOX
11312 ) | sed "s/^/$as_me: WARNING: /" >&2
11314 esac
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 eval "$as_ac_Header=\$ac_header_preproc"
11322 ac_res=`eval echo '${'$as_ac_Header'}'`
11323 { echo "$as_me:$LINENO: result: $ac_res" >&5
11324 echo "${ECHO_T}$ac_res" >&6; }
11327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11330 _ACEOF
11334 done
11340 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 ac_res=`eval echo '${'$as_ac_Header'}'`
11350 { echo "$as_me:$LINENO: result: $ac_res" >&5
11351 echo "${ECHO_T}$ac_res" >&6; }
11352 else
11353 # Is the header compilable?
11354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 $ac_includes_default
11363 #include <$ac_header>
11364 _ACEOF
11365 rm -f conftest.$ac_objext
11366 if { (ac_try="$ac_compile"
11367 case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_compile") 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11380 { (case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383 esac
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_try") 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 ac_header_compiler=yes
11400 else
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 ac_header_compiler=no
11407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11409 echo "${ECHO_T}$ac_header_compiler" >&6; }
11411 # Is the header present?
11412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 #include <$ac_header>
11421 _ACEOF
11422 if { (ac_try="$ac_cpp conftest.$ac_ext"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } >/dev/null; then
11435 if test -s conftest.err; then
11436 ac_cpp_err=$ac_c_preproc_warn_flag
11437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11438 else
11439 ac_cpp_err=
11441 else
11442 ac_cpp_err=yes
11444 if test -z "$ac_cpp_err"; then
11445 ac_header_preproc=yes
11446 else
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ac_header_preproc=no
11453 rm -f conftest.err conftest.$ac_ext
11454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11455 echo "${ECHO_T}$ac_header_preproc" >&6; }
11457 # So? What about this header?
11458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11459 yes:no: )
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11464 ac_header_preproc=yes
11466 no:yes:* )
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11479 ( cat <<\_ASBOX
11480 ## ----------------------------------- ##
11481 ## Report this to llvmbugs@cs.uiuc.edu ##
11482 ## ----------------------------------- ##
11483 _ASBOX
11484 ) | sed "s/^/$as_me: WARNING: /" >&2
11486 esac
11487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 eval "$as_ac_Header=\$ac_header_preproc"
11494 ac_res=`eval echo '${'$as_ac_Header'}'`
11495 { echo "$as_me:$LINENO: result: $ac_res" >&5
11496 echo "${ECHO_T}$ac_res" >&6; }
11499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11500 cat >>confdefs.h <<_ACEOF
11501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11502 _ACEOF
11506 done
11510 for ac_header in string.h strings.h
11512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 ac_res=`eval echo '${'$as_ac_Header'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 else
11523 # Is the header compilable?
11524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 #include <$ac_header>
11534 _ACEOF
11535 rm -f conftest.$ac_objext
11536 if { (ac_try="$ac_compile"
11537 case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540 esac
11541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_compile") 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11550 { (case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_try") 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; } &&
11559 { ac_try='test -s conftest.$ac_objext'
11560 { (case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563 esac
11564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_try") 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 ac_header_compiler=yes
11570 else
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_header_compiler=no
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11579 echo "${ECHO_T}$ac_header_compiler" >&6; }
11581 # Is the header present?
11582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11584 cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h. */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590 #include <$ac_header>
11591 _ACEOF
11592 if { (ac_try="$ac_cpp conftest.$ac_ext"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } >/dev/null; then
11605 if test -s conftest.err; then
11606 ac_cpp_err=$ac_c_preproc_warn_flag
11607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11608 else
11609 ac_cpp_err=
11611 else
11612 ac_cpp_err=yes
11614 if test -z "$ac_cpp_err"; then
11615 ac_header_preproc=yes
11616 else
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 ac_header_preproc=no
11623 rm -f conftest.err conftest.$ac_ext
11624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11625 echo "${ECHO_T}$ac_header_preproc" >&6; }
11627 # So? What about this header?
11628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11629 yes:no: )
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11634 ac_header_preproc=yes
11636 no:yes:* )
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11649 ( cat <<\_ASBOX
11650 ## ----------------------------------- ##
11651 ## Report this to llvmbugs@cs.uiuc.edu ##
11652 ## ----------------------------------- ##
11653 _ASBOX
11654 ) | sed "s/^/$as_me: WARNING: /" >&2
11656 esac
11657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 eval "$as_ac_Header=\$ac_header_preproc"
11664 ac_res=`eval echo '${'$as_ac_Header'}'`
11665 { echo "$as_me:$LINENO: result: $ac_res" >&5
11666 echo "${ECHO_T}$ac_res" >&6; }
11669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11672 _ACEOF
11673 break
11676 done
11681 for ac_func in strchr index
11683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689 cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h. */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11697 #define $ac_func innocuous_$ac_func
11699 /* System header to define __stub macros and hopefully few prototypes,
11700 which can conflict with char $ac_func (); below.
11701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702 <limits.h> exists even on freestanding compilers. */
11704 #ifdef __STDC__
11705 # include <limits.h>
11706 #else
11707 # include <assert.h>
11708 #endif
11710 #undef $ac_func
11712 /* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char $ac_func ();
11719 /* The GNU C library defines this for functions which it implements
11720 to always fail with ENOSYS. Some functions are actually named
11721 something starting with __ and the normal name is an alias. */
11722 #if defined __stub_$ac_func || defined __stub___$ac_func
11723 choke me
11724 #endif
11727 main ()
11729 return $ac_func ();
11731 return 0;
11733 _ACEOF
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (ac_try="$ac_link"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_link") 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11762 esac
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_try") 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 eval "$as_ac_var=yes"
11769 else
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 eval "$as_ac_var=no"
11776 rm -f core conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11779 ac_res=`eval echo '${'$as_ac_var'}'`
11780 { echo "$as_me:$LINENO: result: $ac_res" >&5
11781 echo "${ECHO_T}$ac_res" >&6; }
11782 if test `eval echo '${'$as_ac_var'}'` = yes; then
11783 cat >>confdefs.h <<_ACEOF
11784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785 _ACEOF
11786 break
11788 done
11792 for ac_func in strrchr rindex
11794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11808 #define $ac_func innocuous_$ac_func
11810 /* System header to define __stub macros and hopefully few prototypes,
11811 which can conflict with char $ac_func (); below.
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813 <limits.h> exists even on freestanding compilers. */
11815 #ifdef __STDC__
11816 # include <limits.h>
11817 #else
11818 # include <assert.h>
11819 #endif
11821 #undef $ac_func
11823 /* Override any GCC internal prototype to avoid an error.
11824 Use char because int might match the return type of a GCC
11825 builtin and then its argument prototype would still apply. */
11826 #ifdef __cplusplus
11827 extern "C"
11828 #endif
11829 char $ac_func ();
11830 /* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833 #if defined __stub_$ac_func || defined __stub___$ac_func
11834 choke me
11835 #endif
11838 main ()
11840 return $ac_func ();
11842 return 0;
11844 _ACEOF
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (ac_try="$ac_link"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850 esac
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_link") 2>conftest.er1
11853 ac_status=$?
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11860 { (case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_try") 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_try") 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 eval "$as_ac_var=yes"
11880 else
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 eval "$as_ac_var=no"
11887 rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11890 ac_res=`eval echo '${'$as_ac_var'}'`
11891 { echo "$as_me:$LINENO: result: $ac_res" >&5
11892 echo "${ECHO_T}$ac_res" >&6; }
11893 if test `eval echo '${'$as_ac_var'}'` = yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11896 _ACEOF
11897 break
11899 done
11903 for ac_func in memcpy bcopy
11905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11919 #define $ac_func innocuous_$ac_func
11921 /* System header to define __stub macros and hopefully few prototypes,
11922 which can conflict with char $ac_func (); below.
11923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924 <limits.h> exists even on freestanding compilers. */
11926 #ifdef __STDC__
11927 # include <limits.h>
11928 #else
11929 # include <assert.h>
11930 #endif
11932 #undef $ac_func
11934 /* Override any GCC internal prototype to avoid an error.
11935 Use char because int might match the return type of a GCC
11936 builtin and then its argument prototype would still apply. */
11937 #ifdef __cplusplus
11938 extern "C"
11939 #endif
11940 char $ac_func ();
11941 /* The GNU C library defines this for functions which it implements
11942 to always fail with ENOSYS. Some functions are actually named
11943 something starting with __ and the normal name is an alias. */
11944 #if defined __stub_$ac_func || defined __stub___$ac_func
11945 choke me
11946 #endif
11949 main ()
11951 return $ac_func ();
11953 return 0;
11955 _ACEOF
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (ac_try="$ac_link"
11958 case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_link") 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11971 { (case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_try") 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest$ac_exeext'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984 esac
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 eval "$as_ac_var=yes"
11991 else
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 eval "$as_ac_var=no"
11998 rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12001 ac_res=`eval echo '${'$as_ac_var'}'`
12002 { echo "$as_me:$LINENO: result: $ac_res" >&5
12003 echo "${ECHO_T}$ac_res" >&6; }
12004 if test `eval echo '${'$as_ac_var'}'` = yes; then
12005 cat >>confdefs.h <<_ACEOF
12006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12007 _ACEOF
12008 break
12010 done
12014 for ac_func in memmove strcmp
12016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h. */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12030 #define $ac_func innocuous_$ac_func
12032 /* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char $ac_func (); below.
12034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 <limits.h> exists even on freestanding compilers. */
12037 #ifdef __STDC__
12038 # include <limits.h>
12039 #else
12040 # include <assert.h>
12041 #endif
12043 #undef $ac_func
12045 /* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
12048 #ifdef __cplusplus
12049 extern "C"
12050 #endif
12051 char $ac_func ();
12052 /* The GNU C library defines this for functions which it implements
12053 to always fail with ENOSYS. Some functions are actually named
12054 something starting with __ and the normal name is an alias. */
12055 #if defined __stub_$ac_func || defined __stub___$ac_func
12056 choke me
12057 #endif
12060 main ()
12062 return $ac_func ();
12064 return 0;
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082 { (case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_try") 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest$ac_exeext'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 eval "$as_ac_var=yes"
12102 else
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 eval "$as_ac_var=no"
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12112 ac_res=`eval echo '${'$as_ac_var'}'`
12113 { echo "$as_me:$LINENO: result: $ac_res" >&5
12114 echo "${ECHO_T}$ac_res" >&6; }
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118 _ACEOF
12121 done
12126 for ac_func in closedir opendir readdir
12128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h. */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12142 #define $ac_func innocuous_$ac_func
12144 /* System header to define __stub macros and hopefully few prototypes,
12145 which can conflict with char $ac_func (); below.
12146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12147 <limits.h> exists even on freestanding compilers. */
12149 #ifdef __STDC__
12150 # include <limits.h>
12151 #else
12152 # include <assert.h>
12153 #endif
12155 #undef $ac_func
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char $ac_func ();
12164 /* The GNU C library defines this for functions which it implements
12165 to always fail with ENOSYS. Some functions are actually named
12166 something starting with __ and the normal name is an alias. */
12167 #if defined __stub_$ac_func || defined __stub___$ac_func
12168 choke me
12169 #endif
12172 main ()
12174 return $ac_func ();
12176 return 0;
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_link") 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 eval "$as_ac_var=yes"
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 eval "$as_ac_var=no"
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12224 ac_res=`eval echo '${'$as_ac_var'}'`
12225 { echo "$as_me:$LINENO: result: $ac_res" >&5
12226 echo "${ECHO_T}$ac_res" >&6; }
12227 if test `eval echo '${'$as_ac_var'}'` = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12230 _ACEOF
12233 done
12236 # Check whether --enable-shared was given.
12237 if test "${enable_shared+set}" = set; then
12238 enableval=$enable_shared; p=${PACKAGE-default}
12239 case $enableval in
12240 yes) enable_shared=yes ;;
12241 no) enable_shared=no ;;
12243 enable_shared=no
12244 # Look at the argument we got. We use all the common list separators.
12245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12246 for pkg in $enableval; do
12247 IFS="$lt_save_ifs"
12248 if test "X$pkg" = "X$p"; then
12249 enable_shared=yes
12251 done
12252 IFS="$lt_save_ifs"
12254 esac
12255 else
12256 enable_shared=yes
12260 # Check whether --enable-static was given.
12261 if test "${enable_static+set}" = set; then
12262 enableval=$enable_static; p=${PACKAGE-default}
12263 case $enableval in
12264 yes) enable_static=yes ;;
12265 no) enable_static=no ;;
12267 enable_static=no
12268 # Look at the argument we got. We use all the common list separators.
12269 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12270 for pkg in $enableval; do
12271 IFS="$lt_save_ifs"
12272 if test "X$pkg" = "X$p"; then
12273 enable_static=yes
12275 done
12276 IFS="$lt_save_ifs"
12278 esac
12279 else
12280 enable_static=yes
12284 # Check whether --enable-fast-install was given.
12285 if test "${enable_fast_install+set}" = set; then
12286 enableval=$enable_fast_install; p=${PACKAGE-default}
12287 case $enableval in
12288 yes) enable_fast_install=yes ;;
12289 no) enable_fast_install=no ;;
12291 enable_fast_install=no
12292 # Look at the argument we got. We use all the common list separators.
12293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12294 for pkg in $enableval; do
12295 IFS="$lt_save_ifs"
12296 if test "X$pkg" = "X$p"; then
12297 enable_fast_install=yes
12299 done
12300 IFS="$lt_save_ifs"
12302 esac
12303 else
12304 enable_fast_install=yes
12308 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12309 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12310 if test "${lt_cv_path_SED+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 # Loop through the user's path and test for sed and gsed.
12314 # Then use that list of sed's as ones to test for truncation.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for lt_ac_prog in sed gsed; do
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12323 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12325 done
12326 done
12327 done
12328 lt_ac_max=0
12329 lt_ac_count=0
12330 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12331 # along with /bin/sed that truncates output.
12332 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12333 test ! -f $lt_ac_sed && continue
12334 cat /dev/null > conftest.in
12335 lt_ac_count=0
12336 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12337 # Check for GNU sed and select it if it is found.
12338 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12339 lt_cv_path_SED=$lt_ac_sed
12340 break
12342 while true; do
12343 cat conftest.in conftest.in >conftest.tmp
12344 mv conftest.tmp conftest.in
12345 cp conftest.in conftest.nl
12346 echo >>conftest.nl
12347 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12348 cmp -s conftest.out conftest.nl || break
12349 # 10000 chars as input seems more than enough
12350 test $lt_ac_count -gt 10 && break
12351 lt_ac_count=`expr $lt_ac_count + 1`
12352 if test $lt_ac_count -gt $lt_ac_max; then
12353 lt_ac_max=$lt_ac_count
12354 lt_cv_path_SED=$lt_ac_sed
12356 done
12357 done
12361 SED=$lt_cv_path_SED
12362 { echo "$as_me:$LINENO: result: $SED" >&5
12363 echo "${ECHO_T}$SED" >&6; }
12366 # Check whether --with-gnu-ld was given.
12367 if test "${with_gnu_ld+set}" = set; then
12368 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12369 else
12370 with_gnu_ld=no
12373 ac_prog=ld
12374 if test "$GCC" = yes; then
12375 # Check if gcc -print-prog-name=ld gives a path.
12376 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12377 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12378 case $host in
12379 *-*-mingw*)
12380 # gcc leaves a trailing carriage return which upsets mingw
12381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12384 esac
12385 case $ac_prog in
12386 # Accept absolute paths.
12387 [\\/]* | ?:[\\/]*)
12388 re_direlt='/[^/][^/]*/\.\./'
12389 # Canonicalize the pathname of ld
12390 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12391 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12392 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12393 done
12394 test -z "$LD" && LD="$ac_prog"
12397 # If it fails, then pretend we aren't using GCC.
12398 ac_prog=ld
12401 # If it is relative, then search for the first ld in PATH.
12402 with_gnu_ld=unknown
12404 esac
12405 elif test "$with_gnu_ld" = yes; then
12406 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12407 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12408 else
12409 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12410 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12412 if test "${lt_cv_path_LD+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415 if test -z "$LD"; then
12416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12417 for ac_dir in $PATH; do
12418 IFS="$lt_save_ifs"
12419 test -z "$ac_dir" && ac_dir=.
12420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12421 lt_cv_path_LD="$ac_dir/$ac_prog"
12422 # Check to see if the program is GNU ld. I'd rather use --version,
12423 # but apparently some variants of GNU ld only accept -v.
12424 # Break only if it was the GNU/non-GNU ld that we prefer.
12425 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12426 *GNU* | *'with BFD'*)
12427 test "$with_gnu_ld" != no && break
12430 test "$with_gnu_ld" != yes && break
12432 esac
12434 done
12435 IFS="$lt_save_ifs"
12436 else
12437 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12441 LD="$lt_cv_path_LD"
12442 if test -n "$LD"; then
12443 { echo "$as_me:$LINENO: result: $LD" >&5
12444 echo "${ECHO_T}$LD" >&6; }
12445 else
12446 { echo "$as_me:$LINENO: result: no" >&5
12447 echo "${ECHO_T}no" >&6; }
12449 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12450 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12451 { (exit 1); exit 1; }; }
12452 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12453 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12454 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12458 case `$LD -v 2>&1 </dev/null` in
12459 *GNU* | *'with BFD'*)
12460 lt_cv_prog_gnu_ld=yes
12463 lt_cv_prog_gnu_ld=no
12465 esac
12467 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12468 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12469 with_gnu_ld=$lt_cv_prog_gnu_ld
12472 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12473 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12474 if test "${lt_cv_ld_reload_flag+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477 lt_cv_ld_reload_flag='-r'
12479 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12480 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12481 reload_flag=$lt_cv_ld_reload_flag
12482 case $reload_flag in
12483 "" | " "*) ;;
12484 *) reload_flag=" $reload_flag" ;;
12485 esac
12486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12487 case $host_os in
12488 darwin*)
12489 if test "$GCC" = yes; then
12490 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12491 else
12492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12495 esac
12497 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12498 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12499 if test "${lt_cv_deplibs_check_method+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502 lt_cv_file_magic_cmd='$MAGIC_CMD'
12503 lt_cv_file_magic_test_file=
12504 lt_cv_deplibs_check_method='unknown'
12505 # Need to set the preceding variable on all platforms that support
12506 # interlibrary dependencies.
12507 # 'none' -- dependencies not supported.
12508 # `unknown' -- same as none, but documents that we really don't know.
12509 # 'pass_all' -- all dependencies passed with no checks.
12510 # 'test_compile' -- check by making test program.
12511 # 'file_magic [[regex]]' -- check by looking for files in library path
12512 # which responds to the $file_magic_cmd with a given extended regex.
12513 # If you have `file' or equivalent on your system and you're not sure
12514 # whether `pass_all' will *always* work, you probably want this one.
12516 case $host_os in
12517 aix4* | aix5*)
12518 lt_cv_deplibs_check_method=pass_all
12521 beos*)
12522 lt_cv_deplibs_check_method=pass_all
12525 bsdi[45]*)
12526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12527 lt_cv_file_magic_cmd='/usr/bin/file -L'
12528 lt_cv_file_magic_test_file=/shlib/libc.so
12531 cygwin*)
12532 # func_win32_libid is a shell function defined in ltmain.sh
12533 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12534 lt_cv_file_magic_cmd='func_win32_libid'
12537 mingw* | pw32*)
12538 # Base MSYS/MinGW do not provide the 'file' command needed by
12539 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12540 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12541 lt_cv_file_magic_cmd='$OBJDUMP -f'
12544 darwin* | rhapsody*)
12545 lt_cv_deplibs_check_method=pass_all
12548 freebsd* | kfreebsd*-gnu | dragonfly*)
12549 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12550 case $host_cpu in
12551 i*86 )
12552 # Not sure whether the presence of OpenBSD here was a mistake.
12553 # Let's accept both of them until this is cleared up.
12554 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12555 lt_cv_file_magic_cmd=/usr/bin/file
12556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12558 esac
12559 else
12560 lt_cv_deplibs_check_method=pass_all
12564 gnu*)
12565 lt_cv_deplibs_check_method=pass_all
12568 hpux10.20* | hpux11*)
12569 lt_cv_file_magic_cmd=/usr/bin/file
12570 case $host_cpu in
12571 ia64*)
12572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12573 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12575 hppa*64*)
12576 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]'
12577 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12581 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12583 esac
12586 interix3*)
12587 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12591 irix5* | irix6* | nonstopux*)
12592 case $LD in
12593 *-32|*"-32 ") libmagic=32-bit;;
12594 *-n32|*"-n32 ") libmagic=N32;;
12595 *-64|*"-64 ") libmagic=64-bit;;
12596 *) libmagic=never-match;;
12597 esac
12598 lt_cv_deplibs_check_method=pass_all
12601 # This must be Linux ELF.
12602 linux*)
12603 lt_cv_deplibs_check_method=pass_all
12606 netbsd*)
12607 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12609 else
12610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12614 newos6*)
12615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12616 lt_cv_file_magic_cmd=/usr/bin/file
12617 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12620 nto-qnx*)
12621 lt_cv_deplibs_check_method=unknown
12624 openbsd*)
12625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12627 else
12628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12632 osf3* | osf4* | osf5*)
12633 lt_cv_deplibs_check_method=pass_all
12636 solaris*)
12637 lt_cv_deplibs_check_method=pass_all
12640 sysv4 | sysv4.3*)
12641 case $host_vendor in
12642 motorola)
12643 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]'
12644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12646 ncr)
12647 lt_cv_deplibs_check_method=pass_all
12649 sequent)
12650 lt_cv_file_magic_cmd='/bin/file'
12651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12653 sni)
12654 lt_cv_file_magic_cmd='/bin/file'
12655 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12656 lt_cv_file_magic_test_file=/lib/libc.so
12658 siemens)
12659 lt_cv_deplibs_check_method=pass_all
12662 lt_cv_deplibs_check_method=pass_all
12664 esac
12667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12668 lt_cv_deplibs_check_method=pass_all
12670 esac
12673 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12674 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12675 file_magic_cmd=$lt_cv_file_magic_cmd
12676 deplibs_check_method=$lt_cv_deplibs_check_method
12677 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12681 # If no C compiler was specified, use CC.
12682 LTCC=${LTCC-"$CC"}
12684 # If no C compiler flags were specified, use CFLAGS.
12685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12687 # Allow CC to be a program name with arguments.
12688 compiler=$CC
12690 # Check whether --enable-libtool-lock was given.
12691 if test "${enable_libtool_lock+set}" = set; then
12692 enableval=$enable_libtool_lock;
12695 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12697 # Some flags need to be propagated to the compiler or linker for good
12698 # libtool support.
12699 case $host in
12700 ia64-*-hpux*)
12701 # Find out which ABI we are using.
12702 echo 'int i;' > conftest.$ac_ext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704 (eval $ac_compile) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; then
12708 case `/usr/bin/file conftest.$ac_objext` in
12709 *ELF-32*)
12710 HPUX_IA64_MODE="32"
12712 *ELF-64*)
12713 HPUX_IA64_MODE="64"
12715 esac
12717 rm -rf conftest*
12719 *-*-irix6*)
12720 # Find out which ABI we are using.
12721 echo '#line 12707 "configure"' > conftest.$ac_ext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; then
12727 if test "$lt_cv_prog_gnu_ld" = yes; then
12728 case `/usr/bin/file conftest.$ac_objext` in
12729 *32-bit*)
12730 LD="${LD-ld} -melf32bsmip"
12732 *N32*)
12733 LD="${LD-ld} -melf32bmipn32"
12735 *64-bit*)
12736 LD="${LD-ld} -melf64bmip"
12738 esac
12739 else
12740 case `/usr/bin/file conftest.$ac_objext` in
12741 *32-bit*)
12742 LD="${LD-ld} -32"
12744 *N32*)
12745 LD="${LD-ld} -n32"
12747 *64-bit*)
12748 LD="${LD-ld} -64"
12750 esac
12753 rm -rf conftest*
12756 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12757 # Find out which ABI we are using.
12758 echo 'int i;' > conftest.$ac_ext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760 (eval $ac_compile) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; then
12764 case `/usr/bin/file conftest.o` in
12765 *32-bit*)
12766 case $host in
12767 x86_64-*linux*)
12768 LD="${LD-ld} -m elf_i386"
12770 ppc64-*linux*|powerpc64-*linux*)
12771 LD="${LD-ld} -m elf32ppclinux"
12773 s390x-*linux*)
12774 LD="${LD-ld} -m elf_s390"
12776 sparc64-*linux*)
12777 LD="${LD-ld} -m elf32_sparc"
12779 esac
12781 *64-bit*)
12782 case $host in
12783 x86_64-*linux*)
12784 LD="${LD-ld} -m elf_x86_64"
12786 ppc*-*linux*|powerpc*-*linux*)
12787 LD="${LD-ld} -m elf64ppc"
12789 s390*-*linux*)
12790 LD="${LD-ld} -m elf64_s390"
12792 sparc*-*linux*)
12793 LD="${LD-ld} -m elf64_sparc"
12795 esac
12797 esac
12799 rm -rf conftest*
12802 *-*-sco3.2v5*)
12803 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12804 SAVE_CFLAGS="$CFLAGS"
12805 CFLAGS="$CFLAGS -belf"
12806 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12807 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12808 if test "${lt_cv_cc_needs_belf+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 else
12811 ac_ext=c
12812 ac_cpp='$CPP $CPPFLAGS'
12813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12825 main ()
12829 return 0;
12831 _ACEOF
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 lt_cv_cc_needs_belf=yes
12867 else
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 lt_cv_cc_needs_belf=no
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876 ac_ext=c
12877 ac_cpp='$CPP $CPPFLAGS'
12878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12883 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12884 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12885 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12886 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12887 CFLAGS="$SAVE_CFLAGS"
12890 sparc*-*solaris*)
12891 # Find out which ABI we are using.
12892 echo 'int i;' > conftest.$ac_ext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; then
12898 case `/usr/bin/file conftest.o` in
12899 *64-bit*)
12900 case $lt_cv_prog_gnu_ld in
12901 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12902 *) LD="${LD-ld} -64" ;;
12903 esac
12905 esac
12907 rm -rf conftest*
12911 esac
12913 need_locks="$enable_libtool_lock"
12918 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12919 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12920 (test "X$CXX" != "Xg++"))) ; then
12921 ac_ext=cpp
12922 ac_cpp='$CXXCPP $CPPFLAGS'
12923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12926 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12927 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12928 if test -z "$CXXCPP"; then
12929 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932 # Double quotes because CXXCPP needs to be expanded
12933 for CXXCPP in "$CXX -E" "/lib/cpp"
12935 ac_preproc_ok=false
12936 for ac_cxx_preproc_warn_flag in '' yes
12938 # Use a header file that comes with gcc, so configuring glibc
12939 # with a fresh cross-compiler works.
12940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12941 # <limits.h> exists even on freestanding compilers.
12942 # On the NeXT, cc -E runs the code through the compiler's parser,
12943 # not just through cpp. "Syntax error" is here to catch this case.
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 #ifdef __STDC__
12951 # include <limits.h>
12952 #else
12953 # include <assert.h>
12954 #endif
12955 Syntax error
12956 _ACEOF
12957 if { (ac_try="$ac_cpp conftest.$ac_ext"
12958 case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } >/dev/null; then
12970 if test -s conftest.err; then
12971 ac_cpp_err=$ac_cxx_preproc_warn_flag
12972 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12973 else
12974 ac_cpp_err=
12976 else
12977 ac_cpp_err=yes
12979 if test -z "$ac_cpp_err"; then
12981 else
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12985 # Broken: fails on valid input.
12986 continue
12989 rm -f conftest.err conftest.$ac_ext
12991 # OK, works on sane cases. Now check whether nonexistent headers
12992 # can be detected and how.
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h. */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 #include <ac_nonexistent.h>
13000 _ACEOF
13001 if { (ac_try="$ac_cpp conftest.$ac_ext"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005 esac
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } >/dev/null; then
13014 if test -s conftest.err; then
13015 ac_cpp_err=$ac_cxx_preproc_warn_flag
13016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13017 else
13018 ac_cpp_err=
13020 else
13021 ac_cpp_err=yes
13023 if test -z "$ac_cpp_err"; then
13024 # Broken: success on invalid input.
13025 continue
13026 else
13027 echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 # Passes both tests.
13031 ac_preproc_ok=:
13032 break
13035 rm -f conftest.err conftest.$ac_ext
13037 done
13038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13039 rm -f conftest.err conftest.$ac_ext
13040 if $ac_preproc_ok; then
13041 break
13044 done
13045 ac_cv_prog_CXXCPP=$CXXCPP
13048 CXXCPP=$ac_cv_prog_CXXCPP
13049 else
13050 ac_cv_prog_CXXCPP=$CXXCPP
13052 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13053 echo "${ECHO_T}$CXXCPP" >&6; }
13054 ac_preproc_ok=false
13055 for ac_cxx_preproc_warn_flag in '' yes
13057 # Use a header file that comes with gcc, so configuring glibc
13058 # with a fresh cross-compiler works.
13059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13060 # <limits.h> exists even on freestanding compilers.
13061 # On the NeXT, cc -E runs the code through the compiler's parser,
13062 # not just through cpp. "Syntax error" is here to catch this case.
13063 cat >conftest.$ac_ext <<_ACEOF
13064 /* confdefs.h. */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 #ifdef __STDC__
13070 # include <limits.h>
13071 #else
13072 # include <assert.h>
13073 #endif
13074 Syntax error
13075 _ACEOF
13076 if { (ac_try="$ac_cpp conftest.$ac_ext"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } >/dev/null; then
13089 if test -s conftest.err; then
13090 ac_cpp_err=$ac_cxx_preproc_warn_flag
13091 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13092 else
13093 ac_cpp_err=
13095 else
13096 ac_cpp_err=yes
13098 if test -z "$ac_cpp_err"; then
13100 else
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 # Broken: fails on valid input.
13105 continue
13108 rm -f conftest.err conftest.$ac_ext
13110 # OK, works on sane cases. Now check whether nonexistent headers
13111 # can be detected and how.
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 #include <ac_nonexistent.h>
13119 _ACEOF
13120 if { (ac_try="$ac_cpp conftest.$ac_ext"
13121 case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } >/dev/null; then
13133 if test -s conftest.err; then
13134 ac_cpp_err=$ac_cxx_preproc_warn_flag
13135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13136 else
13137 ac_cpp_err=
13139 else
13140 ac_cpp_err=yes
13142 if test -z "$ac_cpp_err"; then
13143 # Broken: success on invalid input.
13144 continue
13145 else
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 # Passes both tests.
13150 ac_preproc_ok=:
13151 break
13154 rm -f conftest.err conftest.$ac_ext
13156 done
13157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13158 rm -f conftest.err conftest.$ac_ext
13159 if $ac_preproc_ok; then
13161 else
13162 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13163 See \`config.log' for more details." >&5
13164 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13165 See \`config.log' for more details." >&2;}
13166 { (exit 1); exit 1; }; }
13169 ac_ext=cpp
13170 ac_cpp='$CXXCPP $CPPFLAGS'
13171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13178 ac_ext=f
13179 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13180 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13182 if test -n "$ac_tool_prefix"; then
13183 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13189 if test "${ac_cv_prog_F77+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192 if test -n "$F77"; then
13193 ac_cv_prog_F77="$F77" # Let the user override the test.
13194 else
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $PATH
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13202 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 break 2
13206 done
13207 done
13208 IFS=$as_save_IFS
13212 F77=$ac_cv_prog_F77
13213 if test -n "$F77"; then
13214 { echo "$as_me:$LINENO: result: $F77" >&5
13215 echo "${ECHO_T}$F77" >&6; }
13216 else
13217 { echo "$as_me:$LINENO: result: no" >&5
13218 echo "${ECHO_T}no" >&6; }
13222 test -n "$F77" && break
13223 done
13225 if test -z "$F77"; then
13226 ac_ct_F77=$F77
13227 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13229 # Extract the first word of "$ac_prog", so it can be a program name with args.
13230 set dummy $ac_prog; ac_word=$2
13231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13233 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 if test -n "$ac_ct_F77"; then
13237 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13238 else
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13242 IFS=$as_save_IFS
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13246 ac_cv_prog_ac_ct_F77="$ac_prog"
13247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 break 2
13250 done
13251 done
13252 IFS=$as_save_IFS
13256 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13257 if test -n "$ac_ct_F77"; then
13258 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13259 echo "${ECHO_T}$ac_ct_F77" >&6; }
13260 else
13261 { echo "$as_me:$LINENO: result: no" >&5
13262 echo "${ECHO_T}no" >&6; }
13266 test -n "$ac_ct_F77" && break
13267 done
13269 if test "x$ac_ct_F77" = x; then
13270 F77=""
13271 else
13272 case $cross_compiling:$ac_tool_warned in
13273 yes:)
13274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13275 whose name does not start with the host triplet. If you think this
13276 configuration is useful to you, please write to autoconf@gnu.org." >&5
13277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13278 whose name does not start with the host triplet. If you think this
13279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13280 ac_tool_warned=yes ;;
13281 esac
13282 F77=$ac_ct_F77
13287 # Provide some information about the compiler.
13288 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13289 ac_compiler=`set X $ac_compile; echo $2`
13290 { (ac_try="$ac_compiler --version >&5"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_compiler --version >&5") 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }
13300 { (ac_try="$ac_compiler -v >&5"
13301 case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_compiler -v >&5") 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }
13310 { (ac_try="$ac_compiler -V >&5"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_compiler -V >&5") 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }
13320 rm -f a.out
13322 # If we don't use `.F' as extension, the preprocessor is not run on the
13323 # input file. (Note that this only needs to work for GNU compilers.)
13324 ac_save_ext=$ac_ext
13325 ac_ext=F
13326 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13327 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13328 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331 cat >conftest.$ac_ext <<_ACEOF
13332 program main
13333 #ifndef __GNUC__
13334 choke me
13335 #endif
13338 _ACEOF
13339 rm -f conftest.$ac_objext
13340 if { (ac_try="$ac_compile"
13341 case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_compile") 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13354 { (case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13357 esac
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_try") 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; } &&
13363 { ac_try='test -s conftest.$ac_objext'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 ac_compiler_gnu=yes
13374 else
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_compiler_gnu=no
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13385 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13386 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13387 ac_ext=$ac_save_ext
13388 ac_test_FFLAGS=${FFLAGS+set}
13389 ac_save_FFLAGS=$FFLAGS
13390 FFLAGS=
13391 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13392 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13393 if test "${ac_cv_prog_f77_g+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396 FFLAGS=-g
13397 cat >conftest.$ac_ext <<_ACEOF
13398 program main
13401 _ACEOF
13402 rm -f conftest.$ac_objext
13403 if { (ac_try="$ac_compile"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_compile") 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_prog_f77_g=yes
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_cv_prog_f77_g=no
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13448 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13449 if test "$ac_test_FFLAGS" = set; then
13450 FFLAGS=$ac_save_FFLAGS
13451 elif test $ac_cv_prog_f77_g = yes; then
13452 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13453 FFLAGS="-g -O2"
13454 else
13455 FFLAGS="-g"
13457 else
13458 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13459 FFLAGS="-O2"
13460 else
13461 FFLAGS=
13465 G77=`test $ac_compiler_gnu = yes && echo yes`
13466 ac_ext=c
13467 ac_cpp='$CPP $CPPFLAGS'
13468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13474 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13476 # find the maximum length of command line arguments
13477 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13478 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13479 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13483 teststring="ABCD"
13485 case $build_os in
13486 msdosdjgpp*)
13487 # On DJGPP, this test can blow up pretty badly due to problems in libc
13488 # (any single argument exceeding 2000 bytes causes a buffer overrun
13489 # during glob expansion). Even if it were fixed, the result of this
13490 # check would be larger than it should be.
13491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13494 gnu*)
13495 # Under GNU Hurd, this test is not required because there is
13496 # no limit to the length of command line arguments.
13497 # Libtool will interpret -1 as no limit whatsoever
13498 lt_cv_sys_max_cmd_len=-1;
13501 cygwin* | mingw*)
13502 # On Win9x/ME, this test blows up -- it succeeds, but takes
13503 # about 5 minutes as the teststring grows exponentially.
13504 # Worse, since 9x/ME are not pre-emptively multitasking,
13505 # you end up with a "frozen" computer, even though with patience
13506 # the test eventually succeeds (with a max line length of 256k).
13507 # Instead, let's just punt: use the minimum linelength reported by
13508 # all of the supported platforms: 8192 (on NT/2K/XP).
13509 lt_cv_sys_max_cmd_len=8192;
13512 amigaos*)
13513 # On AmigaOS with pdksh, this test takes hours, literally.
13514 # So we just punt and use a minimum line length of 8192.
13515 lt_cv_sys_max_cmd_len=8192;
13518 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13519 # This has been around since 386BSD, at least. Likely further.
13520 if test -x /sbin/sysctl; then
13521 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13522 elif test -x /usr/sbin/sysctl; then
13523 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13524 else
13525 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13527 # And add a safety zone
13528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13532 interix*)
13533 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13534 lt_cv_sys_max_cmd_len=196608
13537 osf*)
13538 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13539 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13540 # nice to cause kernel panics so lets avoid the loop below.
13541 # First set a reasonable default.
13542 lt_cv_sys_max_cmd_len=16384
13544 if test -x /sbin/sysconfig; then
13545 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13546 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13547 esac
13550 sco3.2v5*)
13551 lt_cv_sys_max_cmd_len=102400
13553 sysv5* | sco5v6* | sysv4.2uw2*)
13554 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13555 if test -n "$kargmax"; then
13556 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13557 else
13558 lt_cv_sys_max_cmd_len=32768
13562 # If test is not a shell built-in, we'll probably end up computing a
13563 # maximum length that is only half of the actual maximum length, but
13564 # we can't tell.
13565 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13566 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13567 = "XX$teststring") >/dev/null 2>&1 &&
13568 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13569 lt_cv_sys_max_cmd_len=$new_result &&
13570 test $i != 17 # 1/2 MB should be enough
13572 i=`expr $i + 1`
13573 teststring=$teststring$teststring
13574 done
13575 teststring=
13576 # Add a significant safety factor because C++ compilers can tack on massive
13577 # amounts of additional arguments before passing them to the linker.
13578 # It appears as though 1/2 is a usable value.
13579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13581 esac
13585 if test -n $lt_cv_sys_max_cmd_len ; then
13586 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13587 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13588 else
13589 { echo "$as_me:$LINENO: result: none" >&5
13590 echo "${ECHO_T}none" >&6; }
13596 # Check for command to grab the raw symbol name followed by C symbol from nm.
13597 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13598 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13599 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13603 # These are sane defaults that work on at least a few old systems.
13604 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13606 # Character class describing NM global symbol codes.
13607 symcode='[BCDEGRST]'
13609 # Regexp to match symbols that can be accessed directly from C.
13610 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13612 # Transform an extracted symbol line into a proper C declaration
13613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13615 # Transform an extracted symbol line into symbol name and symbol address
13616 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'"
13618 # Define system-specific variables.
13619 case $host_os in
13620 aix*)
13621 symcode='[BCDT]'
13623 cygwin* | mingw* | pw32*)
13624 symcode='[ABCDGISTW]'
13626 hpux*) # Its linker distinguishes data from code symbols
13627 if test "$host_cpu" = ia64; then
13628 symcode='[ABCDEGRST]'
13630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13631 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'"
13633 linux*)
13634 if test "$host_cpu" = ia64; then
13635 symcode='[ABCDGIRSTW]'
13636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13637 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'"
13640 irix* | nonstopux*)
13641 symcode='[BCDEGRST]'
13643 osf*)
13644 symcode='[BCDEGQRST]'
13646 solaris*)
13647 symcode='[BDRT]'
13649 sco3.2v5*)
13650 symcode='[DT]'
13652 sysv4.2uw2*)
13653 symcode='[DT]'
13655 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13656 symcode='[ABDT]'
13658 sysv4)
13659 symcode='[DFNSTU]'
13661 esac
13663 # Handle CRLF in mingw tool chain
13664 opt_cr=
13665 case $build_os in
13666 mingw*)
13667 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13669 esac
13671 # If we're using GNU nm, then use its standard symbol codes.
13672 case `$NM -V 2>&1` in
13673 *GNU* | *'with BFD'*)
13674 symcode='[ABCDGIRSTW]' ;;
13675 esac
13677 # Try without a prefix undercore, then with it.
13678 for ac_symprfx in "" "_"; do
13680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13681 symxfrm="\\1 $ac_symprfx\\2 \\2"
13683 # Write the raw and C identifiers.
13684 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13686 # Check to see that the pipe works correctly.
13687 pipe_works=no
13689 rm -f conftest*
13690 cat > conftest.$ac_ext <<EOF
13691 #ifdef __cplusplus
13692 extern "C" {
13693 #endif
13694 char nm_test_var;
13695 void nm_test_func(){}
13696 #ifdef __cplusplus
13698 #endif
13699 int main(){nm_test_var='a';nm_test_func();return(0);}
13702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703 (eval $ac_compile) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; then
13707 # Now try to grab the symbols.
13708 nlist=conftest.nm
13709 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13710 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } && test -s "$nlist"; then
13714 # Try sorting and uniquifying the output.
13715 if sort "$nlist" | uniq > "$nlist"T; then
13716 mv -f "$nlist"T "$nlist"
13717 else
13718 rm -f "$nlist"T
13721 # Make sure that we snagged all the symbols we need.
13722 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13723 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13724 cat <<EOF > conftest.$ac_ext
13725 #ifdef __cplusplus
13726 extern "C" {
13727 #endif
13730 # Now generate the symbol file.
13731 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13733 cat <<EOF >> conftest.$ac_ext
13734 #if defined (__STDC__) && __STDC__
13735 # define lt_ptr_t void *
13736 #else
13737 # define lt_ptr_t char *
13738 # define const
13739 #endif
13741 /* The mapping between symbol names and symbols. */
13742 const struct {
13743 const char *name;
13744 lt_ptr_t address;
13746 lt_preloaded_symbols[] =
13749 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13750 cat <<\EOF >> conftest.$ac_ext
13751 {0, (lt_ptr_t) 0}
13754 #ifdef __cplusplus
13756 #endif
13758 # Now try linking the two files.
13759 mv conftest.$ac_objext conftstm.$ac_objext
13760 lt_save_LIBS="$LIBS"
13761 lt_save_CFLAGS="$CFLAGS"
13762 LIBS="conftstm.$ac_objext"
13763 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13769 pipe_works=yes
13771 LIBS="$lt_save_LIBS"
13772 CFLAGS="$lt_save_CFLAGS"
13773 else
13774 echo "cannot find nm_test_func in $nlist" >&5
13776 else
13777 echo "cannot find nm_test_var in $nlist" >&5
13779 else
13780 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13782 else
13783 echo "$progname: failed program was:" >&5
13784 cat conftest.$ac_ext >&5
13786 rm -f conftest* conftst*
13788 # Do not use the global_symbol_pipe unless it works.
13789 if test "$pipe_works" = yes; then
13790 break
13791 else
13792 lt_cv_sys_global_symbol_pipe=
13794 done
13798 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13799 lt_cv_sys_global_symbol_to_cdecl=
13801 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13802 { echo "$as_me:$LINENO: result: failed" >&5
13803 echo "${ECHO_T}failed" >&6; }
13804 else
13805 { echo "$as_me:$LINENO: result: ok" >&5
13806 echo "${ECHO_T}ok" >&6; }
13809 { echo "$as_me:$LINENO: checking for objdir" >&5
13810 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13811 if test "${lt_cv_objdir+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814 rm -f .libs 2>/dev/null
13815 mkdir .libs 2>/dev/null
13816 if test -d .libs; then
13817 lt_cv_objdir=.libs
13818 else
13819 # MS-DOS does not allow filenames that begin with a dot.
13820 lt_cv_objdir=_libs
13822 rmdir .libs 2>/dev/null
13824 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13825 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13826 objdir=$lt_cv_objdir
13832 case $host_os in
13833 aix3*)
13834 # AIX sometimes has problems with the GCC collect2 program. For some
13835 # reason, if we set the COLLECT_NAMES environment variable, the problems
13836 # vanish in a puff of smoke.
13837 if test "X${COLLECT_NAMES+set}" != Xset; then
13838 COLLECT_NAMES=
13839 export COLLECT_NAMES
13842 esac
13844 # Sed substitution that helps us do robust quoting. It backslashifies
13845 # metacharacters that are still active within double-quoted strings.
13846 Xsed='sed -e 1s/^X//'
13847 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13849 # Same as above, but do not quote variable references.
13850 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13852 # Sed substitution to delay expansion of an escaped shell variable in a
13853 # double_quote_subst'ed string.
13854 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13856 # Sed substitution to avoid accidental globbing in evaled expressions
13857 no_glob_subst='s/\*/\\\*/g'
13859 # Constants:
13860 rm="rm -f"
13862 # Global variables:
13863 default_ofile=mklib
13864 can_build_shared=yes
13866 # All known linkers require a `.a' archive for static linking (except MSVC,
13867 # which needs '.lib').
13868 libext=a
13869 ltmain="$ac_aux_dir/ltmain.sh"
13870 ofile="$default_ofile"
13871 with_gnu_ld="$lt_cv_prog_gnu_ld"
13873 if test -n "$ac_tool_prefix"; then
13874 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13875 set dummy ${ac_tool_prefix}ar; ac_word=$2
13876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13878 if test "${ac_cv_prog_AR+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 if test -n "$AR"; then
13882 ac_cv_prog_AR="$AR" # Let the user override the test.
13883 else
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13891 ac_cv_prog_AR="${ac_tool_prefix}ar"
13892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 break 2
13895 done
13896 done
13897 IFS=$as_save_IFS
13901 AR=$ac_cv_prog_AR
13902 if test -n "$AR"; then
13903 { echo "$as_me:$LINENO: result: $AR" >&5
13904 echo "${ECHO_T}$AR" >&6; }
13905 else
13906 { echo "$as_me:$LINENO: result: no" >&5
13907 echo "${ECHO_T}no" >&6; }
13912 if test -z "$ac_cv_prog_AR"; then
13913 ac_ct_AR=$AR
13914 # Extract the first word of "ar", so it can be a program name with args.
13915 set dummy ar; ac_word=$2
13916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13918 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921 if test -n "$ac_ct_AR"; then
13922 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13931 ac_cv_prog_ac_ct_AR="ar"
13932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13935 done
13936 done
13937 IFS=$as_save_IFS
13941 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13942 if test -n "$ac_ct_AR"; then
13943 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13944 echo "${ECHO_T}$ac_ct_AR" >&6; }
13945 else
13946 { echo "$as_me:$LINENO: result: no" >&5
13947 echo "${ECHO_T}no" >&6; }
13950 if test "x$ac_ct_AR" = x; then
13951 AR="false"
13952 else
13953 case $cross_compiling:$ac_tool_warned in
13954 yes:)
13955 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13956 whose name does not start with the host triplet. If you think this
13957 configuration is useful to you, please write to autoconf@gnu.org." >&5
13958 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13959 whose name does not start with the host triplet. If you think this
13960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13961 ac_tool_warned=yes ;;
13962 esac
13963 AR=$ac_ct_AR
13965 else
13966 AR="$ac_cv_prog_AR"
13969 if test -n "$ac_tool_prefix"; then
13970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13974 if test "${ac_cv_prog_RANLIB+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977 if test -n "$RANLIB"; then
13978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13979 else
13980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981 for as_dir in $PATH
13983 IFS=$as_save_IFS
13984 test -z "$as_dir" && as_dir=.
13985 for ac_exec_ext in '' $ac_executable_extensions; do
13986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13989 break 2
13991 done
13992 done
13993 IFS=$as_save_IFS
13997 RANLIB=$ac_cv_prog_RANLIB
13998 if test -n "$RANLIB"; then
13999 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14000 echo "${ECHO_T}$RANLIB" >&6; }
14001 else
14002 { echo "$as_me:$LINENO: result: no" >&5
14003 echo "${ECHO_T}no" >&6; }
14008 if test -z "$ac_cv_prog_RANLIB"; then
14009 ac_ct_RANLIB=$RANLIB
14010 # Extract the first word of "ranlib", so it can be a program name with args.
14011 set dummy ranlib; ac_word=$2
14012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 if test -n "$ac_ct_RANLIB"; then
14018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14019 else
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14023 IFS=$as_save_IFS
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14027 ac_cv_prog_ac_ct_RANLIB="ranlib"
14028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14029 break 2
14031 done
14032 done
14033 IFS=$as_save_IFS
14037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14038 if test -n "$ac_ct_RANLIB"; then
14039 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14040 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14041 else
14042 { echo "$as_me:$LINENO: result: no" >&5
14043 echo "${ECHO_T}no" >&6; }
14046 if test "x$ac_ct_RANLIB" = x; then
14047 RANLIB=":"
14048 else
14049 case $cross_compiling:$ac_tool_warned in
14050 yes:)
14051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14052 whose name does not start with the host triplet. If you think this
14053 configuration is useful to you, please write to autoconf@gnu.org." >&5
14054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14055 whose name does not start with the host triplet. If you think this
14056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14057 ac_tool_warned=yes ;;
14058 esac
14059 RANLIB=$ac_ct_RANLIB
14061 else
14062 RANLIB="$ac_cv_prog_RANLIB"
14065 if test -n "$ac_tool_prefix"; then
14066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14067 set dummy ${ac_tool_prefix}strip; ac_word=$2
14068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14070 if test "${ac_cv_prog_STRIP+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073 if test -n "$STRIP"; then
14074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14075 else
14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14079 IFS=$as_save_IFS
14080 test -z "$as_dir" && as_dir=.
14081 for ac_exec_ext in '' $ac_executable_extensions; do
14082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085 break 2
14087 done
14088 done
14089 IFS=$as_save_IFS
14093 STRIP=$ac_cv_prog_STRIP
14094 if test -n "$STRIP"; then
14095 { echo "$as_me:$LINENO: result: $STRIP" >&5
14096 echo "${ECHO_T}$STRIP" >&6; }
14097 else
14098 { echo "$as_me:$LINENO: result: no" >&5
14099 echo "${ECHO_T}no" >&6; }
14104 if test -z "$ac_cv_prog_STRIP"; then
14105 ac_ct_STRIP=$STRIP
14106 # Extract the first word of "strip", so it can be a program name with args.
14107 set dummy strip; ac_word=$2
14108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14110 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 else
14113 if test -n "$ac_ct_STRIP"; then
14114 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14115 else
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14123 ac_cv_prog_ac_ct_STRIP="strip"
14124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14125 break 2
14127 done
14128 done
14129 IFS=$as_save_IFS
14133 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14134 if test -n "$ac_ct_STRIP"; then
14135 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14136 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14137 else
14138 { echo "$as_me:$LINENO: result: no" >&5
14139 echo "${ECHO_T}no" >&6; }
14142 if test "x$ac_ct_STRIP" = x; then
14143 STRIP=":"
14144 else
14145 case $cross_compiling:$ac_tool_warned in
14146 yes:)
14147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14148 whose name does not start with the host triplet. If you think this
14149 configuration is useful to you, please write to autoconf@gnu.org." >&5
14150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14151 whose name does not start with the host triplet. If you think this
14152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14153 ac_tool_warned=yes ;;
14154 esac
14155 STRIP=$ac_ct_STRIP
14157 else
14158 STRIP="$ac_cv_prog_STRIP"
14162 old_CC="$CC"
14163 old_CFLAGS="$CFLAGS"
14165 # Set sane defaults for various variables
14166 test -z "$AR" && AR=ar
14167 test -z "$AR_FLAGS" && AR_FLAGS=cru
14168 test -z "$AS" && AS=as
14169 test -z "$CC" && CC=cc
14170 test -z "$LTCC" && LTCC=$CC
14171 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14172 test -z "$DLLTOOL" && DLLTOOL=dlltool
14173 test -z "$LD" && LD=ld
14174 test -z "$LN_S" && LN_S="ln -s"
14175 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14176 test -z "$NM" && NM=nm
14177 test -z "$SED" && SED=sed
14178 test -z "$OBJDUMP" && OBJDUMP=objdump
14179 test -z "$RANLIB" && RANLIB=:
14180 test -z "$STRIP" && STRIP=:
14181 test -z "$ac_objext" && ac_objext=o
14183 # Determine commands to create old-style static archives.
14184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14185 old_postinstall_cmds='chmod 644 $oldlib'
14186 old_postuninstall_cmds=
14188 if test -n "$RANLIB"; then
14189 case $host_os in
14190 openbsd*)
14191 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14194 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14196 esac
14197 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14200 for cc_temp in $compiler""; do
14201 case $cc_temp in
14202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14204 \-*) ;;
14205 *) break;;
14206 esac
14207 done
14208 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14211 # Only perform the check for file, if the check method requires it
14212 case $deplibs_check_method in
14213 file_magic*)
14214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14215 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14216 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220 case $MAGIC_CMD in
14221 [\\/*] | ?:[\\/]*)
14222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14225 lt_save_MAGIC_CMD="$MAGIC_CMD"
14226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14228 for ac_dir in $ac_dummy; do
14229 IFS="$lt_save_ifs"
14230 test -z "$ac_dir" && ac_dir=.
14231 if test -f $ac_dir/${ac_tool_prefix}file; then
14232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14233 if test -n "$file_magic_test_file"; then
14234 case $deplibs_check_method in
14235 "file_magic "*)
14236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14239 $EGREP "$file_magic_regex" > /dev/null; then
14241 else
14242 cat <<EOF 1>&2
14244 *** Warning: the command libtool uses to detect shared libraries,
14245 *** $file_magic_cmd, produces output that libtool cannot recognize.
14246 *** The result is that libtool may fail to recognize shared libraries
14247 *** as such. This will affect the creation of libtool libraries that
14248 *** depend on shared libraries, but programs linked with such libtool
14249 *** libraries will work regardless of this problem. Nevertheless, you
14250 *** may want to report the problem to your system manager and/or to
14251 *** bug-libtool@gnu.org
14254 fi ;;
14255 esac
14257 break
14259 done
14260 IFS="$lt_save_ifs"
14261 MAGIC_CMD="$lt_save_MAGIC_CMD"
14263 esac
14266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14267 if test -n "$MAGIC_CMD"; then
14268 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14269 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14270 else
14271 { echo "$as_me:$LINENO: result: no" >&5
14272 echo "${ECHO_T}no" >&6; }
14275 if test -z "$lt_cv_path_MAGIC_CMD"; then
14276 if test -n "$ac_tool_prefix"; then
14277 { echo "$as_me:$LINENO: checking for file" >&5
14278 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14279 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282 case $MAGIC_CMD in
14283 [\\/*] | ?:[\\/]*)
14284 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14287 lt_save_MAGIC_CMD="$MAGIC_CMD"
14288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14290 for ac_dir in $ac_dummy; do
14291 IFS="$lt_save_ifs"
14292 test -z "$ac_dir" && ac_dir=.
14293 if test -f $ac_dir/file; then
14294 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14295 if test -n "$file_magic_test_file"; then
14296 case $deplibs_check_method in
14297 "file_magic "*)
14298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14301 $EGREP "$file_magic_regex" > /dev/null; then
14303 else
14304 cat <<EOF 1>&2
14306 *** Warning: the command libtool uses to detect shared libraries,
14307 *** $file_magic_cmd, produces output that libtool cannot recognize.
14308 *** The result is that libtool may fail to recognize shared libraries
14309 *** as such. This will affect the creation of libtool libraries that
14310 *** depend on shared libraries, but programs linked with such libtool
14311 *** libraries will work regardless of this problem. Nevertheless, you
14312 *** may want to report the problem to your system manager and/or to
14313 *** bug-libtool@gnu.org
14316 fi ;;
14317 esac
14319 break
14321 done
14322 IFS="$lt_save_ifs"
14323 MAGIC_CMD="$lt_save_MAGIC_CMD"
14325 esac
14328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14329 if test -n "$MAGIC_CMD"; then
14330 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14331 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14332 else
14333 { echo "$as_me:$LINENO: result: no" >&5
14334 echo "${ECHO_T}no" >&6; }
14337 else
14338 MAGIC_CMD=:
14344 esac
14346 enable_dlopen=yes
14347 enable_win32_dll=no
14349 # Check whether --enable-libtool-lock was given.
14350 if test "${enable_libtool_lock+set}" = set; then
14351 enableval=$enable_libtool_lock;
14354 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14357 # Check whether --with-pic was given.
14358 if test "${with_pic+set}" = set; then
14359 withval=$with_pic; pic_mode="$withval"
14360 else
14361 pic_mode=default
14364 test -z "$pic_mode" && pic_mode=default
14366 # Use C for the default configuration in the libtool script
14367 tagname=
14368 lt_save_CC="$CC"
14369 ac_ext=c
14370 ac_cpp='$CPP $CPPFLAGS'
14371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14376 # Source file extension for C test sources.
14377 ac_ext=c
14379 # Object file extension for compiled C test sources.
14380 objext=o
14381 objext=$objext
14383 # Code to be used in simple compile tests
14384 lt_simple_compile_test_code="int some_variable = 0;\n"
14386 # Code to be used in simple link tests
14387 lt_simple_link_test_code='int main(){return(0);}\n'
14390 # If no C compiler was specified, use CC.
14391 LTCC=${LTCC-"$CC"}
14393 # If no C compiler flags were specified, use CFLAGS.
14394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14396 # Allow CC to be a program name with arguments.
14397 compiler=$CC
14400 # save warnings/boilerplate of simple test code
14401 ac_outfile=conftest.$ac_objext
14402 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14404 _lt_compiler_boilerplate=`cat conftest.err`
14405 $rm conftest*
14407 ac_outfile=conftest.$ac_objext
14408 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14410 _lt_linker_boilerplate=`cat conftest.err`
14411 $rm conftest*
14415 lt_prog_compiler_no_builtin_flag=
14417 if test "$GCC" = yes; then
14418 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14421 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14422 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 else
14426 lt_cv_prog_compiler_rtti_exceptions=no
14427 ac_outfile=conftest.$ac_objext
14428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14429 lt_compiler_flag="-fno-rtti -fno-exceptions"
14430 # Insert the option either (1) after the last *FLAGS variable, or
14431 # (2) before a word containing "conftest.", or (3) at the end.
14432 # Note that $ac_compile itself does not contain backslashes and begins
14433 # with a dollar sign (not a hyphen), so the echo should work correctly.
14434 # The option is referenced via a variable to avoid confusing sed.
14435 lt_compile=`echo "$ac_compile" | $SED \
14436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14438 -e 's:$: $lt_compiler_flag:'`
14439 (eval echo "\"\$as_me:14425: $lt_compile\"" >&5)
14440 (eval "$lt_compile" 2>conftest.err)
14441 ac_status=$?
14442 cat conftest.err >&5
14443 echo "$as_me:14429: \$? = $ac_status" >&5
14444 if (exit $ac_status) && test -s "$ac_outfile"; then
14445 # The compiler can only warn and ignore the option if not recognized
14446 # So say no if there are warnings other than the usual output.
14447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14450 lt_cv_prog_compiler_rtti_exceptions=yes
14453 $rm conftest*
14456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14457 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14460 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14461 else
14467 lt_prog_compiler_wl=
14468 lt_prog_compiler_pic=
14469 lt_prog_compiler_static=
14471 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14472 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14474 if test "$GCC" = yes; then
14475 lt_prog_compiler_wl='-Wl,'
14476 lt_prog_compiler_static='-static'
14478 case $host_os in
14479 aix*)
14480 # All AIX code is PIC.
14481 if test "$host_cpu" = ia64; then
14482 # AIX 5 now supports IA64 processor
14483 lt_prog_compiler_static='-Bstatic'
14487 amigaos*)
14488 # FIXME: we need at least 68020 code to build shared libraries, but
14489 # adding the `-m68020' flag to GCC prevents building anything better,
14490 # like `-m68040'.
14491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14494 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14495 # PIC is the default for these OSes.
14498 mingw* | pw32* | os2*)
14499 # This hack is so that the source file can tell whether it is being
14500 # built for inclusion in a dll (and should export symbols for example).
14501 lt_prog_compiler_pic='-DDLL_EXPORT'
14504 darwin* | rhapsody*)
14505 # PIC is the default on this platform
14506 # Common symbols not allowed in MH_DYLIB files
14507 lt_prog_compiler_pic='-fno-common'
14510 interix3*)
14511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14512 # Instead, we relocate shared libraries at runtime.
14515 msdosdjgpp*)
14516 # Just because we use GCC doesn't mean we suddenly get shared libraries
14517 # on systems that don't support them.
14518 lt_prog_compiler_can_build_shared=no
14519 enable_shared=no
14522 sysv4*MP*)
14523 if test -d /usr/nec; then
14524 lt_prog_compiler_pic=-Kconform_pic
14528 hpux*)
14529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14530 # not for PA HP-UX.
14531 case $host_cpu in
14532 hppa*64*|ia64*)
14533 # +Z the default
14536 lt_prog_compiler_pic='-fPIC'
14538 esac
14542 lt_prog_compiler_pic='-fPIC'
14544 esac
14545 else
14546 # PORTME Check for flag to pass linker flags through the system compiler.
14547 case $host_os in
14548 aix*)
14549 lt_prog_compiler_wl='-Wl,'
14550 if test "$host_cpu" = ia64; then
14551 # AIX 5 now supports IA64 processor
14552 lt_prog_compiler_static='-Bstatic'
14553 else
14554 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14557 darwin*)
14558 # PIC is the default on this platform
14559 # Common symbols not allowed in MH_DYLIB files
14560 case $cc_basename in
14561 xlc*)
14562 lt_prog_compiler_pic='-qnocommon'
14563 lt_prog_compiler_wl='-Wl,'
14565 esac
14568 mingw* | pw32* | os2*)
14569 # This hack is so that the source file can tell whether it is being
14570 # built for inclusion in a dll (and should export symbols for example).
14571 lt_prog_compiler_pic='-DDLL_EXPORT'
14574 hpux9* | hpux10* | hpux11*)
14575 lt_prog_compiler_wl='-Wl,'
14576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14577 # not for PA HP-UX.
14578 case $host_cpu in
14579 hppa*64*|ia64*)
14580 # +Z the default
14583 lt_prog_compiler_pic='+Z'
14585 esac
14586 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14587 lt_prog_compiler_static='${wl}-a ${wl}archive'
14590 irix5* | irix6* | nonstopux*)
14591 lt_prog_compiler_wl='-Wl,'
14592 # PIC (with -KPIC) is the default.
14593 lt_prog_compiler_static='-non_shared'
14596 newsos6)
14597 lt_prog_compiler_pic='-KPIC'
14598 lt_prog_compiler_static='-Bstatic'
14601 linux*)
14602 case $cc_basename in
14603 icc* | ecc*)
14604 lt_prog_compiler_wl='-Wl,'
14605 lt_prog_compiler_pic='-KPIC'
14606 lt_prog_compiler_static='-static'
14608 pgcc* | pgf77* | pgf90* | pgf95*)
14609 # Portland Group compilers (*not* the Pentium gcc compiler,
14610 # which looks to be a dead project)
14611 lt_prog_compiler_wl='-Wl,'
14612 lt_prog_compiler_pic='-fpic'
14613 lt_prog_compiler_static='-Bstatic'
14615 ccc*)
14616 lt_prog_compiler_wl='-Wl,'
14617 # All Alpha code is PIC.
14618 lt_prog_compiler_static='-non_shared'
14620 esac
14623 osf3* | osf4* | osf5*)
14624 lt_prog_compiler_wl='-Wl,'
14625 # All OSF/1 code is PIC.
14626 lt_prog_compiler_static='-non_shared'
14629 solaris*)
14630 lt_prog_compiler_pic='-KPIC'
14631 lt_prog_compiler_static='-Bstatic'
14632 case $cc_basename in
14633 f77* | f90* | f95*)
14634 lt_prog_compiler_wl='-Qoption ld ';;
14636 lt_prog_compiler_wl='-Wl,';;
14637 esac
14640 sunos4*)
14641 lt_prog_compiler_wl='-Qoption ld '
14642 lt_prog_compiler_pic='-PIC'
14643 lt_prog_compiler_static='-Bstatic'
14646 sysv4 | sysv4.2uw2* | sysv4.3*)
14647 lt_prog_compiler_wl='-Wl,'
14648 lt_prog_compiler_pic='-KPIC'
14649 lt_prog_compiler_static='-Bstatic'
14652 sysv4*MP*)
14653 if test -d /usr/nec ;then
14654 lt_prog_compiler_pic='-Kconform_pic'
14655 lt_prog_compiler_static='-Bstatic'
14659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14660 lt_prog_compiler_wl='-Wl,'
14661 lt_prog_compiler_pic='-KPIC'
14662 lt_prog_compiler_static='-Bstatic'
14665 unicos*)
14666 lt_prog_compiler_wl='-Wl,'
14667 lt_prog_compiler_can_build_shared=no
14670 uts4*)
14671 lt_prog_compiler_pic='-pic'
14672 lt_prog_compiler_static='-Bstatic'
14676 lt_prog_compiler_can_build_shared=no
14678 esac
14681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14682 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14685 # Check to make sure the PIC flag actually works.
14687 if test -n "$lt_prog_compiler_pic"; then
14689 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14690 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14691 if test "${lt_prog_compiler_pic_works+set}" = set; then
14692 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 else
14694 lt_prog_compiler_pic_works=no
14695 ac_outfile=conftest.$ac_objext
14696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14697 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14698 # Insert the option either (1) after the last *FLAGS variable, or
14699 # (2) before a word containing "conftest.", or (3) at the end.
14700 # Note that $ac_compile itself does not contain backslashes and begins
14701 # with a dollar sign (not a hyphen), so the echo should work correctly.
14702 # The option is referenced via a variable to avoid confusing sed.
14703 lt_compile=`echo "$ac_compile" | $SED \
14704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14706 -e 's:$: $lt_compiler_flag:'`
14707 (eval echo "\"\$as_me:14693: $lt_compile\"" >&5)
14708 (eval "$lt_compile" 2>conftest.err)
14709 ac_status=$?
14710 cat conftest.err >&5
14711 echo "$as_me:14697: \$? = $ac_status" >&5
14712 if (exit $ac_status) && test -s "$ac_outfile"; then
14713 # The compiler can only warn and ignore the option if not recognized
14714 # So say no if there are warnings other than the usual output.
14715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14718 lt_prog_compiler_pic_works=yes
14721 $rm conftest*
14724 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14725 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14727 if test x"$lt_prog_compiler_pic_works" = xyes; then
14728 case $lt_prog_compiler_pic in
14729 "" | " "*) ;;
14730 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14731 esac
14732 else
14733 lt_prog_compiler_pic=
14734 lt_prog_compiler_can_build_shared=no
14738 case $host_os in
14739 # For platforms which do not support PIC, -DPIC is meaningless:
14740 *djgpp*)
14741 lt_prog_compiler_pic=
14744 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14746 esac
14749 # Check to make sure the static flag actually works.
14751 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14752 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14753 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14754 if test "${lt_prog_compiler_static_works+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 lt_prog_compiler_static_works=no
14758 save_LDFLAGS="$LDFLAGS"
14759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14760 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14762 # The linker can only warn and ignore the option if not recognized
14763 # So say no if there are warnings
14764 if test -s conftest.err; then
14765 # Append any errors to the config.log.
14766 cat conftest.err 1>&5
14767 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14769 if diff conftest.exp conftest.er2 >/dev/null; then
14770 lt_prog_compiler_static_works=yes
14772 else
14773 lt_prog_compiler_static_works=yes
14776 $rm conftest*
14777 LDFLAGS="$save_LDFLAGS"
14780 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14781 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14783 if test x"$lt_prog_compiler_static_works" = xyes; then
14785 else
14786 lt_prog_compiler_static=
14790 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795 lt_cv_prog_compiler_c_o=no
14796 $rm -r conftest 2>/dev/null
14797 mkdir conftest
14798 cd conftest
14799 mkdir out
14800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14802 lt_compiler_flag="-o out/conftest2.$ac_objext"
14803 # Insert the option either (1) after the last *FLAGS variable, or
14804 # (2) before a word containing "conftest.", or (3) at the end.
14805 # Note that $ac_compile itself does not contain backslashes and begins
14806 # with a dollar sign (not a hyphen), so the echo should work correctly.
14807 lt_compile=`echo "$ac_compile" | $SED \
14808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14810 -e 's:$: $lt_compiler_flag:'`
14811 (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14812 (eval "$lt_compile" 2>out/conftest.err)
14813 ac_status=$?
14814 cat out/conftest.err >&5
14815 echo "$as_me:14801: \$? = $ac_status" >&5
14816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14817 then
14818 # The compiler can only warn and ignore the option if not recognized
14819 # So say no if there are warnings
14820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14823 lt_cv_prog_compiler_c_o=yes
14826 chmod u+w . 2>&5
14827 $rm conftest*
14828 # SGI C++ compiler will create directory out/ii_files/ for
14829 # template instantiation
14830 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14831 $rm out/* && rmdir out
14832 cd ..
14833 rmdir conftest
14834 $rm conftest*
14837 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14841 hard_links="nottested"
14842 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14843 # do not overwrite the value of need_locks provided by the user
14844 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14845 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14846 hard_links=yes
14847 $rm conftest*
14848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14849 touch conftest.a
14850 ln conftest.a conftest.b 2>&5 || hard_links=no
14851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14852 { echo "$as_me:$LINENO: result: $hard_links" >&5
14853 echo "${ECHO_T}$hard_links" >&6; }
14854 if test "$hard_links" = no; then
14855 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14856 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14857 need_locks=warn
14859 else
14860 need_locks=no
14863 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14864 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14866 runpath_var=
14867 allow_undefined_flag=
14868 enable_shared_with_static_runtimes=no
14869 archive_cmds=
14870 archive_expsym_cmds=
14871 old_archive_From_new_cmds=
14872 old_archive_from_expsyms_cmds=
14873 export_dynamic_flag_spec=
14874 whole_archive_flag_spec=
14875 thread_safe_flag_spec=
14876 hardcode_libdir_flag_spec=
14877 hardcode_libdir_flag_spec_ld=
14878 hardcode_libdir_separator=
14879 hardcode_direct=no
14880 hardcode_minus_L=no
14881 hardcode_shlibpath_var=unsupported
14882 link_all_deplibs=unknown
14883 hardcode_automatic=no
14884 module_cmds=
14885 module_expsym_cmds=
14886 always_export_symbols=no
14887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14888 # include_expsyms should be a list of space-separated symbols to be *always*
14889 # included in the symbol list
14890 include_expsyms=
14891 # exclude_expsyms can be an extended regexp of symbols to exclude
14892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14894 # as well as any symbol that contains `d'.
14895 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14897 # platforms (ab)use it in PIC code, but their linkers get confused if
14898 # the symbol is explicitly referenced. Since portable code cannot
14899 # rely on this symbol name, it's probably fine to never include it in
14900 # preloaded symbol tables.
14901 extract_expsyms_cmds=
14902 # Just being paranoid about ensuring that cc_basename is set.
14903 for cc_temp in $compiler""; do
14904 case $cc_temp in
14905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14907 \-*) ;;
14908 *) break;;
14909 esac
14910 done
14911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14913 case $host_os in
14914 cygwin* | mingw* | pw32*)
14915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14916 # When not using gcc, we currently assume that we are using
14917 # Microsoft Visual C++.
14918 if test "$GCC" != yes; then
14919 with_gnu_ld=no
14922 interix*)
14923 # we just hope/assume this is gcc and not c89 (= MSVC++)
14924 with_gnu_ld=yes
14926 openbsd*)
14927 with_gnu_ld=no
14929 esac
14931 ld_shlibs=yes
14932 if test "$with_gnu_ld" = yes; then
14933 # If archive_cmds runs LD, not CC, wlarc should be empty
14934 wlarc='${wl}'
14936 # Set some defaults for GNU ld with shared library support. These
14937 # are reset later if shared libraries are not supported. Putting them
14938 # here allows them to be overridden if necessary.
14939 runpath_var=LD_RUN_PATH
14940 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14941 export_dynamic_flag_spec='${wl}--export-dynamic'
14942 # ancient GNU ld didn't support --whole-archive et. al.
14943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14944 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14945 else
14946 whole_archive_flag_spec=
14948 supports_anon_versioning=no
14949 case `$LD -v 2>/dev/null` in
14950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14953 *\ 2.11.*) ;; # other 2.11 versions
14954 *) supports_anon_versioning=yes ;;
14955 esac
14957 # See if GNU ld supports shared libraries.
14958 case $host_os in
14959 aix3* | aix4* | aix5*)
14960 # On AIX/PPC, the GNU linker is very broken
14961 if test "$host_cpu" != ia64; then
14962 ld_shlibs=no
14963 cat <<EOF 1>&2
14965 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14966 *** to be unable to reliably create shared libraries on AIX.
14967 *** Therefore, libtool is disabling shared libraries support. If you
14968 *** really care for shared libraries, you may want to modify your PATH
14969 *** so that a non-GNU linker is found, and then restart.
14975 amigaos*)
14976 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)'
14977 hardcode_libdir_flag_spec='-L$libdir'
14978 hardcode_minus_L=yes
14980 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14981 # that the semantics of dynamic libraries on AmigaOS, at least up
14982 # to version 4, is to share data among multiple programs linked
14983 # with the same dynamic library. Since this doesn't match the
14984 # behavior of shared libraries on other platforms, we can't use
14985 # them.
14986 ld_shlibs=no
14989 beos*)
14990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14991 allow_undefined_flag=unsupported
14992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14993 # support --undefined. This deserves some investigation. FIXME
14994 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14995 else
14996 ld_shlibs=no
15000 cygwin* | mingw* | pw32*)
15001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15002 # as there is no search path for DLLs.
15003 hardcode_libdir_flag_spec='-L$libdir'
15004 allow_undefined_flag=unsupported
15005 always_export_symbols=no
15006 enable_shared_with_static_runtimes=yes
15007 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15011 # If the export-symbols file already is a .def file (1st line
15012 # is EXPORTS), use it as is; otherwise, prepend...
15013 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15014 cp $export_symbols $output_objdir/$soname.def;
15015 else
15016 echo EXPORTS > $output_objdir/$soname.def;
15017 cat $export_symbols >> $output_objdir/$soname.def;
15019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15020 else
15021 ld_shlibs=no
15025 interix3*)
15026 hardcode_direct=no
15027 hardcode_shlibpath_var=no
15028 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15029 export_dynamic_flag_spec='${wl}-E'
15030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15031 # Instead, shared libraries are loaded at an image base (0x10000000 by
15032 # default) and relocated if they conflict, which is a slow very memory
15033 # consuming and fragmenting process. To avoid this, we pick a random,
15034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15036 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15037 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'
15040 linux*)
15041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15042 tmp_addflag=
15043 case $cc_basename,$host_cpu in
15044 pgcc*) # Portland Group C compiler
15045 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'
15046 tmp_addflag=' $pic_flag'
15048 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15049 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'
15050 tmp_addflag=' $pic_flag -Mnomain' ;;
15051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15052 tmp_addflag=' -i_dynamic' ;;
15053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15054 tmp_addflag=' -i_dynamic -nofor_main' ;;
15055 ifc* | ifort*) # Intel Fortran compiler
15056 tmp_addflag=' -nofor_main' ;;
15057 esac
15058 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15060 if test $supports_anon_versioning = yes; then
15061 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15063 $echo "local: *; };" >> $output_objdir/$libname.ver~
15064 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15066 else
15067 ld_shlibs=no
15071 netbsd*)
15072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15073 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15074 wlarc=
15075 else
15076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15081 solaris*)
15082 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15083 ld_shlibs=no
15084 cat <<EOF 1>&2
15086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15087 *** create shared libraries on Solaris systems. Therefore, libtool
15088 *** is disabling shared libraries support. We urge you to upgrade GNU
15089 *** binutils to release 2.9.1 or newer. Another option is to modify
15090 *** your PATH or compiler configuration so that the native linker is
15091 *** used, and then restart.
15094 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15097 else
15098 ld_shlibs=no
15102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15103 case `$LD -v 2>&1` in
15104 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15105 ld_shlibs=no
15106 cat <<_LT_EOF 1>&2
15108 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15109 *** reliably create shared libraries on SCO systems. Therefore, libtool
15110 *** is disabling shared libraries support. We urge you to upgrade GNU
15111 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15112 *** your PATH or compiler configuration so that the native linker is
15113 *** used, and then restart.
15115 _LT_EOF
15118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15119 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15122 else
15123 ld_shlibs=no
15126 esac
15129 sunos4*)
15130 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15131 wlarc=
15132 hardcode_direct=yes
15133 hardcode_shlibpath_var=no
15137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15140 else
15141 ld_shlibs=no
15144 esac
15146 if test "$ld_shlibs" = no; then
15147 runpath_var=
15148 hardcode_libdir_flag_spec=
15149 export_dynamic_flag_spec=
15150 whole_archive_flag_spec=
15152 else
15153 # PORTME fill in a description of your system's linker (not GNU ld)
15154 case $host_os in
15155 aix3*)
15156 allow_undefined_flag=unsupported
15157 always_export_symbols=yes
15158 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'
15159 # Note: this linker hardcodes the directories in LIBPATH if there
15160 # are no directories specified by -L.
15161 hardcode_minus_L=yes
15162 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15163 # Neither direct hardcoding nor static linking is supported with a
15164 # broken collect2.
15165 hardcode_direct=unsupported
15169 aix4* | aix5*)
15170 if test "$host_cpu" = ia64; then
15171 # On IA64, the linker does run time linking by default, so we don't
15172 # have to do anything special.
15173 aix_use_runtimelinking=no
15174 exp_sym_flag='-Bexport'
15175 no_entry_flag=""
15176 else
15177 # If we're using GNU nm, then we don't want the "-C" option.
15178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15179 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15180 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'
15181 else
15182 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'
15184 aix_use_runtimelinking=no
15186 # Test if we are trying to use run time linking or normal
15187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15188 # need to do runtime linking.
15189 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15190 for ld_flag in $LDFLAGS; do
15191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15192 aix_use_runtimelinking=yes
15193 break
15195 done
15197 esac
15199 exp_sym_flag='-bexport'
15200 no_entry_flag='-bnoentry'
15203 # When large executables or shared objects are built, AIX ld can
15204 # have problems creating the table of contents. If linking a library
15205 # or program results in "error TOC overflow" add -mminimal-toc to
15206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15209 archive_cmds=''
15210 hardcode_direct=yes
15211 hardcode_libdir_separator=':'
15212 link_all_deplibs=yes
15214 if test "$GCC" = yes; then
15215 case $host_os in aix4.[012]|aix4.[012].*)
15216 # We only want to do this on AIX 4.2 and lower, the check
15217 # below for broken collect2 doesn't work under 4.3+
15218 collect2name=`${CC} -print-prog-name=collect2`
15219 if test -f "$collect2name" && \
15220 strings "$collect2name" | grep resolve_lib_name >/dev/null
15221 then
15222 # We have reworked collect2
15223 hardcode_direct=yes
15224 else
15225 # We have old collect2
15226 hardcode_direct=unsupported
15227 # It fails to find uninstalled libraries when the uninstalled
15228 # path is not listed in the libpath. Setting hardcode_minus_L
15229 # to unsupported forces relinking
15230 hardcode_minus_L=yes
15231 hardcode_libdir_flag_spec='-L$libdir'
15232 hardcode_libdir_separator=
15235 esac
15236 shared_flag='-shared'
15237 if test "$aix_use_runtimelinking" = yes; then
15238 shared_flag="$shared_flag "'${wl}-G'
15240 else
15241 # not using gcc
15242 if test "$host_cpu" = ia64; then
15243 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15244 # chokes on -Wl,-G. The following line is correct:
15245 shared_flag='-G'
15246 else
15247 if test "$aix_use_runtimelinking" = yes; then
15248 shared_flag='${wl}-G'
15249 else
15250 shared_flag='${wl}-bM:SRE'
15255 # It seems that -bexpall does not export symbols beginning with
15256 # underscore (_), so it is better to generate a list of symbols to export.
15257 always_export_symbols=yes
15258 if test "$aix_use_runtimelinking" = yes; then
15259 # Warning - without using the other runtime loading flags (-brtl),
15260 # -berok will link without error, but may produce a broken library.
15261 allow_undefined_flag='-berok'
15262 # Determine the default libpath from the value encoded in an empty executable.
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h. */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15271 main ()
15275 return 0;
15277 _ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (ac_try="$ac_link"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283 esac
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_link") 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest$ac_exeext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15315 # Check for a 64-bit object if we didn't find anything.
15316 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15317 }'`; fi
15318 else
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15325 rm -f core conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15330 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"
15331 else
15332 if test "$host_cpu" = ia64; then
15333 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15334 allow_undefined_flag="-z nodefs"
15335 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"
15336 else
15337 # Determine the default libpath from the value encoded in an empty executable.
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h. */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15346 main ()
15350 return 0;
15352 _ACEOF
15353 rm -f conftest.$ac_objext conftest$ac_exeext
15354 if { (ac_try="$ac_link"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358 esac
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_link") 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } &&
15367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15368 { (case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_try") 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; } &&
15377 { ac_try='test -s conftest$ac_exeext'
15378 { (case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15381 esac
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_try") 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15390 # Check for a 64-bit object if we didn't find anything.
15391 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15392 }'`; fi
15393 else
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15400 rm -f core conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15405 # Warning - without using the other run time loading flags,
15406 # -berok will link without error, but may produce a broken library.
15407 no_undefined_flag=' ${wl}-bernotok'
15408 allow_undefined_flag=' ${wl}-berok'
15409 # Exported symbols can be pulled into shared objects from archives
15410 whole_archive_flag_spec='$convenience'
15411 archive_cmds_need_lc=yes
15412 # This is similar to how AIX traditionally builds its shared libraries.
15413 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'
15418 amigaos*)
15419 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)'
15420 hardcode_libdir_flag_spec='-L$libdir'
15421 hardcode_minus_L=yes
15422 # see comment about different semantics on the GNU ld section
15423 ld_shlibs=no
15426 bsdi[45]*)
15427 export_dynamic_flag_spec=-rdynamic
15430 cygwin* | mingw* | pw32*)
15431 # When not using gcc, we currently assume that we are using
15432 # Microsoft Visual C++.
15433 # hardcode_libdir_flag_spec is actually meaningless, as there is
15434 # no search path for DLLs.
15435 hardcode_libdir_flag_spec=' '
15436 allow_undefined_flag=unsupported
15437 # Tell ltmain to make .lib files, not .a files.
15438 libext=lib
15439 # Tell ltmain to make .dll files, not .so files.
15440 shrext_cmds=".dll"
15441 # FIXME: Setting linknames here is a bad hack.
15442 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15443 # The linker will automatically build a .lib file if we build a DLL.
15444 old_archive_From_new_cmds='true'
15445 # FIXME: Should let the user specify the lib program.
15446 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15447 fix_srcfile_path='`cygpath -w "$srcfile"`'
15448 enable_shared_with_static_runtimes=yes
15451 darwin* | rhapsody*)
15452 case $host_os in
15453 rhapsody* | darwin1.[012])
15454 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15456 *) # Darwin 1.3 on
15457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15458 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15459 else
15460 case ${MACOSX_DEPLOYMENT_TARGET} in
15461 10.[012])
15462 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15464 10.*)
15465 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15467 esac
15470 esac
15471 archive_cmds_need_lc=no
15472 hardcode_direct=no
15473 hardcode_automatic=yes
15474 hardcode_shlibpath_var=unsupported
15475 whole_archive_flag_spec=''
15476 link_all_deplibs=yes
15477 if test "$GCC" = yes ; then
15478 output_verbose_link_cmd='echo'
15479 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15480 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15482 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}'
15483 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}'
15484 else
15485 case $cc_basename in
15486 xlc*)
15487 output_verbose_link_cmd='echo'
15488 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15489 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15491 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15492 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}'
15495 ld_shlibs=no
15497 esac
15501 dgux*)
15502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15503 hardcode_libdir_flag_spec='-L$libdir'
15504 hardcode_shlibpath_var=no
15507 freebsd1*)
15508 ld_shlibs=no
15511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15512 # support. Future versions do this automatically, but an explicit c++rt0.o
15513 # does not break anything, and helps significantly (at the cost of a little
15514 # extra space).
15515 freebsd2.2*)
15516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15517 hardcode_libdir_flag_spec='-R$libdir'
15518 hardcode_direct=yes
15519 hardcode_shlibpath_var=no
15522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15523 freebsd2*)
15524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15525 hardcode_direct=yes
15526 hardcode_minus_L=yes
15527 hardcode_shlibpath_var=no
15530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15531 freebsd* | kfreebsd*-gnu | dragonfly*)
15532 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15533 hardcode_libdir_flag_spec='-R$libdir'
15534 hardcode_direct=yes
15535 hardcode_shlibpath_var=no
15538 hpux9*)
15539 if test "$GCC" = yes; then
15540 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'
15541 else
15542 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'
15544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15545 hardcode_libdir_separator=:
15546 hardcode_direct=yes
15548 # hardcode_minus_L: Not really in the search PATH,
15549 # but as the default location of the library.
15550 hardcode_minus_L=yes
15551 export_dynamic_flag_spec='${wl}-E'
15554 hpux10*)
15555 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15556 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15557 else
15558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15560 if test "$with_gnu_ld" = no; then
15561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15562 hardcode_libdir_separator=:
15564 hardcode_direct=yes
15565 export_dynamic_flag_spec='${wl}-E'
15567 # hardcode_minus_L: Not really in the search PATH,
15568 # but as the default location of the library.
15569 hardcode_minus_L=yes
15573 hpux11*)
15574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15575 case $host_cpu in
15576 hppa*64*)
15577 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 ia64*)
15580 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15583 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15585 esac
15586 else
15587 case $host_cpu in
15588 hppa*64*)
15589 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 ia64*)
15592 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15597 esac
15599 if test "$with_gnu_ld" = no; then
15600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15601 hardcode_libdir_separator=:
15603 case $host_cpu in
15604 hppa*64*|ia64*)
15605 hardcode_libdir_flag_spec_ld='+b $libdir'
15606 hardcode_direct=no
15607 hardcode_shlibpath_var=no
15610 hardcode_direct=yes
15611 export_dynamic_flag_spec='${wl}-E'
15613 # hardcode_minus_L: Not really in the search PATH,
15614 # but as the default location of the library.
15615 hardcode_minus_L=yes
15617 esac
15621 irix5* | irix6* | nonstopux*)
15622 if test "$GCC" = yes; then
15623 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'
15624 else
15625 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'
15626 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15629 hardcode_libdir_separator=:
15630 link_all_deplibs=yes
15633 netbsd*)
15634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15636 else
15637 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15639 hardcode_libdir_flag_spec='-R$libdir'
15640 hardcode_direct=yes
15641 hardcode_shlibpath_var=no
15644 newsos6)
15645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646 hardcode_direct=yes
15647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15648 hardcode_libdir_separator=:
15649 hardcode_shlibpath_var=no
15652 openbsd*)
15653 hardcode_direct=yes
15654 hardcode_shlibpath_var=no
15655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15659 export_dynamic_flag_spec='${wl}-E'
15660 else
15661 case $host_os in
15662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15664 hardcode_libdir_flag_spec='-R$libdir'
15667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15670 esac
15674 os2*)
15675 hardcode_libdir_flag_spec='-L$libdir'
15676 hardcode_minus_L=yes
15677 allow_undefined_flag=unsupported
15678 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'
15679 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15682 osf3*)
15683 if test "$GCC" = yes; then
15684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15685 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'
15686 else
15687 allow_undefined_flag=' -expect_unresolved \*'
15688 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'
15690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15691 hardcode_libdir_separator=:
15694 osf4* | osf5*) # as osf3* with the addition of -msym flag
15695 if test "$GCC" = yes; then
15696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15697 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'
15698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15699 else
15700 allow_undefined_flag=' -expect_unresolved \*'
15701 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'
15702 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15703 $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'
15705 # Both c and cxx compiler support -rpath directly
15706 hardcode_libdir_flag_spec='-rpath $libdir'
15708 hardcode_libdir_separator=:
15711 solaris*)
15712 no_undefined_flag=' -z text'
15713 if test "$GCC" = yes; then
15714 wlarc='${wl}'
15715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15716 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15717 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15718 else
15719 wlarc=''
15720 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15721 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15724 hardcode_libdir_flag_spec='-R$libdir'
15725 hardcode_shlibpath_var=no
15726 case $host_os in
15727 solaris2.[0-5] | solaris2.[0-5].*) ;;
15729 # The compiler driver will combine linker options so we
15730 # cannot just pass the convience library names through
15731 # without $wl, iff we do not link with $LD.
15732 # Luckily, gcc supports the same syntax we need for Sun Studio.
15733 # Supported since Solaris 2.6 (maybe 2.5.1?)
15734 case $wlarc in
15736 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15738 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15739 esac ;;
15740 esac
15741 link_all_deplibs=yes
15744 sunos4*)
15745 if test "x$host_vendor" = xsequent; then
15746 # Use $CC to link under sequent, because it throws in some extra .o
15747 # files that make .init and .fini sections work.
15748 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15749 else
15750 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_libdir_flag_spec='-L$libdir'
15753 hardcode_direct=yes
15754 hardcode_minus_L=yes
15755 hardcode_shlibpath_var=no
15758 sysv4)
15759 case $host_vendor in
15760 sni)
15761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762 hardcode_direct=yes # is this really true???
15764 siemens)
15765 ## LD is ld it makes a PLAMLIB
15766 ## CC just makes a GrossModule.
15767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15768 reload_cmds='$CC -r -o $output$reload_objs'
15769 hardcode_direct=no
15771 motorola)
15772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15773 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15775 esac
15776 runpath_var='LD_RUN_PATH'
15777 hardcode_shlibpath_var=no
15780 sysv4.3*)
15781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782 hardcode_shlibpath_var=no
15783 export_dynamic_flag_spec='-Bexport'
15786 sysv4*MP*)
15787 if test -d /usr/nec; then
15788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789 hardcode_shlibpath_var=no
15790 runpath_var=LD_RUN_PATH
15791 hardcode_runpath_var=yes
15792 ld_shlibs=yes
15796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15797 no_undefined_flag='${wl}-z,text'
15798 archive_cmds_need_lc=no
15799 hardcode_shlibpath_var=no
15800 runpath_var='LD_RUN_PATH'
15802 if test "$GCC" = yes; then
15803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15805 else
15806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15811 sysv5* | sco3.2v5* | sco5v6*)
15812 # Note: We can NOT use -z defs as we might desire, because we do not
15813 # link with -lc, and that would cause any symbols used from libc to
15814 # always be unresolved, which means just about no library would
15815 # ever link correctly. If we're not using GNU ld we use -z text
15816 # though, which does catch some bad symbols but isn't as heavy-handed
15817 # as -z defs.
15818 no_undefined_flag='${wl}-z,text'
15819 allow_undefined_flag='${wl}-z,nodefs'
15820 archive_cmds_need_lc=no
15821 hardcode_shlibpath_var=no
15822 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15823 hardcode_libdir_separator=':'
15824 link_all_deplibs=yes
15825 export_dynamic_flag_spec='${wl}-Bexport'
15826 runpath_var='LD_RUN_PATH'
15828 if test "$GCC" = yes; then
15829 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15830 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831 else
15832 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15837 uts4*)
15838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_libdir_flag_spec='-L$libdir'
15840 hardcode_shlibpath_var=no
15844 ld_shlibs=no
15846 esac
15849 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15850 echo "${ECHO_T}$ld_shlibs" >&6; }
15851 test "$ld_shlibs" = no && can_build_shared=no
15854 # Do we need to explicitly link libc?
15856 case "x$archive_cmds_need_lc" in
15857 x|xyes)
15858 # Assume -lc should be added
15859 archive_cmds_need_lc=yes
15861 if test "$enable_shared" = yes && test "$GCC" = yes; then
15862 case $archive_cmds in
15863 *'~'*)
15864 # FIXME: we may have to deal with multi-command sequences.
15866 '$CC '*)
15867 # Test whether the compiler implicitly links with -lc since on some
15868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15869 # to ld, don't add -lc before -lgcc.
15870 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15871 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15872 $rm conftest*
15873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15876 (eval $ac_compile) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } 2>conftest.err; then
15880 soname=conftest
15881 lib=conftest
15882 libobjs=conftest.$ac_objext
15883 deplibs=
15884 wl=$lt_prog_compiler_wl
15885 pic_flag=$lt_prog_compiler_pic
15886 compiler_flags=-v
15887 linker_flags=-v
15888 verstring=
15889 output_objdir=.
15890 libname=conftest
15891 lt_save_allow_undefined_flag=$allow_undefined_flag
15892 allow_undefined_flag=
15893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15894 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }
15898 then
15899 archive_cmds_need_lc=no
15900 else
15901 archive_cmds_need_lc=yes
15903 allow_undefined_flag=$lt_save_allow_undefined_flag
15904 else
15905 cat conftest.err 1>&5
15907 $rm conftest*
15908 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15909 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15911 esac
15914 esac
15916 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15918 library_names_spec=
15919 libname_spec='lib$name'
15920 soname_spec=
15921 shrext_cmds=".so"
15922 postinstall_cmds=
15923 postuninstall_cmds=
15924 finish_cmds=
15925 finish_eval=
15926 shlibpath_var=
15927 shlibpath_overrides_runpath=unknown
15928 version_type=none
15929 dynamic_linker="$host_os ld.so"
15930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15931 if test "$GCC" = yes; then
15932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15934 # if the path contains ";" then we assume it to be the separator
15935 # otherwise default to the standard path separator (i.e. ":") - it is
15936 # assumed that no part of a normal pathname contains ";" but that should
15937 # okay in the real world where ";" in dirpaths is itself problematic.
15938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15939 else
15940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15942 else
15943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15945 need_lib_prefix=unknown
15946 hardcode_into_libs=no
15948 # when you set need_version to no, make sure it does not cause -set_version
15949 # flags to be left without arguments
15950 need_version=unknown
15952 case $host_os in
15953 aix3*)
15954 version_type=linux
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15956 shlibpath_var=LIBPATH
15958 # AIX 3 has no versioning support, so we append a major version to the name.
15959 soname_spec='${libname}${release}${shared_ext}$major'
15962 aix4* | aix5*)
15963 version_type=linux
15964 need_lib_prefix=no
15965 need_version=no
15966 hardcode_into_libs=yes
15967 if test "$host_cpu" = ia64; then
15968 # AIX 5 supports IA64
15969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15970 shlibpath_var=LD_LIBRARY_PATH
15971 else
15972 # With GCC up to 2.95.x, collect2 would create an import file
15973 # for dependence libraries. The import file would start with
15974 # the line `#! .'. This would cause the generated library to
15975 # depend on `.', always an invalid library. This was fixed in
15976 # development snapshots of GCC prior to 3.0.
15977 case $host_os in
15978 aix4 | aix4.[01] | aix4.[01].*)
15979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15980 echo ' yes '
15981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15983 else
15984 can_build_shared=no
15987 esac
15988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15989 # soname into executable. Probably we can add versioning support to
15990 # collect2, so additional links can be useful in future.
15991 if test "$aix_use_runtimelinking" = yes; then
15992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15993 # instead of lib<name>.a to let people know that these are not
15994 # typical AIX shared libraries.
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 else
15997 # We preserve .a as extension for shared libraries through AIX4.2
15998 # and later when we are not doing run time linking.
15999 library_names_spec='${libname}${release}.a $libname.a'
16000 soname_spec='${libname}${release}${shared_ext}$major'
16002 shlibpath_var=LIBPATH
16006 amigaos*)
16007 library_names_spec='$libname.ixlibrary $libname.a'
16008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16009 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'
16012 beos*)
16013 library_names_spec='${libname}${shared_ext}'
16014 dynamic_linker="$host_os ld.so"
16015 shlibpath_var=LIBRARY_PATH
16018 bsdi[45]*)
16019 version_type=linux
16020 need_version=no
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022 soname_spec='${libname}${release}${shared_ext}$major'
16023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16024 shlibpath_var=LD_LIBRARY_PATH
16025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16027 # the default ld.so.conf also contains /usr/contrib/lib and
16028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16029 # libtool to hard-code these into programs
16032 cygwin* | mingw* | pw32*)
16033 version_type=windows
16034 shrext_cmds=".dll"
16035 need_version=no
16036 need_lib_prefix=no
16038 case $GCC,$host_os in
16039 yes,cygwin* | yes,mingw* | yes,pw32*)
16040 library_names_spec='$libname.dll.a'
16041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16042 postinstall_cmds='base_file=`basename \${file}`~
16043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16044 dldir=$destdir/`dirname \$dlpath`~
16045 test -d \$dldir || mkdir -p \$dldir~
16046 $install_prog $dir/$dlname \$dldir/$dlname~
16047 chmod a+x \$dldir/$dlname'
16048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16049 dlpath=$dir/\$dldll~
16050 $rm \$dlpath'
16051 shlibpath_overrides_runpath=yes
16053 case $host_os in
16054 cygwin*)
16055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16059 mingw*)
16060 # MinGW DLLs use traditional 'lib' prefix
16061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16063 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16064 # It is most probably a Windows format PATH printed by
16065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16066 # path with ; separators, and with drive letters. We can handle the
16067 # drive letters (cygwin fileutils understands them), so leave them,
16068 # especially as we might pass files found there to a mingw objdump,
16069 # which wouldn't understand a cygwinified path. Ahh.
16070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16071 else
16072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16075 pw32*)
16076 # pw32 DLLs use 'pw' prefix rather than 'lib'
16077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16079 esac
16083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16085 esac
16086 dynamic_linker='Win32 ld.exe'
16087 # FIXME: first we should search . and the directory the executable is in
16088 shlibpath_var=PATH
16091 darwin* | rhapsody*)
16092 dynamic_linker="$host_os dyld"
16093 version_type=darwin
16094 need_lib_prefix=no
16095 need_version=no
16096 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16097 soname_spec='${libname}${release}${major}$shared_ext'
16098 shlibpath_overrides_runpath=yes
16099 shlibpath_var=DYLD_LIBRARY_PATH
16100 shrext_cmds='.dylib'
16101 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16102 if test "$GCC" = yes; then
16103 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16104 else
16105 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16110 dgux*)
16111 version_type=linux
16112 need_lib_prefix=no
16113 need_version=no
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16115 soname_spec='${libname}${release}${shared_ext}$major'
16116 shlibpath_var=LD_LIBRARY_PATH
16119 freebsd1*)
16120 dynamic_linker=no
16123 kfreebsd*-gnu)
16124 version_type=linux
16125 need_lib_prefix=no
16126 need_version=no
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 shlibpath_overrides_runpath=no
16131 hardcode_into_libs=yes
16132 dynamic_linker='GNU ld.so'
16135 freebsd* | dragonfly*)
16136 # DragonFly does not have aout. When/if they implement a new
16137 # versioning mechanism, adjust this.
16138 if test -x /usr/bin/objformat; then
16139 objformat=`/usr/bin/objformat`
16140 else
16141 case $host_os in
16142 freebsd[123]*) objformat=aout ;;
16143 *) objformat=elf ;;
16144 esac
16146 version_type=freebsd-$objformat
16147 case $version_type in
16148 freebsd-elf*)
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16150 need_version=no
16151 need_lib_prefix=no
16153 freebsd-*)
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16155 need_version=yes
16157 esac
16158 shlibpath_var=LD_LIBRARY_PATH
16159 case $host_os in
16160 freebsd2*)
16161 shlibpath_overrides_runpath=yes
16163 freebsd3.[01]* | freebsdelf3.[01]*)
16164 shlibpath_overrides_runpath=yes
16165 hardcode_into_libs=yes
16167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16169 shlibpath_overrides_runpath=no
16170 hardcode_into_libs=yes
16172 freebsd*) # from 4.6 on
16173 shlibpath_overrides_runpath=yes
16174 hardcode_into_libs=yes
16176 esac
16179 gnu*)
16180 version_type=linux
16181 need_lib_prefix=no
16182 need_version=no
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 hardcode_into_libs=yes
16189 hpux9* | hpux10* | hpux11*)
16190 # Give a soname corresponding to the major version so that dld.sl refuses to
16191 # link against other versions.
16192 version_type=sunos
16193 need_lib_prefix=no
16194 need_version=no
16195 case $host_cpu in
16196 ia64*)
16197 shrext_cmds='.so'
16198 hardcode_into_libs=yes
16199 dynamic_linker="$host_os dld.so"
16200 shlibpath_var=LD_LIBRARY_PATH
16201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203 soname_spec='${libname}${release}${shared_ext}$major'
16204 if test "X$HPUX_IA64_MODE" = X32; then
16205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16206 else
16207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16211 hppa*64*)
16212 shrext_cmds='.sl'
16213 hardcode_into_libs=yes
16214 dynamic_linker="$host_os dld.sl"
16215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218 soname_spec='${libname}${release}${shared_ext}$major'
16219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16223 shrext_cmds='.sl'
16224 dynamic_linker="$host_os dld.sl"
16225 shlibpath_var=SHLIB_PATH
16226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16230 esac
16231 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16232 postinstall_cmds='chmod 555 $lib'
16235 interix3*)
16236 version_type=linux
16237 need_lib_prefix=no
16238 need_version=no
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 shlibpath_overrides_runpath=no
16244 hardcode_into_libs=yes
16247 irix5* | irix6* | nonstopux*)
16248 case $host_os in
16249 nonstopux*) version_type=nonstopux ;;
16251 if test "$lt_cv_prog_gnu_ld" = yes; then
16252 version_type=linux
16253 else
16254 version_type=irix
16255 fi ;;
16256 esac
16257 need_lib_prefix=no
16258 need_version=no
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16261 case $host_os in
16262 irix5* | nonstopux*)
16263 libsuff= shlibsuff=
16266 case $LD in # libtool.m4 will add one of these switches to LD
16267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16268 libsuff= shlibsuff= libmagic=32-bit;;
16269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16270 libsuff=32 shlibsuff=N32 libmagic=N32;;
16271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16273 *) libsuff= shlibsuff= libmagic=never-match;;
16274 esac
16276 esac
16277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16278 shlibpath_overrides_runpath=no
16279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16281 hardcode_into_libs=yes
16284 # No shared lib support for Linux oldld, aout, or coff.
16285 linux*oldld* | linux*aout* | linux*coff*)
16286 dynamic_linker=no
16289 # This must be Linux ELF.
16290 linux*)
16291 version_type=linux
16292 need_lib_prefix=no
16293 need_version=no
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 shlibpath_overrides_runpath=no
16299 # This implies no fast_install, which is unacceptable.
16300 # Some rework will be needed to allow for fast_install
16301 # before this can be enabled.
16302 hardcode_into_libs=yes
16304 # Append ld.so.conf contents to the search path
16305 if test -f /etc/ld.so.conf; then
16306 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16307 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16310 # We used to test for /lib/ld.so.1 and disable shared libraries on
16311 # powerpc, because MkLinux only supported shared libraries with the
16312 # GNU dynamic linker. Since this was broken with cross compilers,
16313 # most powerpc-linux boxes support dynamic linking these days and
16314 # people can always --disable-shared, the test was removed, and we
16315 # assume the GNU/Linux dynamic linker is in use.
16316 dynamic_linker='GNU/Linux ld.so'
16319 knetbsd*-gnu)
16320 version_type=linux
16321 need_lib_prefix=no
16322 need_version=no
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16324 soname_spec='${libname}${release}${shared_ext}$major'
16325 shlibpath_var=LD_LIBRARY_PATH
16326 shlibpath_overrides_runpath=no
16327 hardcode_into_libs=yes
16328 dynamic_linker='GNU ld.so'
16331 netbsd*)
16332 version_type=sunos
16333 need_lib_prefix=no
16334 need_version=no
16335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16338 dynamic_linker='NetBSD (a.out) ld.so'
16339 else
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 dynamic_linker='NetBSD ld.elf_so'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=yes
16346 hardcode_into_libs=yes
16349 newsos6)
16350 version_type=linux
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 shlibpath_overrides_runpath=yes
16356 nto-qnx*)
16357 version_type=linux
16358 need_lib_prefix=no
16359 need_version=no
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=yes
16366 openbsd*)
16367 version_type=sunos
16368 sys_lib_dlsearch_path_spec="/usr/lib"
16369 need_lib_prefix=no
16370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16371 case $host_os in
16372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16373 *) need_version=no ;;
16374 esac
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16377 shlibpath_var=LD_LIBRARY_PATH
16378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16379 case $host_os in
16380 openbsd2.[89] | openbsd2.[89].*)
16381 shlibpath_overrides_runpath=no
16384 shlibpath_overrides_runpath=yes
16386 esac
16387 else
16388 shlibpath_overrides_runpath=yes
16392 os2*)
16393 libname_spec='$name'
16394 shrext_cmds=".dll"
16395 need_lib_prefix=no
16396 library_names_spec='$libname${shared_ext} $libname.a'
16397 dynamic_linker='OS/2 ld.exe'
16398 shlibpath_var=LIBPATH
16401 osf3* | osf4* | osf5*)
16402 version_type=osf
16403 need_lib_prefix=no
16404 need_version=no
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16412 solaris*)
16413 version_type=linux
16414 need_lib_prefix=no
16415 need_version=no
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=yes
16420 hardcode_into_libs=yes
16421 # ldd complains unless libraries are executable
16422 postinstall_cmds='chmod +x $lib'
16425 sunos4*)
16426 version_type=sunos
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=yes
16431 if test "$with_gnu_ld" = yes; then
16432 need_lib_prefix=no
16434 need_version=yes
16437 sysv4 | sysv4.3*)
16438 version_type=linux
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 case $host_vendor in
16443 sni)
16444 shlibpath_overrides_runpath=no
16445 need_lib_prefix=no
16446 export_dynamic_flag_spec='${wl}-Blargedynsym'
16447 runpath_var=LD_RUN_PATH
16449 siemens)
16450 need_lib_prefix=no
16452 motorola)
16453 need_lib_prefix=no
16454 need_version=no
16455 shlibpath_overrides_runpath=no
16456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16458 esac
16461 sysv4*MP*)
16462 if test -d /usr/nec ;then
16463 version_type=linux
16464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16465 soname_spec='$libname${shared_ext}.$major'
16466 shlibpath_var=LD_LIBRARY_PATH
16470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16471 version_type=freebsd-elf
16472 need_lib_prefix=no
16473 need_version=no
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16475 soname_spec='${libname}${release}${shared_ext}$major'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 hardcode_into_libs=yes
16478 if test "$with_gnu_ld" = yes; then
16479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16480 shlibpath_overrides_runpath=no
16481 else
16482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16483 shlibpath_overrides_runpath=yes
16484 case $host_os in
16485 sco3.2v5*)
16486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16488 esac
16490 sys_lib_dlsearch_path_spec='/usr/lib'
16493 uts4*)
16494 version_type=linux
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 shlibpath_var=LD_LIBRARY_PATH
16501 dynamic_linker=no
16503 esac
16504 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16505 echo "${ECHO_T}$dynamic_linker" >&6; }
16506 test "$dynamic_linker" = no && can_build_shared=no
16508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16509 if test "$GCC" = yes; then
16510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16513 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16514 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16515 hardcode_action=
16516 if test -n "$hardcode_libdir_flag_spec" || \
16517 test -n "$runpath_var" || \
16518 test "X$hardcode_automatic" = "Xyes" ; then
16520 # We can hardcode non-existant directories.
16521 if test "$hardcode_direct" != no &&
16522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16523 # have to relink, otherwise we might link with an installed library
16524 # when we should be linking with a yet-to-be-installed one
16525 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16526 test "$hardcode_minus_L" != no; then
16527 # Linking always hardcodes the temporary library directory.
16528 hardcode_action=relink
16529 else
16530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16531 hardcode_action=immediate
16533 else
16534 # We cannot hardcode anything, or else we can only hardcode existing
16535 # directories.
16536 hardcode_action=unsupported
16538 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16539 echo "${ECHO_T}$hardcode_action" >&6; }
16541 if test "$hardcode_action" = relink; then
16542 # Fast installation is not supported
16543 enable_fast_install=no
16544 elif test "$shlibpath_overrides_runpath" = yes ||
16545 test "$enable_shared" = no; then
16546 # Fast installation is not necessary
16547 enable_fast_install=needless
16550 striplib=
16551 old_striplib=
16552 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16553 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16554 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16555 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16556 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16557 { echo "$as_me:$LINENO: result: yes" >&5
16558 echo "${ECHO_T}yes" >&6; }
16559 else
16560 # FIXME - insert some real tests, host_os isn't really good enough
16561 case $host_os in
16562 darwin*)
16563 if test -n "$STRIP" ; then
16564 striplib="$STRIP -x"
16565 { echo "$as_me:$LINENO: result: yes" >&5
16566 echo "${ECHO_T}yes" >&6; }
16567 else
16568 { echo "$as_me:$LINENO: result: no" >&5
16569 echo "${ECHO_T}no" >&6; }
16573 { echo "$as_me:$LINENO: result: no" >&5
16574 echo "${ECHO_T}no" >&6; }
16576 esac
16579 if test "x$enable_dlopen" != xyes; then
16580 enable_dlopen=unknown
16581 enable_dlopen_self=unknown
16582 enable_dlopen_self_static=unknown
16583 else
16584 lt_cv_dlopen=no
16585 lt_cv_dlopen_libs=
16587 case $host_os in
16588 beos*)
16589 lt_cv_dlopen="load_add_on"
16590 lt_cv_dlopen_libs=
16591 lt_cv_dlopen_self=yes
16594 mingw* | pw32*)
16595 lt_cv_dlopen="LoadLibrary"
16596 lt_cv_dlopen_libs=
16599 cygwin*)
16600 lt_cv_dlopen="dlopen"
16601 lt_cv_dlopen_libs=
16604 darwin*)
16605 # if libdl is installed we need to link against it
16606 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16607 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611 ac_check_lib_save_LIBS=$LIBS
16612 LIBS="-ldl $LIBS"
16613 cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h. */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16620 /* Override any GCC internal prototype to avoid an error.
16621 Use char because int might match the return type of a GCC
16622 builtin and then its argument prototype would still apply. */
16623 #ifdef __cplusplus
16624 extern "C"
16625 #endif
16626 char dlopen ();
16628 main ()
16630 return dlopen ();
16632 return 0;
16634 _ACEOF
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_link") 2>conftest.er1
16643 ac_status=$?
16644 grep -v '^ *+' conftest.er1 >conftest.err
16645 rm -f conftest.er1
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try='test -s conftest$ac_exeext'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 ac_cv_lib_dl_dlopen=yes
16670 else
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ac_cv_lib_dl_dlopen=no
16677 rm -f core conftest.err conftest.$ac_objext \
16678 conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16681 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16683 if test $ac_cv_lib_dl_dlopen = yes; then
16684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16685 else
16687 lt_cv_dlopen="dyld"
16688 lt_cv_dlopen_libs=
16689 lt_cv_dlopen_self=yes
16696 { echo "$as_me:$LINENO: checking for shl_load" >&5
16697 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16698 if test "${ac_cv_func_shl_load+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16709 #define shl_load innocuous_shl_load
16711 /* System header to define __stub macros and hopefully few prototypes,
16712 which can conflict with char shl_load (); below.
16713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16714 <limits.h> exists even on freestanding compilers. */
16716 #ifdef __STDC__
16717 # include <limits.h>
16718 #else
16719 # include <assert.h>
16720 #endif
16722 #undef shl_load
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16727 #ifdef __cplusplus
16728 extern "C"
16729 #endif
16730 char shl_load ();
16731 /* The GNU C library defines this for functions which it implements
16732 to always fail with ENOSYS. Some functions are actually named
16733 something starting with __ and the normal name is an alias. */
16734 #if defined __stub_shl_load || defined __stub___shl_load
16735 choke me
16736 #endif
16739 main ()
16741 return shl_load ();
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (ac_try="$ac_link"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_link") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16764 esac
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest$ac_exeext'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_func_shl_load=yes
16781 else
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_cv_func_shl_load=no
16788 rm -f core conftest.err conftest.$ac_objext \
16789 conftest$ac_exeext conftest.$ac_ext
16791 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16793 if test $ac_cv_func_shl_load = yes; then
16794 lt_cv_dlopen="shl_load"
16795 else
16796 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 ac_check_lib_save_LIBS=$LIBS
16802 LIBS="-ldld $LIBS"
16803 cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16810 /* Override any GCC internal prototype to avoid an error.
16811 Use char because int might match the return type of a GCC
16812 builtin and then its argument prototype would still apply. */
16813 #ifdef __cplusplus
16814 extern "C"
16815 #endif
16816 char shl_load ();
16818 main ()
16820 return shl_load ();
16822 return 0;
16824 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_link") 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest$ac_exeext'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_lib_dld_shl_load=yes
16860 else
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_cv_lib_dld_shl_load=no
16867 rm -f core conftest.err conftest.$ac_objext \
16868 conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16871 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16872 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16873 if test $ac_cv_lib_dld_shl_load = yes; then
16874 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16875 else
16876 { echo "$as_me:$LINENO: checking for dlopen" >&5
16877 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16878 if test "${ac_cv_func_dlopen+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881 cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h. */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16889 #define dlopen innocuous_dlopen
16891 /* System header to define __stub macros and hopefully few prototypes,
16892 which can conflict with char dlopen (); below.
16893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894 <limits.h> exists even on freestanding compilers. */
16896 #ifdef __STDC__
16897 # include <limits.h>
16898 #else
16899 # include <assert.h>
16900 #endif
16902 #undef dlopen
16904 /* Override any GCC internal prototype to avoid an error.
16905 Use char because int might match the return type of a GCC
16906 builtin and then its argument prototype would still apply. */
16907 #ifdef __cplusplus
16908 extern "C"
16909 #endif
16910 char dlopen ();
16911 /* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914 #if defined __stub_dlopen || defined __stub___dlopen
16915 choke me
16916 #endif
16919 main ()
16921 return dlopen ();
16923 return 0;
16925 _ACEOF
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (ac_try="$ac_link"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_link") 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941 { (case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_try") 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; } &&
16950 { ac_try='test -s conftest$ac_exeext'
16951 { (case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_try") 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_cv_func_dlopen=yes
16961 else
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_cv_func_dlopen=no
16968 rm -f core conftest.err conftest.$ac_objext \
16969 conftest$ac_exeext conftest.$ac_ext
16971 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16972 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16973 if test $ac_cv_func_dlopen = yes; then
16974 lt_cv_dlopen="dlopen"
16975 else
16976 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16977 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981 ac_check_lib_save_LIBS=$LIBS
16982 LIBS="-ldl $LIBS"
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16990 /* Override any GCC internal prototype to avoid an error.
16991 Use char because int might match the return type of a GCC
16992 builtin and then its argument prototype would still apply. */
16993 #ifdef __cplusplus
16994 extern "C"
16995 #endif
16996 char dlopen ();
16998 main ()
17000 return dlopen ();
17002 return 0;
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (ac_try="$ac_link"
17007 case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_link") 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17020 { (case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17023 esac
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_try") 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_try") 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_lib_dl_dlopen=yes
17040 else
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17044 ac_cv_lib_dl_dlopen=no
17047 rm -f core conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
17049 LIBS=$ac_check_lib_save_LIBS
17051 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17052 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17053 if test $ac_cv_lib_dl_dlopen = yes; then
17054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17055 else
17056 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17057 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17058 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061 ac_check_lib_save_LIBS=$LIBS
17062 LIBS="-lsvld $LIBS"
17063 cat >conftest.$ac_ext <<_ACEOF
17064 /* confdefs.h. */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17073 #ifdef __cplusplus
17074 extern "C"
17075 #endif
17076 char dlopen ();
17078 main ()
17080 return dlopen ();
17082 return 0;
17084 _ACEOF
17085 rm -f conftest.$ac_objext conftest$ac_exeext
17086 if { (ac_try="$ac_link"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_link") 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try='test -s conftest$ac_exeext'
17110 { (case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113 esac
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_try") 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 ac_cv_lib_svld_dlopen=yes
17120 else
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17124 ac_cv_lib_svld_dlopen=no
17127 rm -f core conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
17129 LIBS=$ac_check_lib_save_LIBS
17131 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17132 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17133 if test $ac_cv_lib_svld_dlopen = yes; then
17134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17135 else
17136 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17137 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17138 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141 ac_check_lib_save_LIBS=$LIBS
17142 LIBS="-ldld $LIBS"
17143 cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h. */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17150 /* Override any GCC internal prototype to avoid an error.
17151 Use char because int might match the return type of a GCC
17152 builtin and then its argument prototype would still apply. */
17153 #ifdef __cplusplus
17154 extern "C"
17155 #endif
17156 char dld_link ();
17158 main ()
17160 return dld_link ();
17162 return 0;
17164 _ACEOF
17165 rm -f conftest.$ac_objext conftest$ac_exeext
17166 if { (ac_try="$ac_link"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_link") 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17180 { (case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_try") 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; } &&
17189 { ac_try='test -s conftest$ac_exeext'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_cv_lib_dld_dld_link=yes
17200 else
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ac_cv_lib_dld_dld_link=no
17207 rm -f core conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
17209 LIBS=$ac_check_lib_save_LIBS
17211 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17212 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17213 if test $ac_cv_lib_dld_dld_link = yes; then
17214 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17233 esac
17235 if test "x$lt_cv_dlopen" != xno; then
17236 enable_dlopen=yes
17237 else
17238 enable_dlopen=no
17241 case $lt_cv_dlopen in
17242 dlopen)
17243 save_CPPFLAGS="$CPPFLAGS"
17244 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17246 save_LDFLAGS="$LDFLAGS"
17247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17249 save_LIBS="$LIBS"
17250 LIBS="$lt_cv_dlopen_libs $LIBS"
17252 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17253 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17254 if test "${lt_cv_dlopen_self+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 else
17257 if test "$cross_compiling" = yes; then :
17258 lt_cv_dlopen_self=cross
17259 else
17260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17261 lt_status=$lt_dlunknown
17262 cat > conftest.$ac_ext <<EOF
17263 #line 17249 "configure"
17264 #include "confdefs.h"
17266 #if HAVE_DLFCN_H
17267 #include <dlfcn.h>
17268 #endif
17270 #include <stdio.h>
17272 #ifdef RTLD_GLOBAL
17273 # define LT_DLGLOBAL RTLD_GLOBAL
17274 #else
17275 # ifdef DL_GLOBAL
17276 # define LT_DLGLOBAL DL_GLOBAL
17277 # else
17278 # define LT_DLGLOBAL 0
17279 # endif
17280 #endif
17282 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17283 find out it does not work in some platform. */
17284 #ifndef LT_DLLAZY_OR_NOW
17285 # ifdef RTLD_LAZY
17286 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17287 # else
17288 # ifdef DL_LAZY
17289 # define LT_DLLAZY_OR_NOW DL_LAZY
17290 # else
17291 # ifdef RTLD_NOW
17292 # define LT_DLLAZY_OR_NOW RTLD_NOW
17293 # else
17294 # ifdef DL_NOW
17295 # define LT_DLLAZY_OR_NOW DL_NOW
17296 # else
17297 # define LT_DLLAZY_OR_NOW 0
17298 # endif
17299 # endif
17300 # endif
17301 # endif
17302 #endif
17304 #ifdef __cplusplus
17305 extern "C" void exit (int);
17306 #endif
17308 void fnord() { int i=42;}
17309 int main ()
17311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17312 int status = $lt_dlunknown;
17314 if (self)
17316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17317 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17318 /* dlclose (self); */
17320 else
17321 puts (dlerror ());
17323 exit (status);
17326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17327 (eval $ac_link) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17331 (./conftest; exit; ) >&5 2>/dev/null
17332 lt_status=$?
17333 case x$lt_status in
17334 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17335 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17336 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17337 esac
17338 else :
17339 # compilation failed
17340 lt_cv_dlopen_self=no
17343 rm -fr conftest*
17347 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17348 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17350 if test "x$lt_cv_dlopen_self" = xyes; then
17351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17352 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17353 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17354 if test "${lt_cv_dlopen_self_static+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357 if test "$cross_compiling" = yes; then :
17358 lt_cv_dlopen_self_static=cross
17359 else
17360 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17361 lt_status=$lt_dlunknown
17362 cat > conftest.$ac_ext <<EOF
17363 #line 17349 "configure"
17364 #include "confdefs.h"
17366 #if HAVE_DLFCN_H
17367 #include <dlfcn.h>
17368 #endif
17370 #include <stdio.h>
17372 #ifdef RTLD_GLOBAL
17373 # define LT_DLGLOBAL RTLD_GLOBAL
17374 #else
17375 # ifdef DL_GLOBAL
17376 # define LT_DLGLOBAL DL_GLOBAL
17377 # else
17378 # define LT_DLGLOBAL 0
17379 # endif
17380 #endif
17382 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17383 find out it does not work in some platform. */
17384 #ifndef LT_DLLAZY_OR_NOW
17385 # ifdef RTLD_LAZY
17386 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17387 # else
17388 # ifdef DL_LAZY
17389 # define LT_DLLAZY_OR_NOW DL_LAZY
17390 # else
17391 # ifdef RTLD_NOW
17392 # define LT_DLLAZY_OR_NOW RTLD_NOW
17393 # else
17394 # ifdef DL_NOW
17395 # define LT_DLLAZY_OR_NOW DL_NOW
17396 # else
17397 # define LT_DLLAZY_OR_NOW 0
17398 # endif
17399 # endif
17400 # endif
17401 # endif
17402 #endif
17404 #ifdef __cplusplus
17405 extern "C" void exit (int);
17406 #endif
17408 void fnord() { int i=42;}
17409 int main ()
17411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17412 int status = $lt_dlunknown;
17414 if (self)
17416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17417 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17418 /* dlclose (self); */
17420 else
17421 puts (dlerror ());
17423 exit (status);
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427 (eval $ac_link) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17431 (./conftest; exit; ) >&5 2>/dev/null
17432 lt_status=$?
17433 case x$lt_status in
17434 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17435 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17436 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17437 esac
17438 else :
17439 # compilation failed
17440 lt_cv_dlopen_self_static=no
17443 rm -fr conftest*
17447 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17448 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17451 CPPFLAGS="$save_CPPFLAGS"
17452 LDFLAGS="$save_LDFLAGS"
17453 LIBS="$save_LIBS"
17455 esac
17457 case $lt_cv_dlopen_self in
17458 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17459 *) enable_dlopen_self=unknown ;;
17460 esac
17462 case $lt_cv_dlopen_self_static in
17463 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17464 *) enable_dlopen_self_static=unknown ;;
17465 esac
17469 # Report which library types will actually be built
17470 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17471 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17472 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17473 echo "${ECHO_T}$can_build_shared" >&6; }
17475 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17476 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17477 test "$can_build_shared" = "no" && enable_shared=no
17479 # On AIX, shared libraries and static libraries use the same namespace, and
17480 # are all built from PIC.
17481 case $host_os in
17482 aix3*)
17483 test "$enable_shared" = yes && enable_static=no
17484 if test -n "$RANLIB"; then
17485 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17486 postinstall_cmds='$RANLIB $lib'
17490 aix4* | aix5*)
17491 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17492 test "$enable_shared" = yes && enable_static=no
17495 esac
17496 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17497 echo "${ECHO_T}$enable_shared" >&6; }
17499 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17500 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17501 # Make sure either enable_shared or enable_static is yes.
17502 test "$enable_shared" = yes || enable_static=yes
17503 { echo "$as_me:$LINENO: result: $enable_static" >&5
17504 echo "${ECHO_T}$enable_static" >&6; }
17506 # The else clause should only fire when bootstrapping the
17507 # libtool distribution, otherwise you forgot to ship ltmain.sh
17508 # with your package, and you will get complaints that there are
17509 # no rules to generate ltmain.sh.
17510 if test -f "$ltmain"; then
17511 # See if we are running on zsh, and set the options which allow our commands through
17512 # without removal of \ escapes.
17513 if test -n "${ZSH_VERSION+set}" ; then
17514 setopt NO_GLOB_SUBST
17516 # Now quote all the things that may contain metacharacters while being
17517 # careful not to overquote the AC_SUBSTed values. We take copies of the
17518 # variables and quote the copies for generation of the libtool script.
17519 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17520 SED SHELL STRIP \
17521 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17522 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17523 deplibs_check_method reload_flag reload_cmds need_locks \
17524 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17525 lt_cv_sys_global_symbol_to_c_name_address \
17526 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17527 old_postinstall_cmds old_postuninstall_cmds \
17528 compiler \
17529 CC \
17530 LD \
17531 lt_prog_compiler_wl \
17532 lt_prog_compiler_pic \
17533 lt_prog_compiler_static \
17534 lt_prog_compiler_no_builtin_flag \
17535 export_dynamic_flag_spec \
17536 thread_safe_flag_spec \
17537 whole_archive_flag_spec \
17538 enable_shared_with_static_runtimes \
17539 old_archive_cmds \
17540 old_archive_from_new_cmds \
17541 predep_objects \
17542 postdep_objects \
17543 predeps \
17544 postdeps \
17545 compiler_lib_search_path \
17546 archive_cmds \
17547 archive_expsym_cmds \
17548 postinstall_cmds \
17549 postuninstall_cmds \
17550 old_archive_from_expsyms_cmds \
17551 allow_undefined_flag \
17552 no_undefined_flag \
17553 export_symbols_cmds \
17554 hardcode_libdir_flag_spec \
17555 hardcode_libdir_flag_spec_ld \
17556 hardcode_libdir_separator \
17557 hardcode_automatic \
17558 module_cmds \
17559 module_expsym_cmds \
17560 lt_cv_prog_compiler_c_o \
17561 exclude_expsyms \
17562 include_expsyms; do
17564 case $var in
17565 old_archive_cmds | \
17566 old_archive_from_new_cmds | \
17567 archive_cmds | \
17568 archive_expsym_cmds | \
17569 module_cmds | \
17570 module_expsym_cmds | \
17571 old_archive_from_expsyms_cmds | \
17572 export_symbols_cmds | \
17573 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17574 postinstall_cmds | postuninstall_cmds | \
17575 old_postinstall_cmds | old_postuninstall_cmds | \
17576 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17577 # Double-quote double-evaled strings.
17578 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17581 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17583 esac
17584 done
17586 case $lt_echo in
17587 *'\$0 --fallback-echo"')
17588 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17590 esac
17592 cfgfile="${ofile}T"
17593 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17594 $rm -f "$cfgfile"
17595 { echo "$as_me:$LINENO: creating $ofile" >&5
17596 echo "$as_me: creating $ofile" >&6;}
17598 cat <<__EOF__ >> "$cfgfile"
17599 #! $SHELL
17601 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17602 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17603 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17605 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17606 # Free Software Foundation, Inc.
17608 # This file is part of GNU Libtool:
17609 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17611 # This program is free software; you can redistribute it and/or modify
17612 # it under the terms of the GNU General Public License as published by
17613 # the Free Software Foundation; either version 2 of the License, or
17614 # (at your option) any later version.
17616 # This program is distributed in the hope that it will be useful, but
17617 # WITHOUT ANY WARRANTY; without even the implied warranty of
17618 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17619 # General Public License for more details.
17621 # You should have received a copy of the GNU General Public License
17622 # along with this program; if not, write to the Free Software
17623 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17625 # As a special exception to the GNU General Public License, if you
17626 # distribute this file as part of a program that contains a
17627 # configuration script generated by Autoconf, you may include it under
17628 # the same distribution terms that you use for the rest of that program.
17630 # A sed program that does not truncate output.
17631 SED=$lt_SED
17633 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17634 Xsed="$SED -e 1s/^X//"
17636 # The HP-UX ksh and POSIX shell print the target directory to stdout
17637 # if CDPATH is set.
17638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17640 # The names of the tagged configurations supported by this script.
17641 available_tags=
17643 # ### BEGIN LIBTOOL CONFIG
17645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17647 # Shell to use when invoking shell scripts.
17648 SHELL=$lt_SHELL
17650 # Whether or not to build shared libraries.
17651 build_libtool_libs=$enable_shared
17653 # Whether or not to build static libraries.
17654 build_old_libs=$enable_static
17656 # Whether or not to add -lc for building shared libraries.
17657 build_libtool_need_lc=$archive_cmds_need_lc
17659 # Whether or not to disallow shared libs when runtime libs are static
17660 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17662 # Whether or not to optimize for fast installation.
17663 fast_install=$enable_fast_install
17665 # The host system.
17666 host_alias=$host_alias
17667 host=$host
17668 host_os=$host_os
17670 # The build system.
17671 build_alias=$build_alias
17672 build=$build
17673 build_os=$build_os
17675 # An echo program that does not interpret backslashes.
17676 echo=$lt_echo
17678 # The archiver.
17679 AR=$lt_AR
17680 AR_FLAGS=$lt_AR_FLAGS
17682 # A C compiler.
17683 LTCC=$lt_LTCC
17685 # LTCC compiler flags.
17686 LTCFLAGS=$lt_LTCFLAGS
17688 # A language-specific compiler.
17689 CC=$lt_compiler
17691 # Is the compiler the GNU C compiler?
17692 with_gcc=$GCC
17694 # An ERE matcher.
17695 EGREP=$lt_EGREP
17697 # The linker used to build libraries.
17698 LD=$lt_LD
17700 # Whether we need hard or soft links.
17701 LN_S=$lt_LN_S
17703 # A BSD-compatible nm program.
17704 NM=$lt_NM
17706 # A symbol stripping program
17707 STRIP=$lt_STRIP
17709 # Used to examine libraries when file_magic_cmd begins "file"
17710 MAGIC_CMD=$MAGIC_CMD
17712 # Used on cygwin: DLL creation program.
17713 DLLTOOL="$DLLTOOL"
17715 # Used on cygwin: object dumper.
17716 OBJDUMP="$OBJDUMP"
17718 # Used on cygwin: assembler.
17719 AS="$AS"
17721 # The name of the directory that contains temporary libtool files.
17722 objdir=$objdir
17724 # How to create reloadable object files.
17725 reload_flag=$lt_reload_flag
17726 reload_cmds=$lt_reload_cmds
17728 # How to pass a linker flag through the compiler.
17729 wl=$lt_lt_prog_compiler_wl
17731 # Object file suffix (normally "o").
17732 objext="$ac_objext"
17734 # Old archive suffix (normally "a").
17735 libext="$libext"
17737 # Shared library suffix (normally ".so").
17738 shrext_cmds='$shrext_cmds'
17740 # Executable file suffix (normally "").
17741 exeext="$exeext"
17743 # Additional compiler flags for building library objects.
17744 pic_flag=$lt_lt_prog_compiler_pic
17745 pic_mode=$pic_mode
17747 # What is the maximum length of a command?
17748 max_cmd_len=$lt_cv_sys_max_cmd_len
17750 # Does compiler simultaneously support -c and -o options?
17751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17753 # Must we lock files when doing compilation?
17754 need_locks=$lt_need_locks
17756 # Do we need the lib prefix for modules?
17757 need_lib_prefix=$need_lib_prefix
17759 # Do we need a version for libraries?
17760 need_version=$need_version
17762 # Whether dlopen is supported.
17763 dlopen_support=$enable_dlopen
17765 # Whether dlopen of programs is supported.
17766 dlopen_self=$enable_dlopen_self
17768 # Whether dlopen of statically linked programs is supported.
17769 dlopen_self_static=$enable_dlopen_self_static
17771 # Compiler flag to prevent dynamic linking.
17772 link_static_flag=$lt_lt_prog_compiler_static
17774 # Compiler flag to turn off builtin functions.
17775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17777 # Compiler flag to allow reflexive dlopens.
17778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17780 # Compiler flag to generate shared objects directly from archives.
17781 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17783 # Compiler flag to generate thread-safe objects.
17784 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17786 # Library versioning type.
17787 version_type=$version_type
17789 # Format of library name prefix.
17790 libname_spec=$lt_libname_spec
17792 # List of archive names. First name is the real one, the rest are links.
17793 # The last name is the one that the linker finds with -lNAME.
17794 library_names_spec=$lt_library_names_spec
17796 # The coded name of the library, if different from the real name.
17797 soname_spec=$lt_soname_spec
17799 # Commands used to build and install an old-style archive.
17800 RANLIB=$lt_RANLIB
17801 old_archive_cmds=$lt_old_archive_cmds
17802 old_postinstall_cmds=$lt_old_postinstall_cmds
17803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17805 # Create an old-style archive from a shared archive.
17806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17808 # Create a temporary old-style archive to link instead of a shared archive.
17809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17811 # Commands used to build and install a shared archive.
17812 archive_cmds=$lt_archive_cmds
17813 archive_expsym_cmds=$lt_archive_expsym_cmds
17814 postinstall_cmds=$lt_postinstall_cmds
17815 postuninstall_cmds=$lt_postuninstall_cmds
17817 # Commands used to build a loadable module (assumed same as above if empty)
17818 module_cmds=$lt_module_cmds
17819 module_expsym_cmds=$lt_module_expsym_cmds
17821 # Commands to strip libraries.
17822 old_striplib=$lt_old_striplib
17823 striplib=$lt_striplib
17825 # Dependencies to place before the objects being linked to create a
17826 # shared library.
17827 predep_objects=$lt_predep_objects
17829 # Dependencies to place after the objects being linked to create a
17830 # shared library.
17831 postdep_objects=$lt_postdep_objects
17833 # Dependencies to place before the objects being linked to create a
17834 # shared library.
17835 predeps=$lt_predeps
17837 # Dependencies to place after the objects being linked to create a
17838 # shared library.
17839 postdeps=$lt_postdeps
17841 # The library search path used internally by the compiler when linking
17842 # a shared library.
17843 compiler_lib_search_path=$lt_compiler_lib_search_path
17845 # Method to check whether dependent libraries are shared objects.
17846 deplibs_check_method=$lt_deplibs_check_method
17848 # Command to use when deplibs_check_method == file_magic.
17849 file_magic_cmd=$lt_file_magic_cmd
17851 # Flag that allows shared libraries with undefined symbols to be built.
17852 allow_undefined_flag=$lt_allow_undefined_flag
17854 # Flag that forces no undefined symbols.
17855 no_undefined_flag=$lt_no_undefined_flag
17857 # Commands used to finish a libtool library installation in a directory.
17858 finish_cmds=$lt_finish_cmds
17860 # Same as above, but a single script fragment to be evaled but not shown.
17861 finish_eval=$lt_finish_eval
17863 # Take the output of nm and produce a listing of raw symbols and C names.
17864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17866 # Transform the output of nm in a proper C declaration
17867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17869 # Transform the output of nm in a C name address pair
17870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17872 # This is the shared library runtime path variable.
17873 runpath_var=$runpath_var
17875 # This is the shared library path variable.
17876 shlibpath_var=$shlibpath_var
17878 # Is shlibpath searched before the hard-coded library search path?
17879 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17881 # How to hardcode a shared library path into an executable.
17882 hardcode_action=$hardcode_action
17884 # Whether we should hardcode library paths into libraries.
17885 hardcode_into_libs=$hardcode_into_libs
17887 # Flag to hardcode \$libdir into a binary during linking.
17888 # This must work even if \$libdir does not exist.
17889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17891 # If ld is used when linking, flag to hardcode \$libdir into
17892 # a binary during linking. This must work even if \$libdir does
17893 # not exist.
17894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17896 # Whether we need a single -rpath flag with a separated argument.
17897 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17899 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17900 # resulting binary.
17901 hardcode_direct=$hardcode_direct
17903 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17904 # resulting binary.
17905 hardcode_minus_L=$hardcode_minus_L
17907 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17908 # the resulting binary.
17909 hardcode_shlibpath_var=$hardcode_shlibpath_var
17911 # Set to yes if building a shared library automatically hardcodes DIR into the library
17912 # and all subsequent libraries and executables linked against it.
17913 hardcode_automatic=$hardcode_automatic
17915 # Variables whose values should be saved in libtool wrapper scripts and
17916 # restored at relink time.
17917 variables_saved_for_relink="$variables_saved_for_relink"
17919 # Whether libtool must link a program against all its dependency libraries.
17920 link_all_deplibs=$link_all_deplibs
17922 # Compile-time system search path for libraries
17923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17925 # Run-time system search path for libraries
17926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17928 # Fix the shell variable \$srcfile for the compiler.
17929 fix_srcfile_path="$fix_srcfile_path"
17931 # Set to yes if exported symbols are required.
17932 always_export_symbols=$always_export_symbols
17934 # The commands to list exported symbols.
17935 export_symbols_cmds=$lt_export_symbols_cmds
17937 # The commands to extract the exported symbol list from a shared archive.
17938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17940 # Symbols that should not be listed in the preloaded symbols.
17941 exclude_expsyms=$lt_exclude_expsyms
17943 # Symbols that must always be exported.
17944 include_expsyms=$lt_include_expsyms
17946 # ### END LIBTOOL CONFIG
17948 __EOF__
17951 case $host_os in
17952 aix3*)
17953 cat <<\EOF >> "$cfgfile"
17955 # AIX sometimes has problems with the GCC collect2 program. For some
17956 # reason, if we set the COLLECT_NAMES environment variable, the problems
17957 # vanish in a puff of smoke.
17958 if test "X${COLLECT_NAMES+set}" != Xset; then
17959 COLLECT_NAMES=
17960 export COLLECT_NAMES
17964 esac
17966 # We use sed instead of cat because bash on DJGPP gets confused if
17967 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17968 # text mode, it properly converts lines to CR/LF. This bash problem
17969 # is reportedly fixed, but why not run on old versions too?
17970 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17972 mv -f "$cfgfile" "$ofile" || \
17973 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17974 chmod +x "$ofile"
17976 else
17977 # If there is no Makefile yet, we rely on a make rule to execute
17978 # `config.status --recheck' to rerun these tests and create the
17979 # libtool script then.
17980 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17981 if test -f "$ltmain_in"; then
17982 test -f Makefile && make "$ltmain"
17987 ac_ext=c
17988 ac_cpp='$CPP $CPPFLAGS'
17989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17993 CC="$lt_save_CC"
17996 # Check whether --with-tags was given.
17997 if test "${with_tags+set}" = set; then
17998 withval=$with_tags; tagnames="$withval"
18002 if test -f "$ltmain" && test -n "$tagnames"; then
18003 if test ! -f "${ofile}"; then
18004 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18005 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18008 if test -z "$LTCC"; then
18009 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18010 if test -z "$LTCC"; then
18011 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18012 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18013 else
18014 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18015 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18018 if test -z "$LTCFLAGS"; then
18019 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18022 # Extract list of available tagged configurations in $ofile.
18023 # Note that this assumes the entire list is on one line.
18024 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18027 for tagname in $tagnames; do
18028 IFS="$lt_save_ifs"
18029 # Check whether tagname contains only valid characters
18030 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18031 "") ;;
18032 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18033 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18034 { (exit 1); exit 1; }; }
18036 esac
18038 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18039 then
18040 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18041 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18042 { (exit 1); exit 1; }; }
18045 # Update the list of available tags.
18046 if test -n "$tagname"; then
18047 echo appending configuration tag \"$tagname\" to $ofile
18049 case $tagname in
18050 CXX)
18051 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18052 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18053 (test "X$CXX" != "Xg++"))) ; then
18054 ac_ext=cpp
18055 ac_cpp='$CXXCPP $CPPFLAGS'
18056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18063 archive_cmds_need_lc_CXX=no
18064 allow_undefined_flag_CXX=
18065 always_export_symbols_CXX=no
18066 archive_expsym_cmds_CXX=
18067 export_dynamic_flag_spec_CXX=
18068 hardcode_direct_CXX=no
18069 hardcode_libdir_flag_spec_CXX=
18070 hardcode_libdir_flag_spec_ld_CXX=
18071 hardcode_libdir_separator_CXX=
18072 hardcode_minus_L_CXX=no
18073 hardcode_shlibpath_var_CXX=unsupported
18074 hardcode_automatic_CXX=no
18075 module_cmds_CXX=
18076 module_expsym_cmds_CXX=
18077 link_all_deplibs_CXX=unknown
18078 old_archive_cmds_CXX=$old_archive_cmds
18079 no_undefined_flag_CXX=
18080 whole_archive_flag_spec_CXX=
18081 enable_shared_with_static_runtimes_CXX=no
18083 # Dependencies to place before and after the object being linked:
18084 predep_objects_CXX=
18085 postdep_objects_CXX=
18086 predeps_CXX=
18087 postdeps_CXX=
18088 compiler_lib_search_path_CXX=
18090 # Source file extension for C++ test sources.
18091 ac_ext=cpp
18093 # Object file extension for compiled C++ test sources.
18094 objext=o
18095 objext_CXX=$objext
18097 # Code to be used in simple compile tests
18098 lt_simple_compile_test_code="int some_variable = 0;\n"
18100 # Code to be used in simple link tests
18101 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18105 # If no C compiler was specified, use CC.
18106 LTCC=${LTCC-"$CC"}
18108 # If no C compiler flags were specified, use CFLAGS.
18109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18111 # Allow CC to be a program name with arguments.
18112 compiler=$CC
18115 # save warnings/boilerplate of simple test code
18116 ac_outfile=conftest.$ac_objext
18117 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18119 _lt_compiler_boilerplate=`cat conftest.err`
18120 $rm conftest*
18122 ac_outfile=conftest.$ac_objext
18123 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18125 _lt_linker_boilerplate=`cat conftest.err`
18126 $rm conftest*
18129 # Allow CC to be a program name with arguments.
18130 lt_save_CC=$CC
18131 lt_save_LD=$LD
18132 lt_save_GCC=$GCC
18133 GCC=$GXX
18134 lt_save_with_gnu_ld=$with_gnu_ld
18135 lt_save_path_LD=$lt_cv_path_LD
18136 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18137 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18138 else
18139 $as_unset lt_cv_prog_gnu_ld
18141 if test -n "${lt_cv_path_LDCXX+set}"; then
18142 lt_cv_path_LD=$lt_cv_path_LDCXX
18143 else
18144 $as_unset lt_cv_path_LD
18146 test -z "${LDCXX+set}" || LD=$LDCXX
18147 CC=${CXX-"c++"}
18148 compiler=$CC
18149 compiler_CXX=$CC
18150 for cc_temp in $compiler""; do
18151 case $cc_temp in
18152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18154 \-*) ;;
18155 *) break;;
18156 esac
18157 done
18158 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18161 # We don't want -fno-exception wen compiling C++ code, so set the
18162 # no_builtin_flag separately
18163 if test "$GXX" = yes; then
18164 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18165 else
18166 lt_prog_compiler_no_builtin_flag_CXX=
18169 if test "$GXX" = yes; then
18170 # Set up default GNU C++ configuration
18173 # Check whether --with-gnu-ld was given.
18174 if test "${with_gnu_ld+set}" = set; then
18175 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18176 else
18177 with_gnu_ld=no
18180 ac_prog=ld
18181 if test "$GCC" = yes; then
18182 # Check if gcc -print-prog-name=ld gives a path.
18183 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18184 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18185 case $host in
18186 *-*-mingw*)
18187 # gcc leaves a trailing carriage return which upsets mingw
18188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18191 esac
18192 case $ac_prog in
18193 # Accept absolute paths.
18194 [\\/]* | ?:[\\/]*)
18195 re_direlt='/[^/][^/]*/\.\./'
18196 # Canonicalize the pathname of ld
18197 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18198 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18199 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18200 done
18201 test -z "$LD" && LD="$ac_prog"
18204 # If it fails, then pretend we aren't using GCC.
18205 ac_prog=ld
18208 # If it is relative, then search for the first ld in PATH.
18209 with_gnu_ld=unknown
18211 esac
18212 elif test "$with_gnu_ld" = yes; then
18213 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18214 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18215 else
18216 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18217 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18219 if test "${lt_cv_path_LD+set}" = set; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222 if test -z "$LD"; then
18223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18224 for ac_dir in $PATH; do
18225 IFS="$lt_save_ifs"
18226 test -z "$ac_dir" && ac_dir=.
18227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18228 lt_cv_path_LD="$ac_dir/$ac_prog"
18229 # Check to see if the program is GNU ld. I'd rather use --version,
18230 # but apparently some variants of GNU ld only accept -v.
18231 # Break only if it was the GNU/non-GNU ld that we prefer.
18232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18233 *GNU* | *'with BFD'*)
18234 test "$with_gnu_ld" != no && break
18237 test "$with_gnu_ld" != yes && break
18239 esac
18241 done
18242 IFS="$lt_save_ifs"
18243 else
18244 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18248 LD="$lt_cv_path_LD"
18249 if test -n "$LD"; then
18250 { echo "$as_me:$LINENO: result: $LD" >&5
18251 echo "${ECHO_T}$LD" >&6; }
18252 else
18253 { echo "$as_me:$LINENO: result: no" >&5
18254 echo "${ECHO_T}no" >&6; }
18256 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18257 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18258 { (exit 1); exit 1; }; }
18259 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18260 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18261 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18265 case `$LD -v 2>&1 </dev/null` in
18266 *GNU* | *'with BFD'*)
18267 lt_cv_prog_gnu_ld=yes
18270 lt_cv_prog_gnu_ld=no
18272 esac
18274 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18275 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18276 with_gnu_ld=$lt_cv_prog_gnu_ld
18280 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18281 # archiving commands below assume that GNU ld is being used.
18282 if test "$with_gnu_ld" = yes; then
18283 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18284 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'
18286 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18289 # If archive_cmds runs LD, not CC, wlarc should be empty
18290 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18291 # investigate it a little bit more. (MM)
18292 wlarc='${wl}'
18294 # ancient GNU ld didn't support --whole-archive et. al.
18295 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18296 grep 'no-whole-archive' > /dev/null; then
18297 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18298 else
18299 whole_archive_flag_spec_CXX=
18301 else
18302 with_gnu_ld=no
18303 wlarc=
18305 # A generic and very simple default shared library creation
18306 # command for GNU C++ for the case where it uses the native
18307 # linker, instead of GNU ld. If possible, this setting should
18308 # overridden to take advantage of the native linker features on
18309 # the platform it is being used on.
18310 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18313 # Commands to make compiler produce verbose output that lists
18314 # what "hidden" libraries, object files and flags are used when
18315 # linking a shared library.
18316 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18318 else
18319 GXX=no
18320 with_gnu_ld=no
18321 wlarc=
18324 # PORTME: fill in a description of your system's C++ link characteristics
18325 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18326 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18327 ld_shlibs_CXX=yes
18328 case $host_os in
18329 aix3*)
18330 # FIXME: insert proper C++ library support
18331 ld_shlibs_CXX=no
18333 aix4* | aix5*)
18334 if test "$host_cpu" = ia64; then
18335 # On IA64, the linker does run time linking by default, so we don't
18336 # have to do anything special.
18337 aix_use_runtimelinking=no
18338 exp_sym_flag='-Bexport'
18339 no_entry_flag=""
18340 else
18341 aix_use_runtimelinking=no
18343 # Test if we are trying to use run time linking or normal
18344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18345 # need to do runtime linking.
18346 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18347 for ld_flag in $LDFLAGS; do
18348 case $ld_flag in
18349 *-brtl*)
18350 aix_use_runtimelinking=yes
18351 break
18353 esac
18354 done
18356 esac
18358 exp_sym_flag='-bexport'
18359 no_entry_flag='-bnoentry'
18362 # When large executables or shared objects are built, AIX ld can
18363 # have problems creating the table of contents. If linking a library
18364 # or program results in "error TOC overflow" add -mminimal-toc to
18365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18368 archive_cmds_CXX=''
18369 hardcode_direct_CXX=yes
18370 hardcode_libdir_separator_CXX=':'
18371 link_all_deplibs_CXX=yes
18373 if test "$GXX" = yes; then
18374 case $host_os in aix4.[012]|aix4.[012].*)
18375 # We only want to do this on AIX 4.2 and lower, the check
18376 # below for broken collect2 doesn't work under 4.3+
18377 collect2name=`${CC} -print-prog-name=collect2`
18378 if test -f "$collect2name" && \
18379 strings "$collect2name" | grep resolve_lib_name >/dev/null
18380 then
18381 # We have reworked collect2
18382 hardcode_direct_CXX=yes
18383 else
18384 # We have old collect2
18385 hardcode_direct_CXX=unsupported
18386 # It fails to find uninstalled libraries when the uninstalled
18387 # path is not listed in the libpath. Setting hardcode_minus_L
18388 # to unsupported forces relinking
18389 hardcode_minus_L_CXX=yes
18390 hardcode_libdir_flag_spec_CXX='-L$libdir'
18391 hardcode_libdir_separator_CXX=
18394 esac
18395 shared_flag='-shared'
18396 if test "$aix_use_runtimelinking" = yes; then
18397 shared_flag="$shared_flag "'${wl}-G'
18399 else
18400 # not using gcc
18401 if test "$host_cpu" = ia64; then
18402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18403 # chokes on -Wl,-G. The following line is correct:
18404 shared_flag='-G'
18405 else
18406 if test "$aix_use_runtimelinking" = yes; then
18407 shared_flag='${wl}-G'
18408 else
18409 shared_flag='${wl}-bM:SRE'
18414 # It seems that -bexpall does not export symbols beginning with
18415 # underscore (_), so it is better to generate a list of symbols to export.
18416 always_export_symbols_CXX=yes
18417 if test "$aix_use_runtimelinking" = yes; then
18418 # Warning - without using the other runtime loading flags (-brtl),
18419 # -berok will link without error, but may produce a broken library.
18420 allow_undefined_flag_CXX='-berok'
18421 # Determine the default libpath from the value encoded in an empty executable.
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h. */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18430 main ()
18434 return 0;
18436 _ACEOF
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest$ac_exeext'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18474 # Check for a 64-bit object if we didn't find anything.
18475 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18476 }'`; fi
18477 else
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18488 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18490 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"
18491 else
18492 if test "$host_cpu" = ia64; then
18493 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18494 allow_undefined_flag_CXX="-z nodefs"
18495 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"
18496 else
18497 # Determine the default libpath from the value encoded in an empty executable.
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18506 main ()
18510 return 0;
18512 _ACEOF
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18550 # Check for a 64-bit object if we didn't find anything.
18551 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18552 }'`; fi
18553 else
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18560 rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18564 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18565 # Warning - without using the other run time loading flags,
18566 # -berok will link without error, but may produce a broken library.
18567 no_undefined_flag_CXX=' ${wl}-bernotok'
18568 allow_undefined_flag_CXX=' ${wl}-berok'
18569 # Exported symbols can be pulled into shared objects from archives
18570 whole_archive_flag_spec_CXX='$convenience'
18571 archive_cmds_need_lc_CXX=yes
18572 # This is similar to how AIX traditionally builds its shared libraries.
18573 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'
18578 beos*)
18579 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18580 allow_undefined_flag_CXX=unsupported
18581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18582 # support --undefined. This deserves some investigation. FIXME
18583 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18584 else
18585 ld_shlibs_CXX=no
18589 chorus*)
18590 case $cc_basename in
18592 # FIXME: insert proper C++ library support
18593 ld_shlibs_CXX=no
18595 esac
18598 cygwin* | mingw* | pw32*)
18599 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18600 # as there is no search path for DLLs.
18601 hardcode_libdir_flag_spec_CXX='-L$libdir'
18602 allow_undefined_flag_CXX=unsupported
18603 always_export_symbols_CXX=no
18604 enable_shared_with_static_runtimes_CXX=yes
18606 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18607 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'
18608 # If the export-symbols file already is a .def file (1st line
18609 # is EXPORTS), use it as is; otherwise, prepend...
18610 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18611 cp $export_symbols $output_objdir/$soname.def;
18612 else
18613 echo EXPORTS > $output_objdir/$soname.def;
18614 cat $export_symbols >> $output_objdir/$soname.def;
18616 $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'
18617 else
18618 ld_shlibs_CXX=no
18621 darwin* | rhapsody*)
18622 case $host_os in
18623 rhapsody* | darwin1.[012])
18624 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18626 *) # Darwin 1.3 on
18627 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18628 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18629 else
18630 case ${MACOSX_DEPLOYMENT_TARGET} in
18631 10.[012])
18632 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18634 10.*)
18635 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18637 esac
18640 esac
18641 archive_cmds_need_lc_CXX=no
18642 hardcode_direct_CXX=no
18643 hardcode_automatic_CXX=yes
18644 hardcode_shlibpath_var_CXX=unsupported
18645 whole_archive_flag_spec_CXX=''
18646 link_all_deplibs_CXX=yes
18648 if test "$GXX" = yes ; then
18649 lt_int_apple_cc_single_mod=no
18650 output_verbose_link_cmd='echo'
18651 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18652 lt_int_apple_cc_single_mod=yes
18654 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18655 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18656 else
18657 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'
18659 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18661 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18662 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}'
18663 else
18664 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}'
18666 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}'
18667 else
18668 case $cc_basename in
18669 xlc*)
18670 output_verbose_link_cmd='echo'
18671 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18672 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18673 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18674 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18675 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}'
18678 ld_shlibs_CXX=no
18680 esac
18684 dgux*)
18685 case $cc_basename in
18686 ec++*)
18687 # FIXME: insert proper C++ library support
18688 ld_shlibs_CXX=no
18690 ghcx*)
18691 # Green Hills C++ Compiler
18692 # FIXME: insert proper C++ library support
18693 ld_shlibs_CXX=no
18696 # FIXME: insert proper C++ library support
18697 ld_shlibs_CXX=no
18699 esac
18701 freebsd[12]*)
18702 # C++ shared libraries reported to be fairly broken before switch to ELF
18703 ld_shlibs_CXX=no
18705 freebsd-elf*)
18706 archive_cmds_need_lc_CXX=no
18708 freebsd* | kfreebsd*-gnu | dragonfly*)
18709 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18710 # conventions
18711 ld_shlibs_CXX=yes
18713 gnu*)
18715 hpux9*)
18716 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18717 hardcode_libdir_separator_CXX=:
18718 export_dynamic_flag_spec_CXX='${wl}-E'
18719 hardcode_direct_CXX=yes
18720 hardcode_minus_L_CXX=yes # Not in the search PATH,
18721 # but as the default
18722 # location of the library.
18724 case $cc_basename in
18725 CC*)
18726 # FIXME: insert proper C++ library support
18727 ld_shlibs_CXX=no
18729 aCC*)
18730 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'
18731 # Commands to make compiler produce verbose output that lists
18732 # what "hidden" libraries, object files and flags are used when
18733 # linking a shared library.
18735 # There doesn't appear to be a way to prevent this compiler from
18736 # explicitly linking system object files so we need to strip them
18737 # from the output so that they don't get included in the library
18738 # dependencies.
18739 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'
18742 if test "$GXX" = yes; then
18743 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'
18744 else
18745 # FIXME: insert proper C++ library support
18746 ld_shlibs_CXX=no
18749 esac
18751 hpux10*|hpux11*)
18752 if test $with_gnu_ld = no; then
18753 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18754 hardcode_libdir_separator_CXX=:
18756 case $host_cpu in
18757 hppa*64*|ia64*)
18758 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18761 export_dynamic_flag_spec_CXX='${wl}-E'
18763 esac
18765 case $host_cpu in
18766 hppa*64*|ia64*)
18767 hardcode_direct_CXX=no
18768 hardcode_shlibpath_var_CXX=no
18771 hardcode_direct_CXX=yes
18772 hardcode_minus_L_CXX=yes # Not in the search PATH,
18773 # but as the default
18774 # location of the library.
18776 esac
18778 case $cc_basename in
18779 CC*)
18780 # FIXME: insert proper C++ library support
18781 ld_shlibs_CXX=no
18783 aCC*)
18784 case $host_cpu in
18785 hppa*64*)
18786 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18788 ia64*)
18789 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18794 esac
18795 # Commands to make compiler produce verbose output that lists
18796 # what "hidden" libraries, object files and flags are used when
18797 # linking a shared library.
18799 # There doesn't appear to be a way to prevent this compiler from
18800 # explicitly linking system object files so we need to strip them
18801 # from the output so that they don't get included in the library
18802 # dependencies.
18803 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'
18806 if test "$GXX" = yes; then
18807 if test $with_gnu_ld = no; then
18808 case $host_cpu in
18809 hppa*64*)
18810 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18812 ia64*)
18813 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18816 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'
18818 esac
18820 else
18821 # FIXME: insert proper C++ library support
18822 ld_shlibs_CXX=no
18825 esac
18827 interix3*)
18828 hardcode_direct_CXX=no
18829 hardcode_shlibpath_var_CXX=no
18830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18831 export_dynamic_flag_spec_CXX='${wl}-E'
18832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18833 # Instead, shared libraries are loaded at an image base (0x10000000 by
18834 # default) and relocated if they conflict, which is a slow very memory
18835 # consuming and fragmenting process. To avoid this, we pick a random,
18836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18838 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'
18839 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'
18841 irix5* | irix6*)
18842 case $cc_basename in
18843 CC*)
18844 # SGI C++
18845 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'
18847 # Archives containing C++ object files must be created using
18848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18849 # necessary to make sure instantiated templates are included
18850 # in the archive.
18851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18854 if test "$GXX" = yes; then
18855 if test "$with_gnu_ld" = no; then
18856 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'
18857 else
18858 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'
18861 link_all_deplibs_CXX=yes
18863 esac
18864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18865 hardcode_libdir_separator_CXX=:
18867 linux*)
18868 case $cc_basename in
18869 KCC*)
18870 # Kuck and Associates, Inc. (KAI) C++ Compiler
18872 # KCC will only create a shared library if the output file
18873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18874 # to its proper name (with version) after linking.
18875 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'
18876 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'
18877 # Commands to make compiler produce verbose output that lists
18878 # what "hidden" libraries, object files and flags are used when
18879 # linking a shared library.
18881 # There doesn't appear to be a way to prevent this compiler from
18882 # explicitly linking system object files so we need to strip them
18883 # from the output so that they don't get included in the library
18884 # dependencies.
18885 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'
18887 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18890 # Archives containing C++ object files must be created using
18891 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18894 icpc*)
18895 # Intel C++
18896 with_gnu_ld=yes
18897 # version 8.0 and above of icpc choke on multiply defined symbols
18898 # if we add $predep_objects and $postdep_objects, however 7.1 and
18899 # earlier do not add the objects themselves.
18900 case `$CC -V 2>&1` in
18901 *"Version 7."*)
18902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18903 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'
18905 *) # Version 8.0 or newer
18906 tmp_idyn=
18907 case $host_cpu in
18908 ia64*) tmp_idyn=' -i_dynamic';;
18909 esac
18910 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18911 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'
18913 esac
18914 archive_cmds_need_lc_CXX=no
18915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18917 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18919 pgCC*)
18920 # Portland Group C++ compiler
18921 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18922 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'
18924 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18926 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'
18928 cxx*)
18929 # Compaq C++
18930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18931 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'
18933 runpath_var=LD_RUN_PATH
18934 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18935 hardcode_libdir_separator_CXX=:
18937 # Commands to make compiler produce verbose output that lists
18938 # what "hidden" libraries, object files and flags are used when
18939 # linking a shared library.
18941 # There doesn't appear to be a way to prevent this compiler from
18942 # explicitly linking system object files so we need to strip them
18943 # from the output so that they don't get included in the library
18944 # dependencies.
18945 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'
18947 esac
18949 lynxos*)
18950 # FIXME: insert proper C++ library support
18951 ld_shlibs_CXX=no
18953 m88k*)
18954 # FIXME: insert proper C++ library support
18955 ld_shlibs_CXX=no
18957 mvs*)
18958 case $cc_basename in
18959 cxx*)
18960 # FIXME: insert proper C++ library support
18961 ld_shlibs_CXX=no
18964 # FIXME: insert proper C++ library support
18965 ld_shlibs_CXX=no
18967 esac
18969 netbsd*)
18970 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18971 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18972 wlarc=
18973 hardcode_libdir_flag_spec_CXX='-R$libdir'
18974 hardcode_direct_CXX=yes
18975 hardcode_shlibpath_var_CXX=no
18977 # Workaround some broken pre-1.5 toolchains
18978 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18980 openbsd2*)
18981 # C++ shared libraries are fairly broken
18982 ld_shlibs_CXX=no
18984 openbsd*)
18985 hardcode_direct_CXX=yes
18986 hardcode_shlibpath_var_CXX=no
18987 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18988 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18990 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18991 export_dynamic_flag_spec_CXX='${wl}-E'
18992 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18994 output_verbose_link_cmd='echo'
18996 osf3*)
18997 case $cc_basename in
18998 KCC*)
18999 # Kuck and Associates, Inc. (KAI) C++ Compiler
19001 # KCC will only create a shared library if the output file
19002 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19003 # to its proper name (with version) after linking.
19004 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'
19006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19007 hardcode_libdir_separator_CXX=:
19009 # Archives containing C++ object files must be created using
19010 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19011 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19014 RCC*)
19015 # Rational C++ 2.4.1
19016 # FIXME: insert proper C++ library support
19017 ld_shlibs_CXX=no
19019 cxx*)
19020 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19021 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'
19023 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19024 hardcode_libdir_separator_CXX=:
19026 # Commands to make compiler produce verbose output that lists
19027 # what "hidden" libraries, object files and flags are used when
19028 # linking a shared library.
19030 # There doesn't appear to be a way to prevent this compiler from
19031 # explicitly linking system object files so we need to strip them
19032 # from the output so that they don't get included in the library
19033 # dependencies.
19034 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'
19037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19038 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19039 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'
19041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19042 hardcode_libdir_separator_CXX=:
19044 # Commands to make compiler produce verbose output that lists
19045 # what "hidden" libraries, object files and flags are used when
19046 # linking a shared library.
19047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19049 else
19050 # FIXME: insert proper C++ library support
19051 ld_shlibs_CXX=no
19054 esac
19056 osf4* | osf5*)
19057 case $cc_basename in
19058 KCC*)
19059 # Kuck and Associates, Inc. (KAI) C++ Compiler
19061 # KCC will only create a shared library if the output file
19062 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19063 # to its proper name (with version) after linking.
19064 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'
19066 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19067 hardcode_libdir_separator_CXX=:
19069 # Archives containing C++ object files must be created using
19070 # the KAI C++ compiler.
19071 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19073 RCC*)
19074 # Rational C++ 2.4.1
19075 # FIXME: insert proper C++ library support
19076 ld_shlibs_CXX=no
19078 cxx*)
19079 allow_undefined_flag_CXX=' -expect_unresolved \*'
19080 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'
19081 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19082 echo "-hidden">> $lib.exp~
19083 $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~
19084 $rm $lib.exp'
19086 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19087 hardcode_libdir_separator_CXX=:
19089 # Commands to make compiler produce verbose output that lists
19090 # what "hidden" libraries, object files and flags are used when
19091 # linking a shared library.
19093 # There doesn't appear to be a way to prevent this compiler from
19094 # explicitly linking system object files so we need to strip them
19095 # from the output so that they don't get included in the library
19096 # dependencies.
19097 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'
19100 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19101 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19102 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'
19104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19105 hardcode_libdir_separator_CXX=:
19107 # Commands to make compiler produce verbose output that lists
19108 # what "hidden" libraries, object files and flags are used when
19109 # linking a shared library.
19110 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19112 else
19113 # FIXME: insert proper C++ library support
19114 ld_shlibs_CXX=no
19117 esac
19119 psos*)
19120 # FIXME: insert proper C++ library support
19121 ld_shlibs_CXX=no
19123 sunos4*)
19124 case $cc_basename in
19125 CC*)
19126 # Sun C++ 4.x
19127 # FIXME: insert proper C++ library support
19128 ld_shlibs_CXX=no
19130 lcc*)
19131 # Lucid
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19136 # FIXME: insert proper C++ library support
19137 ld_shlibs_CXX=no
19139 esac
19141 solaris*)
19142 case $cc_basename in
19143 CC*)
19144 # Sun C++ 4.2, 5.x and Centerline C++
19145 archive_cmds_need_lc_CXX=yes
19146 no_undefined_flag_CXX=' -zdefs'
19147 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19148 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19149 $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'
19151 hardcode_libdir_flag_spec_CXX='-R$libdir'
19152 hardcode_shlibpath_var_CXX=no
19153 case $host_os in
19154 solaris2.[0-5] | solaris2.[0-5].*) ;;
19156 # The C++ compiler is used as linker so we must use $wl
19157 # flag to pass the commands to the underlying system
19158 # linker. We must also pass each convience library through
19159 # to the system linker between allextract/defaultextract.
19160 # The C++ compiler will combine linker options so we
19161 # cannot just pass the convience library names through
19162 # without $wl.
19163 # Supported since Solaris 2.6 (maybe 2.5.1?)
19164 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
19166 esac
19167 link_all_deplibs_CXX=yes
19169 output_verbose_link_cmd='echo'
19171 # Archives containing C++ object files must be created using
19172 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19173 # necessary to make sure instantiated templates are included
19174 # in the archive.
19175 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19177 gcx*)
19178 # Green Hills C++ Compiler
19179 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19181 # The C++ compiler must be used to create the archive.
19182 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19185 # GNU C++ compiler with Solaris linker
19186 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19187 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19188 if $CC --version | grep -v '^2\.7' > /dev/null; then
19189 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19190 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19191 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19193 # Commands to make compiler produce verbose output that lists
19194 # what "hidden" libraries, object files and flags are used when
19195 # linking a shared library.
19196 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19197 else
19198 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19199 # platform.
19200 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19201 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19202 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19204 # Commands to make compiler produce verbose output that lists
19205 # what "hidden" libraries, object files and flags are used when
19206 # linking a shared library.
19207 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19210 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19213 esac
19215 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19216 no_undefined_flag_CXX='${wl}-z,text'
19217 archive_cmds_need_lc_CXX=no
19218 hardcode_shlibpath_var_CXX=no
19219 runpath_var='LD_RUN_PATH'
19221 case $cc_basename in
19222 CC*)
19223 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19224 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19227 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19228 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19230 esac
19232 sysv5* | sco3.2v5* | sco5v6*)
19233 # Note: We can NOT use -z defs as we might desire, because we do not
19234 # link with -lc, and that would cause any symbols used from libc to
19235 # always be unresolved, which means just about no library would
19236 # ever link correctly. If we're not using GNU ld we use -z text
19237 # though, which does catch some bad symbols but isn't as heavy-handed
19238 # as -z defs.
19239 # For security reasons, it is highly recommended that you always
19240 # use absolute paths for naming shared libraries, and exclude the
19241 # DT_RUNPATH tag from executables and libraries. But doing so
19242 # requires that you compile everything twice, which is a pain.
19243 # So that behaviour is only enabled if SCOABSPATH is set to a
19244 # non-empty value in the environment. Most likely only useful for
19245 # creating official distributions of packages.
19246 # This is a hack until libtool officially supports absolute path
19247 # names for shared libraries.
19248 no_undefined_flag_CXX='${wl}-z,text'
19249 allow_undefined_flag_CXX='${wl}-z,nodefs'
19250 archive_cmds_need_lc_CXX=no
19251 hardcode_shlibpath_var_CXX=no
19252 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19253 hardcode_libdir_separator_CXX=':'
19254 link_all_deplibs_CXX=yes
19255 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19256 runpath_var='LD_RUN_PATH'
19258 case $cc_basename in
19259 CC*)
19260 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19261 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19264 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19267 esac
19269 tandem*)
19270 case $cc_basename in
19271 NCC*)
19272 # NonStop-UX NCC 3.20
19273 # FIXME: insert proper C++ library support
19274 ld_shlibs_CXX=no
19277 # FIXME: insert proper C++ library support
19278 ld_shlibs_CXX=no
19280 esac
19282 vxworks*)
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19287 # FIXME: insert proper C++ library support
19288 ld_shlibs_CXX=no
19290 esac
19291 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19292 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19293 test "$ld_shlibs_CXX" = no && can_build_shared=no
19295 GCC_CXX="$GXX"
19296 LD_CXX="$LD"
19299 cat > conftest.$ac_ext <<EOF
19300 class Foo
19302 public:
19303 Foo (void) { a = 0; }
19304 private:
19305 int a;
19309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19310 (eval $ac_compile) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; then
19314 # Parse the compiler output and extract the necessary
19315 # objects, libraries and library flags.
19317 # Sentinel used to keep track of whether or not we are before
19318 # the conftest object file.
19319 pre_test_object_deps_done=no
19321 # The `*' in the case matches for architectures that use `case' in
19322 # $output_verbose_cmd can trigger glob expansion during the loop
19323 # eval without this substitution.
19324 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19326 for p in `eval $output_verbose_link_cmd`; do
19327 case $p in
19329 -L* | -R* | -l*)
19330 # Some compilers place space between "-{L,R}" and the path.
19331 # Remove the space.
19332 if test $p = "-L" \
19333 || test $p = "-R"; then
19334 prev=$p
19335 continue
19336 else
19337 prev=
19340 if test "$pre_test_object_deps_done" = no; then
19341 case $p in
19342 -L* | -R*)
19343 # Internal compiler library paths should come after those
19344 # provided the user. The postdeps already come after the
19345 # user supplied libs so there is no need to process them.
19346 if test -z "$compiler_lib_search_path_CXX"; then
19347 compiler_lib_search_path_CXX="${prev}${p}"
19348 else
19349 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19352 # The "-l" case would never come before the object being
19353 # linked, so don't bother handling this case.
19354 esac
19355 else
19356 if test -z "$postdeps_CXX"; then
19357 postdeps_CXX="${prev}${p}"
19358 else
19359 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19364 *.$objext)
19365 # This assumes that the test object file only shows up
19366 # once in the compiler output.
19367 if test "$p" = "conftest.$objext"; then
19368 pre_test_object_deps_done=yes
19369 continue
19372 if test "$pre_test_object_deps_done" = no; then
19373 if test -z "$predep_objects_CXX"; then
19374 predep_objects_CXX="$p"
19375 else
19376 predep_objects_CXX="$predep_objects_CXX $p"
19378 else
19379 if test -z "$postdep_objects_CXX"; then
19380 postdep_objects_CXX="$p"
19381 else
19382 postdep_objects_CXX="$postdep_objects_CXX $p"
19387 *) ;; # Ignore the rest.
19389 esac
19390 done
19392 # Clean up.
19393 rm -f a.out a.exe
19394 else
19395 echo "libtool.m4: error: problem compiling CXX test program"
19398 $rm -f confest.$objext
19400 # PORTME: override above test on systems where it is broken
19401 case $host_os in
19402 interix3*)
19403 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19404 # hack all around it, let's just trust "g++" to DTRT.
19405 predep_objects_CXX=
19406 postdep_objects_CXX=
19407 postdeps_CXX=
19410 solaris*)
19411 case $cc_basename in
19412 CC*)
19413 # Adding this requires a known-good setup of shared libraries for
19414 # Sun compiler versions before 5.6, else PIC objects from an old
19415 # archive will be linked into the output, leading to subtle bugs.
19416 postdeps_CXX='-lCstd -lCrun'
19418 esac
19420 esac
19423 case " $postdeps_CXX " in
19424 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19425 esac
19427 lt_prog_compiler_wl_CXX=
19428 lt_prog_compiler_pic_CXX=
19429 lt_prog_compiler_static_CXX=
19431 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19432 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19434 # C++ specific cases for pic, static, wl, etc.
19435 if test "$GXX" = yes; then
19436 lt_prog_compiler_wl_CXX='-Wl,'
19437 lt_prog_compiler_static_CXX='-static'
19439 case $host_os in
19440 aix*)
19441 # All AIX code is PIC.
19442 if test "$host_cpu" = ia64; then
19443 # AIX 5 now supports IA64 processor
19444 lt_prog_compiler_static_CXX='-Bstatic'
19447 amigaos*)
19448 # FIXME: we need at least 68020 code to build shared libraries, but
19449 # adding the `-m68020' flag to GCC prevents building anything better,
19450 # like `-m68040'.
19451 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19453 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19454 # PIC is the default for these OSes.
19456 mingw* | os2* | pw32*)
19457 # This hack is so that the source file can tell whether it is being
19458 # built for inclusion in a dll (and should export symbols for example).
19459 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19461 darwin* | rhapsody*)
19462 # PIC is the default on this platform
19463 # Common symbols not allowed in MH_DYLIB files
19464 lt_prog_compiler_pic_CXX='-fno-common'
19466 *djgpp*)
19467 # DJGPP does not support shared libraries at all
19468 lt_prog_compiler_pic_CXX=
19470 interix3*)
19471 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19472 # Instead, we relocate shared libraries at runtime.
19474 sysv4*MP*)
19475 if test -d /usr/nec; then
19476 lt_prog_compiler_pic_CXX=-Kconform_pic
19479 hpux*)
19480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19481 # not for PA HP-UX.
19482 case $host_cpu in
19483 hppa*64*|ia64*)
19486 lt_prog_compiler_pic_CXX='-fPIC'
19488 esac
19491 lt_prog_compiler_pic_CXX='-fPIC'
19493 esac
19494 else
19495 case $host_os in
19496 aix4* | aix5*)
19497 # All AIX code is PIC.
19498 if test "$host_cpu" = ia64; then
19499 # AIX 5 now supports IA64 processor
19500 lt_prog_compiler_static_CXX='-Bstatic'
19501 else
19502 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19505 chorus*)
19506 case $cc_basename in
19507 cxch68*)
19508 # Green Hills C++ Compiler
19509 # _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"
19511 esac
19513 darwin*)
19514 # PIC is the default on this platform
19515 # Common symbols not allowed in MH_DYLIB files
19516 case $cc_basename in
19517 xlc*)
19518 lt_prog_compiler_pic_CXX='-qnocommon'
19519 lt_prog_compiler_wl_CXX='-Wl,'
19521 esac
19523 dgux*)
19524 case $cc_basename in
19525 ec++*)
19526 lt_prog_compiler_pic_CXX='-KPIC'
19528 ghcx*)
19529 # Green Hills C++ Compiler
19530 lt_prog_compiler_pic_CXX='-pic'
19534 esac
19536 freebsd* | kfreebsd*-gnu | dragonfly*)
19537 # FreeBSD uses GNU C++
19539 hpux9* | hpux10* | hpux11*)
19540 case $cc_basename in
19541 CC*)
19542 lt_prog_compiler_wl_CXX='-Wl,'
19543 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19544 if test "$host_cpu" != ia64; then
19545 lt_prog_compiler_pic_CXX='+Z'
19548 aCC*)
19549 lt_prog_compiler_wl_CXX='-Wl,'
19550 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19551 case $host_cpu in
19552 hppa*64*|ia64*)
19553 # +Z the default
19556 lt_prog_compiler_pic_CXX='+Z'
19558 esac
19562 esac
19564 interix*)
19565 # This is c89, which is MS Visual C++ (no shared libs)
19566 # Anyone wants to do a port?
19568 irix5* | irix6* | nonstopux*)
19569 case $cc_basename in
19570 CC*)
19571 lt_prog_compiler_wl_CXX='-Wl,'
19572 lt_prog_compiler_static_CXX='-non_shared'
19573 # CC pic flag -KPIC is the default.
19577 esac
19579 linux*)
19580 case $cc_basename in
19581 KCC*)
19582 # KAI C++ Compiler
19583 lt_prog_compiler_wl_CXX='--backend -Wl,'
19584 lt_prog_compiler_pic_CXX='-fPIC'
19586 icpc* | ecpc*)
19587 # Intel C++
19588 lt_prog_compiler_wl_CXX='-Wl,'
19589 lt_prog_compiler_pic_CXX='-KPIC'
19590 lt_prog_compiler_static_CXX='-static'
19592 pgCC*)
19593 # Portland Group C++ compiler.
19594 lt_prog_compiler_wl_CXX='-Wl,'
19595 lt_prog_compiler_pic_CXX='-fpic'
19596 lt_prog_compiler_static_CXX='-Bstatic'
19598 cxx*)
19599 # Compaq C++
19600 # Make sure the PIC flag is empty. It appears that all Alpha
19601 # Linux and Compaq Tru64 Unix objects are PIC.
19602 lt_prog_compiler_pic_CXX=
19603 lt_prog_compiler_static_CXX='-non_shared'
19607 esac
19609 lynxos*)
19611 m88k*)
19613 mvs*)
19614 case $cc_basename in
19615 cxx*)
19616 lt_prog_compiler_pic_CXX='-W c,exportall'
19620 esac
19622 netbsd*)
19624 osf3* | osf4* | osf5*)
19625 case $cc_basename in
19626 KCC*)
19627 lt_prog_compiler_wl_CXX='--backend -Wl,'
19629 RCC*)
19630 # Rational C++ 2.4.1
19631 lt_prog_compiler_pic_CXX='-pic'
19633 cxx*)
19634 # Digital/Compaq C++
19635 lt_prog_compiler_wl_CXX='-Wl,'
19636 # Make sure the PIC flag is empty. It appears that all Alpha
19637 # Linux and Compaq Tru64 Unix objects are PIC.
19638 lt_prog_compiler_pic_CXX=
19639 lt_prog_compiler_static_CXX='-non_shared'
19643 esac
19645 psos*)
19647 solaris*)
19648 case $cc_basename in
19649 CC*)
19650 # Sun C++ 4.2, 5.x and Centerline C++
19651 lt_prog_compiler_pic_CXX='-KPIC'
19652 lt_prog_compiler_static_CXX='-Bstatic'
19653 lt_prog_compiler_wl_CXX='-Qoption ld '
19655 gcx*)
19656 # Green Hills C++ Compiler
19657 lt_prog_compiler_pic_CXX='-PIC'
19661 esac
19663 sunos4*)
19664 case $cc_basename in
19665 CC*)
19666 # Sun C++ 4.x
19667 lt_prog_compiler_pic_CXX='-pic'
19668 lt_prog_compiler_static_CXX='-Bstatic'
19670 lcc*)
19671 # Lucid
19672 lt_prog_compiler_pic_CXX='-pic'
19676 esac
19678 tandem*)
19679 case $cc_basename in
19680 NCC*)
19681 # NonStop-UX NCC 3.20
19682 lt_prog_compiler_pic_CXX='-KPIC'
19686 esac
19688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19689 case $cc_basename in
19690 CC*)
19691 lt_prog_compiler_wl_CXX='-Wl,'
19692 lt_prog_compiler_pic_CXX='-KPIC'
19693 lt_prog_compiler_static_CXX='-Bstatic'
19695 esac
19697 vxworks*)
19700 lt_prog_compiler_can_build_shared_CXX=no
19702 esac
19705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19706 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19709 # Check to make sure the PIC flag actually works.
19711 if test -n "$lt_prog_compiler_pic_CXX"; then
19713 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19715 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718 lt_prog_compiler_pic_works_CXX=no
19719 ac_outfile=conftest.$ac_objext
19720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19721 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19722 # Insert the option either (1) after the last *FLAGS variable, or
19723 # (2) before a word containing "conftest.", or (3) at the end.
19724 # Note that $ac_compile itself does not contain backslashes and begins
19725 # with a dollar sign (not a hyphen), so the echo should work correctly.
19726 # The option is referenced via a variable to avoid confusing sed.
19727 lt_compile=`echo "$ac_compile" | $SED \
19728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19730 -e 's:$: $lt_compiler_flag:'`
19731 (eval echo "\"\$as_me:19717: $lt_compile\"" >&5)
19732 (eval "$lt_compile" 2>conftest.err)
19733 ac_status=$?
19734 cat conftest.err >&5
19735 echo "$as_me:19721: \$? = $ac_status" >&5
19736 if (exit $ac_status) && test -s "$ac_outfile"; then
19737 # The compiler can only warn and ignore the option if not recognized
19738 # So say no if there are warnings other than the usual output.
19739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19742 lt_prog_compiler_pic_works_CXX=yes
19745 $rm conftest*
19748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19749 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19751 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19752 case $lt_prog_compiler_pic_CXX in
19753 "" | " "*) ;;
19754 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19755 esac
19756 else
19757 lt_prog_compiler_pic_CXX=
19758 lt_prog_compiler_can_build_shared_CXX=no
19762 case $host_os in
19763 # For platforms which do not support PIC, -DPIC is meaningless:
19764 *djgpp*)
19765 lt_prog_compiler_pic_CXX=
19768 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19770 esac
19773 # Check to make sure the static flag actually works.
19775 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19776 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19777 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19778 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19779 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 else
19781 lt_prog_compiler_static_works_CXX=no
19782 save_LDFLAGS="$LDFLAGS"
19783 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19784 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19786 # The linker can only warn and ignore the option if not recognized
19787 # So say no if there are warnings
19788 if test -s conftest.err; then
19789 # Append any errors to the config.log.
19790 cat conftest.err 1>&5
19791 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19793 if diff conftest.exp conftest.er2 >/dev/null; then
19794 lt_prog_compiler_static_works_CXX=yes
19796 else
19797 lt_prog_compiler_static_works_CXX=yes
19800 $rm conftest*
19801 LDFLAGS="$save_LDFLAGS"
19804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19805 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19807 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19809 else
19810 lt_prog_compiler_static_CXX=
19814 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19816 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819 lt_cv_prog_compiler_c_o_CXX=no
19820 $rm -r conftest 2>/dev/null
19821 mkdir conftest
19822 cd conftest
19823 mkdir out
19824 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19826 lt_compiler_flag="-o out/conftest2.$ac_objext"
19827 # Insert the option either (1) after the last *FLAGS variable, or
19828 # (2) before a word containing "conftest.", or (3) at the end.
19829 # Note that $ac_compile itself does not contain backslashes and begins
19830 # with a dollar sign (not a hyphen), so the echo should work correctly.
19831 lt_compile=`echo "$ac_compile" | $SED \
19832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19834 -e 's:$: $lt_compiler_flag:'`
19835 (eval echo "\"\$as_me:19821: $lt_compile\"" >&5)
19836 (eval "$lt_compile" 2>out/conftest.err)
19837 ac_status=$?
19838 cat out/conftest.err >&5
19839 echo "$as_me:19825: \$? = $ac_status" >&5
19840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19841 then
19842 # The compiler can only warn and ignore the option if not recognized
19843 # So say no if there are warnings
19844 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19847 lt_cv_prog_compiler_c_o_CXX=yes
19850 chmod u+w . 2>&5
19851 $rm conftest*
19852 # SGI C++ compiler will create directory out/ii_files/ for
19853 # template instantiation
19854 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19855 $rm out/* && rmdir out
19856 cd ..
19857 rmdir conftest
19858 $rm conftest*
19861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19865 hard_links="nottested"
19866 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19867 # do not overwrite the value of need_locks provided by the user
19868 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19870 hard_links=yes
19871 $rm conftest*
19872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19873 touch conftest.a
19874 ln conftest.a conftest.b 2>&5 || hard_links=no
19875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19876 { echo "$as_me:$LINENO: result: $hard_links" >&5
19877 echo "${ECHO_T}$hard_links" >&6; }
19878 if test "$hard_links" = no; then
19879 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19881 need_locks=warn
19883 else
19884 need_locks=no
19887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19890 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19891 case $host_os in
19892 aix4* | aix5*)
19893 # If we're using GNU nm, then we don't want the "-C" option.
19894 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19895 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19896 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'
19897 else
19898 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'
19901 pw32*)
19902 export_symbols_cmds_CXX="$ltdll_cmds"
19904 cygwin* | mingw*)
19905 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'
19908 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19910 esac
19912 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19913 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19914 test "$ld_shlibs_CXX" = no && can_build_shared=no
19917 # Do we need to explicitly link libc?
19919 case "x$archive_cmds_need_lc_CXX" in
19920 x|xyes)
19921 # Assume -lc should be added
19922 archive_cmds_need_lc_CXX=yes
19924 if test "$enable_shared" = yes && test "$GCC" = yes; then
19925 case $archive_cmds_CXX in
19926 *'~'*)
19927 # FIXME: we may have to deal with multi-command sequences.
19929 '$CC '*)
19930 # Test whether the compiler implicitly links with -lc since on some
19931 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19932 # to ld, don't add -lc before -lgcc.
19933 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19934 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19935 $rm conftest*
19936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939 (eval $ac_compile) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } 2>conftest.err; then
19943 soname=conftest
19944 lib=conftest
19945 libobjs=conftest.$ac_objext
19946 deplibs=
19947 wl=$lt_prog_compiler_wl_CXX
19948 pic_flag=$lt_prog_compiler_pic_CXX
19949 compiler_flags=-v
19950 linker_flags=-v
19951 verstring=
19952 output_objdir=.
19953 libname=conftest
19954 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19955 allow_undefined_flag_CXX=
19956 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19957 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }
19961 then
19962 archive_cmds_need_lc_CXX=no
19963 else
19964 archive_cmds_need_lc_CXX=yes
19966 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19967 else
19968 cat conftest.err 1>&5
19970 $rm conftest*
19971 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19972 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19974 esac
19977 esac
19979 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19980 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19981 library_names_spec=
19982 libname_spec='lib$name'
19983 soname_spec=
19984 shrext_cmds=".so"
19985 postinstall_cmds=
19986 postuninstall_cmds=
19987 finish_cmds=
19988 finish_eval=
19989 shlibpath_var=
19990 shlibpath_overrides_runpath=unknown
19991 version_type=none
19992 dynamic_linker="$host_os ld.so"
19993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19994 if test "$GCC" = yes; then
19995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19996 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19997 # if the path contains ";" then we assume it to be the separator
19998 # otherwise default to the standard path separator (i.e. ":") - it is
19999 # assumed that no part of a normal pathname contains ";" but that should
20000 # okay in the real world where ";" in dirpaths is itself problematic.
20001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20002 else
20003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20005 else
20006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20008 need_lib_prefix=unknown
20009 hardcode_into_libs=no
20011 # when you set need_version to no, make sure it does not cause -set_version
20012 # flags to be left without arguments
20013 need_version=unknown
20015 case $host_os in
20016 aix3*)
20017 version_type=linux
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20019 shlibpath_var=LIBPATH
20021 # AIX 3 has no versioning support, so we append a major version to the name.
20022 soname_spec='${libname}${release}${shared_ext}$major'
20025 aix4* | aix5*)
20026 version_type=linux
20027 need_lib_prefix=no
20028 need_version=no
20029 hardcode_into_libs=yes
20030 if test "$host_cpu" = ia64; then
20031 # AIX 5 supports IA64
20032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20033 shlibpath_var=LD_LIBRARY_PATH
20034 else
20035 # With GCC up to 2.95.x, collect2 would create an import file
20036 # for dependence libraries. The import file would start with
20037 # the line `#! .'. This would cause the generated library to
20038 # depend on `.', always an invalid library. This was fixed in
20039 # development snapshots of GCC prior to 3.0.
20040 case $host_os in
20041 aix4 | aix4.[01] | aix4.[01].*)
20042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20043 echo ' yes '
20044 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20046 else
20047 can_build_shared=no
20050 esac
20051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20052 # soname into executable. Probably we can add versioning support to
20053 # collect2, so additional links can be useful in future.
20054 if test "$aix_use_runtimelinking" = yes; then
20055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20056 # instead of lib<name>.a to let people know that these are not
20057 # typical AIX shared libraries.
20058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20059 else
20060 # We preserve .a as extension for shared libraries through AIX4.2
20061 # and later when we are not doing run time linking.
20062 library_names_spec='${libname}${release}.a $libname.a'
20063 soname_spec='${libname}${release}${shared_ext}$major'
20065 shlibpath_var=LIBPATH
20069 amigaos*)
20070 library_names_spec='$libname.ixlibrary $libname.a'
20071 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20072 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'
20075 beos*)
20076 library_names_spec='${libname}${shared_ext}'
20077 dynamic_linker="$host_os ld.so"
20078 shlibpath_var=LIBRARY_PATH
20081 bsdi[45]*)
20082 version_type=linux
20083 need_version=no
20084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20085 soname_spec='${libname}${release}${shared_ext}$major'
20086 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20087 shlibpath_var=LD_LIBRARY_PATH
20088 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20089 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20090 # the default ld.so.conf also contains /usr/contrib/lib and
20091 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20092 # libtool to hard-code these into programs
20095 cygwin* | mingw* | pw32*)
20096 version_type=windows
20097 shrext_cmds=".dll"
20098 need_version=no
20099 need_lib_prefix=no
20101 case $GCC,$host_os in
20102 yes,cygwin* | yes,mingw* | yes,pw32*)
20103 library_names_spec='$libname.dll.a'
20104 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20105 postinstall_cmds='base_file=`basename \${file}`~
20106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20107 dldir=$destdir/`dirname \$dlpath`~
20108 test -d \$dldir || mkdir -p \$dldir~
20109 $install_prog $dir/$dlname \$dldir/$dlname~
20110 chmod a+x \$dldir/$dlname'
20111 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20112 dlpath=$dir/\$dldll~
20113 $rm \$dlpath'
20114 shlibpath_overrides_runpath=yes
20116 case $host_os in
20117 cygwin*)
20118 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20119 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20120 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20122 mingw*)
20123 # MinGW DLLs use traditional 'lib' prefix
20124 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20125 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20126 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20127 # It is most probably a Windows format PATH printed by
20128 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20129 # path with ; separators, and with drive letters. We can handle the
20130 # drive letters (cygwin fileutils understands them), so leave them,
20131 # especially as we might pass files found there to a mingw objdump,
20132 # which wouldn't understand a cygwinified path. Ahh.
20133 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20134 else
20135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20138 pw32*)
20139 # pw32 DLLs use 'pw' prefix rather than 'lib'
20140 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20142 esac
20146 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20148 esac
20149 dynamic_linker='Win32 ld.exe'
20150 # FIXME: first we should search . and the directory the executable is in
20151 shlibpath_var=PATH
20154 darwin* | rhapsody*)
20155 dynamic_linker="$host_os dyld"
20156 version_type=darwin
20157 need_lib_prefix=no
20158 need_version=no
20159 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20160 soname_spec='${libname}${release}${major}$shared_ext'
20161 shlibpath_overrides_runpath=yes
20162 shlibpath_var=DYLD_LIBRARY_PATH
20163 shrext_cmds='.dylib'
20164 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20165 if test "$GCC" = yes; then
20166 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20167 else
20168 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20170 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20173 dgux*)
20174 version_type=linux
20175 need_lib_prefix=no
20176 need_version=no
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 shlibpath_var=LD_LIBRARY_PATH
20182 freebsd1*)
20183 dynamic_linker=no
20186 kfreebsd*-gnu)
20187 version_type=linux
20188 need_lib_prefix=no
20189 need_version=no
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20191 soname_spec='${libname}${release}${shared_ext}$major'
20192 shlibpath_var=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath=no
20194 hardcode_into_libs=yes
20195 dynamic_linker='GNU ld.so'
20198 freebsd* | dragonfly*)
20199 # DragonFly does not have aout. When/if they implement a new
20200 # versioning mechanism, adjust this.
20201 if test -x /usr/bin/objformat; then
20202 objformat=`/usr/bin/objformat`
20203 else
20204 case $host_os in
20205 freebsd[123]*) objformat=aout ;;
20206 *) objformat=elf ;;
20207 esac
20209 version_type=freebsd-$objformat
20210 case $version_type in
20211 freebsd-elf*)
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20213 need_version=no
20214 need_lib_prefix=no
20216 freebsd-*)
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20218 need_version=yes
20220 esac
20221 shlibpath_var=LD_LIBRARY_PATH
20222 case $host_os in
20223 freebsd2*)
20224 shlibpath_overrides_runpath=yes
20226 freebsd3.[01]* | freebsdelf3.[01]*)
20227 shlibpath_overrides_runpath=yes
20228 hardcode_into_libs=yes
20230 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20231 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20232 shlibpath_overrides_runpath=no
20233 hardcode_into_libs=yes
20235 freebsd*) # from 4.6 on
20236 shlibpath_overrides_runpath=yes
20237 hardcode_into_libs=yes
20239 esac
20242 gnu*)
20243 version_type=linux
20244 need_lib_prefix=no
20245 need_version=no
20246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 shlibpath_var=LD_LIBRARY_PATH
20249 hardcode_into_libs=yes
20252 hpux9* | hpux10* | hpux11*)
20253 # Give a soname corresponding to the major version so that dld.sl refuses to
20254 # link against other versions.
20255 version_type=sunos
20256 need_lib_prefix=no
20257 need_version=no
20258 case $host_cpu in
20259 ia64*)
20260 shrext_cmds='.so'
20261 hardcode_into_libs=yes
20262 dynamic_linker="$host_os dld.so"
20263 shlibpath_var=LD_LIBRARY_PATH
20264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 if test "X$HPUX_IA64_MODE" = X32; then
20268 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20269 else
20270 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20274 hppa*64*)
20275 shrext_cmds='.sl'
20276 hardcode_into_libs=yes
20277 dynamic_linker="$host_os dld.sl"
20278 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20281 soname_spec='${libname}${release}${shared_ext}$major'
20282 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20286 shrext_cmds='.sl'
20287 dynamic_linker="$host_os dld.sl"
20288 shlibpath_var=SHLIB_PATH
20289 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291 soname_spec='${libname}${release}${shared_ext}$major'
20293 esac
20294 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20295 postinstall_cmds='chmod 555 $lib'
20298 interix3*)
20299 version_type=linux
20300 need_lib_prefix=no
20301 need_version=no
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20303 soname_spec='${libname}${release}${shared_ext}$major'
20304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 shlibpath_overrides_runpath=no
20307 hardcode_into_libs=yes
20310 irix5* | irix6* | nonstopux*)
20311 case $host_os in
20312 nonstopux*) version_type=nonstopux ;;
20314 if test "$lt_cv_prog_gnu_ld" = yes; then
20315 version_type=linux
20316 else
20317 version_type=irix
20318 fi ;;
20319 esac
20320 need_lib_prefix=no
20321 need_version=no
20322 soname_spec='${libname}${release}${shared_ext}$major'
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20324 case $host_os in
20325 irix5* | nonstopux*)
20326 libsuff= shlibsuff=
20329 case $LD in # libtool.m4 will add one of these switches to LD
20330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20331 libsuff= shlibsuff= libmagic=32-bit;;
20332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20333 libsuff=32 shlibsuff=N32 libmagic=N32;;
20334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20336 *) libsuff= shlibsuff= libmagic=never-match;;
20337 esac
20339 esac
20340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20341 shlibpath_overrides_runpath=no
20342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20344 hardcode_into_libs=yes
20347 # No shared lib support for Linux oldld, aout, or coff.
20348 linux*oldld* | linux*aout* | linux*coff*)
20349 dynamic_linker=no
20352 # This must be Linux ELF.
20353 linux*)
20354 version_type=linux
20355 need_lib_prefix=no
20356 need_version=no
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 shlibpath_overrides_runpath=no
20362 # This implies no fast_install, which is unacceptable.
20363 # Some rework will be needed to allow for fast_install
20364 # before this can be enabled.
20365 hardcode_into_libs=yes
20367 # Append ld.so.conf contents to the search path
20368 if test -f /etc/ld.so.conf; then
20369 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20370 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20373 # We used to test for /lib/ld.so.1 and disable shared libraries on
20374 # powerpc, because MkLinux only supported shared libraries with the
20375 # GNU dynamic linker. Since this was broken with cross compilers,
20376 # most powerpc-linux boxes support dynamic linking these days and
20377 # people can always --disable-shared, the test was removed, and we
20378 # assume the GNU/Linux dynamic linker is in use.
20379 dynamic_linker='GNU/Linux ld.so'
20382 knetbsd*-gnu)
20383 version_type=linux
20384 need_lib_prefix=no
20385 need_version=no
20386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20387 soname_spec='${libname}${release}${shared_ext}$major'
20388 shlibpath_var=LD_LIBRARY_PATH
20389 shlibpath_overrides_runpath=no
20390 hardcode_into_libs=yes
20391 dynamic_linker='GNU ld.so'
20394 netbsd*)
20395 version_type=sunos
20396 need_lib_prefix=no
20397 need_version=no
20398 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20401 dynamic_linker='NetBSD (a.out) ld.so'
20402 else
20403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20404 soname_spec='${libname}${release}${shared_ext}$major'
20405 dynamic_linker='NetBSD ld.elf_so'
20407 shlibpath_var=LD_LIBRARY_PATH
20408 shlibpath_overrides_runpath=yes
20409 hardcode_into_libs=yes
20412 newsos6)
20413 version_type=linux
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=yes
20419 nto-qnx*)
20420 version_type=linux
20421 need_lib_prefix=no
20422 need_version=no
20423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20424 soname_spec='${libname}${release}${shared_ext}$major'
20425 shlibpath_var=LD_LIBRARY_PATH
20426 shlibpath_overrides_runpath=yes
20429 openbsd*)
20430 version_type=sunos
20431 sys_lib_dlsearch_path_spec="/usr/lib"
20432 need_lib_prefix=no
20433 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20434 case $host_os in
20435 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20436 *) need_version=no ;;
20437 esac
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20442 case $host_os in
20443 openbsd2.[89] | openbsd2.[89].*)
20444 shlibpath_overrides_runpath=no
20447 shlibpath_overrides_runpath=yes
20449 esac
20450 else
20451 shlibpath_overrides_runpath=yes
20455 os2*)
20456 libname_spec='$name'
20457 shrext_cmds=".dll"
20458 need_lib_prefix=no
20459 library_names_spec='$libname${shared_ext} $libname.a'
20460 dynamic_linker='OS/2 ld.exe'
20461 shlibpath_var=LIBPATH
20464 osf3* | osf4* | osf5*)
20465 version_type=osf
20466 need_lib_prefix=no
20467 need_version=no
20468 soname_spec='${libname}${release}${shared_ext}$major'
20469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20470 shlibpath_var=LD_LIBRARY_PATH
20471 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20472 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20475 solaris*)
20476 version_type=linux
20477 need_lib_prefix=no
20478 need_version=no
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 soname_spec='${libname}${release}${shared_ext}$major'
20481 shlibpath_var=LD_LIBRARY_PATH
20482 shlibpath_overrides_runpath=yes
20483 hardcode_into_libs=yes
20484 # ldd complains unless libraries are executable
20485 postinstall_cmds='chmod +x $lib'
20488 sunos4*)
20489 version_type=sunos
20490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20492 shlibpath_var=LD_LIBRARY_PATH
20493 shlibpath_overrides_runpath=yes
20494 if test "$with_gnu_ld" = yes; then
20495 need_lib_prefix=no
20497 need_version=yes
20500 sysv4 | sysv4.3*)
20501 version_type=linux
20502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20503 soname_spec='${libname}${release}${shared_ext}$major'
20504 shlibpath_var=LD_LIBRARY_PATH
20505 case $host_vendor in
20506 sni)
20507 shlibpath_overrides_runpath=no
20508 need_lib_prefix=no
20509 export_dynamic_flag_spec='${wl}-Blargedynsym'
20510 runpath_var=LD_RUN_PATH
20512 siemens)
20513 need_lib_prefix=no
20515 motorola)
20516 need_lib_prefix=no
20517 need_version=no
20518 shlibpath_overrides_runpath=no
20519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20521 esac
20524 sysv4*MP*)
20525 if test -d /usr/nec ;then
20526 version_type=linux
20527 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20528 soname_spec='$libname${shared_ext}.$major'
20529 shlibpath_var=LD_LIBRARY_PATH
20533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20534 version_type=freebsd-elf
20535 need_lib_prefix=no
20536 need_version=no
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 hardcode_into_libs=yes
20541 if test "$with_gnu_ld" = yes; then
20542 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20543 shlibpath_overrides_runpath=no
20544 else
20545 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20546 shlibpath_overrides_runpath=yes
20547 case $host_os in
20548 sco3.2v5*)
20549 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20551 esac
20553 sys_lib_dlsearch_path_spec='/usr/lib'
20556 uts4*)
20557 version_type=linux
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559 soname_spec='${libname}${release}${shared_ext}$major'
20560 shlibpath_var=LD_LIBRARY_PATH
20564 dynamic_linker=no
20566 esac
20567 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20568 echo "${ECHO_T}$dynamic_linker" >&6; }
20569 test "$dynamic_linker" = no && can_build_shared=no
20571 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20572 if test "$GCC" = yes; then
20573 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20576 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20577 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20578 hardcode_action_CXX=
20579 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20580 test -n "$runpath_var_CXX" || \
20581 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20583 # We can hardcode non-existant directories.
20584 if test "$hardcode_direct_CXX" != no &&
20585 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20586 # have to relink, otherwise we might link with an installed library
20587 # when we should be linking with a yet-to-be-installed one
20588 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20589 test "$hardcode_minus_L_CXX" != no; then
20590 # Linking always hardcodes the temporary library directory.
20591 hardcode_action_CXX=relink
20592 else
20593 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20594 hardcode_action_CXX=immediate
20596 else
20597 # We cannot hardcode anything, or else we can only hardcode existing
20598 # directories.
20599 hardcode_action_CXX=unsupported
20601 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20602 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20604 if test "$hardcode_action_CXX" = relink; then
20605 # Fast installation is not supported
20606 enable_fast_install=no
20607 elif test "$shlibpath_overrides_runpath" = yes ||
20608 test "$enable_shared" = no; then
20609 # Fast installation is not necessary
20610 enable_fast_install=needless
20614 # The else clause should only fire when bootstrapping the
20615 # libtool distribution, otherwise you forgot to ship ltmain.sh
20616 # with your package, and you will get complaints that there are
20617 # no rules to generate ltmain.sh.
20618 if test -f "$ltmain"; then
20619 # See if we are running on zsh, and set the options which allow our commands through
20620 # without removal of \ escapes.
20621 if test -n "${ZSH_VERSION+set}" ; then
20622 setopt NO_GLOB_SUBST
20624 # Now quote all the things that may contain metacharacters while being
20625 # careful not to overquote the AC_SUBSTed values. We take copies of the
20626 # variables and quote the copies for generation of the libtool script.
20627 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20628 SED SHELL STRIP \
20629 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20630 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20631 deplibs_check_method reload_flag reload_cmds need_locks \
20632 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20633 lt_cv_sys_global_symbol_to_c_name_address \
20634 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20635 old_postinstall_cmds old_postuninstall_cmds \
20636 compiler_CXX \
20637 CC_CXX \
20638 LD_CXX \
20639 lt_prog_compiler_wl_CXX \
20640 lt_prog_compiler_pic_CXX \
20641 lt_prog_compiler_static_CXX \
20642 lt_prog_compiler_no_builtin_flag_CXX \
20643 export_dynamic_flag_spec_CXX \
20644 thread_safe_flag_spec_CXX \
20645 whole_archive_flag_spec_CXX \
20646 enable_shared_with_static_runtimes_CXX \
20647 old_archive_cmds_CXX \
20648 old_archive_from_new_cmds_CXX \
20649 predep_objects_CXX \
20650 postdep_objects_CXX \
20651 predeps_CXX \
20652 postdeps_CXX \
20653 compiler_lib_search_path_CXX \
20654 archive_cmds_CXX \
20655 archive_expsym_cmds_CXX \
20656 postinstall_cmds_CXX \
20657 postuninstall_cmds_CXX \
20658 old_archive_from_expsyms_cmds_CXX \
20659 allow_undefined_flag_CXX \
20660 no_undefined_flag_CXX \
20661 export_symbols_cmds_CXX \
20662 hardcode_libdir_flag_spec_CXX \
20663 hardcode_libdir_flag_spec_ld_CXX \
20664 hardcode_libdir_separator_CXX \
20665 hardcode_automatic_CXX \
20666 module_cmds_CXX \
20667 module_expsym_cmds_CXX \
20668 lt_cv_prog_compiler_c_o_CXX \
20669 exclude_expsyms_CXX \
20670 include_expsyms_CXX; do
20672 case $var in
20673 old_archive_cmds_CXX | \
20674 old_archive_from_new_cmds_CXX | \
20675 archive_cmds_CXX | \
20676 archive_expsym_cmds_CXX | \
20677 module_cmds_CXX | \
20678 module_expsym_cmds_CXX | \
20679 old_archive_from_expsyms_cmds_CXX | \
20680 export_symbols_cmds_CXX | \
20681 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20682 postinstall_cmds | postuninstall_cmds | \
20683 old_postinstall_cmds | old_postuninstall_cmds | \
20684 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20685 # Double-quote double-evaled strings.
20686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20689 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20691 esac
20692 done
20694 case $lt_echo in
20695 *'\$0 --fallback-echo"')
20696 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20698 esac
20700 cfgfile="$ofile"
20702 cat <<__EOF__ >> "$cfgfile"
20703 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20707 # Shell to use when invoking shell scripts.
20708 SHELL=$lt_SHELL
20710 # Whether or not to build shared libraries.
20711 build_libtool_libs=$enable_shared
20713 # Whether or not to build static libraries.
20714 build_old_libs=$enable_static
20716 # Whether or not to add -lc for building shared libraries.
20717 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20719 # Whether or not to disallow shared libs when runtime libs are static
20720 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20722 # Whether or not to optimize for fast installation.
20723 fast_install=$enable_fast_install
20725 # The host system.
20726 host_alias=$host_alias
20727 host=$host
20728 host_os=$host_os
20730 # The build system.
20731 build_alias=$build_alias
20732 build=$build
20733 build_os=$build_os
20735 # An echo program that does not interpret backslashes.
20736 echo=$lt_echo
20738 # The archiver.
20739 AR=$lt_AR
20740 AR_FLAGS=$lt_AR_FLAGS
20742 # A C compiler.
20743 LTCC=$lt_LTCC
20745 # LTCC compiler flags.
20746 LTCFLAGS=$lt_LTCFLAGS
20748 # A language-specific compiler.
20749 CC=$lt_compiler_CXX
20751 # Is the compiler the GNU C compiler?
20752 with_gcc=$GCC_CXX
20754 # An ERE matcher.
20755 EGREP=$lt_EGREP
20757 # The linker used to build libraries.
20758 LD=$lt_LD_CXX
20760 # Whether we need hard or soft links.
20761 LN_S=$lt_LN_S
20763 # A BSD-compatible nm program.
20764 NM=$lt_NM
20766 # A symbol stripping program
20767 STRIP=$lt_STRIP
20769 # Used to examine libraries when file_magic_cmd begins "file"
20770 MAGIC_CMD=$MAGIC_CMD
20772 # Used on cygwin: DLL creation program.
20773 DLLTOOL="$DLLTOOL"
20775 # Used on cygwin: object dumper.
20776 OBJDUMP="$OBJDUMP"
20778 # Used on cygwin: assembler.
20779 AS="$AS"
20781 # The name of the directory that contains temporary libtool files.
20782 objdir=$objdir
20784 # How to create reloadable object files.
20785 reload_flag=$lt_reload_flag
20786 reload_cmds=$lt_reload_cmds
20788 # How to pass a linker flag through the compiler.
20789 wl=$lt_lt_prog_compiler_wl_CXX
20791 # Object file suffix (normally "o").
20792 objext="$ac_objext"
20794 # Old archive suffix (normally "a").
20795 libext="$libext"
20797 # Shared library suffix (normally ".so").
20798 shrext_cmds='$shrext_cmds'
20800 # Executable file suffix (normally "").
20801 exeext="$exeext"
20803 # Additional compiler flags for building library objects.
20804 pic_flag=$lt_lt_prog_compiler_pic_CXX
20805 pic_mode=$pic_mode
20807 # What is the maximum length of a command?
20808 max_cmd_len=$lt_cv_sys_max_cmd_len
20810 # Does compiler simultaneously support -c and -o options?
20811 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20813 # Must we lock files when doing compilation?
20814 need_locks=$lt_need_locks
20816 # Do we need the lib prefix for modules?
20817 need_lib_prefix=$need_lib_prefix
20819 # Do we need a version for libraries?
20820 need_version=$need_version
20822 # Whether dlopen is supported.
20823 dlopen_support=$enable_dlopen
20825 # Whether dlopen of programs is supported.
20826 dlopen_self=$enable_dlopen_self
20828 # Whether dlopen of statically linked programs is supported.
20829 dlopen_self_static=$enable_dlopen_self_static
20831 # Compiler flag to prevent dynamic linking.
20832 link_static_flag=$lt_lt_prog_compiler_static_CXX
20834 # Compiler flag to turn off builtin functions.
20835 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20837 # Compiler flag to allow reflexive dlopens.
20838 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20840 # Compiler flag to generate shared objects directly from archives.
20841 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20843 # Compiler flag to generate thread-safe objects.
20844 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20846 # Library versioning type.
20847 version_type=$version_type
20849 # Format of library name prefix.
20850 libname_spec=$lt_libname_spec
20852 # List of archive names. First name is the real one, the rest are links.
20853 # The last name is the one that the linker finds with -lNAME.
20854 library_names_spec=$lt_library_names_spec
20856 # The coded name of the library, if different from the real name.
20857 soname_spec=$lt_soname_spec
20859 # Commands used to build and install an old-style archive.
20860 RANLIB=$lt_RANLIB
20861 old_archive_cmds=$lt_old_archive_cmds_CXX
20862 old_postinstall_cmds=$lt_old_postinstall_cmds
20863 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20865 # Create an old-style archive from a shared archive.
20866 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20868 # Create a temporary old-style archive to link instead of a shared archive.
20869 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20871 # Commands used to build and install a shared archive.
20872 archive_cmds=$lt_archive_cmds_CXX
20873 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20874 postinstall_cmds=$lt_postinstall_cmds
20875 postuninstall_cmds=$lt_postuninstall_cmds
20877 # Commands used to build a loadable module (assumed same as above if empty)
20878 module_cmds=$lt_module_cmds_CXX
20879 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20881 # Commands to strip libraries.
20882 old_striplib=$lt_old_striplib
20883 striplib=$lt_striplib
20885 # Dependencies to place before the objects being linked to create a
20886 # shared library.
20887 predep_objects=$lt_predep_objects_CXX
20889 # Dependencies to place after the objects being linked to create a
20890 # shared library.
20891 postdep_objects=$lt_postdep_objects_CXX
20893 # Dependencies to place before the objects being linked to create a
20894 # shared library.
20895 predeps=$lt_predeps_CXX
20897 # Dependencies to place after the objects being linked to create a
20898 # shared library.
20899 postdeps=$lt_postdeps_CXX
20901 # The library search path used internally by the compiler when linking
20902 # a shared library.
20903 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20905 # Method to check whether dependent libraries are shared objects.
20906 deplibs_check_method=$lt_deplibs_check_method
20908 # Command to use when deplibs_check_method == file_magic.
20909 file_magic_cmd=$lt_file_magic_cmd
20911 # Flag that allows shared libraries with undefined symbols to be built.
20912 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20914 # Flag that forces no undefined symbols.
20915 no_undefined_flag=$lt_no_undefined_flag_CXX
20917 # Commands used to finish a libtool library installation in a directory.
20918 finish_cmds=$lt_finish_cmds
20920 # Same as above, but a single script fragment to be evaled but not shown.
20921 finish_eval=$lt_finish_eval
20923 # Take the output of nm and produce a listing of raw symbols and C names.
20924 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20926 # Transform the output of nm in a proper C declaration
20927 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20929 # Transform the output of nm in a C name address pair
20930 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20932 # This is the shared library runtime path variable.
20933 runpath_var=$runpath_var
20935 # This is the shared library path variable.
20936 shlibpath_var=$shlibpath_var
20938 # Is shlibpath searched before the hard-coded library search path?
20939 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20941 # How to hardcode a shared library path into an executable.
20942 hardcode_action=$hardcode_action_CXX
20944 # Whether we should hardcode library paths into libraries.
20945 hardcode_into_libs=$hardcode_into_libs
20947 # Flag to hardcode \$libdir into a binary during linking.
20948 # This must work even if \$libdir does not exist.
20949 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20951 # If ld is used when linking, flag to hardcode \$libdir into
20952 # a binary during linking. This must work even if \$libdir does
20953 # not exist.
20954 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20956 # Whether we need a single -rpath flag with a separated argument.
20957 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20959 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20960 # resulting binary.
20961 hardcode_direct=$hardcode_direct_CXX
20963 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20964 # resulting binary.
20965 hardcode_minus_L=$hardcode_minus_L_CXX
20967 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20968 # the resulting binary.
20969 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20971 # Set to yes if building a shared library automatically hardcodes DIR into the library
20972 # and all subsequent libraries and executables linked against it.
20973 hardcode_automatic=$hardcode_automatic_CXX
20975 # Variables whose values should be saved in libtool wrapper scripts and
20976 # restored at relink time.
20977 variables_saved_for_relink="$variables_saved_for_relink"
20979 # Whether libtool must link a program against all its dependency libraries.
20980 link_all_deplibs=$link_all_deplibs_CXX
20982 # Compile-time system search path for libraries
20983 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20985 # Run-time system search path for libraries
20986 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20988 # Fix the shell variable \$srcfile for the compiler.
20989 fix_srcfile_path="$fix_srcfile_path_CXX"
20991 # Set to yes if exported symbols are required.
20992 always_export_symbols=$always_export_symbols_CXX
20994 # The commands to list exported symbols.
20995 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20997 # The commands to extract the exported symbol list from a shared archive.
20998 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21000 # Symbols that should not be listed in the preloaded symbols.
21001 exclude_expsyms=$lt_exclude_expsyms_CXX
21003 # Symbols that must always be exported.
21004 include_expsyms=$lt_include_expsyms_CXX
21006 # ### END LIBTOOL TAG CONFIG: $tagname
21008 __EOF__
21011 else
21012 # If there is no Makefile yet, we rely on a make rule to execute
21013 # `config.status --recheck' to rerun these tests and create the
21014 # libtool script then.
21015 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21016 if test -f "$ltmain_in"; then
21017 test -f Makefile && make "$ltmain"
21022 ac_ext=c
21023 ac_cpp='$CPP $CPPFLAGS'
21024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21028 CC=$lt_save_CC
21029 LDCXX=$LD
21030 LD=$lt_save_LD
21031 GCC=$lt_save_GCC
21032 with_gnu_ldcxx=$with_gnu_ld
21033 with_gnu_ld=$lt_save_with_gnu_ld
21034 lt_cv_path_LDCXX=$lt_cv_path_LD
21035 lt_cv_path_LD=$lt_save_path_LD
21036 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21037 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21039 else
21040 tagname=""
21044 F77)
21045 if test -n "$F77" && test "X$F77" != "Xno"; then
21047 ac_ext=f
21048 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21049 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21053 archive_cmds_need_lc_F77=no
21054 allow_undefined_flag_F77=
21055 always_export_symbols_F77=no
21056 archive_expsym_cmds_F77=
21057 export_dynamic_flag_spec_F77=
21058 hardcode_direct_F77=no
21059 hardcode_libdir_flag_spec_F77=
21060 hardcode_libdir_flag_spec_ld_F77=
21061 hardcode_libdir_separator_F77=
21062 hardcode_minus_L_F77=no
21063 hardcode_automatic_F77=no
21064 module_cmds_F77=
21065 module_expsym_cmds_F77=
21066 link_all_deplibs_F77=unknown
21067 old_archive_cmds_F77=$old_archive_cmds
21068 no_undefined_flag_F77=
21069 whole_archive_flag_spec_F77=
21070 enable_shared_with_static_runtimes_F77=no
21072 # Source file extension for f77 test sources.
21073 ac_ext=f
21075 # Object file extension for compiled f77 test sources.
21076 objext=o
21077 objext_F77=$objext
21079 # Code to be used in simple compile tests
21080 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21082 # Code to be used in simple link tests
21083 lt_simple_link_test_code=" program t\n end\n"
21085 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21087 # If no C compiler was specified, use CC.
21088 LTCC=${LTCC-"$CC"}
21090 # If no C compiler flags were specified, use CFLAGS.
21091 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21093 # Allow CC to be a program name with arguments.
21094 compiler=$CC
21097 # save warnings/boilerplate of simple test code
21098 ac_outfile=conftest.$ac_objext
21099 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21101 _lt_compiler_boilerplate=`cat conftest.err`
21102 $rm conftest*
21104 ac_outfile=conftest.$ac_objext
21105 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21107 _lt_linker_boilerplate=`cat conftest.err`
21108 $rm conftest*
21111 # Allow CC to be a program name with arguments.
21112 lt_save_CC="$CC"
21113 CC=${F77-"f77"}
21114 compiler=$CC
21115 compiler_F77=$CC
21116 for cc_temp in $compiler""; do
21117 case $cc_temp in
21118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21120 \-*) ;;
21121 *) break;;
21122 esac
21123 done
21124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21127 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21128 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21129 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21130 echo "${ECHO_T}$can_build_shared" >&6; }
21132 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21133 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21134 test "$can_build_shared" = "no" && enable_shared=no
21136 # On AIX, shared libraries and static libraries use the same namespace, and
21137 # are all built from PIC.
21138 case $host_os in
21139 aix3*)
21140 test "$enable_shared" = yes && enable_static=no
21141 if test -n "$RANLIB"; then
21142 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21143 postinstall_cmds='$RANLIB $lib'
21146 aix4* | aix5*)
21147 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21148 test "$enable_shared" = yes && enable_static=no
21151 esac
21152 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21153 echo "${ECHO_T}$enable_shared" >&6; }
21155 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21156 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21157 # Make sure either enable_shared or enable_static is yes.
21158 test "$enable_shared" = yes || enable_static=yes
21159 { echo "$as_me:$LINENO: result: $enable_static" >&5
21160 echo "${ECHO_T}$enable_static" >&6; }
21162 GCC_F77="$G77"
21163 LD_F77="$LD"
21165 lt_prog_compiler_wl_F77=
21166 lt_prog_compiler_pic_F77=
21167 lt_prog_compiler_static_F77=
21169 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21170 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21172 if test "$GCC" = yes; then
21173 lt_prog_compiler_wl_F77='-Wl,'
21174 lt_prog_compiler_static_F77='-static'
21176 case $host_os in
21177 aix*)
21178 # All AIX code is PIC.
21179 if test "$host_cpu" = ia64; then
21180 # AIX 5 now supports IA64 processor
21181 lt_prog_compiler_static_F77='-Bstatic'
21185 amigaos*)
21186 # FIXME: we need at least 68020 code to build shared libraries, but
21187 # adding the `-m68020' flag to GCC prevents building anything better,
21188 # like `-m68040'.
21189 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21192 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21193 # PIC is the default for these OSes.
21196 mingw* | pw32* | os2*)
21197 # This hack is so that the source file can tell whether it is being
21198 # built for inclusion in a dll (and should export symbols for example).
21199 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21202 darwin* | rhapsody*)
21203 # PIC is the default on this platform
21204 # Common symbols not allowed in MH_DYLIB files
21205 lt_prog_compiler_pic_F77='-fno-common'
21208 interix3*)
21209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21210 # Instead, we relocate shared libraries at runtime.
21213 msdosdjgpp*)
21214 # Just because we use GCC doesn't mean we suddenly get shared libraries
21215 # on systems that don't support them.
21216 lt_prog_compiler_can_build_shared_F77=no
21217 enable_shared=no
21220 sysv4*MP*)
21221 if test -d /usr/nec; then
21222 lt_prog_compiler_pic_F77=-Kconform_pic
21226 hpux*)
21227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21228 # not for PA HP-UX.
21229 case $host_cpu in
21230 hppa*64*|ia64*)
21231 # +Z the default
21234 lt_prog_compiler_pic_F77='-fPIC'
21236 esac
21240 lt_prog_compiler_pic_F77='-fPIC'
21242 esac
21243 else
21244 # PORTME Check for flag to pass linker flags through the system compiler.
21245 case $host_os in
21246 aix*)
21247 lt_prog_compiler_wl_F77='-Wl,'
21248 if test "$host_cpu" = ia64; then
21249 # AIX 5 now supports IA64 processor
21250 lt_prog_compiler_static_F77='-Bstatic'
21251 else
21252 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21255 darwin*)
21256 # PIC is the default on this platform
21257 # Common symbols not allowed in MH_DYLIB files
21258 case $cc_basename in
21259 xlc*)
21260 lt_prog_compiler_pic_F77='-qnocommon'
21261 lt_prog_compiler_wl_F77='-Wl,'
21263 esac
21266 mingw* | pw32* | os2*)
21267 # This hack is so that the source file can tell whether it is being
21268 # built for inclusion in a dll (and should export symbols for example).
21269 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21272 hpux9* | hpux10* | hpux11*)
21273 lt_prog_compiler_wl_F77='-Wl,'
21274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21275 # not for PA HP-UX.
21276 case $host_cpu in
21277 hppa*64*|ia64*)
21278 # +Z the default
21281 lt_prog_compiler_pic_F77='+Z'
21283 esac
21284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21285 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21288 irix5* | irix6* | nonstopux*)
21289 lt_prog_compiler_wl_F77='-Wl,'
21290 # PIC (with -KPIC) is the default.
21291 lt_prog_compiler_static_F77='-non_shared'
21294 newsos6)
21295 lt_prog_compiler_pic_F77='-KPIC'
21296 lt_prog_compiler_static_F77='-Bstatic'
21299 linux*)
21300 case $cc_basename in
21301 icc* | ecc*)
21302 lt_prog_compiler_wl_F77='-Wl,'
21303 lt_prog_compiler_pic_F77='-KPIC'
21304 lt_prog_compiler_static_F77='-static'
21306 pgcc* | pgf77* | pgf90* | pgf95*)
21307 # Portland Group compilers (*not* the Pentium gcc compiler,
21308 # which looks to be a dead project)
21309 lt_prog_compiler_wl_F77='-Wl,'
21310 lt_prog_compiler_pic_F77='-fpic'
21311 lt_prog_compiler_static_F77='-Bstatic'
21313 ccc*)
21314 lt_prog_compiler_wl_F77='-Wl,'
21315 # All Alpha code is PIC.
21316 lt_prog_compiler_static_F77='-non_shared'
21318 esac
21321 osf3* | osf4* | osf5*)
21322 lt_prog_compiler_wl_F77='-Wl,'
21323 # All OSF/1 code is PIC.
21324 lt_prog_compiler_static_F77='-non_shared'
21327 solaris*)
21328 lt_prog_compiler_pic_F77='-KPIC'
21329 lt_prog_compiler_static_F77='-Bstatic'
21330 case $cc_basename in
21331 f77* | f90* | f95*)
21332 lt_prog_compiler_wl_F77='-Qoption ld ';;
21334 lt_prog_compiler_wl_F77='-Wl,';;
21335 esac
21338 sunos4*)
21339 lt_prog_compiler_wl_F77='-Qoption ld '
21340 lt_prog_compiler_pic_F77='-PIC'
21341 lt_prog_compiler_static_F77='-Bstatic'
21344 sysv4 | sysv4.2uw2* | sysv4.3*)
21345 lt_prog_compiler_wl_F77='-Wl,'
21346 lt_prog_compiler_pic_F77='-KPIC'
21347 lt_prog_compiler_static_F77='-Bstatic'
21350 sysv4*MP*)
21351 if test -d /usr/nec ;then
21352 lt_prog_compiler_pic_F77='-Kconform_pic'
21353 lt_prog_compiler_static_F77='-Bstatic'
21357 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21358 lt_prog_compiler_wl_F77='-Wl,'
21359 lt_prog_compiler_pic_F77='-KPIC'
21360 lt_prog_compiler_static_F77='-Bstatic'
21363 unicos*)
21364 lt_prog_compiler_wl_F77='-Wl,'
21365 lt_prog_compiler_can_build_shared_F77=no
21368 uts4*)
21369 lt_prog_compiler_pic_F77='-pic'
21370 lt_prog_compiler_static_F77='-Bstatic'
21374 lt_prog_compiler_can_build_shared_F77=no
21376 esac
21379 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21380 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21383 # Check to make sure the PIC flag actually works.
21385 if test -n "$lt_prog_compiler_pic_F77"; then
21387 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21388 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21389 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392 lt_prog_compiler_pic_works_F77=no
21393 ac_outfile=conftest.$ac_objext
21394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21395 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21396 # Insert the option either (1) after the last *FLAGS variable, or
21397 # (2) before a word containing "conftest.", or (3) at the end.
21398 # Note that $ac_compile itself does not contain backslashes and begins
21399 # with a dollar sign (not a hyphen), so the echo should work correctly.
21400 # The option is referenced via a variable to avoid confusing sed.
21401 lt_compile=`echo "$ac_compile" | $SED \
21402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21404 -e 's:$: $lt_compiler_flag:'`
21405 (eval echo "\"\$as_me:21391: $lt_compile\"" >&5)
21406 (eval "$lt_compile" 2>conftest.err)
21407 ac_status=$?
21408 cat conftest.err >&5
21409 echo "$as_me:21395: \$? = $ac_status" >&5
21410 if (exit $ac_status) && test -s "$ac_outfile"; then
21411 # The compiler can only warn and ignore the option if not recognized
21412 # So say no if there are warnings other than the usual output.
21413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21416 lt_prog_compiler_pic_works_F77=yes
21419 $rm conftest*
21422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21423 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21425 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21426 case $lt_prog_compiler_pic_F77 in
21427 "" | " "*) ;;
21428 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21429 esac
21430 else
21431 lt_prog_compiler_pic_F77=
21432 lt_prog_compiler_can_build_shared_F77=no
21436 case $host_os in
21437 # For platforms which do not support PIC, -DPIC is meaningless:
21438 *djgpp*)
21439 lt_prog_compiler_pic_F77=
21442 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21444 esac
21447 # Check to make sure the static flag actually works.
21449 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21450 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21451 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21452 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 else
21455 lt_prog_compiler_static_works_F77=no
21456 save_LDFLAGS="$LDFLAGS"
21457 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21458 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21460 # The linker can only warn and ignore the option if not recognized
21461 # So say no if there are warnings
21462 if test -s conftest.err; then
21463 # Append any errors to the config.log.
21464 cat conftest.err 1>&5
21465 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21467 if diff conftest.exp conftest.er2 >/dev/null; then
21468 lt_prog_compiler_static_works_F77=yes
21470 else
21471 lt_prog_compiler_static_works_F77=yes
21474 $rm conftest*
21475 LDFLAGS="$save_LDFLAGS"
21478 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21479 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21481 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21483 else
21484 lt_prog_compiler_static_F77=
21488 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21489 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21490 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493 lt_cv_prog_compiler_c_o_F77=no
21494 $rm -r conftest 2>/dev/null
21495 mkdir conftest
21496 cd conftest
21497 mkdir out
21498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21500 lt_compiler_flag="-o out/conftest2.$ac_objext"
21501 # Insert the option either (1) after the last *FLAGS variable, or
21502 # (2) before a word containing "conftest.", or (3) at the end.
21503 # Note that $ac_compile itself does not contain backslashes and begins
21504 # with a dollar sign (not a hyphen), so the echo should work correctly.
21505 lt_compile=`echo "$ac_compile" | $SED \
21506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21508 -e 's:$: $lt_compiler_flag:'`
21509 (eval echo "\"\$as_me:21495: $lt_compile\"" >&5)
21510 (eval "$lt_compile" 2>out/conftest.err)
21511 ac_status=$?
21512 cat out/conftest.err >&5
21513 echo "$as_me:21499: \$? = $ac_status" >&5
21514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21515 then
21516 # The compiler can only warn and ignore the option if not recognized
21517 # So say no if there are warnings
21518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21521 lt_cv_prog_compiler_c_o_F77=yes
21524 chmod u+w . 2>&5
21525 $rm conftest*
21526 # SGI C++ compiler will create directory out/ii_files/ for
21527 # template instantiation
21528 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21529 $rm out/* && rmdir out
21530 cd ..
21531 rmdir conftest
21532 $rm conftest*
21535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21536 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21539 hard_links="nottested"
21540 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21541 # do not overwrite the value of need_locks provided by the user
21542 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21543 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21544 hard_links=yes
21545 $rm conftest*
21546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21547 touch conftest.a
21548 ln conftest.a conftest.b 2>&5 || hard_links=no
21549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21550 { echo "$as_me:$LINENO: result: $hard_links" >&5
21551 echo "${ECHO_T}$hard_links" >&6; }
21552 if test "$hard_links" = no; then
21553 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21554 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21555 need_locks=warn
21557 else
21558 need_locks=no
21561 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21564 runpath_var=
21565 allow_undefined_flag_F77=
21566 enable_shared_with_static_runtimes_F77=no
21567 archive_cmds_F77=
21568 archive_expsym_cmds_F77=
21569 old_archive_From_new_cmds_F77=
21570 old_archive_from_expsyms_cmds_F77=
21571 export_dynamic_flag_spec_F77=
21572 whole_archive_flag_spec_F77=
21573 thread_safe_flag_spec_F77=
21574 hardcode_libdir_flag_spec_F77=
21575 hardcode_libdir_flag_spec_ld_F77=
21576 hardcode_libdir_separator_F77=
21577 hardcode_direct_F77=no
21578 hardcode_minus_L_F77=no
21579 hardcode_shlibpath_var_F77=unsupported
21580 link_all_deplibs_F77=unknown
21581 hardcode_automatic_F77=no
21582 module_cmds_F77=
21583 module_expsym_cmds_F77=
21584 always_export_symbols_F77=no
21585 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21586 # include_expsyms should be a list of space-separated symbols to be *always*
21587 # included in the symbol list
21588 include_expsyms_F77=
21589 # exclude_expsyms can be an extended regexp of symbols to exclude
21590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21592 # as well as any symbol that contains `d'.
21593 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21595 # platforms (ab)use it in PIC code, but their linkers get confused if
21596 # the symbol is explicitly referenced. Since portable code cannot
21597 # rely on this symbol name, it's probably fine to never include it in
21598 # preloaded symbol tables.
21599 extract_expsyms_cmds=
21600 # Just being paranoid about ensuring that cc_basename is set.
21601 for cc_temp in $compiler""; do
21602 case $cc_temp in
21603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21605 \-*) ;;
21606 *) break;;
21607 esac
21608 done
21609 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21611 case $host_os in
21612 cygwin* | mingw* | pw32*)
21613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21614 # When not using gcc, we currently assume that we are using
21615 # Microsoft Visual C++.
21616 if test "$GCC" != yes; then
21617 with_gnu_ld=no
21620 interix*)
21621 # we just hope/assume this is gcc and not c89 (= MSVC++)
21622 with_gnu_ld=yes
21624 openbsd*)
21625 with_gnu_ld=no
21627 esac
21629 ld_shlibs_F77=yes
21630 if test "$with_gnu_ld" = yes; then
21631 # If archive_cmds runs LD, not CC, wlarc should be empty
21632 wlarc='${wl}'
21634 # Set some defaults for GNU ld with shared library support. These
21635 # are reset later if shared libraries are not supported. Putting them
21636 # here allows them to be overridden if necessary.
21637 runpath_var=LD_RUN_PATH
21638 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21639 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21640 # ancient GNU ld didn't support --whole-archive et. al.
21641 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21642 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21643 else
21644 whole_archive_flag_spec_F77=
21646 supports_anon_versioning=no
21647 case `$LD -v 2>/dev/null` in
21648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21651 *\ 2.11.*) ;; # other 2.11 versions
21652 *) supports_anon_versioning=yes ;;
21653 esac
21655 # See if GNU ld supports shared libraries.
21656 case $host_os in
21657 aix3* | aix4* | aix5*)
21658 # On AIX/PPC, the GNU linker is very broken
21659 if test "$host_cpu" != ia64; then
21660 ld_shlibs_F77=no
21661 cat <<EOF 1>&2
21663 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21664 *** to be unable to reliably create shared libraries on AIX.
21665 *** Therefore, libtool is disabling shared libraries support. If you
21666 *** really care for shared libraries, you may want to modify your PATH
21667 *** so that a non-GNU linker is found, and then restart.
21673 amigaos*)
21674 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)'
21675 hardcode_libdir_flag_spec_F77='-L$libdir'
21676 hardcode_minus_L_F77=yes
21678 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21679 # that the semantics of dynamic libraries on AmigaOS, at least up
21680 # to version 4, is to share data among multiple programs linked
21681 # with the same dynamic library. Since this doesn't match the
21682 # behavior of shared libraries on other platforms, we can't use
21683 # them.
21684 ld_shlibs_F77=no
21687 beos*)
21688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21689 allow_undefined_flag_F77=unsupported
21690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21691 # support --undefined. This deserves some investigation. FIXME
21692 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21693 else
21694 ld_shlibs_F77=no
21698 cygwin* | mingw* | pw32*)
21699 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21700 # as there is no search path for DLLs.
21701 hardcode_libdir_flag_spec_F77='-L$libdir'
21702 allow_undefined_flag_F77=unsupported
21703 always_export_symbols_F77=no
21704 enable_shared_with_static_runtimes_F77=yes
21705 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21707 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21708 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21709 # If the export-symbols file already is a .def file (1st line
21710 # is EXPORTS), use it as is; otherwise, prepend...
21711 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21712 cp $export_symbols $output_objdir/$soname.def;
21713 else
21714 echo EXPORTS > $output_objdir/$soname.def;
21715 cat $export_symbols >> $output_objdir/$soname.def;
21717 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21718 else
21719 ld_shlibs_F77=no
21723 interix3*)
21724 hardcode_direct_F77=no
21725 hardcode_shlibpath_var_F77=no
21726 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21727 export_dynamic_flag_spec_F77='${wl}-E'
21728 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21729 # Instead, shared libraries are loaded at an image base (0x10000000 by
21730 # default) and relocated if they conflict, which is a slow very memory
21731 # consuming and fragmenting process. To avoid this, we pick a random,
21732 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21733 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21734 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'
21735 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'
21738 linux*)
21739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21740 tmp_addflag=
21741 case $cc_basename,$host_cpu in
21742 pgcc*) # Portland Group C compiler
21743 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'
21744 tmp_addflag=' $pic_flag'
21746 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21747 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'
21748 tmp_addflag=' $pic_flag -Mnomain' ;;
21749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21750 tmp_addflag=' -i_dynamic' ;;
21751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21752 tmp_addflag=' -i_dynamic -nofor_main' ;;
21753 ifc* | ifort*) # Intel Fortran compiler
21754 tmp_addflag=' -nofor_main' ;;
21755 esac
21756 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21758 if test $supports_anon_versioning = yes; then
21759 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21761 $echo "local: *; };" >> $output_objdir/$libname.ver~
21762 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21764 else
21765 ld_shlibs_F77=no
21769 netbsd*)
21770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21771 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21772 wlarc=
21773 else
21774 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21775 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21779 solaris*)
21780 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21781 ld_shlibs_F77=no
21782 cat <<EOF 1>&2
21784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21785 *** create shared libraries on Solaris systems. Therefore, libtool
21786 *** is disabling shared libraries support. We urge you to upgrade GNU
21787 *** binutils to release 2.9.1 or newer. Another option is to modify
21788 *** your PATH or compiler configuration so that the native linker is
21789 *** used, and then restart.
21792 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21794 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21795 else
21796 ld_shlibs_F77=no
21800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21801 case `$LD -v 2>&1` in
21802 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21803 ld_shlibs_F77=no
21804 cat <<_LT_EOF 1>&2
21806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21807 *** reliably create shared libraries on SCO systems. Therefore, libtool
21808 *** is disabling shared libraries support. We urge you to upgrade GNU
21809 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21810 *** your PATH or compiler configuration so that the native linker is
21811 *** used, and then restart.
21813 _LT_EOF
21816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21817 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21818 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21819 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21820 else
21821 ld_shlibs_F77=no
21824 esac
21827 sunos4*)
21828 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21829 wlarc=
21830 hardcode_direct_F77=yes
21831 hardcode_shlibpath_var_F77=no
21835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21836 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21837 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21838 else
21839 ld_shlibs_F77=no
21842 esac
21844 if test "$ld_shlibs_F77" = no; then
21845 runpath_var=
21846 hardcode_libdir_flag_spec_F77=
21847 export_dynamic_flag_spec_F77=
21848 whole_archive_flag_spec_F77=
21850 else
21851 # PORTME fill in a description of your system's linker (not GNU ld)
21852 case $host_os in
21853 aix3*)
21854 allow_undefined_flag_F77=unsupported
21855 always_export_symbols_F77=yes
21856 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'
21857 # Note: this linker hardcodes the directories in LIBPATH if there
21858 # are no directories specified by -L.
21859 hardcode_minus_L_F77=yes
21860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21861 # Neither direct hardcoding nor static linking is supported with a
21862 # broken collect2.
21863 hardcode_direct_F77=unsupported
21867 aix4* | aix5*)
21868 if test "$host_cpu" = ia64; then
21869 # On IA64, the linker does run time linking by default, so we don't
21870 # have to do anything special.
21871 aix_use_runtimelinking=no
21872 exp_sym_flag='-Bexport'
21873 no_entry_flag=""
21874 else
21875 # If we're using GNU nm, then we don't want the "-C" option.
21876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21877 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21878 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'
21879 else
21880 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'
21882 aix_use_runtimelinking=no
21884 # Test if we are trying to use run time linking or normal
21885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21886 # need to do runtime linking.
21887 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21888 for ld_flag in $LDFLAGS; do
21889 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21890 aix_use_runtimelinking=yes
21891 break
21893 done
21895 esac
21897 exp_sym_flag='-bexport'
21898 no_entry_flag='-bnoentry'
21901 # When large executables or shared objects are built, AIX ld can
21902 # have problems creating the table of contents. If linking a library
21903 # or program results in "error TOC overflow" add -mminimal-toc to
21904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21907 archive_cmds_F77=''
21908 hardcode_direct_F77=yes
21909 hardcode_libdir_separator_F77=':'
21910 link_all_deplibs_F77=yes
21912 if test "$GCC" = yes; then
21913 case $host_os in aix4.[012]|aix4.[012].*)
21914 # We only want to do this on AIX 4.2 and lower, the check
21915 # below for broken collect2 doesn't work under 4.3+
21916 collect2name=`${CC} -print-prog-name=collect2`
21917 if test -f "$collect2name" && \
21918 strings "$collect2name" | grep resolve_lib_name >/dev/null
21919 then
21920 # We have reworked collect2
21921 hardcode_direct_F77=yes
21922 else
21923 # We have old collect2
21924 hardcode_direct_F77=unsupported
21925 # It fails to find uninstalled libraries when the uninstalled
21926 # path is not listed in the libpath. Setting hardcode_minus_L
21927 # to unsupported forces relinking
21928 hardcode_minus_L_F77=yes
21929 hardcode_libdir_flag_spec_F77='-L$libdir'
21930 hardcode_libdir_separator_F77=
21933 esac
21934 shared_flag='-shared'
21935 if test "$aix_use_runtimelinking" = yes; then
21936 shared_flag="$shared_flag "'${wl}-G'
21938 else
21939 # not using gcc
21940 if test "$host_cpu" = ia64; then
21941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21942 # chokes on -Wl,-G. The following line is correct:
21943 shared_flag='-G'
21944 else
21945 if test "$aix_use_runtimelinking" = yes; then
21946 shared_flag='${wl}-G'
21947 else
21948 shared_flag='${wl}-bM:SRE'
21953 # It seems that -bexpall does not export symbols beginning with
21954 # underscore (_), so it is better to generate a list of symbols to export.
21955 always_export_symbols_F77=yes
21956 if test "$aix_use_runtimelinking" = yes; then
21957 # Warning - without using the other runtime loading flags (-brtl),
21958 # -berok will link without error, but may produce a broken library.
21959 allow_undefined_flag_F77='-berok'
21960 # Determine the default libpath from the value encoded in an empty executable.
21961 cat >conftest.$ac_ext <<_ACEOF
21962 program main
21965 _ACEOF
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (ac_try="$ac_link"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_link") 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } &&
21980 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21981 { (case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_try") 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest$ac_exeext'
21991 { (case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_try") 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22003 # Check for a 64-bit object if we didn't find anything.
22004 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22005 }'`; fi
22006 else
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22013 rm -f core conftest.err conftest.$ac_objext \
22014 conftest$ac_exeext conftest.$ac_ext
22015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22017 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22018 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"
22019 else
22020 if test "$host_cpu" = ia64; then
22021 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22022 allow_undefined_flag_F77="-z nodefs"
22023 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"
22024 else
22025 # Determine the default libpath from the value encoded in an empty executable.
22026 cat >conftest.$ac_ext <<_ACEOF
22027 program main
22030 _ACEOF
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_link") 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; } &&
22055 { ac_try='test -s conftest$ac_exeext'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22068 # Check for a 64-bit object if we didn't find anything.
22069 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22070 }'`; fi
22071 else
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22078 rm -f core conftest.err conftest.$ac_objext \
22079 conftest$ac_exeext conftest.$ac_ext
22080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22082 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22083 # Warning - without using the other run time loading flags,
22084 # -berok will link without error, but may produce a broken library.
22085 no_undefined_flag_F77=' ${wl}-bernotok'
22086 allow_undefined_flag_F77=' ${wl}-berok'
22087 # Exported symbols can be pulled into shared objects from archives
22088 whole_archive_flag_spec_F77='$convenience'
22089 archive_cmds_need_lc_F77=yes
22090 # This is similar to how AIX traditionally builds its shared libraries.
22091 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'
22096 amigaos*)
22097 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)'
22098 hardcode_libdir_flag_spec_F77='-L$libdir'
22099 hardcode_minus_L_F77=yes
22100 # see comment about different semantics on the GNU ld section
22101 ld_shlibs_F77=no
22104 bsdi[45]*)
22105 export_dynamic_flag_spec_F77=-rdynamic
22108 cygwin* | mingw* | pw32*)
22109 # When not using gcc, we currently assume that we are using
22110 # Microsoft Visual C++.
22111 # hardcode_libdir_flag_spec is actually meaningless, as there is
22112 # no search path for DLLs.
22113 hardcode_libdir_flag_spec_F77=' '
22114 allow_undefined_flag_F77=unsupported
22115 # Tell ltmain to make .lib files, not .a files.
22116 libext=lib
22117 # Tell ltmain to make .dll files, not .so files.
22118 shrext_cmds=".dll"
22119 # FIXME: Setting linknames here is a bad hack.
22120 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22121 # The linker will automatically build a .lib file if we build a DLL.
22122 old_archive_From_new_cmds_F77='true'
22123 # FIXME: Should let the user specify the lib program.
22124 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22125 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22126 enable_shared_with_static_runtimes_F77=yes
22129 darwin* | rhapsody*)
22130 case $host_os in
22131 rhapsody* | darwin1.[012])
22132 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22134 *) # Darwin 1.3 on
22135 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22136 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22137 else
22138 case ${MACOSX_DEPLOYMENT_TARGET} in
22139 10.[012])
22140 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22142 10.*)
22143 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22145 esac
22148 esac
22149 archive_cmds_need_lc_F77=no
22150 hardcode_direct_F77=no
22151 hardcode_automatic_F77=yes
22152 hardcode_shlibpath_var_F77=unsupported
22153 whole_archive_flag_spec_F77=''
22154 link_all_deplibs_F77=yes
22155 if test "$GCC" = yes ; then
22156 output_verbose_link_cmd='echo'
22157 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22158 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22159 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22160 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}'
22161 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}'
22162 else
22163 case $cc_basename in
22164 xlc*)
22165 output_verbose_link_cmd='echo'
22166 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22167 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22169 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22170 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}'
22173 ld_shlibs_F77=no
22175 esac
22179 dgux*)
22180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22181 hardcode_libdir_flag_spec_F77='-L$libdir'
22182 hardcode_shlibpath_var_F77=no
22185 freebsd1*)
22186 ld_shlibs_F77=no
22189 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22190 # support. Future versions do this automatically, but an explicit c++rt0.o
22191 # does not break anything, and helps significantly (at the cost of a little
22192 # extra space).
22193 freebsd2.2*)
22194 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22195 hardcode_libdir_flag_spec_F77='-R$libdir'
22196 hardcode_direct_F77=yes
22197 hardcode_shlibpath_var_F77=no
22200 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22201 freebsd2*)
22202 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22203 hardcode_direct_F77=yes
22204 hardcode_minus_L_F77=yes
22205 hardcode_shlibpath_var_F77=no
22208 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22209 freebsd* | kfreebsd*-gnu | dragonfly*)
22210 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22211 hardcode_libdir_flag_spec_F77='-R$libdir'
22212 hardcode_direct_F77=yes
22213 hardcode_shlibpath_var_F77=no
22216 hpux9*)
22217 if test "$GCC" = yes; then
22218 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'
22219 else
22220 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'
22222 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22223 hardcode_libdir_separator_F77=:
22224 hardcode_direct_F77=yes
22226 # hardcode_minus_L: Not really in the search PATH,
22227 # but as the default location of the library.
22228 hardcode_minus_L_F77=yes
22229 export_dynamic_flag_spec_F77='${wl}-E'
22232 hpux10*)
22233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22234 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22235 else
22236 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22238 if test "$with_gnu_ld" = no; then
22239 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22240 hardcode_libdir_separator_F77=:
22242 hardcode_direct_F77=yes
22243 export_dynamic_flag_spec_F77='${wl}-E'
22245 # hardcode_minus_L: Not really in the search PATH,
22246 # but as the default location of the library.
22247 hardcode_minus_L_F77=yes
22251 hpux11*)
22252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22253 case $host_cpu in
22254 hppa*64*)
22255 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22257 ia64*)
22258 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22261 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22263 esac
22264 else
22265 case $host_cpu in
22266 hppa*64*)
22267 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22269 ia64*)
22270 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22273 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22275 esac
22277 if test "$with_gnu_ld" = no; then
22278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22279 hardcode_libdir_separator_F77=:
22281 case $host_cpu in
22282 hppa*64*|ia64*)
22283 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22284 hardcode_direct_F77=no
22285 hardcode_shlibpath_var_F77=no
22288 hardcode_direct_F77=yes
22289 export_dynamic_flag_spec_F77='${wl}-E'
22291 # hardcode_minus_L: Not really in the search PATH,
22292 # but as the default location of the library.
22293 hardcode_minus_L_F77=yes
22295 esac
22299 irix5* | irix6* | nonstopux*)
22300 if test "$GCC" = yes; then
22301 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'
22302 else
22303 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'
22304 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22306 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22307 hardcode_libdir_separator_F77=:
22308 link_all_deplibs_F77=yes
22311 netbsd*)
22312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22313 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22314 else
22315 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22317 hardcode_libdir_flag_spec_F77='-R$libdir'
22318 hardcode_direct_F77=yes
22319 hardcode_shlibpath_var_F77=no
22322 newsos6)
22323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22324 hardcode_direct_F77=yes
22325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22326 hardcode_libdir_separator_F77=:
22327 hardcode_shlibpath_var_F77=no
22330 openbsd*)
22331 hardcode_direct_F77=yes
22332 hardcode_shlibpath_var_F77=no
22333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22334 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22335 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22336 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22337 export_dynamic_flag_spec_F77='${wl}-E'
22338 else
22339 case $host_os in
22340 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22341 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22342 hardcode_libdir_flag_spec_F77='-R$libdir'
22345 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22346 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22348 esac
22352 os2*)
22353 hardcode_libdir_flag_spec_F77='-L$libdir'
22354 hardcode_minus_L_F77=yes
22355 allow_undefined_flag_F77=unsupported
22356 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'
22357 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22360 osf3*)
22361 if test "$GCC" = yes; then
22362 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22363 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'
22364 else
22365 allow_undefined_flag_F77=' -expect_unresolved \*'
22366 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'
22368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22369 hardcode_libdir_separator_F77=:
22372 osf4* | osf5*) # as osf3* with the addition of -msym flag
22373 if test "$GCC" = yes; then
22374 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22375 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'
22376 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22377 else
22378 allow_undefined_flag_F77=' -expect_unresolved \*'
22379 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'
22380 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~
22381 $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'
22383 # Both c and cxx compiler support -rpath directly
22384 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22386 hardcode_libdir_separator_F77=:
22389 solaris*)
22390 no_undefined_flag_F77=' -z text'
22391 if test "$GCC" = yes; then
22392 wlarc='${wl}'
22393 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22394 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22395 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22396 else
22397 wlarc=''
22398 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22399 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22402 hardcode_libdir_flag_spec_F77='-R$libdir'
22403 hardcode_shlibpath_var_F77=no
22404 case $host_os in
22405 solaris2.[0-5] | solaris2.[0-5].*) ;;
22407 # The compiler driver will combine linker options so we
22408 # cannot just pass the convience library names through
22409 # without $wl, iff we do not link with $LD.
22410 # Luckily, gcc supports the same syntax we need for Sun Studio.
22411 # Supported since Solaris 2.6 (maybe 2.5.1?)
22412 case $wlarc in
22414 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22416 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22417 esac ;;
22418 esac
22419 link_all_deplibs_F77=yes
22422 sunos4*)
22423 if test "x$host_vendor" = xsequent; then
22424 # Use $CC to link under sequent, because it throws in some extra .o
22425 # files that make .init and .fini sections work.
22426 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22427 else
22428 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22430 hardcode_libdir_flag_spec_F77='-L$libdir'
22431 hardcode_direct_F77=yes
22432 hardcode_minus_L_F77=yes
22433 hardcode_shlibpath_var_F77=no
22436 sysv4)
22437 case $host_vendor in
22438 sni)
22439 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22440 hardcode_direct_F77=yes # is this really true???
22442 siemens)
22443 ## LD is ld it makes a PLAMLIB
22444 ## CC just makes a GrossModule.
22445 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22446 reload_cmds_F77='$CC -r -o $output$reload_objs'
22447 hardcode_direct_F77=no
22449 motorola)
22450 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22451 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22453 esac
22454 runpath_var='LD_RUN_PATH'
22455 hardcode_shlibpath_var_F77=no
22458 sysv4.3*)
22459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22460 hardcode_shlibpath_var_F77=no
22461 export_dynamic_flag_spec_F77='-Bexport'
22464 sysv4*MP*)
22465 if test -d /usr/nec; then
22466 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22467 hardcode_shlibpath_var_F77=no
22468 runpath_var=LD_RUN_PATH
22469 hardcode_runpath_var=yes
22470 ld_shlibs_F77=yes
22474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22475 no_undefined_flag_F77='${wl}-z,text'
22476 archive_cmds_need_lc_F77=no
22477 hardcode_shlibpath_var_F77=no
22478 runpath_var='LD_RUN_PATH'
22480 if test "$GCC" = yes; then
22481 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22482 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22483 else
22484 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22485 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22489 sysv5* | sco3.2v5* | sco5v6*)
22490 # Note: We can NOT use -z defs as we might desire, because we do not
22491 # link with -lc, and that would cause any symbols used from libc to
22492 # always be unresolved, which means just about no library would
22493 # ever link correctly. If we're not using GNU ld we use -z text
22494 # though, which does catch some bad symbols but isn't as heavy-handed
22495 # as -z defs.
22496 no_undefined_flag_F77='${wl}-z,text'
22497 allow_undefined_flag_F77='${wl}-z,nodefs'
22498 archive_cmds_need_lc_F77=no
22499 hardcode_shlibpath_var_F77=no
22500 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22501 hardcode_libdir_separator_F77=':'
22502 link_all_deplibs_F77=yes
22503 export_dynamic_flag_spec_F77='${wl}-Bexport'
22504 runpath_var='LD_RUN_PATH'
22506 if test "$GCC" = yes; then
22507 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22508 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22509 else
22510 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22511 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22515 uts4*)
22516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22517 hardcode_libdir_flag_spec_F77='-L$libdir'
22518 hardcode_shlibpath_var_F77=no
22522 ld_shlibs_F77=no
22524 esac
22527 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22528 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22529 test "$ld_shlibs_F77" = no && can_build_shared=no
22532 # Do we need to explicitly link libc?
22534 case "x$archive_cmds_need_lc_F77" in
22535 x|xyes)
22536 # Assume -lc should be added
22537 archive_cmds_need_lc_F77=yes
22539 if test "$enable_shared" = yes && test "$GCC" = yes; then
22540 case $archive_cmds_F77 in
22541 *'~'*)
22542 # FIXME: we may have to deal with multi-command sequences.
22544 '$CC '*)
22545 # Test whether the compiler implicitly links with -lc since on some
22546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22547 # to ld, don't add -lc before -lgcc.
22548 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22550 $rm conftest*
22551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554 (eval $ac_compile) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } 2>conftest.err; then
22558 soname=conftest
22559 lib=conftest
22560 libobjs=conftest.$ac_objext
22561 deplibs=
22562 wl=$lt_prog_compiler_wl_F77
22563 pic_flag=$lt_prog_compiler_pic_F77
22564 compiler_flags=-v
22565 linker_flags=-v
22566 verstring=
22567 output_objdir=.
22568 libname=conftest
22569 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22570 allow_undefined_flag_F77=
22571 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22572 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }
22576 then
22577 archive_cmds_need_lc_F77=no
22578 else
22579 archive_cmds_need_lc_F77=yes
22581 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22582 else
22583 cat conftest.err 1>&5
22585 $rm conftest*
22586 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22587 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22589 esac
22592 esac
22594 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22596 library_names_spec=
22597 libname_spec='lib$name'
22598 soname_spec=
22599 shrext_cmds=".so"
22600 postinstall_cmds=
22601 postuninstall_cmds=
22602 finish_cmds=
22603 finish_eval=
22604 shlibpath_var=
22605 shlibpath_overrides_runpath=unknown
22606 version_type=none
22607 dynamic_linker="$host_os ld.so"
22608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22609 if test "$GCC" = yes; then
22610 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22611 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22612 # if the path contains ";" then we assume it to be the separator
22613 # otherwise default to the standard path separator (i.e. ":") - it is
22614 # assumed that no part of a normal pathname contains ";" but that should
22615 # okay in the real world where ";" in dirpaths is itself problematic.
22616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22617 else
22618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22620 else
22621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22623 need_lib_prefix=unknown
22624 hardcode_into_libs=no
22626 # when you set need_version to no, make sure it does not cause -set_version
22627 # flags to be left without arguments
22628 need_version=unknown
22630 case $host_os in
22631 aix3*)
22632 version_type=linux
22633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22634 shlibpath_var=LIBPATH
22636 # AIX 3 has no versioning support, so we append a major version to the name.
22637 soname_spec='${libname}${release}${shared_ext}$major'
22640 aix4* | aix5*)
22641 version_type=linux
22642 need_lib_prefix=no
22643 need_version=no
22644 hardcode_into_libs=yes
22645 if test "$host_cpu" = ia64; then
22646 # AIX 5 supports IA64
22647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22648 shlibpath_var=LD_LIBRARY_PATH
22649 else
22650 # With GCC up to 2.95.x, collect2 would create an import file
22651 # for dependence libraries. The import file would start with
22652 # the line `#! .'. This would cause the generated library to
22653 # depend on `.', always an invalid library. This was fixed in
22654 # development snapshots of GCC prior to 3.0.
22655 case $host_os in
22656 aix4 | aix4.[01] | aix4.[01].*)
22657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22658 echo ' yes '
22659 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22661 else
22662 can_build_shared=no
22665 esac
22666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22667 # soname into executable. Probably we can add versioning support to
22668 # collect2, so additional links can be useful in future.
22669 if test "$aix_use_runtimelinking" = yes; then
22670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22671 # instead of lib<name>.a to let people know that these are not
22672 # typical AIX shared libraries.
22673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22674 else
22675 # We preserve .a as extension for shared libraries through AIX4.2
22676 # and later when we are not doing run time linking.
22677 library_names_spec='${libname}${release}.a $libname.a'
22678 soname_spec='${libname}${release}${shared_ext}$major'
22680 shlibpath_var=LIBPATH
22684 amigaos*)
22685 library_names_spec='$libname.ixlibrary $libname.a'
22686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22687 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'
22690 beos*)
22691 library_names_spec='${libname}${shared_ext}'
22692 dynamic_linker="$host_os ld.so"
22693 shlibpath_var=LIBRARY_PATH
22696 bsdi[45]*)
22697 version_type=linux
22698 need_version=no
22699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22700 soname_spec='${libname}${release}${shared_ext}$major'
22701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22702 shlibpath_var=LD_LIBRARY_PATH
22703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22705 # the default ld.so.conf also contains /usr/contrib/lib and
22706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22707 # libtool to hard-code these into programs
22710 cygwin* | mingw* | pw32*)
22711 version_type=windows
22712 shrext_cmds=".dll"
22713 need_version=no
22714 need_lib_prefix=no
22716 case $GCC,$host_os in
22717 yes,cygwin* | yes,mingw* | yes,pw32*)
22718 library_names_spec='$libname.dll.a'
22719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22720 postinstall_cmds='base_file=`basename \${file}`~
22721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22722 dldir=$destdir/`dirname \$dlpath`~
22723 test -d \$dldir || mkdir -p \$dldir~
22724 $install_prog $dir/$dlname \$dldir/$dlname~
22725 chmod a+x \$dldir/$dlname'
22726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22727 dlpath=$dir/\$dldll~
22728 $rm \$dlpath'
22729 shlibpath_overrides_runpath=yes
22731 case $host_os in
22732 cygwin*)
22733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22737 mingw*)
22738 # MinGW DLLs use traditional 'lib' prefix
22739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22742 # It is most probably a Windows format PATH printed by
22743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22744 # path with ; separators, and with drive letters. We can handle the
22745 # drive letters (cygwin fileutils understands them), so leave them,
22746 # especially as we might pass files found there to a mingw objdump,
22747 # which wouldn't understand a cygwinified path. Ahh.
22748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22749 else
22750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22753 pw32*)
22754 # pw32 DLLs use 'pw' prefix rather than 'lib'
22755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22757 esac
22761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22763 esac
22764 dynamic_linker='Win32 ld.exe'
22765 # FIXME: first we should search . and the directory the executable is in
22766 shlibpath_var=PATH
22769 darwin* | rhapsody*)
22770 dynamic_linker="$host_os dyld"
22771 version_type=darwin
22772 need_lib_prefix=no
22773 need_version=no
22774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22775 soname_spec='${libname}${release}${major}$shared_ext'
22776 shlibpath_overrides_runpath=yes
22777 shlibpath_var=DYLD_LIBRARY_PATH
22778 shrext_cmds='.dylib'
22779 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22780 if test "$GCC" = yes; then
22781 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22782 else
22783 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22788 dgux*)
22789 version_type=linux
22790 need_lib_prefix=no
22791 need_version=no
22792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22793 soname_spec='${libname}${release}${shared_ext}$major'
22794 shlibpath_var=LD_LIBRARY_PATH
22797 freebsd1*)
22798 dynamic_linker=no
22801 kfreebsd*-gnu)
22802 version_type=linux
22803 need_lib_prefix=no
22804 need_version=no
22805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22806 soname_spec='${libname}${release}${shared_ext}$major'
22807 shlibpath_var=LD_LIBRARY_PATH
22808 shlibpath_overrides_runpath=no
22809 hardcode_into_libs=yes
22810 dynamic_linker='GNU ld.so'
22813 freebsd* | dragonfly*)
22814 # DragonFly does not have aout. When/if they implement a new
22815 # versioning mechanism, adjust this.
22816 if test -x /usr/bin/objformat; then
22817 objformat=`/usr/bin/objformat`
22818 else
22819 case $host_os in
22820 freebsd[123]*) objformat=aout ;;
22821 *) objformat=elf ;;
22822 esac
22824 version_type=freebsd-$objformat
22825 case $version_type in
22826 freebsd-elf*)
22827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22828 need_version=no
22829 need_lib_prefix=no
22831 freebsd-*)
22832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22833 need_version=yes
22835 esac
22836 shlibpath_var=LD_LIBRARY_PATH
22837 case $host_os in
22838 freebsd2*)
22839 shlibpath_overrides_runpath=yes
22841 freebsd3.[01]* | freebsdelf3.[01]*)
22842 shlibpath_overrides_runpath=yes
22843 hardcode_into_libs=yes
22845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22847 shlibpath_overrides_runpath=no
22848 hardcode_into_libs=yes
22850 freebsd*) # from 4.6 on
22851 shlibpath_overrides_runpath=yes
22852 hardcode_into_libs=yes
22854 esac
22857 gnu*)
22858 version_type=linux
22859 need_lib_prefix=no
22860 need_version=no
22861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 shlibpath_var=LD_LIBRARY_PATH
22864 hardcode_into_libs=yes
22867 hpux9* | hpux10* | hpux11*)
22868 # Give a soname corresponding to the major version so that dld.sl refuses to
22869 # link against other versions.
22870 version_type=sunos
22871 need_lib_prefix=no
22872 need_version=no
22873 case $host_cpu in
22874 ia64*)
22875 shrext_cmds='.so'
22876 hardcode_into_libs=yes
22877 dynamic_linker="$host_os dld.so"
22878 shlibpath_var=LD_LIBRARY_PATH
22879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22881 soname_spec='${libname}${release}${shared_ext}$major'
22882 if test "X$HPUX_IA64_MODE" = X32; then
22883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22884 else
22885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22889 hppa*64*)
22890 shrext_cmds='.sl'
22891 hardcode_into_libs=yes
22892 dynamic_linker="$host_os dld.sl"
22893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22896 soname_spec='${libname}${release}${shared_ext}$major'
22897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22901 shrext_cmds='.sl'
22902 dynamic_linker="$host_os dld.sl"
22903 shlibpath_var=SHLIB_PATH
22904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22906 soname_spec='${libname}${release}${shared_ext}$major'
22908 esac
22909 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22910 postinstall_cmds='chmod 555 $lib'
22913 interix3*)
22914 version_type=linux
22915 need_lib_prefix=no
22916 need_version=no
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22920 shlibpath_var=LD_LIBRARY_PATH
22921 shlibpath_overrides_runpath=no
22922 hardcode_into_libs=yes
22925 irix5* | irix6* | nonstopux*)
22926 case $host_os in
22927 nonstopux*) version_type=nonstopux ;;
22929 if test "$lt_cv_prog_gnu_ld" = yes; then
22930 version_type=linux
22931 else
22932 version_type=irix
22933 fi ;;
22934 esac
22935 need_lib_prefix=no
22936 need_version=no
22937 soname_spec='${libname}${release}${shared_ext}$major'
22938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22939 case $host_os in
22940 irix5* | nonstopux*)
22941 libsuff= shlibsuff=
22944 case $LD in # libtool.m4 will add one of these switches to LD
22945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22946 libsuff= shlibsuff= libmagic=32-bit;;
22947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22948 libsuff=32 shlibsuff=N32 libmagic=N32;;
22949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22951 *) libsuff= shlibsuff= libmagic=never-match;;
22952 esac
22954 esac
22955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22956 shlibpath_overrides_runpath=no
22957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22959 hardcode_into_libs=yes
22962 # No shared lib support for Linux oldld, aout, or coff.
22963 linux*oldld* | linux*aout* | linux*coff*)
22964 dynamic_linker=no
22967 # This must be Linux ELF.
22968 linux*)
22969 version_type=linux
22970 need_lib_prefix=no
22971 need_version=no
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22973 soname_spec='${libname}${release}${shared_ext}$major'
22974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22975 shlibpath_var=LD_LIBRARY_PATH
22976 shlibpath_overrides_runpath=no
22977 # This implies no fast_install, which is unacceptable.
22978 # Some rework will be needed to allow for fast_install
22979 # before this can be enabled.
22980 hardcode_into_libs=yes
22982 # Append ld.so.conf contents to the search path
22983 if test -f /etc/ld.so.conf; then
22984 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22988 # We used to test for /lib/ld.so.1 and disable shared libraries on
22989 # powerpc, because MkLinux only supported shared libraries with the
22990 # GNU dynamic linker. Since this was broken with cross compilers,
22991 # most powerpc-linux boxes support dynamic linking these days and
22992 # people can always --disable-shared, the test was removed, and we
22993 # assume the GNU/Linux dynamic linker is in use.
22994 dynamic_linker='GNU/Linux ld.so'
22997 knetbsd*-gnu)
22998 version_type=linux
22999 need_lib_prefix=no
23000 need_version=no
23001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23002 soname_spec='${libname}${release}${shared_ext}$major'
23003 shlibpath_var=LD_LIBRARY_PATH
23004 shlibpath_overrides_runpath=no
23005 hardcode_into_libs=yes
23006 dynamic_linker='GNU ld.so'
23009 netbsd*)
23010 version_type=sunos
23011 need_lib_prefix=no
23012 need_version=no
23013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23016 dynamic_linker='NetBSD (a.out) ld.so'
23017 else
23018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23019 soname_spec='${libname}${release}${shared_ext}$major'
23020 dynamic_linker='NetBSD ld.elf_so'
23022 shlibpath_var=LD_LIBRARY_PATH
23023 shlibpath_overrides_runpath=yes
23024 hardcode_into_libs=yes
23027 newsos6)
23028 version_type=linux
23029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23030 shlibpath_var=LD_LIBRARY_PATH
23031 shlibpath_overrides_runpath=yes
23034 nto-qnx*)
23035 version_type=linux
23036 need_lib_prefix=no
23037 need_version=no
23038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23039 soname_spec='${libname}${release}${shared_ext}$major'
23040 shlibpath_var=LD_LIBRARY_PATH
23041 shlibpath_overrides_runpath=yes
23044 openbsd*)
23045 version_type=sunos
23046 sys_lib_dlsearch_path_spec="/usr/lib"
23047 need_lib_prefix=no
23048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23049 case $host_os in
23050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23051 *) need_version=no ;;
23052 esac
23053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23055 shlibpath_var=LD_LIBRARY_PATH
23056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23057 case $host_os in
23058 openbsd2.[89] | openbsd2.[89].*)
23059 shlibpath_overrides_runpath=no
23062 shlibpath_overrides_runpath=yes
23064 esac
23065 else
23066 shlibpath_overrides_runpath=yes
23070 os2*)
23071 libname_spec='$name'
23072 shrext_cmds=".dll"
23073 need_lib_prefix=no
23074 library_names_spec='$libname${shared_ext} $libname.a'
23075 dynamic_linker='OS/2 ld.exe'
23076 shlibpath_var=LIBPATH
23079 osf3* | osf4* | osf5*)
23080 version_type=osf
23081 need_lib_prefix=no
23082 need_version=no
23083 soname_spec='${libname}${release}${shared_ext}$major'
23084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23085 shlibpath_var=LD_LIBRARY_PATH
23086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23090 solaris*)
23091 version_type=linux
23092 need_lib_prefix=no
23093 need_version=no
23094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 soname_spec='${libname}${release}${shared_ext}$major'
23096 shlibpath_var=LD_LIBRARY_PATH
23097 shlibpath_overrides_runpath=yes
23098 hardcode_into_libs=yes
23099 # ldd complains unless libraries are executable
23100 postinstall_cmds='chmod +x $lib'
23103 sunos4*)
23104 version_type=sunos
23105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23107 shlibpath_var=LD_LIBRARY_PATH
23108 shlibpath_overrides_runpath=yes
23109 if test "$with_gnu_ld" = yes; then
23110 need_lib_prefix=no
23112 need_version=yes
23115 sysv4 | sysv4.3*)
23116 version_type=linux
23117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23118 soname_spec='${libname}${release}${shared_ext}$major'
23119 shlibpath_var=LD_LIBRARY_PATH
23120 case $host_vendor in
23121 sni)
23122 shlibpath_overrides_runpath=no
23123 need_lib_prefix=no
23124 export_dynamic_flag_spec='${wl}-Blargedynsym'
23125 runpath_var=LD_RUN_PATH
23127 siemens)
23128 need_lib_prefix=no
23130 motorola)
23131 need_lib_prefix=no
23132 need_version=no
23133 shlibpath_overrides_runpath=no
23134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23136 esac
23139 sysv4*MP*)
23140 if test -d /usr/nec ;then
23141 version_type=linux
23142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23143 soname_spec='$libname${shared_ext}.$major'
23144 shlibpath_var=LD_LIBRARY_PATH
23148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23149 version_type=freebsd-elf
23150 need_lib_prefix=no
23151 need_version=no
23152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23153 soname_spec='${libname}${release}${shared_ext}$major'
23154 shlibpath_var=LD_LIBRARY_PATH
23155 hardcode_into_libs=yes
23156 if test "$with_gnu_ld" = yes; then
23157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23158 shlibpath_overrides_runpath=no
23159 else
23160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23161 shlibpath_overrides_runpath=yes
23162 case $host_os in
23163 sco3.2v5*)
23164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23166 esac
23168 sys_lib_dlsearch_path_spec='/usr/lib'
23171 uts4*)
23172 version_type=linux
23173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23174 soname_spec='${libname}${release}${shared_ext}$major'
23175 shlibpath_var=LD_LIBRARY_PATH
23179 dynamic_linker=no
23181 esac
23182 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23183 echo "${ECHO_T}$dynamic_linker" >&6; }
23184 test "$dynamic_linker" = no && can_build_shared=no
23186 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23187 if test "$GCC" = yes; then
23188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23191 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23192 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23193 hardcode_action_F77=
23194 if test -n "$hardcode_libdir_flag_spec_F77" || \
23195 test -n "$runpath_var_F77" || \
23196 test "X$hardcode_automatic_F77" = "Xyes" ; then
23198 # We can hardcode non-existant directories.
23199 if test "$hardcode_direct_F77" != no &&
23200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23201 # have to relink, otherwise we might link with an installed library
23202 # when we should be linking with a yet-to-be-installed one
23203 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23204 test "$hardcode_minus_L_F77" != no; then
23205 # Linking always hardcodes the temporary library directory.
23206 hardcode_action_F77=relink
23207 else
23208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23209 hardcode_action_F77=immediate
23211 else
23212 # We cannot hardcode anything, or else we can only hardcode existing
23213 # directories.
23214 hardcode_action_F77=unsupported
23216 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23217 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23219 if test "$hardcode_action_F77" = relink; then
23220 # Fast installation is not supported
23221 enable_fast_install=no
23222 elif test "$shlibpath_overrides_runpath" = yes ||
23223 test "$enable_shared" = no; then
23224 # Fast installation is not necessary
23225 enable_fast_install=needless
23229 # The else clause should only fire when bootstrapping the
23230 # libtool distribution, otherwise you forgot to ship ltmain.sh
23231 # with your package, and you will get complaints that there are
23232 # no rules to generate ltmain.sh.
23233 if test -f "$ltmain"; then
23234 # See if we are running on zsh, and set the options which allow our commands through
23235 # without removal of \ escapes.
23236 if test -n "${ZSH_VERSION+set}" ; then
23237 setopt NO_GLOB_SUBST
23239 # Now quote all the things that may contain metacharacters while being
23240 # careful not to overquote the AC_SUBSTed values. We take copies of the
23241 # variables and quote the copies for generation of the libtool script.
23242 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23243 SED SHELL STRIP \
23244 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23245 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23246 deplibs_check_method reload_flag reload_cmds need_locks \
23247 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23248 lt_cv_sys_global_symbol_to_c_name_address \
23249 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23250 old_postinstall_cmds old_postuninstall_cmds \
23251 compiler_F77 \
23252 CC_F77 \
23253 LD_F77 \
23254 lt_prog_compiler_wl_F77 \
23255 lt_prog_compiler_pic_F77 \
23256 lt_prog_compiler_static_F77 \
23257 lt_prog_compiler_no_builtin_flag_F77 \
23258 export_dynamic_flag_spec_F77 \
23259 thread_safe_flag_spec_F77 \
23260 whole_archive_flag_spec_F77 \
23261 enable_shared_with_static_runtimes_F77 \
23262 old_archive_cmds_F77 \
23263 old_archive_from_new_cmds_F77 \
23264 predep_objects_F77 \
23265 postdep_objects_F77 \
23266 predeps_F77 \
23267 postdeps_F77 \
23268 compiler_lib_search_path_F77 \
23269 archive_cmds_F77 \
23270 archive_expsym_cmds_F77 \
23271 postinstall_cmds_F77 \
23272 postuninstall_cmds_F77 \
23273 old_archive_from_expsyms_cmds_F77 \
23274 allow_undefined_flag_F77 \
23275 no_undefined_flag_F77 \
23276 export_symbols_cmds_F77 \
23277 hardcode_libdir_flag_spec_F77 \
23278 hardcode_libdir_flag_spec_ld_F77 \
23279 hardcode_libdir_separator_F77 \
23280 hardcode_automatic_F77 \
23281 module_cmds_F77 \
23282 module_expsym_cmds_F77 \
23283 lt_cv_prog_compiler_c_o_F77 \
23284 exclude_expsyms_F77 \
23285 include_expsyms_F77; do
23287 case $var in
23288 old_archive_cmds_F77 | \
23289 old_archive_from_new_cmds_F77 | \
23290 archive_cmds_F77 | \
23291 archive_expsym_cmds_F77 | \
23292 module_cmds_F77 | \
23293 module_expsym_cmds_F77 | \
23294 old_archive_from_expsyms_cmds_F77 | \
23295 export_symbols_cmds_F77 | \
23296 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23297 postinstall_cmds | postuninstall_cmds | \
23298 old_postinstall_cmds | old_postuninstall_cmds | \
23299 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23300 # Double-quote double-evaled strings.
23301 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23306 esac
23307 done
23309 case $lt_echo in
23310 *'\$0 --fallback-echo"')
23311 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23313 esac
23315 cfgfile="$ofile"
23317 cat <<__EOF__ >> "$cfgfile"
23318 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23322 # Shell to use when invoking shell scripts.
23323 SHELL=$lt_SHELL
23325 # Whether or not to build shared libraries.
23326 build_libtool_libs=$enable_shared
23328 # Whether or not to build static libraries.
23329 build_old_libs=$enable_static
23331 # Whether or not to add -lc for building shared libraries.
23332 build_libtool_need_lc=$archive_cmds_need_lc_F77
23334 # Whether or not to disallow shared libs when runtime libs are static
23335 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23337 # Whether or not to optimize for fast installation.
23338 fast_install=$enable_fast_install
23340 # The host system.
23341 host_alias=$host_alias
23342 host=$host
23343 host_os=$host_os
23345 # The build system.
23346 build_alias=$build_alias
23347 build=$build
23348 build_os=$build_os
23350 # An echo program that does not interpret backslashes.
23351 echo=$lt_echo
23353 # The archiver.
23354 AR=$lt_AR
23355 AR_FLAGS=$lt_AR_FLAGS
23357 # A C compiler.
23358 LTCC=$lt_LTCC
23360 # LTCC compiler flags.
23361 LTCFLAGS=$lt_LTCFLAGS
23363 # A language-specific compiler.
23364 CC=$lt_compiler_F77
23366 # Is the compiler the GNU C compiler?
23367 with_gcc=$GCC_F77
23369 # An ERE matcher.
23370 EGREP=$lt_EGREP
23372 # The linker used to build libraries.
23373 LD=$lt_LD_F77
23375 # Whether we need hard or soft links.
23376 LN_S=$lt_LN_S
23378 # A BSD-compatible nm program.
23379 NM=$lt_NM
23381 # A symbol stripping program
23382 STRIP=$lt_STRIP
23384 # Used to examine libraries when file_magic_cmd begins "file"
23385 MAGIC_CMD=$MAGIC_CMD
23387 # Used on cygwin: DLL creation program.
23388 DLLTOOL="$DLLTOOL"
23390 # Used on cygwin: object dumper.
23391 OBJDUMP="$OBJDUMP"
23393 # Used on cygwin: assembler.
23394 AS="$AS"
23396 # The name of the directory that contains temporary libtool files.
23397 objdir=$objdir
23399 # How to create reloadable object files.
23400 reload_flag=$lt_reload_flag
23401 reload_cmds=$lt_reload_cmds
23403 # How to pass a linker flag through the compiler.
23404 wl=$lt_lt_prog_compiler_wl_F77
23406 # Object file suffix (normally "o").
23407 objext="$ac_objext"
23409 # Old archive suffix (normally "a").
23410 libext="$libext"
23412 # Shared library suffix (normally ".so").
23413 shrext_cmds='$shrext_cmds'
23415 # Executable file suffix (normally "").
23416 exeext="$exeext"
23418 # Additional compiler flags for building library objects.
23419 pic_flag=$lt_lt_prog_compiler_pic_F77
23420 pic_mode=$pic_mode
23422 # What is the maximum length of a command?
23423 max_cmd_len=$lt_cv_sys_max_cmd_len
23425 # Does compiler simultaneously support -c and -o options?
23426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23428 # Must we lock files when doing compilation?
23429 need_locks=$lt_need_locks
23431 # Do we need the lib prefix for modules?
23432 need_lib_prefix=$need_lib_prefix
23434 # Do we need a version for libraries?
23435 need_version=$need_version
23437 # Whether dlopen is supported.
23438 dlopen_support=$enable_dlopen
23440 # Whether dlopen of programs is supported.
23441 dlopen_self=$enable_dlopen_self
23443 # Whether dlopen of statically linked programs is supported.
23444 dlopen_self_static=$enable_dlopen_self_static
23446 # Compiler flag to prevent dynamic linking.
23447 link_static_flag=$lt_lt_prog_compiler_static_F77
23449 # Compiler flag to turn off builtin functions.
23450 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23452 # Compiler flag to allow reflexive dlopens.
23453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23455 # Compiler flag to generate shared objects directly from archives.
23456 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23458 # Compiler flag to generate thread-safe objects.
23459 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23461 # Library versioning type.
23462 version_type=$version_type
23464 # Format of library name prefix.
23465 libname_spec=$lt_libname_spec
23467 # List of archive names. First name is the real one, the rest are links.
23468 # The last name is the one that the linker finds with -lNAME.
23469 library_names_spec=$lt_library_names_spec
23471 # The coded name of the library, if different from the real name.
23472 soname_spec=$lt_soname_spec
23474 # Commands used to build and install an old-style archive.
23475 RANLIB=$lt_RANLIB
23476 old_archive_cmds=$lt_old_archive_cmds_F77
23477 old_postinstall_cmds=$lt_old_postinstall_cmds
23478 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23480 # Create an old-style archive from a shared archive.
23481 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23483 # Create a temporary old-style archive to link instead of a shared archive.
23484 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23486 # Commands used to build and install a shared archive.
23487 archive_cmds=$lt_archive_cmds_F77
23488 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23489 postinstall_cmds=$lt_postinstall_cmds
23490 postuninstall_cmds=$lt_postuninstall_cmds
23492 # Commands used to build a loadable module (assumed same as above if empty)
23493 module_cmds=$lt_module_cmds_F77
23494 module_expsym_cmds=$lt_module_expsym_cmds_F77
23496 # Commands to strip libraries.
23497 old_striplib=$lt_old_striplib
23498 striplib=$lt_striplib
23500 # Dependencies to place before the objects being linked to create a
23501 # shared library.
23502 predep_objects=$lt_predep_objects_F77
23504 # Dependencies to place after the objects being linked to create a
23505 # shared library.
23506 postdep_objects=$lt_postdep_objects_F77
23508 # Dependencies to place before the objects being linked to create a
23509 # shared library.
23510 predeps=$lt_predeps_F77
23512 # Dependencies to place after the objects being linked to create a
23513 # shared library.
23514 postdeps=$lt_postdeps_F77
23516 # The library search path used internally by the compiler when linking
23517 # a shared library.
23518 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23520 # Method to check whether dependent libraries are shared objects.
23521 deplibs_check_method=$lt_deplibs_check_method
23523 # Command to use when deplibs_check_method == file_magic.
23524 file_magic_cmd=$lt_file_magic_cmd
23526 # Flag that allows shared libraries with undefined symbols to be built.
23527 allow_undefined_flag=$lt_allow_undefined_flag_F77
23529 # Flag that forces no undefined symbols.
23530 no_undefined_flag=$lt_no_undefined_flag_F77
23532 # Commands used to finish a libtool library installation in a directory.
23533 finish_cmds=$lt_finish_cmds
23535 # Same as above, but a single script fragment to be evaled but not shown.
23536 finish_eval=$lt_finish_eval
23538 # Take the output of nm and produce a listing of raw symbols and C names.
23539 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23541 # Transform the output of nm in a proper C declaration
23542 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23544 # Transform the output of nm in a C name address pair
23545 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23547 # This is the shared library runtime path variable.
23548 runpath_var=$runpath_var
23550 # This is the shared library path variable.
23551 shlibpath_var=$shlibpath_var
23553 # Is shlibpath searched before the hard-coded library search path?
23554 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23556 # How to hardcode a shared library path into an executable.
23557 hardcode_action=$hardcode_action_F77
23559 # Whether we should hardcode library paths into libraries.
23560 hardcode_into_libs=$hardcode_into_libs
23562 # Flag to hardcode \$libdir into a binary during linking.
23563 # This must work even if \$libdir does not exist.
23564 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23566 # If ld is used when linking, flag to hardcode \$libdir into
23567 # a binary during linking. This must work even if \$libdir does
23568 # not exist.
23569 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23571 # Whether we need a single -rpath flag with a separated argument.
23572 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23574 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23575 # resulting binary.
23576 hardcode_direct=$hardcode_direct_F77
23578 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23579 # resulting binary.
23580 hardcode_minus_L=$hardcode_minus_L_F77
23582 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23583 # the resulting binary.
23584 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23586 # Set to yes if building a shared library automatically hardcodes DIR into the library
23587 # and all subsequent libraries and executables linked against it.
23588 hardcode_automatic=$hardcode_automatic_F77
23590 # Variables whose values should be saved in libtool wrapper scripts and
23591 # restored at relink time.
23592 variables_saved_for_relink="$variables_saved_for_relink"
23594 # Whether libtool must link a program against all its dependency libraries.
23595 link_all_deplibs=$link_all_deplibs_F77
23597 # Compile-time system search path for libraries
23598 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23600 # Run-time system search path for libraries
23601 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23603 # Fix the shell variable \$srcfile for the compiler.
23604 fix_srcfile_path="$fix_srcfile_path_F77"
23606 # Set to yes if exported symbols are required.
23607 always_export_symbols=$always_export_symbols_F77
23609 # The commands to list exported symbols.
23610 export_symbols_cmds=$lt_export_symbols_cmds_F77
23612 # The commands to extract the exported symbol list from a shared archive.
23613 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23615 # Symbols that should not be listed in the preloaded symbols.
23616 exclude_expsyms=$lt_exclude_expsyms_F77
23618 # Symbols that must always be exported.
23619 include_expsyms=$lt_include_expsyms_F77
23621 # ### END LIBTOOL TAG CONFIG: $tagname
23623 __EOF__
23626 else
23627 # If there is no Makefile yet, we rely on a make rule to execute
23628 # `config.status --recheck' to rerun these tests and create the
23629 # libtool script then.
23630 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23631 if test -f "$ltmain_in"; then
23632 test -f Makefile && make "$ltmain"
23637 ac_ext=c
23638 ac_cpp='$CPP $CPPFLAGS'
23639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23643 CC="$lt_save_CC"
23645 else
23646 tagname=""
23650 GCJ)
23651 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23652 ac_ext=c
23653 ac_cpp='$CPP $CPPFLAGS'
23654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23659 # Source file extension for Java test sources.
23660 ac_ext=java
23662 # Object file extension for compiled Java test sources.
23663 objext=o
23664 objext_GCJ=$objext
23666 # Code to be used in simple compile tests
23667 lt_simple_compile_test_code="class foo {}\n"
23669 # Code to be used in simple link tests
23670 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23672 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23674 # If no C compiler was specified, use CC.
23675 LTCC=${LTCC-"$CC"}
23677 # If no C compiler flags were specified, use CFLAGS.
23678 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23680 # Allow CC to be a program name with arguments.
23681 compiler=$CC
23684 # save warnings/boilerplate of simple test code
23685 ac_outfile=conftest.$ac_objext
23686 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23687 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23688 _lt_compiler_boilerplate=`cat conftest.err`
23689 $rm conftest*
23691 ac_outfile=conftest.$ac_objext
23692 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23693 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23694 _lt_linker_boilerplate=`cat conftest.err`
23695 $rm conftest*
23698 # Allow CC to be a program name with arguments.
23699 lt_save_CC="$CC"
23700 CC=${GCJ-"gcj"}
23701 compiler=$CC
23702 compiler_GCJ=$CC
23703 for cc_temp in $compiler""; do
23704 case $cc_temp in
23705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23707 \-*) ;;
23708 *) break;;
23709 esac
23710 done
23711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23714 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23715 archive_cmds_need_lc_GCJ=no
23717 old_archive_cmds_GCJ=$old_archive_cmds
23720 lt_prog_compiler_no_builtin_flag_GCJ=
23722 if test "$GCC" = yes; then
23723 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23726 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23727 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23728 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 else
23731 lt_cv_prog_compiler_rtti_exceptions=no
23732 ac_outfile=conftest.$ac_objext
23733 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23734 lt_compiler_flag="-fno-rtti -fno-exceptions"
23735 # Insert the option either (1) after the last *FLAGS variable, or
23736 # (2) before a word containing "conftest.", or (3) at the end.
23737 # Note that $ac_compile itself does not contain backslashes and begins
23738 # with a dollar sign (not a hyphen), so the echo should work correctly.
23739 # The option is referenced via a variable to avoid confusing sed.
23740 lt_compile=`echo "$ac_compile" | $SED \
23741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23743 -e 's:$: $lt_compiler_flag:'`
23744 (eval echo "\"\$as_me:23730: $lt_compile\"" >&5)
23745 (eval "$lt_compile" 2>conftest.err)
23746 ac_status=$?
23747 cat conftest.err >&5
23748 echo "$as_me:23734: \$? = $ac_status" >&5
23749 if (exit $ac_status) && test -s "$ac_outfile"; then
23750 # The compiler can only warn and ignore the option if not recognized
23751 # So say no if there are warnings other than the usual output.
23752 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23755 lt_cv_prog_compiler_rtti_exceptions=yes
23758 $rm conftest*
23761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23762 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23764 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23765 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23766 else
23772 lt_prog_compiler_wl_GCJ=
23773 lt_prog_compiler_pic_GCJ=
23774 lt_prog_compiler_static_GCJ=
23776 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23777 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23779 if test "$GCC" = yes; then
23780 lt_prog_compiler_wl_GCJ='-Wl,'
23781 lt_prog_compiler_static_GCJ='-static'
23783 case $host_os in
23784 aix*)
23785 # All AIX code is PIC.
23786 if test "$host_cpu" = ia64; then
23787 # AIX 5 now supports IA64 processor
23788 lt_prog_compiler_static_GCJ='-Bstatic'
23792 amigaos*)
23793 # FIXME: we need at least 68020 code to build shared libraries, but
23794 # adding the `-m68020' flag to GCC prevents building anything better,
23795 # like `-m68040'.
23796 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23799 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23800 # PIC is the default for these OSes.
23803 mingw* | pw32* | os2*)
23804 # This hack is so that the source file can tell whether it is being
23805 # built for inclusion in a dll (and should export symbols for example).
23806 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23809 darwin* | rhapsody*)
23810 # PIC is the default on this platform
23811 # Common symbols not allowed in MH_DYLIB files
23812 lt_prog_compiler_pic_GCJ='-fno-common'
23815 interix3*)
23816 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23817 # Instead, we relocate shared libraries at runtime.
23820 msdosdjgpp*)
23821 # Just because we use GCC doesn't mean we suddenly get shared libraries
23822 # on systems that don't support them.
23823 lt_prog_compiler_can_build_shared_GCJ=no
23824 enable_shared=no
23827 sysv4*MP*)
23828 if test -d /usr/nec; then
23829 lt_prog_compiler_pic_GCJ=-Kconform_pic
23833 hpux*)
23834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23835 # not for PA HP-UX.
23836 case $host_cpu in
23837 hppa*64*|ia64*)
23838 # +Z the default
23841 lt_prog_compiler_pic_GCJ='-fPIC'
23843 esac
23847 lt_prog_compiler_pic_GCJ='-fPIC'
23849 esac
23850 else
23851 # PORTME Check for flag to pass linker flags through the system compiler.
23852 case $host_os in
23853 aix*)
23854 lt_prog_compiler_wl_GCJ='-Wl,'
23855 if test "$host_cpu" = ia64; then
23856 # AIX 5 now supports IA64 processor
23857 lt_prog_compiler_static_GCJ='-Bstatic'
23858 else
23859 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23862 darwin*)
23863 # PIC is the default on this platform
23864 # Common symbols not allowed in MH_DYLIB files
23865 case $cc_basename in
23866 xlc*)
23867 lt_prog_compiler_pic_GCJ='-qnocommon'
23868 lt_prog_compiler_wl_GCJ='-Wl,'
23870 esac
23873 mingw* | pw32* | os2*)
23874 # This hack is so that the source file can tell whether it is being
23875 # built for inclusion in a dll (and should export symbols for example).
23876 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23879 hpux9* | hpux10* | hpux11*)
23880 lt_prog_compiler_wl_GCJ='-Wl,'
23881 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23882 # not for PA HP-UX.
23883 case $host_cpu in
23884 hppa*64*|ia64*)
23885 # +Z the default
23888 lt_prog_compiler_pic_GCJ='+Z'
23890 esac
23891 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23892 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23895 irix5* | irix6* | nonstopux*)
23896 lt_prog_compiler_wl_GCJ='-Wl,'
23897 # PIC (with -KPIC) is the default.
23898 lt_prog_compiler_static_GCJ='-non_shared'
23901 newsos6)
23902 lt_prog_compiler_pic_GCJ='-KPIC'
23903 lt_prog_compiler_static_GCJ='-Bstatic'
23906 linux*)
23907 case $cc_basename in
23908 icc* | ecc*)
23909 lt_prog_compiler_wl_GCJ='-Wl,'
23910 lt_prog_compiler_pic_GCJ='-KPIC'
23911 lt_prog_compiler_static_GCJ='-static'
23913 pgcc* | pgf77* | pgf90* | pgf95*)
23914 # Portland Group compilers (*not* the Pentium gcc compiler,
23915 # which looks to be a dead project)
23916 lt_prog_compiler_wl_GCJ='-Wl,'
23917 lt_prog_compiler_pic_GCJ='-fpic'
23918 lt_prog_compiler_static_GCJ='-Bstatic'
23920 ccc*)
23921 lt_prog_compiler_wl_GCJ='-Wl,'
23922 # All Alpha code is PIC.
23923 lt_prog_compiler_static_GCJ='-non_shared'
23925 esac
23928 osf3* | osf4* | osf5*)
23929 lt_prog_compiler_wl_GCJ='-Wl,'
23930 # All OSF/1 code is PIC.
23931 lt_prog_compiler_static_GCJ='-non_shared'
23934 solaris*)
23935 lt_prog_compiler_pic_GCJ='-KPIC'
23936 lt_prog_compiler_static_GCJ='-Bstatic'
23937 case $cc_basename in
23938 f77* | f90* | f95*)
23939 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23941 lt_prog_compiler_wl_GCJ='-Wl,';;
23942 esac
23945 sunos4*)
23946 lt_prog_compiler_wl_GCJ='-Qoption ld '
23947 lt_prog_compiler_pic_GCJ='-PIC'
23948 lt_prog_compiler_static_GCJ='-Bstatic'
23951 sysv4 | sysv4.2uw2* | sysv4.3*)
23952 lt_prog_compiler_wl_GCJ='-Wl,'
23953 lt_prog_compiler_pic_GCJ='-KPIC'
23954 lt_prog_compiler_static_GCJ='-Bstatic'
23957 sysv4*MP*)
23958 if test -d /usr/nec ;then
23959 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23960 lt_prog_compiler_static_GCJ='-Bstatic'
23964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23965 lt_prog_compiler_wl_GCJ='-Wl,'
23966 lt_prog_compiler_pic_GCJ='-KPIC'
23967 lt_prog_compiler_static_GCJ='-Bstatic'
23970 unicos*)
23971 lt_prog_compiler_wl_GCJ='-Wl,'
23972 lt_prog_compiler_can_build_shared_GCJ=no
23975 uts4*)
23976 lt_prog_compiler_pic_GCJ='-pic'
23977 lt_prog_compiler_static_GCJ='-Bstatic'
23981 lt_prog_compiler_can_build_shared_GCJ=no
23983 esac
23986 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23987 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23990 # Check to make sure the PIC flag actually works.
23992 if test -n "$lt_prog_compiler_pic_GCJ"; then
23994 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23995 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23996 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23997 echo $ECHO_N "(cached) $ECHO_C" >&6
23998 else
23999 lt_prog_compiler_pic_works_GCJ=no
24000 ac_outfile=conftest.$ac_objext
24001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24002 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24003 # Insert the option either (1) after the last *FLAGS variable, or
24004 # (2) before a word containing "conftest.", or (3) at the end.
24005 # Note that $ac_compile itself does not contain backslashes and begins
24006 # with a dollar sign (not a hyphen), so the echo should work correctly.
24007 # The option is referenced via a variable to avoid confusing sed.
24008 lt_compile=`echo "$ac_compile" | $SED \
24009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24011 -e 's:$: $lt_compiler_flag:'`
24012 (eval echo "\"\$as_me:23998: $lt_compile\"" >&5)
24013 (eval "$lt_compile" 2>conftest.err)
24014 ac_status=$?
24015 cat conftest.err >&5
24016 echo "$as_me:24002: \$? = $ac_status" >&5
24017 if (exit $ac_status) && test -s "$ac_outfile"; then
24018 # The compiler can only warn and ignore the option if not recognized
24019 # So say no if there are warnings other than the usual output.
24020 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24023 lt_prog_compiler_pic_works_GCJ=yes
24026 $rm conftest*
24029 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24030 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24032 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24033 case $lt_prog_compiler_pic_GCJ in
24034 "" | " "*) ;;
24035 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24036 esac
24037 else
24038 lt_prog_compiler_pic_GCJ=
24039 lt_prog_compiler_can_build_shared_GCJ=no
24043 case $host_os in
24044 # For platforms which do not support PIC, -DPIC is meaningless:
24045 *djgpp*)
24046 lt_prog_compiler_pic_GCJ=
24049 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24051 esac
24054 # Check to make sure the static flag actually works.
24056 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24057 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24058 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24059 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24060 echo $ECHO_N "(cached) $ECHO_C" >&6
24061 else
24062 lt_prog_compiler_static_works_GCJ=no
24063 save_LDFLAGS="$LDFLAGS"
24064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24065 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24067 # The linker can only warn and ignore the option if not recognized
24068 # So say no if there are warnings
24069 if test -s conftest.err; then
24070 # Append any errors to the config.log.
24071 cat conftest.err 1>&5
24072 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24074 if diff conftest.exp conftest.er2 >/dev/null; then
24075 lt_prog_compiler_static_works_GCJ=yes
24077 else
24078 lt_prog_compiler_static_works_GCJ=yes
24081 $rm conftest*
24082 LDFLAGS="$save_LDFLAGS"
24085 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24086 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24088 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24090 else
24091 lt_prog_compiler_static_GCJ=
24095 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24096 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24097 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24098 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 else
24100 lt_cv_prog_compiler_c_o_GCJ=no
24101 $rm -r conftest 2>/dev/null
24102 mkdir conftest
24103 cd conftest
24104 mkdir out
24105 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24107 lt_compiler_flag="-o out/conftest2.$ac_objext"
24108 # Insert the option either (1) after the last *FLAGS variable, or
24109 # (2) before a word containing "conftest.", or (3) at the end.
24110 # Note that $ac_compile itself does not contain backslashes and begins
24111 # with a dollar sign (not a hyphen), so the echo should work correctly.
24112 lt_compile=`echo "$ac_compile" | $SED \
24113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24115 -e 's:$: $lt_compiler_flag:'`
24116 (eval echo "\"\$as_me:24102: $lt_compile\"" >&5)
24117 (eval "$lt_compile" 2>out/conftest.err)
24118 ac_status=$?
24119 cat out/conftest.err >&5
24120 echo "$as_me:24106: \$? = $ac_status" >&5
24121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24122 then
24123 # The compiler can only warn and ignore the option if not recognized
24124 # So say no if there are warnings
24125 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24128 lt_cv_prog_compiler_c_o_GCJ=yes
24131 chmod u+w . 2>&5
24132 $rm conftest*
24133 # SGI C++ compiler will create directory out/ii_files/ for
24134 # template instantiation
24135 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24136 $rm out/* && rmdir out
24137 cd ..
24138 rmdir conftest
24139 $rm conftest*
24142 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24143 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24146 hard_links="nottested"
24147 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24148 # do not overwrite the value of need_locks provided by the user
24149 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24150 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24151 hard_links=yes
24152 $rm conftest*
24153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24154 touch conftest.a
24155 ln conftest.a conftest.b 2>&5 || hard_links=no
24156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24157 { echo "$as_me:$LINENO: result: $hard_links" >&5
24158 echo "${ECHO_T}$hard_links" >&6; }
24159 if test "$hard_links" = no; then
24160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24161 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24162 need_locks=warn
24164 else
24165 need_locks=no
24168 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24169 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24171 runpath_var=
24172 allow_undefined_flag_GCJ=
24173 enable_shared_with_static_runtimes_GCJ=no
24174 archive_cmds_GCJ=
24175 archive_expsym_cmds_GCJ=
24176 old_archive_From_new_cmds_GCJ=
24177 old_archive_from_expsyms_cmds_GCJ=
24178 export_dynamic_flag_spec_GCJ=
24179 whole_archive_flag_spec_GCJ=
24180 thread_safe_flag_spec_GCJ=
24181 hardcode_libdir_flag_spec_GCJ=
24182 hardcode_libdir_flag_spec_ld_GCJ=
24183 hardcode_libdir_separator_GCJ=
24184 hardcode_direct_GCJ=no
24185 hardcode_minus_L_GCJ=no
24186 hardcode_shlibpath_var_GCJ=unsupported
24187 link_all_deplibs_GCJ=unknown
24188 hardcode_automatic_GCJ=no
24189 module_cmds_GCJ=
24190 module_expsym_cmds_GCJ=
24191 always_export_symbols_GCJ=no
24192 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24193 # include_expsyms should be a list of space-separated symbols to be *always*
24194 # included in the symbol list
24195 include_expsyms_GCJ=
24196 # exclude_expsyms can be an extended regexp of symbols to exclude
24197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24199 # as well as any symbol that contains `d'.
24200 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24202 # platforms (ab)use it in PIC code, but their linkers get confused if
24203 # the symbol is explicitly referenced. Since portable code cannot
24204 # rely on this symbol name, it's probably fine to never include it in
24205 # preloaded symbol tables.
24206 extract_expsyms_cmds=
24207 # Just being paranoid about ensuring that cc_basename is set.
24208 for cc_temp in $compiler""; do
24209 case $cc_temp in
24210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24212 \-*) ;;
24213 *) break;;
24214 esac
24215 done
24216 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24218 case $host_os in
24219 cygwin* | mingw* | pw32*)
24220 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24221 # When not using gcc, we currently assume that we are using
24222 # Microsoft Visual C++.
24223 if test "$GCC" != yes; then
24224 with_gnu_ld=no
24227 interix*)
24228 # we just hope/assume this is gcc and not c89 (= MSVC++)
24229 with_gnu_ld=yes
24231 openbsd*)
24232 with_gnu_ld=no
24234 esac
24236 ld_shlibs_GCJ=yes
24237 if test "$with_gnu_ld" = yes; then
24238 # If archive_cmds runs LD, not CC, wlarc should be empty
24239 wlarc='${wl}'
24241 # Set some defaults for GNU ld with shared library support. These
24242 # are reset later if shared libraries are not supported. Putting them
24243 # here allows them to be overridden if necessary.
24244 runpath_var=LD_RUN_PATH
24245 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24246 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24247 # ancient GNU ld didn't support --whole-archive et. al.
24248 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24249 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24250 else
24251 whole_archive_flag_spec_GCJ=
24253 supports_anon_versioning=no
24254 case `$LD -v 2>/dev/null` in
24255 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24258 *\ 2.11.*) ;; # other 2.11 versions
24259 *) supports_anon_versioning=yes ;;
24260 esac
24262 # See if GNU ld supports shared libraries.
24263 case $host_os in
24264 aix3* | aix4* | aix5*)
24265 # On AIX/PPC, the GNU linker is very broken
24266 if test "$host_cpu" != ia64; then
24267 ld_shlibs_GCJ=no
24268 cat <<EOF 1>&2
24270 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24271 *** to be unable to reliably create shared libraries on AIX.
24272 *** Therefore, libtool is disabling shared libraries support. If you
24273 *** really care for shared libraries, you may want to modify your PATH
24274 *** so that a non-GNU linker is found, and then restart.
24280 amigaos*)
24281 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)'
24282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24283 hardcode_minus_L_GCJ=yes
24285 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24286 # that the semantics of dynamic libraries on AmigaOS, at least up
24287 # to version 4, is to share data among multiple programs linked
24288 # with the same dynamic library. Since this doesn't match the
24289 # behavior of shared libraries on other platforms, we can't use
24290 # them.
24291 ld_shlibs_GCJ=no
24294 beos*)
24295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24296 allow_undefined_flag_GCJ=unsupported
24297 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24298 # support --undefined. This deserves some investigation. FIXME
24299 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24300 else
24301 ld_shlibs_GCJ=no
24305 cygwin* | mingw* | pw32*)
24306 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24307 # as there is no search path for DLLs.
24308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24309 allow_undefined_flag_GCJ=unsupported
24310 always_export_symbols_GCJ=no
24311 enable_shared_with_static_runtimes_GCJ=yes
24312 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24314 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24315 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24316 # If the export-symbols file already is a .def file (1st line
24317 # is EXPORTS), use it as is; otherwise, prepend...
24318 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24319 cp $export_symbols $output_objdir/$soname.def;
24320 else
24321 echo EXPORTS > $output_objdir/$soname.def;
24322 cat $export_symbols >> $output_objdir/$soname.def;
24324 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24325 else
24326 ld_shlibs_GCJ=no
24330 interix3*)
24331 hardcode_direct_GCJ=no
24332 hardcode_shlibpath_var_GCJ=no
24333 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24334 export_dynamic_flag_spec_GCJ='${wl}-E'
24335 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24336 # Instead, shared libraries are loaded at an image base (0x10000000 by
24337 # default) and relocated if they conflict, which is a slow very memory
24338 # consuming and fragmenting process. To avoid this, we pick a random,
24339 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24340 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24341 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'
24342 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'
24345 linux*)
24346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24347 tmp_addflag=
24348 case $cc_basename,$host_cpu in
24349 pgcc*) # Portland Group C compiler
24350 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'
24351 tmp_addflag=' $pic_flag'
24353 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24354 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'
24355 tmp_addflag=' $pic_flag -Mnomain' ;;
24356 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24357 tmp_addflag=' -i_dynamic' ;;
24358 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24359 tmp_addflag=' -i_dynamic -nofor_main' ;;
24360 ifc* | ifort*) # Intel Fortran compiler
24361 tmp_addflag=' -nofor_main' ;;
24362 esac
24363 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24365 if test $supports_anon_versioning = yes; then
24366 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24368 $echo "local: *; };" >> $output_objdir/$libname.ver~
24369 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24371 else
24372 ld_shlibs_GCJ=no
24376 netbsd*)
24377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24378 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24379 wlarc=
24380 else
24381 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24382 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24386 solaris*)
24387 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24388 ld_shlibs_GCJ=no
24389 cat <<EOF 1>&2
24391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24392 *** create shared libraries on Solaris systems. Therefore, libtool
24393 *** is disabling shared libraries support. We urge you to upgrade GNU
24394 *** binutils to release 2.9.1 or newer. Another option is to modify
24395 *** your PATH or compiler configuration so that the native linker is
24396 *** used, and then restart.
24399 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24402 else
24403 ld_shlibs_GCJ=no
24407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24408 case `$LD -v 2>&1` in
24409 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24410 ld_shlibs_GCJ=no
24411 cat <<_LT_EOF 1>&2
24413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24414 *** reliably create shared libraries on SCO systems. Therefore, libtool
24415 *** is disabling shared libraries support. We urge you to upgrade GNU
24416 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24417 *** your PATH or compiler configuration so that the native linker is
24418 *** used, and then restart.
24420 _LT_EOF
24423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24424 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24426 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24427 else
24428 ld_shlibs_GCJ=no
24431 esac
24434 sunos4*)
24435 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24436 wlarc=
24437 hardcode_direct_GCJ=yes
24438 hardcode_shlibpath_var_GCJ=no
24442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24443 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24444 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24445 else
24446 ld_shlibs_GCJ=no
24449 esac
24451 if test "$ld_shlibs_GCJ" = no; then
24452 runpath_var=
24453 hardcode_libdir_flag_spec_GCJ=
24454 export_dynamic_flag_spec_GCJ=
24455 whole_archive_flag_spec_GCJ=
24457 else
24458 # PORTME fill in a description of your system's linker (not GNU ld)
24459 case $host_os in
24460 aix3*)
24461 allow_undefined_flag_GCJ=unsupported
24462 always_export_symbols_GCJ=yes
24463 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'
24464 # Note: this linker hardcodes the directories in LIBPATH if there
24465 # are no directories specified by -L.
24466 hardcode_minus_L_GCJ=yes
24467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24468 # Neither direct hardcoding nor static linking is supported with a
24469 # broken collect2.
24470 hardcode_direct_GCJ=unsupported
24474 aix4* | aix5*)
24475 if test "$host_cpu" = ia64; then
24476 # On IA64, the linker does run time linking by default, so we don't
24477 # have to do anything special.
24478 aix_use_runtimelinking=no
24479 exp_sym_flag='-Bexport'
24480 no_entry_flag=""
24481 else
24482 # If we're using GNU nm, then we don't want the "-C" option.
24483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24484 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24485 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'
24486 else
24487 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'
24489 aix_use_runtimelinking=no
24491 # Test if we are trying to use run time linking or normal
24492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24493 # need to do runtime linking.
24494 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24495 for ld_flag in $LDFLAGS; do
24496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24497 aix_use_runtimelinking=yes
24498 break
24500 done
24502 esac
24504 exp_sym_flag='-bexport'
24505 no_entry_flag='-bnoentry'
24508 # When large executables or shared objects are built, AIX ld can
24509 # have problems creating the table of contents. If linking a library
24510 # or program results in "error TOC overflow" add -mminimal-toc to
24511 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24512 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24514 archive_cmds_GCJ=''
24515 hardcode_direct_GCJ=yes
24516 hardcode_libdir_separator_GCJ=':'
24517 link_all_deplibs_GCJ=yes
24519 if test "$GCC" = yes; then
24520 case $host_os in aix4.[012]|aix4.[012].*)
24521 # We only want to do this on AIX 4.2 and lower, the check
24522 # below for broken collect2 doesn't work under 4.3+
24523 collect2name=`${CC} -print-prog-name=collect2`
24524 if test -f "$collect2name" && \
24525 strings "$collect2name" | grep resolve_lib_name >/dev/null
24526 then
24527 # We have reworked collect2
24528 hardcode_direct_GCJ=yes
24529 else
24530 # We have old collect2
24531 hardcode_direct_GCJ=unsupported
24532 # It fails to find uninstalled libraries when the uninstalled
24533 # path is not listed in the libpath. Setting hardcode_minus_L
24534 # to unsupported forces relinking
24535 hardcode_minus_L_GCJ=yes
24536 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24537 hardcode_libdir_separator_GCJ=
24540 esac
24541 shared_flag='-shared'
24542 if test "$aix_use_runtimelinking" = yes; then
24543 shared_flag="$shared_flag "'${wl}-G'
24545 else
24546 # not using gcc
24547 if test "$host_cpu" = ia64; then
24548 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24549 # chokes on -Wl,-G. The following line is correct:
24550 shared_flag='-G'
24551 else
24552 if test "$aix_use_runtimelinking" = yes; then
24553 shared_flag='${wl}-G'
24554 else
24555 shared_flag='${wl}-bM:SRE'
24560 # It seems that -bexpall does not export symbols beginning with
24561 # underscore (_), so it is better to generate a list of symbols to export.
24562 always_export_symbols_GCJ=yes
24563 if test "$aix_use_runtimelinking" = yes; then
24564 # Warning - without using the other runtime loading flags (-brtl),
24565 # -berok will link without error, but may produce a broken library.
24566 allow_undefined_flag_GCJ='-berok'
24567 # Determine the default libpath from the value encoded in an empty executable.
24568 cat >conftest.$ac_ext <<_ACEOF
24569 /* confdefs.h. */
24570 _ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h. */
24576 main ()
24580 return 0;
24582 _ACEOF
24583 rm -f conftest.$ac_objext conftest$ac_exeext
24584 if { (ac_try="$ac_link"
24585 case "(($ac_try" in
24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587 *) ac_try_echo=$ac_try;;
24588 esac
24589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590 (eval "$ac_link") 2>conftest.er1
24591 ac_status=$?
24592 grep -v '^ *+' conftest.er1 >conftest.err
24593 rm -f conftest.er1
24594 cat conftest.err >&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } &&
24597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24598 { (case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24601 esac
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_try") 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest$ac_exeext'
24608 { (case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24611 esac
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_try") 2>&5
24614 ac_status=$?
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; }; then
24618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24620 # Check for a 64-bit object if we didn't find anything.
24621 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24622 }'`; fi
24623 else
24624 echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24630 rm -f core conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
24632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24634 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24635 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"
24636 else
24637 if test "$host_cpu" = ia64; then
24638 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24639 allow_undefined_flag_GCJ="-z nodefs"
24640 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"
24641 else
24642 # Determine the default libpath from the value encoded in an empty executable.
24643 cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h. */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24651 main ()
24655 return 0;
24657 _ACEOF
24658 rm -f conftest.$ac_objext conftest$ac_exeext
24659 if { (ac_try="$ac_link"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_link") 2>conftest.er1
24666 ac_status=$?
24667 grep -v '^ *+' conftest.er1 >conftest.err
24668 rm -f conftest.er1
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } &&
24672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24673 { (case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_try") 2>&5
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; } &&
24682 { ac_try='test -s conftest$ac_exeext'
24683 { (case "(($ac_try" in
24684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685 *) ac_try_echo=$ac_try;;
24686 esac
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688 (eval "$ac_try") 2>&5
24689 ac_status=$?
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; }; then
24693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24695 # Check for a 64-bit object if we didn't find anything.
24696 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24697 }'`; fi
24698 else
24699 echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24705 rm -f core conftest.err conftest.$ac_objext \
24706 conftest$ac_exeext conftest.$ac_ext
24707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24709 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24710 # Warning - without using the other run time loading flags,
24711 # -berok will link without error, but may produce a broken library.
24712 no_undefined_flag_GCJ=' ${wl}-bernotok'
24713 allow_undefined_flag_GCJ=' ${wl}-berok'
24714 # Exported symbols can be pulled into shared objects from archives
24715 whole_archive_flag_spec_GCJ='$convenience'
24716 archive_cmds_need_lc_GCJ=yes
24717 # This is similar to how AIX traditionally builds its shared libraries.
24718 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'
24723 amigaos*)
24724 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)'
24725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24726 hardcode_minus_L_GCJ=yes
24727 # see comment about different semantics on the GNU ld section
24728 ld_shlibs_GCJ=no
24731 bsdi[45]*)
24732 export_dynamic_flag_spec_GCJ=-rdynamic
24735 cygwin* | mingw* | pw32*)
24736 # When not using gcc, we currently assume that we are using
24737 # Microsoft Visual C++.
24738 # hardcode_libdir_flag_spec is actually meaningless, as there is
24739 # no search path for DLLs.
24740 hardcode_libdir_flag_spec_GCJ=' '
24741 allow_undefined_flag_GCJ=unsupported
24742 # Tell ltmain to make .lib files, not .a files.
24743 libext=lib
24744 # Tell ltmain to make .dll files, not .so files.
24745 shrext_cmds=".dll"
24746 # FIXME: Setting linknames here is a bad hack.
24747 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24748 # The linker will automatically build a .lib file if we build a DLL.
24749 old_archive_From_new_cmds_GCJ='true'
24750 # FIXME: Should let the user specify the lib program.
24751 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24752 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24753 enable_shared_with_static_runtimes_GCJ=yes
24756 darwin* | rhapsody*)
24757 case $host_os in
24758 rhapsody* | darwin1.[012])
24759 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24761 *) # Darwin 1.3 on
24762 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24763 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24764 else
24765 case ${MACOSX_DEPLOYMENT_TARGET} in
24766 10.[012])
24767 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24769 10.*)
24770 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24772 esac
24775 esac
24776 archive_cmds_need_lc_GCJ=no
24777 hardcode_direct_GCJ=no
24778 hardcode_automatic_GCJ=yes
24779 hardcode_shlibpath_var_GCJ=unsupported
24780 whole_archive_flag_spec_GCJ=''
24781 link_all_deplibs_GCJ=yes
24782 if test "$GCC" = yes ; then
24783 output_verbose_link_cmd='echo'
24784 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24785 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24786 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24787 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}'
24788 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}'
24789 else
24790 case $cc_basename in
24791 xlc*)
24792 output_verbose_link_cmd='echo'
24793 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24794 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24795 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24796 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24797 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}'
24800 ld_shlibs_GCJ=no
24802 esac
24806 dgux*)
24807 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24808 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24809 hardcode_shlibpath_var_GCJ=no
24812 freebsd1*)
24813 ld_shlibs_GCJ=no
24816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24817 # support. Future versions do this automatically, but an explicit c++rt0.o
24818 # does not break anything, and helps significantly (at the cost of a little
24819 # extra space).
24820 freebsd2.2*)
24821 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24822 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24823 hardcode_direct_GCJ=yes
24824 hardcode_shlibpath_var_GCJ=no
24827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24828 freebsd2*)
24829 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24830 hardcode_direct_GCJ=yes
24831 hardcode_minus_L_GCJ=yes
24832 hardcode_shlibpath_var_GCJ=no
24835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24836 freebsd* | kfreebsd*-gnu | dragonfly*)
24837 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24838 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24839 hardcode_direct_GCJ=yes
24840 hardcode_shlibpath_var_GCJ=no
24843 hpux9*)
24844 if test "$GCC" = yes; then
24845 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'
24846 else
24847 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'
24849 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24850 hardcode_libdir_separator_GCJ=:
24851 hardcode_direct_GCJ=yes
24853 # hardcode_minus_L: Not really in the search PATH,
24854 # but as the default location of the library.
24855 hardcode_minus_L_GCJ=yes
24856 export_dynamic_flag_spec_GCJ='${wl}-E'
24859 hpux10*)
24860 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24861 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24862 else
24863 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24865 if test "$with_gnu_ld" = no; then
24866 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24867 hardcode_libdir_separator_GCJ=:
24869 hardcode_direct_GCJ=yes
24870 export_dynamic_flag_spec_GCJ='${wl}-E'
24872 # hardcode_minus_L: Not really in the search PATH,
24873 # but as the default location of the library.
24874 hardcode_minus_L_GCJ=yes
24878 hpux11*)
24879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24880 case $host_cpu in
24881 hppa*64*)
24882 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24884 ia64*)
24885 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24888 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24890 esac
24891 else
24892 case $host_cpu in
24893 hppa*64*)
24894 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24896 ia64*)
24897 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24900 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24902 esac
24904 if test "$with_gnu_ld" = no; then
24905 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24906 hardcode_libdir_separator_GCJ=:
24908 case $host_cpu in
24909 hppa*64*|ia64*)
24910 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24911 hardcode_direct_GCJ=no
24912 hardcode_shlibpath_var_GCJ=no
24915 hardcode_direct_GCJ=yes
24916 export_dynamic_flag_spec_GCJ='${wl}-E'
24918 # hardcode_minus_L: Not really in the search PATH,
24919 # but as the default location of the library.
24920 hardcode_minus_L_GCJ=yes
24922 esac
24926 irix5* | irix6* | nonstopux*)
24927 if test "$GCC" = yes; then
24928 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'
24929 else
24930 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'
24931 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24934 hardcode_libdir_separator_GCJ=:
24935 link_all_deplibs_GCJ=yes
24938 netbsd*)
24939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24940 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24941 else
24942 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24945 hardcode_direct_GCJ=yes
24946 hardcode_shlibpath_var_GCJ=no
24949 newsos6)
24950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24951 hardcode_direct_GCJ=yes
24952 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24953 hardcode_libdir_separator_GCJ=:
24954 hardcode_shlibpath_var_GCJ=no
24957 openbsd*)
24958 hardcode_direct_GCJ=yes
24959 hardcode_shlibpath_var_GCJ=no
24960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24961 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24962 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24964 export_dynamic_flag_spec_GCJ='${wl}-E'
24965 else
24966 case $host_os in
24967 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24968 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24969 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24972 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24975 esac
24979 os2*)
24980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24981 hardcode_minus_L_GCJ=yes
24982 allow_undefined_flag_GCJ=unsupported
24983 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'
24984 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24987 osf3*)
24988 if test "$GCC" = yes; then
24989 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24990 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'
24991 else
24992 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24993 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'
24995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24996 hardcode_libdir_separator_GCJ=:
24999 osf4* | osf5*) # as osf3* with the addition of -msym flag
25000 if test "$GCC" = yes; then
25001 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25002 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'
25003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25004 else
25005 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25006 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'
25007 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~
25008 $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'
25010 # Both c and cxx compiler support -rpath directly
25011 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25013 hardcode_libdir_separator_GCJ=:
25016 solaris*)
25017 no_undefined_flag_GCJ=' -z text'
25018 if test "$GCC" = yes; then
25019 wlarc='${wl}'
25020 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25021 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25022 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25023 else
25024 wlarc=''
25025 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25026 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25030 hardcode_shlibpath_var_GCJ=no
25031 case $host_os in
25032 solaris2.[0-5] | solaris2.[0-5].*) ;;
25034 # The compiler driver will combine linker options so we
25035 # cannot just pass the convience library names through
25036 # without $wl, iff we do not link with $LD.
25037 # Luckily, gcc supports the same syntax we need for Sun Studio.
25038 # Supported since Solaris 2.6 (maybe 2.5.1?)
25039 case $wlarc in
25041 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25043 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25044 esac ;;
25045 esac
25046 link_all_deplibs_GCJ=yes
25049 sunos4*)
25050 if test "x$host_vendor" = xsequent; then
25051 # Use $CC to link under sequent, because it throws in some extra .o
25052 # files that make .init and .fini sections work.
25053 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25054 else
25055 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25058 hardcode_direct_GCJ=yes
25059 hardcode_minus_L_GCJ=yes
25060 hardcode_shlibpath_var_GCJ=no
25063 sysv4)
25064 case $host_vendor in
25065 sni)
25066 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25067 hardcode_direct_GCJ=yes # is this really true???
25069 siemens)
25070 ## LD is ld it makes a PLAMLIB
25071 ## CC just makes a GrossModule.
25072 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25073 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25074 hardcode_direct_GCJ=no
25076 motorola)
25077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25078 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25080 esac
25081 runpath_var='LD_RUN_PATH'
25082 hardcode_shlibpath_var_GCJ=no
25085 sysv4.3*)
25086 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25087 hardcode_shlibpath_var_GCJ=no
25088 export_dynamic_flag_spec_GCJ='-Bexport'
25091 sysv4*MP*)
25092 if test -d /usr/nec; then
25093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25094 hardcode_shlibpath_var_GCJ=no
25095 runpath_var=LD_RUN_PATH
25096 hardcode_runpath_var=yes
25097 ld_shlibs_GCJ=yes
25101 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25102 no_undefined_flag_GCJ='${wl}-z,text'
25103 archive_cmds_need_lc_GCJ=no
25104 hardcode_shlibpath_var_GCJ=no
25105 runpath_var='LD_RUN_PATH'
25107 if test "$GCC" = yes; then
25108 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25109 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25110 else
25111 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25112 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25116 sysv5* | sco3.2v5* | sco5v6*)
25117 # Note: We can NOT use -z defs as we might desire, because we do not
25118 # link with -lc, and that would cause any symbols used from libc to
25119 # always be unresolved, which means just about no library would
25120 # ever link correctly. If we're not using GNU ld we use -z text
25121 # though, which does catch some bad symbols but isn't as heavy-handed
25122 # as -z defs.
25123 no_undefined_flag_GCJ='${wl}-z,text'
25124 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25125 archive_cmds_need_lc_GCJ=no
25126 hardcode_shlibpath_var_GCJ=no
25127 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25128 hardcode_libdir_separator_GCJ=':'
25129 link_all_deplibs_GCJ=yes
25130 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25131 runpath_var='LD_RUN_PATH'
25133 if test "$GCC" = yes; then
25134 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25135 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25136 else
25137 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25138 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25142 uts4*)
25143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25145 hardcode_shlibpath_var_GCJ=no
25149 ld_shlibs_GCJ=no
25151 esac
25154 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25155 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25156 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25159 # Do we need to explicitly link libc?
25161 case "x$archive_cmds_need_lc_GCJ" in
25162 x|xyes)
25163 # Assume -lc should be added
25164 archive_cmds_need_lc_GCJ=yes
25166 if test "$enable_shared" = yes && test "$GCC" = yes; then
25167 case $archive_cmds_GCJ in
25168 *'~'*)
25169 # FIXME: we may have to deal with multi-command sequences.
25171 '$CC '*)
25172 # Test whether the compiler implicitly links with -lc since on some
25173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25174 # to ld, don't add -lc before -lgcc.
25175 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25176 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25177 $rm conftest*
25178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25181 (eval $ac_compile) 2>&5
25182 ac_status=$?
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } 2>conftest.err; then
25185 soname=conftest
25186 lib=conftest
25187 libobjs=conftest.$ac_objext
25188 deplibs=
25189 wl=$lt_prog_compiler_wl_GCJ
25190 pic_flag=$lt_prog_compiler_pic_GCJ
25191 compiler_flags=-v
25192 linker_flags=-v
25193 verstring=
25194 output_objdir=.
25195 libname=conftest
25196 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25197 allow_undefined_flag_GCJ=
25198 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25199 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25200 ac_status=$?
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }
25203 then
25204 archive_cmds_need_lc_GCJ=no
25205 else
25206 archive_cmds_need_lc_GCJ=yes
25208 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25209 else
25210 cat conftest.err 1>&5
25212 $rm conftest*
25213 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25214 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25216 esac
25219 esac
25221 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25222 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25223 library_names_spec=
25224 libname_spec='lib$name'
25225 soname_spec=
25226 shrext_cmds=".so"
25227 postinstall_cmds=
25228 postuninstall_cmds=
25229 finish_cmds=
25230 finish_eval=
25231 shlibpath_var=
25232 shlibpath_overrides_runpath=unknown
25233 version_type=none
25234 dynamic_linker="$host_os ld.so"
25235 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25236 if test "$GCC" = yes; then
25237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25238 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25239 # if the path contains ";" then we assume it to be the separator
25240 # otherwise default to the standard path separator (i.e. ":") - it is
25241 # assumed that no part of a normal pathname contains ";" but that should
25242 # okay in the real world where ";" in dirpaths is itself problematic.
25243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25244 else
25245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25247 else
25248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25250 need_lib_prefix=unknown
25251 hardcode_into_libs=no
25253 # when you set need_version to no, make sure it does not cause -set_version
25254 # flags to be left without arguments
25255 need_version=unknown
25257 case $host_os in
25258 aix3*)
25259 version_type=linux
25260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25261 shlibpath_var=LIBPATH
25263 # AIX 3 has no versioning support, so we append a major version to the name.
25264 soname_spec='${libname}${release}${shared_ext}$major'
25267 aix4* | aix5*)
25268 version_type=linux
25269 need_lib_prefix=no
25270 need_version=no
25271 hardcode_into_libs=yes
25272 if test "$host_cpu" = ia64; then
25273 # AIX 5 supports IA64
25274 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25275 shlibpath_var=LD_LIBRARY_PATH
25276 else
25277 # With GCC up to 2.95.x, collect2 would create an import file
25278 # for dependence libraries. The import file would start with
25279 # the line `#! .'. This would cause the generated library to
25280 # depend on `.', always an invalid library. This was fixed in
25281 # development snapshots of GCC prior to 3.0.
25282 case $host_os in
25283 aix4 | aix4.[01] | aix4.[01].*)
25284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25285 echo ' yes '
25286 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25288 else
25289 can_build_shared=no
25292 esac
25293 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25294 # soname into executable. Probably we can add versioning support to
25295 # collect2, so additional links can be useful in future.
25296 if test "$aix_use_runtimelinking" = yes; then
25297 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25298 # instead of lib<name>.a to let people know that these are not
25299 # typical AIX shared libraries.
25300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25301 else
25302 # We preserve .a as extension for shared libraries through AIX4.2
25303 # and later when we are not doing run time linking.
25304 library_names_spec='${libname}${release}.a $libname.a'
25305 soname_spec='${libname}${release}${shared_ext}$major'
25307 shlibpath_var=LIBPATH
25311 amigaos*)
25312 library_names_spec='$libname.ixlibrary $libname.a'
25313 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25314 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'
25317 beos*)
25318 library_names_spec='${libname}${shared_ext}'
25319 dynamic_linker="$host_os ld.so"
25320 shlibpath_var=LIBRARY_PATH
25323 bsdi[45]*)
25324 version_type=linux
25325 need_version=no
25326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25327 soname_spec='${libname}${release}${shared_ext}$major'
25328 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25329 shlibpath_var=LD_LIBRARY_PATH
25330 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25331 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25332 # the default ld.so.conf also contains /usr/contrib/lib and
25333 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25334 # libtool to hard-code these into programs
25337 cygwin* | mingw* | pw32*)
25338 version_type=windows
25339 shrext_cmds=".dll"
25340 need_version=no
25341 need_lib_prefix=no
25343 case $GCC,$host_os in
25344 yes,cygwin* | yes,mingw* | yes,pw32*)
25345 library_names_spec='$libname.dll.a'
25346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25347 postinstall_cmds='base_file=`basename \${file}`~
25348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25349 dldir=$destdir/`dirname \$dlpath`~
25350 test -d \$dldir || mkdir -p \$dldir~
25351 $install_prog $dir/$dlname \$dldir/$dlname~
25352 chmod a+x \$dldir/$dlname'
25353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25354 dlpath=$dir/\$dldll~
25355 $rm \$dlpath'
25356 shlibpath_overrides_runpath=yes
25358 case $host_os in
25359 cygwin*)
25360 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25361 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25362 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25364 mingw*)
25365 # MinGW DLLs use traditional 'lib' prefix
25366 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25367 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25368 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25369 # It is most probably a Windows format PATH printed by
25370 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25371 # path with ; separators, and with drive letters. We can handle the
25372 # drive letters (cygwin fileutils understands them), so leave them,
25373 # especially as we might pass files found there to a mingw objdump,
25374 # which wouldn't understand a cygwinified path. Ahh.
25375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25376 else
25377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25380 pw32*)
25381 # pw32 DLLs use 'pw' prefix rather than 'lib'
25382 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25384 esac
25388 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25390 esac
25391 dynamic_linker='Win32 ld.exe'
25392 # FIXME: first we should search . and the directory the executable is in
25393 shlibpath_var=PATH
25396 darwin* | rhapsody*)
25397 dynamic_linker="$host_os dyld"
25398 version_type=darwin
25399 need_lib_prefix=no
25400 need_version=no
25401 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25402 soname_spec='${libname}${release}${major}$shared_ext'
25403 shlibpath_overrides_runpath=yes
25404 shlibpath_var=DYLD_LIBRARY_PATH
25405 shrext_cmds='.dylib'
25406 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25407 if test "$GCC" = yes; then
25408 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25409 else
25410 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25412 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25415 dgux*)
25416 version_type=linux
25417 need_lib_prefix=no
25418 need_version=no
25419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25420 soname_spec='${libname}${release}${shared_ext}$major'
25421 shlibpath_var=LD_LIBRARY_PATH
25424 freebsd1*)
25425 dynamic_linker=no
25428 kfreebsd*-gnu)
25429 version_type=linux
25430 need_lib_prefix=no
25431 need_version=no
25432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25433 soname_spec='${libname}${release}${shared_ext}$major'
25434 shlibpath_var=LD_LIBRARY_PATH
25435 shlibpath_overrides_runpath=no
25436 hardcode_into_libs=yes
25437 dynamic_linker='GNU ld.so'
25440 freebsd* | dragonfly*)
25441 # DragonFly does not have aout. When/if they implement a new
25442 # versioning mechanism, adjust this.
25443 if test -x /usr/bin/objformat; then
25444 objformat=`/usr/bin/objformat`
25445 else
25446 case $host_os in
25447 freebsd[123]*) objformat=aout ;;
25448 *) objformat=elf ;;
25449 esac
25451 version_type=freebsd-$objformat
25452 case $version_type in
25453 freebsd-elf*)
25454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25455 need_version=no
25456 need_lib_prefix=no
25458 freebsd-*)
25459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25460 need_version=yes
25462 esac
25463 shlibpath_var=LD_LIBRARY_PATH
25464 case $host_os in
25465 freebsd2*)
25466 shlibpath_overrides_runpath=yes
25468 freebsd3.[01]* | freebsdelf3.[01]*)
25469 shlibpath_overrides_runpath=yes
25470 hardcode_into_libs=yes
25472 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25473 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25474 shlibpath_overrides_runpath=no
25475 hardcode_into_libs=yes
25477 freebsd*) # from 4.6 on
25478 shlibpath_overrides_runpath=yes
25479 hardcode_into_libs=yes
25481 esac
25484 gnu*)
25485 version_type=linux
25486 need_lib_prefix=no
25487 need_version=no
25488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25489 soname_spec='${libname}${release}${shared_ext}$major'
25490 shlibpath_var=LD_LIBRARY_PATH
25491 hardcode_into_libs=yes
25494 hpux9* | hpux10* | hpux11*)
25495 # Give a soname corresponding to the major version so that dld.sl refuses to
25496 # link against other versions.
25497 version_type=sunos
25498 need_lib_prefix=no
25499 need_version=no
25500 case $host_cpu in
25501 ia64*)
25502 shrext_cmds='.so'
25503 hardcode_into_libs=yes
25504 dynamic_linker="$host_os dld.so"
25505 shlibpath_var=LD_LIBRARY_PATH
25506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25508 soname_spec='${libname}${release}${shared_ext}$major'
25509 if test "X$HPUX_IA64_MODE" = X32; then
25510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25511 else
25512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25516 hppa*64*)
25517 shrext_cmds='.sl'
25518 hardcode_into_libs=yes
25519 dynamic_linker="$host_os dld.sl"
25520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25523 soname_spec='${libname}${release}${shared_ext}$major'
25524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25528 shrext_cmds='.sl'
25529 dynamic_linker="$host_os dld.sl"
25530 shlibpath_var=SHLIB_PATH
25531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25533 soname_spec='${libname}${release}${shared_ext}$major'
25535 esac
25536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25537 postinstall_cmds='chmod 555 $lib'
25540 interix3*)
25541 version_type=linux
25542 need_lib_prefix=no
25543 need_version=no
25544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25545 soname_spec='${libname}${release}${shared_ext}$major'
25546 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25547 shlibpath_var=LD_LIBRARY_PATH
25548 shlibpath_overrides_runpath=no
25549 hardcode_into_libs=yes
25552 irix5* | irix6* | nonstopux*)
25553 case $host_os in
25554 nonstopux*) version_type=nonstopux ;;
25556 if test "$lt_cv_prog_gnu_ld" = yes; then
25557 version_type=linux
25558 else
25559 version_type=irix
25560 fi ;;
25561 esac
25562 need_lib_prefix=no
25563 need_version=no
25564 soname_spec='${libname}${release}${shared_ext}$major'
25565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25566 case $host_os in
25567 irix5* | nonstopux*)
25568 libsuff= shlibsuff=
25571 case $LD in # libtool.m4 will add one of these switches to LD
25572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25573 libsuff= shlibsuff= libmagic=32-bit;;
25574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25575 libsuff=32 shlibsuff=N32 libmagic=N32;;
25576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25577 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25578 *) libsuff= shlibsuff= libmagic=never-match;;
25579 esac
25581 esac
25582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25583 shlibpath_overrides_runpath=no
25584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25586 hardcode_into_libs=yes
25589 # No shared lib support for Linux oldld, aout, or coff.
25590 linux*oldld* | linux*aout* | linux*coff*)
25591 dynamic_linker=no
25594 # This must be Linux ELF.
25595 linux*)
25596 version_type=linux
25597 need_lib_prefix=no
25598 need_version=no
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25600 soname_spec='${libname}${release}${shared_ext}$major'
25601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25602 shlibpath_var=LD_LIBRARY_PATH
25603 shlibpath_overrides_runpath=no
25604 # This implies no fast_install, which is unacceptable.
25605 # Some rework will be needed to allow for fast_install
25606 # before this can be enabled.
25607 hardcode_into_libs=yes
25609 # Append ld.so.conf contents to the search path
25610 if test -f /etc/ld.so.conf; then
25611 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25612 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25615 # We used to test for /lib/ld.so.1 and disable shared libraries on
25616 # powerpc, because MkLinux only supported shared libraries with the
25617 # GNU dynamic linker. Since this was broken with cross compilers,
25618 # most powerpc-linux boxes support dynamic linking these days and
25619 # people can always --disable-shared, the test was removed, and we
25620 # assume the GNU/Linux dynamic linker is in use.
25621 dynamic_linker='GNU/Linux ld.so'
25624 knetbsd*-gnu)
25625 version_type=linux
25626 need_lib_prefix=no
25627 need_version=no
25628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25629 soname_spec='${libname}${release}${shared_ext}$major'
25630 shlibpath_var=LD_LIBRARY_PATH
25631 shlibpath_overrides_runpath=no
25632 hardcode_into_libs=yes
25633 dynamic_linker='GNU ld.so'
25636 netbsd*)
25637 version_type=sunos
25638 need_lib_prefix=no
25639 need_version=no
25640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25643 dynamic_linker='NetBSD (a.out) ld.so'
25644 else
25645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25646 soname_spec='${libname}${release}${shared_ext}$major'
25647 dynamic_linker='NetBSD ld.elf_so'
25649 shlibpath_var=LD_LIBRARY_PATH
25650 shlibpath_overrides_runpath=yes
25651 hardcode_into_libs=yes
25654 newsos6)
25655 version_type=linux
25656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25657 shlibpath_var=LD_LIBRARY_PATH
25658 shlibpath_overrides_runpath=yes
25661 nto-qnx*)
25662 version_type=linux
25663 need_lib_prefix=no
25664 need_version=no
25665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25666 soname_spec='${libname}${release}${shared_ext}$major'
25667 shlibpath_var=LD_LIBRARY_PATH
25668 shlibpath_overrides_runpath=yes
25671 openbsd*)
25672 version_type=sunos
25673 sys_lib_dlsearch_path_spec="/usr/lib"
25674 need_lib_prefix=no
25675 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25676 case $host_os in
25677 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25678 *) need_version=no ;;
25679 esac
25680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25682 shlibpath_var=LD_LIBRARY_PATH
25683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25684 case $host_os in
25685 openbsd2.[89] | openbsd2.[89].*)
25686 shlibpath_overrides_runpath=no
25689 shlibpath_overrides_runpath=yes
25691 esac
25692 else
25693 shlibpath_overrides_runpath=yes
25697 os2*)
25698 libname_spec='$name'
25699 shrext_cmds=".dll"
25700 need_lib_prefix=no
25701 library_names_spec='$libname${shared_ext} $libname.a'
25702 dynamic_linker='OS/2 ld.exe'
25703 shlibpath_var=LIBPATH
25706 osf3* | osf4* | osf5*)
25707 version_type=osf
25708 need_lib_prefix=no
25709 need_version=no
25710 soname_spec='${libname}${release}${shared_ext}$major'
25711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25712 shlibpath_var=LD_LIBRARY_PATH
25713 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25714 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25717 solaris*)
25718 version_type=linux
25719 need_lib_prefix=no
25720 need_version=no
25721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722 soname_spec='${libname}${release}${shared_ext}$major'
25723 shlibpath_var=LD_LIBRARY_PATH
25724 shlibpath_overrides_runpath=yes
25725 hardcode_into_libs=yes
25726 # ldd complains unless libraries are executable
25727 postinstall_cmds='chmod +x $lib'
25730 sunos4*)
25731 version_type=sunos
25732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25733 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25734 shlibpath_var=LD_LIBRARY_PATH
25735 shlibpath_overrides_runpath=yes
25736 if test "$with_gnu_ld" = yes; then
25737 need_lib_prefix=no
25739 need_version=yes
25742 sysv4 | sysv4.3*)
25743 version_type=linux
25744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25745 soname_spec='${libname}${release}${shared_ext}$major'
25746 shlibpath_var=LD_LIBRARY_PATH
25747 case $host_vendor in
25748 sni)
25749 shlibpath_overrides_runpath=no
25750 need_lib_prefix=no
25751 export_dynamic_flag_spec='${wl}-Blargedynsym'
25752 runpath_var=LD_RUN_PATH
25754 siemens)
25755 need_lib_prefix=no
25757 motorola)
25758 need_lib_prefix=no
25759 need_version=no
25760 shlibpath_overrides_runpath=no
25761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25763 esac
25766 sysv4*MP*)
25767 if test -d /usr/nec ;then
25768 version_type=linux
25769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25770 soname_spec='$libname${shared_ext}.$major'
25771 shlibpath_var=LD_LIBRARY_PATH
25775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25776 version_type=freebsd-elf
25777 need_lib_prefix=no
25778 need_version=no
25779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25780 soname_spec='${libname}${release}${shared_ext}$major'
25781 shlibpath_var=LD_LIBRARY_PATH
25782 hardcode_into_libs=yes
25783 if test "$with_gnu_ld" = yes; then
25784 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25785 shlibpath_overrides_runpath=no
25786 else
25787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25788 shlibpath_overrides_runpath=yes
25789 case $host_os in
25790 sco3.2v5*)
25791 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25793 esac
25795 sys_lib_dlsearch_path_spec='/usr/lib'
25798 uts4*)
25799 version_type=linux
25800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25801 soname_spec='${libname}${release}${shared_ext}$major'
25802 shlibpath_var=LD_LIBRARY_PATH
25806 dynamic_linker=no
25808 esac
25809 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25810 echo "${ECHO_T}$dynamic_linker" >&6; }
25811 test "$dynamic_linker" = no && can_build_shared=no
25813 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25814 if test "$GCC" = yes; then
25815 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25818 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25819 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25820 hardcode_action_GCJ=
25821 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25822 test -n "$runpath_var_GCJ" || \
25823 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25825 # We can hardcode non-existant directories.
25826 if test "$hardcode_direct_GCJ" != no &&
25827 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25828 # have to relink, otherwise we might link with an installed library
25829 # when we should be linking with a yet-to-be-installed one
25830 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25831 test "$hardcode_minus_L_GCJ" != no; then
25832 # Linking always hardcodes the temporary library directory.
25833 hardcode_action_GCJ=relink
25834 else
25835 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25836 hardcode_action_GCJ=immediate
25838 else
25839 # We cannot hardcode anything, or else we can only hardcode existing
25840 # directories.
25841 hardcode_action_GCJ=unsupported
25843 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25844 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25846 if test "$hardcode_action_GCJ" = relink; then
25847 # Fast installation is not supported
25848 enable_fast_install=no
25849 elif test "$shlibpath_overrides_runpath" = yes ||
25850 test "$enable_shared" = no; then
25851 # Fast installation is not necessary
25852 enable_fast_install=needless
25856 # The else clause should only fire when bootstrapping the
25857 # libtool distribution, otherwise you forgot to ship ltmain.sh
25858 # with your package, and you will get complaints that there are
25859 # no rules to generate ltmain.sh.
25860 if test -f "$ltmain"; then
25861 # See if we are running on zsh, and set the options which allow our commands through
25862 # without removal of \ escapes.
25863 if test -n "${ZSH_VERSION+set}" ; then
25864 setopt NO_GLOB_SUBST
25866 # Now quote all the things that may contain metacharacters while being
25867 # careful not to overquote the AC_SUBSTed values. We take copies of the
25868 # variables and quote the copies for generation of the libtool script.
25869 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25870 SED SHELL STRIP \
25871 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25872 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25873 deplibs_check_method reload_flag reload_cmds need_locks \
25874 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25875 lt_cv_sys_global_symbol_to_c_name_address \
25876 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25877 old_postinstall_cmds old_postuninstall_cmds \
25878 compiler_GCJ \
25879 CC_GCJ \
25880 LD_GCJ \
25881 lt_prog_compiler_wl_GCJ \
25882 lt_prog_compiler_pic_GCJ \
25883 lt_prog_compiler_static_GCJ \
25884 lt_prog_compiler_no_builtin_flag_GCJ \
25885 export_dynamic_flag_spec_GCJ \
25886 thread_safe_flag_spec_GCJ \
25887 whole_archive_flag_spec_GCJ \
25888 enable_shared_with_static_runtimes_GCJ \
25889 old_archive_cmds_GCJ \
25890 old_archive_from_new_cmds_GCJ \
25891 predep_objects_GCJ \
25892 postdep_objects_GCJ \
25893 predeps_GCJ \
25894 postdeps_GCJ \
25895 compiler_lib_search_path_GCJ \
25896 archive_cmds_GCJ \
25897 archive_expsym_cmds_GCJ \
25898 postinstall_cmds_GCJ \
25899 postuninstall_cmds_GCJ \
25900 old_archive_from_expsyms_cmds_GCJ \
25901 allow_undefined_flag_GCJ \
25902 no_undefined_flag_GCJ \
25903 export_symbols_cmds_GCJ \
25904 hardcode_libdir_flag_spec_GCJ \
25905 hardcode_libdir_flag_spec_ld_GCJ \
25906 hardcode_libdir_separator_GCJ \
25907 hardcode_automatic_GCJ \
25908 module_cmds_GCJ \
25909 module_expsym_cmds_GCJ \
25910 lt_cv_prog_compiler_c_o_GCJ \
25911 exclude_expsyms_GCJ \
25912 include_expsyms_GCJ; do
25914 case $var in
25915 old_archive_cmds_GCJ | \
25916 old_archive_from_new_cmds_GCJ | \
25917 archive_cmds_GCJ | \
25918 archive_expsym_cmds_GCJ | \
25919 module_cmds_GCJ | \
25920 module_expsym_cmds_GCJ | \
25921 old_archive_from_expsyms_cmds_GCJ | \
25922 export_symbols_cmds_GCJ | \
25923 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25924 postinstall_cmds | postuninstall_cmds | \
25925 old_postinstall_cmds | old_postuninstall_cmds | \
25926 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25927 # Double-quote double-evaled strings.
25928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25933 esac
25934 done
25936 case $lt_echo in
25937 *'\$0 --fallback-echo"')
25938 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25940 esac
25942 cfgfile="$ofile"
25944 cat <<__EOF__ >> "$cfgfile"
25945 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25949 # Shell to use when invoking shell scripts.
25950 SHELL=$lt_SHELL
25952 # Whether or not to build shared libraries.
25953 build_libtool_libs=$enable_shared
25955 # Whether or not to build static libraries.
25956 build_old_libs=$enable_static
25958 # Whether or not to add -lc for building shared libraries.
25959 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25961 # Whether or not to disallow shared libs when runtime libs are static
25962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25964 # Whether or not to optimize for fast installation.
25965 fast_install=$enable_fast_install
25967 # The host system.
25968 host_alias=$host_alias
25969 host=$host
25970 host_os=$host_os
25972 # The build system.
25973 build_alias=$build_alias
25974 build=$build
25975 build_os=$build_os
25977 # An echo program that does not interpret backslashes.
25978 echo=$lt_echo
25980 # The archiver.
25981 AR=$lt_AR
25982 AR_FLAGS=$lt_AR_FLAGS
25984 # A C compiler.
25985 LTCC=$lt_LTCC
25987 # LTCC compiler flags.
25988 LTCFLAGS=$lt_LTCFLAGS
25990 # A language-specific compiler.
25991 CC=$lt_compiler_GCJ
25993 # Is the compiler the GNU C compiler?
25994 with_gcc=$GCC_GCJ
25996 # An ERE matcher.
25997 EGREP=$lt_EGREP
25999 # The linker used to build libraries.
26000 LD=$lt_LD_GCJ
26002 # Whether we need hard or soft links.
26003 LN_S=$lt_LN_S
26005 # A BSD-compatible nm program.
26006 NM=$lt_NM
26008 # A symbol stripping program
26009 STRIP=$lt_STRIP
26011 # Used to examine libraries when file_magic_cmd begins "file"
26012 MAGIC_CMD=$MAGIC_CMD
26014 # Used on cygwin: DLL creation program.
26015 DLLTOOL="$DLLTOOL"
26017 # Used on cygwin: object dumper.
26018 OBJDUMP="$OBJDUMP"
26020 # Used on cygwin: assembler.
26021 AS="$AS"
26023 # The name of the directory that contains temporary libtool files.
26024 objdir=$objdir
26026 # How to create reloadable object files.
26027 reload_flag=$lt_reload_flag
26028 reload_cmds=$lt_reload_cmds
26030 # How to pass a linker flag through the compiler.
26031 wl=$lt_lt_prog_compiler_wl_GCJ
26033 # Object file suffix (normally "o").
26034 objext="$ac_objext"
26036 # Old archive suffix (normally "a").
26037 libext="$libext"
26039 # Shared library suffix (normally ".so").
26040 shrext_cmds='$shrext_cmds'
26042 # Executable file suffix (normally "").
26043 exeext="$exeext"
26045 # Additional compiler flags for building library objects.
26046 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26047 pic_mode=$pic_mode
26049 # What is the maximum length of a command?
26050 max_cmd_len=$lt_cv_sys_max_cmd_len
26052 # Does compiler simultaneously support -c and -o options?
26053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26055 # Must we lock files when doing compilation?
26056 need_locks=$lt_need_locks
26058 # Do we need the lib prefix for modules?
26059 need_lib_prefix=$need_lib_prefix
26061 # Do we need a version for libraries?
26062 need_version=$need_version
26064 # Whether dlopen is supported.
26065 dlopen_support=$enable_dlopen
26067 # Whether dlopen of programs is supported.
26068 dlopen_self=$enable_dlopen_self
26070 # Whether dlopen of statically linked programs is supported.
26071 dlopen_self_static=$enable_dlopen_self_static
26073 # Compiler flag to prevent dynamic linking.
26074 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26076 # Compiler flag to turn off builtin functions.
26077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26079 # Compiler flag to allow reflexive dlopens.
26080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26082 # Compiler flag to generate shared objects directly from archives.
26083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26085 # Compiler flag to generate thread-safe objects.
26086 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26088 # Library versioning type.
26089 version_type=$version_type
26091 # Format of library name prefix.
26092 libname_spec=$lt_libname_spec
26094 # List of archive names. First name is the real one, the rest are links.
26095 # The last name is the one that the linker finds with -lNAME.
26096 library_names_spec=$lt_library_names_spec
26098 # The coded name of the library, if different from the real name.
26099 soname_spec=$lt_soname_spec
26101 # Commands used to build and install an old-style archive.
26102 RANLIB=$lt_RANLIB
26103 old_archive_cmds=$lt_old_archive_cmds_GCJ
26104 old_postinstall_cmds=$lt_old_postinstall_cmds
26105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26107 # Create an old-style archive from a shared archive.
26108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26110 # Create a temporary old-style archive to link instead of a shared archive.
26111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26113 # Commands used to build and install a shared archive.
26114 archive_cmds=$lt_archive_cmds_GCJ
26115 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26116 postinstall_cmds=$lt_postinstall_cmds
26117 postuninstall_cmds=$lt_postuninstall_cmds
26119 # Commands used to build a loadable module (assumed same as above if empty)
26120 module_cmds=$lt_module_cmds_GCJ
26121 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26123 # Commands to strip libraries.
26124 old_striplib=$lt_old_striplib
26125 striplib=$lt_striplib
26127 # Dependencies to place before the objects being linked to create a
26128 # shared library.
26129 predep_objects=$lt_predep_objects_GCJ
26131 # Dependencies to place after the objects being linked to create a
26132 # shared library.
26133 postdep_objects=$lt_postdep_objects_GCJ
26135 # Dependencies to place before the objects being linked to create a
26136 # shared library.
26137 predeps=$lt_predeps_GCJ
26139 # Dependencies to place after the objects being linked to create a
26140 # shared library.
26141 postdeps=$lt_postdeps_GCJ
26143 # The library search path used internally by the compiler when linking
26144 # a shared library.
26145 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26147 # Method to check whether dependent libraries are shared objects.
26148 deplibs_check_method=$lt_deplibs_check_method
26150 # Command to use when deplibs_check_method == file_magic.
26151 file_magic_cmd=$lt_file_magic_cmd
26153 # Flag that allows shared libraries with undefined symbols to be built.
26154 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26156 # Flag that forces no undefined symbols.
26157 no_undefined_flag=$lt_no_undefined_flag_GCJ
26159 # Commands used to finish a libtool library installation in a directory.
26160 finish_cmds=$lt_finish_cmds
26162 # Same as above, but a single script fragment to be evaled but not shown.
26163 finish_eval=$lt_finish_eval
26165 # Take the output of nm and produce a listing of raw symbols and C names.
26166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26168 # Transform the output of nm in a proper C declaration
26169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26171 # Transform the output of nm in a C name address pair
26172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26174 # This is the shared library runtime path variable.
26175 runpath_var=$runpath_var
26177 # This is the shared library path variable.
26178 shlibpath_var=$shlibpath_var
26180 # Is shlibpath searched before the hard-coded library search path?
26181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26183 # How to hardcode a shared library path into an executable.
26184 hardcode_action=$hardcode_action_GCJ
26186 # Whether we should hardcode library paths into libraries.
26187 hardcode_into_libs=$hardcode_into_libs
26189 # Flag to hardcode \$libdir into a binary during linking.
26190 # This must work even if \$libdir does not exist.
26191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26193 # If ld is used when linking, flag to hardcode \$libdir into
26194 # a binary during linking. This must work even if \$libdir does
26195 # not exist.
26196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26198 # Whether we need a single -rpath flag with a separated argument.
26199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26202 # resulting binary.
26203 hardcode_direct=$hardcode_direct_GCJ
26205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26206 # resulting binary.
26207 hardcode_minus_L=$hardcode_minus_L_GCJ
26209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26210 # the resulting binary.
26211 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26213 # Set to yes if building a shared library automatically hardcodes DIR into the library
26214 # and all subsequent libraries and executables linked against it.
26215 hardcode_automatic=$hardcode_automatic_GCJ
26217 # Variables whose values should be saved in libtool wrapper scripts and
26218 # restored at relink time.
26219 variables_saved_for_relink="$variables_saved_for_relink"
26221 # Whether libtool must link a program against all its dependency libraries.
26222 link_all_deplibs=$link_all_deplibs_GCJ
26224 # Compile-time system search path for libraries
26225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26227 # Run-time system search path for libraries
26228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26230 # Fix the shell variable \$srcfile for the compiler.
26231 fix_srcfile_path="$fix_srcfile_path_GCJ"
26233 # Set to yes if exported symbols are required.
26234 always_export_symbols=$always_export_symbols_GCJ
26236 # The commands to list exported symbols.
26237 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26239 # The commands to extract the exported symbol list from a shared archive.
26240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26242 # Symbols that should not be listed in the preloaded symbols.
26243 exclude_expsyms=$lt_exclude_expsyms_GCJ
26245 # Symbols that must always be exported.
26246 include_expsyms=$lt_include_expsyms_GCJ
26248 # ### END LIBTOOL TAG CONFIG: $tagname
26250 __EOF__
26253 else
26254 # If there is no Makefile yet, we rely on a make rule to execute
26255 # `config.status --recheck' to rerun these tests and create the
26256 # libtool script then.
26257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26258 if test -f "$ltmain_in"; then
26259 test -f Makefile && make "$ltmain"
26264 ac_ext=c
26265 ac_cpp='$CPP $CPPFLAGS'
26266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26270 CC="$lt_save_CC"
26272 else
26273 tagname=""
26278 ac_ext=c
26279 ac_cpp='$CPP $CPPFLAGS'
26280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26285 # Source file extension for RC test sources.
26286 ac_ext=rc
26288 # Object file extension for compiled RC test sources.
26289 objext=o
26290 objext_RC=$objext
26292 # Code to be used in simple compile tests
26293 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26295 # Code to be used in simple link tests
26296 lt_simple_link_test_code="$lt_simple_compile_test_code"
26298 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26300 # If no C compiler was specified, use CC.
26301 LTCC=${LTCC-"$CC"}
26303 # If no C compiler flags were specified, use CFLAGS.
26304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26306 # Allow CC to be a program name with arguments.
26307 compiler=$CC
26310 # save warnings/boilerplate of simple test code
26311 ac_outfile=conftest.$ac_objext
26312 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26314 _lt_compiler_boilerplate=`cat conftest.err`
26315 $rm conftest*
26317 ac_outfile=conftest.$ac_objext
26318 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26320 _lt_linker_boilerplate=`cat conftest.err`
26321 $rm conftest*
26324 # Allow CC to be a program name with arguments.
26325 lt_save_CC="$CC"
26326 CC=${RC-"windres"}
26327 compiler=$CC
26328 compiler_RC=$CC
26329 for cc_temp in $compiler""; do
26330 case $cc_temp in
26331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26333 \-*) ;;
26334 *) break;;
26335 esac
26336 done
26337 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26339 lt_cv_prog_compiler_c_o_RC=yes
26341 # The else clause should only fire when bootstrapping the
26342 # libtool distribution, otherwise you forgot to ship ltmain.sh
26343 # with your package, and you will get complaints that there are
26344 # no rules to generate ltmain.sh.
26345 if test -f "$ltmain"; then
26346 # See if we are running on zsh, and set the options which allow our commands through
26347 # without removal of \ escapes.
26348 if test -n "${ZSH_VERSION+set}" ; then
26349 setopt NO_GLOB_SUBST
26351 # Now quote all the things that may contain metacharacters while being
26352 # careful not to overquote the AC_SUBSTed values. We take copies of the
26353 # variables and quote the copies for generation of the libtool script.
26354 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26355 SED SHELL STRIP \
26356 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26357 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26358 deplibs_check_method reload_flag reload_cmds need_locks \
26359 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26360 lt_cv_sys_global_symbol_to_c_name_address \
26361 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26362 old_postinstall_cmds old_postuninstall_cmds \
26363 compiler_RC \
26364 CC_RC \
26365 LD_RC \
26366 lt_prog_compiler_wl_RC \
26367 lt_prog_compiler_pic_RC \
26368 lt_prog_compiler_static_RC \
26369 lt_prog_compiler_no_builtin_flag_RC \
26370 export_dynamic_flag_spec_RC \
26371 thread_safe_flag_spec_RC \
26372 whole_archive_flag_spec_RC \
26373 enable_shared_with_static_runtimes_RC \
26374 old_archive_cmds_RC \
26375 old_archive_from_new_cmds_RC \
26376 predep_objects_RC \
26377 postdep_objects_RC \
26378 predeps_RC \
26379 postdeps_RC \
26380 compiler_lib_search_path_RC \
26381 archive_cmds_RC \
26382 archive_expsym_cmds_RC \
26383 postinstall_cmds_RC \
26384 postuninstall_cmds_RC \
26385 old_archive_from_expsyms_cmds_RC \
26386 allow_undefined_flag_RC \
26387 no_undefined_flag_RC \
26388 export_symbols_cmds_RC \
26389 hardcode_libdir_flag_spec_RC \
26390 hardcode_libdir_flag_spec_ld_RC \
26391 hardcode_libdir_separator_RC \
26392 hardcode_automatic_RC \
26393 module_cmds_RC \
26394 module_expsym_cmds_RC \
26395 lt_cv_prog_compiler_c_o_RC \
26396 exclude_expsyms_RC \
26397 include_expsyms_RC; do
26399 case $var in
26400 old_archive_cmds_RC | \
26401 old_archive_from_new_cmds_RC | \
26402 archive_cmds_RC | \
26403 archive_expsym_cmds_RC | \
26404 module_cmds_RC | \
26405 module_expsym_cmds_RC | \
26406 old_archive_from_expsyms_cmds_RC | \
26407 export_symbols_cmds_RC | \
26408 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26409 postinstall_cmds | postuninstall_cmds | \
26410 old_postinstall_cmds | old_postuninstall_cmds | \
26411 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26412 # Double-quote double-evaled strings.
26413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26416 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26418 esac
26419 done
26421 case $lt_echo in
26422 *'\$0 --fallback-echo"')
26423 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26425 esac
26427 cfgfile="$ofile"
26429 cat <<__EOF__ >> "$cfgfile"
26430 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26432 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26434 # Shell to use when invoking shell scripts.
26435 SHELL=$lt_SHELL
26437 # Whether or not to build shared libraries.
26438 build_libtool_libs=$enable_shared
26440 # Whether or not to build static libraries.
26441 build_old_libs=$enable_static
26443 # Whether or not to add -lc for building shared libraries.
26444 build_libtool_need_lc=$archive_cmds_need_lc_RC
26446 # Whether or not to disallow shared libs when runtime libs are static
26447 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26449 # Whether or not to optimize for fast installation.
26450 fast_install=$enable_fast_install
26452 # The host system.
26453 host_alias=$host_alias
26454 host=$host
26455 host_os=$host_os
26457 # The build system.
26458 build_alias=$build_alias
26459 build=$build
26460 build_os=$build_os
26462 # An echo program that does not interpret backslashes.
26463 echo=$lt_echo
26465 # The archiver.
26466 AR=$lt_AR
26467 AR_FLAGS=$lt_AR_FLAGS
26469 # A C compiler.
26470 LTCC=$lt_LTCC
26472 # LTCC compiler flags.
26473 LTCFLAGS=$lt_LTCFLAGS
26475 # A language-specific compiler.
26476 CC=$lt_compiler_RC
26478 # Is the compiler the GNU C compiler?
26479 with_gcc=$GCC_RC
26481 # An ERE matcher.
26482 EGREP=$lt_EGREP
26484 # The linker used to build libraries.
26485 LD=$lt_LD_RC
26487 # Whether we need hard or soft links.
26488 LN_S=$lt_LN_S
26490 # A BSD-compatible nm program.
26491 NM=$lt_NM
26493 # A symbol stripping program
26494 STRIP=$lt_STRIP
26496 # Used to examine libraries when file_magic_cmd begins "file"
26497 MAGIC_CMD=$MAGIC_CMD
26499 # Used on cygwin: DLL creation program.
26500 DLLTOOL="$DLLTOOL"
26502 # Used on cygwin: object dumper.
26503 OBJDUMP="$OBJDUMP"
26505 # Used on cygwin: assembler.
26506 AS="$AS"
26508 # The name of the directory that contains temporary libtool files.
26509 objdir=$objdir
26511 # How to create reloadable object files.
26512 reload_flag=$lt_reload_flag
26513 reload_cmds=$lt_reload_cmds
26515 # How to pass a linker flag through the compiler.
26516 wl=$lt_lt_prog_compiler_wl_RC
26518 # Object file suffix (normally "o").
26519 objext="$ac_objext"
26521 # Old archive suffix (normally "a").
26522 libext="$libext"
26524 # Shared library suffix (normally ".so").
26525 shrext_cmds='$shrext_cmds'
26527 # Executable file suffix (normally "").
26528 exeext="$exeext"
26530 # Additional compiler flags for building library objects.
26531 pic_flag=$lt_lt_prog_compiler_pic_RC
26532 pic_mode=$pic_mode
26534 # What is the maximum length of a command?
26535 max_cmd_len=$lt_cv_sys_max_cmd_len
26537 # Does compiler simultaneously support -c and -o options?
26538 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26540 # Must we lock files when doing compilation?
26541 need_locks=$lt_need_locks
26543 # Do we need the lib prefix for modules?
26544 need_lib_prefix=$need_lib_prefix
26546 # Do we need a version for libraries?
26547 need_version=$need_version
26549 # Whether dlopen is supported.
26550 dlopen_support=$enable_dlopen
26552 # Whether dlopen of programs is supported.
26553 dlopen_self=$enable_dlopen_self
26555 # Whether dlopen of statically linked programs is supported.
26556 dlopen_self_static=$enable_dlopen_self_static
26558 # Compiler flag to prevent dynamic linking.
26559 link_static_flag=$lt_lt_prog_compiler_static_RC
26561 # Compiler flag to turn off builtin functions.
26562 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26564 # Compiler flag to allow reflexive dlopens.
26565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26567 # Compiler flag to generate shared objects directly from archives.
26568 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26570 # Compiler flag to generate thread-safe objects.
26571 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26573 # Library versioning type.
26574 version_type=$version_type
26576 # Format of library name prefix.
26577 libname_spec=$lt_libname_spec
26579 # List of archive names. First name is the real one, the rest are links.
26580 # The last name is the one that the linker finds with -lNAME.
26581 library_names_spec=$lt_library_names_spec
26583 # The coded name of the library, if different from the real name.
26584 soname_spec=$lt_soname_spec
26586 # Commands used to build and install an old-style archive.
26587 RANLIB=$lt_RANLIB
26588 old_archive_cmds=$lt_old_archive_cmds_RC
26589 old_postinstall_cmds=$lt_old_postinstall_cmds
26590 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26592 # Create an old-style archive from a shared archive.
26593 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26595 # Create a temporary old-style archive to link instead of a shared archive.
26596 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26598 # Commands used to build and install a shared archive.
26599 archive_cmds=$lt_archive_cmds_RC
26600 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26601 postinstall_cmds=$lt_postinstall_cmds
26602 postuninstall_cmds=$lt_postuninstall_cmds
26604 # Commands used to build a loadable module (assumed same as above if empty)
26605 module_cmds=$lt_module_cmds_RC
26606 module_expsym_cmds=$lt_module_expsym_cmds_RC
26608 # Commands to strip libraries.
26609 old_striplib=$lt_old_striplib
26610 striplib=$lt_striplib
26612 # Dependencies to place before the objects being linked to create a
26613 # shared library.
26614 predep_objects=$lt_predep_objects_RC
26616 # Dependencies to place after the objects being linked to create a
26617 # shared library.
26618 postdep_objects=$lt_postdep_objects_RC
26620 # Dependencies to place before the objects being linked to create a
26621 # shared library.
26622 predeps=$lt_predeps_RC
26624 # Dependencies to place after the objects being linked to create a
26625 # shared library.
26626 postdeps=$lt_postdeps_RC
26628 # The library search path used internally by the compiler when linking
26629 # a shared library.
26630 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26632 # Method to check whether dependent libraries are shared objects.
26633 deplibs_check_method=$lt_deplibs_check_method
26635 # Command to use when deplibs_check_method == file_magic.
26636 file_magic_cmd=$lt_file_magic_cmd
26638 # Flag that allows shared libraries with undefined symbols to be built.
26639 allow_undefined_flag=$lt_allow_undefined_flag_RC
26641 # Flag that forces no undefined symbols.
26642 no_undefined_flag=$lt_no_undefined_flag_RC
26644 # Commands used to finish a libtool library installation in a directory.
26645 finish_cmds=$lt_finish_cmds
26647 # Same as above, but a single script fragment to be evaled but not shown.
26648 finish_eval=$lt_finish_eval
26650 # Take the output of nm and produce a listing of raw symbols and C names.
26651 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26653 # Transform the output of nm in a proper C declaration
26654 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26656 # Transform the output of nm in a C name address pair
26657 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26659 # This is the shared library runtime path variable.
26660 runpath_var=$runpath_var
26662 # This is the shared library path variable.
26663 shlibpath_var=$shlibpath_var
26665 # Is shlibpath searched before the hard-coded library search path?
26666 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26668 # How to hardcode a shared library path into an executable.
26669 hardcode_action=$hardcode_action_RC
26671 # Whether we should hardcode library paths into libraries.
26672 hardcode_into_libs=$hardcode_into_libs
26674 # Flag to hardcode \$libdir into a binary during linking.
26675 # This must work even if \$libdir does not exist.
26676 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26678 # If ld is used when linking, flag to hardcode \$libdir into
26679 # a binary during linking. This must work even if \$libdir does
26680 # not exist.
26681 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26683 # Whether we need a single -rpath flag with a separated argument.
26684 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26686 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26687 # resulting binary.
26688 hardcode_direct=$hardcode_direct_RC
26690 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26691 # resulting binary.
26692 hardcode_minus_L=$hardcode_minus_L_RC
26694 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26695 # the resulting binary.
26696 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26698 # Set to yes if building a shared library automatically hardcodes DIR into the library
26699 # and all subsequent libraries and executables linked against it.
26700 hardcode_automatic=$hardcode_automatic_RC
26702 # Variables whose values should be saved in libtool wrapper scripts and
26703 # restored at relink time.
26704 variables_saved_for_relink="$variables_saved_for_relink"
26706 # Whether libtool must link a program against all its dependency libraries.
26707 link_all_deplibs=$link_all_deplibs_RC
26709 # Compile-time system search path for libraries
26710 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26712 # Run-time system search path for libraries
26713 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26715 # Fix the shell variable \$srcfile for the compiler.
26716 fix_srcfile_path="$fix_srcfile_path_RC"
26718 # Set to yes if exported symbols are required.
26719 always_export_symbols=$always_export_symbols_RC
26721 # The commands to list exported symbols.
26722 export_symbols_cmds=$lt_export_symbols_cmds_RC
26724 # The commands to extract the exported symbol list from a shared archive.
26725 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26727 # Symbols that should not be listed in the preloaded symbols.
26728 exclude_expsyms=$lt_exclude_expsyms_RC
26730 # Symbols that must always be exported.
26731 include_expsyms=$lt_include_expsyms_RC
26733 # ### END LIBTOOL TAG CONFIG: $tagname
26735 __EOF__
26738 else
26739 # If there is no Makefile yet, we rely on a make rule to execute
26740 # `config.status --recheck' to rerun these tests and create the
26741 # libtool script then.
26742 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26743 if test -f "$ltmain_in"; then
26744 test -f Makefile && make "$ltmain"
26749 ac_ext=c
26750 ac_cpp='$CPP $CPPFLAGS'
26751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26755 CC="$lt_save_CC"
26760 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26761 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26762 { (exit 1); exit 1; }; }
26764 esac
26766 # Append the new tag name to the list of available tags.
26767 if test -n "$tagname" ; then
26768 available_tags="$available_tags $tagname"
26771 done
26772 IFS="$lt_save_ifs"
26774 # Now substitute the updated list of available tags.
26775 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26776 mv "${ofile}T" "$ofile"
26777 chmod +x "$ofile"
26778 else
26779 rm -f "${ofile}T"
26780 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26781 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26782 { (exit 1); exit 1; }; }
26788 # This can be used to rebuild libtool when needed
26789 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26791 # Always use our own libtool.
26792 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26794 # Prevent multiple expansion
26816 if test "$lt_cv_dlopen_self" = "yes" ; then
26818 cat >>confdefs.h <<\_ACEOF
26819 #define CAN_DLOPEN_SELF 1
26820 _ACEOF
26824 if test "$WITH_LLVMGCCDIR" = "default" ; then
26825 LLVMGCC="llvm-gcc${EXEEXT}"
26826 LLVMGXX="llvm-g++${EXEEXT}"
26827 LLVMGCCCOMMAND="$LLVMGCC"
26828 LLVMGXXCOMMAND="$LLVMGXX"
26830 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26832 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26834 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26835 set dummy $LLVMGCC; ac_word=$2
26836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26838 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26839 echo $ECHO_N "(cached) $ECHO_C" >&6
26840 else
26841 case $LLVMGCC in
26842 [\\/]* | ?:[\\/]*)
26843 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26847 for as_dir in $PATH
26849 IFS=$as_save_IFS
26850 test -z "$as_dir" && as_dir=.
26851 for ac_exec_ext in '' $ac_executable_extensions; do
26852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26853 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26855 break 2
26857 done
26858 done
26859 IFS=$as_save_IFS
26862 esac
26864 LLVMGCC=$ac_cv_path_LLVMGCC
26865 if test -n "$LLVMGCC"; then
26866 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26867 echo "${ECHO_T}$LLVMGCC" >&6; }
26868 else
26869 { echo "$as_me:$LINENO: result: no" >&5
26870 echo "${ECHO_T}no" >&6; }
26874 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26875 set dummy $LLVMGXX; ac_word=$2
26876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26878 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26880 else
26881 case $LLVMGXX in
26882 [\\/]* | ?:[\\/]*)
26883 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26887 for as_dir in $PATH
26889 IFS=$as_save_IFS
26890 test -z "$as_dir" && as_dir=.
26891 for ac_exec_ext in '' $ac_executable_extensions; do
26892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26893 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26895 break 2
26897 done
26898 done
26899 IFS=$as_save_IFS
26902 esac
26904 LLVMGXX=$ac_cv_path_LLVMGXX
26905 if test -n "$LLVMGXX"; then
26906 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26907 echo "${ECHO_T}$LLVMGXX" >&6; }
26908 else
26909 { echo "$as_me:$LINENO: result: no" >&5
26910 echo "${ECHO_T}no" >&6; }
26914 else
26915 if test -z "$LLVMGCC"; then
26916 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26917 LLVMGCCCOMMAND="$LLVMGCC"
26919 if test -z "$LLVMGXX"; then
26920 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26921 LLVMGXXCOMMAND="$LLVMGXX"
26924 LLVMGCC=$LLVMGCC
26926 LLVMGXX=$LLVMGXX
26928 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26930 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26935 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26936 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26938 ICC=no
26939 IXX=no
26940 case $CC in
26941 icc*|icpc*)
26942 ICC=yes
26943 IXX=yes
26947 esac
26949 if test "$GCC" != "yes" && test "$ICC" != "yes"
26950 then
26951 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26952 echo "$as_me: error: gcc|icc required but not found" >&2;}
26953 { (exit 1); exit 1; }; }
26956 if test "$GXX" != "yes" && test "$IXX" != "yes"
26957 then
26958 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26959 echo "$as_me: error: g++|icc required but not found" >&2;}
26960 { (exit 1); exit 1; }; }
26963 if test "$GCC" = "yes"
26964 then
26965 cat >conftest.$ac_ext <<_ACEOF
26966 #if !defined(__GNUC__) || __GNUC__ < 3
26967 #error Unsupported GCC version
26968 #endif
26970 _ACEOF
26971 rm -f conftest.$ac_objext
26972 if { (ac_try="$ac_compile"
26973 case "(($ac_try" in
26974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975 *) ac_try_echo=$ac_try;;
26976 esac
26977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978 (eval "$ac_compile") 2>conftest.er1
26979 ac_status=$?
26980 grep -v '^ *+' conftest.er1 >conftest.err
26981 rm -f conftest.er1
26982 cat conftest.err >&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); } &&
26985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26986 { (case "(($ac_try" in
26987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26988 *) ac_try_echo=$ac_try;;
26989 esac
26990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991 (eval "$ac_try") 2>&5
26992 ac_status=$?
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); }; } &&
26995 { ac_try='test -s conftest.$ac_objext'
26996 { (case "(($ac_try" in
26997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998 *) ac_try_echo=$ac_try;;
26999 esac
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001 (eval "$ac_try") 2>&5
27002 ac_status=$?
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; }; then
27006 else
27007 echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27010 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27011 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27012 { (exit 1); exit 1; }; }
27015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27018 if test -z "$llvm_cv_gnu_make_command"
27019 then
27020 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27021 echo "$as_me: error: GNU Make required but not found" >&2;}
27022 { (exit 1); exit 1; }; }
27025 { echo "$as_me:$LINENO: result: ok" >&5
27026 echo "${ECHO_T}ok" >&6; }
27030 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27031 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27032 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27034 else
27035 ac_check_lib_save_LIBS=$LIBS
27036 LIBS="-lelf $LIBS"
27037 cat >conftest.$ac_ext <<_ACEOF
27038 /* confdefs.h. */
27039 _ACEOF
27040 cat confdefs.h >>conftest.$ac_ext
27041 cat >>conftest.$ac_ext <<_ACEOF
27042 /* end confdefs.h. */
27044 /* Override any GCC internal prototype to avoid an error.
27045 Use char because int might match the return type of a GCC
27046 builtin and then its argument prototype would still apply. */
27047 #ifdef __cplusplus
27048 extern "C"
27049 #endif
27050 char elf_begin ();
27052 main ()
27054 return elf_begin ();
27056 return 0;
27058 _ACEOF
27059 rm -f conftest.$ac_objext conftest$ac_exeext
27060 if { (ac_try="$ac_link"
27061 case "(($ac_try" in
27062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063 *) ac_try_echo=$ac_try;;
27064 esac
27065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066 (eval "$ac_link") 2>conftest.er1
27067 ac_status=$?
27068 grep -v '^ *+' conftest.er1 >conftest.err
27069 rm -f conftest.er1
27070 cat conftest.err >&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } &&
27073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27074 { (case "(($ac_try" in
27075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076 *) ac_try_echo=$ac_try;;
27077 esac
27078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079 (eval "$ac_try") 2>&5
27080 ac_status=$?
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest$ac_exeext'
27084 { (case "(($ac_try" in
27085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086 *) ac_try_echo=$ac_try;;
27087 esac
27088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089 (eval "$ac_try") 2>&5
27090 ac_status=$?
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; }; then
27093 ac_cv_lib_elf_elf_begin=yes
27094 else
27095 echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27098 ac_cv_lib_elf_elf_begin=no
27101 rm -f core conftest.err conftest.$ac_objext \
27102 conftest$ac_exeext conftest.$ac_ext
27103 LIBS=$ac_check_lib_save_LIBS
27105 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27106 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27107 if test $ac_cv_lib_elf_elf_begin = yes; then
27108 cat >>confdefs.h <<_ACEOF
27109 #define HAVE_LIBELF 1
27110 _ACEOF
27112 LIBS="-lelf $LIBS"
27117 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27118 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27119 if test "${ac_cv_lib_m_sin+set}" = set; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27121 else
27122 ac_check_lib_save_LIBS=$LIBS
27123 LIBS="-lm $LIBS"
27124 cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h. */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27131 /* Override any GCC internal prototype to avoid an error.
27132 Use char because int might match the return type of a GCC
27133 builtin and then its argument prototype would still apply. */
27134 #ifdef __cplusplus
27135 extern "C"
27136 #endif
27137 char sin ();
27139 main ()
27141 return sin ();
27143 return 0;
27145 _ACEOF
27146 rm -f conftest.$ac_objext conftest$ac_exeext
27147 if { (ac_try="$ac_link"
27148 case "(($ac_try" in
27149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27150 *) ac_try_echo=$ac_try;;
27151 esac
27152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27153 (eval "$ac_link") 2>conftest.er1
27154 ac_status=$?
27155 grep -v '^ *+' conftest.er1 >conftest.err
27156 rm -f conftest.er1
27157 cat conftest.err >&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); } &&
27160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27161 { (case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27164 esac
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_try") 2>&5
27167 ac_status=$?
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); }; } &&
27170 { ac_try='test -s conftest$ac_exeext'
27171 { (case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_try") 2>&5
27177 ac_status=$?
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; }; then
27180 ac_cv_lib_m_sin=yes
27181 else
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 ac_cv_lib_m_sin=no
27188 rm -f core conftest.err conftest.$ac_objext \
27189 conftest$ac_exeext conftest.$ac_ext
27190 LIBS=$ac_check_lib_save_LIBS
27192 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27193 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27194 if test $ac_cv_lib_m_sin = yes; then
27195 cat >>confdefs.h <<_ACEOF
27196 #define HAVE_LIBM 1
27197 _ACEOF
27199 LIBS="-lm $LIBS"
27203 if test "$llvm_cv_os_type" = "MingW" ; then
27205 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27206 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27207 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209 else
27210 ac_check_lib_save_LIBS=$LIBS
27211 LIBS="-limagehlp $LIBS"
27212 cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h. */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27221 main ()
27223 return main ();
27225 return 0;
27227 _ACEOF
27228 rm -f conftest.$ac_objext conftest$ac_exeext
27229 if { (ac_try="$ac_link"
27230 case "(($ac_try" in
27231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232 *) ac_try_echo=$ac_try;;
27233 esac
27234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27235 (eval "$ac_link") 2>conftest.er1
27236 ac_status=$?
27237 grep -v '^ *+' conftest.er1 >conftest.err
27238 rm -f conftest.er1
27239 cat conftest.err >&5
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } &&
27242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27243 { (case "(($ac_try" in
27244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245 *) ac_try_echo=$ac_try;;
27246 esac
27247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27248 (eval "$ac_try") 2>&5
27249 ac_status=$?
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); }; } &&
27252 { ac_try='test -s conftest$ac_exeext'
27253 { (case "(($ac_try" in
27254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27255 *) ac_try_echo=$ac_try;;
27256 esac
27257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27258 (eval "$ac_try") 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 ac_cv_lib_imagehlp_main=yes
27263 else
27264 echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 ac_cv_lib_imagehlp_main=no
27270 rm -f core conftest.err conftest.$ac_objext \
27271 conftest$ac_exeext conftest.$ac_ext
27272 LIBS=$ac_check_lib_save_LIBS
27274 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27275 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27276 if test $ac_cv_lib_imagehlp_main = yes; then
27277 cat >>confdefs.h <<_ACEOF
27278 #define HAVE_LIBIMAGEHLP 1
27279 _ACEOF
27281 LIBS="-limagehlp $LIBS"
27286 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27287 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27288 if test "${ac_cv_lib_psapi_main+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27290 else
27291 ac_check_lib_save_LIBS=$LIBS
27292 LIBS="-lpsapi $LIBS"
27293 cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h. */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h. */
27302 main ()
27304 return main ();
27306 return 0;
27308 _ACEOF
27309 rm -f conftest.$ac_objext conftest$ac_exeext
27310 if { (ac_try="$ac_link"
27311 case "(($ac_try" in
27312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313 *) ac_try_echo=$ac_try;;
27314 esac
27315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316 (eval "$ac_link") 2>conftest.er1
27317 ac_status=$?
27318 grep -v '^ *+' conftest.er1 >conftest.err
27319 rm -f conftest.er1
27320 cat conftest.err >&5
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); } &&
27323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27324 { (case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27327 esac
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_try") 2>&5
27330 ac_status=$?
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; } &&
27333 { ac_try='test -s conftest$ac_exeext'
27334 { (case "(($ac_try" in
27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336 *) ac_try_echo=$ac_try;;
27337 esac
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339 (eval "$ac_try") 2>&5
27340 ac_status=$?
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); }; }; then
27343 ac_cv_lib_psapi_main=yes
27344 else
27345 echo "$as_me: failed program was:" >&5
27346 sed 's/^/| /' conftest.$ac_ext >&5
27348 ac_cv_lib_psapi_main=no
27351 rm -f core conftest.err conftest.$ac_objext \
27352 conftest$ac_exeext conftest.$ac_ext
27353 LIBS=$ac_check_lib_save_LIBS
27355 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27356 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27357 if test $ac_cv_lib_psapi_main = yes; then
27358 cat >>confdefs.h <<_ACEOF
27359 #define HAVE_LIBPSAPI 1
27360 _ACEOF
27362 LIBS="-lpsapi $LIBS"
27368 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27369 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27370 if test "${ac_cv_search_dlopen+set}" = set; then
27371 echo $ECHO_N "(cached) $ECHO_C" >&6
27372 else
27373 ac_func_search_save_LIBS=$LIBS
27374 cat >conftest.$ac_ext <<_ACEOF
27375 /* confdefs.h. */
27376 _ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27381 /* Override any GCC internal prototype to avoid an error.
27382 Use char because int might match the return type of a GCC
27383 builtin and then its argument prototype would still apply. */
27384 #ifdef __cplusplus
27385 extern "C"
27386 #endif
27387 char dlopen ();
27389 main ()
27391 return dlopen ();
27393 return 0;
27395 _ACEOF
27396 for ac_lib in '' dl; do
27397 if test -z "$ac_lib"; then
27398 ac_res="none required"
27399 else
27400 ac_res=-l$ac_lib
27401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27403 rm -f conftest.$ac_objext conftest$ac_exeext
27404 if { (ac_try="$ac_link"
27405 case "(($ac_try" in
27406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407 *) ac_try_echo=$ac_try;;
27408 esac
27409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410 (eval "$ac_link") 2>conftest.er1
27411 ac_status=$?
27412 grep -v '^ *+' conftest.er1 >conftest.err
27413 rm -f conftest.er1
27414 cat conftest.err >&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); } &&
27417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27418 { (case "(($ac_try" in
27419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420 *) ac_try_echo=$ac_try;;
27421 esac
27422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423 (eval "$ac_try") 2>&5
27424 ac_status=$?
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); }; } &&
27427 { ac_try='test -s conftest$ac_exeext'
27428 { (case "(($ac_try" in
27429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430 *) ac_try_echo=$ac_try;;
27431 esac
27432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27433 (eval "$ac_try") 2>&5
27434 ac_status=$?
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; }; then
27437 ac_cv_search_dlopen=$ac_res
27438 else
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27445 rm -f core conftest.err conftest.$ac_objext \
27446 conftest$ac_exeext
27447 if test "${ac_cv_search_dlopen+set}" = set; then
27448 break
27450 done
27451 if test "${ac_cv_search_dlopen+set}" = set; then
27453 else
27454 ac_cv_search_dlopen=no
27456 rm conftest.$ac_ext
27457 LIBS=$ac_func_search_save_LIBS
27459 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27460 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27461 ac_res=$ac_cv_search_dlopen
27462 if test "$ac_res" != no; then
27463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27465 cat >>confdefs.h <<\_ACEOF
27466 #define HAVE_DLOPEN 1
27467 _ACEOF
27469 else
27470 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27471 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27475 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27476 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27477 if test "${ac_cv_search_ffi_call+set}" = set; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 else
27480 ac_func_search_save_LIBS=$LIBS
27481 cat >conftest.$ac_ext <<_ACEOF
27482 /* confdefs.h. */
27483 _ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27488 /* Override any GCC internal prototype to avoid an error.
27489 Use char because int might match the return type of a GCC
27490 builtin and then its argument prototype would still apply. */
27491 #ifdef __cplusplus
27492 extern "C"
27493 #endif
27494 char ffi_call ();
27496 main ()
27498 return ffi_call ();
27500 return 0;
27502 _ACEOF
27503 for ac_lib in '' ffi; do
27504 if test -z "$ac_lib"; then
27505 ac_res="none required"
27506 else
27507 ac_res=-l$ac_lib
27508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27515 esac
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_link") 2>conftest.er1
27518 ac_status=$?
27519 grep -v '^ *+' conftest.er1 >conftest.err
27520 rm -f conftest.er1
27521 cat conftest.err >&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } &&
27524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27525 { (case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27528 esac
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_try") 2>&5
27531 ac_status=$?
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; } &&
27534 { ac_try='test -s conftest$ac_exeext'
27535 { (case "(($ac_try" in
27536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537 *) ac_try_echo=$ac_try;;
27538 esac
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540 (eval "$ac_try") 2>&5
27541 ac_status=$?
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); }; }; then
27544 ac_cv_search_ffi_call=$ac_res
27545 else
27546 echo "$as_me: failed program was:" >&5
27547 sed 's/^/| /' conftest.$ac_ext >&5
27552 rm -f core conftest.err conftest.$ac_objext \
27553 conftest$ac_exeext
27554 if test "${ac_cv_search_ffi_call+set}" = set; then
27555 break
27557 done
27558 if test "${ac_cv_search_ffi_call+set}" = set; then
27560 else
27561 ac_cv_search_ffi_call=no
27563 rm conftest.$ac_ext
27564 LIBS=$ac_func_search_save_LIBS
27566 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27567 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27568 ac_res=$ac_cv_search_ffi_call
27569 if test "$ac_res" != no; then
27570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27572 cat >>confdefs.h <<\_ACEOF
27573 #define HAVE_FFI_CALL 1
27574 _ACEOF
27576 else
27577 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27578 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27582 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27583 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27584 if test "${ac_cv_search_mallinfo+set}" = set; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27586 else
27587 ac_func_search_save_LIBS=$LIBS
27588 cat >conftest.$ac_ext <<_ACEOF
27589 /* confdefs.h. */
27590 _ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27595 /* Override any GCC internal prototype to avoid an error.
27596 Use char because int might match the return type of a GCC
27597 builtin and then its argument prototype would still apply. */
27598 #ifdef __cplusplus
27599 extern "C"
27600 #endif
27601 char mallinfo ();
27603 main ()
27605 return mallinfo ();
27607 return 0;
27609 _ACEOF
27610 for ac_lib in '' malloc; do
27611 if test -z "$ac_lib"; then
27612 ac_res="none required"
27613 else
27614 ac_res=-l$ac_lib
27615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27617 rm -f conftest.$ac_objext conftest$ac_exeext
27618 if { (ac_try="$ac_link"
27619 case "(($ac_try" in
27620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621 *) ac_try_echo=$ac_try;;
27622 esac
27623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27624 (eval "$ac_link") 2>conftest.er1
27625 ac_status=$?
27626 grep -v '^ *+' conftest.er1 >conftest.err
27627 rm -f conftest.er1
27628 cat conftest.err >&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); } &&
27631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27632 { (case "(($ac_try" in
27633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634 *) ac_try_echo=$ac_try;;
27635 esac
27636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637 (eval "$ac_try") 2>&5
27638 ac_status=$?
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; } &&
27641 { ac_try='test -s conftest$ac_exeext'
27642 { (case "(($ac_try" in
27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644 *) ac_try_echo=$ac_try;;
27645 esac
27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_try") 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; }; then
27651 ac_cv_search_mallinfo=$ac_res
27652 else
27653 echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27659 rm -f core conftest.err conftest.$ac_objext \
27660 conftest$ac_exeext
27661 if test "${ac_cv_search_mallinfo+set}" = set; then
27662 break
27664 done
27665 if test "${ac_cv_search_mallinfo+set}" = set; then
27667 else
27668 ac_cv_search_mallinfo=no
27670 rm conftest.$ac_ext
27671 LIBS=$ac_func_search_save_LIBS
27673 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27674 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27675 ac_res=$ac_cv_search_mallinfo
27676 if test "$ac_res" != no; then
27677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27679 cat >>confdefs.h <<\_ACEOF
27680 #define HAVE_MALLINFO 1
27681 _ACEOF
27686 if test "$ENABLE_THREADS" -eq 1 ; then
27688 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27689 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27690 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27691 echo $ECHO_N "(cached) $ECHO_C" >&6
27692 else
27693 ac_check_lib_save_LIBS=$LIBS
27694 LIBS="-lpthread $LIBS"
27695 cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h. */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27702 /* Override any GCC internal prototype to avoid an error.
27703 Use char because int might match the return type of a GCC
27704 builtin and then its argument prototype would still apply. */
27705 #ifdef __cplusplus
27706 extern "C"
27707 #endif
27708 char pthread_mutex_init ();
27710 main ()
27712 return pthread_mutex_init ();
27714 return 0;
27716 _ACEOF
27717 rm -f conftest.$ac_objext conftest$ac_exeext
27718 if { (ac_try="$ac_link"
27719 case "(($ac_try" in
27720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721 *) ac_try_echo=$ac_try;;
27722 esac
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724 (eval "$ac_link") 2>conftest.er1
27725 ac_status=$?
27726 grep -v '^ *+' conftest.er1 >conftest.err
27727 rm -f conftest.er1
27728 cat conftest.err >&5
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } &&
27731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27732 { (case "(($ac_try" in
27733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734 *) ac_try_echo=$ac_try;;
27735 esac
27736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737 (eval "$ac_try") 2>&5
27738 ac_status=$?
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); }; } &&
27741 { ac_try='test -s conftest$ac_exeext'
27742 { (case "(($ac_try" in
27743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744 *) ac_try_echo=$ac_try;;
27745 esac
27746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747 (eval "$ac_try") 2>&5
27748 ac_status=$?
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); }; }; then
27751 ac_cv_lib_pthread_pthread_mutex_init=yes
27752 else
27753 echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27756 ac_cv_lib_pthread_pthread_mutex_init=no
27759 rm -f core conftest.err conftest.$ac_objext \
27760 conftest$ac_exeext conftest.$ac_ext
27761 LIBS=$ac_check_lib_save_LIBS
27763 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27764 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27765 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27766 cat >>confdefs.h <<_ACEOF
27767 #define HAVE_LIBPTHREAD 1
27768 _ACEOF
27770 LIBS="-lpthread $LIBS"
27774 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27775 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27776 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27777 echo $ECHO_N "(cached) $ECHO_C" >&6
27778 else
27779 ac_func_search_save_LIBS=$LIBS
27780 cat >conftest.$ac_ext <<_ACEOF
27781 /* confdefs.h. */
27782 _ACEOF
27783 cat confdefs.h >>conftest.$ac_ext
27784 cat >>conftest.$ac_ext <<_ACEOF
27785 /* end confdefs.h. */
27787 /* Override any GCC internal prototype to avoid an error.
27788 Use char because int might match the return type of a GCC
27789 builtin and then its argument prototype would still apply. */
27790 #ifdef __cplusplus
27791 extern "C"
27792 #endif
27793 char pthread_mutex_lock ();
27795 main ()
27797 return pthread_mutex_lock ();
27799 return 0;
27801 _ACEOF
27802 for ac_lib in '' pthread; do
27803 if test -z "$ac_lib"; then
27804 ac_res="none required"
27805 else
27806 ac_res=-l$ac_lib
27807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27809 rm -f conftest.$ac_objext conftest$ac_exeext
27810 if { (ac_try="$ac_link"
27811 case "(($ac_try" in
27812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27813 *) ac_try_echo=$ac_try;;
27814 esac
27815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27816 (eval "$ac_link") 2>conftest.er1
27817 ac_status=$?
27818 grep -v '^ *+' conftest.er1 >conftest.err
27819 rm -f conftest.er1
27820 cat conftest.err >&5
27821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822 (exit $ac_status); } &&
27823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27824 { (case "(($ac_try" in
27825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826 *) ac_try_echo=$ac_try;;
27827 esac
27828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829 (eval "$ac_try") 2>&5
27830 ac_status=$?
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; } &&
27833 { ac_try='test -s conftest$ac_exeext'
27834 { (case "(($ac_try" in
27835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836 *) ac_try_echo=$ac_try;;
27837 esac
27838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27839 (eval "$ac_try") 2>&5
27840 ac_status=$?
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); }; }; then
27843 ac_cv_search_pthread_mutex_lock=$ac_res
27844 else
27845 echo "$as_me: failed program was:" >&5
27846 sed 's/^/| /' conftest.$ac_ext >&5
27851 rm -f core conftest.err conftest.$ac_objext \
27852 conftest$ac_exeext
27853 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27854 break
27856 done
27857 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27859 else
27860 ac_cv_search_pthread_mutex_lock=no
27862 rm conftest.$ac_ext
27863 LIBS=$ac_func_search_save_LIBS
27865 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27866 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27867 ac_res=$ac_cv_search_pthread_mutex_lock
27868 if test "$ac_res" != no; then
27869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27871 cat >>confdefs.h <<\_ACEOF
27872 #define HAVE_PTHREAD_MUTEX_LOCK 1
27873 _ACEOF
27880 # Check whether --with-udis86 was given.
27881 if test "${with_udis86+set}" = set; then
27882 withval=$with_udis86;
27883 USE_UDIS86=1
27885 case "$withval" in
27886 /usr/lib|yes) ;;
27887 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27888 esac
27890 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27891 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27892 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27893 echo $ECHO_N "(cached) $ECHO_C" >&6
27894 else
27895 ac_check_lib_save_LIBS=$LIBS
27896 LIBS="-ludis86 $LIBS"
27897 cat >conftest.$ac_ext <<_ACEOF
27898 /* confdefs.h. */
27899 _ACEOF
27900 cat confdefs.h >>conftest.$ac_ext
27901 cat >>conftest.$ac_ext <<_ACEOF
27902 /* end confdefs.h. */
27904 /* Override any GCC internal prototype to avoid an error.
27905 Use char because int might match the return type of a GCC
27906 builtin and then its argument prototype would still apply. */
27907 #ifdef __cplusplus
27908 extern "C"
27909 #endif
27910 char ud_init ();
27912 main ()
27914 return ud_init ();
27916 return 0;
27918 _ACEOF
27919 rm -f conftest.$ac_objext conftest$ac_exeext
27920 if { (ac_try="$ac_link"
27921 case "(($ac_try" in
27922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27923 *) ac_try_echo=$ac_try;;
27924 esac
27925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27926 (eval "$ac_link") 2>conftest.er1
27927 ac_status=$?
27928 grep -v '^ *+' conftest.er1 >conftest.err
27929 rm -f conftest.er1
27930 cat conftest.err >&5
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); } &&
27933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27934 { (case "(($ac_try" in
27935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936 *) ac_try_echo=$ac_try;;
27937 esac
27938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939 (eval "$ac_try") 2>&5
27940 ac_status=$?
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; } &&
27943 { ac_try='test -s conftest$ac_exeext'
27944 { (case "(($ac_try" in
27945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27946 *) ac_try_echo=$ac_try;;
27947 esac
27948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27949 (eval "$ac_try") 2>&5
27950 ac_status=$?
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; }; then
27953 ac_cv_lib_udis86_ud_init=yes
27954 else
27955 echo "$as_me: failed program was:" >&5
27956 sed 's/^/| /' conftest.$ac_ext >&5
27958 ac_cv_lib_udis86_ud_init=no
27961 rm -f core conftest.err conftest.$ac_objext \
27962 conftest$ac_exeext conftest.$ac_ext
27963 LIBS=$ac_check_lib_save_LIBS
27965 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27966 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27967 if test $ac_cv_lib_udis86_ud_init = yes; then
27968 cat >>confdefs.h <<_ACEOF
27969 #define HAVE_LIBUDIS86 1
27970 _ACEOF
27972 LIBS="-ludis86 $LIBS"
27974 else
27976 echo "Error! You need to have libudis86 around."
27977 exit -1
27982 else
27983 USE_UDIS86=0
27988 cat >>confdefs.h <<_ACEOF
27989 #define USE_UDIS86 $USE_UDIS86
27990 _ACEOF
27999 ac_header_dirent=no
28000 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28001 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28002 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28003 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28005 echo $ECHO_N "(cached) $ECHO_C" >&6
28006 else
28007 cat >conftest.$ac_ext <<_ACEOF
28008 /* confdefs.h. */
28009 _ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h. */
28013 #include <sys/types.h>
28014 #include <$ac_hdr>
28017 main ()
28019 if ((DIR *) 0)
28020 return 0;
28022 return 0;
28024 _ACEOF
28025 rm -f conftest.$ac_objext
28026 if { (ac_try="$ac_compile"
28027 case "(($ac_try" in
28028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029 *) ac_try_echo=$ac_try;;
28030 esac
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032 (eval "$ac_compile") 2>conftest.er1
28033 ac_status=$?
28034 grep -v '^ *+' conftest.er1 >conftest.err
28035 rm -f conftest.er1
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } &&
28039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28040 { (case "(($ac_try" in
28041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042 *) ac_try_echo=$ac_try;;
28043 esac
28044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045 (eval "$ac_try") 2>&5
28046 ac_status=$?
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; } &&
28049 { ac_try='test -s conftest.$ac_objext'
28050 { (case "(($ac_try" in
28051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28052 *) ac_try_echo=$ac_try;;
28053 esac
28054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28055 (eval "$ac_try") 2>&5
28056 ac_status=$?
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; }; then
28059 eval "$as_ac_Header=yes"
28060 else
28061 echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28064 eval "$as_ac_Header=no"
28067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28069 ac_res=`eval echo '${'$as_ac_Header'}'`
28070 { echo "$as_me:$LINENO: result: $ac_res" >&5
28071 echo "${ECHO_T}$ac_res" >&6; }
28072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28073 cat >>confdefs.h <<_ACEOF
28074 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28075 _ACEOF
28077 ac_header_dirent=$ac_hdr; break
28080 done
28081 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28082 if test $ac_header_dirent = dirent.h; then
28083 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28084 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28085 if test "${ac_cv_search_opendir+set}" = set; then
28086 echo $ECHO_N "(cached) $ECHO_C" >&6
28087 else
28088 ac_func_search_save_LIBS=$LIBS
28089 cat >conftest.$ac_ext <<_ACEOF
28090 /* confdefs.h. */
28091 _ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h. */
28096 /* Override any GCC internal prototype to avoid an error.
28097 Use char because int might match the return type of a GCC
28098 builtin and then its argument prototype would still apply. */
28099 #ifdef __cplusplus
28100 extern "C"
28101 #endif
28102 char opendir ();
28104 main ()
28106 return opendir ();
28108 return 0;
28110 _ACEOF
28111 for ac_lib in '' dir; do
28112 if test -z "$ac_lib"; then
28113 ac_res="none required"
28114 else
28115 ac_res=-l$ac_lib
28116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (ac_try="$ac_link"
28120 case "(($ac_try" in
28121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122 *) ac_try_echo=$ac_try;;
28123 esac
28124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125 (eval "$ac_link") 2>conftest.er1
28126 ac_status=$?
28127 grep -v '^ *+' conftest.er1 >conftest.err
28128 rm -f conftest.er1
28129 cat conftest.err >&5
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); } &&
28132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28133 { (case "(($ac_try" in
28134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135 *) ac_try_echo=$ac_try;;
28136 esac
28137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28138 (eval "$ac_try") 2>&5
28139 ac_status=$?
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; } &&
28142 { ac_try='test -s conftest$ac_exeext'
28143 { (case "(($ac_try" in
28144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 *) ac_try_echo=$ac_try;;
28146 esac
28147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 (eval "$ac_try") 2>&5
28149 ac_status=$?
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; }; then
28152 ac_cv_search_opendir=$ac_res
28153 else
28154 echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28160 rm -f core conftest.err conftest.$ac_objext \
28161 conftest$ac_exeext
28162 if test "${ac_cv_search_opendir+set}" = set; then
28163 break
28165 done
28166 if test "${ac_cv_search_opendir+set}" = set; then
28168 else
28169 ac_cv_search_opendir=no
28171 rm conftest.$ac_ext
28172 LIBS=$ac_func_search_save_LIBS
28174 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28175 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28176 ac_res=$ac_cv_search_opendir
28177 if test "$ac_res" != no; then
28178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28182 else
28183 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28184 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28185 if test "${ac_cv_search_opendir+set}" = set; then
28186 echo $ECHO_N "(cached) $ECHO_C" >&6
28187 else
28188 ac_func_search_save_LIBS=$LIBS
28189 cat >conftest.$ac_ext <<_ACEOF
28190 /* confdefs.h. */
28191 _ACEOF
28192 cat confdefs.h >>conftest.$ac_ext
28193 cat >>conftest.$ac_ext <<_ACEOF
28194 /* end confdefs.h. */
28196 /* Override any GCC internal prototype to avoid an error.
28197 Use char because int might match the return type of a GCC
28198 builtin and then its argument prototype would still apply. */
28199 #ifdef __cplusplus
28200 extern "C"
28201 #endif
28202 char opendir ();
28204 main ()
28206 return opendir ();
28208 return 0;
28210 _ACEOF
28211 for ac_lib in '' x; do
28212 if test -z "$ac_lib"; then
28213 ac_res="none required"
28214 else
28215 ac_res=-l$ac_lib
28216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28218 rm -f conftest.$ac_objext conftest$ac_exeext
28219 if { (ac_try="$ac_link"
28220 case "(($ac_try" in
28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28223 esac
28224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225 (eval "$ac_link") 2>conftest.er1
28226 ac_status=$?
28227 grep -v '^ *+' conftest.er1 >conftest.err
28228 rm -f conftest.er1
28229 cat conftest.err >&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); } &&
28232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28233 { (case "(($ac_try" in
28234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28235 *) ac_try_echo=$ac_try;;
28236 esac
28237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28238 (eval "$ac_try") 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; } &&
28242 { ac_try='test -s conftest$ac_exeext'
28243 { (case "(($ac_try" in
28244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28245 *) ac_try_echo=$ac_try;;
28246 esac
28247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28248 (eval "$ac_try") 2>&5
28249 ac_status=$?
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); }; }; then
28252 ac_cv_search_opendir=$ac_res
28253 else
28254 echo "$as_me: failed program was:" >&5
28255 sed 's/^/| /' conftest.$ac_ext >&5
28260 rm -f core conftest.err conftest.$ac_objext \
28261 conftest$ac_exeext
28262 if test "${ac_cv_search_opendir+set}" = set; then
28263 break
28265 done
28266 if test "${ac_cv_search_opendir+set}" = set; then
28268 else
28269 ac_cv_search_opendir=no
28271 rm conftest.$ac_ext
28272 LIBS=$ac_func_search_save_LIBS
28274 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28275 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28276 ac_res=$ac_cv_search_opendir
28277 if test "$ac_res" != no; then
28278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28284 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28285 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28286 if test "${ac_cv_header_mmap_anon+set}" = set; then
28287 echo $ECHO_N "(cached) $ECHO_C" >&6
28288 else
28289 ac_ext=c
28290 ac_cpp='$CPP $CPPFLAGS'
28291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28295 cat >conftest.$ac_ext <<_ACEOF
28296 /* confdefs.h. */
28297 _ACEOF
28298 cat confdefs.h >>conftest.$ac_ext
28299 cat >>conftest.$ac_ext <<_ACEOF
28300 /* end confdefs.h. */
28301 #include <sys/mman.h>
28302 #include <unistd.h>
28303 #include <fcntl.h>
28305 main ()
28307 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28309 return 0;
28311 _ACEOF
28312 rm -f conftest.$ac_objext
28313 if { (ac_try="$ac_compile"
28314 case "(($ac_try" in
28315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316 *) ac_try_echo=$ac_try;;
28317 esac
28318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319 (eval "$ac_compile") 2>conftest.er1
28320 ac_status=$?
28321 grep -v '^ *+' conftest.er1 >conftest.err
28322 rm -f conftest.er1
28323 cat conftest.err >&5
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); } &&
28326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28327 { (case "(($ac_try" in
28328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329 *) ac_try_echo=$ac_try;;
28330 esac
28331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28332 (eval "$ac_try") 2>&5
28333 ac_status=$?
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); }; } &&
28336 { ac_try='test -s conftest.$ac_objext'
28337 { (case "(($ac_try" in
28338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339 *) ac_try_echo=$ac_try;;
28340 esac
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342 (eval "$ac_try") 2>&5
28343 ac_status=$?
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; }; then
28346 ac_cv_header_mmap_anon=yes
28347 else
28348 echo "$as_me: failed program was:" >&5
28349 sed 's/^/| /' conftest.$ac_ext >&5
28351 ac_cv_header_mmap_anon=no
28354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28355 ac_ext=c
28356 ac_cpp='$CPP $CPPFLAGS'
28357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28363 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28364 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28365 if test "$ac_cv_header_mmap_anon" = yes; then
28367 cat >>confdefs.h <<\_ACEOF
28368 #define HAVE_MMAP_ANONYMOUS 1
28369 _ACEOF
28373 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28374 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28375 if test "${ac_cv_header_stat_broken+set}" = set; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28377 else
28378 cat >conftest.$ac_ext <<_ACEOF
28379 /* confdefs.h. */
28380 _ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h. */
28384 #include <sys/types.h>
28385 #include <sys/stat.h>
28387 #if defined S_ISBLK && defined S_IFDIR
28388 # if S_ISBLK (S_IFDIR)
28389 You lose.
28390 # endif
28391 #endif
28393 #if defined S_ISBLK && defined S_IFCHR
28394 # if S_ISBLK (S_IFCHR)
28395 You lose.
28396 # endif
28397 #endif
28399 #if defined S_ISLNK && defined S_IFREG
28400 # if S_ISLNK (S_IFREG)
28401 You lose.
28402 # endif
28403 #endif
28405 #if defined S_ISSOCK && defined S_IFREG
28406 # if S_ISSOCK (S_IFREG)
28407 You lose.
28408 # endif
28409 #endif
28411 _ACEOF
28412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28413 $EGREP "You lose" >/dev/null 2>&1; then
28414 ac_cv_header_stat_broken=yes
28415 else
28416 ac_cv_header_stat_broken=no
28418 rm -f conftest*
28421 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28422 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28423 if test $ac_cv_header_stat_broken = yes; then
28425 cat >>confdefs.h <<\_ACEOF
28426 #define STAT_MACROS_BROKEN 1
28427 _ACEOF
28431 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28432 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28433 if test "${ac_cv_header_stdc+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435 else
28436 cat >conftest.$ac_ext <<_ACEOF
28437 /* confdefs.h. */
28438 _ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h. */
28442 #include <stdlib.h>
28443 #include <stdarg.h>
28444 #include <string.h>
28445 #include <float.h>
28448 main ()
28452 return 0;
28454 _ACEOF
28455 rm -f conftest.$ac_objext
28456 if { (ac_try="$ac_compile"
28457 case "(($ac_try" in
28458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459 *) ac_try_echo=$ac_try;;
28460 esac
28461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462 (eval "$ac_compile") 2>conftest.er1
28463 ac_status=$?
28464 grep -v '^ *+' conftest.er1 >conftest.err
28465 rm -f conftest.er1
28466 cat conftest.err >&5
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); } &&
28469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28470 { (case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28473 esac
28474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475 (eval "$ac_try") 2>&5
28476 ac_status=$?
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); }; } &&
28479 { ac_try='test -s conftest.$ac_objext'
28480 { (case "(($ac_try" in
28481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 *) ac_try_echo=$ac_try;;
28483 esac
28484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485 (eval "$ac_try") 2>&5
28486 ac_status=$?
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; }; then
28489 ac_cv_header_stdc=yes
28490 else
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28494 ac_cv_header_stdc=no
28497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28499 if test $ac_cv_header_stdc = yes; then
28500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28501 cat >conftest.$ac_ext <<_ACEOF
28502 /* confdefs.h. */
28503 _ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h. */
28507 #include <string.h>
28509 _ACEOF
28510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28511 $EGREP "memchr" >/dev/null 2>&1; then
28513 else
28514 ac_cv_header_stdc=no
28516 rm -f conftest*
28520 if test $ac_cv_header_stdc = yes; then
28521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28522 cat >conftest.$ac_ext <<_ACEOF
28523 /* confdefs.h. */
28524 _ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h. */
28528 #include <stdlib.h>
28530 _ACEOF
28531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28532 $EGREP "free" >/dev/null 2>&1; then
28534 else
28535 ac_cv_header_stdc=no
28537 rm -f conftest*
28541 if test $ac_cv_header_stdc = yes; then
28542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28543 if test "$cross_compiling" = yes; then
28545 else
28546 cat >conftest.$ac_ext <<_ACEOF
28547 /* confdefs.h. */
28548 _ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28552 #include <ctype.h>
28553 #include <stdlib.h>
28554 #if ((' ' & 0x0FF) == 0x020)
28555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28557 #else
28558 # define ISLOWER(c) \
28559 (('a' <= (c) && (c) <= 'i') \
28560 || ('j' <= (c) && (c) <= 'r') \
28561 || ('s' <= (c) && (c) <= 'z'))
28562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28563 #endif
28565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28567 main ()
28569 int i;
28570 for (i = 0; i < 256; i++)
28571 if (XOR (islower (i), ISLOWER (i))
28572 || toupper (i) != TOUPPER (i))
28573 return 2;
28574 return 0;
28576 _ACEOF
28577 rm -f conftest$ac_exeext
28578 if { (ac_try="$ac_link"
28579 case "(($ac_try" in
28580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 *) ac_try_echo=$ac_try;;
28582 esac
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_link") 2>&5
28585 ac_status=$?
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28588 { (case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_try") 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
28598 else
28599 echo "$as_me: program exited with status $ac_status" >&5
28600 echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28603 ( exit $ac_status )
28604 ac_cv_header_stdc=no
28606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28612 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28613 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28614 if test $ac_cv_header_stdc = yes; then
28616 cat >>confdefs.h <<\_ACEOF
28617 #define STDC_HEADERS 1
28618 _ACEOF
28622 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28623 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28624 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28625 echo $ECHO_N "(cached) $ECHO_C" >&6
28626 else
28627 cat >conftest.$ac_ext <<_ACEOF
28628 /* confdefs.h. */
28629 _ACEOF
28630 cat confdefs.h >>conftest.$ac_ext
28631 cat >>conftest.$ac_ext <<_ACEOF
28632 /* end confdefs.h. */
28633 #include <sys/types.h>
28634 #include <sys/wait.h>
28635 #ifndef WEXITSTATUS
28636 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28637 #endif
28638 #ifndef WIFEXITED
28639 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28640 #endif
28643 main ()
28645 int s;
28646 wait (&s);
28647 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28649 return 0;
28651 _ACEOF
28652 rm -f conftest.$ac_objext
28653 if { (ac_try="$ac_compile"
28654 case "(($ac_try" in
28655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656 *) ac_try_echo=$ac_try;;
28657 esac
28658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659 (eval "$ac_compile") 2>conftest.er1
28660 ac_status=$?
28661 grep -v '^ *+' conftest.er1 >conftest.err
28662 rm -f conftest.er1
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28667 { (case "(($ac_try" in
28668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 *) ac_try_echo=$ac_try;;
28670 esac
28671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672 (eval "$ac_try") 2>&5
28673 ac_status=$?
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest.$ac_objext'
28677 { (case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28680 esac
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682 (eval "$ac_try") 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 ac_cv_header_sys_wait_h=yes
28687 else
28688 echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28691 ac_cv_header_sys_wait_h=no
28694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28696 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28697 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28698 if test $ac_cv_header_sys_wait_h = yes; then
28700 cat >>confdefs.h <<\_ACEOF
28701 #define HAVE_SYS_WAIT_H 1
28702 _ACEOF
28706 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28707 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28708 if test "${ac_cv_header_time+set}" = set; then
28709 echo $ECHO_N "(cached) $ECHO_C" >&6
28710 else
28711 cat >conftest.$ac_ext <<_ACEOF
28712 /* confdefs.h. */
28713 _ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h. */
28717 #include <sys/types.h>
28718 #include <sys/time.h>
28719 #include <time.h>
28722 main ()
28724 if ((struct tm *) 0)
28725 return 0;
28727 return 0;
28729 _ACEOF
28730 rm -f conftest.$ac_objext
28731 if { (ac_try="$ac_compile"
28732 case "(($ac_try" in
28733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734 *) ac_try_echo=$ac_try;;
28735 esac
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737 (eval "$ac_compile") 2>conftest.er1
28738 ac_status=$?
28739 grep -v '^ *+' conftest.er1 >conftest.err
28740 rm -f conftest.er1
28741 cat conftest.err >&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); } &&
28744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28745 { (case "(($ac_try" in
28746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747 *) ac_try_echo=$ac_try;;
28748 esac
28749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750 (eval "$ac_try") 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; } &&
28754 { ac_try='test -s conftest.$ac_objext'
28755 { (case "(($ac_try" in
28756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 *) ac_try_echo=$ac_try;;
28758 esac
28759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760 (eval "$ac_try") 2>&5
28761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28764 ac_cv_header_time=yes
28765 else
28766 echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28769 ac_cv_header_time=no
28772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28774 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28775 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28776 if test $ac_cv_header_time = yes; then
28778 cat >>confdefs.h <<\_ACEOF
28779 #define TIME_WITH_SYS_TIME 1
28780 _ACEOF
28791 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28798 echo $ECHO_N "(cached) $ECHO_C" >&6
28800 ac_res=`eval echo '${'$as_ac_Header'}'`
28801 { echo "$as_me:$LINENO: result: $ac_res" >&5
28802 echo "${ECHO_T}$ac_res" >&6; }
28803 else
28804 # Is the header compilable?
28805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28807 cat >conftest.$ac_ext <<_ACEOF
28808 /* confdefs.h. */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28813 $ac_includes_default
28814 #include <$ac_header>
28815 _ACEOF
28816 rm -f conftest.$ac_objext
28817 if { (ac_try="$ac_compile"
28818 case "(($ac_try" in
28819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820 *) ac_try_echo=$ac_try;;
28821 esac
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823 (eval "$ac_compile") 2>conftest.er1
28824 ac_status=$?
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
28830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28831 { (case "(($ac_try" in
28832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833 *) ac_try_echo=$ac_try;;
28834 esac
28835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836 (eval "$ac_try") 2>&5
28837 ac_status=$?
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); }; } &&
28840 { ac_try='test -s conftest.$ac_objext'
28841 { (case "(($ac_try" in
28842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28843 *) ac_try_echo=$ac_try;;
28844 esac
28845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28846 (eval "$ac_try") 2>&5
28847 ac_status=$?
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; }; then
28850 ac_header_compiler=yes
28851 else
28852 echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28855 ac_header_compiler=no
28858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28860 echo "${ECHO_T}$ac_header_compiler" >&6; }
28862 # Is the header present?
28863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28865 cat >conftest.$ac_ext <<_ACEOF
28866 /* confdefs.h. */
28867 _ACEOF
28868 cat confdefs.h >>conftest.$ac_ext
28869 cat >>conftest.$ac_ext <<_ACEOF
28870 /* end confdefs.h. */
28871 #include <$ac_header>
28872 _ACEOF
28873 if { (ac_try="$ac_cpp conftest.$ac_ext"
28874 case "(($ac_try" in
28875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28876 *) ac_try_echo=$ac_try;;
28877 esac
28878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28880 ac_status=$?
28881 grep -v '^ *+' conftest.er1 >conftest.err
28882 rm -f conftest.er1
28883 cat conftest.err >&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); } >/dev/null; then
28886 if test -s conftest.err; then
28887 ac_cpp_err=$ac_c_preproc_warn_flag
28888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28889 else
28890 ac_cpp_err=
28892 else
28893 ac_cpp_err=yes
28895 if test -z "$ac_cpp_err"; then
28896 ac_header_preproc=yes
28897 else
28898 echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28901 ac_header_preproc=no
28904 rm -f conftest.err conftest.$ac_ext
28905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28906 echo "${ECHO_T}$ac_header_preproc" >&6; }
28908 # So? What about this header?
28909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28910 yes:no: )
28911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28915 ac_header_preproc=yes
28917 no:yes:* )
28918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28930 ( cat <<\_ASBOX
28931 ## ----------------------------------- ##
28932 ## Report this to llvmbugs@cs.uiuc.edu ##
28933 ## ----------------------------------- ##
28934 _ASBOX
28935 ) | sed "s/^/$as_me: WARNING: /" >&2
28937 esac
28938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942 else
28943 eval "$as_ac_Header=\$ac_header_preproc"
28945 ac_res=`eval echo '${'$as_ac_Header'}'`
28946 { echo "$as_me:$LINENO: result: $ac_res" >&5
28947 echo "${ECHO_T}$ac_res" >&6; }
28950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28951 cat >>confdefs.h <<_ACEOF
28952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28953 _ACEOF
28957 done
28965 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28974 ac_res=`eval echo '${'$as_ac_Header'}'`
28975 { echo "$as_me:$LINENO: result: $ac_res" >&5
28976 echo "${ECHO_T}$ac_res" >&6; }
28977 else
28978 # Is the header compilable?
28979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28981 cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h. */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28987 $ac_includes_default
28988 #include <$ac_header>
28989 _ACEOF
28990 rm -f conftest.$ac_objext
28991 if { (ac_try="$ac_compile"
28992 case "(($ac_try" in
28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994 *) ac_try_echo=$ac_try;;
28995 esac
28996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997 (eval "$ac_compile") 2>conftest.er1
28998 ac_status=$?
28999 grep -v '^ *+' conftest.er1 >conftest.err
29000 rm -f conftest.er1
29001 cat conftest.err >&5
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); } &&
29004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29005 { (case "(($ac_try" in
29006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007 *) ac_try_echo=$ac_try;;
29008 esac
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010 (eval "$ac_try") 2>&5
29011 ac_status=$?
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); }; } &&
29014 { ac_try='test -s conftest.$ac_objext'
29015 { (case "(($ac_try" in
29016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29017 *) ac_try_echo=$ac_try;;
29018 esac
29019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29020 (eval "$ac_try") 2>&5
29021 ac_status=$?
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; }; then
29024 ac_header_compiler=yes
29025 else
29026 echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29029 ac_header_compiler=no
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29034 echo "${ECHO_T}$ac_header_compiler" >&6; }
29036 # Is the header present?
29037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29039 cat >conftest.$ac_ext <<_ACEOF
29040 /* confdefs.h. */
29041 _ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h. */
29045 #include <$ac_header>
29046 _ACEOF
29047 if { (ac_try="$ac_cpp conftest.$ac_ext"
29048 case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29051 esac
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29054 ac_status=$?
29055 grep -v '^ *+' conftest.er1 >conftest.err
29056 rm -f conftest.er1
29057 cat conftest.err >&5
29058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); } >/dev/null; then
29060 if test -s conftest.err; then
29061 ac_cpp_err=$ac_c_preproc_warn_flag
29062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29063 else
29064 ac_cpp_err=
29066 else
29067 ac_cpp_err=yes
29069 if test -z "$ac_cpp_err"; then
29070 ac_header_preproc=yes
29071 else
29072 echo "$as_me: failed program was:" >&5
29073 sed 's/^/| /' conftest.$ac_ext >&5
29075 ac_header_preproc=no
29078 rm -f conftest.err conftest.$ac_ext
29079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29080 echo "${ECHO_T}$ac_header_preproc" >&6; }
29082 # So? What about this header?
29083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29084 yes:no: )
29085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29089 ac_header_preproc=yes
29091 no:yes:* )
29092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29104 ( cat <<\_ASBOX
29105 ## ----------------------------------- ##
29106 ## Report this to llvmbugs@cs.uiuc.edu ##
29107 ## ----------------------------------- ##
29108 _ASBOX
29109 ) | sed "s/^/$as_me: WARNING: /" >&2
29111 esac
29112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29115 echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117 eval "$as_ac_Header=\$ac_header_preproc"
29119 ac_res=`eval echo '${'$as_ac_Header'}'`
29120 { echo "$as_me:$LINENO: result: $ac_res" >&5
29121 echo "${ECHO_T}$ac_res" >&6; }
29124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29125 cat >>confdefs.h <<_ACEOF
29126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29127 _ACEOF
29131 done
29134 for ac_header in windows.h
29136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29141 echo $ECHO_N "(cached) $ECHO_C" >&6
29143 ac_res=`eval echo '${'$as_ac_Header'}'`
29144 { echo "$as_me:$LINENO: result: $ac_res" >&5
29145 echo "${ECHO_T}$ac_res" >&6; }
29146 else
29147 # Is the header compilable?
29148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29150 cat >conftest.$ac_ext <<_ACEOF
29151 /* confdefs.h. */
29152 _ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29156 $ac_includes_default
29157 #include <$ac_header>
29158 _ACEOF
29159 rm -f conftest.$ac_objext
29160 if { (ac_try="$ac_compile"
29161 case "(($ac_try" in
29162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163 *) ac_try_echo=$ac_try;;
29164 esac
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166 (eval "$ac_compile") 2>conftest.er1
29167 ac_status=$?
29168 grep -v '^ *+' conftest.er1 >conftest.err
29169 rm -f conftest.er1
29170 cat conftest.err >&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); } &&
29173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29174 { (case "(($ac_try" in
29175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176 *) ac_try_echo=$ac_try;;
29177 esac
29178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179 (eval "$ac_try") 2>&5
29180 ac_status=$?
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; } &&
29183 { ac_try='test -s conftest.$ac_objext'
29184 { (case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29187 esac
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_try") 2>&5
29190 ac_status=$?
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); }; }; then
29193 ac_header_compiler=yes
29194 else
29195 echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29198 ac_header_compiler=no
29201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29203 echo "${ECHO_T}$ac_header_compiler" >&6; }
29205 # Is the header present?
29206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29208 cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h. */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29214 #include <$ac_header>
29215 _ACEOF
29216 if { (ac_try="$ac_cpp conftest.$ac_ext"
29217 case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29220 esac
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29223 ac_status=$?
29224 grep -v '^ *+' conftest.er1 >conftest.err
29225 rm -f conftest.er1
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } >/dev/null; then
29229 if test -s conftest.err; then
29230 ac_cpp_err=$ac_c_preproc_warn_flag
29231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29232 else
29233 ac_cpp_err=
29235 else
29236 ac_cpp_err=yes
29238 if test -z "$ac_cpp_err"; then
29239 ac_header_preproc=yes
29240 else
29241 echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29244 ac_header_preproc=no
29247 rm -f conftest.err conftest.$ac_ext
29248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29249 echo "${ECHO_T}$ac_header_preproc" >&6; }
29251 # So? What about this header?
29252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29253 yes:no: )
29254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29258 ac_header_preproc=yes
29260 no:yes:* )
29261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29273 ( cat <<\_ASBOX
29274 ## ----------------------------------- ##
29275 ## Report this to llvmbugs@cs.uiuc.edu ##
29276 ## ----------------------------------- ##
29277 _ASBOX
29278 ) | sed "s/^/$as_me: WARNING: /" >&2
29280 esac
29281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29284 echo $ECHO_N "(cached) $ECHO_C" >&6
29285 else
29286 eval "$as_ac_Header=\$ac_header_preproc"
29288 ac_res=`eval echo '${'$as_ac_Header'}'`
29289 { echo "$as_me:$LINENO: result: $ac_res" >&5
29290 echo "${ECHO_T}$ac_res" >&6; }
29293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29294 cat >>confdefs.h <<_ACEOF
29295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29296 _ACEOF
29300 done
29306 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29313 echo $ECHO_N "(cached) $ECHO_C" >&6
29315 ac_res=`eval echo '${'$as_ac_Header'}'`
29316 { echo "$as_me:$LINENO: result: $ac_res" >&5
29317 echo "${ECHO_T}$ac_res" >&6; }
29318 else
29319 # Is the header compilable?
29320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29322 cat >conftest.$ac_ext <<_ACEOF
29323 /* confdefs.h. */
29324 _ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29328 $ac_includes_default
29329 #include <$ac_header>
29330 _ACEOF
29331 rm -f conftest.$ac_objext
29332 if { (ac_try="$ac_compile"
29333 case "(($ac_try" in
29334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29336 esac
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_compile") 2>conftest.er1
29339 ac_status=$?
29340 grep -v '^ *+' conftest.er1 >conftest.err
29341 rm -f conftest.er1
29342 cat conftest.err >&5
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); } &&
29345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29346 { (case "(($ac_try" in
29347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348 *) ac_try_echo=$ac_try;;
29349 esac
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_try") 2>&5
29352 ac_status=$?
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); }; } &&
29355 { ac_try='test -s conftest.$ac_objext'
29356 { (case "(($ac_try" in
29357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29358 *) ac_try_echo=$ac_try;;
29359 esac
29360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29361 (eval "$ac_try") 2>&5
29362 ac_status=$?
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; }; then
29365 ac_header_compiler=yes
29366 else
29367 echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29370 ac_header_compiler=no
29373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29375 echo "${ECHO_T}$ac_header_compiler" >&6; }
29377 # Is the header present?
29378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29380 cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h. */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29386 #include <$ac_header>
29387 _ACEOF
29388 if { (ac_try="$ac_cpp conftest.$ac_ext"
29389 case "(($ac_try" in
29390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29391 *) ac_try_echo=$ac_try;;
29392 esac
29393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29395 ac_status=$?
29396 grep -v '^ *+' conftest.er1 >conftest.err
29397 rm -f conftest.er1
29398 cat conftest.err >&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); } >/dev/null; then
29401 if test -s conftest.err; then
29402 ac_cpp_err=$ac_c_preproc_warn_flag
29403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29404 else
29405 ac_cpp_err=
29407 else
29408 ac_cpp_err=yes
29410 if test -z "$ac_cpp_err"; then
29411 ac_header_preproc=yes
29412 else
29413 echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29416 ac_header_preproc=no
29419 rm -f conftest.err conftest.$ac_ext
29420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29421 echo "${ECHO_T}$ac_header_preproc" >&6; }
29423 # So? What about this header?
29424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29425 yes:no: )
29426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29430 ac_header_preproc=yes
29432 no:yes:* )
29433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29445 ( cat <<\_ASBOX
29446 ## ----------------------------------- ##
29447 ## Report this to llvmbugs@cs.uiuc.edu ##
29448 ## ----------------------------------- ##
29449 _ASBOX
29450 ) | sed "s/^/$as_me: WARNING: /" >&2
29452 esac
29453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29456 echo $ECHO_N "(cached) $ECHO_C" >&6
29457 else
29458 eval "$as_ac_Header=\$ac_header_preproc"
29460 ac_res=`eval echo '${'$as_ac_Header'}'`
29461 { echo "$as_me:$LINENO: result: $ac_res" >&5
29462 echo "${ECHO_T}$ac_res" >&6; }
29465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29466 cat >>confdefs.h <<_ACEOF
29467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29468 _ACEOF
29472 done
29477 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29484 echo $ECHO_N "(cached) $ECHO_C" >&6
29486 ac_res=`eval echo '${'$as_ac_Header'}'`
29487 { echo "$as_me:$LINENO: result: $ac_res" >&5
29488 echo "${ECHO_T}$ac_res" >&6; }
29489 else
29490 # Is the header compilable?
29491 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29493 cat >conftest.$ac_ext <<_ACEOF
29494 /* confdefs.h. */
29495 _ACEOF
29496 cat confdefs.h >>conftest.$ac_ext
29497 cat >>conftest.$ac_ext <<_ACEOF
29498 /* end confdefs.h. */
29499 $ac_includes_default
29500 #include <$ac_header>
29501 _ACEOF
29502 rm -f conftest.$ac_objext
29503 if { (ac_try="$ac_compile"
29504 case "(($ac_try" in
29505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506 *) ac_try_echo=$ac_try;;
29507 esac
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509 (eval "$ac_compile") 2>conftest.er1
29510 ac_status=$?
29511 grep -v '^ *+' conftest.er1 >conftest.err
29512 rm -f conftest.er1
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } &&
29516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29517 { (case "(($ac_try" in
29518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519 *) ac_try_echo=$ac_try;;
29520 esac
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522 (eval "$ac_try") 2>&5
29523 ac_status=$?
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); }; } &&
29526 { ac_try='test -s conftest.$ac_objext'
29527 { (case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29530 esac
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_try") 2>&5
29533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; }; then
29536 ac_header_compiler=yes
29537 else
29538 echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29541 ac_header_compiler=no
29544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29546 echo "${ECHO_T}$ac_header_compiler" >&6; }
29548 # Is the header present?
29549 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29551 cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h. */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h. */
29557 #include <$ac_header>
29558 _ACEOF
29559 if { (ac_try="$ac_cpp conftest.$ac_ext"
29560 case "(($ac_try" in
29561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29562 *) ac_try_echo=$ac_try;;
29563 esac
29564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29566 ac_status=$?
29567 grep -v '^ *+' conftest.er1 >conftest.err
29568 rm -f conftest.er1
29569 cat conftest.err >&5
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); } >/dev/null; then
29572 if test -s conftest.err; then
29573 ac_cpp_err=$ac_c_preproc_warn_flag
29574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29575 else
29576 ac_cpp_err=
29578 else
29579 ac_cpp_err=yes
29581 if test -z "$ac_cpp_err"; then
29582 ac_header_preproc=yes
29583 else
29584 echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29587 ac_header_preproc=no
29590 rm -f conftest.err conftest.$ac_ext
29591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29592 echo "${ECHO_T}$ac_header_preproc" >&6; }
29594 # So? What about this header?
29595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29596 yes:no: )
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29601 ac_header_preproc=yes
29603 no:yes:* )
29604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29616 ( cat <<\_ASBOX
29617 ## ----------------------------------- ##
29618 ## Report this to llvmbugs@cs.uiuc.edu ##
29619 ## ----------------------------------- ##
29620 _ASBOX
29621 ) | sed "s/^/$as_me: WARNING: /" >&2
29623 esac
29624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29627 echo $ECHO_N "(cached) $ECHO_C" >&6
29628 else
29629 eval "$as_ac_Header=\$ac_header_preproc"
29631 ac_res=`eval echo '${'$as_ac_Header'}'`
29632 { echo "$as_me:$LINENO: result: $ac_res" >&5
29633 echo "${ECHO_T}$ac_res" >&6; }
29636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29637 cat >>confdefs.h <<_ACEOF
29638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29639 _ACEOF
29643 done
29645 if test "$ENABLE_THREADS" -eq 1 ; then
29647 for ac_header in pthread.h
29649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29654 echo $ECHO_N "(cached) $ECHO_C" >&6
29656 ac_res=`eval echo '${'$as_ac_Header'}'`
29657 { echo "$as_me:$LINENO: result: $ac_res" >&5
29658 echo "${ECHO_T}$ac_res" >&6; }
29659 else
29660 # Is the header compilable?
29661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29663 cat >conftest.$ac_ext <<_ACEOF
29664 /* confdefs.h. */
29665 _ACEOF
29666 cat confdefs.h >>conftest.$ac_ext
29667 cat >>conftest.$ac_ext <<_ACEOF
29668 /* end confdefs.h. */
29669 $ac_includes_default
29670 #include <$ac_header>
29671 _ACEOF
29672 rm -f conftest.$ac_objext
29673 if { (ac_try="$ac_compile"
29674 case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_compile") 2>conftest.er1
29680 ac_status=$?
29681 grep -v '^ *+' conftest.er1 >conftest.err
29682 rm -f conftest.er1
29683 cat conftest.err >&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
29686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29690 esac
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
29693 ac_status=$?
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; } &&
29696 { ac_try='test -s conftest.$ac_objext'
29697 { (case "(($ac_try" in
29698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699 *) ac_try_echo=$ac_try;;
29700 esac
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702 (eval "$ac_try") 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; }; then
29706 ac_header_compiler=yes
29707 else
29708 echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29711 ac_header_compiler=no
29714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29716 echo "${ECHO_T}$ac_header_compiler" >&6; }
29718 # Is the header present?
29719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29721 cat >conftest.$ac_ext <<_ACEOF
29722 /* confdefs.h. */
29723 _ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h. */
29727 #include <$ac_header>
29728 _ACEOF
29729 if { (ac_try="$ac_cpp conftest.$ac_ext"
29730 case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29733 esac
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29736 ac_status=$?
29737 grep -v '^ *+' conftest.er1 >conftest.err
29738 rm -f conftest.er1
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } >/dev/null; then
29742 if test -s conftest.err; then
29743 ac_cpp_err=$ac_c_preproc_warn_flag
29744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29745 else
29746 ac_cpp_err=
29748 else
29749 ac_cpp_err=yes
29751 if test -z "$ac_cpp_err"; then
29752 ac_header_preproc=yes
29753 else
29754 echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29757 ac_header_preproc=no
29760 rm -f conftest.err conftest.$ac_ext
29761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29762 echo "${ECHO_T}$ac_header_preproc" >&6; }
29764 # So? What about this header?
29765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29766 yes:no: )
29767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29771 ac_header_preproc=yes
29773 no:yes:* )
29774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29786 ( cat <<\_ASBOX
29787 ## ----------------------------------- ##
29788 ## Report this to llvmbugs@cs.uiuc.edu ##
29789 ## ----------------------------------- ##
29790 _ASBOX
29791 ) | sed "s/^/$as_me: WARNING: /" >&2
29793 esac
29794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29797 echo $ECHO_N "(cached) $ECHO_C" >&6
29798 else
29799 eval "$as_ac_Header=\$ac_header_preproc"
29801 ac_res=`eval echo '${'$as_ac_Header'}'`
29802 { echo "$as_me:$LINENO: result: $ac_res" >&5
29803 echo "${ECHO_T}$ac_res" >&6; }
29806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29807 cat >>confdefs.h <<_ACEOF
29808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29809 _ACEOF
29810 HAVE_PTHREAD=1
29812 else
29813 HAVE_PTHREAD=0
29817 done
29819 else
29820 HAVE_PTHREAD=0
29826 for ac_header in ffi.h ffi/ffi.h
29828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29835 ac_res=`eval echo '${'$as_ac_Header'}'`
29836 { echo "$as_me:$LINENO: result: $ac_res" >&5
29837 echo "${ECHO_T}$ac_res" >&6; }
29838 else
29839 # Is the header compilable?
29840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29842 cat >conftest.$ac_ext <<_ACEOF
29843 /* confdefs.h. */
29844 _ACEOF
29845 cat confdefs.h >>conftest.$ac_ext
29846 cat >>conftest.$ac_ext <<_ACEOF
29847 /* end confdefs.h. */
29848 $ac_includes_default
29849 #include <$ac_header>
29850 _ACEOF
29851 rm -f conftest.$ac_objext
29852 if { (ac_try="$ac_compile"
29853 case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856 esac
29857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_compile") 2>conftest.er1
29859 ac_status=$?
29860 grep -v '^ *+' conftest.er1 >conftest.err
29861 rm -f conftest.er1
29862 cat conftest.err >&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); } &&
29865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29866 { (case "(($ac_try" in
29867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868 *) ac_try_echo=$ac_try;;
29869 esac
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871 (eval "$ac_try") 2>&5
29872 ac_status=$?
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; } &&
29875 { ac_try='test -s conftest.$ac_objext'
29876 { (case "(($ac_try" in
29877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878 *) ac_try_echo=$ac_try;;
29879 esac
29880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881 (eval "$ac_try") 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; }; then
29885 ac_header_compiler=yes
29886 else
29887 echo "$as_me: failed program was:" >&5
29888 sed 's/^/| /' conftest.$ac_ext >&5
29890 ac_header_compiler=no
29893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29895 echo "${ECHO_T}$ac_header_compiler" >&6; }
29897 # Is the header present?
29898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29900 cat >conftest.$ac_ext <<_ACEOF
29901 /* confdefs.h. */
29902 _ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h. */
29906 #include <$ac_header>
29907 _ACEOF
29908 if { (ac_try="$ac_cpp conftest.$ac_ext"
29909 case "(($ac_try" in
29910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911 *) ac_try_echo=$ac_try;;
29912 esac
29913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29915 ac_status=$?
29916 grep -v '^ *+' conftest.er1 >conftest.err
29917 rm -f conftest.er1
29918 cat conftest.err >&5
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); } >/dev/null; then
29921 if test -s conftest.err; then
29922 ac_cpp_err=$ac_c_preproc_warn_flag
29923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29924 else
29925 ac_cpp_err=
29927 else
29928 ac_cpp_err=yes
29930 if test -z "$ac_cpp_err"; then
29931 ac_header_preproc=yes
29932 else
29933 echo "$as_me: failed program was:" >&5
29934 sed 's/^/| /' conftest.$ac_ext >&5
29936 ac_header_preproc=no
29939 rm -f conftest.err conftest.$ac_ext
29940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29941 echo "${ECHO_T}$ac_header_preproc" >&6; }
29943 # So? What about this header?
29944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29945 yes:no: )
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29950 ac_header_preproc=yes
29952 no:yes:* )
29953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29965 ( cat <<\_ASBOX
29966 ## ----------------------------------- ##
29967 ## Report this to llvmbugs@cs.uiuc.edu ##
29968 ## ----------------------------------- ##
29969 _ASBOX
29970 ) | sed "s/^/$as_me: WARNING: /" >&2
29972 esac
29973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977 else
29978 eval "$as_ac_Header=\$ac_header_preproc"
29980 ac_res=`eval echo '${'$as_ac_Header'}'`
29981 { echo "$as_me:$LINENO: result: $ac_res" >&5
29982 echo "${ECHO_T}$ac_res" >&6; }
29985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29986 cat >>confdefs.h <<_ACEOF
29987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29988 _ACEOF
29992 done
29997 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29998 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29999 if test "${ac_cv_huge_val_sanity+set}" = set; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30001 else
30003 ac_ext=cpp
30004 ac_cpp='$CXXCPP $CPPFLAGS'
30005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30009 CXXFLAGS=-pedantic
30010 if test "$cross_compiling" = yes; then
30011 ac_cv_huge_val_sanity=yes
30012 else
30013 cat >conftest.$ac_ext <<_ACEOF
30014 /* confdefs.h. */
30015 _ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h. */
30019 #include <math.h>
30021 main ()
30023 double x = HUGE_VAL; return x != x;
30025 return 0;
30027 _ACEOF
30028 rm -f conftest$ac_exeext
30029 if { (ac_try="$ac_link"
30030 case "(($ac_try" in
30031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032 *) ac_try_echo=$ac_try;;
30033 esac
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035 (eval "$ac_link") 2>&5
30036 ac_status=$?
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30039 { (case "(($ac_try" in
30040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041 *) ac_try_echo=$ac_try;;
30042 esac
30043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044 (eval "$ac_try") 2>&5
30045 ac_status=$?
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); }; }; then
30048 ac_cv_huge_val_sanity=yes
30049 else
30050 echo "$as_me: program exited with status $ac_status" >&5
30051 echo "$as_me: failed program was:" >&5
30052 sed 's/^/| /' conftest.$ac_ext >&5
30054 ( exit $ac_status )
30055 ac_cv_huge_val_sanity=no
30057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30061 ac_ext=c
30062 ac_cpp='$CPP $CPPFLAGS'
30063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30069 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30070 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30071 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30074 { echo "$as_me:$LINENO: checking for pid_t" >&5
30075 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30076 if test "${ac_cv_type_pid_t+set}" = set; then
30077 echo $ECHO_N "(cached) $ECHO_C" >&6
30078 else
30079 cat >conftest.$ac_ext <<_ACEOF
30080 /* confdefs.h. */
30081 _ACEOF
30082 cat confdefs.h >>conftest.$ac_ext
30083 cat >>conftest.$ac_ext <<_ACEOF
30084 /* end confdefs.h. */
30085 $ac_includes_default
30086 typedef pid_t ac__type_new_;
30088 main ()
30090 if ((ac__type_new_ *) 0)
30091 return 0;
30092 if (sizeof (ac__type_new_))
30093 return 0;
30095 return 0;
30097 _ACEOF
30098 rm -f conftest.$ac_objext
30099 if { (ac_try="$ac_compile"
30100 case "(($ac_try" in
30101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30102 *) ac_try_echo=$ac_try;;
30103 esac
30104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30105 (eval "$ac_compile") 2>conftest.er1
30106 ac_status=$?
30107 grep -v '^ *+' conftest.er1 >conftest.err
30108 rm -f conftest.er1
30109 cat conftest.err >&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } &&
30112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30113 { (case "(($ac_try" in
30114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115 *) ac_try_echo=$ac_try;;
30116 esac
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_try") 2>&5
30119 ac_status=$?
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; } &&
30122 { ac_try='test -s conftest.$ac_objext'
30123 { (case "(($ac_try" in
30124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30125 *) ac_try_echo=$ac_try;;
30126 esac
30127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30128 (eval "$ac_try") 2>&5
30129 ac_status=$?
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); }; }; then
30132 ac_cv_type_pid_t=yes
30133 else
30134 echo "$as_me: failed program was:" >&5
30135 sed 's/^/| /' conftest.$ac_ext >&5
30137 ac_cv_type_pid_t=no
30140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30142 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30143 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30144 if test $ac_cv_type_pid_t = yes; then
30146 else
30148 cat >>confdefs.h <<_ACEOF
30149 #define pid_t int
30150 _ACEOF
30154 { echo "$as_me:$LINENO: checking for size_t" >&5
30155 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30156 if test "${ac_cv_type_size_t+set}" = set; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30158 else
30159 cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h. */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h. */
30165 $ac_includes_default
30166 typedef size_t ac__type_new_;
30168 main ()
30170 if ((ac__type_new_ *) 0)
30171 return 0;
30172 if (sizeof (ac__type_new_))
30173 return 0;
30175 return 0;
30177 _ACEOF
30178 rm -f conftest.$ac_objext
30179 if { (ac_try="$ac_compile"
30180 case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30183 esac
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_compile") 2>conftest.er1
30186 ac_status=$?
30187 grep -v '^ *+' conftest.er1 >conftest.err
30188 rm -f conftest.er1
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); } &&
30192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30193 { (case "(($ac_try" in
30194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195 *) ac_try_echo=$ac_try;;
30196 esac
30197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198 (eval "$ac_try") 2>&5
30199 ac_status=$?
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); }; } &&
30202 { ac_try='test -s conftest.$ac_objext'
30203 { (case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30206 esac
30207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208 (eval "$ac_try") 2>&5
30209 ac_status=$?
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; }; then
30212 ac_cv_type_size_t=yes
30213 else
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30217 ac_cv_type_size_t=no
30220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30222 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30223 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30224 if test $ac_cv_type_size_t = yes; then
30226 else
30228 cat >>confdefs.h <<_ACEOF
30229 #define size_t unsigned int
30230 _ACEOF
30234 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30235 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30236 if test "${ac_cv_type_signal+set}" = set; then
30237 echo $ECHO_N "(cached) $ECHO_C" >&6
30238 else
30239 cat >conftest.$ac_ext <<_ACEOF
30240 /* confdefs.h. */
30241 _ACEOF
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h. */
30245 #include <sys/types.h>
30246 #include <signal.h>
30249 main ()
30251 return *(signal (0, 0)) (0) == 1;
30253 return 0;
30255 _ACEOF
30256 rm -f conftest.$ac_objext
30257 if { (ac_try="$ac_compile"
30258 case "(($ac_try" in
30259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30260 *) ac_try_echo=$ac_try;;
30261 esac
30262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30263 (eval "$ac_compile") 2>conftest.er1
30264 ac_status=$?
30265 grep -v '^ *+' conftest.er1 >conftest.err
30266 rm -f conftest.er1
30267 cat conftest.err >&5
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); } &&
30270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30271 { (case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_try") 2>&5
30277 ac_status=$?
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); }; } &&
30280 { ac_try='test -s conftest.$ac_objext'
30281 { (case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30284 esac
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286 (eval "$ac_try") 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; }; then
30290 ac_cv_type_signal=int
30291 else
30292 echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30295 ac_cv_type_signal=void
30298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30300 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30301 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30303 cat >>confdefs.h <<_ACEOF
30304 #define RETSIGTYPE $ac_cv_type_signal
30305 _ACEOF
30308 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30310 if test "${ac_cv_struct_tm+set}" = set; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 else
30313 cat >conftest.$ac_ext <<_ACEOF
30314 /* confdefs.h. */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h. */
30319 #include <sys/types.h>
30320 #include <time.h>
30323 main ()
30325 struct tm *tp; tp->tm_sec;
30327 return 0;
30329 _ACEOF
30330 rm -f conftest.$ac_objext
30331 if { (ac_try="$ac_compile"
30332 case "(($ac_try" in
30333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334 *) ac_try_echo=$ac_try;;
30335 esac
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337 (eval "$ac_compile") 2>conftest.er1
30338 ac_status=$?
30339 grep -v '^ *+' conftest.er1 >conftest.err
30340 rm -f conftest.er1
30341 cat conftest.err >&5
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } &&
30344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30345 { (case "(($ac_try" in
30346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30347 *) ac_try_echo=$ac_try;;
30348 esac
30349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30350 (eval "$ac_try") 2>&5
30351 ac_status=$?
30352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); }; } &&
30354 { ac_try='test -s conftest.$ac_objext'
30355 { (case "(($ac_try" in
30356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357 *) ac_try_echo=$ac_try;;
30358 esac
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360 (eval "$ac_try") 2>&5
30361 ac_status=$?
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); }; }; then
30364 ac_cv_struct_tm=time.h
30365 else
30366 echo "$as_me: failed program was:" >&5
30367 sed 's/^/| /' conftest.$ac_ext >&5
30369 ac_cv_struct_tm=sys/time.h
30372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30374 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30375 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30376 if test $ac_cv_struct_tm = sys/time.h; then
30378 cat >>confdefs.h <<\_ACEOF
30379 #define TM_IN_SYS_TIME 1
30380 _ACEOF
30384 { echo "$as_me:$LINENO: checking for int64_t" >&5
30385 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30386 if test "${ac_cv_type_int64_t+set}" = set; then
30387 echo $ECHO_N "(cached) $ECHO_C" >&6
30388 else
30389 cat >conftest.$ac_ext <<_ACEOF
30390 /* confdefs.h. */
30391 _ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h. */
30395 $ac_includes_default
30396 typedef int64_t ac__type_new_;
30398 main ()
30400 if ((ac__type_new_ *) 0)
30401 return 0;
30402 if (sizeof (ac__type_new_))
30403 return 0;
30405 return 0;
30407 _ACEOF
30408 rm -f conftest.$ac_objext
30409 if { (ac_try="$ac_compile"
30410 case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30413 esac
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_compile") 2>conftest.er1
30416 ac_status=$?
30417 grep -v '^ *+' conftest.er1 >conftest.err
30418 rm -f conftest.er1
30419 cat conftest.err >&5
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); } &&
30422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30423 { (case "(($ac_try" in
30424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30425 *) ac_try_echo=$ac_try;;
30426 esac
30427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30428 (eval "$ac_try") 2>&5
30429 ac_status=$?
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); }; } &&
30432 { ac_try='test -s conftest.$ac_objext'
30433 { (case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30436 esac
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_try") 2>&5
30439 ac_status=$?
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); }; }; then
30442 ac_cv_type_int64_t=yes
30443 else
30444 echo "$as_me: failed program was:" >&5
30445 sed 's/^/| /' conftest.$ac_ext >&5
30447 ac_cv_type_int64_t=no
30450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30452 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30453 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30454 if test $ac_cv_type_int64_t = yes; then
30456 cat >>confdefs.h <<_ACEOF
30457 #define HAVE_INT64_T 1
30458 _ACEOF
30461 else
30462 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30463 echo "$as_me: error: Type int64_t required but not found" >&2;}
30464 { (exit 1); exit 1; }; }
30467 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30468 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30469 if test "${ac_cv_type_uint64_t+set}" = set; then
30470 echo $ECHO_N "(cached) $ECHO_C" >&6
30471 else
30472 cat >conftest.$ac_ext <<_ACEOF
30473 /* confdefs.h. */
30474 _ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h. */
30478 $ac_includes_default
30479 typedef uint64_t ac__type_new_;
30481 main ()
30483 if ((ac__type_new_ *) 0)
30484 return 0;
30485 if (sizeof (ac__type_new_))
30486 return 0;
30488 return 0;
30490 _ACEOF
30491 rm -f conftest.$ac_objext
30492 if { (ac_try="$ac_compile"
30493 case "(($ac_try" in
30494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30495 *) ac_try_echo=$ac_try;;
30496 esac
30497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30498 (eval "$ac_compile") 2>conftest.er1
30499 ac_status=$?
30500 grep -v '^ *+' conftest.er1 >conftest.err
30501 rm -f conftest.er1
30502 cat conftest.err >&5
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); } &&
30505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30506 { (case "(($ac_try" in
30507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30508 *) ac_try_echo=$ac_try;;
30509 esac
30510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30511 (eval "$ac_try") 2>&5
30512 ac_status=$?
30513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 (exit $ac_status); }; } &&
30515 { ac_try='test -s conftest.$ac_objext'
30516 { (case "(($ac_try" in
30517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518 *) ac_try_echo=$ac_try;;
30519 esac
30520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521 (eval "$ac_try") 2>&5
30522 ac_status=$?
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; }; then
30525 ac_cv_type_uint64_t=yes
30526 else
30527 echo "$as_me: failed program was:" >&5
30528 sed 's/^/| /' conftest.$ac_ext >&5
30530 ac_cv_type_uint64_t=no
30533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30535 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30536 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30537 if test $ac_cv_type_uint64_t = yes; then
30539 cat >>confdefs.h <<_ACEOF
30540 #define HAVE_UINT64_T 1
30541 _ACEOF
30544 else
30545 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30546 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30547 if test "${ac_cv_type_u_int64_t+set}" = set; then
30548 echo $ECHO_N "(cached) $ECHO_C" >&6
30549 else
30550 cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h. */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h. */
30556 $ac_includes_default
30557 typedef u_int64_t ac__type_new_;
30559 main ()
30561 if ((ac__type_new_ *) 0)
30562 return 0;
30563 if (sizeof (ac__type_new_))
30564 return 0;
30566 return 0;
30568 _ACEOF
30569 rm -f conftest.$ac_objext
30570 if { (ac_try="$ac_compile"
30571 case "(($ac_try" in
30572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573 *) ac_try_echo=$ac_try;;
30574 esac
30575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576 (eval "$ac_compile") 2>conftest.er1
30577 ac_status=$?
30578 grep -v '^ *+' conftest.er1 >conftest.err
30579 rm -f conftest.er1
30580 cat conftest.err >&5
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); } &&
30583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30584 { (case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30587 esac
30588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589 (eval "$ac_try") 2>&5
30590 ac_status=$?
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; } &&
30593 { ac_try='test -s conftest.$ac_objext'
30594 { (case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30597 esac
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599 (eval "$ac_try") 2>&5
30600 ac_status=$?
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; }; then
30603 ac_cv_type_u_int64_t=yes
30604 else
30605 echo "$as_me: failed program was:" >&5
30606 sed 's/^/| /' conftest.$ac_ext >&5
30608 ac_cv_type_u_int64_t=no
30611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30613 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30614 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30615 if test $ac_cv_type_u_int64_t = yes; then
30617 cat >>confdefs.h <<_ACEOF
30618 #define HAVE_U_INT64_T 1
30619 _ACEOF
30622 else
30623 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30624 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30625 { (exit 1); exit 1; }; }
30639 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30645 echo $ECHO_N "(cached) $ECHO_C" >&6
30646 else
30647 cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h. */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h. */
30653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30655 #define $ac_func innocuous_$ac_func
30657 /* System header to define __stub macros and hopefully few prototypes,
30658 which can conflict with char $ac_func (); below.
30659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30660 <limits.h> exists even on freestanding compilers. */
30662 #ifdef __STDC__
30663 # include <limits.h>
30664 #else
30665 # include <assert.h>
30666 #endif
30668 #undef $ac_func
30670 /* Override any GCC internal prototype to avoid an error.
30671 Use char because int might match the return type of a GCC
30672 builtin and then its argument prototype would still apply. */
30673 #ifdef __cplusplus
30674 extern "C"
30675 #endif
30676 char $ac_func ();
30677 /* The GNU C library defines this for functions which it implements
30678 to always fail with ENOSYS. Some functions are actually named
30679 something starting with __ and the normal name is an alias. */
30680 #if defined __stub_$ac_func || defined __stub___$ac_func
30681 choke me
30682 #endif
30685 main ()
30687 return $ac_func ();
30689 return 0;
30691 _ACEOF
30692 rm -f conftest.$ac_objext conftest$ac_exeext
30693 if { (ac_try="$ac_link"
30694 case "(($ac_try" in
30695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696 *) ac_try_echo=$ac_try;;
30697 esac
30698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699 (eval "$ac_link") 2>conftest.er1
30700 ac_status=$?
30701 grep -v '^ *+' conftest.er1 >conftest.err
30702 rm -f conftest.er1
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
30706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707 { (case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30710 esac
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_try") 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; } &&
30716 { ac_try='test -s conftest$ac_exeext'
30717 { (case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_try") 2>&5
30723 ac_status=$?
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; }; then
30726 eval "$as_ac_var=yes"
30727 else
30728 echo "$as_me: failed program was:" >&5
30729 sed 's/^/| /' conftest.$ac_ext >&5
30731 eval "$as_ac_var=no"
30734 rm -f core conftest.err conftest.$ac_objext \
30735 conftest$ac_exeext conftest.$ac_ext
30737 ac_res=`eval echo '${'$as_ac_var'}'`
30738 { echo "$as_me:$LINENO: result: $ac_res" >&5
30739 echo "${ECHO_T}$ac_res" >&6; }
30740 if test `eval echo '${'$as_ac_var'}'` = yes; then
30741 cat >>confdefs.h <<_ACEOF
30742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30743 _ACEOF
30746 done
30752 for ac_func in powf fmodf strtof round
30754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30758 echo $ECHO_N "(cached) $ECHO_C" >&6
30759 else
30760 cat >conftest.$ac_ext <<_ACEOF
30761 /* confdefs.h. */
30762 _ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h. */
30766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30768 #define $ac_func innocuous_$ac_func
30770 /* System header to define __stub macros and hopefully few prototypes,
30771 which can conflict with char $ac_func (); below.
30772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773 <limits.h> exists even on freestanding compilers. */
30775 #ifdef __STDC__
30776 # include <limits.h>
30777 #else
30778 # include <assert.h>
30779 #endif
30781 #undef $ac_func
30783 /* Override any GCC internal prototype to avoid an error.
30784 Use char because int might match the return type of a GCC
30785 builtin and then its argument prototype would still apply. */
30786 #ifdef __cplusplus
30787 extern "C"
30788 #endif
30789 char $ac_func ();
30790 /* The GNU C library defines this for functions which it implements
30791 to always fail with ENOSYS. Some functions are actually named
30792 something starting with __ and the normal name is an alias. */
30793 #if defined __stub_$ac_func || defined __stub___$ac_func
30794 choke me
30795 #endif
30798 main ()
30800 return $ac_func ();
30802 return 0;
30804 _ACEOF
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (ac_try="$ac_link"
30807 case "(($ac_try" in
30808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809 *) ac_try_echo=$ac_try;;
30810 esac
30811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812 (eval "$ac_link") 2>conftest.er1
30813 ac_status=$?
30814 grep -v '^ *+' conftest.er1 >conftest.err
30815 rm -f conftest.er1
30816 cat conftest.err >&5
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); } &&
30819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820 { (case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30823 esac
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_try") 2>&5
30826 ac_status=$?
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; } &&
30829 { ac_try='test -s conftest$ac_exeext'
30830 { (case "(($ac_try" in
30831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832 *) ac_try_echo=$ac_try;;
30833 esac
30834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835 (eval "$ac_try") 2>&5
30836 ac_status=$?
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
30839 eval "$as_ac_var=yes"
30840 else
30841 echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30844 eval "$as_ac_var=no"
30847 rm -f core conftest.err conftest.$ac_objext \
30848 conftest$ac_exeext conftest.$ac_ext
30850 ac_res=`eval echo '${'$as_ac_var'}'`
30851 { echo "$as_me:$LINENO: result: $ac_res" >&5
30852 echo "${ECHO_T}$ac_res" >&6; }
30853 if test `eval echo '${'$as_ac_var'}'` = yes; then
30854 cat >>confdefs.h <<_ACEOF
30855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30856 _ACEOF
30859 done
30866 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30872 echo $ECHO_N "(cached) $ECHO_C" >&6
30873 else
30874 cat >conftest.$ac_ext <<_ACEOF
30875 /* confdefs.h. */
30876 _ACEOF
30877 cat confdefs.h >>conftest.$ac_ext
30878 cat >>conftest.$ac_ext <<_ACEOF
30879 /* end confdefs.h. */
30880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30882 #define $ac_func innocuous_$ac_func
30884 /* System header to define __stub macros and hopefully few prototypes,
30885 which can conflict with char $ac_func (); below.
30886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30887 <limits.h> exists even on freestanding compilers. */
30889 #ifdef __STDC__
30890 # include <limits.h>
30891 #else
30892 # include <assert.h>
30893 #endif
30895 #undef $ac_func
30897 /* Override any GCC internal prototype to avoid an error.
30898 Use char because int might match the return type of a GCC
30899 builtin and then its argument prototype would still apply. */
30900 #ifdef __cplusplus
30901 extern "C"
30902 #endif
30903 char $ac_func ();
30904 /* The GNU C library defines this for functions which it implements
30905 to always fail with ENOSYS. Some functions are actually named
30906 something starting with __ and the normal name is an alias. */
30907 #if defined __stub_$ac_func || defined __stub___$ac_func
30908 choke me
30909 #endif
30912 main ()
30914 return $ac_func ();
30916 return 0;
30918 _ACEOF
30919 rm -f conftest.$ac_objext conftest$ac_exeext
30920 if { (ac_try="$ac_link"
30921 case "(($ac_try" in
30922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30923 *) ac_try_echo=$ac_try;;
30924 esac
30925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30926 (eval "$ac_link") 2>conftest.er1
30927 ac_status=$?
30928 grep -v '^ *+' conftest.er1 >conftest.err
30929 rm -f conftest.er1
30930 cat conftest.err >&5
30931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932 (exit $ac_status); } &&
30933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30934 { (case "(($ac_try" in
30935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30936 *) ac_try_echo=$ac_try;;
30937 esac
30938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30939 (eval "$ac_try") 2>&5
30940 ac_status=$?
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; } &&
30943 { ac_try='test -s conftest$ac_exeext'
30944 { (case "(($ac_try" in
30945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946 *) ac_try_echo=$ac_try;;
30947 esac
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949 (eval "$ac_try") 2>&5
30950 ac_status=$?
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; }; then
30953 eval "$as_ac_var=yes"
30954 else
30955 echo "$as_me: failed program was:" >&5
30956 sed 's/^/| /' conftest.$ac_ext >&5
30958 eval "$as_ac_var=no"
30961 rm -f core conftest.err conftest.$ac_objext \
30962 conftest$ac_exeext conftest.$ac_ext
30964 ac_res=`eval echo '${'$as_ac_var'}'`
30965 { echo "$as_me:$LINENO: result: $ac_res" >&5
30966 echo "${ECHO_T}$ac_res" >&6; }
30967 if test `eval echo '${'$as_ac_var'}'` = yes; then
30968 cat >>confdefs.h <<_ACEOF
30969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30970 _ACEOF
30973 done
30978 for ac_func in isatty mkdtemp mkstemp
30980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30984 echo $ECHO_N "(cached) $ECHO_C" >&6
30985 else
30986 cat >conftest.$ac_ext <<_ACEOF
30987 /* confdefs.h. */
30988 _ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h. */
30992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30994 #define $ac_func innocuous_$ac_func
30996 /* System header to define __stub macros and hopefully few prototypes,
30997 which can conflict with char $ac_func (); below.
30998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30999 <limits.h> exists even on freestanding compilers. */
31001 #ifdef __STDC__
31002 # include <limits.h>
31003 #else
31004 # include <assert.h>
31005 #endif
31007 #undef $ac_func
31009 /* Override any GCC internal prototype to avoid an error.
31010 Use char because int might match the return type of a GCC
31011 builtin and then its argument prototype would still apply. */
31012 #ifdef __cplusplus
31013 extern "C"
31014 #endif
31015 char $ac_func ();
31016 /* The GNU C library defines this for functions which it implements
31017 to always fail with ENOSYS. Some functions are actually named
31018 something starting with __ and the normal name is an alias. */
31019 #if defined __stub_$ac_func || defined __stub___$ac_func
31020 choke me
31021 #endif
31024 main ()
31026 return $ac_func ();
31028 return 0;
31030 _ACEOF
31031 rm -f conftest.$ac_objext conftest$ac_exeext
31032 if { (ac_try="$ac_link"
31033 case "(($ac_try" in
31034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31036 esac
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_link") 2>conftest.er1
31039 ac_status=$?
31040 grep -v '^ *+' conftest.er1 >conftest.err
31041 rm -f conftest.er1
31042 cat conftest.err >&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } &&
31045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31046 { (case "(($ac_try" in
31047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048 *) ac_try_echo=$ac_try;;
31049 esac
31050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051 (eval "$ac_try") 2>&5
31052 ac_status=$?
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); }; } &&
31055 { ac_try='test -s conftest$ac_exeext'
31056 { (case "(($ac_try" in
31057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058 *) ac_try_echo=$ac_try;;
31059 esac
31060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061 (eval "$ac_try") 2>&5
31062 ac_status=$?
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); }; }; then
31065 eval "$as_ac_var=yes"
31066 else
31067 echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31070 eval "$as_ac_var=no"
31073 rm -f core conftest.err conftest.$ac_objext \
31074 conftest$ac_exeext conftest.$ac_ext
31076 ac_res=`eval echo '${'$as_ac_var'}'`
31077 { echo "$as_me:$LINENO: result: $ac_res" >&5
31078 echo "${ECHO_T}$ac_res" >&6; }
31079 if test `eval echo '${'$as_ac_var'}'` = yes; then
31080 cat >>confdefs.h <<_ACEOF
31081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31082 _ACEOF
31085 done
31094 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31101 else
31102 cat >conftest.$ac_ext <<_ACEOF
31103 /* confdefs.h. */
31104 _ACEOF
31105 cat confdefs.h >>conftest.$ac_ext
31106 cat >>conftest.$ac_ext <<_ACEOF
31107 /* end confdefs.h. */
31108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31110 #define $ac_func innocuous_$ac_func
31112 /* System header to define __stub macros and hopefully few prototypes,
31113 which can conflict with char $ac_func (); below.
31114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31115 <limits.h> exists even on freestanding compilers. */
31117 #ifdef __STDC__
31118 # include <limits.h>
31119 #else
31120 # include <assert.h>
31121 #endif
31123 #undef $ac_func
31125 /* Override any GCC internal prototype to avoid an error.
31126 Use char because int might match the return type of a GCC
31127 builtin and then its argument prototype would still apply. */
31128 #ifdef __cplusplus
31129 extern "C"
31130 #endif
31131 char $ac_func ();
31132 /* The GNU C library defines this for functions which it implements
31133 to always fail with ENOSYS. Some functions are actually named
31134 something starting with __ and the normal name is an alias. */
31135 #if defined __stub_$ac_func || defined __stub___$ac_func
31136 choke me
31137 #endif
31140 main ()
31142 return $ac_func ();
31144 return 0;
31146 _ACEOF
31147 rm -f conftest.$ac_objext conftest$ac_exeext
31148 if { (ac_try="$ac_link"
31149 case "(($ac_try" in
31150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31152 esac
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_link") 2>conftest.er1
31155 ac_status=$?
31156 grep -v '^ *+' conftest.er1 >conftest.err
31157 rm -f conftest.er1
31158 cat conftest.err >&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } &&
31161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31162 { (case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31165 esac
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_try") 2>&5
31168 ac_status=$?
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; } &&
31171 { ac_try='test -s conftest$ac_exeext'
31172 { (case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31175 esac
31176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177 (eval "$ac_try") 2>&5
31178 ac_status=$?
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); }; }; then
31181 eval "$as_ac_var=yes"
31182 else
31183 echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31186 eval "$as_ac_var=no"
31189 rm -f core conftest.err conftest.$ac_objext \
31190 conftest$ac_exeext conftest.$ac_ext
31192 ac_res=`eval echo '${'$as_ac_var'}'`
31193 { echo "$as_me:$LINENO: result: $ac_res" >&5
31194 echo "${ECHO_T}$ac_res" >&6; }
31195 if test `eval echo '${'$as_ac_var'}'` = yes; then
31196 cat >>confdefs.h <<_ACEOF
31197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31198 _ACEOF
31201 done
31207 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31213 echo $ECHO_N "(cached) $ECHO_C" >&6
31214 else
31215 cat >conftest.$ac_ext <<_ACEOF
31216 /* confdefs.h. */
31217 _ACEOF
31218 cat confdefs.h >>conftest.$ac_ext
31219 cat >>conftest.$ac_ext <<_ACEOF
31220 /* end confdefs.h. */
31221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31223 #define $ac_func innocuous_$ac_func
31225 /* System header to define __stub macros and hopefully few prototypes,
31226 which can conflict with char $ac_func (); below.
31227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31228 <limits.h> exists even on freestanding compilers. */
31230 #ifdef __STDC__
31231 # include <limits.h>
31232 #else
31233 # include <assert.h>
31234 #endif
31236 #undef $ac_func
31238 /* Override any GCC internal prototype to avoid an error.
31239 Use char because int might match the return type of a GCC
31240 builtin and then its argument prototype would still apply. */
31241 #ifdef __cplusplus
31242 extern "C"
31243 #endif
31244 char $ac_func ();
31245 /* The GNU C library defines this for functions which it implements
31246 to always fail with ENOSYS. Some functions are actually named
31247 something starting with __ and the normal name is an alias. */
31248 #if defined __stub_$ac_func || defined __stub___$ac_func
31249 choke me
31250 #endif
31253 main ()
31255 return $ac_func ();
31257 return 0;
31259 _ACEOF
31260 rm -f conftest.$ac_objext conftest$ac_exeext
31261 if { (ac_try="$ac_link"
31262 case "(($ac_try" in
31263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264 *) ac_try_echo=$ac_try;;
31265 esac
31266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267 (eval "$ac_link") 2>conftest.er1
31268 ac_status=$?
31269 grep -v '^ *+' conftest.er1 >conftest.err
31270 rm -f conftest.er1
31271 cat conftest.err >&5
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); } &&
31274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31275 { (case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31278 esac
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_try") 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; } &&
31284 { ac_try='test -s conftest$ac_exeext'
31285 { (case "(($ac_try" in
31286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287 *) ac_try_echo=$ac_try;;
31288 esac
31289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290 (eval "$ac_try") 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; }; then
31294 eval "$as_ac_var=yes"
31295 else
31296 echo "$as_me: failed program was:" >&5
31297 sed 's/^/| /' conftest.$ac_ext >&5
31299 eval "$as_ac_var=no"
31302 rm -f core conftest.err conftest.$ac_objext \
31303 conftest$ac_exeext conftest.$ac_ext
31305 ac_res=`eval echo '${'$as_ac_var'}'`
31306 { echo "$as_me:$LINENO: result: $ac_res" >&5
31307 echo "${ECHO_T}$ac_res" >&6; }
31308 if test `eval echo '${'$as_ac_var'}'` = yes; then
31309 cat >>confdefs.h <<_ACEOF
31310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31311 _ACEOF
31314 done
31320 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31326 echo $ECHO_N "(cached) $ECHO_C" >&6
31327 else
31328 cat >conftest.$ac_ext <<_ACEOF
31329 /* confdefs.h. */
31330 _ACEOF
31331 cat confdefs.h >>conftest.$ac_ext
31332 cat >>conftest.$ac_ext <<_ACEOF
31333 /* end confdefs.h. */
31334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31336 #define $ac_func innocuous_$ac_func
31338 /* System header to define __stub macros and hopefully few prototypes,
31339 which can conflict with char $ac_func (); below.
31340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31341 <limits.h> exists even on freestanding compilers. */
31343 #ifdef __STDC__
31344 # include <limits.h>
31345 #else
31346 # include <assert.h>
31347 #endif
31349 #undef $ac_func
31351 /* Override any GCC internal prototype to avoid an error.
31352 Use char because int might match the return type of a GCC
31353 builtin and then its argument prototype would still apply. */
31354 #ifdef __cplusplus
31355 extern "C"
31356 #endif
31357 char $ac_func ();
31358 /* The GNU C library defines this for functions which it implements
31359 to always fail with ENOSYS. Some functions are actually named
31360 something starting with __ and the normal name is an alias. */
31361 #if defined __stub_$ac_func || defined __stub___$ac_func
31362 choke me
31363 #endif
31366 main ()
31368 return $ac_func ();
31370 return 0;
31372 _ACEOF
31373 rm -f conftest.$ac_objext conftest$ac_exeext
31374 if { (ac_try="$ac_link"
31375 case "(($ac_try" in
31376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31377 *) ac_try_echo=$ac_try;;
31378 esac
31379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380 (eval "$ac_link") 2>conftest.er1
31381 ac_status=$?
31382 grep -v '^ *+' conftest.er1 >conftest.err
31383 rm -f conftest.er1
31384 cat conftest.err >&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); } &&
31387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31388 { (case "(($ac_try" in
31389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390 *) ac_try_echo=$ac_try;;
31391 esac
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393 (eval "$ac_try") 2>&5
31394 ac_status=$?
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; } &&
31397 { ac_try='test -s conftest$ac_exeext'
31398 { (case "(($ac_try" in
31399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31400 *) ac_try_echo=$ac_try;;
31401 esac
31402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403 (eval "$ac_try") 2>&5
31404 ac_status=$?
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; }; then
31407 eval "$as_ac_var=yes"
31408 else
31409 echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31412 eval "$as_ac_var=no"
31415 rm -f core conftest.err conftest.$ac_objext \
31416 conftest$ac_exeext conftest.$ac_ext
31418 ac_res=`eval echo '${'$as_ac_var'}'`
31419 { echo "$as_me:$LINENO: result: $ac_res" >&5
31420 echo "${ECHO_T}$ac_res" >&6; }
31421 if test `eval echo '${'$as_ac_var'}'` = yes; then
31422 cat >>confdefs.h <<_ACEOF
31423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31424 _ACEOF
31427 done
31429 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31430 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31431 if test "${llvm_cv_c_printf_a+set}" = set; then
31432 echo $ECHO_N "(cached) $ECHO_C" >&6
31433 else
31434 ac_ext=c
31435 ac_cpp='$CPP $CPPFLAGS'
31436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31440 if test "$cross_compiling" = yes; then
31441 llvmac_cv_c_printf_a=no
31442 else
31443 cat >conftest.$ac_ext <<_ACEOF
31445 /* confdefs.h. */
31446 _ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h. */
31451 #include <stdio.h>
31452 #include <stdlib.h>
31455 main ()
31458 volatile double A, B;
31459 char Buffer[100];
31460 A = 1;
31461 A /= 10.0;
31462 sprintf(Buffer, "%a", A);
31463 B = atof(Buffer);
31464 if (A != B)
31465 return (1);
31466 if (A != 0x1.999999999999ap-4)
31467 return (1);
31468 return (0);
31470 return 0;
31472 _ACEOF
31473 rm -f conftest$ac_exeext
31474 if { (ac_try="$ac_link"
31475 case "(($ac_try" in
31476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31477 *) ac_try_echo=$ac_try;;
31478 esac
31479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31480 (eval "$ac_link") 2>&5
31481 ac_status=$?
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31484 { (case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31487 esac
31488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_try") 2>&5
31490 ac_status=$?
31491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); }; }; then
31493 llvm_cv_c_printf_a=yes
31494 else
31495 echo "$as_me: program exited with status $ac_status" >&5
31496 echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.$ac_ext >&5
31499 ( exit $ac_status )
31500 llvmac_cv_c_printf_a=no
31502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31506 ac_ext=c
31507 ac_cpp='$CPP $CPPFLAGS'
31508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31513 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31514 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31515 if test "$llvm_cv_c_printf_a" = "yes"; then
31517 cat >>confdefs.h <<\_ACEOF
31518 #define HAVE_PRINTF_A 1
31519 _ACEOF
31523 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31524 # for constant arguments. Useless!
31525 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31526 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31527 if test "${ac_cv_working_alloca_h+set}" = set; then
31528 echo $ECHO_N "(cached) $ECHO_C" >&6
31529 else
31530 cat >conftest.$ac_ext <<_ACEOF
31531 /* confdefs.h. */
31532 _ACEOF
31533 cat confdefs.h >>conftest.$ac_ext
31534 cat >>conftest.$ac_ext <<_ACEOF
31535 /* end confdefs.h. */
31536 #include <alloca.h>
31538 main ()
31540 char *p = (char *) alloca (2 * sizeof (int));
31541 if (p) return 0;
31543 return 0;
31545 _ACEOF
31546 rm -f conftest.$ac_objext conftest$ac_exeext
31547 if { (ac_try="$ac_link"
31548 case "(($ac_try" in
31549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31550 *) ac_try_echo=$ac_try;;
31551 esac
31552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31553 (eval "$ac_link") 2>conftest.er1
31554 ac_status=$?
31555 grep -v '^ *+' conftest.er1 >conftest.err
31556 rm -f conftest.er1
31557 cat conftest.err >&5
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); } &&
31560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31561 { (case "(($ac_try" in
31562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563 *) ac_try_echo=$ac_try;;
31564 esac
31565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566 (eval "$ac_try") 2>&5
31567 ac_status=$?
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; } &&
31570 { ac_try='test -s conftest$ac_exeext'
31571 { (case "(($ac_try" in
31572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573 *) ac_try_echo=$ac_try;;
31574 esac
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576 (eval "$ac_try") 2>&5
31577 ac_status=$?
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); }; }; then
31580 ac_cv_working_alloca_h=yes
31581 else
31582 echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31585 ac_cv_working_alloca_h=no
31588 rm -f core conftest.err conftest.$ac_objext \
31589 conftest$ac_exeext conftest.$ac_ext
31591 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31592 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31593 if test $ac_cv_working_alloca_h = yes; then
31595 cat >>confdefs.h <<\_ACEOF
31596 #define HAVE_ALLOCA_H 1
31597 _ACEOF
31601 { echo "$as_me:$LINENO: checking for alloca" >&5
31602 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31603 if test "${ac_cv_func_alloca_works+set}" = set; then
31604 echo $ECHO_N "(cached) $ECHO_C" >&6
31605 else
31606 cat >conftest.$ac_ext <<_ACEOF
31607 /* confdefs.h. */
31608 _ACEOF
31609 cat confdefs.h >>conftest.$ac_ext
31610 cat >>conftest.$ac_ext <<_ACEOF
31611 /* end confdefs.h. */
31612 #ifdef __GNUC__
31613 # define alloca __builtin_alloca
31614 #else
31615 # ifdef _MSC_VER
31616 # include <malloc.h>
31617 # define alloca _alloca
31618 # else
31619 # if HAVE_ALLOCA_H
31620 # include <alloca.h>
31621 # else
31622 # ifdef _AIX
31623 #pragma alloca
31624 # else
31625 # ifndef alloca /* predefined by HP cc +Olibcalls */
31626 char *alloca ();
31627 # endif
31628 # endif
31629 # endif
31630 # endif
31631 #endif
31634 main ()
31636 char *p = (char *) alloca (1);
31637 if (p) return 0;
31639 return 0;
31641 _ACEOF
31642 rm -f conftest.$ac_objext conftest$ac_exeext
31643 if { (ac_try="$ac_link"
31644 case "(($ac_try" in
31645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646 *) ac_try_echo=$ac_try;;
31647 esac
31648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31649 (eval "$ac_link") 2>conftest.er1
31650 ac_status=$?
31651 grep -v '^ *+' conftest.er1 >conftest.err
31652 rm -f conftest.er1
31653 cat conftest.err >&5
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); } &&
31656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31657 { (case "(($ac_try" in
31658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659 *) ac_try_echo=$ac_try;;
31660 esac
31661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662 (eval "$ac_try") 2>&5
31663 ac_status=$?
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); }; } &&
31666 { ac_try='test -s conftest$ac_exeext'
31667 { (case "(($ac_try" in
31668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669 *) ac_try_echo=$ac_try;;
31670 esac
31671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672 (eval "$ac_try") 2>&5
31673 ac_status=$?
31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); }; }; then
31676 ac_cv_func_alloca_works=yes
31677 else
31678 echo "$as_me: failed program was:" >&5
31679 sed 's/^/| /' conftest.$ac_ext >&5
31681 ac_cv_func_alloca_works=no
31684 rm -f core conftest.err conftest.$ac_objext \
31685 conftest$ac_exeext conftest.$ac_ext
31687 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31690 if test $ac_cv_func_alloca_works = yes; then
31692 cat >>confdefs.h <<\_ACEOF
31693 #define HAVE_ALLOCA 1
31694 _ACEOF
31696 else
31697 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31698 # that cause trouble. Some versions do not even contain alloca or
31699 # contain a buggy version. If you still want to use their alloca,
31700 # use ar to extract alloca.o from them instead of compiling alloca.c.
31702 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31704 cat >>confdefs.h <<\_ACEOF
31705 #define C_ALLOCA 1
31706 _ACEOF
31709 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31710 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31711 if test "${ac_cv_os_cray+set}" = set; then
31712 echo $ECHO_N "(cached) $ECHO_C" >&6
31713 else
31714 cat >conftest.$ac_ext <<_ACEOF
31715 /* confdefs.h. */
31716 _ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h. */
31720 #if defined CRAY && ! defined CRAY2
31721 webecray
31722 #else
31723 wenotbecray
31724 #endif
31726 _ACEOF
31727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31728 $EGREP "webecray" >/dev/null 2>&1; then
31729 ac_cv_os_cray=yes
31730 else
31731 ac_cv_os_cray=no
31733 rm -f conftest*
31736 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31737 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31738 if test $ac_cv_os_cray = yes; then
31739 for ac_func in _getb67 GETB67 getb67; do
31740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31744 echo $ECHO_N "(cached) $ECHO_C" >&6
31745 else
31746 cat >conftest.$ac_ext <<_ACEOF
31747 /* confdefs.h. */
31748 _ACEOF
31749 cat confdefs.h >>conftest.$ac_ext
31750 cat >>conftest.$ac_ext <<_ACEOF
31751 /* end confdefs.h. */
31752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31754 #define $ac_func innocuous_$ac_func
31756 /* System header to define __stub macros and hopefully few prototypes,
31757 which can conflict with char $ac_func (); below.
31758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31759 <limits.h> exists even on freestanding compilers. */
31761 #ifdef __STDC__
31762 # include <limits.h>
31763 #else
31764 # include <assert.h>
31765 #endif
31767 #undef $ac_func
31769 /* Override any GCC internal prototype to avoid an error.
31770 Use char because int might match the return type of a GCC
31771 builtin and then its argument prototype would still apply. */
31772 #ifdef __cplusplus
31773 extern "C"
31774 #endif
31775 char $ac_func ();
31776 /* The GNU C library defines this for functions which it implements
31777 to always fail with ENOSYS. Some functions are actually named
31778 something starting with __ and the normal name is an alias. */
31779 #if defined __stub_$ac_func || defined __stub___$ac_func
31780 choke me
31781 #endif
31784 main ()
31786 return $ac_func ();
31788 return 0;
31790 _ACEOF
31791 rm -f conftest.$ac_objext conftest$ac_exeext
31792 if { (ac_try="$ac_link"
31793 case "(($ac_try" in
31794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795 *) ac_try_echo=$ac_try;;
31796 esac
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_link") 2>conftest.er1
31799 ac_status=$?
31800 grep -v '^ *+' conftest.er1 >conftest.err
31801 rm -f conftest.er1
31802 cat conftest.err >&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); } &&
31805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31806 { (case "(($ac_try" in
31807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31808 *) ac_try_echo=$ac_try;;
31809 esac
31810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31811 (eval "$ac_try") 2>&5
31812 ac_status=$?
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); }; } &&
31815 { ac_try='test -s conftest$ac_exeext'
31816 { (case "(($ac_try" in
31817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31818 *) ac_try_echo=$ac_try;;
31819 esac
31820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31821 (eval "$ac_try") 2>&5
31822 ac_status=$?
31823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); }; }; then
31825 eval "$as_ac_var=yes"
31826 else
31827 echo "$as_me: failed program was:" >&5
31828 sed 's/^/| /' conftest.$ac_ext >&5
31830 eval "$as_ac_var=no"
31833 rm -f core conftest.err conftest.$ac_objext \
31834 conftest$ac_exeext conftest.$ac_ext
31836 ac_res=`eval echo '${'$as_ac_var'}'`
31837 { echo "$as_me:$LINENO: result: $ac_res" >&5
31838 echo "${ECHO_T}$ac_res" >&6; }
31839 if test `eval echo '${'$as_ac_var'}'` = yes; then
31841 cat >>confdefs.h <<_ACEOF
31842 #define CRAY_STACKSEG_END $ac_func
31843 _ACEOF
31845 break
31848 done
31851 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31852 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31853 if test "${ac_cv_c_stack_direction+set}" = set; then
31854 echo $ECHO_N "(cached) $ECHO_C" >&6
31855 else
31856 if test "$cross_compiling" = yes; then
31857 ac_cv_c_stack_direction=0
31858 else
31859 cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h. */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h. */
31865 $ac_includes_default
31867 find_stack_direction ()
31869 static char *addr = 0;
31870 auto char dummy;
31871 if (addr == 0)
31873 addr = &dummy;
31874 return find_stack_direction ();
31876 else
31877 return (&dummy > addr) ? 1 : -1;
31881 main ()
31883 return find_stack_direction () < 0;
31885 _ACEOF
31886 rm -f conftest$ac_exeext
31887 if { (ac_try="$ac_link"
31888 case "(($ac_try" in
31889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31890 *) ac_try_echo=$ac_try;;
31891 esac
31892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31893 (eval "$ac_link") 2>&5
31894 ac_status=$?
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31897 { (case "(($ac_try" in
31898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31899 *) ac_try_echo=$ac_try;;
31900 esac
31901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31902 (eval "$ac_try") 2>&5
31903 ac_status=$?
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); }; }; then
31906 ac_cv_c_stack_direction=1
31907 else
31908 echo "$as_me: program exited with status $ac_status" >&5
31909 echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31912 ( exit $ac_status )
31913 ac_cv_c_stack_direction=-1
31915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31920 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31921 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31923 cat >>confdefs.h <<_ACEOF
31924 #define STACK_DIRECTION $ac_cv_c_stack_direction
31925 _ACEOF
31931 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31932 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31933 if test "${ac_cv_func_rand48+set}" = set; then
31934 echo $ECHO_N "(cached) $ECHO_C" >&6
31935 else
31936 ac_ext=cpp
31937 ac_cpp='$CXXCPP $CPPFLAGS'
31938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31942 cat >conftest.$ac_ext <<_ACEOF
31943 /* confdefs.h. */
31944 _ACEOF
31945 cat confdefs.h >>conftest.$ac_ext
31946 cat >>conftest.$ac_ext <<_ACEOF
31947 /* end confdefs.h. */
31948 #include <stdlib.h>
31950 main ()
31952 srand48(0);lrand48();drand48();
31954 return 0;
31956 _ACEOF
31957 rm -f conftest.$ac_objext
31958 if { (ac_try="$ac_compile"
31959 case "(($ac_try" in
31960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31961 *) ac_try_echo=$ac_try;;
31962 esac
31963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31964 (eval "$ac_compile") 2>conftest.er1
31965 ac_status=$?
31966 grep -v '^ *+' conftest.er1 >conftest.err
31967 rm -f conftest.er1
31968 cat conftest.err >&5
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); } &&
31971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31972 { (case "(($ac_try" in
31973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31974 *) ac_try_echo=$ac_try;;
31975 esac
31976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31977 (eval "$ac_try") 2>&5
31978 ac_status=$?
31979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980 (exit $ac_status); }; } &&
31981 { ac_try='test -s conftest.$ac_objext'
31982 { (case "(($ac_try" in
31983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984 *) ac_try_echo=$ac_try;;
31985 esac
31986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987 (eval "$ac_try") 2>&5
31988 ac_status=$?
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; }; then
31991 ac_cv_func_rand48=yes
31992 else
31993 echo "$as_me: failed program was:" >&5
31994 sed 's/^/| /' conftest.$ac_ext >&5
31996 ac_cv_func_rand48=no
31999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32000 ac_ext=c
32001 ac_cpp='$CPP $CPPFLAGS'
32002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32007 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32008 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32010 if test "$ac_cv_func_rand48" = "yes" ; then
32012 cat >>confdefs.h <<\_ACEOF
32013 #define HAVE_RAND48 1
32014 _ACEOF
32019 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32020 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32021 if test "${ac_cv_cxx_namespaces+set}" = set; then
32022 echo $ECHO_N "(cached) $ECHO_C" >&6
32023 else
32024 ac_ext=cpp
32025 ac_cpp='$CXXCPP $CPPFLAGS'
32026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32030 cat >conftest.$ac_ext <<_ACEOF
32031 /* confdefs.h. */
32032 _ACEOF
32033 cat confdefs.h >>conftest.$ac_ext
32034 cat >>conftest.$ac_ext <<_ACEOF
32035 /* end confdefs.h. */
32036 namespace Outer { namespace Inner { int i = 0; }}
32038 main ()
32040 using namespace Outer::Inner; return i;
32042 return 0;
32044 _ACEOF
32045 rm -f conftest.$ac_objext
32046 if { (ac_try="$ac_compile"
32047 case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32050 esac
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_compile") 2>conftest.er1
32053 ac_status=$?
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
32059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32060 { (case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32063 esac
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest.$ac_objext'
32070 { (case "(($ac_try" in
32071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072 *) ac_try_echo=$ac_try;;
32073 esac
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075 (eval "$ac_try") 2>&5
32076 ac_status=$?
32077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078 (exit $ac_status); }; }; then
32079 ac_cv_cxx_namespaces=yes
32080 else
32081 echo "$as_me: failed program was:" >&5
32082 sed 's/^/| /' conftest.$ac_ext >&5
32084 ac_cv_cxx_namespaces=no
32087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32088 ac_ext=c
32089 ac_cpp='$CPP $CPPFLAGS'
32090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32096 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32097 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32098 if test "$ac_cv_cxx_namespaces" = yes; then
32100 cat >>confdefs.h <<\_ACEOF
32101 #define HAVE_NAMESPACES
32102 _ACEOF
32106 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32107 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32108 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32109 echo $ECHO_N "(cached) $ECHO_C" >&6
32110 else
32112 ac_ext=cpp
32113 ac_cpp='$CXXCPP $CPPFLAGS'
32114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32118 cat >conftest.$ac_ext <<_ACEOF
32119 /* confdefs.h. */
32120 _ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h. */
32124 #include <iterator>
32125 #ifdef HAVE_NAMESPACES
32126 using namespace std;
32127 #endif
32129 main ()
32131 iterator<int,int,int> t; return 0;
32133 return 0;
32135 _ACEOF
32136 rm -f conftest.$ac_objext
32137 if { (ac_try="$ac_compile"
32138 case "(($ac_try" in
32139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32140 *) ac_try_echo=$ac_try;;
32141 esac
32142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32143 (eval "$ac_compile") 2>conftest.er1
32144 ac_status=$?
32145 grep -v '^ *+' conftest.er1 >conftest.err
32146 rm -f conftest.er1
32147 cat conftest.err >&5
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); } &&
32150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32151 { (case "(($ac_try" in
32152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153 *) ac_try_echo=$ac_try;;
32154 esac
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156 (eval "$ac_try") 2>&5
32157 ac_status=$?
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); }; } &&
32160 { ac_try='test -s conftest.$ac_objext'
32161 { (case "(($ac_try" in
32162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32163 *) ac_try_echo=$ac_try;;
32164 esac
32165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166 (eval "$ac_try") 2>&5
32167 ac_status=$?
32168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169 (exit $ac_status); }; }; then
32170 ac_cv_cxx_have_std_iterator=yes
32171 else
32172 echo "$as_me: failed program was:" >&5
32173 sed 's/^/| /' conftest.$ac_ext >&5
32175 ac_cv_cxx_have_std_iterator=no
32178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32179 ac_ext=c
32180 ac_cpp='$CPP $CPPFLAGS'
32181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32187 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32188 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32189 if test "$ac_cv_cxx_have_std_iterator" = yes
32190 then
32192 cat >>confdefs.h <<\_ACEOF
32193 #define HAVE_STD_ITERATOR 1
32194 _ACEOF
32196 else
32198 cat >>confdefs.h <<\_ACEOF
32199 #define HAVE_STD_ITERATOR 0
32200 _ACEOF
32204 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32205 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32206 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32207 echo $ECHO_N "(cached) $ECHO_C" >&6
32208 else
32210 ac_ext=cpp
32211 ac_cpp='$CXXCPP $CPPFLAGS'
32212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32216 cat >conftest.$ac_ext <<_ACEOF
32217 /* confdefs.h. */
32218 _ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32222 #include <iterator>
32223 #ifdef HAVE_NAMESPACES
32224 using namespace std;
32225 #endif
32227 main ()
32229 bidirectional_iterator<int,int> t; return 0;
32231 return 0;
32233 _ACEOF
32234 rm -f conftest.$ac_objext
32235 if { (ac_try="$ac_compile"
32236 case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32239 esac
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_compile") 2>conftest.er1
32242 ac_status=$?
32243 grep -v '^ *+' conftest.er1 >conftest.err
32244 rm -f conftest.er1
32245 cat conftest.err >&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); } &&
32248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32249 { (case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32252 esac
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_try") 2>&5
32255 ac_status=$?
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; } &&
32258 { ac_try='test -s conftest.$ac_objext'
32259 { (case "(($ac_try" in
32260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261 *) ac_try_echo=$ac_try;;
32262 esac
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264 (eval "$ac_try") 2>&5
32265 ac_status=$?
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); }; }; then
32268 ac_cv_cxx_have_bi_iterator=yes
32269 else
32270 echo "$as_me: failed program was:" >&5
32271 sed 's/^/| /' conftest.$ac_ext >&5
32273 ac_cv_cxx_have_bi_iterator=no
32276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32277 ac_ext=c
32278 ac_cpp='$CPP $CPPFLAGS'
32279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32285 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32286 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32287 if test "$ac_cv_cxx_have_bi_iterator" = yes
32288 then
32290 cat >>confdefs.h <<\_ACEOF
32291 #define HAVE_BI_ITERATOR 1
32292 _ACEOF
32294 else
32296 cat >>confdefs.h <<\_ACEOF
32297 #define HAVE_BI_ITERATOR 0
32298 _ACEOF
32302 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32303 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32304 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32305 echo $ECHO_N "(cached) $ECHO_C" >&6
32306 else
32308 ac_ext=cpp
32309 ac_cpp='$CXXCPP $CPPFLAGS'
32310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32314 cat >conftest.$ac_ext <<_ACEOF
32315 /* confdefs.h. */
32316 _ACEOF
32317 cat confdefs.h >>conftest.$ac_ext
32318 cat >>conftest.$ac_ext <<_ACEOF
32319 /* end confdefs.h. */
32320 #include <iterator>
32321 #ifdef HAVE_NAMESPACES
32322 using namespace std;
32323 #endif
32325 main ()
32327 forward_iterator<int,int> t; return 0;
32329 return 0;
32331 _ACEOF
32332 rm -f conftest.$ac_objext
32333 if { (ac_try="$ac_compile"
32334 case "(($ac_try" in
32335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336 *) ac_try_echo=$ac_try;;
32337 esac
32338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339 (eval "$ac_compile") 2>conftest.er1
32340 ac_status=$?
32341 grep -v '^ *+' conftest.er1 >conftest.err
32342 rm -f conftest.er1
32343 cat conftest.err >&5
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); } &&
32346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32347 { (case "(($ac_try" in
32348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32349 *) ac_try_echo=$ac_try;;
32350 esac
32351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32352 (eval "$ac_try") 2>&5
32353 ac_status=$?
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); }; } &&
32356 { ac_try='test -s conftest.$ac_objext'
32357 { (case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32360 esac
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_try") 2>&5
32363 ac_status=$?
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; }; then
32366 ac_cv_cxx_have_fwd_iterator=yes
32367 else
32368 echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32371 ac_cv_cxx_have_fwd_iterator=no
32374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32375 ac_ext=c
32376 ac_cpp='$CPP $CPPFLAGS'
32377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32384 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32385 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32386 then
32388 cat >>confdefs.h <<\_ACEOF
32389 #define HAVE_FWD_ITERATOR 1
32390 _ACEOF
32392 else
32394 cat >>confdefs.h <<\_ACEOF
32395 #define HAVE_FWD_ITERATOR 0
32396 _ACEOF
32401 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32402 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32403 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32404 echo $ECHO_N "(cached) $ECHO_C" >&6
32405 else
32406 ac_ext=cpp
32407 ac_cpp='$CXXCPP $CPPFLAGS'
32408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32412 cat >conftest.$ac_ext <<_ACEOF
32413 /* confdefs.h. */
32414 _ACEOF
32415 cat confdefs.h >>conftest.$ac_ext
32416 cat >>conftest.$ac_ext <<_ACEOF
32417 /* end confdefs.h. */
32418 #include <math.h>
32420 main ()
32422 float f; isnan(f);
32424 return 0;
32426 _ACEOF
32427 rm -f conftest.$ac_objext
32428 if { (ac_try="$ac_compile"
32429 case "(($ac_try" in
32430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32431 *) ac_try_echo=$ac_try;;
32432 esac
32433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32434 (eval "$ac_compile") 2>conftest.er1
32435 ac_status=$?
32436 grep -v '^ *+' conftest.er1 >conftest.err
32437 rm -f conftest.er1
32438 cat conftest.err >&5
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); } &&
32441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32442 { (case "(($ac_try" in
32443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32444 *) ac_try_echo=$ac_try;;
32445 esac
32446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32447 (eval "$ac_try") 2>&5
32448 ac_status=$?
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); }; } &&
32451 { ac_try='test -s conftest.$ac_objext'
32452 { (case "(($ac_try" in
32453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454 *) ac_try_echo=$ac_try;;
32455 esac
32456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457 (eval "$ac_try") 2>&5
32458 ac_status=$?
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; }; then
32461 ac_cv_func_isnan_in_math_h=yes
32462 else
32463 echo "$as_me: failed program was:" >&5
32464 sed 's/^/| /' conftest.$ac_ext >&5
32466 ac_cv_func_isnan_in_math_h=no
32469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32470 ac_ext=c
32471 ac_cpp='$CPP $CPPFLAGS'
32472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32477 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32478 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32481 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32483 cat >>confdefs.h <<\_ACEOF
32484 #define HAVE_ISNAN_IN_MATH_H 1
32485 _ACEOF
32489 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32490 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32491 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32492 echo $ECHO_N "(cached) $ECHO_C" >&6
32493 else
32494 ac_ext=cpp
32495 ac_cpp='$CXXCPP $CPPFLAGS'
32496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32500 cat >conftest.$ac_ext <<_ACEOF
32501 /* confdefs.h. */
32502 _ACEOF
32503 cat confdefs.h >>conftest.$ac_ext
32504 cat >>conftest.$ac_ext <<_ACEOF
32505 /* end confdefs.h. */
32506 #include <cmath>
32508 main ()
32510 float f; isnan(f);
32512 return 0;
32514 _ACEOF
32515 rm -f conftest.$ac_objext
32516 if { (ac_try="$ac_compile"
32517 case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32520 esac
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_compile") 2>conftest.er1
32523 ac_status=$?
32524 grep -v '^ *+' conftest.er1 >conftest.err
32525 rm -f conftest.er1
32526 cat conftest.err >&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } &&
32529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32530 { (case "(($ac_try" in
32531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532 *) ac_try_echo=$ac_try;;
32533 esac
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535 (eval "$ac_try") 2>&5
32536 ac_status=$?
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; } &&
32539 { ac_try='test -s conftest.$ac_objext'
32540 { (case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32543 esac
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_try") 2>&5
32546 ac_status=$?
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; }; then
32549 ac_cv_func_isnan_in_cmath=yes
32550 else
32551 echo "$as_me: failed program was:" >&5
32552 sed 's/^/| /' conftest.$ac_ext >&5
32554 ac_cv_func_isnan_in_cmath=no
32557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32558 ac_ext=c
32559 ac_cpp='$CPP $CPPFLAGS'
32560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32565 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32566 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32568 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32570 cat >>confdefs.h <<\_ACEOF
32571 #define HAVE_ISNAN_IN_CMATH 1
32572 _ACEOF
32576 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32577 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32578 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32579 echo $ECHO_N "(cached) $ECHO_C" >&6
32580 else
32581 ac_ext=cpp
32582 ac_cpp='$CXXCPP $CPPFLAGS'
32583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32587 cat >conftest.$ac_ext <<_ACEOF
32588 /* confdefs.h. */
32589 _ACEOF
32590 cat confdefs.h >>conftest.$ac_ext
32591 cat >>conftest.$ac_ext <<_ACEOF
32592 /* end confdefs.h. */
32593 #include <cmath>
32595 main ()
32597 float f; std::isnan(f);
32599 return 0;
32601 _ACEOF
32602 rm -f conftest.$ac_objext
32603 if { (ac_try="$ac_compile"
32604 case "(($ac_try" in
32605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606 *) ac_try_echo=$ac_try;;
32607 esac
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609 (eval "$ac_compile") 2>conftest.er1
32610 ac_status=$?
32611 grep -v '^ *+' conftest.er1 >conftest.err
32612 rm -f conftest.er1
32613 cat conftest.err >&5
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); } &&
32616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32617 { (case "(($ac_try" in
32618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619 *) ac_try_echo=$ac_try;;
32620 esac
32621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622 (eval "$ac_try") 2>&5
32623 ac_status=$?
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; } &&
32626 { ac_try='test -s conftest.$ac_objext'
32627 { (case "(($ac_try" in
32628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32629 *) ac_try_echo=$ac_try;;
32630 esac
32631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32632 (eval "$ac_try") 2>&5
32633 ac_status=$?
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); }; }; then
32636 ac_cv_func_std_isnan_in_cmath=yes
32637 else
32638 echo "$as_me: failed program was:" >&5
32639 sed 's/^/| /' conftest.$ac_ext >&5
32641 ac_cv_func_std_isnan_in_cmath=no
32644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32645 ac_ext=c
32646 ac_cpp='$CPP $CPPFLAGS'
32647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32652 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32653 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32655 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32657 cat >>confdefs.h <<\_ACEOF
32658 #define HAVE_STD_ISNAN_IN_CMATH 1
32659 _ACEOF
32664 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32665 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32666 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32667 echo $ECHO_N "(cached) $ECHO_C" >&6
32668 else
32669 ac_ext=cpp
32670 ac_cpp='$CXXCPP $CPPFLAGS'
32671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32675 cat >conftest.$ac_ext <<_ACEOF
32676 /* confdefs.h. */
32677 _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h. */
32681 #include <math.h>
32683 main ()
32685 float f; isinf(f);
32687 return 0;
32689 _ACEOF
32690 rm -f conftest.$ac_objext
32691 if { (ac_try="$ac_compile"
32692 case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32695 esac
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_compile") 2>conftest.er1
32698 ac_status=$?
32699 grep -v '^ *+' conftest.er1 >conftest.err
32700 rm -f conftest.er1
32701 cat conftest.err >&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); } &&
32704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32705 { (case "(($ac_try" in
32706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707 *) ac_try_echo=$ac_try;;
32708 esac
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710 (eval "$ac_try") 2>&5
32711 ac_status=$?
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; } &&
32714 { ac_try='test -s conftest.$ac_objext'
32715 { (case "(($ac_try" in
32716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717 *) ac_try_echo=$ac_try;;
32718 esac
32719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720 (eval "$ac_try") 2>&5
32721 ac_status=$?
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); }; }; then
32724 ac_cv_func_isinf_in_math_h=yes
32725 else
32726 echo "$as_me: failed program was:" >&5
32727 sed 's/^/| /' conftest.$ac_ext >&5
32729 ac_cv_func_isinf_in_math_h=no
32732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32733 ac_ext=c
32734 ac_cpp='$CPP $CPPFLAGS'
32735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32740 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32741 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32743 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32745 cat >>confdefs.h <<\_ACEOF
32746 #define HAVE_ISINF_IN_MATH_H 1
32747 _ACEOF
32751 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32752 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32753 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32755 else
32756 ac_ext=cpp
32757 ac_cpp='$CXXCPP $CPPFLAGS'
32758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32762 cat >conftest.$ac_ext <<_ACEOF
32763 /* confdefs.h. */
32764 _ACEOF
32765 cat confdefs.h >>conftest.$ac_ext
32766 cat >>conftest.$ac_ext <<_ACEOF
32767 /* end confdefs.h. */
32768 #include <cmath>
32770 main ()
32772 float f; isinf(f);
32774 return 0;
32776 _ACEOF
32777 rm -f conftest.$ac_objext
32778 if { (ac_try="$ac_compile"
32779 case "(($ac_try" in
32780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781 *) ac_try_echo=$ac_try;;
32782 esac
32783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784 (eval "$ac_compile") 2>conftest.er1
32785 ac_status=$?
32786 grep -v '^ *+' conftest.er1 >conftest.err
32787 rm -f conftest.er1
32788 cat conftest.err >&5
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); } &&
32791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32792 { (case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32795 esac
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_try") 2>&5
32798 ac_status=$?
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; } &&
32801 { ac_try='test -s conftest.$ac_objext'
32802 { (case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32805 esac
32806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_try") 2>&5
32808 ac_status=$?
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); }; }; then
32811 ac_cv_func_isinf_in_cmath=yes
32812 else
32813 echo "$as_me: failed program was:" >&5
32814 sed 's/^/| /' conftest.$ac_ext >&5
32816 ac_cv_func_isinf_in_cmath=no
32819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32820 ac_ext=c
32821 ac_cpp='$CPP $CPPFLAGS'
32822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32827 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32828 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32830 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32832 cat >>confdefs.h <<\_ACEOF
32833 #define HAVE_ISINF_IN_CMATH 1
32834 _ACEOF
32838 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32839 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32840 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32841 echo $ECHO_N "(cached) $ECHO_C" >&6
32842 else
32843 ac_ext=cpp
32844 ac_cpp='$CXXCPP $CPPFLAGS'
32845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32849 cat >conftest.$ac_ext <<_ACEOF
32850 /* confdefs.h. */
32851 _ACEOF
32852 cat confdefs.h >>conftest.$ac_ext
32853 cat >>conftest.$ac_ext <<_ACEOF
32854 /* end confdefs.h. */
32855 #include <cmath>
32857 main ()
32859 float f; std::isinf(f)}
32861 return 0;
32863 _ACEOF
32864 rm -f conftest.$ac_objext
32865 if { (ac_try="$ac_compile"
32866 case "(($ac_try" in
32867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32868 *) ac_try_echo=$ac_try;;
32869 esac
32870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32871 (eval "$ac_compile") 2>conftest.er1
32872 ac_status=$?
32873 grep -v '^ *+' conftest.er1 >conftest.err
32874 rm -f conftest.er1
32875 cat conftest.err >&5
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); } &&
32878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32879 { (case "(($ac_try" in
32880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881 *) ac_try_echo=$ac_try;;
32882 esac
32883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884 (eval "$ac_try") 2>&5
32885 ac_status=$?
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; } &&
32888 { ac_try='test -s conftest.$ac_objext'
32889 { (case "(($ac_try" in
32890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32891 *) ac_try_echo=$ac_try;;
32892 esac
32893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32894 (eval "$ac_try") 2>&5
32895 ac_status=$?
32896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897 (exit $ac_status); }; }; then
32898 ac_cv_func_std_isinf_in_cmath=yes
32899 else
32900 echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32903 ac_cv_func_std_isinf_in_cmath=no
32906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32907 ac_ext=c
32908 ac_cpp='$CPP $CPPFLAGS'
32909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32914 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32915 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32917 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32919 cat >>confdefs.h <<\_ACEOF
32920 #define HAVE_STD_ISINF_IN_CMATH 1
32921 _ACEOF
32925 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32926 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32927 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32928 echo $ECHO_N "(cached) $ECHO_C" >&6
32929 else
32930 ac_ext=cpp
32931 ac_cpp='$CXXCPP $CPPFLAGS'
32932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32936 cat >conftest.$ac_ext <<_ACEOF
32937 /* confdefs.h. */
32938 _ACEOF
32939 cat confdefs.h >>conftest.$ac_ext
32940 cat >>conftest.$ac_ext <<_ACEOF
32941 /* end confdefs.h. */
32942 #include <ieeefp.h>
32944 main ()
32946 float f; finite(f);
32948 return 0;
32950 _ACEOF
32951 rm -f conftest.$ac_objext
32952 if { (ac_try="$ac_compile"
32953 case "(($ac_try" in
32954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32955 *) ac_try_echo=$ac_try;;
32956 esac
32957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32958 (eval "$ac_compile") 2>conftest.er1
32959 ac_status=$?
32960 grep -v '^ *+' conftest.er1 >conftest.err
32961 rm -f conftest.er1
32962 cat conftest.err >&5
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); } &&
32965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32966 { (case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32969 esac
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_try") 2>&5
32972 ac_status=$?
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; } &&
32975 { ac_try='test -s conftest.$ac_objext'
32976 { (case "(($ac_try" in
32977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32978 *) ac_try_echo=$ac_try;;
32979 esac
32980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32981 (eval "$ac_try") 2>&5
32982 ac_status=$?
32983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984 (exit $ac_status); }; }; then
32985 ac_cv_func_finite_in_ieeefp_h=yes
32986 else
32987 echo "$as_me: failed program was:" >&5
32988 sed 's/^/| /' conftest.$ac_ext >&5
32990 ac_cv_func_finite_in_ieeefp_h=no
32993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32994 ac_ext=c
32995 ac_cpp='$CPP $CPPFLAGS'
32996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33001 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33002 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33004 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33006 cat >>confdefs.h <<\_ACEOF
33007 #define HAVE_FINITE_IN_IEEEFP_H 1
33008 _ACEOF
33014 if test "$llvm_cv_platform_type" = "Unix" ; then
33017 for ac_header in stdlib.h unistd.h
33019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33024 echo $ECHO_N "(cached) $ECHO_C" >&6
33026 ac_res=`eval echo '${'$as_ac_Header'}'`
33027 { echo "$as_me:$LINENO: result: $ac_res" >&5
33028 echo "${ECHO_T}$ac_res" >&6; }
33029 else
33030 # Is the header compilable?
33031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33033 cat >conftest.$ac_ext <<_ACEOF
33034 /* confdefs.h. */
33035 _ACEOF
33036 cat confdefs.h >>conftest.$ac_ext
33037 cat >>conftest.$ac_ext <<_ACEOF
33038 /* end confdefs.h. */
33039 $ac_includes_default
33040 #include <$ac_header>
33041 _ACEOF
33042 rm -f conftest.$ac_objext
33043 if { (ac_try="$ac_compile"
33044 case "(($ac_try" in
33045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046 *) ac_try_echo=$ac_try;;
33047 esac
33048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049 (eval "$ac_compile") 2>conftest.er1
33050 ac_status=$?
33051 grep -v '^ *+' conftest.er1 >conftest.err
33052 rm -f conftest.er1
33053 cat conftest.err >&5
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); } &&
33056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33057 { (case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33060 esac
33061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33062 (eval "$ac_try") 2>&5
33063 ac_status=$?
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); }; } &&
33066 { ac_try='test -s conftest.$ac_objext'
33067 { (case "(($ac_try" in
33068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069 *) ac_try_echo=$ac_try;;
33070 esac
33071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072 (eval "$ac_try") 2>&5
33073 ac_status=$?
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); }; }; then
33076 ac_header_compiler=yes
33077 else
33078 echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33081 ac_header_compiler=no
33084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33086 echo "${ECHO_T}$ac_header_compiler" >&6; }
33088 # Is the header present?
33089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33091 cat >conftest.$ac_ext <<_ACEOF
33092 /* confdefs.h. */
33093 _ACEOF
33094 cat confdefs.h >>conftest.$ac_ext
33095 cat >>conftest.$ac_ext <<_ACEOF
33096 /* end confdefs.h. */
33097 #include <$ac_header>
33098 _ACEOF
33099 if { (ac_try="$ac_cpp conftest.$ac_ext"
33100 case "(($ac_try" in
33101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33102 *) ac_try_echo=$ac_try;;
33103 esac
33104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33106 ac_status=$?
33107 grep -v '^ *+' conftest.er1 >conftest.err
33108 rm -f conftest.er1
33109 cat conftest.err >&5
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); } >/dev/null; then
33112 if test -s conftest.err; then
33113 ac_cpp_err=$ac_c_preproc_warn_flag
33114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33115 else
33116 ac_cpp_err=
33118 else
33119 ac_cpp_err=yes
33121 if test -z "$ac_cpp_err"; then
33122 ac_header_preproc=yes
33123 else
33124 echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.$ac_ext >&5
33127 ac_header_preproc=no
33130 rm -f conftest.err conftest.$ac_ext
33131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33132 echo "${ECHO_T}$ac_header_preproc" >&6; }
33134 # So? What about this header?
33135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33136 yes:no: )
33137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33141 ac_header_preproc=yes
33143 no:yes:* )
33144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33156 ( cat <<\_ASBOX
33157 ## ----------------------------------- ##
33158 ## Report this to llvmbugs@cs.uiuc.edu ##
33159 ## ----------------------------------- ##
33160 _ASBOX
33161 ) | sed "s/^/$as_me: WARNING: /" >&2
33163 esac
33164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33167 echo $ECHO_N "(cached) $ECHO_C" >&6
33168 else
33169 eval "$as_ac_Header=\$ac_header_preproc"
33171 ac_res=`eval echo '${'$as_ac_Header'}'`
33172 { echo "$as_me:$LINENO: result: $ac_res" >&5
33173 echo "${ECHO_T}$ac_res" >&6; }
33176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33177 cat >>confdefs.h <<_ACEOF
33178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33179 _ACEOF
33183 done
33186 for ac_func in getpagesize
33188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33192 echo $ECHO_N "(cached) $ECHO_C" >&6
33193 else
33194 cat >conftest.$ac_ext <<_ACEOF
33195 /* confdefs.h. */
33196 _ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h. */
33200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33202 #define $ac_func innocuous_$ac_func
33204 /* System header to define __stub macros and hopefully few prototypes,
33205 which can conflict with char $ac_func (); below.
33206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33207 <limits.h> exists even on freestanding compilers. */
33209 #ifdef __STDC__
33210 # include <limits.h>
33211 #else
33212 # include <assert.h>
33213 #endif
33215 #undef $ac_func
33217 /* Override any GCC internal prototype to avoid an error.
33218 Use char because int might match the return type of a GCC
33219 builtin and then its argument prototype would still apply. */
33220 #ifdef __cplusplus
33221 extern "C"
33222 #endif
33223 char $ac_func ();
33224 /* The GNU C library defines this for functions which it implements
33225 to always fail with ENOSYS. Some functions are actually named
33226 something starting with __ and the normal name is an alias. */
33227 #if defined __stub_$ac_func || defined __stub___$ac_func
33228 choke me
33229 #endif
33232 main ()
33234 return $ac_func ();
33236 return 0;
33238 _ACEOF
33239 rm -f conftest.$ac_objext conftest$ac_exeext
33240 if { (ac_try="$ac_link"
33241 case "(($ac_try" in
33242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243 *) ac_try_echo=$ac_try;;
33244 esac
33245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33246 (eval "$ac_link") 2>conftest.er1
33247 ac_status=$?
33248 grep -v '^ *+' conftest.er1 >conftest.err
33249 rm -f conftest.er1
33250 cat conftest.err >&5
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); } &&
33253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33254 { (case "(($ac_try" in
33255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256 *) ac_try_echo=$ac_try;;
33257 esac
33258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33259 (eval "$ac_try") 2>&5
33260 ac_status=$?
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); }; } &&
33263 { ac_try='test -s conftest$ac_exeext'
33264 { (case "(($ac_try" in
33265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266 *) ac_try_echo=$ac_try;;
33267 esac
33268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269 (eval "$ac_try") 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); }; }; then
33273 eval "$as_ac_var=yes"
33274 else
33275 echo "$as_me: failed program was:" >&5
33276 sed 's/^/| /' conftest.$ac_ext >&5
33278 eval "$as_ac_var=no"
33281 rm -f core conftest.err conftest.$ac_objext \
33282 conftest$ac_exeext conftest.$ac_ext
33284 ac_res=`eval echo '${'$as_ac_var'}'`
33285 { echo "$as_me:$LINENO: result: $ac_res" >&5
33286 echo "${ECHO_T}$ac_res" >&6; }
33287 if test `eval echo '${'$as_ac_var'}'` = yes; then
33288 cat >>confdefs.h <<_ACEOF
33289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33290 _ACEOF
33293 done
33295 { echo "$as_me:$LINENO: checking for working mmap" >&5
33296 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33297 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33298 echo $ECHO_N "(cached) $ECHO_C" >&6
33299 else
33300 if test "$cross_compiling" = yes; then
33301 ac_cv_func_mmap_fixed_mapped=no
33302 else
33303 cat >conftest.$ac_ext <<_ACEOF
33304 /* confdefs.h. */
33305 _ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h. */
33309 $ac_includes_default
33310 /* malloc might have been renamed as rpl_malloc. */
33311 #undef malloc
33313 /* Thanks to Mike Haertel and Jim Avera for this test.
33314 Here is a matrix of mmap possibilities:
33315 mmap private not fixed
33316 mmap private fixed at somewhere currently unmapped
33317 mmap private fixed at somewhere already mapped
33318 mmap shared not fixed
33319 mmap shared fixed at somewhere currently unmapped
33320 mmap shared fixed at somewhere already mapped
33321 For private mappings, we should verify that changes cannot be read()
33322 back from the file, nor mmap's back from the file at a different
33323 address. (There have been systems where private was not correctly
33324 implemented like the infamous i386 svr4.0, and systems where the
33325 VM page cache was not coherent with the file system buffer cache
33326 like early versions of FreeBSD and possibly contemporary NetBSD.)
33327 For shared mappings, we should conversely verify that changes get
33328 propagated back to all the places they're supposed to be.
33330 Grep wants private fixed already mapped.
33331 The main things grep needs to know about mmap are:
33332 * does it exist and is it safe to write into the mmap'd area
33333 * how to use it (BSD variants) */
33335 #include <fcntl.h>
33336 #include <sys/mman.h>
33338 #if !STDC_HEADERS && !HAVE_STDLIB_H
33339 char *malloc ();
33340 #endif
33342 /* This mess was copied from the GNU getpagesize.h. */
33343 #if !HAVE_GETPAGESIZE
33344 /* Assume that all systems that can run configure have sys/param.h. */
33345 # if !HAVE_SYS_PARAM_H
33346 # define HAVE_SYS_PARAM_H 1
33347 # endif
33349 # ifdef _SC_PAGESIZE
33350 # define getpagesize() sysconf(_SC_PAGESIZE)
33351 # else /* no _SC_PAGESIZE */
33352 # if HAVE_SYS_PARAM_H
33353 # include <sys/param.h>
33354 # ifdef EXEC_PAGESIZE
33355 # define getpagesize() EXEC_PAGESIZE
33356 # else /* no EXEC_PAGESIZE */
33357 # ifdef NBPG
33358 # define getpagesize() NBPG * CLSIZE
33359 # ifndef CLSIZE
33360 # define CLSIZE 1
33361 # endif /* no CLSIZE */
33362 # else /* no NBPG */
33363 # ifdef NBPC
33364 # define getpagesize() NBPC
33365 # else /* no NBPC */
33366 # ifdef PAGESIZE
33367 # define getpagesize() PAGESIZE
33368 # endif /* PAGESIZE */
33369 # endif /* no NBPC */
33370 # endif /* no NBPG */
33371 # endif /* no EXEC_PAGESIZE */
33372 # else /* no HAVE_SYS_PARAM_H */
33373 # define getpagesize() 8192 /* punt totally */
33374 # endif /* no HAVE_SYS_PARAM_H */
33375 # endif /* no _SC_PAGESIZE */
33377 #endif /* no HAVE_GETPAGESIZE */
33380 main ()
33382 char *data, *data2, *data3;
33383 int i, pagesize;
33384 int fd;
33386 pagesize = getpagesize ();
33388 /* First, make a file with some known garbage in it. */
33389 data = (char *) malloc (pagesize);
33390 if (!data)
33391 return 1;
33392 for (i = 0; i < pagesize; ++i)
33393 *(data + i) = rand ();
33394 umask (0);
33395 fd = creat ("conftest.mmap", 0600);
33396 if (fd < 0)
33397 return 1;
33398 if (write (fd, data, pagesize) != pagesize)
33399 return 1;
33400 close (fd);
33402 /* Next, try to mmap the file at a fixed address which already has
33403 something else allocated at it. If we can, also make sure that
33404 we see the same garbage. */
33405 fd = open ("conftest.mmap", O_RDWR);
33406 if (fd < 0)
33407 return 1;
33408 data2 = (char *) malloc (2 * pagesize);
33409 if (!data2)
33410 return 1;
33411 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33412 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33413 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33414 return 1;
33415 for (i = 0; i < pagesize; ++i)
33416 if (*(data + i) != *(data2 + i))
33417 return 1;
33419 /* Finally, make sure that changes to the mapped area do not
33420 percolate back to the file as seen by read(). (This is a bug on
33421 some variants of i386 svr4.0.) */
33422 for (i = 0; i < pagesize; ++i)
33423 *(data2 + i) = *(data2 + i) + 1;
33424 data3 = (char *) malloc (pagesize);
33425 if (!data3)
33426 return 1;
33427 if (read (fd, data3, pagesize) != pagesize)
33428 return 1;
33429 for (i = 0; i < pagesize; ++i)
33430 if (*(data + i) != *(data3 + i))
33431 return 1;
33432 close (fd);
33433 return 0;
33435 _ACEOF
33436 rm -f conftest$ac_exeext
33437 if { (ac_try="$ac_link"
33438 case "(($ac_try" in
33439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440 *) ac_try_echo=$ac_try;;
33441 esac
33442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33443 (eval "$ac_link") 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33447 { (case "(($ac_try" in
33448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33449 *) ac_try_echo=$ac_try;;
33450 esac
33451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33452 (eval "$ac_try") 2>&5
33453 ac_status=$?
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); }; }; then
33456 ac_cv_func_mmap_fixed_mapped=yes
33457 else
33458 echo "$as_me: program exited with status $ac_status" >&5
33459 echo "$as_me: failed program was:" >&5
33460 sed 's/^/| /' conftest.$ac_ext >&5
33462 ( exit $ac_status )
33463 ac_cv_func_mmap_fixed_mapped=no
33465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33470 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33471 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33472 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33474 cat >>confdefs.h <<\_ACEOF
33475 #define HAVE_MMAP 1
33476 _ACEOF
33479 rm -f conftest.mmap
33481 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33482 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33483 if test "${ac_cv_func_mmap_file+set}" = set; then
33484 echo $ECHO_N "(cached) $ECHO_C" >&6
33485 else
33486 ac_ext=c
33487 ac_cpp='$CPP $CPPFLAGS'
33488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33492 if test "$cross_compiling" = yes; then
33493 ac_cv_func_mmap_file=no
33494 else
33495 cat >conftest.$ac_ext <<_ACEOF
33497 /* confdefs.h. */
33498 _ACEOF
33499 cat confdefs.h >>conftest.$ac_ext
33500 cat >>conftest.$ac_ext <<_ACEOF
33501 /* end confdefs.h. */
33503 #include <sys/types.h>
33504 #include <sys/mman.h>
33505 #include <fcntl.h>
33508 main ()
33511 int fd;
33512 fd = creat ("foo",0777);
33513 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33514 unlink ("foo");
33515 return (fd != (int) MAP_FAILED);
33517 return 0;
33519 _ACEOF
33520 rm -f conftest$ac_exeext
33521 if { (ac_try="$ac_link"
33522 case "(($ac_try" in
33523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524 *) ac_try_echo=$ac_try;;
33525 esac
33526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527 (eval "$ac_link") 2>&5
33528 ac_status=$?
33529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33531 { (case "(($ac_try" in
33532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33533 *) ac_try_echo=$ac_try;;
33534 esac
33535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33536 (eval "$ac_try") 2>&5
33537 ac_status=$?
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; }; then
33540 ac_cv_func_mmap_file=yes
33541 else
33542 echo "$as_me: program exited with status $ac_status" >&5
33543 echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33546 ( exit $ac_status )
33547 ac_cv_func_mmap_file=no
33549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33553 ac_ext=c
33554 ac_cpp='$CPP $CPPFLAGS'
33555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33561 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33562 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33563 if test "$ac_cv_func_mmap_file" = yes; then
33565 cat >>confdefs.h <<\_ACEOF
33566 #define HAVE_MMAP_FILE
33567 _ACEOF
33569 MMAP_FILE=yes
33573 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33574 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33575 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33576 echo $ECHO_N "(cached) $ECHO_C" >&6
33577 else
33578 if test "$llvm_cv_os_type" = "Interix" ; then
33579 ac_cv_need_dev_zero_for_mmap=yes
33580 else
33581 ac_cv_need_dev_zero_for_mmap=no
33585 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33586 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33587 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33589 cat >>confdefs.h <<\_ACEOF
33590 #define NEED_DEV_ZERO_FOR_MMAP 1
33591 _ACEOF
33595 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33596 then
33597 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33598 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33600 if test "$ac_cv_func_mmap_file" = "no"
33601 then
33602 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33603 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33609 for ac_func in __dso_handle
33611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33615 echo $ECHO_N "(cached) $ECHO_C" >&6
33616 else
33617 cat >conftest.$ac_ext <<_ACEOF
33618 /* confdefs.h. */
33619 _ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33625 #define $ac_func innocuous_$ac_func
33627 /* System header to define __stub macros and hopefully few prototypes,
33628 which can conflict with char $ac_func (); below.
33629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33630 <limits.h> exists even on freestanding compilers. */
33632 #ifdef __STDC__
33633 # include <limits.h>
33634 #else
33635 # include <assert.h>
33636 #endif
33638 #undef $ac_func
33640 /* Override any GCC internal prototype to avoid an error.
33641 Use char because int might match the return type of a GCC
33642 builtin and then its argument prototype would still apply. */
33643 #ifdef __cplusplus
33644 extern "C"
33645 #endif
33646 char $ac_func ();
33647 /* The GNU C library defines this for functions which it implements
33648 to always fail with ENOSYS. Some functions are actually named
33649 something starting with __ and the normal name is an alias. */
33650 #if defined __stub_$ac_func || defined __stub___$ac_func
33651 choke me
33652 #endif
33655 main ()
33657 return $ac_func ();
33659 return 0;
33661 _ACEOF
33662 rm -f conftest.$ac_objext conftest$ac_exeext
33663 if { (ac_try="$ac_link"
33664 case "(($ac_try" in
33665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33666 *) ac_try_echo=$ac_try;;
33667 esac
33668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669 (eval "$ac_link") 2>conftest.er1
33670 ac_status=$?
33671 grep -v '^ *+' conftest.er1 >conftest.err
33672 rm -f conftest.er1
33673 cat conftest.err >&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } &&
33676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33677 { (case "(($ac_try" in
33678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33679 *) ac_try_echo=$ac_try;;
33680 esac
33681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33682 (eval "$ac_try") 2>&5
33683 ac_status=$?
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); }; } &&
33686 { ac_try='test -s conftest$ac_exeext'
33687 { (case "(($ac_try" in
33688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33689 *) ac_try_echo=$ac_try;;
33690 esac
33691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33692 (eval "$ac_try") 2>&5
33693 ac_status=$?
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); }; }; then
33696 eval "$as_ac_var=yes"
33697 else
33698 echo "$as_me: failed program was:" >&5
33699 sed 's/^/| /' conftest.$ac_ext >&5
33701 eval "$as_ac_var=no"
33704 rm -f core conftest.err conftest.$ac_objext \
33705 conftest$ac_exeext conftest.$ac_ext
33707 ac_res=`eval echo '${'$as_ac_var'}'`
33708 { echo "$as_me:$LINENO: result: $ac_res" >&5
33709 echo "${ECHO_T}$ac_res" >&6; }
33710 if test `eval echo '${'$as_ac_var'}'` = yes; then
33711 cat >>confdefs.h <<_ACEOF
33712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33713 _ACEOF
33716 done
33719 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33720 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33721 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33722 echo $ECHO_N "(cached) $ECHO_C" >&6
33723 else
33724 llvm_cv_llvmgcc_sanity="no"
33725 if test -x "$LLVMGCC" ; then
33726 cp /dev/null conftest.c
33727 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33728 grep 'target datalayout =' > /dev/null 2>&1
33729 if test $? -eq 0 ; then
33730 llvm_cv_llvmgcc_sanity="yes"
33732 rm conftest.c
33735 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33736 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33738 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33739 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33740 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33741 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33742 LLVMCC1=$llvmcc1path
33744 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33745 LLVMCC1PLUS=$llvmcc1pluspath
33747 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33748 LLVMGCCDIR=$llvmgccdir
33750 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33751 LLVMGCCLIBEXEC=$llvmgcclibexec
33753 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33754 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33755 LLVMGCC_VERSION=$llvmgccversion
33757 LLVMGCC_MAJVERS=$llvmgccmajvers
33759 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33760 LLVMGCC_LANGS=$llvmgcclangs
33762 { echo "$as_me:$LINENO: result: ok" >&5
33763 echo "${ECHO_T}ok" >&6; }
33766 SHLIBEXT=$libltdl_cv_shlibext
33769 # Translate the various configuration directories and other basic
33770 # information into substitutions that will end up in Makefile.config.in
33771 # that these configured values can be used by the makefiles
33772 if test "${prefix}" = "NONE" ; then
33773 prefix="/usr/local"
33775 eval LLVM_PREFIX="${prefix}";
33776 eval LLVM_BINDIR="${prefix}/bin";
33777 eval LLVM_LIBDIR="${prefix}/lib";
33778 eval LLVM_DATADIR="${prefix}/share/llvm";
33779 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33780 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33781 eval LLVM_INCLUDEDIR="${prefix}/include";
33782 eval LLVM_INFODIR="${prefix}/info";
33783 eval LLVM_MANDIR="${prefix}/man";
33784 LLVM_CONFIGTIME=`date`
33796 # Place the various directores into the config.h file as #defines so that we
33797 # can know about the installation paths within LLVM.
33799 cat >>confdefs.h <<_ACEOF
33800 #define LLVM_PREFIX "$LLVM_PREFIX"
33801 _ACEOF
33804 cat >>confdefs.h <<_ACEOF
33805 #define LLVM_BINDIR "$LLVM_BINDIR"
33806 _ACEOF
33809 cat >>confdefs.h <<_ACEOF
33810 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33811 _ACEOF
33814 cat >>confdefs.h <<_ACEOF
33815 #define LLVM_DATADIR "$LLVM_DATADIR"
33816 _ACEOF
33819 cat >>confdefs.h <<_ACEOF
33820 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33821 _ACEOF
33824 cat >>confdefs.h <<_ACEOF
33825 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33826 _ACEOF
33829 cat >>confdefs.h <<_ACEOF
33830 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33831 _ACEOF
33834 cat >>confdefs.h <<_ACEOF
33835 #define LLVM_INFODIR "$LLVM_INFODIR"
33836 _ACEOF
33839 cat >>confdefs.h <<_ACEOF
33840 #define LLVM_MANDIR "$LLVM_MANDIR"
33841 _ACEOF
33844 cat >>confdefs.h <<_ACEOF
33845 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33846 _ACEOF
33849 cat >>confdefs.h <<_ACEOF
33850 #define LLVM_HOSTTRIPLE "$host"
33851 _ACEOF
33854 # Determine which bindings to build.
33855 if test "$BINDINGS_TO_BUILD" = auto ; then
33856 BINDINGS_TO_BUILD=""
33857 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33858 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33861 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33864 # This isn't really configurey, but it avoids having to repeat the list in
33865 # other files.
33866 ALL_BINDINGS=ocaml
33869 # Do any work necessary to ensure that bindings have what they need.
33870 binding_prereqs_failed=0
33871 for a_binding in $BINDINGS_TO_BUILD ; do
33872 case "$a_binding" in
33873 ocaml)
33874 if test "x$OCAMLC" = x ; then
33875 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33876 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33877 binding_prereqs_failed=1
33879 if test "x$OCAMLDEP" = x ; then
33880 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33881 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33882 binding_prereqs_failed=1
33884 if test "x$OCAMLOPT" = x ; then
33885 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33886 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33888 if test "x$with_ocaml_libdir" != xauto ; then
33889 OCAML_LIBDIR=$with_ocaml_libdir
33891 else
33892 ocaml_stdlib="`"$OCAMLC" -where`"
33893 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33894 then
33895 # ocaml stdlib is beneath our prefix; use stdlib
33896 OCAML_LIBDIR=$ocaml_stdlib
33898 else
33899 # ocaml stdlib is outside our prefix; use libdir/ocaml
33900 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33905 esac
33906 done
33907 if test "$binding_prereqs_failed" = 1 ; then
33908 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33909 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33910 { (exit 1); exit 1; }; }
33913 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33914 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33915 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33916 echo $ECHO_N "(cached) $ECHO_C" >&6
33917 else
33918 ac_ext=cpp
33919 ac_cpp='$CXXCPP $CPPFLAGS'
33920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33924 oldcxxflags="$CXXFLAGS"
33925 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33926 cat >conftest.$ac_ext <<_ACEOF
33927 /* confdefs.h. */
33928 _ACEOF
33929 cat confdefs.h >>conftest.$ac_ext
33930 cat >>conftest.$ac_ext <<_ACEOF
33931 /* end confdefs.h. */
33934 main ()
33938 return 0;
33940 _ACEOF
33941 rm -f conftest.$ac_objext
33942 if { (ac_try="$ac_compile"
33943 case "(($ac_try" in
33944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945 *) ac_try_echo=$ac_try;;
33946 esac
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948 (eval "$ac_compile") 2>conftest.er1
33949 ac_status=$?
33950 grep -v '^ *+' conftest.er1 >conftest.err
33951 rm -f conftest.er1
33952 cat conftest.err >&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } &&
33955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33956 { (case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_try") 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; } &&
33965 { ac_try='test -s conftest.$ac_objext'
33966 { (case "(($ac_try" in
33967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968 *) ac_try_echo=$ac_try;;
33969 esac
33970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971 (eval "$ac_try") 2>&5
33972 ac_status=$?
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); }; }; then
33975 llvm_cv_cxx_visibility_inlines_hidden=yes
33976 else
33977 echo "$as_me: failed program was:" >&5
33978 sed 's/^/| /' conftest.$ac_ext >&5
33980 llvm_cv_cxx_visibility_inlines_hidden=no
33983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33984 CXXFLAGS="$oldcxxflags"
33985 ac_ext=c
33986 ac_cpp='$CPP $CPPFLAGS'
33987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33993 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33994 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33995 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33996 ENABLE_VISIBILITY_INLINES_HIDDEN=1
33998 else
33999 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34004 if test "$llvm_cv_link_use_r" = "yes" ; then
34005 RPATH="-Wl,-R"
34006 else
34007 RPATH="-Wl,-rpath"
34011 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34012 RDYNAMIC="-Wl,-export-dynamic"
34013 else
34014 RDYNAMIC=""
34019 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34021 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34023 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34026 ac_config_files="$ac_config_files Makefile.config"
34029 ac_config_files="$ac_config_files llvm.spec"
34032 ac_config_files="$ac_config_files docs/doxygen.cfg"
34035 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34038 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34041 ac_config_commands="$ac_config_commands setup"
34043 ac_config_commands="$ac_config_commands Makefile"
34046 ac_config_commands="$ac_config_commands Makefile.common"
34049 ac_config_commands="$ac_config_commands examples/Makefile"
34052 ac_config_commands="$ac_config_commands lib/Makefile"
34055 ac_config_commands="$ac_config_commands runtime/Makefile"
34058 ac_config_commands="$ac_config_commands test/Makefile"
34061 ac_config_commands="$ac_config_commands test/Makefile.tests"
34064 ac_config_commands="$ac_config_commands unittests/Makefile"
34067 ac_config_commands="$ac_config_commands tools/Makefile"
34070 ac_config_commands="$ac_config_commands utils/Makefile"
34073 ac_config_commands="$ac_config_commands projects/Makefile"
34076 ac_config_commands="$ac_config_commands bindings/Makefile"
34079 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34083 cat >confcache <<\_ACEOF
34084 # This file is a shell script that caches the results of configure
34085 # tests run on this system so they can be shared between configure
34086 # scripts and configure runs, see configure's option --config-cache.
34087 # It is not useful on other systems. If it contains results you don't
34088 # want to keep, you may remove or edit it.
34090 # config.status only pays attention to the cache file if you give it
34091 # the --recheck option to rerun configure.
34093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34095 # following values.
34097 _ACEOF
34099 # The following way of writing the cache mishandles newlines in values,
34100 # but we know of no workaround that is simple, portable, and efficient.
34101 # So, we kill variables containing newlines.
34102 # Ultrix sh set writes to stderr and can't be redirected directly,
34103 # and sets the high bit in the cache file unless we assign to the vars.
34105 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34106 eval ac_val=\$$ac_var
34107 case $ac_val in #(
34108 *${as_nl}*)
34109 case $ac_var in #(
34110 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34111 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34112 esac
34113 case $ac_var in #(
34114 _ | IFS | as_nl) ;; #(
34115 *) $as_unset $ac_var ;;
34116 esac ;;
34117 esac
34118 done
34120 (set) 2>&1 |
34121 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34122 *${as_nl}ac_space=\ *)
34123 # `set' does not quote correctly, so add quotes (double-quote
34124 # substitution turns \\\\ into \\, and sed turns \\ into \).
34125 sed -n \
34126 "s/'/'\\\\''/g;
34127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34128 ;; #(
34130 # `set' quotes correctly as required by POSIX, so do not add quotes.
34131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34133 esac |
34134 sort
34136 sed '
34137 /^ac_cv_env_/b end
34138 t clear
34139 :clear
34140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34141 t end
34142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34143 :end' >>confcache
34144 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34145 if test -w "$cache_file"; then
34146 test "x$cache_file" != "x/dev/null" &&
34147 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34148 echo "$as_me: updating cache $cache_file" >&6;}
34149 cat confcache >$cache_file
34150 else
34151 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34152 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34155 rm -f confcache
34157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34158 # Let make expand exec_prefix.
34159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34161 DEFS=-DHAVE_CONFIG_H
34163 ac_libobjs=
34164 ac_ltlibobjs=
34165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34166 # 1. Remove the extension, and $U if already installed.
34167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34168 ac_i=`echo "$ac_i" | sed "$ac_script"`
34169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34170 # will be set to the directory where LIBOBJS objects are built.
34171 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34172 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34173 done
34174 LIBOBJS=$ac_libobjs
34176 LTLIBOBJS=$ac_ltlibobjs
34179 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34180 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34181 Usually this means the macro was only invoked conditionally." >&5
34182 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34183 Usually this means the macro was only invoked conditionally." >&2;}
34184 { (exit 1); exit 1; }; }
34186 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34187 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34188 Usually this means the macro was only invoked conditionally." >&5
34189 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34190 Usually this means the macro was only invoked conditionally." >&2;}
34191 { (exit 1); exit 1; }; }
34194 : ${CONFIG_STATUS=./config.status}
34195 ac_clean_files_save=$ac_clean_files
34196 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34197 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34198 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34199 cat >$CONFIG_STATUS <<_ACEOF
34200 #! $SHELL
34201 # Generated by $as_me.
34202 # Run this file to recreate the current configuration.
34203 # Compiler output produced by configure, useful for debugging
34204 # configure, is in config.log if it exists.
34206 debug=false
34207 ac_cs_recheck=false
34208 ac_cs_silent=false
34209 SHELL=\${CONFIG_SHELL-$SHELL}
34210 _ACEOF
34212 cat >>$CONFIG_STATUS <<\_ACEOF
34213 ## --------------------- ##
34214 ## M4sh Initialization. ##
34215 ## --------------------- ##
34217 # Be Bourne compatible
34218 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34219 emulate sh
34220 NULLCMD=:
34221 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34222 # is contrary to our usage. Disable this feature.
34223 alias -g '${1+"$@"}'='"$@"'
34224 setopt NO_GLOB_SUBST
34225 else
34226 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34228 BIN_SH=xpg4; export BIN_SH # for Tru64
34229 DUALCASE=1; export DUALCASE # for MKS sh
34232 # PATH needs CR
34233 # Avoid depending upon Character Ranges.
34234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34237 as_cr_digits='0123456789'
34238 as_cr_alnum=$as_cr_Letters$as_cr_digits
34240 # The user is always right.
34241 if test "${PATH_SEPARATOR+set}" != set; then
34242 echo "#! /bin/sh" >conf$$.sh
34243 echo "exit 0" >>conf$$.sh
34244 chmod +x conf$$.sh
34245 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34246 PATH_SEPARATOR=';'
34247 else
34248 PATH_SEPARATOR=:
34250 rm -f conf$$.sh
34253 # Support unset when possible.
34254 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34255 as_unset=unset
34256 else
34257 as_unset=false
34261 # IFS
34262 # We need space, tab and new line, in precisely that order. Quoting is
34263 # there to prevent editors from complaining about space-tab.
34264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34265 # splitting by setting IFS to empty value.)
34266 as_nl='
34268 IFS=" "" $as_nl"
34270 # Find who we are. Look in the path if we contain no directory separator.
34271 case $0 in
34272 *[\\/]* ) as_myself=$0 ;;
34273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34274 for as_dir in $PATH
34276 IFS=$as_save_IFS
34277 test -z "$as_dir" && as_dir=.
34278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34279 done
34280 IFS=$as_save_IFS
34283 esac
34284 # We did not find ourselves, most probably we were run as `sh COMMAND'
34285 # in which case we are not to be found in the path.
34286 if test "x$as_myself" = x; then
34287 as_myself=$0
34289 if test ! -f "$as_myself"; then
34290 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34291 { (exit 1); exit 1; }
34294 # Work around bugs in pre-3.0 UWIN ksh.
34295 for as_var in ENV MAIL MAILPATH
34296 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34297 done
34298 PS1='$ '
34299 PS2='> '
34300 PS4='+ '
34302 # NLS nuisances.
34303 for as_var in \
34304 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34305 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34306 LC_TELEPHONE LC_TIME
34308 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34309 eval $as_var=C; export $as_var
34310 else
34311 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34313 done
34315 # Required to use basename.
34316 if expr a : '\(a\)' >/dev/null 2>&1 &&
34317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34318 as_expr=expr
34319 else
34320 as_expr=false
34323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34324 as_basename=basename
34325 else
34326 as_basename=false
34330 # Name of the executable.
34331 as_me=`$as_basename -- "$0" ||
34332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34333 X"$0" : 'X\(//\)$' \| \
34334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34335 echo X/"$0" |
34336 sed '/^.*\/\([^/][^/]*\)\/*$/{
34337 s//\1/
34340 /^X\/\(\/\/\)$/{
34341 s//\1/
34344 /^X\/\(\/\).*/{
34345 s//\1/
34348 s/.*/./; q'`
34350 # CDPATH.
34351 $as_unset CDPATH
34355 as_lineno_1=$LINENO
34356 as_lineno_2=$LINENO
34357 test "x$as_lineno_1" != "x$as_lineno_2" &&
34358 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34360 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34361 # uniformly replaced by the line number. The first 'sed' inserts a
34362 # line-number line after each line using $LINENO; the second 'sed'
34363 # does the real work. The second script uses 'N' to pair each
34364 # line-number line with the line containing $LINENO, and appends
34365 # trailing '-' during substitution so that $LINENO is not a special
34366 # case at line end.
34367 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34368 # scripts with optimization help from Paolo Bonzini. Blame Lee
34369 # E. McMahon (1931-1989) for sed's syntax. :-)
34370 sed -n '
34372 /[$]LINENO/=
34373 ' <$as_myself |
34374 sed '
34375 s/[$]LINENO.*/&-/
34376 t lineno
34378 :lineno
34380 :loop
34381 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34382 t loop
34383 s/-\n.*//
34384 ' >$as_me.lineno &&
34385 chmod +x "$as_me.lineno" ||
34386 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34387 { (exit 1); exit 1; }; }
34389 # Don't try to exec as it changes $[0], causing all sort of problems
34390 # (the dirname of $[0] is not the place where we might find the
34391 # original and so on. Autoconf is especially sensitive to this).
34392 . "./$as_me.lineno"
34393 # Exit status is that of the last command.
34394 exit
34398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34399 as_dirname=dirname
34400 else
34401 as_dirname=false
34404 ECHO_C= ECHO_N= ECHO_T=
34405 case `echo -n x` in
34406 -n*)
34407 case `echo 'x\c'` in
34408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34409 *) ECHO_C='\c';;
34410 esac;;
34412 ECHO_N='-n';;
34413 esac
34415 if expr a : '\(a\)' >/dev/null 2>&1 &&
34416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34417 as_expr=expr
34418 else
34419 as_expr=false
34422 rm -f conf$$ conf$$.exe conf$$.file
34423 if test -d conf$$.dir; then
34424 rm -f conf$$.dir/conf$$.file
34425 else
34426 rm -f conf$$.dir
34427 mkdir conf$$.dir
34429 echo >conf$$.file
34430 if ln -s conf$$.file conf$$ 2>/dev/null; then
34431 as_ln_s='ln -s'
34432 # ... but there are two gotchas:
34433 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34434 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34435 # In both cases, we have to default to `cp -p'.
34436 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34437 as_ln_s='cp -p'
34438 elif ln conf$$.file conf$$ 2>/dev/null; then
34439 as_ln_s=ln
34440 else
34441 as_ln_s='cp -p'
34443 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34444 rmdir conf$$.dir 2>/dev/null
34446 if mkdir -p . 2>/dev/null; then
34447 as_mkdir_p=:
34448 else
34449 test -d ./-p && rmdir ./-p
34450 as_mkdir_p=false
34453 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34454 # systems may use methods other than mode bits to determine executability.
34455 cat >conf$$.file <<_ASEOF
34456 #! /bin/sh
34457 exit 0
34458 _ASEOF
34459 chmod +x conf$$.file
34460 if test -x conf$$.file >/dev/null 2>&1; then
34461 as_executable_p="test -x"
34462 else
34463 as_executable_p=:
34465 rm -f conf$$.file
34467 # Sed expression to map a string onto a valid CPP name.
34468 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34470 # Sed expression to map a string onto a valid variable name.
34471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34474 exec 6>&1
34476 # Save the log message, to keep $[0] and so on meaningful, and to
34477 # report actual input values of CONFIG_FILES etc. instead of their
34478 # values after options handling.
34479 ac_log="
34480 This file was extended by llvm $as_me 2.6svn, which was
34481 generated by GNU Autoconf 2.60. Invocation command line was
34483 CONFIG_FILES = $CONFIG_FILES
34484 CONFIG_HEADERS = $CONFIG_HEADERS
34485 CONFIG_LINKS = $CONFIG_LINKS
34486 CONFIG_COMMANDS = $CONFIG_COMMANDS
34487 $ $0 $@
34489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34492 _ACEOF
34494 cat >>$CONFIG_STATUS <<_ACEOF
34495 # Files that config.status was made for.
34496 config_files="$ac_config_files"
34497 config_headers="$ac_config_headers"
34498 config_commands="$ac_config_commands"
34500 _ACEOF
34502 cat >>$CONFIG_STATUS <<\_ACEOF
34503 ac_cs_usage="\
34504 \`$as_me' instantiates files from templates according to the
34505 current configuration.
34507 Usage: $0 [OPTIONS] [FILE]...
34509 -h, --help print this help, then exit
34510 -V, --version print version number, then exit
34511 -q, --quiet do not print progress messages
34512 -d, --debug don't remove temporary files
34513 --recheck update $as_me by reconfiguring in the same conditions
34514 --file=FILE[:TEMPLATE]
34515 instantiate the configuration file FILE
34516 --header=FILE[:TEMPLATE]
34517 instantiate the configuration header FILE
34519 Configuration files:
34520 $config_files
34522 Configuration headers:
34523 $config_headers
34525 Configuration commands:
34526 $config_commands
34528 Report bugs to <bug-autoconf@gnu.org>."
34530 _ACEOF
34531 cat >>$CONFIG_STATUS <<_ACEOF
34532 ac_cs_version="\\
34533 llvm config.status 2.6svn
34534 configured by $0, generated by GNU Autoconf 2.60,
34535 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34537 Copyright (C) 2006 Free Software Foundation, Inc.
34538 This config.status script is free software; the Free Software Foundation
34539 gives unlimited permission to copy, distribute and modify it."
34541 ac_pwd='$ac_pwd'
34542 srcdir='$srcdir'
34543 INSTALL='$INSTALL'
34544 _ACEOF
34546 cat >>$CONFIG_STATUS <<\_ACEOF
34547 # If no file are specified by the user, then we need to provide default
34548 # value. By we need to know if files were specified by the user.
34549 ac_need_defaults=:
34550 while test $# != 0
34552 case $1 in
34553 --*=*)
34554 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34555 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34556 ac_shift=:
34559 ac_option=$1
34560 ac_optarg=$2
34561 ac_shift=shift
34563 esac
34565 case $ac_option in
34566 # Handling of the options.
34567 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34568 ac_cs_recheck=: ;;
34569 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34570 echo "$ac_cs_version"; exit ;;
34571 --debug | --debu | --deb | --de | --d | -d )
34572 debug=: ;;
34573 --file | --fil | --fi | --f )
34574 $ac_shift
34575 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34576 ac_need_defaults=false;;
34577 --header | --heade | --head | --hea )
34578 $ac_shift
34579 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34580 ac_need_defaults=false;;
34581 --he | --h)
34582 # Conflict between --help and --header
34583 { echo "$as_me: error: ambiguous option: $1
34584 Try \`$0 --help' for more information." >&2
34585 { (exit 1); exit 1; }; };;
34586 --help | --hel | -h )
34587 echo "$ac_cs_usage"; exit ;;
34588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34590 ac_cs_silent=: ;;
34592 # This is an error.
34593 -*) { echo "$as_me: error: unrecognized option: $1
34594 Try \`$0 --help' for more information." >&2
34595 { (exit 1); exit 1; }; } ;;
34597 *) ac_config_targets="$ac_config_targets $1"
34598 ac_need_defaults=false ;;
34600 esac
34601 shift
34602 done
34604 ac_configure_extra_args=
34606 if $ac_cs_silent; then
34607 exec 6>/dev/null
34608 ac_configure_extra_args="$ac_configure_extra_args --silent"
34611 _ACEOF
34612 cat >>$CONFIG_STATUS <<_ACEOF
34613 if \$ac_cs_recheck; then
34614 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34615 CONFIG_SHELL=$SHELL
34616 export CONFIG_SHELL
34617 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34620 _ACEOF
34621 cat >>$CONFIG_STATUS <<\_ACEOF
34622 exec 5>>config.log
34624 echo
34625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34626 ## Running $as_me. ##
34627 _ASBOX
34628 echo "$ac_log"
34629 } >&5
34631 _ACEOF
34632 cat >>$CONFIG_STATUS <<_ACEOF
34634 # INIT-COMMANDS
34636 llvm_src="${srcdir}"
34638 _ACEOF
34640 cat >>$CONFIG_STATUS <<\_ACEOF
34642 # Handling of arguments.
34643 for ac_config_target in $ac_config_targets
34645 case $ac_config_target in
34646 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34647 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34648 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34649 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34650 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34651 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34652 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34653 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34654 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34655 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34656 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34657 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34658 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34659 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34660 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34661 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34662 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34663 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34664 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34665 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34666 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34667 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34669 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34670 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34671 { (exit 1); exit 1; }; };;
34672 esac
34673 done
34676 # If the user did not use the arguments to specify the items to instantiate,
34677 # then the envvar interface is used. Set only those that are not.
34678 # We use the long form for the default assignment because of an extremely
34679 # bizarre bug on SunOS 4.1.3.
34680 if $ac_need_defaults; then
34681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34686 # Have a temporary directory for convenience. Make it in the build tree
34687 # simply because there is no reason against having it here, and in addition,
34688 # creating and moving files from /tmp can sometimes cause problems.
34689 # Hook for its removal unless debugging.
34690 # Note that there is a small window in which the directory will not be cleaned:
34691 # after its creation but before its name has been assigned to `$tmp'.
34692 $debug ||
34694 tmp=
34695 trap 'exit_status=$?
34696 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34698 trap '{ (exit 1); exit 1; }' 1 2 13 15
34700 # Create a (secure) tmp directory for tmp files.
34703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34704 test -n "$tmp" && test -d "$tmp"
34705 } ||
34707 tmp=./conf$$-$RANDOM
34708 (umask 077 && mkdir "$tmp")
34709 } ||
34711 echo "$me: cannot create a temporary directory in ." >&2
34712 { (exit 1); exit 1; }
34716 # Set up the sed scripts for CONFIG_FILES section.
34719 # No need to generate the scripts if there are no CONFIG_FILES.
34720 # This happens for instance when ./config.status config.h
34721 if test -n "$CONFIG_FILES"; then
34723 _ACEOF
34727 ac_delim='%!_!# '
34728 for ac_last_try in false false false false false :; do
34729 cat >conf$$subs.sed <<_ACEOF
34730 SHELL!$SHELL$ac_delim
34731 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34732 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34733 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34734 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34735 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34736 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34737 exec_prefix!$exec_prefix$ac_delim
34738 prefix!$prefix$ac_delim
34739 program_transform_name!$program_transform_name$ac_delim
34740 bindir!$bindir$ac_delim
34741 sbindir!$sbindir$ac_delim
34742 libexecdir!$libexecdir$ac_delim
34743 datarootdir!$datarootdir$ac_delim
34744 datadir!$datadir$ac_delim
34745 sysconfdir!$sysconfdir$ac_delim
34746 sharedstatedir!$sharedstatedir$ac_delim
34747 localstatedir!$localstatedir$ac_delim
34748 includedir!$includedir$ac_delim
34749 oldincludedir!$oldincludedir$ac_delim
34750 docdir!$docdir$ac_delim
34751 infodir!$infodir$ac_delim
34752 htmldir!$htmldir$ac_delim
34753 dvidir!$dvidir$ac_delim
34754 pdfdir!$pdfdir$ac_delim
34755 psdir!$psdir$ac_delim
34756 libdir!$libdir$ac_delim
34757 localedir!$localedir$ac_delim
34758 mandir!$mandir$ac_delim
34759 DEFS!$DEFS$ac_delim
34760 ECHO_C!$ECHO_C$ac_delim
34761 ECHO_N!$ECHO_N$ac_delim
34762 ECHO_T!$ECHO_T$ac_delim
34763 LIBS!$LIBS$ac_delim
34764 build_alias!$build_alias$ac_delim
34765 host_alias!$host_alias$ac_delim
34766 target_alias!$target_alias$ac_delim
34767 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34768 subdirs!$subdirs$ac_delim
34769 build!$build$ac_delim
34770 build_cpu!$build_cpu$ac_delim
34771 build_vendor!$build_vendor$ac_delim
34772 build_os!$build_os$ac_delim
34773 host!$host$ac_delim
34774 host_cpu!$host_cpu$ac_delim
34775 host_vendor!$host_vendor$ac_delim
34776 host_os!$host_os$ac_delim
34777 target!$target$ac_delim
34778 target_cpu!$target_cpu$ac_delim
34779 target_vendor!$target_vendor$ac_delim
34780 target_os!$target_os$ac_delim
34781 OS!$OS$ac_delim
34782 LINKALL!$LINKALL$ac_delim
34783 NOLINKALL!$NOLINKALL$ac_delim
34784 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34785 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34786 ARCH!$ARCH$ac_delim
34787 ENDIAN!$ENDIAN$ac_delim
34788 CC!$CC$ac_delim
34789 CFLAGS!$CFLAGS$ac_delim
34790 LDFLAGS!$LDFLAGS$ac_delim
34791 CPPFLAGS!$CPPFLAGS$ac_delim
34792 ac_ct_CC!$ac_ct_CC$ac_delim
34793 EXEEXT!$EXEEXT$ac_delim
34794 OBJEXT!$OBJEXT$ac_delim
34795 CPP!$CPP$ac_delim
34796 GREP!$GREP$ac_delim
34797 EGREP!$EGREP$ac_delim
34798 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34799 BUILD_CC!$BUILD_CC$ac_delim
34800 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34801 BUILD_CXX!$BUILD_CXX$ac_delim
34802 CVSBUILD!$CVSBUILD$ac_delim
34803 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34804 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
34805 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34806 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34807 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34808 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34809 JIT!$JIT$ac_delim
34810 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34811 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34812 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34813 ENABLE_PIC!$ENABLE_PIC$ac_delim
34814 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34815 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34816 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34817 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34818 CXX!$CXX$ac_delim
34819 CXXFLAGS!$CXXFLAGS$ac_delim
34820 ac_ct_CXX!$ac_ct_CXX$ac_delim
34821 NM!$NM$ac_delim
34822 ifGNUmake!$ifGNUmake$ac_delim
34823 LN_S!$LN_S$ac_delim
34824 CMP!$CMP$ac_delim
34825 CP!$CP$ac_delim
34826 DATE!$DATE$ac_delim
34827 _ACEOF
34829 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34830 break
34831 elif $ac_last_try; then
34832 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34833 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34834 { (exit 1); exit 1; }; }
34835 else
34836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34838 done
34840 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34841 if test -n "$ac_eof"; then
34842 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34843 ac_eof=`expr $ac_eof + 1`
34846 cat >>$CONFIG_STATUS <<_ACEOF
34847 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34849 _ACEOF
34850 sed '
34851 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34852 s/^/s,@/; s/!/@,|#_!!_#|/
34855 s/'"$ac_delim"'$/,g/; t
34856 s/$/\\/; p
34857 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34858 ' >>$CONFIG_STATUS <conf$$subs.sed
34859 rm -f conf$$subs.sed
34860 cat >>$CONFIG_STATUS <<_ACEOF
34861 CEOF$ac_eof
34862 _ACEOF
34865 ac_delim='%!_!# '
34866 for ac_last_try in false false false false false :; do
34867 cat >conf$$subs.sed <<_ACEOF
34868 FIND!$FIND$ac_delim
34869 MKDIR!$MKDIR$ac_delim
34870 MV!$MV$ac_delim
34871 RANLIB!$RANLIB$ac_delim
34872 RM!$RM$ac_delim
34873 SED!$SED$ac_delim
34874 TAR!$TAR$ac_delim
34875 BINPWD!$BINPWD$ac_delim
34876 GRAPHVIZ!$GRAPHVIZ$ac_delim
34877 DOT!$DOT$ac_delim
34878 GV!$GV$ac_delim
34879 DOTTY!$DOTTY$ac_delim
34880 PERL!$PERL$ac_delim
34881 HAVE_PERL!$HAVE_PERL$ac_delim
34882 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34883 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34884 INSTALL_DATA!$INSTALL_DATA$ac_delim
34885 BZIP2!$BZIP2$ac_delim
34886 DOXYGEN!$DOXYGEN$ac_delim
34887 GROFF!$GROFF$ac_delim
34888 GZIP!$GZIP$ac_delim
34889 POD2HTML!$POD2HTML$ac_delim
34890 POD2MAN!$POD2MAN$ac_delim
34891 RUNTEST!$RUNTEST$ac_delim
34892 TCLSH!$TCLSH$ac_delim
34893 ZIP!$ZIP$ac_delim
34894 OCAMLC!$OCAMLC$ac_delim
34895 OCAMLOPT!$OCAMLOPT$ac_delim
34896 OCAMLDEP!$OCAMLDEP$ac_delim
34897 OCAMLDOC!$OCAMLDOC$ac_delim
34898 GAS!$GAS$ac_delim
34899 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34900 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34901 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34902 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34903 LIBADD_DL!$LIBADD_DL$ac_delim
34904 ECHO!$ECHO$ac_delim
34905 AR!$AR$ac_delim
34906 STRIP!$STRIP$ac_delim
34907 CXXCPP!$CXXCPP$ac_delim
34908 F77!$F77$ac_delim
34909 FFLAGS!$FFLAGS$ac_delim
34910 ac_ct_F77!$ac_ct_F77$ac_delim
34911 LIBTOOL!$LIBTOOL$ac_delim
34912 LLVMGCC!$LLVMGCC$ac_delim
34913 LLVMGXX!$LLVMGXX$ac_delim
34914 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
34915 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
34916 USE_UDIS86!$USE_UDIS86$ac_delim
34917 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34918 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34919 ALLOCA!$ALLOCA$ac_delim
34920 MMAP_FILE!$MMAP_FILE$ac_delim
34921 LLVMCC1!$LLVMCC1$ac_delim
34922 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34923 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34924 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34925 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34926 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34927 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34928 SHLIBEXT!$SHLIBEXT$ac_delim
34929 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34930 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34931 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34932 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34933 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34934 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34935 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34936 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34937 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34938 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34939 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34940 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34941 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34942 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34943 RPATH!$RPATH$ac_delim
34944 RDYNAMIC!$RDYNAMIC$ac_delim
34945 LIBOBJS!$LIBOBJS$ac_delim
34946 LTLIBOBJS!$LTLIBOBJS$ac_delim
34947 _ACEOF
34949 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
34950 break
34951 elif $ac_last_try; then
34952 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34954 { (exit 1); exit 1; }; }
34955 else
34956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34958 done
34960 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34961 if test -n "$ac_eof"; then
34962 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34963 ac_eof=`expr $ac_eof + 1`
34966 cat >>$CONFIG_STATUS <<_ACEOF
34967 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34969 _ACEOF
34970 sed '
34971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34972 s/^/s,@/; s/!/@,|#_!!_#|/
34975 s/'"$ac_delim"'$/,g/; t
34976 s/$/\\/; p
34977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34978 ' >>$CONFIG_STATUS <conf$$subs.sed
34979 rm -f conf$$subs.sed
34980 cat >>$CONFIG_STATUS <<_ACEOF
34981 :end
34982 s/|#_!!_#|//g
34983 CEOF$ac_eof
34984 _ACEOF
34987 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34988 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34989 # trailing colons and then remove the whole line if VPATH becomes empty
34990 # (actually we leave an empty line to preserve line numbers).
34991 if test "x$srcdir" = x.; then
34992 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34993 s/:*\$(srcdir):*/:/
34994 s/:*\${srcdir}:*/:/
34995 s/:*@srcdir@:*/:/
34996 s/^\([^=]*=[ ]*\):*/\1/
34997 s/:*$//
34998 s/^[^=]*=[ ]*$//
35002 cat >>$CONFIG_STATUS <<\_ACEOF
35003 fi # test -n "$CONFIG_FILES"
35006 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35008 case $ac_tag in
35009 :[FHLC]) ac_mode=$ac_tag; continue;;
35010 esac
35011 case $ac_mode$ac_tag in
35012 :[FHL]*:*);;
35013 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35014 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35015 { (exit 1); exit 1; }; };;
35016 :[FH]-) ac_tag=-:-;;
35017 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35018 esac
35019 ac_save_IFS=$IFS
35020 IFS=:
35021 set x $ac_tag
35022 IFS=$ac_save_IFS
35023 shift
35024 ac_file=$1
35025 shift
35027 case $ac_mode in
35028 :L) ac_source=$1;;
35029 :[FH])
35030 ac_file_inputs=
35031 for ac_f
35033 case $ac_f in
35034 -) ac_f="$tmp/stdin";;
35035 *) # Look for the file first in the build tree, then in the source tree
35036 # (if the path is not absolute). The absolute path cannot be DOS-style,
35037 # because $ac_f cannot contain `:'.
35038 test -f "$ac_f" ||
35039 case $ac_f in
35040 [\\/$]*) false;;
35041 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35042 esac ||
35043 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35044 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35045 { (exit 1); exit 1; }; };;
35046 esac
35047 ac_file_inputs="$ac_file_inputs $ac_f"
35048 done
35050 # Let's still pretend it is `configure' which instantiates (i.e., don't
35051 # use $as_me), people would be surprised to read:
35052 # /* config.h. Generated by config.status. */
35053 configure_input="Generated from "`IFS=:
35054 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35055 if test x"$ac_file" != x-; then
35056 configure_input="$ac_file. $configure_input"
35057 { echo "$as_me:$LINENO: creating $ac_file" >&5
35058 echo "$as_me: creating $ac_file" >&6;}
35061 case $ac_tag in
35062 *:-:* | *:-) cat >"$tmp/stdin";;
35063 esac
35065 esac
35067 ac_dir=`$as_dirname -- "$ac_file" ||
35068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35069 X"$ac_file" : 'X\(//\)[^/]' \| \
35070 X"$ac_file" : 'X\(//\)$' \| \
35071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35072 echo X"$ac_file" |
35073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35074 s//\1/
35077 /^X\(\/\/\)[^/].*/{
35078 s//\1/
35081 /^X\(\/\/\)$/{
35082 s//\1/
35085 /^X\(\/\).*/{
35086 s//\1/
35089 s/.*/./; q'`
35090 { as_dir="$ac_dir"
35091 case $as_dir in #(
35092 -*) as_dir=./$as_dir;;
35093 esac
35094 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35095 as_dirs=
35096 while :; do
35097 case $as_dir in #(
35098 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35099 *) as_qdir=$as_dir;;
35100 esac
35101 as_dirs="'$as_qdir' $as_dirs"
35102 as_dir=`$as_dirname -- "$as_dir" ||
35103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35104 X"$as_dir" : 'X\(//\)[^/]' \| \
35105 X"$as_dir" : 'X\(//\)$' \| \
35106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35107 echo X"$as_dir" |
35108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35109 s//\1/
35112 /^X\(\/\/\)[^/].*/{
35113 s//\1/
35116 /^X\(\/\/\)$/{
35117 s//\1/
35120 /^X\(\/\).*/{
35121 s//\1/
35124 s/.*/./; q'`
35125 test -d "$as_dir" && break
35126 done
35127 test -z "$as_dirs" || eval "mkdir $as_dirs"
35128 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35129 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35130 { (exit 1); exit 1; }; }; }
35131 ac_builddir=.
35133 case "$ac_dir" in
35134 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35136 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35137 # A ".." for each directory in $ac_dir_suffix.
35138 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35139 case $ac_top_builddir_sub in
35140 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35141 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35142 esac ;;
35143 esac
35144 ac_abs_top_builddir=$ac_pwd
35145 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35146 # for backward compatibility:
35147 ac_top_builddir=$ac_top_build_prefix
35149 case $srcdir in
35150 .) # We are building in place.
35151 ac_srcdir=.
35152 ac_top_srcdir=$ac_top_builddir_sub
35153 ac_abs_top_srcdir=$ac_pwd ;;
35154 [\\/]* | ?:[\\/]* ) # Absolute name.
35155 ac_srcdir=$srcdir$ac_dir_suffix;
35156 ac_top_srcdir=$srcdir
35157 ac_abs_top_srcdir=$srcdir ;;
35158 *) # Relative name.
35159 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35160 ac_top_srcdir=$ac_top_build_prefix$srcdir
35161 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35162 esac
35163 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35166 case $ac_mode in
35169 # CONFIG_FILE
35172 case $INSTALL in
35173 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35174 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35175 esac
35176 _ACEOF
35178 cat >>$CONFIG_STATUS <<\_ACEOF
35179 # If the template does not know about datarootdir, expand it.
35180 # FIXME: This hack should be removed a few years after 2.60.
35181 ac_datarootdir_hack=; ac_datarootdir_seen=
35183 case `sed -n '/datarootdir/ {
35187 /@datadir@/p
35188 /@docdir@/p
35189 /@infodir@/p
35190 /@localedir@/p
35191 /@mandir@/p
35192 ' $ac_file_inputs` in
35193 *datarootdir*) ac_datarootdir_seen=yes;;
35194 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35195 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35196 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35197 _ACEOF
35198 cat >>$CONFIG_STATUS <<_ACEOF
35199 ac_datarootdir_hack='
35200 s&@datadir@&$datadir&g
35201 s&@docdir@&$docdir&g
35202 s&@infodir@&$infodir&g
35203 s&@localedir@&$localedir&g
35204 s&@mandir@&$mandir&g
35205 s&\\\${datarootdir}&$datarootdir&g' ;;
35206 esac
35207 _ACEOF
35209 # Neutralize VPATH when `$srcdir' = `.'.
35210 # Shell code in configure.ac might set extrasub.
35211 # FIXME: do we really want to maintain this feature?
35212 cat >>$CONFIG_STATUS <<_ACEOF
35213 sed "$ac_vpsub
35214 $extrasub
35215 _ACEOF
35216 cat >>$CONFIG_STATUS <<\_ACEOF
35218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35219 s&@configure_input@&$configure_input&;t t
35220 s&@top_builddir@&$ac_top_builddir_sub&;t t
35221 s&@srcdir@&$ac_srcdir&;t t
35222 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35223 s&@top_srcdir@&$ac_top_srcdir&;t t
35224 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35225 s&@builddir@&$ac_builddir&;t t
35226 s&@abs_builddir@&$ac_abs_builddir&;t t
35227 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35228 s&@INSTALL@&$ac_INSTALL&;t t
35229 $ac_datarootdir_hack
35230 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35232 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35233 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35235 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35236 which seems to be undefined. Please make sure it is defined." >&5
35237 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35238 which seems to be undefined. Please make sure it is defined." >&2;}
35240 rm -f "$tmp/stdin"
35241 case $ac_file in
35242 -) cat "$tmp/out"; rm -f "$tmp/out";;
35243 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35244 esac
35248 # CONFIG_HEADER
35250 _ACEOF
35252 # Transform confdefs.h into a sed script `conftest.defines', that
35253 # substitutes the proper values into config.h.in to produce config.h.
35254 rm -f conftest.defines conftest.tail
35255 # First, append a space to every undef/define line, to ease matching.
35256 echo 's/$/ /' >conftest.defines
35257 # Then, protect against being on the right side of a sed subst, or in
35258 # an unquoted here document, in config.status. If some macros were
35259 # called several times there might be several #defines for the same
35260 # symbol, which is useless. But do not sort them, since the last
35261 # AC_DEFINE must be honored.
35262 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35263 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35264 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35265 # PARAMS is the parameter list in the macro definition--in most cases, it's
35266 # just an empty string.
35267 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35268 ac_dB='\\)[ (].*,\\1define\\2'
35269 ac_dC=' '
35270 ac_dD=' ,'
35272 uniq confdefs.h |
35273 sed -n '
35274 t rset
35275 :rset
35276 s/^[ ]*#[ ]*define[ ][ ]*//
35277 t ok
35280 s/[\\&,]/\\&/g
35281 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35282 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35283 ' >>conftest.defines
35285 # Remove the space that was appended to ease matching.
35286 # Then replace #undef with comments. This is necessary, for
35287 # example, in the case of _POSIX_SOURCE, which is predefined and required
35288 # on some systems where configure will not decide to define it.
35289 # (The regexp can be short, since the line contains either #define or #undef.)
35290 echo 's/ $//
35291 s,^[ #]*u.*,/* & */,' >>conftest.defines
35293 # Break up conftest.defines:
35294 ac_max_sed_lines=50
35296 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35297 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35298 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35299 # et cetera.
35300 ac_in='$ac_file_inputs'
35301 ac_out='"$tmp/out1"'
35302 ac_nxt='"$tmp/out2"'
35304 while :
35306 # Write a here document:
35307 cat >>$CONFIG_STATUS <<_ACEOF
35308 # First, check the format of the line:
35309 cat >"\$tmp/defines.sed" <<\\CEOF
35310 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35311 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35313 :def
35314 _ACEOF
35315 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35316 echo 'CEOF
35317 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35318 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35319 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35320 grep . conftest.tail >/dev/null || break
35321 rm -f conftest.defines
35322 mv conftest.tail conftest.defines
35323 done
35324 rm -f conftest.defines conftest.tail
35326 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35327 cat >>$CONFIG_STATUS <<\_ACEOF
35328 if test x"$ac_file" != x-; then
35329 echo "/* $configure_input */" >"$tmp/config.h"
35330 cat "$ac_result" >>"$tmp/config.h"
35331 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35332 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35333 echo "$as_me: $ac_file is unchanged" >&6;}
35334 else
35335 rm -f $ac_file
35336 mv "$tmp/config.h" $ac_file
35338 else
35339 echo "/* $configure_input */"
35340 cat "$ac_result"
35342 rm -f "$tmp/out12"
35345 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35346 echo "$as_me: executing $ac_file commands" >&6;}
35348 esac
35351 case $ac_file$ac_mode in
35352 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35353 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35354 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35355 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35356 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35357 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35358 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35359 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35360 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35361 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35362 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35363 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35364 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35365 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35366 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35367 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35368 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35369 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35370 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35371 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35372 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35373 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35374 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35375 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35376 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35377 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35379 esac
35380 done # for ac_tag
35383 { (exit 0); exit 0; }
35384 _ACEOF
35385 chmod +x $CONFIG_STATUS
35386 ac_clean_files=$ac_clean_files_save
35389 # configure is writing to config.log, and then calls config.status.
35390 # config.status does its own redirection, appending to config.log.
35391 # Unfortunately, on DOS this fails, as config.log is still kept open
35392 # by configure, so config.status won't be able to write to it; its
35393 # output is simply discarded. So we exec the FD to /dev/null,
35394 # effectively closing config.log, so it can be properly (re)opened and
35395 # appended to by config.status. When coming back to configure, we
35396 # need to make the FD available again.
35397 if test "$no_create" != yes; then
35398 ac_cs_success=:
35399 ac_config_status_args=
35400 test "$silent" = yes &&
35401 ac_config_status_args="$ac_config_status_args --quiet"
35402 exec 5>/dev/null
35403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35404 exec 5>>config.log
35405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35406 # would make configure fail if this is the last instruction.
35407 $ac_cs_success || { (exit 1); exit 1; }
35411 # CONFIG_SUBDIRS section.
35413 if test "$no_recursion" != yes; then
35415 # Remove --cache-file and --srcdir arguments so they do not pile up.
35416 ac_sub_configure_args=
35417 ac_prev=
35418 eval "set x $ac_configure_args"
35419 shift
35420 for ac_arg
35422 if test -n "$ac_prev"; then
35423 ac_prev=
35424 continue
35426 case $ac_arg in
35427 -cache-file | --cache-file | --cache-fil | --cache-fi \
35428 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35429 ac_prev=cache_file ;;
35430 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35431 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35432 | --c=*)
35434 --config-cache | -C)
35436 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35437 ac_prev=srcdir ;;
35438 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35440 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35441 ac_prev=prefix ;;
35442 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35445 case $ac_arg in
35446 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35447 esac
35448 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35449 esac
35450 done
35452 # Always prepend --prefix to ensure using the same prefix
35453 # in subdir configurations.
35454 ac_arg="--prefix=$prefix"
35455 case $ac_arg in
35456 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35457 esac
35458 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35460 ac_popdir=`pwd`
35461 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35463 # Do not complain, so a configure script can configure whichever
35464 # parts of a large source tree are present.
35465 test -d "$srcdir/$ac_dir" || continue
35467 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35468 echo "$as_me:$LINENO: $ac_msg" >&5
35469 echo "$ac_msg" >&6
35470 { as_dir="$ac_dir"
35471 case $as_dir in #(
35472 -*) as_dir=./$as_dir;;
35473 esac
35474 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35475 as_dirs=
35476 while :; do
35477 case $as_dir in #(
35478 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35479 *) as_qdir=$as_dir;;
35480 esac
35481 as_dirs="'$as_qdir' $as_dirs"
35482 as_dir=`$as_dirname -- "$as_dir" ||
35483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35484 X"$as_dir" : 'X\(//\)[^/]' \| \
35485 X"$as_dir" : 'X\(//\)$' \| \
35486 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35487 echo X"$as_dir" |
35488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35489 s//\1/
35492 /^X\(\/\/\)[^/].*/{
35493 s//\1/
35496 /^X\(\/\/\)$/{
35497 s//\1/
35500 /^X\(\/\).*/{
35501 s//\1/
35504 s/.*/./; q'`
35505 test -d "$as_dir" && break
35506 done
35507 test -z "$as_dirs" || eval "mkdir $as_dirs"
35508 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35509 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35510 { (exit 1); exit 1; }; }; }
35511 ac_builddir=.
35513 case "$ac_dir" in
35514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35516 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35517 # A ".." for each directory in $ac_dir_suffix.
35518 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35519 case $ac_top_builddir_sub in
35520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35522 esac ;;
35523 esac
35524 ac_abs_top_builddir=$ac_pwd
35525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35526 # for backward compatibility:
35527 ac_top_builddir=$ac_top_build_prefix
35529 case $srcdir in
35530 .) # We are building in place.
35531 ac_srcdir=.
35532 ac_top_srcdir=$ac_top_builddir_sub
35533 ac_abs_top_srcdir=$ac_pwd ;;
35534 [\\/]* | ?:[\\/]* ) # Absolute name.
35535 ac_srcdir=$srcdir$ac_dir_suffix;
35536 ac_top_srcdir=$srcdir
35537 ac_abs_top_srcdir=$srcdir ;;
35538 *) # Relative name.
35539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35540 ac_top_srcdir=$ac_top_build_prefix$srcdir
35541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35542 esac
35543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35546 cd "$ac_dir"
35548 # Check for guested configure; otherwise get Cygnus style configure.
35549 if test -f "$ac_srcdir/configure.gnu"; then
35550 ac_sub_configure=$ac_srcdir/configure.gnu
35551 elif test -f "$ac_srcdir/configure"; then
35552 ac_sub_configure=$ac_srcdir/configure
35553 elif test -f "$ac_srcdir/configure.in"; then
35554 # This should be Cygnus configure.
35555 ac_sub_configure=$ac_aux_dir/configure
35556 else
35557 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35559 ac_sub_configure=
35562 # The recursion is here.
35563 if test -n "$ac_sub_configure"; then
35564 # Make the cache file name correct relative to the subdirectory.
35565 case $cache_file in
35566 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35567 *) # Relative name.
35568 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35569 esac
35571 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35572 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35573 # The eval makes quoting arguments work.
35574 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35575 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35576 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35577 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35578 { (exit 1); exit 1; }; }
35581 cd "$ac_popdir"
35582 done