llvm-mc: Add statistic for number of fragments emitted by the assembler.
[llvm/avr.git] / configure
blob64566fbb1b7f114ab1fe80a4001bd2cd28932981
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
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 HOST_OS
812 TARGET_OS
813 LINKALL
814 NOLINKALL
815 LLVM_ON_UNIX
816 LLVM_ON_WIN32
817 ARCH
818 ENDIAN
820 CFLAGS
821 LDFLAGS
822 CPPFLAGS
823 ac_ct_CC
824 EXEEXT
825 OBJEXT
827 GREP
828 EGREP
829 LLVM_CROSS_COMPILING
830 BUILD_CC
831 BUILD_EXEEXT
832 BUILD_CXX
833 CVSBUILD
834 ENABLE_OPTIMIZED
835 ENABLE_PROFILING
836 DISABLE_ASSERTIONS
837 LLVM_COMPACT_SENTINELS
838 ENABLE_EXPENSIVE_CHECKS
839 EXPENSIVE_CHECKS
840 DEBUG_RUNTIME
842 TARGET_HAS_JIT
843 ENABLE_DOXYGEN
844 ENABLE_THREADS
845 ENABLE_PIC
846 TARGETS_TO_BUILD
847 LLVM_ENUM_TARGETS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
850 ENABLE_CBE_PRINTF_A
851 EXTRA_OPTIONS
852 BINUTILS_INCDIR
853 ENABLE_LLVMC_DYNAMIC
854 ENABLE_LLVMC_DYNAMIC_PLUGINS
856 CXXFLAGS
857 ac_ct_CXX
859 ifGNUmake
860 LN_S
863 DATE
864 FIND
865 MKDIR
867 RANLIB
871 BINPWD
872 GRAPHVIZ
875 NEATO
876 TWOPI
877 CIRCO
879 DOTTY
880 PERL
881 HAVE_PERL
882 INSTALL_PROGRAM
883 INSTALL_SCRIPT
884 INSTALL_DATA
885 BZIP2
886 DOXYGEN
887 GROFF
888 GZIP
889 POD2HTML
890 POD2MAN
891 RUNTEST
892 TCLSH
894 OCAMLC
895 OCAMLOPT
896 OCAMLDEP
897 OCAMLDOC
899 INSTALL_LTDL_TRUE
900 INSTALL_LTDL_FALSE
901 CONVENIENCE_LTDL_TRUE
902 CONVENIENCE_LTDL_FALSE
903 LIBADD_DL
904 ECHO
906 STRIP
907 CXXCPP
909 FFLAGS
910 ac_ct_F77
911 LIBTOOL
912 LLVMGCCCOMMAND
913 LLVMGXXCOMMAND
914 LLVMGCC
915 LLVMGXX
916 USE_UDIS86
917 USE_OPROFILE
918 HAVE_PTHREAD
919 HUGE_VAL_SANITY
920 ALLOCA
921 MMAP_FILE
922 LLVMCC1
923 LLVMCC1PLUS
924 LLVMGCCDIR
925 LLVMGCCLIBEXEC
926 LLVMGCC_VERSION
927 LLVMGCC_MAJVERS
928 LLVMGCC_LANGS
929 SHLIBEXT
930 LLVM_PREFIX
931 LLVM_BINDIR
932 LLVM_LIBDIR
933 LLVM_DATADIR
934 LLVM_DOCSDIR
935 LLVM_ETCDIR
936 LLVM_INCLUDEDIR
937 LLVM_INFODIR
938 LLVM_MANDIR
939 LLVM_CONFIGTIME
940 BINDINGS_TO_BUILD
941 ALL_BINDINGS
942 OCAML_LIBDIR
943 ENABLE_VISIBILITY_INLINES_HIDDEN
944 RPATH
945 RDYNAMIC
946 LIBOBJS
947 LTLIBOBJS'
948 ac_subst_files=''
949 ac_precious_vars='build_alias
950 host_alias
951 target_alias
953 CFLAGS
954 LDFLAGS
955 CPPFLAGS
958 CXXFLAGS
960 CXXCPP
962 FFLAGS'
963 ac_subdirs_all='projects/sample
964 projects/privbracket
965 projects/llvm-stacker
966 projects/llvm-test
967 projects/test-suite
968 projects/llvm-reopt
969 projects/llvm-gcc
970 projects/llvm-java
971 projects/llvm-tv
972 projects/llvm-poolalloc
973 projects/poolalloc
974 projects/llvm-kernel'
976 # Initialize some variables set by options.
977 ac_init_help=
978 ac_init_version=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1042 ac_dashdash=yes ;;
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1083 eval enable_$ac_feature=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1102 eval enable_$ac_feature=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1292 -with-* | --with-*)
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package=`echo $ac_package| sed 's/-/_/g'`
1299 eval with_$ac_package=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
1307 ac_package=`echo $ac_package | sed 's/-/_/g'`
1308 eval with_$ac_package=no ;;
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 esac
1351 done
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1359 # Be sure to have absolute directory names.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1372 done
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1392 ac_tool_prefix=
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395 test "$silent" = yes && exec 6>/dev/null
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1417 echo X"$0" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1426 /^X\(\/\/\)$/{
1427 s//\1/
1430 /^X\(\/\).*/{
1431 s//\1/
1434 s/.*/./; q'`
1435 srcdir=$ac_confdir
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 srcdir=..
1439 else
1440 ac_srcdir_defaulted=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1451 pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
1476 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1485 Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 [PREFIX]
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1529 _ACEOF
1531 cat <<\_ACEOF
1533 System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1537 _ACEOF
1540 if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1543 esac
1544 cat <<\_ACEOF
1546 Optional Features:
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1552 YES)
1553 --enable-expensive-checks
1554 Compile with expensive debug checks enabled (default
1555 is NO)
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1558 --enable-jit Enable Just In Time Compiling (default is YES)
1559 --enable-doxygen Build doxygen documentation (default is NO)
1560 --enable-threads Use threads if available (default is YES)
1561 --enable-pic Build LLVM with Position Independent Code (default
1562 is YES)
1563 --enable-targets Build specific host targets:
1564 all,host-only,{target-name} (default=all)
1565 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1566 %a (default is YES)
1567 --enable-bindings Build specific language bindings:
1568 all,auto,none,{binding-name} (default=auto)
1569 --enable-libffi Check for the presence of libffi (default is YES)
1570 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1571 Win32)
1572 --enable-llvmc-dynamic-plugins
1573 Enable dynamic LLVMC plugins (default is YES)
1574 --enable-ltdl-install install libltdl
1575 --enable-shared[=PKGS] build shared libraries
1576 [default=yes]
1577 --enable-static[=PKGS] build static libraries
1578 [default=yes]
1579 --enable-fast-install[=PKGS]
1580 optimize for fast installation
1581 [default=yes]
1582 --disable-libtool-lock avoid locking (might break parallel builds)
1584 Optional Packages:
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1588 searches PATH)
1589 --with-llvmgcc Specify location of llvm-gcc driver (default
1590 searches PATH)
1591 --with-llvmgxx Specify location of llvm-g++ driver (default
1592 searches PATH)
1593 --with-extra-options Specify additional options to compile LLVM with
1594 --with-ocaml-libdir Specify install location for ocaml bindings (default
1595 is stdlib)
1596 --with-binutils-include Specify path to binutils/include/ containing
1597 plugin-api.h file for gold plugin.
1598 --with-tclinclude directory where tcl headers are
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-pic try to use only PIC/non-PIC objects [default=use
1601 both]
1602 --with-tags[=TAGS] include additional configurations [automatic]
1603 --with-udis86=<path> Use udis86 external x86 disassembler library
1604 --with-oprofile=<prefix>
1605 Tell OProfile >= 0.9.4 how to symbolize JIT output
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1613 you have headers in a nonstandard directory <include dir>
1614 CPP C preprocessor
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
1617 CXXCPP C++ preprocessor
1618 F77 Fortran 77 compiler command
1619 FFLAGS Fortran 77 compiler flags
1621 Use these variables to override the choices made by `configure' or to help
1622 it to find libraries and programs with nonstandard names/locations.
1624 Report bugs to <llvmbugs@cs.uiuc.edu>.
1625 _ACEOF
1626 ac_status=$?
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" || continue
1633 ac_builddir=.
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1651 case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1675 else
1676 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1679 done
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684 cat <<\_ACEOF
1685 llvm configure 2.7svn
1686 generated by GNU Autoconf 2.60
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1693 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1694 _ACEOF
1695 exit
1697 cat >config.log <<_ACEOF
1698 This file contains any messages produced by compilers while
1699 running configure, to aid debugging if configure makes a mistake.
1701 It was created by llvm $as_me 2.7svn, which was
1702 generated by GNU Autoconf 2.60. Invocation command line was
1704 $ $0 $@
1706 _ACEOF
1707 exec 5>>config.log
1709 cat <<_ASUNAME
1710 ## --------- ##
1711 ## Platform. ##
1712 ## --------- ##
1714 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1715 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1716 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1717 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1718 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1720 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1721 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1723 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1724 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1725 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1726 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1727 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1728 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1729 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1731 _ASUNAME
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 echo "PATH: $as_dir"
1739 done
1740 IFS=$as_save_IFS
1742 } >&5
1744 cat >&5 <<_ACEOF
1747 ## ----------- ##
1748 ## Core tests. ##
1749 ## ----------- ##
1751 _ACEOF
1754 # Keep a trace of the command line.
1755 # Strip out --no-create and --no-recursion so they do not pile up.
1756 # Strip out --silent because we don't want to record it for future runs.
1757 # Also quote any args containing shell meta-characters.
1758 # Make two passes to allow for proper duplicate-argument suppression.
1759 ac_configure_args=
1760 ac_configure_args0=
1761 ac_configure_args1=
1762 ac_must_keep_next=false
1763 for ac_pass in 1 2
1765 for ac_arg
1767 case $ac_arg in
1768 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770 | -silent | --silent | --silen | --sile | --sil)
1771 continue ;;
1772 *\'*)
1773 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 esac
1775 case $ac_pass in
1776 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1778 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779 if test $ac_must_keep_next = true; then
1780 ac_must_keep_next=false # Got value, back to normal.
1781 else
1782 case $ac_arg in
1783 *=* | --config-cache | -C | -disable-* | --disable-* \
1784 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786 | -with-* | --with-* | -without-* | --without-* | --x)
1787 case "$ac_configure_args0 " in
1788 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789 esac
1791 -* ) ac_must_keep_next=true ;;
1792 esac
1794 ac_configure_args="$ac_configure_args '$ac_arg'"
1796 esac
1797 done
1798 done
1799 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1802 # When interrupted or exit'd, cleanup temporary files, and complete
1803 # config.log. We remove comments because anyway the quotes in there
1804 # would cause problems or look ugly.
1805 # WARNING: Use '\'' to represent an apostrophe within the trap.
1806 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807 trap 'exit_status=$?
1808 # Save into config.log some information that might help in debugging.
1810 echo
1812 cat <<\_ASBOX
1813 ## ---------------- ##
1814 ## Cache variables. ##
1815 ## ---------------- ##
1816 _ASBOX
1817 echo
1818 # The following way of writing the cache mishandles newlines in values,
1820 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1821 eval ac_val=\$$ac_var
1822 case $ac_val in #(
1823 *${as_nl}*)
1824 case $ac_var in #(
1825 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827 esac
1828 case $ac_var in #(
1829 _ | IFS | as_nl) ;; #(
1830 *) $as_unset $ac_var ;;
1831 esac ;;
1832 esac
1833 done
1834 (set) 2>&1 |
1835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836 *${as_nl}ac_space=\ *)
1837 sed -n \
1838 "s/'\''/'\''\\\\'\'''\''/g;
1839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840 ;; #(
1842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1844 esac |
1845 sort
1847 echo
1849 cat <<\_ASBOX
1850 ## ----------------- ##
1851 ## Output variables. ##
1852 ## ----------------- ##
1853 _ASBOX
1854 echo
1855 for ac_var in $ac_subst_vars
1857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 echo "$ac_var='\''$ac_val'\''"
1862 done | sort
1863 echo
1865 if test -n "$ac_subst_files"; then
1866 cat <<\_ASBOX
1867 ## ------------------- ##
1868 ## File substitutions. ##
1869 ## ------------------- ##
1870 _ASBOX
1871 echo
1872 for ac_var in $ac_subst_files
1874 eval ac_val=\$$ac_var
1875 case $ac_val in
1876 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 esac
1878 echo "$ac_var='\''$ac_val'\''"
1879 done | sort
1880 echo
1883 if test -s confdefs.h; then
1884 cat <<\_ASBOX
1885 ## ----------- ##
1886 ## confdefs.h. ##
1887 ## ----------- ##
1888 _ASBOX
1889 echo
1890 cat confdefs.h
1891 echo
1893 test "$ac_signal" != 0 &&
1894 echo "$as_me: caught signal $ac_signal"
1895 echo "$as_me: exit $exit_status"
1896 } >&5
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 exit $exit_status
1901 for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903 done
1904 ac_signal=0
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1909 # Predefined preprocessor variables.
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1913 _ACEOF
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918 _ACEOF
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1923 _ACEOF
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_STRING "$PACKAGE_STRING"
1928 _ACEOF
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933 _ACEOF
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer explicitly selected file to automatically selected ones.
1938 if test -n "$CONFIG_SITE"; then
1939 set x "$CONFIG_SITE"
1940 elif test "x$prefix" != xNONE; then
1941 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1942 else
1943 set x "$ac_default_prefix/share/config.site" \
1944 "$ac_default_prefix/etc/config.site"
1946 shift
1947 for ac_site_file
1949 if test -r "$ac_site_file"; then
1950 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1951 echo "$as_me: loading site script $ac_site_file" >&6;}
1952 sed 's/^/| /' "$ac_site_file" >&5
1953 . "$ac_site_file"
1955 done
1957 if test -r "$cache_file"; then
1958 # Some versions of bash will fail to source /dev/null (special
1959 # files actually), so we avoid doing that.
1960 if test -f "$cache_file"; then
1961 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1962 echo "$as_me: loading cache $cache_file" >&6;}
1963 case $cache_file in
1964 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965 *) . "./$cache_file";;
1966 esac
1968 else
1969 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1970 echo "$as_me: creating cache $cache_file" >&6;}
1971 >$cache_file
1974 # Check that the precious variables saved in the cache have kept the same
1975 # value.
1976 ac_cache_corrupted=false
1977 for ac_var in $ac_precious_vars; do
1978 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979 eval ac_new_set=\$ac_env_${ac_var}_set
1980 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981 eval ac_new_val=\$ac_env_${ac_var}_value
1982 case $ac_old_set,$ac_new_set in
1983 set,)
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1985 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1987 ,set)
1988 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1989 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1990 ac_cache_corrupted=: ;;
1991 ,);;
1993 if test "x$ac_old_val" != "x$ac_new_val"; then
1994 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1996 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1997 echo "$as_me: former value: $ac_old_val" >&2;}
1998 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1999 echo "$as_me: current value: $ac_new_val" >&2;}
2000 ac_cache_corrupted=:
2001 fi;;
2002 esac
2003 # Pass precious variables to config.status.
2004 if test "$ac_new_set" = set; then
2005 case $ac_new_val in
2006 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 *) ac_arg=$ac_var=$ac_new_val ;;
2008 esac
2009 case " $ac_configure_args " in
2010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2011 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2012 esac
2014 done
2015 if $ac_cache_corrupted; then
2016 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2020 { (exit 1); exit 1; }; }
2047 ac_ext=c
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2063 ac_aux_dir=
2064 for ac_dir in autoconf "$srcdir"/autoconf; do
2065 if test -f "$ac_dir/install-sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install-sh -c"
2068 break
2069 elif test -f "$ac_dir/install.sh"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/install.sh -c"
2072 break
2073 elif test -f "$ac_dir/shtool"; then
2074 ac_aux_dir=$ac_dir
2075 ac_install_sh="$ac_aux_dir/shtool install -c"
2076 break
2078 done
2079 if test -z "$ac_aux_dir"; then
2080 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2081 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2082 { (exit 1); exit 1; }; }
2085 # These three variables are undocumented and unsupported,
2086 # and are intended to be withdrawn in a future Autoconf release.
2087 # They can cause serious problems if a builder's source tree is in a directory
2088 # whose full name contains unusual characters.
2089 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2090 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2091 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2095 if test ${srcdir} != "." ; then
2096 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2097 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2098 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2099 { (exit 1); exit 1; }; }
2103 for i in `ls ${srcdir}/projects`
2105 if test -d ${srcdir}/projects/${i} ; then
2106 case ${i} in
2107 CVS) ;;
2108 sample) subdirs="$subdirs projects/sample"
2110 privbracket) subdirs="$subdirs projects/privbracket"
2112 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2114 # llvm-test is the old name of the test-suite, kept here for backwards
2115 # compatibility
2116 llvm-test) subdirs="$subdirs projects/llvm-test"
2118 test-suite) subdirs="$subdirs projects/test-suite"
2120 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2122 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2124 llvm-java) subdirs="$subdirs projects/llvm-java"
2126 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2128 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2130 poolalloc) subdirs="$subdirs projects/poolalloc"
2132 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2135 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2136 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2138 esac
2140 done
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160 { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2170 *-*-*) ;;
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173 { (exit 1); exit 1; }; };;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2196 else
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 case $ac_cv_host in
2207 *-*-*) ;;
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210 { (exit 1); exit 1; }; };;
2211 esac
2212 host=$ac_cv_host
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_host
2215 shift
2216 host_cpu=$1
2217 host_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 host_os=$*
2222 IFS=$ac_save_IFS
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231 if test "x$target_alias" = x; then
2232 ac_cv_target=$ac_cv_host
2233 else
2234 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237 { (exit 1); exit 1; }; }
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2244 *-*-*) ;;
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247 { (exit 1); exit 1; }; };;
2248 esac
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2251 set x $ac_cv_target
2252 shift
2253 target_cpu=$1
2254 target_vendor=$2
2255 shift; shift
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2258 target_os=$*
2259 IFS=$ac_save_IFS
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2267 NONENONEs,x,x, &&
2268 program_prefix=${target_alias}-
2270 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2271 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2272 if test "${llvm_cv_os_type+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275 case $host in
2276 *-*-aix*)
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="AIX"
2280 llvm_cv_platform_type="Unix" ;;
2281 *-*-irix*)
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="IRIX"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-cygwin*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="Cygwin"
2290 llvm_cv_platform_type="Unix" ;;
2291 *-*-darwin*)
2292 llvm_cv_link_all_option="-Wl,-all_load"
2293 llvm_cv_no_link_all_option="-Wl,-noall_load"
2294 llvm_cv_os_type="Darwin"
2295 llvm_cv_platform_type="Unix" ;;
2296 *-*-freebsd*)
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="FreeBSD"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-openbsd*)
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="OpenBSD"
2305 llvm_cv_platform_type="Unix" ;;
2306 *-*-netbsd*)
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="NetBSD"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-dragonfly*)
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="DragonFly"
2315 llvm_cv_platform_type="Unix" ;;
2316 *-*-hpux*)
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="HP-UX"
2320 llvm_cv_platform_type="Unix" ;;
2321 *-*-interix*)
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="Interix"
2325 llvm_cv_platform_type="Unix" ;;
2326 *-*-linux*)
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="Linux"
2330 llvm_cv_platform_type="Unix" ;;
2331 *-*-solaris*)
2332 llvm_cv_link_all_option="-Wl,-z,allextract"
2333 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2334 llvm_cv_os_type="SunOS"
2335 llvm_cv_platform_type="Unix" ;;
2336 *-*-win32*)
2337 llvm_cv_link_all_option="-Wl,--whole-archive"
2338 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2339 llvm_cv_os_type="Win32"
2340 llvm_cv_platform_type="Win32" ;;
2341 *-*-mingw*)
2342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2344 llvm_cv_os_type="MingW"
2345 llvm_cv_platform_type="Win32" ;;
2346 *-unknown-eabi*)
2347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349 llvm_cv_os_type="Freestanding"
2350 llvm_cv_platform_type="Unix" ;;
2351 *-unknown-elf*)
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Freestanding"
2355 llvm_cv_platform_type="Unix" ;;
2357 llvm_cv_link_all_option=""
2358 llvm_cv_no_link_all_option=""
2359 llvm_cv_os_type="Unknown"
2360 llvm_cv_platform_type="Unknown" ;;
2361 esac
2363 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2364 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2366 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2367 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2368 if test "${llvm_cv_target_os_type+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 case $target in
2372 *-*-aix*)
2373 llvm_cv_target_os_type="AIX" ;;
2374 *-*-irix*)
2375 llvm_cv_target_os_type="IRIX" ;;
2376 *-*-cygwin*)
2377 llvm_cv_target_os_type="Cygwin" ;;
2378 *-*-darwin*)
2379 llvm_cv_target_os_type="Darwin" ;;
2380 *-*-freebsd*)
2381 llvm_cv_target_os_type="FreeBSD" ;;
2382 *-*-openbsd*)
2383 llvm_cv_target_os_type="OpenBSD" ;;
2384 *-*-netbsd*)
2385 llvm_cv_target_os_type="NetBSD" ;;
2386 *-*-dragonfly*)
2387 llvm_cv_target_os_type="DragonFly" ;;
2388 *-*-hpux*)
2389 llvm_cv_target_os_type="HP-UX" ;;
2390 *-*-interix*)
2391 llvm_cv_target_os_type="Interix" ;;
2392 *-*-linux*)
2393 llvm_cv_target_os_type="Linux" ;;
2394 *-*-solaris*)
2395 llvm_cv_target_os_type="SunOS" ;;
2396 *-*-win32*)
2397 llvm_cv_target_os_type="Win32" ;;
2398 *-*-mingw*)
2399 llvm_cv_target_os_type="MingW" ;;
2400 *-unknown-eabi*)
2401 llvm_cv_target_os_type="Freestanding" ;;
2403 llvm_cv_target_os_type="Unknown" ;;
2404 esac
2406 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2407 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2409 if test "$llvm_cv_os_type" = "Unknown" ; then
2410 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2411 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2412 { (exit 1); exit 1; }; }
2415 OS=$llvm_cv_os_type
2417 HOST_OS=$llvm_cv_os_type
2419 TARGET_OS=$llvm_cv_target_os_type
2422 LINKALL=$llvm_cv_link_all_option
2424 NOLINKALL=$llvm_cv_no_link_all_option
2427 case $llvm_cv_platform_type in
2428 Unix)
2430 cat >>confdefs.h <<\_ACEOF
2431 #define LLVM_ON_UNIX 1
2432 _ACEOF
2434 LLVM_ON_UNIX=1
2436 LLVM_ON_WIN32=0
2439 Win32)
2441 cat >>confdefs.h <<\_ACEOF
2442 #define LLVM_ON_WIN32 1
2443 _ACEOF
2445 LLVM_ON_UNIX=0
2447 LLVM_ON_WIN32=1
2450 esac
2452 { echo "$as_me:$LINENO: checking target architecture" >&5
2453 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2454 if test "${llvm_cv_target_arch+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457 case $target in
2458 i?86-*) llvm_cv_target_arch="x86" ;;
2459 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2460 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2461 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2462 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2463 arm*-*) llvm_cv_target_arch="ARM" ;;
2464 mips-*) llvm_cv_target_arch="Mips" ;;
2465 pic16-*) llvm_cv_target_arch="PIC16" ;;
2466 xcore-*) llvm_cv_target_arch="XCore" ;;
2467 msp430-*) llvm_cv_target_arch="MSP430" ;;
2468 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2469 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2470 *) llvm_cv_target_arch="Unknown" ;;
2471 esac
2473 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2474 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2476 if test "$llvm_cv_target_arch" = "Unknown" ; then
2477 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2478 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2481 # Determine the LLVM native architecture for the target
2482 case "$llvm_cv_target_arch" in
2483 x86) LLVM_NATIVE_ARCH="X86" ;;
2484 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2485 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2486 esac
2488 ARCH=$llvm_cv_target_arch
2491 ac_ext=c
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2520 IFS=$as_save_IFS
2524 CC=$ac_cv_prog_CC
2525 if test -n "$CC"; then
2526 { echo "$as_me:$LINENO: result: $CC" >&5
2527 echo "${ECHO_T}$CC" >&6; }
2528 else
2529 { echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6; }
2535 if test -z "$ac_cv_prog_CC"; then
2536 ac_ct_CC=$CC
2537 # Extract the first word of "gcc", so it can be a program name with args.
2538 set dummy gcc; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 if test -n "$ac_ct_CC"; then
2545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_ac_ct_CC="gcc"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2558 done
2559 done
2560 IFS=$as_save_IFS
2564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565 if test -n "$ac_ct_CC"; then
2566 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567 echo "${ECHO_T}$ac_ct_CC" >&6; }
2568 else
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2573 if test "x$ac_ct_CC" = x; then
2574 CC=""
2575 else
2576 case $cross_compiling:$ac_tool_warned in
2577 yes:)
2578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2579 whose name does not start with the host triplet. If you think this
2580 configuration is useful to you, please write to autoconf@gnu.org." >&5
2581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2582 whose name does not start with the host triplet. If you think this
2583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2584 ac_tool_warned=yes ;;
2585 esac
2586 CC=$ac_ct_CC
2588 else
2589 CC="$ac_cv_prog_CC"
2592 if test -z "$CC"; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}cc; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="${ac_tool_prefix}cc"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2615 done
2616 done
2617 IFS=$as_save_IFS
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2633 if test -z "$CC"; then
2634 # Extract the first word of "cc", so it can be a program name with args.
2635 set dummy cc; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 else
2644 ac_prog_rejected=no
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2653 ac_prog_rejected=yes
2654 continue
2656 ac_cv_prog_CC="cc"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2660 done
2661 done
2662 IFS=$as_save_IFS
2664 if test $ac_prog_rejected = yes; then
2665 # We found a bogon in the path, so make sure we never use it.
2666 set dummy $ac_cv_prog_CC
2667 shift
2668 if test $# != 0; then
2669 # We chose a different compiler from the bogus one.
2670 # However, it has the same basename, so the bogon will be chosen
2671 # first if we set CC to just the basename; use the full file name.
2672 shift
2673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2678 CC=$ac_cv_prog_CC
2679 if test -n "$CC"; then
2680 { echo "$as_me:$LINENO: result: $CC" >&5
2681 echo "${ECHO_T}$CC" >&6; }
2682 else
2683 { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2689 if test -z "$CC"; then
2690 if test -n "$ac_tool_prefix"; then
2691 for ac_prog in cl.exe
2693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2714 done
2715 done
2716 IFS=$as_save_IFS
2720 CC=$ac_cv_prog_CC
2721 if test -n "$CC"; then
2722 { echo "$as_me:$LINENO: result: $CC" >&5
2723 echo "${ECHO_T}$CC" >&6; }
2724 else
2725 { echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6; }
2730 test -n "$CC" && break
2731 done
2733 if test -z "$CC"; then
2734 ac_ct_CC=$CC
2735 for ac_prog in cl.exe
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 if test -n "$ac_ct_CC"; then
2745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_ac_ct_CC="$ac_prog"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2758 done
2759 done
2760 IFS=$as_save_IFS
2764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6; }
2768 else
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2774 test -n "$ac_ct_CC" && break
2775 done
2777 if test "x$ac_ct_CC" = x; then
2778 CC=""
2779 else
2780 case $cross_compiling:$ac_tool_warned in
2781 yes:)
2782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2783 whose name does not start with the host triplet. If you think this
2784 configuration is useful to you, please write to autoconf@gnu.org." >&5
2785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2786 whose name does not start with the host triplet. If you think this
2787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2788 ac_tool_warned=yes ;;
2789 esac
2790 CC=$ac_ct_CC
2797 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2798 See \`config.log' for more details." >&5
2799 echo "$as_me: error: no acceptable C compiler found in \$PATH
2800 See \`config.log' for more details." >&2;}
2801 { (exit 1); exit 1; }; }
2803 # Provide some information about the compiler.
2804 echo "$as_me:$LINENO: checking for C compiler version" >&5
2805 ac_compiler=`set X $ac_compile; echo $2`
2806 { (ac_try="$ac_compiler --version >&5"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compiler --version >&5") 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816 { (ac_try="$ac_compiler -v >&5"
2817 case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820 esac
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compiler -v >&5") 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }
2826 { (ac_try="$ac_compiler -V >&5"
2827 case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compiler -V >&5") 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2837 cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h. */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2845 main ()
2849 return 0;
2851 _ACEOF
2852 ac_clean_files_save=$ac_clean_files
2853 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2854 # Try to create an executable without -o first, disregard a.out.
2855 # It will help us diagnose broken compilers, and finding out an intuition
2856 # of exeext.
2857 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2858 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2859 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2861 # List of possible output files, starting from the most likely.
2862 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2863 # only as a last resort. b.out is created by i960 compilers.
2864 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2866 # The IRIX 6 linker writes into existing files which may not be
2867 # executable, retaining their permissions. Remove them first so a
2868 # subsequent execution test works.
2869 ac_rmfiles=
2870 for ac_file in $ac_files
2872 case $ac_file in
2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2874 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2875 esac
2876 done
2877 rm -f $ac_rmfiles
2879 if { (ac_try="$ac_link_default"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_link_default") 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; then
2889 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2890 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2891 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2892 # so that the user can short-circuit this test for compilers unknown to
2893 # Autoconf.
2894 for ac_file in $ac_files
2896 test -f "$ac_file" || continue
2897 case $ac_file in
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2900 [ab].out )
2901 # We found the default executable, but exeext='' is most
2902 # certainly right.
2903 break;;
2904 *.* )
2905 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2906 then :; else
2907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2909 # We set ac_cv_exeext here because the later test for it is not
2910 # safe: cross compilers may not add the suffix if given an `-o'
2911 # argument, so we may need to know it at that point already.
2912 # Even if this section looks crufty: it has the advantage of
2913 # actually working.
2914 break;;
2916 break;;
2917 esac
2918 done
2919 test "$ac_cv_exeext" = no && ac_cv_exeext=
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2926 See \`config.log' for more details." >&5
2927 echo "$as_me: error: C compiler cannot create executables
2928 See \`config.log' for more details." >&2;}
2929 { (exit 77); exit 77; }; }
2932 ac_exeext=$ac_cv_exeext
2933 { echo "$as_me:$LINENO: result: $ac_file" >&5
2934 echo "${ECHO_T}$ac_file" >&6; }
2936 # Check that the compiler produces executables we can run. If not, either
2937 # the compiler is broken, or we cross compile.
2938 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2939 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2940 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2941 # If not cross compiling, check that we can run a simple program.
2942 if test "$cross_compiling" != yes; then
2943 if { ac_try='./$ac_file'
2944 { (case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_try") 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 cross_compiling=no
2954 else
2955 if test "$cross_compiling" = maybe; then
2956 cross_compiling=yes
2957 else
2958 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2959 If you meant to cross compile, use \`--host'.
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot run C compiled programs.
2962 If you meant to cross compile, use \`--host'.
2963 See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2968 { echo "$as_me:$LINENO: result: yes" >&5
2969 echo "${ECHO_T}yes" >&6; }
2971 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2972 ac_clean_files=$ac_clean_files_save
2973 # Check that the compiler produces executables we can run. If not, either
2974 # the compiler is broken, or we cross compile.
2975 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2976 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2977 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2978 echo "${ECHO_T}$cross_compiling" >&6; }
2980 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2981 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2982 if { (ac_try="$ac_link"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_link") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2994 # work properly (i.e., refer to `conftest.exe'), while it won't with
2995 # `rm'.
2996 for ac_file in conftest.exe conftest conftest.*; do
2997 test -f "$ac_file" || continue
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 break;;
3002 * ) break;;
3003 esac
3004 done
3005 else
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3013 rm -f conftest$ac_cv_exeext
3014 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3015 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3017 rm -f conftest.$ac_ext
3018 EXEEXT=$ac_cv_exeext
3019 ac_exeext=$EXEEXT
3020 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3022 if test "${ac_cv_objext+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025 cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h. */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3033 main ()
3037 return 0;
3039 _ACEOF
3040 rm -f conftest.o conftest.obj
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 for ac_file in conftest.o conftest.obj conftest.*; do
3052 test -f "$ac_file" || continue;
3053 case $ac_file in
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3056 break;;
3057 esac
3058 done
3059 else
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3064 See \`config.log' for more details." >&5
3065 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3066 See \`config.log' for more details." >&2;}
3067 { (exit 1); exit 1; }; }
3070 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3072 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3073 echo "${ECHO_T}$ac_cv_objext" >&6; }
3074 OBJEXT=$ac_cv_objext
3075 ac_objext=$OBJEXT
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3089 main ()
3091 #ifndef __GNUC__
3092 choke me
3093 #endif
3096 return 0;
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 ac_compiler_gnu=yes
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_compiler_gnu=no
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3146 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3147 GCC=`test $ac_compiler_gnu = yes && echo yes`
3148 ac_test_CFLAGS=${CFLAGS+set}
3149 ac_save_CFLAGS=$CFLAGS
3150 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3151 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3152 if test "${ac_cv_prog_cc_g+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155 ac_save_c_werror_flag=$ac_c_werror_flag
3156 ac_c_werror_flag=yes
3157 ac_cv_prog_cc_g=no
3158 CFLAGS="-g"
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3167 main ()
3171 return 0;
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_prog_cc_g=yes
3209 else
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 CFLAGS=""
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3222 main ()
3226 return 0;
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_try") 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 ac_c_werror_flag=$ac_save_c_werror_flag
3269 CFLAGS="-g"
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3278 main ()
3282 return 0;
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_try") 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_prog_cc_g=yes
3320 else
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_c_werror_flag=$ac_save_c_werror_flag
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3337 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3338 if test "$ac_test_CFLAGS" = set; then
3339 CFLAGS=$ac_save_CFLAGS
3340 elif test $ac_cv_prog_cc_g = yes; then
3341 if test "$GCC" = yes; then
3342 CFLAGS="-g -O2"
3343 else
3344 CFLAGS="-g"
3346 else
3347 if test "$GCC" = yes; then
3348 CFLAGS="-O2"
3349 else
3350 CFLAGS=
3353 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3354 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3355 if test "${ac_cv_prog_cc_c89+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 ac_cv_prog_cc_c89=no
3359 ac_save_CC=$CC
3360 cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 #include <stdarg.h>
3367 #include <stdio.h>
3368 #include <sys/types.h>
3369 #include <sys/stat.h>
3370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3371 struct buf { int x; };
3372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373 static char *e (p, i)
3374 char **p;
3375 int i;
3377 return p[i];
3379 static char *f (char * (*g) (char **, int), char **p, ...)
3381 char *s;
3382 va_list v;
3383 va_start (v,p);
3384 s = g (p, va_arg (v,int));
3385 va_end (v);
3386 return s;
3389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3390 function prototypes and stuff, but not '\xHH' hex character constants.
3391 These don't provoke an error unfortunately, instead are silently treated
3392 as 'x'. The following induces an error, until -std is added to get
3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3394 array size at least. It's necessary to write '\x00'==0 to get something
3395 that's true only with -std. */
3396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399 inside strings and character constants. */
3400 #define FOO(x) 'x'
3401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3403 int test (int i, double x);
3404 struct s1 {int (*f) (int a);};
3405 struct s2 {int (*f) (double a);};
3406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407 int argc;
3408 char **argv;
3410 main ()
3412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 return 0;
3416 _ACEOF
3417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3420 CC="$ac_save_CC $ac_arg"
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3436 { (case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_try") 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_try") 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_prog_cc_c89=$ac_arg
3456 else
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f core conftest.err conftest.$ac_objext
3464 test "x$ac_cv_prog_cc_c89" != "xno" && break
3465 done
3466 rm -f conftest.$ac_ext
3467 CC=$ac_save_CC
3470 # AC_CACHE_VAL
3471 case "x$ac_cv_prog_cc_c89" in
3473 { echo "$as_me:$LINENO: result: none needed" >&5
3474 echo "${ECHO_T}none needed" >&6; } ;;
3475 xno)
3476 { echo "$as_me:$LINENO: result: unsupported" >&5
3477 echo "${ECHO_T}unsupported" >&6; } ;;
3479 CC="$CC $ac_cv_prog_cc_c89"
3480 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3482 esac
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3498 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3499 # On Suns, sometimes $CPP names a directory.
3500 if test -n "$CPP" && test -d "$CPP"; then
3501 CPP=
3503 if test -z "$CPP"; then
3504 if test "${ac_cv_prog_CPP+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 # Double quotes because CPP needs to be expanded
3508 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3510 ac_preproc_ok=false
3511 for ac_c_preproc_warn_flag in '' yes
3513 # Use a header file that comes with gcc, so configuring glibc
3514 # with a fresh cross-compiler works.
3515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3516 # <limits.h> exists even on freestanding compilers.
3517 # On the NeXT, cc -E runs the code through the compiler's parser,
3518 # not just through cpp. "Syntax error" is here to catch this case.
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #ifdef __STDC__
3526 # include <limits.h>
3527 #else
3528 # include <assert.h>
3529 #endif
3530 Syntax error
3531 _ACEOF
3532 if { (ac_try="$ac_cpp conftest.$ac_ext"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3548 else
3549 ac_cpp_err=
3551 else
3552 ac_cpp_err=yes
3554 if test -z "$ac_cpp_err"; then
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 # Broken: fails on valid input.
3561 continue
3564 rm -f conftest.err conftest.$ac_ext
3566 # OK, works on sane cases. Now check whether nonexistent headers
3567 # can be detected and how.
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include <ac_nonexistent.h>
3575 _ACEOF
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev/null; then
3589 if test -s conftest.err; then
3590 ac_cpp_err=$ac_c_preproc_warn_flag
3591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592 else
3593 ac_cpp_err=
3595 else
3596 ac_cpp_err=yes
3598 if test -z "$ac_cpp_err"; then
3599 # Broken: success on invalid input.
3600 continue
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 # Passes both tests.
3606 ac_preproc_ok=:
3607 break
3610 rm -f conftest.err conftest.$ac_ext
3612 done
3613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3614 rm -f conftest.err conftest.$ac_ext
3615 if $ac_preproc_ok; then
3616 break
3619 done
3620 ac_cv_prog_CPP=$CPP
3623 CPP=$ac_cv_prog_CPP
3624 else
3625 ac_cv_prog_CPP=$CPP
3627 { echo "$as_me:$LINENO: result: $CPP" >&5
3628 echo "${ECHO_T}$CPP" >&6; }
3629 ac_preproc_ok=false
3630 for ac_c_preproc_warn_flag in '' yes
3632 # Use a header file that comes with gcc, so configuring glibc
3633 # with a fresh cross-compiler works.
3634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635 # <limits.h> exists even on freestanding compilers.
3636 # On the NeXT, cc -E runs the code through the compiler's parser,
3637 # not just through cpp. "Syntax error" is here to catch this case.
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 #ifdef __STDC__
3645 # include <limits.h>
3646 #else
3647 # include <assert.h>
3648 #endif
3649 Syntax error
3650 _ACEOF
3651 if { (ac_try="$ac_cpp conftest.$ac_ext"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null; then
3664 if test -s conftest.err; then
3665 ac_cpp_err=$ac_c_preproc_warn_flag
3666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3667 else
3668 ac_cpp_err=
3670 else
3671 ac_cpp_err=yes
3673 if test -z "$ac_cpp_err"; then
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 # Broken: fails on valid input.
3680 continue
3683 rm -f conftest.err conftest.$ac_ext
3685 # OK, works on sane cases. Now check whether nonexistent headers
3686 # can be detected and how.
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 #include <ac_nonexistent.h>
3694 _ACEOF
3695 if { (ac_try="$ac_cpp conftest.$ac_ext"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } >/dev/null; then
3708 if test -s conftest.err; then
3709 ac_cpp_err=$ac_c_preproc_warn_flag
3710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3711 else
3712 ac_cpp_err=
3714 else
3715 ac_cpp_err=yes
3717 if test -z "$ac_cpp_err"; then
3718 # Broken: success on invalid input.
3719 continue
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 # Passes both tests.
3725 ac_preproc_ok=:
3726 break
3729 rm -f conftest.err conftest.$ac_ext
3731 done
3732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733 rm -f conftest.err conftest.$ac_ext
3734 if $ac_preproc_ok; then
3736 else
3737 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3738 See \`config.log' for more details." >&5
3739 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3740 See \`config.log' for more details." >&2;}
3741 { (exit 1); exit 1; }; }
3744 ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3752 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3753 if test "${ac_cv_path_GREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 # Extract the first word of "grep ggrep" to use in msg output
3757 if test -z "$GREP"; then
3758 set dummy grep ggrep; ac_prog_name=$2
3759 if test "${ac_cv_path_GREP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 ac_path_GREP_found=false
3763 # Loop through the user's path and test for each of PROGNAME-LIST
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_prog in grep ggrep; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3772 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3773 # Check for GNU ac_path_GREP and select it if it is found.
3774 # Check for GNU $ac_path_GREP
3775 case `"$ac_path_GREP" --version 2>&1` in
3776 *GNU*)
3777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3779 ac_count=0
3780 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3781 while :
3783 cat "conftest.in" "conftest.in" >"conftest.tmp"
3784 mv "conftest.tmp" "conftest.in"
3785 cp "conftest.in" "conftest.nl"
3786 echo 'GREP' >> "conftest.nl"
3787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3789 ac_count=`expr $ac_count + 1`
3790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3791 # Best one so far, save it but keep looking for a better one
3792 ac_cv_path_GREP="$ac_path_GREP"
3793 ac_path_GREP_max=$ac_count
3795 # 10*(2^10) chars as input seems more than enough
3796 test $ac_count -gt 10 && break
3797 done
3798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799 esac
3802 $ac_path_GREP_found && break 3
3803 done
3804 done
3806 done
3807 IFS=$as_save_IFS
3812 GREP="$ac_cv_path_GREP"
3813 if test -z "$GREP"; then
3814 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3815 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3816 { (exit 1); exit 1; }; }
3819 else
3820 ac_cv_path_GREP=$GREP
3825 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3826 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3827 GREP="$ac_cv_path_GREP"
3830 { echo "$as_me:$LINENO: checking for egrep" >&5
3831 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3832 if test "${ac_cv_path_EGREP+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3836 then ac_cv_path_EGREP="$GREP -E"
3837 else
3838 # Extract the first word of "egrep" to use in msg output
3839 if test -z "$EGREP"; then
3840 set dummy egrep; ac_prog_name=$2
3841 if test "${ac_cv_path_EGREP+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 ac_path_EGREP_found=false
3845 # Loop through the user's path and test for each of PROGNAME-LIST
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_prog in egrep; do
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3854 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3855 # Check for GNU ac_path_EGREP and select it if it is found.
3856 # Check for GNU $ac_path_EGREP
3857 case `"$ac_path_EGREP" --version 2>&1` in
3858 *GNU*)
3859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3861 ac_count=0
3862 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3863 while :
3865 cat "conftest.in" "conftest.in" >"conftest.tmp"
3866 mv "conftest.tmp" "conftest.in"
3867 cp "conftest.in" "conftest.nl"
3868 echo 'EGREP' >> "conftest.nl"
3869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3871 ac_count=`expr $ac_count + 1`
3872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3873 # Best one so far, save it but keep looking for a better one
3874 ac_cv_path_EGREP="$ac_path_EGREP"
3875 ac_path_EGREP_max=$ac_count
3877 # 10*(2^10) chars as input seems more than enough
3878 test $ac_count -gt 10 && break
3879 done
3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3881 esac
3884 $ac_path_EGREP_found && break 3
3885 done
3886 done
3888 done
3889 IFS=$as_save_IFS
3894 EGREP="$ac_cv_path_EGREP"
3895 if test -z "$EGREP"; then
3896 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3897 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3898 { (exit 1); exit 1; }; }
3901 else
3902 ac_cv_path_EGREP=$EGREP
3908 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3909 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3910 EGREP="$ac_cv_path_EGREP"
3913 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3914 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3915 if test "${ac_cv_header_stdc+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h. */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 #include <stdlib.h>
3925 #include <stdarg.h>
3926 #include <string.h>
3927 #include <float.h>
3930 main ()
3934 return 0;
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3952 { (case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_try") 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_try") 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_header_stdc=yes
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 ac_cv_header_stdc=no
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 if test $ac_cv_header_stdc = yes; then
3982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3983 cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #include <string.h>
3991 _ACEOF
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 $EGREP "memchr" >/dev/null 2>&1; then
3995 else
3996 ac_cv_header_stdc=no
3998 rm -f conftest*
4002 if test $ac_cv_header_stdc = yes; then
4003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <stdlib.h>
4012 _ACEOF
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "free" >/dev/null 2>&1; then
4016 else
4017 ac_cv_header_stdc=no
4019 rm -f conftest*
4023 if test $ac_cv_header_stdc = yes; then
4024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4025 if test "$cross_compiling" = yes; then
4027 else
4028 cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 #include <ctype.h>
4035 #include <stdlib.h>
4036 #if ((' ' & 0x0FF) == 0x020)
4037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4039 #else
4040 # define ISLOWER(c) \
4041 (('a' <= (c) && (c) <= 'i') \
4042 || ('j' <= (c) && (c) <= 'r') \
4043 || ('s' <= (c) && (c) <= 'z'))
4044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4045 #endif
4047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4049 main ()
4051 int i;
4052 for (i = 0; i < 256; i++)
4053 if (XOR (islower (i), ISLOWER (i))
4054 || toupper (i) != TOUPPER (i))
4055 return 2;
4056 return 0;
4058 _ACEOF
4059 rm -f conftest$ac_exeext
4060 if { (ac_try="$ac_link"
4061 case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_link") 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
4080 else
4081 echo "$as_me: program exited with status $ac_status" >&5
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ( exit $ac_status )
4086 ac_cv_header_stdc=no
4088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4095 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4096 if test $ac_cv_header_stdc = yes; then
4098 cat >>confdefs.h <<\_ACEOF
4099 #define STDC_HEADERS 1
4100 _ACEOF
4104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4114 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4115 inttypes.h stdint.h unistd.h
4117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 $ac_includes_default
4131 #include <$ac_header>
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 eval "$as_ac_Header=yes"
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 eval "$as_ac_Header=no"
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_res=`eval echo '${'$as_ac_Header'}'`
4178 { echo "$as_me:$LINENO: result: $ac_res" >&5
4179 echo "${ECHO_T}$ac_res" >&6; }
4180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4183 _ACEOF
4187 done
4190 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4191 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4192 if test "${ac_cv_c_bigendian+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 # See if sys/param.h defines the BYTE_ORDER macro.
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #include <sys/types.h>
4203 #include <sys/param.h>
4206 main ()
4208 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4209 bogus endian macros
4210 #endif
4213 return 0;
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_compile") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 # It does; now see whether it defined to BIG_ENDIAN or not.
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 #include <sys/types.h>
4258 #include <sys/param.h>
4261 main ()
4263 #if BYTE_ORDER != BIG_ENDIAN
4264 not big endian
4265 #endif
4268 return 0;
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (ac_try="$ac_compile"
4273 case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_c_bigendian=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_cv_c_bigendian=no
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 else
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 # It does not; compile a test program.
4319 if test "$cross_compiling" = yes; then
4320 # try to guess the endianness by grepping values into an object file
4321 ac_cv_c_bigendian=unknown
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4329 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4330 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4331 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4332 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4333 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4335 main ()
4337 _ascii (); _ebcdic ();
4339 return 0;
4341 _ACEOF
4342 rm -f conftest.$ac_objext
4343 if { (ac_try="$ac_compile"
4344 case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360 esac
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4377 ac_cv_c_bigendian=yes
4379 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4380 if test "$ac_cv_c_bigendian" = unknown; then
4381 ac_cv_c_bigendian=no
4382 else
4383 # finding both strings is unlikely to happen, but who knows?
4384 ac_cv_c_bigendian=unknown
4387 else
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 else
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 $ac_includes_default
4404 main ()
4407 /* Are we little or big endian? From Harbison&Steele. */
4408 union
4410 long int l;
4411 char c[sizeof (long int)];
4412 } u;
4413 u.l = 1;
4414 return u.c[sizeof (long int) - 1] == 1;
4417 return 0;
4419 _ACEOF
4420 rm -f conftest$ac_exeext
4421 if { (ac_try="$ac_link"
4422 case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_link") 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4431 { (case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434 esac
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_try") 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_cv_c_bigendian=no
4441 else
4442 echo "$as_me: program exited with status $ac_status" >&5
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ( exit $ac_status )
4447 ac_cv_c_bigendian=yes
4449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4458 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4459 case $ac_cv_c_bigendian in
4460 yes)
4461 ENDIAN=big
4464 ENDIAN=little
4467 { { echo "$as_me:$LINENO: error: unknown endianness
4468 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4469 echo "$as_me: error: unknown endianness
4470 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4471 { (exit 1); exit 1; }; } ;;
4472 esac
4475 if test "$cross_compiling" = yes; then
4476 LLVM_CROSS_COMPILING=1
4479 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4480 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4481 if test "${ac_cv_build_exeext+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4485 ac_cv_build_exeext=.exe
4486 else
4487 ac_build_prefix=${build_alias}-
4489 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4490 set dummy ${ac_build_prefix}gcc; ac_word=$2
4491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 if test -n "$BUILD_CC"; then
4497 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4506 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4510 done
4511 done
4512 IFS=$as_save_IFS
4516 BUILD_CC=$ac_cv_prog_BUILD_CC
4517 if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519 echo "${ECHO_T}$BUILD_CC" >&6; }
4520 else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4526 if test -z "$BUILD_CC"; then
4527 # Extract the first word of "gcc", so it can be a program name with args.
4528 set dummy gcc; ac_word=$2
4529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 if test -n "$BUILD_CC"; then
4535 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_BUILD_CC="gcc"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4548 done
4549 done
4550 IFS=$as_save_IFS
4554 BUILD_CC=$ac_cv_prog_BUILD_CC
4555 if test -n "$BUILD_CC"; then
4556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557 echo "${ECHO_T}$BUILD_CC" >&6; }
4558 else
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4564 if test -z "$BUILD_CC"; then
4565 # Extract the first word of "cc", so it can be a program name with args.
4566 set dummy cc; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 if test -n "$BUILD_CC"; then
4573 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4574 else
4575 ac_prog_rejected=no
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4584 ac_prog_rejected=yes
4585 continue
4587 ac_cv_prog_BUILD_CC="cc"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4595 if test $ac_prog_rejected = yes; then
4596 # We found a bogon in the path, so make sure we never use it.
4597 set dummy $ac_cv_prog_BUILD_CC
4598 shift
4599 if test $# != 0; then
4600 # We chose a different compiler from the bogus one.
4601 # However, it has the same basename, so the bogon will be chosen
4602 # first if we set BUILD_CC to just the basename; use the full file name.
4603 shift
4604 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4609 BUILD_CC=$ac_cv_prog_BUILD_CC
4610 if test -n "$BUILD_CC"; then
4611 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4612 echo "${ECHO_T}$BUILD_CC" >&6; }
4613 else
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4621 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4622 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4623 { (exit 1); exit 1; }; }
4624 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4625 rm -f conftest*
4626 echo 'int main () { return 0; }' > conftest.$ac_ext
4627 ac_cv_build_exeext=
4628 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4629 (eval $ac_build_link) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; then
4633 for file in conftest.*; do
4634 case $file in
4635 *.c | *.o | *.obj | *.dSYM) ;;
4636 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4637 esac
4638 done
4639 else
4640 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4641 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4642 { (exit 1); exit 1; }; }
4644 rm -f conftest*
4645 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4649 BUILD_EXEEXT=""
4650 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4651 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4652 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4653 ac_build_exeext=$BUILD_EXEEXT
4655 ac_build_prefix=${build_alias}-
4656 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4657 set dummy ${ac_build_prefix}g++; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 if test -n "$BUILD_CXX"; then
4664 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4684 if test -n "$BUILD_CXX"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4686 echo "${ECHO_T}$BUILD_CXX" >&6; }
4687 else
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 if test -z "$BUILD_CXX"; then
4694 # Extract the first word of "g++", so it can be a program name with args.
4695 set dummy g++; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 if test -n "$BUILD_CXX"; then
4702 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_BUILD_CXX="g++"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722 if test -n "$BUILD_CXX"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724 echo "${ECHO_T}$BUILD_CXX" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 if test -z "$BUILD_CXX"; then
4732 # Extract the first word of "c++", so it can be a program name with args.
4733 set dummy c++; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739 if test -n "$BUILD_CXX"; then
4740 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4741 else
4742 ac_prog_rejected=no
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4751 ac_prog_rejected=yes
4752 continue
4754 ac_cv_prog_BUILD_CXX="c++"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4758 done
4759 done
4760 IFS=$as_save_IFS
4762 if test $ac_prog_rejected = yes; then
4763 # We found a bogon in the path, so make sure we never use it.
4764 set dummy $ac_cv_prog_BUILD_CXX
4765 shift
4766 if test $# != 0; then
4767 # We chose a different compiler from the bogus one.
4768 # However, it has the same basename, so the bogon will be chosen
4769 # first if we set BUILD_CXX to just the basename; use the full file name.
4770 shift
4771 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4776 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4777 if test -n "$BUILD_CXX"; then
4778 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4779 echo "${ECHO_T}$BUILD_CXX" >&6; }
4780 else
4781 { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4788 else
4789 LLVM_CROSS_COMPILING=0
4793 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4794 cvsbuild="yes"
4795 optimize="no"
4796 CVSBUILD=CVSBUILD=1
4798 else
4799 cvsbuild="no"
4800 optimize="yes"
4804 # Check whether --enable-optimized was given.
4805 if test "${enable_optimized+set}" = set; then
4806 enableval=$enable_optimized;
4807 else
4808 enableval=$optimize
4811 if test ${enableval} = "no" ; then
4812 ENABLE_OPTIMIZED=
4814 else
4815 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4819 # Check whether --enable-profiling was given.
4820 if test "${enable_profiling+set}" = set; then
4821 enableval=$enable_profiling;
4822 else
4823 enableval="no"
4826 if test ${enableval} = "no" ; then
4827 ENABLE_PROFILING=
4829 else
4830 ENABLE_PROFILING=ENABLE_PROFILING=1
4834 # Check whether --enable-assertions was given.
4835 if test "${enable_assertions+set}" = set; then
4836 enableval=$enable_assertions;
4837 else
4838 enableval="yes"
4841 if test ${enableval} = "yes" ; then
4842 DISABLE_ASSERTIONS=
4844 else
4845 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4849 if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
4850 LLVM_COMPACT_SENTINELS=1
4852 else
4853 LLVM_COMPACT_SENTINELS=0
4858 cat >>confdefs.h <<_ACEOF
4859 #define LLVM_COMPACT_SENTINELS $LLVM_COMPACT_SENTINELS
4860 _ACEOF
4864 # Check whether --enable-expensive-checks was given.
4865 if test "${enable_expensive_checks+set}" = set; then
4866 enableval=$enable_expensive_checks;
4867 else
4868 enableval="no"
4871 if test ${enableval} = "yes" ; then
4872 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4874 EXPENSIVE_CHECKS=yes
4876 else
4877 ENABLE_EXPENSIVE_CHECKS=
4879 EXPENSIVE_CHECKS=no
4883 # Check whether --enable-debug-runtime was given.
4884 if test "${enable_debug_runtime+set}" = set; then
4885 enableval=$enable_debug_runtime;
4886 else
4887 enableval=no
4890 if test ${enableval} = "no" ; then
4891 DEBUG_RUNTIME=
4893 else
4894 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4898 # Check whether --enable-jit was given.
4899 if test "${enable_jit+set}" = set; then
4900 enableval=$enable_jit;
4901 else
4902 enableval=default
4905 if test ${enableval} = "no"
4906 then
4907 JIT=
4909 else
4910 case "$llvm_cv_target_arch" in
4911 x86) TARGET_HAS_JIT=1
4913 Sparc) TARGET_HAS_JIT=0
4915 PowerPC) TARGET_HAS_JIT=1
4917 x86_64) TARGET_HAS_JIT=1
4919 Alpha) TARGET_HAS_JIT=1
4921 ARM) TARGET_HAS_JIT=0
4923 Mips) TARGET_HAS_JIT=0
4925 PIC16) TARGET_HAS_JIT=0
4927 XCore) TARGET_HAS_JIT=0
4929 MSP430) TARGET_HAS_JIT=0
4931 SystemZ) TARGET_HAS_JIT=0
4933 Blackfin) TARGET_HAS_JIT=0
4935 *) TARGET_HAS_JIT=0
4937 esac
4940 # Check whether --enable-doxygen was given.
4941 if test "${enable_doxygen+set}" = set; then
4942 enableval=$enable_doxygen;
4943 else
4944 enableval=default
4947 case "$enableval" in
4948 yes) ENABLE_DOXYGEN=1
4950 no) ENABLE_DOXYGEN=0
4952 default) ENABLE_DOXYGEN=0
4954 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4955 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4956 { (exit 1); exit 1; }; } ;;
4957 esac
4959 # Check whether --enable-threads was given.
4960 if test "${enable_threads+set}" = set; then
4961 enableval=$enable_threads;
4962 else
4963 enableval=default
4966 case "$enableval" in
4967 yes) ENABLE_THREADS=1
4969 no) ENABLE_THREADS=0
4971 default) ENABLE_THREADS=1
4973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4974 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4976 esac
4978 cat >>confdefs.h <<_ACEOF
4979 #define ENABLE_THREADS $ENABLE_THREADS
4980 _ACEOF
4983 # Check whether --enable-pic was given.
4984 if test "${enable_pic+set}" = set; then
4985 enableval=$enable_pic;
4986 else
4987 enableval=default
4990 case "$enableval" in
4991 yes) ENABLE_PIC=1
4993 no) ENABLE_PIC=0
4995 default) ENABLE_PIC=1
4997 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4998 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000 esac
5002 cat >>confdefs.h <<_ACEOF
5003 #define ENABLE_PIC $ENABLE_PIC
5004 _ACEOF
5007 TARGETS_TO_BUILD=""
5008 # Check whether --enable-targets was given.
5009 if test "${enable_targets+set}" = set; then
5010 enableval=$enable_targets;
5011 else
5012 enableval=all
5015 case "$enableval" in
5016 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5017 host-only)
5018 case "$llvm_cv_target_arch" in
5019 x86) TARGETS_TO_BUILD="X86" ;;
5020 x86_64) TARGETS_TO_BUILD="X86" ;;
5021 Sparc) TARGETS_TO_BUILD="Sparc" ;;
5022 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
5023 Alpha) TARGETS_TO_BUILD="Alpha" ;;
5024 ARM) TARGETS_TO_BUILD="ARM" ;;
5025 Mips) TARGETS_TO_BUILD="Mips" ;;
5026 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
5027 PIC16) TARGETS_TO_BUILD="PIC16" ;;
5028 XCore) TARGETS_TO_BUILD="XCore" ;;
5029 MSP430) TARGETS_TO_BUILD="MSP430" ;;
5030 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
5031 Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
5032 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5033 echo "$as_me: error: Can not set target to build" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5035 esac
5037 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5038 case "$a_target" in
5039 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5040 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5041 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5042 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5043 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5044 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5045 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5046 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5047 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5048 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5049 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5050 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5051 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5052 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5053 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5054 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5055 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5056 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5057 { (exit 1); exit 1; }; } ;;
5058 esac
5059 done
5061 esac
5062 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5065 # Determine whether we are building LLVM support for the native architecture.
5066 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5067 for a_target in $TARGETS_TO_BUILD; do
5068 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5069 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5071 cat >>confdefs.h <<_ACEOF
5072 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5073 _ACEOF
5076 done
5078 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5079 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5080 LLVM_ENUM_TARGETS=""
5081 LLVM_ENUM_ASM_PRINTERS=""
5082 LLVM_ENUM_ASM_PARSERS=""
5083 for target_to_build in $TARGETS_TO_BUILD; do
5084 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5085 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5086 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5088 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5089 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5091 done
5096 # Check whether --enable-cbe-printf-a was given.
5097 if test "${enable_cbe_printf_a+set}" = set; then
5098 enableval=$enable_cbe_printf_a;
5099 else
5100 enableval=default
5103 case "$enableval" in
5104 yes) ENABLE_CBE_PRINTF_A=1
5106 no) ENABLE_CBE_PRINTF_A=0
5108 default) ENABLE_CBE_PRINTF_A=1
5110 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5111 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5112 { (exit 1); exit 1; }; } ;;
5113 esac
5115 cat >>confdefs.h <<_ACEOF
5116 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5117 _ACEOF
5121 # Check whether --with-llvmgccdir was given.
5122 if test "${with_llvmgccdir+set}" = set; then
5123 withval=$with_llvmgccdir;
5124 else
5125 withval=default
5128 case "$withval" in
5129 default) WITH_LLVMGCCDIR=default ;;
5130 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5131 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5132 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5134 esac
5137 # Check whether --with-llvmgcc was given.
5138 if test "${with_llvmgcc+set}" = set; then
5139 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5140 WITH_LLVMGCCDIR=""
5145 # Check whether --with-llvmgxx was given.
5146 if test "${with_llvmgxx+set}" = set; then
5147 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5148 WITH_LLVMGCCDIR=""
5152 if test -n "$LLVMGCC"; then
5153 LLVMGCCCOMMAND="$LLVMGCC"
5156 if test -n "$LLVMGXX"; then
5157 LLVMGXXCOMMAND="$LLVMGXX"
5160 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5161 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5162 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5163 { (exit 1); exit 1; }; };
5166 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5167 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5168 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5169 { (exit 1); exit 1; }; };
5173 # Check whether --with-extra-options was given.
5174 if test "${with_extra_options+set}" = set; then
5175 withval=$with_extra_options;
5176 else
5177 withval=default
5180 case "$withval" in
5181 default) EXTRA_OPTIONS= ;;
5182 *) EXTRA_OPTIONS=$withval ;;
5183 esac
5184 EXTRA_OPTIONS=$EXTRA_OPTIONS
5187 # Check whether --enable-bindings was given.
5188 if test "${enable_bindings+set}" = set; then
5189 enableval=$enable_bindings;
5190 else
5191 enableval=default
5194 BINDINGS_TO_BUILD=""
5195 case "$enableval" in
5196 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5197 all ) BINDINGS_TO_BUILD="ocaml" ;;
5198 none | no) BINDINGS_TO_BUILD="" ;;
5199 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5200 case "$a_binding" in
5201 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5202 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5203 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5205 esac
5206 done
5208 esac
5211 # Check whether --with-ocaml-libdir was given.
5212 if test "${with_ocaml_libdir+set}" = set; then
5213 withval=$with_ocaml_libdir;
5214 else
5215 withval=auto
5218 case "$withval" in
5219 auto) with_ocaml_libdir="$withval" ;;
5220 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5221 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5222 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5224 esac
5227 # Check whether --with-binutils-include was given.
5228 if test "${with_binutils_include+set}" = set; then
5229 withval=$with_binutils_include;
5230 else
5231 withval=default
5234 case "$withval" in
5235 default) WITH_BINUTILS_INCDIR=default ;;
5236 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5237 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5238 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5240 esac
5241 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5242 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5244 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5245 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5246 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5247 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5248 { (exit 1); exit 1; }; };
5252 # Check whether --enable-libffi was given.
5253 if test "${enable_libffi+set}" = set; then
5254 enableval=$enable_libffi;
5255 else
5256 enableval=yes
5259 case "$enableval" in
5260 yes) llvm_cv_enable_libffi="yes" ;;
5261 no) llvm_cv_enable_libffi="no" ;;
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265 esac
5267 if test "$llvm_cv_os_type" = "Win32" ; then
5268 llvmc_dynamic="yes"
5269 else
5270 llvmc_dynamic="no"
5273 # Check whether --enable-llvmc-dynamic was given.
5274 if test "${enable_llvmc_dynamic+set}" = set; then
5275 enableval=$enable_llvmc_dynamic;
5276 else
5277 enableval=$llvmc_dynamic
5280 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5281 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5283 else
5284 ENABLE_LLVMC_DYNAMIC=
5288 # Check whether --enable-llvmc-dynamic-plugins was given.
5289 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5290 enableval=$enable_llvmc_dynamic_plugins;
5291 else
5292 enableval=yes
5295 if test ${enableval} = "yes" ; then
5296 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5298 else
5299 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5313 CPP=
5315 if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 # Double quotes because CPP needs to be expanded
5320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5322 ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #ifdef __STDC__
5338 # include <limits.h>
5339 #else
5340 # include <assert.h>
5341 #endif
5342 Syntax error
5343 _ACEOF
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5345 case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev/null; then
5357 if test -s conftest.err; then
5358 ac_cpp_err=$ac_c_preproc_warn_flag
5359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5360 else
5361 ac_cpp_err=
5363 else
5364 ac_cpp_err=yes
5366 if test -z "$ac_cpp_err"; then
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 # Broken: fails on valid input.
5373 continue
5376 rm -f conftest.err conftest.$ac_ext
5378 # OK, works on sane cases. Now check whether nonexistent headers
5379 # can be detected and how.
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <ac_nonexistent.h>
5387 _ACEOF
5388 if { (ac_try="$ac_cpp conftest.$ac_ext"
5389 case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392 esac
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } >/dev/null; then
5401 if test -s conftest.err; then
5402 ac_cpp_err=$ac_c_preproc_warn_flag
5403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5404 else
5405 ac_cpp_err=
5407 else
5408 ac_cpp_err=yes
5410 if test -z "$ac_cpp_err"; then
5411 # Broken: success on invalid input.
5412 continue
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 # Passes both tests.
5418 ac_preproc_ok=:
5419 break
5422 rm -f conftest.err conftest.$ac_ext
5424 done
5425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5426 rm -f conftest.err conftest.$ac_ext
5427 if $ac_preproc_ok; then
5428 break
5431 done
5432 ac_cv_prog_CPP=$CPP
5435 CPP=$ac_cv_prog_CPP
5436 else
5437 ac_cv_prog_CPP=$CPP
5439 { echo "$as_me:$LINENO: result: $CPP" >&5
5440 echo "${ECHO_T}$CPP" >&6; }
5441 ac_preproc_ok=false
5442 for ac_c_preproc_warn_flag in '' yes
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #ifdef __STDC__
5457 # include <limits.h>
5458 #else
5459 # include <assert.h>
5460 #endif
5461 Syntax error
5462 _ACEOF
5463 if { (ac_try="$ac_cpp conftest.$ac_ext"
5464 case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } >/dev/null; then
5476 if test -s conftest.err; then
5477 ac_cpp_err=$ac_c_preproc_warn_flag
5478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5479 else
5480 ac_cpp_err=
5482 else
5483 ac_cpp_err=yes
5485 if test -z "$ac_cpp_err"; then
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 # Broken: fails on valid input.
5492 continue
5495 rm -f conftest.err conftest.$ac_ext
5497 # OK, works on sane cases. Now check whether nonexistent headers
5498 # can be detected and how.
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 #include <ac_nonexistent.h>
5506 _ACEOF
5507 if { (ac_try="$ac_cpp conftest.$ac_ext"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } >/dev/null; then
5520 if test -s conftest.err; then
5521 ac_cpp_err=$ac_c_preproc_warn_flag
5522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5523 else
5524 ac_cpp_err=
5526 else
5527 ac_cpp_err=yes
5529 if test -z "$ac_cpp_err"; then
5530 # Broken: success on invalid input.
5531 continue
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 # Passes both tests.
5537 ac_preproc_ok=:
5538 break
5541 rm -f conftest.err conftest.$ac_ext
5543 done
5544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545 rm -f conftest.err conftest.$ac_ext
5546 if $ac_preproc_ok; then
5548 else
5549 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5552 See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; }
5556 ac_ext=c
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5562 ac_ext=c
5563 ac_cpp='$CPP $CPPFLAGS'
5564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567 if test -n "$ac_tool_prefix"; then
5568 for ac_prog in gcc
5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5574 if test "${ac_cv_prog_CC+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577 if test -n "$CC"; then
5578 ac_cv_prog_CC="$CC" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5591 done
5592 done
5593 IFS=$as_save_IFS
5597 CC=$ac_cv_prog_CC
5598 if test -n "$CC"; then
5599 { echo "$as_me:$LINENO: result: $CC" >&5
5600 echo "${ECHO_T}$CC" >&6; }
5601 else
5602 { echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6; }
5607 test -n "$CC" && break
5608 done
5610 if test -z "$CC"; then
5611 ac_ct_CC=$CC
5612 for ac_prog in gcc
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621 if test -n "$ac_ct_CC"; then
5622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_CC="$ac_prog"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5642 if test -n "$ac_ct_CC"; then
5643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5644 echo "${ECHO_T}$ac_ct_CC" >&6; }
5645 else
5646 { echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6; }
5651 test -n "$ac_ct_CC" && break
5652 done
5654 if test "x$ac_ct_CC" = x; then
5655 CC=""
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet. If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&5
5662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5663 whose name does not start with the host triplet. If you think this
5664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5665 ac_tool_warned=yes ;;
5666 esac
5667 CC=$ac_ct_CC
5672 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5673 See \`config.log' for more details." >&5
5674 echo "$as_me: error: no acceptable C compiler found in \$PATH
5675 See \`config.log' for more details." >&2;}
5676 { (exit 1); exit 1; }; }
5678 # Provide some information about the compiler.
5679 echo "$as_me:$LINENO: checking for C compiler version" >&5
5680 ac_compiler=`set X $ac_compile; echo $2`
5681 { (ac_try="$ac_compiler --version >&5"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compiler --version >&5") 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }
5691 { (ac_try="$ac_compiler -v >&5"
5692 case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_compiler -v >&5") 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }
5701 { (ac_try="$ac_compiler -V >&5"
5702 case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compiler -V >&5") 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }
5712 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h. */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5725 main ()
5727 #ifndef __GNUC__
5728 choke me
5729 #endif
5732 return 0;
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5750 { (case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_try") 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_try") 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_compiler_gnu=yes
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 ac_compiler_gnu=no
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5781 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5783 GCC=`test $ac_compiler_gnu = yes && echo yes`
5784 ac_test_CFLAGS=${CFLAGS+set}
5785 ac_save_CFLAGS=$CFLAGS
5786 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5787 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5788 if test "${ac_cv_prog_cc_g+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 ac_save_c_werror_flag=$ac_c_werror_flag
5792 ac_c_werror_flag=yes
5793 ac_cv_prog_cc_g=no
5794 CFLAGS="-g"
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5803 main ()
5807 return 0;
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (ac_try="$ac_compile"
5812 case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_compile") 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5825 { (case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_try") 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_try") 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_prog_cc_g=yes
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 CFLAGS=""
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5858 main ()
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5880 { (case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_try") 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest.$ac_objext'
5890 { (case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_try") 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 ac_c_werror_flag=$ac_save_c_werror_flag
5905 CFLAGS="-g"
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5914 main ()
5918 return 0;
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (ac_try="$ac_compile"
5923 case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_prog_cc_g=yes
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 ac_c_werror_flag=$ac_save_c_werror_flag
5972 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5973 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5974 if test "$ac_test_CFLAGS" = set; then
5975 CFLAGS=$ac_save_CFLAGS
5976 elif test $ac_cv_prog_cc_g = yes; then
5977 if test "$GCC" = yes; then
5978 CFLAGS="-g -O2"
5979 else
5980 CFLAGS="-g"
5982 else
5983 if test "$GCC" = yes; then
5984 CFLAGS="-O2"
5985 else
5986 CFLAGS=
5989 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5990 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_cc_c89+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 ac_cv_prog_cc_c89=no
5995 ac_save_CC=$CC
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 #include <stdarg.h>
6003 #include <stdio.h>
6004 #include <sys/types.h>
6005 #include <sys/stat.h>
6006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6007 struct buf { int x; };
6008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6009 static char *e (p, i)
6010 char **p;
6011 int i;
6013 return p[i];
6015 static char *f (char * (*g) (char **, int), char **p, ...)
6017 char *s;
6018 va_list v;
6019 va_start (v,p);
6020 s = g (p, va_arg (v,int));
6021 va_end (v);
6022 return s;
6025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6026 function prototypes and stuff, but not '\xHH' hex character constants.
6027 These don't provoke an error unfortunately, instead are silently treated
6028 as 'x'. The following induces an error, until -std is added to get
6029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6030 array size at least. It's necessary to write '\x00'==0 to get something
6031 that's true only with -std. */
6032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6035 inside strings and character constants. */
6036 #define FOO(x) 'x'
6037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6039 int test (int i, double x);
6040 struct s1 {int (*f) (int a);};
6041 struct s2 {int (*f) (double a);};
6042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6043 int argc;
6044 char **argv;
6046 main ()
6048 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6050 return 0;
6052 _ACEOF
6053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6056 CC="$ac_save_CC $ac_arg"
6057 rm -f conftest.$ac_objext
6058 if { (ac_try="$ac_compile"
6059 case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062 esac
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_try") 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_prog_cc_c89=$ac_arg
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6099 rm -f core conftest.err conftest.$ac_objext
6100 test "x$ac_cv_prog_cc_c89" != "xno" && break
6101 done
6102 rm -f conftest.$ac_ext
6103 CC=$ac_save_CC
6106 # AC_CACHE_VAL
6107 case "x$ac_cv_prog_cc_c89" in
6109 { echo "$as_me:$LINENO: result: none needed" >&5
6110 echo "${ECHO_T}none needed" >&6; } ;;
6111 xno)
6112 { echo "$as_me:$LINENO: result: unsupported" >&5
6113 echo "${ECHO_T}unsupported" >&6; } ;;
6115 CC="$CC $ac_cv_prog_cc_c89"
6116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6117 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6118 esac
6121 ac_ext=c
6122 ac_cpp='$CPP $CPPFLAGS'
6123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127 ac_ext=cpp
6128 ac_cpp='$CXXCPP $CPPFLAGS'
6129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6132 if test -z "$CXX"; then
6133 if test -n "$CCC"; then
6134 CXX=$CCC
6135 else
6136 if test -n "$ac_tool_prefix"; then
6137 for ac_prog in g++
6139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_CXX+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 if test -n "$CXX"; then
6147 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6160 done
6161 done
6162 IFS=$as_save_IFS
6166 CXX=$ac_cv_prog_CXX
6167 if test -n "$CXX"; then
6168 { echo "$as_me:$LINENO: result: $CXX" >&5
6169 echo "${ECHO_T}$CXX" >&6; }
6170 else
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6176 test -n "$CXX" && break
6177 done
6179 if test -z "$CXX"; then
6180 ac_ct_CXX=$CXX
6181 for ac_prog in g++
6183 # Extract the first word of "$ac_prog", so it can be a program name with args.
6184 set dummy $ac_prog; ac_word=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 if test -n "$ac_ct_CXX"; then
6191 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_CXX="$ac_prog"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6204 done
6205 done
6206 IFS=$as_save_IFS
6210 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6211 if test -n "$ac_ct_CXX"; then
6212 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6213 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6214 else
6215 { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6220 test -n "$ac_ct_CXX" && break
6221 done
6223 if test "x$ac_ct_CXX" = x; then
6224 CXX="g++"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet. If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236 CXX=$ac_ct_CXX
6242 # Provide some information about the compiler.
6243 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6244 ac_compiler=`set X $ac_compile; echo $2`
6245 { (ac_try="$ac_compiler --version >&5"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compiler --version >&5") 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }
6255 { (ac_try="$ac_compiler -v >&5"
6256 case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_compiler -v >&5") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }
6265 { (ac_try="$ac_compiler -V >&5"
6266 case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compiler -V >&5") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }
6276 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6277 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6278 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6289 main ()
6291 #ifndef __GNUC__
6292 choke me
6293 #endif
6296 return 0;
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6301 case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6314 { (case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317 esac
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_try") 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_compiler_gnu=yes
6334 else
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 ac_compiler_gnu=no
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6345 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6346 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6347 GXX=`test $ac_compiler_gnu = yes && echo yes`
6348 ac_test_CXXFLAGS=${CXXFLAGS+set}
6349 ac_save_CXXFLAGS=$CXXFLAGS
6350 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6351 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6352 if test "${ac_cv_prog_cxx_g+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6356 ac_cxx_werror_flag=yes
6357 ac_cv_prog_cxx_g=no
6358 CXXFLAGS="-g"
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6367 main ()
6371 return 0;
6373 _ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (ac_try="$ac_compile"
6376 case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6389 { (case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_try") 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_try") 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_prog_cxx_g=yes
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 CXXFLAGS=""
6414 cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h. */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6422 main ()
6426 return 0;
6428 _ACEOF
6429 rm -f conftest.$ac_objext
6430 if { (ac_try="$ac_compile"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_compile") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6444 { (case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_try") 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest.$ac_objext'
6454 { (case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_try") 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6469 CXXFLAGS="-g"
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h. */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6478 main ()
6482 return 0;
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6487 case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6500 { (case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest.$ac_objext'
6510 { (case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_try") 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_cv_prog_cxx_g=yes
6520 else
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6536 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6537 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6538 if test "$ac_test_CXXFLAGS" = set; then
6539 CXXFLAGS=$ac_save_CXXFLAGS
6540 elif test $ac_cv_prog_cxx_g = yes; then
6541 if test "$GXX" = yes; then
6542 CXXFLAGS="-g -O2"
6543 else
6544 CXXFLAGS="-g"
6546 else
6547 if test "$GXX" = yes; then
6548 CXXFLAGS="-O2"
6549 else
6550 CXXFLAGS=
6553 ac_ext=c
6554 ac_cpp='$CPP $CPPFLAGS'
6555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6561 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6562 if test "${lt_cv_path_NM+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 if test -n "$NM"; then
6566 # Let the user override the test.
6567 lt_cv_path_NM="$NM"
6568 else
6569 lt_nm_to_check="${ac_tool_prefix}nm"
6570 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6571 lt_nm_to_check="$lt_nm_to_check nm"
6573 for lt_tmp_nm in $lt_nm_to_check; do
6574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6575 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6576 IFS="$lt_save_ifs"
6577 test -z "$ac_dir" && ac_dir=.
6578 tmp_nm="$ac_dir/$lt_tmp_nm"
6579 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6580 # Check to see if the nm accepts a BSD-compat flag.
6581 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6582 # nm: unknown option "B" ignored
6583 # Tru64's nm complains that /dev/null is an invalid object file
6584 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6585 */dev/null* | *'Invalid file or object type'*)
6586 lt_cv_path_NM="$tmp_nm -B"
6587 break
6590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6591 */dev/null*)
6592 lt_cv_path_NM="$tmp_nm -p"
6593 break
6596 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6597 continue # so that we can try to find one that supports BSD flags
6599 esac
6601 esac
6603 done
6604 IFS="$lt_save_ifs"
6605 done
6606 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6609 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6610 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6611 NM="$lt_cv_path_NM"
6615 { echo "$as_me:$LINENO: checking for GNU make" >&5
6616 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6617 if test "${llvm_cv_gnu_make_command+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 llvm_cv_gnu_make_command=''
6621 for a in "$MAKE" make gmake gnumake ; do
6622 if test -z "$a" ; then continue ; fi ;
6623 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6624 then
6625 llvm_cv_gnu_make_command=$a ;
6626 break;
6628 done
6630 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6631 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6632 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6633 ifGNUmake='' ;
6634 else
6635 ifGNUmake='#' ;
6636 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6637 echo "${ECHO_T}\"Not found\"" >&6; };
6641 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6642 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6643 LN_S=$as_ln_s
6644 if test "$LN_S" = "ln -s"; then
6645 { echo "$as_me:$LINENO: result: yes" >&5
6646 echo "${ECHO_T}yes" >&6; }
6647 else
6648 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6649 echo "${ECHO_T}no, using $LN_S" >&6; }
6652 # Extract the first word of "cmp", so it can be a program name with args.
6653 set dummy cmp; ac_word=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_path_CMP+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 case $CMP in
6660 [\\/]* | ?:[\\/]*)
6661 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6675 done
6676 done
6677 IFS=$as_save_IFS
6679 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6681 esac
6683 CMP=$ac_cv_path_CMP
6684 if test -n "$CMP"; then
6685 { echo "$as_me:$LINENO: result: $CMP" >&5
6686 echo "${ECHO_T}$CMP" >&6; }
6687 else
6688 { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6693 # Extract the first word of "cp", so it can be a program name with args.
6694 set dummy cp; ac_word=$2
6695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697 if test "${ac_cv_path_CP+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700 case $CP in
6701 [\\/]* | ?:[\\/]*)
6702 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6718 IFS=$as_save_IFS
6720 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6722 esac
6724 CP=$ac_cv_path_CP
6725 if test -n "$CP"; then
6726 { echo "$as_me:$LINENO: result: $CP" >&5
6727 echo "${ECHO_T}$CP" >&6; }
6728 else
6729 { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6734 # Extract the first word of "date", so it can be a program name with args.
6735 set dummy date; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_path_DATE+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741 case $DATE in
6742 [\\/]* | ?:[\\/]*)
6743 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6757 done
6758 done
6759 IFS=$as_save_IFS
6761 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6763 esac
6765 DATE=$ac_cv_path_DATE
6766 if test -n "$DATE"; then
6767 { echo "$as_me:$LINENO: result: $DATE" >&5
6768 echo "${ECHO_T}$DATE" >&6; }
6769 else
6770 { echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6; }
6775 # Extract the first word of "find", so it can be a program name with args.
6776 set dummy find; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_path_FIND+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 case $FIND in
6783 [\\/]* | ?:[\\/]*)
6784 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6802 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6804 esac
6806 FIND=$ac_cv_path_FIND
6807 if test -n "$FIND"; then
6808 { echo "$as_me:$LINENO: result: $FIND" >&5
6809 echo "${ECHO_T}$FIND" >&6; }
6810 else
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6816 # Extract the first word of "grep", so it can be a program name with args.
6817 set dummy grep; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_GREP+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 case $GREP in
6824 [\\/]* | ?:[\\/]*)
6825 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6839 done
6840 done
6841 IFS=$as_save_IFS
6843 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6845 esac
6847 GREP=$ac_cv_path_GREP
6848 if test -n "$GREP"; then
6849 { echo "$as_me:$LINENO: result: $GREP" >&5
6850 echo "${ECHO_T}$GREP" >&6; }
6851 else
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6857 # Extract the first word of "mkdir", so it can be a program name with args.
6858 set dummy mkdir; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_path_MKDIR+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 case $MKDIR in
6865 [\\/]* | ?:[\\/]*)
6866 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6880 done
6881 done
6882 IFS=$as_save_IFS
6884 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6886 esac
6888 MKDIR=$ac_cv_path_MKDIR
6889 if test -n "$MKDIR"; then
6890 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6891 echo "${ECHO_T}$MKDIR" >&6; }
6892 else
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6898 # Extract the first word of "mv", so it can be a program name with args.
6899 set dummy mv; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_MV+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 case $MV in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6921 done
6922 done
6923 IFS=$as_save_IFS
6925 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6927 esac
6929 MV=$ac_cv_path_MV
6930 if test -n "$MV"; then
6931 { echo "$as_me:$LINENO: result: $MV" >&5
6932 echo "${ECHO_T}$MV" >&6; }
6933 else
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6939 if test -n "$ac_tool_prefix"; then
6940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6941 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_prog_RANLIB+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947 if test -n "$RANLIB"; then
6948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6961 done
6962 done
6963 IFS=$as_save_IFS
6967 RANLIB=$ac_cv_prog_RANLIB
6968 if test -n "$RANLIB"; then
6969 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6970 echo "${ECHO_T}$RANLIB" >&6; }
6971 else
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6978 if test -z "$ac_cv_prog_RANLIB"; then
6979 ac_ct_RANLIB=$RANLIB
6980 # Extract the first word of "ranlib", so it can be a program name with args.
6981 set dummy ranlib; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 if test -n "$ac_ct_RANLIB"; then
6988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_prog_ac_ct_RANLIB="ranlib"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7001 done
7002 done
7003 IFS=$as_save_IFS
7007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7008 if test -n "$ac_ct_RANLIB"; then
7009 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7010 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7011 else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7016 if test "x$ac_ct_RANLIB" = x; then
7017 RANLIB=":"
7018 else
7019 case $cross_compiling:$ac_tool_warned in
7020 yes:)
7021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7022 whose name does not start with the host triplet. If you think this
7023 configuration is useful to you, please write to autoconf@gnu.org." >&5
7024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7025 whose name does not start with the host triplet. If you think this
7026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7027 ac_tool_warned=yes ;;
7028 esac
7029 RANLIB=$ac_ct_RANLIB
7031 else
7032 RANLIB="$ac_cv_prog_RANLIB"
7035 # Extract the first word of "rm", so it can be a program name with args.
7036 set dummy rm; ac_word=$2
7037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039 if test "${ac_cv_path_RM+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042 case $RM in
7043 [\\/]* | ?:[\\/]*)
7044 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7058 done
7059 done
7060 IFS=$as_save_IFS
7062 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7064 esac
7066 RM=$ac_cv_path_RM
7067 if test -n "$RM"; then
7068 { echo "$as_me:$LINENO: result: $RM" >&5
7069 echo "${ECHO_T}$RM" >&6; }
7070 else
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7076 # Extract the first word of "sed", so it can be a program name with args.
7077 set dummy sed; ac_word=$2
7078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080 if test "${ac_cv_path_SED+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 case $SED in
7084 [\\/]* | ?:[\\/]*)
7085 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7103 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7105 esac
7107 SED=$ac_cv_path_SED
7108 if test -n "$SED"; then
7109 { echo "$as_me:$LINENO: result: $SED" >&5
7110 echo "${ECHO_T}$SED" >&6; }
7111 else
7112 { echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6; }
7117 # Extract the first word of "tar", so it can be a program name with args.
7118 set dummy tar; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_TAR+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 case $TAR in
7125 [\\/]* | ?:[\\/]*)
7126 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7140 done
7141 done
7142 IFS=$as_save_IFS
7144 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7146 esac
7148 TAR=$ac_cv_path_TAR
7149 if test -n "$TAR"; then
7150 { echo "$as_me:$LINENO: result: $TAR" >&5
7151 echo "${ECHO_T}$TAR" >&6; }
7152 else
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 # Extract the first word of "pwd", so it can be a program name with args.
7159 set dummy pwd; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_BINPWD+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 case $BINPWD in
7166 [\\/]* | ?:[\\/]*)
7167 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7181 done
7182 done
7183 IFS=$as_save_IFS
7185 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7187 esac
7189 BINPWD=$ac_cv_path_BINPWD
7190 if test -n "$BINPWD"; then
7191 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7192 echo "${ECHO_T}$BINPWD" >&6; }
7193 else
7194 { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7200 # Extract the first word of "Graphviz", so it can be a program name with args.
7201 set dummy Graphviz; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 case $GRAPHVIZ in
7208 [\\/]* | ?:[\\/]*)
7209 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7223 done
7224 done
7225 IFS=$as_save_IFS
7227 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7229 esac
7231 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7232 if test -n "$GRAPHVIZ"; then
7233 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7234 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7235 else
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7243 cat >>confdefs.h <<\_ACEOF
7244 #define HAVE_GRAPHVIZ 1
7245 _ACEOF
7247 if test "$llvm_cv_os_type" = "MingW" ; then
7248 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251 cat >>confdefs.h <<_ACEOF
7252 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7253 _ACEOF
7256 # Extract the first word of "dot", so it can be a program name with args.
7257 set dummy dot; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_DOT+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263 case $DOT in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7279 done
7280 done
7281 IFS=$as_save_IFS
7283 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7285 esac
7287 DOT=$ac_cv_path_DOT
7288 if test -n "$DOT"; then
7289 { echo "$as_me:$LINENO: result: $DOT" >&5
7290 echo "${ECHO_T}$DOT" >&6; }
7291 else
7292 { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7297 if test "$DOT" != "echo dot" ; then
7299 cat >>confdefs.h <<\_ACEOF
7300 #define HAVE_DOT 1
7301 _ACEOF
7303 if test "$llvm_cv_os_type" = "MingW" ; then
7304 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7307 cat >>confdefs.h <<_ACEOF
7308 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7309 _ACEOF
7312 # Extract the first word of "fdp", so it can be a program name with args.
7313 set dummy fdp; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_FDP+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319 case $FDP in
7320 [\\/]* | ?:[\\/]*)
7321 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7335 done
7336 done
7337 IFS=$as_save_IFS
7339 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7341 esac
7343 FDP=$ac_cv_path_FDP
7344 if test -n "$FDP"; then
7345 { echo "$as_me:$LINENO: result: $FDP" >&5
7346 echo "${ECHO_T}$FDP" >&6; }
7347 else
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7353 if test "$FDP" != "echo fdp" ; then
7355 cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_FDP 1
7357 _ACEOF
7359 if test "$llvm_cv_os_type" = "MingW" ; then
7360 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7363 cat >>confdefs.h <<_ACEOF
7364 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7365 _ACEOF
7368 # Extract the first word of "neato", so it can be a program name with args.
7369 set dummy neato; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_path_NEATO+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 case $NEATO in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7391 done
7392 done
7393 IFS=$as_save_IFS
7395 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7397 esac
7399 NEATO=$ac_cv_path_NEATO
7400 if test -n "$NEATO"; then
7401 { echo "$as_me:$LINENO: result: $NEATO" >&5
7402 echo "${ECHO_T}$NEATO" >&6; }
7403 else
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7409 if test "$NEATO" != "echo neato" ; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_NEATO 1
7413 _ACEOF
7415 if test "$llvm_cv_os_type" = "MingW" ; then
7416 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7419 cat >>confdefs.h <<_ACEOF
7420 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7421 _ACEOF
7424 # Extract the first word of "twopi", so it can be a program name with args.
7425 set dummy twopi; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_TWOPI+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 case $TWOPI in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7451 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7453 esac
7455 TWOPI=$ac_cv_path_TWOPI
7456 if test -n "$TWOPI"; then
7457 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7458 echo "${ECHO_T}$TWOPI" >&6; }
7459 else
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 if test "$TWOPI" != "echo twopi" ; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_TWOPI 1
7469 _ACEOF
7471 if test "$llvm_cv_os_type" = "MingW" ; then
7472 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7475 cat >>confdefs.h <<_ACEOF
7476 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7477 _ACEOF
7480 # Extract the first word of "circo", so it can be a program name with args.
7481 set dummy circo; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_CIRCO+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 case $CIRCO in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7503 done
7504 done
7505 IFS=$as_save_IFS
7507 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7509 esac
7511 CIRCO=$ac_cv_path_CIRCO
7512 if test -n "$CIRCO"; then
7513 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7514 echo "${ECHO_T}$CIRCO" >&6; }
7515 else
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7521 if test "$CIRCO" != "echo circo" ; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define HAVE_CIRCO 1
7525 _ACEOF
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7531 cat >>confdefs.h <<_ACEOF
7532 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7533 _ACEOF
7536 for ac_prog in gv gsview32
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539 set dummy $ac_prog; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_GV+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545 case $GV in
7546 [\\/]* | ?:[\\/]*)
7547 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7561 done
7562 done
7563 IFS=$as_save_IFS
7566 esac
7568 GV=$ac_cv_path_GV
7569 if test -n "$GV"; then
7570 { echo "$as_me:$LINENO: result: $GV" >&5
7571 echo "${ECHO_T}$GV" >&6; }
7572 else
7573 { echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6; }
7578 test -n "$GV" && break
7579 done
7580 test -n "$GV" || GV="echo gv"
7582 if test "$GV" != "echo gv" ; then
7584 cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_GV 1
7586 _ACEOF
7588 if test "$llvm_cv_os_type" = "MingW" ; then
7589 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7592 cat >>confdefs.h <<_ACEOF
7593 #define LLVM_PATH_GV "$GV${EXEEXT}"
7594 _ACEOF
7597 # Extract the first word of "dotty", so it can be a program name with args.
7598 set dummy dotty; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_DOTTY+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604 case $DOTTY in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7620 done
7621 done
7622 IFS=$as_save_IFS
7624 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7626 esac
7628 DOTTY=$ac_cv_path_DOTTY
7629 if test -n "$DOTTY"; then
7630 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7631 echo "${ECHO_T}$DOTTY" >&6; }
7632 else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7638 if test "$DOTTY" != "echo dotty" ; then
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_DOTTY 1
7642 _ACEOF
7644 if test "$llvm_cv_os_type" = "MingW" ; then
7645 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7648 cat >>confdefs.h <<_ACEOF
7649 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7650 _ACEOF
7655 # Extract the first word of "perl", so it can be a program name with args.
7656 set dummy perl; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_PERL+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662 case $PERL in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7678 done
7679 done
7680 IFS=$as_save_IFS
7682 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7684 esac
7686 PERL=$ac_cv_path_PERL
7687 if test -n "$PERL"; then
7688 { echo "$as_me:$LINENO: result: $PERL" >&5
7689 echo "${ECHO_T}$PERL" >&6; }
7690 else
7691 { echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6; }
7696 if test "$PERL" != "none"; then
7697 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7698 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7699 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7700 { echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6; }
7702 else
7703 PERL=none
7704 { echo "$as_me:$LINENO: result: not found" >&5
7705 echo "${ECHO_T}not found" >&6; }
7710 if test x"$PERL" = xnone; then
7711 HAVE_PERL=0
7713 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7714 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7715 { (exit 1); exit 1; }; }
7716 else
7717 HAVE_PERL=1
7721 # Find a good install program. We prefer a C program (faster),
7722 # so one script is as good as another. But avoid the broken or
7723 # incompatible versions:
7724 # SysV /etc/install, /usr/sbin/install
7725 # SunOS /usr/etc/install
7726 # IRIX /sbin/install
7727 # AIX /bin/install
7728 # AmigaOS /C/install, which installs bootblocks on floppy discs
7729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7732 # OS/2's system install, which has a completely different semantic
7733 # ./install, which can be erroneously created by make from ./install.sh.
7734 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7735 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7736 if test -z "$INSTALL"; then
7737 if test "${ac_cv_path_install+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 # Account for people who put trailing slashes in PATH elements.
7746 case $as_dir/ in
7747 ./ | .// | /cC/* | \
7748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7749 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7750 /usr/ucb/* ) ;;
7752 # OSF1 and SCO ODT 3.0 have their own names for install.
7753 # Don't use installbsd from OSF since it installs stuff as root
7754 # by default.
7755 for ac_prog in ginstall scoinst install; do
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7758 if test $ac_prog = install &&
7759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7760 # AIX install. It has an incompatible calling convention.
7762 elif test $ac_prog = install &&
7763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7764 # program-specific install script used by HP pwplus--don't use.
7766 else
7767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7768 break 3
7771 done
7772 done
7774 esac
7775 done
7776 IFS=$as_save_IFS
7780 if test "${ac_cv_path_install+set}" = set; then
7781 INSTALL=$ac_cv_path_install
7782 else
7783 # As a last resort, use the slow shell script. Don't cache a
7784 # value for INSTALL within a source directory, because that will
7785 # break other packages using the cache if that directory is
7786 # removed, or if the value is a relative name.
7787 INSTALL=$ac_install_sh
7790 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7791 echo "${ECHO_T}$INSTALL" >&6; }
7793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7794 # It thinks the first close brace ends the variable substitution.
7795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7802 # Extract the first word of "bzip2", so it can be a program name with args.
7803 set dummy bzip2; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_path_BZIP2+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 case $BZIP2 in
7810 [\\/]* | ?:[\\/]*)
7811 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7830 esac
7832 BZIP2=$ac_cv_path_BZIP2
7833 if test -n "$BZIP2"; then
7834 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7835 echo "${ECHO_T}$BZIP2" >&6; }
7836 else
7837 { echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6; }
7842 # Extract the first word of "doxygen", so it can be a program name with args.
7843 set dummy doxygen; ac_word=$2
7844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849 case $DOXYGEN in
7850 [\\/]* | ?:[\\/]*)
7851 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7865 done
7866 done
7867 IFS=$as_save_IFS
7870 esac
7872 DOXYGEN=$ac_cv_path_DOXYGEN
7873 if test -n "$DOXYGEN"; then
7874 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7875 echo "${ECHO_T}$DOXYGEN" >&6; }
7876 else
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7882 # Extract the first word of "groff", so it can be a program name with args.
7883 set dummy groff; ac_word=$2
7884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886 if test "${ac_cv_path_GROFF+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 case $GROFF in
7890 [\\/]* | ?:[\\/]*)
7891 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7905 done
7906 done
7907 IFS=$as_save_IFS
7910 esac
7912 GROFF=$ac_cv_path_GROFF
7913 if test -n "$GROFF"; then
7914 { echo "$as_me:$LINENO: result: $GROFF" >&5
7915 echo "${ECHO_T}$GROFF" >&6; }
7916 else
7917 { echo "$as_me:$LINENO: result: no" >&5
7918 echo "${ECHO_T}no" >&6; }
7922 # Extract the first word of "gzip", so it can be a program name with args.
7923 set dummy gzip; ac_word=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_path_GZIP+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 case $GZIP in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7945 done
7946 done
7947 IFS=$as_save_IFS
7950 esac
7952 GZIP=$ac_cv_path_GZIP
7953 if test -n "$GZIP"; then
7954 { echo "$as_me:$LINENO: result: $GZIP" >&5
7955 echo "${ECHO_T}$GZIP" >&6; }
7956 else
7957 { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7962 # Extract the first word of "pod2html", so it can be a program name with args.
7963 set dummy pod2html; ac_word=$2
7964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966 if test "${ac_cv_path_POD2HTML+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 case $POD2HTML in
7970 [\\/]* | ?:[\\/]*)
7971 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7985 done
7986 done
7987 IFS=$as_save_IFS
7990 esac
7992 POD2HTML=$ac_cv_path_POD2HTML
7993 if test -n "$POD2HTML"; then
7994 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7995 echo "${ECHO_T}$POD2HTML" >&6; }
7996 else
7997 { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
8002 # Extract the first word of "pod2man", so it can be a program name with args.
8003 set dummy pod2man; ac_word=$2
8004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8006 if test "${ac_cv_path_POD2MAN+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009 case $POD2MAN in
8010 [\\/]* | ?:[\\/]*)
8011 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8025 done
8026 done
8027 IFS=$as_save_IFS
8030 esac
8032 POD2MAN=$ac_cv_path_POD2MAN
8033 if test -n "$POD2MAN"; then
8034 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8035 echo "${ECHO_T}$POD2MAN" >&6; }
8036 else
8037 { echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6; }
8042 # Extract the first word of "runtest", so it can be a program name with args.
8043 set dummy runtest; ac_word=$2
8044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8046 if test "${ac_cv_path_RUNTEST+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049 case $RUNTEST in
8050 [\\/]* | ?:[\\/]*)
8051 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8065 done
8066 done
8067 IFS=$as_save_IFS
8070 esac
8072 RUNTEST=$ac_cv_path_RUNTEST
8073 if test -n "$RUNTEST"; then
8074 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8075 echo "${ECHO_T}$RUNTEST" >&6; }
8076 else
8077 { echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6; }
8083 no_itcl=true
8084 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8085 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8087 # Check whether --with-tclinclude was given.
8088 if test "${with_tclinclude+set}" = set; then
8089 withval=$with_tclinclude; with_tclinclude=${withval}
8090 else
8091 with_tclinclude=''
8094 if test "${ac_cv_path_tclsh+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8098 if test x"${with_tclinclude}" != x ; then
8099 if test -f ${with_tclinclude}/tclsh ; then
8100 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8101 elif test -f ${with_tclinclude}/src/tclsh ; then
8102 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8103 else
8104 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8105 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8106 { (exit 1); exit 1; }; }
8110 if test x"${ac_cv_path_tclsh}" = x ; then
8111 { echo "$as_me:$LINENO: result: none" >&5
8112 echo "${ECHO_T}none" >&6; }
8113 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
8115 # Extract the first word of "$ac_prog", so it can be a program name with args.
8116 set dummy $ac_prog; ac_word=$2
8117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8119 if test "${ac_cv_path_TCLSH+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 case $TCLSH in
8123 [\\/]* | ?:[\\/]*)
8124 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8134 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8138 done
8139 done
8140 IFS=$as_save_IFS
8143 esac
8145 TCLSH=$ac_cv_path_TCLSH
8146 if test -n "$TCLSH"; then
8147 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8148 echo "${ECHO_T}$TCLSH" >&6; }
8149 else
8150 { echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6; }
8155 test -n "$TCLSH" && break
8156 done
8158 if test x"${TCLSH}" = x ; then
8159 ac_cv_path_tclsh='';
8160 else
8161 ac_cv_path_tclsh="${TCLSH}";
8163 else
8164 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8165 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8166 TCLSH="${ac_cv_path_tclsh}"
8172 # Extract the first word of "zip", so it can be a program name with args.
8173 set dummy zip; ac_word=$2
8174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176 if test "${ac_cv_path_ZIP+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179 case $ZIP in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8195 done
8196 done
8197 IFS=$as_save_IFS
8200 esac
8202 ZIP=$ac_cv_path_ZIP
8203 if test -n "$ZIP"; then
8204 { echo "$as_me:$LINENO: result: $ZIP" >&5
8205 echo "${ECHO_T}$ZIP" >&6; }
8206 else
8207 { echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6; }
8212 for ac_prog in ocamlc
8214 # Extract the first word of "$ac_prog", so it can be a program name with args.
8215 set dummy $ac_prog; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_path_OCAMLC+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 case $OCAMLC in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8237 done
8238 done
8239 IFS=$as_save_IFS
8242 esac
8244 OCAMLC=$ac_cv_path_OCAMLC
8245 if test -n "$OCAMLC"; then
8246 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8247 echo "${ECHO_T}$OCAMLC" >&6; }
8248 else
8249 { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8254 test -n "$OCAMLC" && break
8255 done
8257 for ac_prog in ocamlopt
8259 # Extract the first word of "$ac_prog", so it can be a program name with args.
8260 set dummy $ac_prog; ac_word=$2
8261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8263 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266 case $OCAMLOPT in
8267 [\\/]* | ?:[\\/]*)
8268 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8282 done
8283 done
8284 IFS=$as_save_IFS
8287 esac
8289 OCAMLOPT=$ac_cv_path_OCAMLOPT
8290 if test -n "$OCAMLOPT"; then
8291 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8292 echo "${ECHO_T}$OCAMLOPT" >&6; }
8293 else
8294 { echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6; }
8299 test -n "$OCAMLOPT" && break
8300 done
8302 for ac_prog in ocamldep
8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
8305 set dummy $ac_prog; ac_word=$2
8306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 case $OCAMLDEP in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8327 done
8328 done
8329 IFS=$as_save_IFS
8332 esac
8334 OCAMLDEP=$ac_cv_path_OCAMLDEP
8335 if test -n "$OCAMLDEP"; then
8336 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8337 echo "${ECHO_T}$OCAMLDEP" >&6; }
8338 else
8339 { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8344 test -n "$OCAMLDEP" && break
8345 done
8347 for ac_prog in ocamldoc
8349 # Extract the first word of "$ac_prog", so it can be a program name with args.
8350 set dummy $ac_prog; ac_word=$2
8351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356 case $OCAMLDOC in
8357 [\\/]* | ?:[\\/]*)
8358 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8372 done
8373 done
8374 IFS=$as_save_IFS
8377 esac
8379 OCAMLDOC=$ac_cv_path_OCAMLDOC
8380 if test -n "$OCAMLDOC"; then
8381 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8382 echo "${ECHO_T}$OCAMLDOC" >&6; }
8383 else
8384 { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8389 test -n "$OCAMLDOC" && break
8390 done
8392 for ac_prog in gas as
8394 # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_path_GAS+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 case $GAS in
8402 [\\/]* | ?:[\\/]*)
8403 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8417 done
8418 done
8419 IFS=$as_save_IFS
8422 esac
8424 GAS=$ac_cv_path_GAS
8425 if test -n "$GAS"; then
8426 { echo "$as_me:$LINENO: result: $GAS" >&5
8427 echo "${ECHO_T}$GAS" >&6; }
8428 else
8429 { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8434 test -n "$GAS" && break
8435 done
8438 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8439 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8440 if test "${llvm_cv_link_use_r+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443 ac_ext=c
8444 ac_cpp='$CPP $CPPFLAGS'
8445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8449 oldcflags="$CFLAGS"
8450 CFLAGS="$CFLAGS -Wl,-R."
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8459 main ()
8461 int main() { return 0; }
8463 return 0;
8465 _ACEOF
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (ac_try="$ac_link"
8468 case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_link") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8481 { (case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484 esac
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_try") 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 llvm_cv_link_use_r=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 llvm_cv_link_use_r=no
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 CFLAGS="$oldcflags"
8511 ac_ext=c
8512 ac_cpp='$CPP $CPPFLAGS'
8513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8520 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8521 if test "$llvm_cv_link_use_r" = yes ; then
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_LINK_R 1
8525 _ACEOF
8530 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8531 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8532 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 ac_ext=c
8536 ac_cpp='$CPP $CPPFLAGS'
8537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8541 oldcflags="$CFLAGS"
8542 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h. */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8551 main ()
8553 int main() { return 0; }
8555 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (ac_try="$ac_link"
8560 case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563 esac
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_link") 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586 esac
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 llvm_cv_link_use_export_dynamic=yes
8593 else
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 llvm_cv_link_use_export_dynamic=no
8600 rm -f core conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602 CFLAGS="$oldcflags"
8603 ac_ext=c
8604 ac_cpp='$CPP $CPPFLAGS'
8605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8612 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8613 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_LINK_EXPORT_DYNAMIC 1
8617 _ACEOF
8624 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8625 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8626 if test "${ac_cv_c_const+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8637 main ()
8639 /* FIXME: Include the comments suggested by Paul. */
8640 #ifndef __cplusplus
8641 /* Ultrix mips cc rejects this. */
8642 typedef int charset[2];
8643 const charset x;
8644 /* SunOS 4.1.1 cc rejects this. */
8645 char const *const *ccp;
8646 char **p;
8647 /* NEC SVR4.0.2 mips cc rejects this. */
8648 struct point {int x, y;};
8649 static struct point const zero = {0,0};
8650 /* AIX XL C 1.02.0.0 rejects this.
8651 It does not let you subtract one const X* pointer from another in
8652 an arm of an if-expression whose if-part is not a constant
8653 expression */
8654 const char *g = "string";
8655 ccp = &g + (g ? g-g : 0);
8656 /* HPUX 7.0 cc rejects these. */
8657 ++ccp;
8658 p = (char**) ccp;
8659 ccp = (char const *const *) p;
8660 { /* SCO 3.2v4 cc rejects this. */
8661 char *t;
8662 char const *s = 0 ? (char *) 0 : (char const *) 0;
8664 *t++ = 0;
8665 if (s) return 0;
8667 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8668 int x[] = {25, 17};
8669 const int *foo = &x[0];
8670 ++foo;
8672 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8673 typedef const int *iptr;
8674 iptr p = 0;
8675 ++p;
8677 { /* AIX XL C 1.02.0.0 rejects this saying
8678 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8679 struct s { int j; const int *ap[3]; };
8680 struct s *b; b->j = 5;
8682 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8683 const int foo = 10;
8684 if (!foo) return 0;
8686 return !x[0] && !zero.x;
8687 #endif
8690 return 0;
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708 { (case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_try") 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8727 ac_cv_c_const=yes
8728 else
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 ac_cv_c_const=no
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8738 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8739 if test $ac_cv_c_const = no; then
8741 cat >>confdefs.h <<\_ACEOF
8742 #define const
8743 _ACEOF
8752 ac_header_dirent=no
8753 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8754 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8755 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8756 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h. */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766 #include <sys/types.h>
8767 #include <$ac_hdr>
8770 main ()
8772 if ((DIR *) 0)
8773 return 0;
8775 return 0;
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (ac_try="$ac_compile"
8780 case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8793 { (case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796 esac
8797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_try") 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 eval "$as_ac_Header=yes"
8813 else
8814 echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 eval "$as_ac_Header=no"
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 ac_res=`eval echo '${'$as_ac_Header'}'`
8823 { echo "$as_me:$LINENO: result: $ac_res" >&5
8824 echo "${ECHO_T}$ac_res" >&6; }
8825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8826 cat >>confdefs.h <<_ACEOF
8827 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8828 _ACEOF
8830 ac_header_dirent=$ac_hdr; break
8833 done
8834 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8835 if test $ac_header_dirent = dirent.h; then
8836 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8837 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8838 if test "${ac_cv_search_opendir+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841 ac_func_search_save_LIBS=$LIBS
8842 cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h. */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8849 /* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 char opendir ();
8857 main ()
8859 return opendir ();
8861 return 0;
8863 _ACEOF
8864 for ac_lib in '' dir; do
8865 if test -z "$ac_lib"; then
8866 ac_res="none required"
8867 else
8868 ac_res=-l$ac_lib
8869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_link") 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8886 { (case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_try") 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try='test -s conftest$ac_exeext'
8896 { (case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899 esac
8900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901 (eval "$ac_try") 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_search_opendir=$ac_res
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8913 rm -f core conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext
8915 if test "${ac_cv_search_opendir+set}" = set; then
8916 break
8918 done
8919 if test "${ac_cv_search_opendir+set}" = set; then
8921 else
8922 ac_cv_search_opendir=no
8924 rm conftest.$ac_ext
8925 LIBS=$ac_func_search_save_LIBS
8927 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8928 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8929 ac_res=$ac_cv_search_opendir
8930 if test "$ac_res" != no; then
8931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8935 else
8936 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8937 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8938 if test "${ac_cv_search_opendir+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 ac_func_search_save_LIBS=$LIBS
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 char opendir ();
8957 main ()
8959 return opendir ();
8961 return 0;
8963 _ACEOF
8964 for ac_lib in '' x; do
8965 if test -z "$ac_lib"; then
8966 ac_res="none required"
8967 else
8968 ac_res=-l$ac_lib
8969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8973 case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_link") 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8986 { (case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989 esac
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_try") 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest$ac_exeext'
8996 { (case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_try") 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_search_opendir=$ac_res
9006 else
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9013 rm -f core conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext
9015 if test "${ac_cv_search_opendir+set}" = set; then
9016 break
9018 done
9019 if test "${ac_cv_search_opendir+set}" = set; then
9021 else
9022 ac_cv_search_opendir=no
9024 rm conftest.$ac_ext
9025 LIBS=$ac_func_search_save_LIBS
9027 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9028 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9029 ac_res=$ac_cv_search_opendir
9030 if test "$ac_res" != no; then
9031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9038 for ac_header in dlfcn.h
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 ac_res=`eval echo '${'$as_ac_Header'}'`
9048 { echo "$as_me:$LINENO: result: $ac_res" >&5
9049 echo "${ECHO_T}$ac_res" >&6; }
9050 else
9051 # Is the header compilable?
9052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 #include <$ac_header>
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (ac_try="$ac_compile"
9065 case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068 esac
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_compile") 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9078 { (case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081 esac
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_try") 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest.$ac_objext'
9088 { (case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9091 esac
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_try") 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_header_compiler=yes
9098 else
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 ac_header_compiler=no
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9107 echo "${ECHO_T}$ac_header_compiler" >&6; }
9109 # Is the header present?
9110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 #include <$ac_header>
9119 _ACEOF
9120 if { (ac_try="$ac_cpp conftest.$ac_ext"
9121 case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124 esac
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } >/dev/null; then
9133 if test -s conftest.err; then
9134 ac_cpp_err=$ac_c_preproc_warn_flag
9135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9136 else
9137 ac_cpp_err=
9139 else
9140 ac_cpp_err=yes
9142 if test -z "$ac_cpp_err"; then
9143 ac_header_preproc=yes
9144 else
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_header_preproc=no
9151 rm -f conftest.err conftest.$ac_ext
9152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9153 echo "${ECHO_T}$ac_header_preproc" >&6; }
9155 # So? What about this header?
9156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9157 yes:no: )
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9162 ac_header_preproc=yes
9164 no:yes:* )
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9177 ( cat <<\_ASBOX
9178 ## ----------------------------------- ##
9179 ## Report this to llvmbugs@cs.uiuc.edu ##
9180 ## ----------------------------------- ##
9181 _ASBOX
9182 ) | sed "s/^/$as_me: WARNING: /" >&2
9184 esac
9185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190 eval "$as_ac_Header=\$ac_header_preproc"
9192 ac_res=`eval echo '${'$as_ac_Header'}'`
9193 { echo "$as_me:$LINENO: result: $ac_res" >&5
9194 echo "${ECHO_T}$ac_res" >&6; }
9197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9198 cat >>confdefs.h <<_ACEOF
9199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9200 _ACEOF
9204 done
9206 # Check whether --enable-ltdl-install was given.
9207 if test "${enable_ltdl_install+set}" = set; then
9208 enableval=$enable_ltdl_install;
9214 if test x"${enable_ltdl_install-no}" != xno; then
9215 INSTALL_LTDL_TRUE=
9216 INSTALL_LTDL_FALSE='#'
9217 else
9218 INSTALL_LTDL_TRUE='#'
9219 INSTALL_LTDL_FALSE=
9224 if test x"${enable_ltdl_convenience-no}" != xno; then
9225 CONVENIENCE_LTDL_TRUE=
9226 CONVENIENCE_LTDL_FALSE='#'
9227 else
9228 CONVENIENCE_LTDL_TRUE='#'
9229 CONVENIENCE_LTDL_FALSE=
9233 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9234 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9235 library_names_spec=
9236 libname_spec='lib$name'
9237 soname_spec=
9238 shrext_cmds=".so"
9239 postinstall_cmds=
9240 postuninstall_cmds=
9241 finish_cmds=
9242 finish_eval=
9243 shlibpath_var=
9244 shlibpath_overrides_runpath=unknown
9245 version_type=none
9246 dynamic_linker="$host_os ld.so"
9247 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9248 if test "$GCC" = yes; then
9249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9250 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9251 # if the path contains ";" then we assume it to be the separator
9252 # otherwise default to the standard path separator (i.e. ":") - it is
9253 # assumed that no part of a normal pathname contains ";" but that should
9254 # okay in the real world where ";" in dirpaths is itself problematic.
9255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9256 else
9257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9259 else
9260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9262 need_lib_prefix=unknown
9263 hardcode_into_libs=no
9265 # when you set need_version to no, make sure it does not cause -set_version
9266 # flags to be left without arguments
9267 need_version=unknown
9269 case $host_os in
9270 aix3*)
9271 version_type=linux
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9273 shlibpath_var=LIBPATH
9275 # AIX 3 has no versioning support, so we append a major version to the name.
9276 soname_spec='${libname}${release}${shared_ext}$major'
9279 aix4* | aix5*)
9280 version_type=linux
9281 need_lib_prefix=no
9282 need_version=no
9283 hardcode_into_libs=yes
9284 if test "$host_cpu" = ia64; then
9285 # AIX 5 supports IA64
9286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 else
9289 # With GCC up to 2.95.x, collect2 would create an import file
9290 # for dependence libraries. The import file would start with
9291 # the line `#! .'. This would cause the generated library to
9292 # depend on `.', always an invalid library. This was fixed in
9293 # development snapshots of GCC prior to 3.0.
9294 case $host_os in
9295 aix4 | aix4.[01] | aix4.[01].*)
9296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9297 echo ' yes '
9298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9300 else
9301 can_build_shared=no
9304 esac
9305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9306 # soname into executable. Probably we can add versioning support to
9307 # collect2, so additional links can be useful in future.
9308 if test "$aix_use_runtimelinking" = yes; then
9309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9310 # instead of lib<name>.a to let people know that these are not
9311 # typical AIX shared libraries.
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 else
9314 # We preserve .a as extension for shared libraries through AIX4.2
9315 # and later when we are not doing run time linking.
9316 library_names_spec='${libname}${release}.a $libname.a'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LIBPATH
9323 amigaos*)
9324 library_names_spec='$libname.ixlibrary $libname.a'
9325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9326 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'
9329 beos*)
9330 library_names_spec='${libname}${shared_ext}'
9331 dynamic_linker="$host_os ld.so"
9332 shlibpath_var=LIBRARY_PATH
9335 bsdi[45]*)
9336 version_type=linux
9337 need_version=no
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9344 # the default ld.so.conf also contains /usr/contrib/lib and
9345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9346 # libtool to hard-code these into programs
9349 cygwin* | mingw* | pw32*)
9350 version_type=windows
9351 shrext_cmds=".dll"
9352 need_version=no
9353 need_lib_prefix=no
9355 case $GCC,$host_os in
9356 yes,cygwin* | yes,mingw* | yes,pw32*)
9357 library_names_spec='$libname.dll.a'
9358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9359 postinstall_cmds='base_file=`basename \${file}`~
9360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9361 dldir=$destdir/`dirname \$dlpath`~
9362 test -d \$dldir || mkdir -p \$dldir~
9363 $install_prog $dir/$dlname \$dldir/$dlname~
9364 chmod a+x \$dldir/$dlname'
9365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9366 dlpath=$dir/\$dldll~
9367 $rm \$dlpath'
9368 shlibpath_overrides_runpath=yes
9370 case $host_os in
9371 cygwin*)
9372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9376 mingw*)
9377 # MinGW DLLs use traditional 'lib' prefix
9378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9381 # It is most probably a Windows format PATH printed by
9382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9383 # path with ; separators, and with drive letters. We can handle the
9384 # drive letters (cygwin fileutils understands them), so leave them,
9385 # especially as we might pass files found there to a mingw objdump,
9386 # which wouldn't understand a cygwinified path. Ahh.
9387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9388 else
9389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9392 pw32*)
9393 # pw32 DLLs use 'pw' prefix rather than 'lib'
9394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9396 esac
9400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9402 esac
9403 dynamic_linker='Win32 ld.exe'
9404 # FIXME: first we should search . and the directory the executable is in
9405 shlibpath_var=PATH
9408 darwin* | rhapsody*)
9409 dynamic_linker="$host_os dyld"
9410 version_type=darwin
9411 need_lib_prefix=no
9412 need_version=no
9413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9414 soname_spec='${libname}${release}${major}$shared_ext'
9415 shlibpath_overrides_runpath=yes
9416 shlibpath_var=DYLD_LIBRARY_PATH
9417 shrext_cmds='.dylib'
9418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9419 if test "$GCC" = yes; then
9420 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"`
9421 else
9422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9427 dgux*)
9428 version_type=linux
9429 need_lib_prefix=no
9430 need_version=no
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9436 freebsd1*)
9437 dynamic_linker=no
9440 kfreebsd*-gnu)
9441 version_type=linux
9442 need_lib_prefix=no
9443 need_version=no
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=no
9448 hardcode_into_libs=yes
9449 dynamic_linker='GNU ld.so'
9452 freebsd* | dragonfly*)
9453 # DragonFly does not have aout. When/if they implement a new
9454 # versioning mechanism, adjust this.
9455 if test -x /usr/bin/objformat; then
9456 objformat=`/usr/bin/objformat`
9457 else
9458 case $host_os in
9459 freebsd[123]*) objformat=aout ;;
9460 *) objformat=elf ;;
9461 esac
9463 version_type=freebsd-$objformat
9464 case $version_type in
9465 freebsd-elf*)
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9467 need_version=no
9468 need_lib_prefix=no
9470 freebsd-*)
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9472 need_version=yes
9474 esac
9475 shlibpath_var=LD_LIBRARY_PATH
9476 case $host_os in
9477 freebsd2*)
9478 shlibpath_overrides_runpath=yes
9480 freebsd3.[01]* | freebsdelf3.[01]*)
9481 shlibpath_overrides_runpath=yes
9482 hardcode_into_libs=yes
9484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9486 shlibpath_overrides_runpath=no
9487 hardcode_into_libs=yes
9489 freebsd*) # from 4.6 on
9490 shlibpath_overrides_runpath=yes
9491 hardcode_into_libs=yes
9493 esac
9496 gnu*)
9497 version_type=linux
9498 need_lib_prefix=no
9499 need_version=no
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 hardcode_into_libs=yes
9506 hpux9* | hpux10* | hpux11*)
9507 # Give a soname corresponding to the major version so that dld.sl refuses to
9508 # link against other versions.
9509 version_type=sunos
9510 need_lib_prefix=no
9511 need_version=no
9512 case $host_cpu in
9513 ia64*)
9514 shrext_cmds='.so'
9515 hardcode_into_libs=yes
9516 dynamic_linker="$host_os dld.so"
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 if test "X$HPUX_IA64_MODE" = X32; then
9522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9523 else
9524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9528 hppa*64*)
9529 shrext_cmds='.sl'
9530 hardcode_into_libs=yes
9531 dynamic_linker="$host_os dld.sl"
9532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9540 shrext_cmds='.sl'
9541 dynamic_linker="$host_os dld.sl"
9542 shlibpath_var=SHLIB_PATH
9543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9547 esac
9548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9549 postinstall_cmds='chmod 555 $lib'
9552 interix3*)
9553 version_type=linux
9554 need_lib_prefix=no
9555 need_version=no
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9559 shlibpath_var=LD_LIBRARY_PATH
9560 shlibpath_overrides_runpath=no
9561 hardcode_into_libs=yes
9564 irix5* | irix6* | nonstopux*)
9565 case $host_os in
9566 nonstopux*) version_type=nonstopux ;;
9568 if test "$lt_cv_prog_gnu_ld" = yes; then
9569 version_type=linux
9570 else
9571 version_type=irix
9572 fi ;;
9573 esac
9574 need_lib_prefix=no
9575 need_version=no
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9578 case $host_os in
9579 irix5* | nonstopux*)
9580 libsuff= shlibsuff=
9583 case $LD in # libtool.m4 will add one of these switches to LD
9584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9585 libsuff= shlibsuff= libmagic=32-bit;;
9586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9587 libsuff=32 shlibsuff=N32 libmagic=N32;;
9588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9590 *) libsuff= shlibsuff= libmagic=never-match;;
9591 esac
9593 esac
9594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9595 shlibpath_overrides_runpath=no
9596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9598 hardcode_into_libs=yes
9601 # No shared lib support for Linux oldld, aout, or coff.
9602 linux*oldld* | linux*aout* | linux*coff*)
9603 dynamic_linker=no
9606 # This must be Linux ELF.
9607 linux*)
9608 version_type=linux
9609 need_lib_prefix=no
9610 need_version=no
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=no
9616 # This implies no fast_install, which is unacceptable.
9617 # Some rework will be needed to allow for fast_install
9618 # before this can be enabled.
9619 hardcode_into_libs=yes
9621 # Append ld.so.conf contents to the search path
9622 if test -f /etc/ld.so.conf; then
9623 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' ' '`
9624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9627 # We used to test for /lib/ld.so.1 and disable shared libraries on
9628 # powerpc, because MkLinux only supported shared libraries with the
9629 # GNU dynamic linker. Since this was broken with cross compilers,
9630 # most powerpc-linux boxes support dynamic linking these days and
9631 # people can always --disable-shared, the test was removed, and we
9632 # assume the GNU/Linux dynamic linker is in use.
9633 dynamic_linker='GNU/Linux ld.so'
9636 knetbsd*-gnu)
9637 version_type=linux
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=no
9644 hardcode_into_libs=yes
9645 dynamic_linker='GNU ld.so'
9648 netbsd*)
9649 version_type=sunos
9650 need_lib_prefix=no
9651 need_version=no
9652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9655 dynamic_linker='NetBSD (a.out) ld.so'
9656 else
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 dynamic_linker='NetBSD ld.elf_so'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 shlibpath_overrides_runpath=yes
9663 hardcode_into_libs=yes
9666 newsos6)
9667 version_type=linux
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 shlibpath_overrides_runpath=yes
9673 nto-qnx*)
9674 version_type=linux
9675 need_lib_prefix=no
9676 need_version=no
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 shlibpath_overrides_runpath=yes
9683 openbsd*)
9684 version_type=sunos
9685 sys_lib_dlsearch_path_spec="/usr/lib"
9686 need_lib_prefix=no
9687 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9688 case $host_os in
9689 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9690 *) need_version=no ;;
9691 esac
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9696 case $host_os in
9697 openbsd2.[89] | openbsd2.[89].*)
9698 shlibpath_overrides_runpath=no
9701 shlibpath_overrides_runpath=yes
9703 esac
9704 else
9705 shlibpath_overrides_runpath=yes
9709 os2*)
9710 libname_spec='$name'
9711 shrext_cmds=".dll"
9712 need_lib_prefix=no
9713 library_names_spec='$libname${shared_ext} $libname.a'
9714 dynamic_linker='OS/2 ld.exe'
9715 shlibpath_var=LIBPATH
9718 osf3* | osf4* | osf5*)
9719 version_type=osf
9720 need_lib_prefix=no
9721 need_version=no
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9729 solaris*)
9730 version_type=linux
9731 need_lib_prefix=no
9732 need_version=no
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9738 # ldd complains unless libraries are executable
9739 postinstall_cmds='chmod +x $lib'
9742 sunos4*)
9743 version_type=sunos
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9745 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=yes
9748 if test "$with_gnu_ld" = yes; then
9749 need_lib_prefix=no
9751 need_version=yes
9754 sysv4 | sysv4.3*)
9755 version_type=linux
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 case $host_vendor in
9760 sni)
9761 shlibpath_overrides_runpath=no
9762 need_lib_prefix=no
9763 export_dynamic_flag_spec='${wl}-Blargedynsym'
9764 runpath_var=LD_RUN_PATH
9766 siemens)
9767 need_lib_prefix=no
9769 motorola)
9770 need_lib_prefix=no
9771 need_version=no
9772 shlibpath_overrides_runpath=no
9773 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9775 esac
9778 sysv4*MP*)
9779 if test -d /usr/nec ;then
9780 version_type=linux
9781 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9782 soname_spec='$libname${shared_ext}.$major'
9783 shlibpath_var=LD_LIBRARY_PATH
9787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9788 version_type=freebsd-elf
9789 need_lib_prefix=no
9790 need_version=no
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 hardcode_into_libs=yes
9795 if test "$with_gnu_ld" = yes; then
9796 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9797 shlibpath_overrides_runpath=no
9798 else
9799 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9800 shlibpath_overrides_runpath=yes
9801 case $host_os in
9802 sco3.2v5*)
9803 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9805 esac
9807 sys_lib_dlsearch_path_spec='/usr/lib'
9810 uts4*)
9811 version_type=linux
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 shlibpath_var=LD_LIBRARY_PATH
9818 dynamic_linker=no
9820 esac
9821 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9822 echo "${ECHO_T}$dynamic_linker" >&6; }
9823 test "$dynamic_linker" = no && can_build_shared=no
9825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9826 if test "$GCC" = yes; then
9827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9831 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9832 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9833 if test "${libltdl_cv_shlibext+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9837 module=yes
9838 eval libltdl_cv_shlibext=$shrext_cmds
9841 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9842 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9843 if test -n "$libltdl_cv_shlibext"; then
9845 cat >>confdefs.h <<_ACEOF
9846 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9847 _ACEOF
9852 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9853 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9854 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 libltdl_cv_shlibpath_var="$shlibpath_var"
9859 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9860 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9861 if test -n "$libltdl_cv_shlibpath_var"; then
9863 cat >>confdefs.h <<_ACEOF
9864 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9865 _ACEOF
9870 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9871 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9872 if test "${libltdl_cv_sys_search_path+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9877 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9878 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9879 if test -n "$libltdl_cv_sys_search_path"; then
9880 sys_search_path=
9881 for dir in $libltdl_cv_sys_search_path; do
9882 if test -z "$sys_search_path"; then
9883 sys_search_path="$dir"
9884 else
9885 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9887 done
9889 cat >>confdefs.h <<_ACEOF
9890 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9891 _ACEOF
9895 { echo "$as_me:$LINENO: checking for objdir" >&5
9896 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9897 if test "${libltdl_cv_objdir+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 libltdl_cv_objdir="$objdir"
9901 if test -n "$objdir"; then
9903 else
9904 rm -f .libs 2>/dev/null
9905 mkdir .libs 2>/dev/null
9906 if test -d .libs; then
9907 libltdl_cv_objdir=.libs
9908 else
9909 # MS-DOS does not allow filenames that begin with a dot.
9910 libltdl_cv_objdir=_libs
9912 rmdir .libs 2>/dev/null
9916 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9917 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9919 cat >>confdefs.h <<_ACEOF
9920 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9921 _ACEOF
9928 # Check for command to grab the raw symbol name followed by C symbol from nm.
9929 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9930 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9931 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9935 # These are sane defaults that work on at least a few old systems.
9936 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9938 # Character class describing NM global symbol codes.
9939 symcode='[BCDEGRST]'
9941 # Regexp to match symbols that can be accessed directly from C.
9942 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9944 # Transform an extracted symbol line into a proper C declaration
9945 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9947 # Transform an extracted symbol line into symbol name and symbol address
9948 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'"
9950 # Define system-specific variables.
9951 case $host_os in
9952 aix*)
9953 symcode='[BCDT]'
9955 cygwin* | mingw* | pw32*)
9956 symcode='[ABCDGISTW]'
9958 hpux*) # Its linker distinguishes data from code symbols
9959 if test "$host_cpu" = ia64; then
9960 symcode='[ABCDEGRST]'
9962 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9963 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'"
9965 linux*)
9966 if test "$host_cpu" = ia64; then
9967 symcode='[ABCDGIRSTW]'
9968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9969 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'"
9972 irix* | nonstopux*)
9973 symcode='[BCDEGRST]'
9975 osf*)
9976 symcode='[BCDEGQRST]'
9978 solaris*)
9979 symcode='[BDRT]'
9981 sco3.2v5*)
9982 symcode='[DT]'
9984 sysv4.2uw2*)
9985 symcode='[DT]'
9987 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9988 symcode='[ABDT]'
9990 sysv4)
9991 symcode='[DFNSTU]'
9993 esac
9995 # Handle CRLF in mingw tool chain
9996 opt_cr=
9997 case $build_os in
9998 mingw*)
9999 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10001 esac
10003 # If we're using GNU nm, then use its standard symbol codes.
10004 case `$NM -V 2>&1` in
10005 *GNU* | *'with BFD'*)
10006 symcode='[ABCDGIRSTW]' ;;
10007 esac
10009 # Try without a prefix undercore, then with it.
10010 for ac_symprfx in "" "_"; do
10012 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10013 symxfrm="\\1 $ac_symprfx\\2 \\2"
10015 # Write the raw and C identifiers.
10016 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10018 # Check to see that the pipe works correctly.
10019 pipe_works=no
10021 rm -f conftest*
10022 cat > conftest.$ac_ext <<EOF
10023 #ifdef __cplusplus
10024 extern "C" {
10025 #endif
10026 char nm_test_var;
10027 void nm_test_func(){}
10028 #ifdef __cplusplus
10030 #endif
10031 int main(){nm_test_var='a';nm_test_func();return(0);}
10034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10035 (eval $ac_compile) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; then
10039 # Now try to grab the symbols.
10040 nlist=conftest.nm
10041 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10042 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && test -s "$nlist"; then
10046 # Try sorting and uniquifying the output.
10047 if sort "$nlist" | uniq > "$nlist"T; then
10048 mv -f "$nlist"T "$nlist"
10049 else
10050 rm -f "$nlist"T
10053 # Make sure that we snagged all the symbols we need.
10054 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10055 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10056 cat <<EOF > conftest.$ac_ext
10057 #ifdef __cplusplus
10058 extern "C" {
10059 #endif
10062 # Now generate the symbol file.
10063 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10065 cat <<EOF >> conftest.$ac_ext
10066 #if defined (__STDC__) && __STDC__
10067 # define lt_ptr_t void *
10068 #else
10069 # define lt_ptr_t char *
10070 # define const
10071 #endif
10073 /* The mapping between symbol names and symbols. */
10074 const struct {
10075 const char *name;
10076 lt_ptr_t address;
10078 lt_preloaded_symbols[] =
10081 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10082 cat <<\EOF >> conftest.$ac_ext
10083 {0, (lt_ptr_t) 0}
10086 #ifdef __cplusplus
10088 #endif
10090 # Now try linking the two files.
10091 mv conftest.$ac_objext conftstm.$ac_objext
10092 lt_save_LIBS="$LIBS"
10093 lt_save_CFLAGS="$CFLAGS"
10094 LIBS="conftstm.$ac_objext"
10095 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097 (eval $ac_link) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10101 pipe_works=yes
10103 LIBS="$lt_save_LIBS"
10104 CFLAGS="$lt_save_CFLAGS"
10105 else
10106 echo "cannot find nm_test_func in $nlist" >&5
10108 else
10109 echo "cannot find nm_test_var in $nlist" >&5
10111 else
10112 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10114 else
10115 echo "$progname: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 rm -f conftest* conftst*
10120 # Do not use the global_symbol_pipe unless it works.
10121 if test "$pipe_works" = yes; then
10122 break
10123 else
10124 lt_cv_sys_global_symbol_pipe=
10126 done
10130 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10131 lt_cv_sys_global_symbol_to_cdecl=
10133 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10134 { echo "$as_me:$LINENO: result: failed" >&5
10135 echo "${ECHO_T}failed" >&6; }
10136 else
10137 { echo "$as_me:$LINENO: result: ok" >&5
10138 echo "${ECHO_T}ok" >&6; }
10142 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10143 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10144 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10148 libltdl_cv_preloaded_symbols=yes
10149 else
10150 libltdl_cv_preloaded_symbols=no
10154 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10155 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10156 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10158 cat >>confdefs.h <<\_ACEOF
10159 #define HAVE_PRELOADED_SYMBOLS 1
10160 _ACEOF
10164 LIBADD_DL=
10166 ac_ext=c
10167 ac_cpp='$CPP $CPPFLAGS'
10168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10173 { echo "$as_me:$LINENO: checking for shl_load" >&5
10174 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10175 if test "${ac_cv_func_shl_load+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10186 #define shl_load innocuous_shl_load
10188 /* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char shl_load (); below.
10190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191 <limits.h> exists even on freestanding compilers. */
10193 #ifdef __STDC__
10194 # include <limits.h>
10195 #else
10196 # include <assert.h>
10197 #endif
10199 #undef shl_load
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char shl_load ();
10208 /* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211 #if defined __stub_shl_load || defined __stub___shl_load
10212 choke me
10213 #endif
10216 main ()
10218 return shl_load ();
10220 return 0;
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_func_shl_load=yes
10258 else
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_func_shl_load=no
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10268 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10269 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10270 if test $ac_cv_func_shl_load = yes; then
10272 cat >>confdefs.h <<\_ACEOF
10273 #define HAVE_SHL_LOAD 1
10274 _ACEOF
10276 else
10277 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10278 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10279 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-ldld $LIBS"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h. */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char shl_load ();
10299 main ()
10301 return shl_load ();
10303 return 0;
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_link") 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10321 { (case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_try") 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest$ac_exeext'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_lib_dld_shl_load=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_lib_dld_shl_load=no
10348 rm -f core conftest.err conftest.$ac_objext \
10349 conftest$ac_exeext conftest.$ac_ext
10350 LIBS=$ac_check_lib_save_LIBS
10352 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10353 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10354 if test $ac_cv_lib_dld_shl_load = yes; then
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_SHL_LOAD 1
10358 _ACEOF
10360 LIBADD_DL="$LIBADD_DL -ldld"
10361 else
10362 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10363 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 ac_check_lib_save_LIBS=$LIBS
10368 LIBS="-ldl $LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 /* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10379 #ifdef __cplusplus
10380 extern "C"
10381 #endif
10382 char dlopen ();
10384 main ()
10386 return dlopen ();
10388 return 0;
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419 esac
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_lib_dl_dlopen=yes
10426 else
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_cv_lib_dl_dlopen=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10437 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10438 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10439 if test $ac_cv_lib_dl_dlopen = yes; then
10441 cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_LIBDL 1
10443 _ACEOF
10445 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10446 else
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h. */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 #if HAVE_DLFCN_H
10454 # include <dlfcn.h>
10455 #endif
10458 main ()
10460 dlopen(0, 0);
10462 return 0;
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (ac_try="$ac_link"
10467 case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10470 esac
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_link") 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10480 { (case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_try") 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest$ac_exeext'
10490 { (case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10493 esac
10494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495 (eval "$ac_try") 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_LIBDL 1
10502 _ACEOF
10503 libltdl_cv_func_dlopen="yes"
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10509 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10510 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513 ac_check_lib_save_LIBS=$LIBS
10514 LIBS="-lsvld $LIBS"
10515 cat >conftest.$ac_ext <<_ACEOF
10516 /* confdefs.h. */
10517 _ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10522 /* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 char dlopen ();
10530 main ()
10532 return dlopen ();
10534 return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (ac_try="$ac_link"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542 esac
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_link") 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10552 { (case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_try") 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest$ac_exeext'
10562 { (case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10565 esac
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_try") 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
10571 ac_cv_lib_svld_dlopen=yes
10572 else
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_cv_lib_svld_dlopen=no
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10584 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10585 if test $ac_cv_lib_svld_dlopen = yes; then
10587 cat >>confdefs.h <<\_ACEOF
10588 #define HAVE_LIBDL 1
10589 _ACEOF
10591 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10592 else
10593 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10594 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10595 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598 ac_check_lib_save_LIBS=$LIBS
10599 LIBS="-ldld $LIBS"
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char dld_link ();
10615 main ()
10617 return dld_link ();
10619 return 0;
10621 _ACEOF
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627 esac
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650 esac
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_try") 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_cv_lib_dld_dld_link=yes
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_cv_lib_dld_dld_link=no
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10669 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10670 if test $ac_cv_lib_dld_dld_link = yes; then
10672 cat >>confdefs.h <<\_ACEOF
10673 #define HAVE_DLD 1
10674 _ACEOF
10676 LIBADD_DL="$LIBADD_DL -ldld"
10677 else
10678 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10679 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10680 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h. */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10691 #define _dyld_func_lookup innocuous__dyld_func_lookup
10693 /* System header to define __stub macros and hopefully few prototypes,
10694 which can conflict with char _dyld_func_lookup (); below.
10695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10696 <limits.h> exists even on freestanding compilers. */
10698 #ifdef __STDC__
10699 # include <limits.h>
10700 #else
10701 # include <assert.h>
10702 #endif
10704 #undef _dyld_func_lookup
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char _dyld_func_lookup ();
10713 /* The GNU C library defines this for functions which it implements
10714 to always fail with ENOSYS. Some functions are actually named
10715 something starting with __ and the normal name is an alias. */
10716 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10717 choke me
10718 #endif
10721 main ()
10723 return _dyld_func_lookup ();
10725 return 0;
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10743 { (case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_try") 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest$ac_exeext'
10753 { (case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756 esac
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_try") 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_cv_func__dyld_func_lookup=yes
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ac_cv_func__dyld_func_lookup=no
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10773 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10774 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10775 if test $ac_cv_func__dyld_func_lookup = yes; then
10777 cat >>confdefs.h <<\_ACEOF
10778 #define HAVE_DYLD 1
10779 _ACEOF
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10804 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10805 then
10806 lt_save_LIBS="$LIBS"
10807 LIBS="$LIBS $LIBADD_DL"
10809 for ac_func in dlerror
10811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10825 #define $ac_func innocuous_$ac_func
10827 /* System header to define __stub macros and hopefully few prototypes,
10828 which can conflict with char $ac_func (); below.
10829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10830 <limits.h> exists even on freestanding compilers. */
10832 #ifdef __STDC__
10833 # include <limits.h>
10834 #else
10835 # include <assert.h>
10836 #endif
10838 #undef $ac_func
10840 /* Override any GCC internal prototype to avoid an error.
10841 Use char because int might match the return type of a GCC
10842 builtin and then its argument prototype would still apply. */
10843 #ifdef __cplusplus
10844 extern "C"
10845 #endif
10846 char $ac_func ();
10847 /* The GNU C library defines this for functions which it implements
10848 to always fail with ENOSYS. Some functions are actually named
10849 something starting with __ and the normal name is an alias. */
10850 #if defined __stub_$ac_func || defined __stub___$ac_func
10851 choke me
10852 #endif
10855 main ()
10857 return $ac_func ();
10859 return 0;
10861 _ACEOF
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (ac_try="$ac_link"
10864 case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_link") 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; } &&
10886 { ac_try='test -s conftest$ac_exeext'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 eval "$as_ac_var=yes"
10897 else
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 eval "$as_ac_var=no"
10904 rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10907 ac_res=`eval echo '${'$as_ac_var'}'`
10908 { echo "$as_me:$LINENO: result: $ac_res" >&5
10909 echo "${ECHO_T}$ac_res" >&6; }
10910 if test `eval echo '${'$as_ac_var'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10913 _ACEOF
10916 done
10918 LIBS="$lt_save_LIBS"
10920 ac_ext=c
10921 ac_cpp='$CPP $CPPFLAGS'
10922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10928 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10929 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10930 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933 ac_cv_sys_symbol_underscore=no
10934 cat > conftest.$ac_ext <<EOF
10935 void nm_test_func(){}
10936 int main(){nm_test_func;return 0;}
10938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; then
10943 # Now try to grab the symbols.
10944 ac_nlist=conftest.nm
10945 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10946 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && test -s "$ac_nlist"; then
10950 # See whether the symbols have a leading underscore.
10951 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10952 ac_cv_sys_symbol_underscore=yes
10953 else
10954 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10956 else
10957 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10960 else
10961 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10963 else
10964 echo "configure: failed program was:" >&5
10965 cat conftest.c >&5
10967 rm -rf conftest*
10970 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10971 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10974 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10975 if test x"$libltdl_cv_func_dlopen" = xyes ||
10976 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10977 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10978 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10979 if test "${libltdl_cv_need_uscore+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982 libltdl_cv_need_uscore=unknown
10983 save_LIBS="$LIBS"
10984 LIBS="$LIBS $LIBADD_DL"
10985 if test "$cross_compiling" = yes; then :
10986 libltdl_cv_need_uscore=cross
10987 else
10988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989 lt_status=$lt_dlunknown
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10991 "configure"
10992 #include "confdefs.h"
10994 #if HAVE_DLFCN_H
10995 #include <dlfcn.h>
10996 #endif
10998 #include <stdio.h>
11000 #ifdef RTLD_GLOBAL
11001 # define LT_DLGLOBAL RTLD_GLOBAL
11002 #else
11003 # ifdef DL_GLOBAL
11004 # define LT_DLGLOBAL DL_GLOBAL
11005 # else
11006 # define LT_DLGLOBAL 0
11007 # endif
11008 #endif
11010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011 find out it does not work in some platform. */
11012 #ifndef LT_DLLAZY_OR_NOW
11013 # ifdef RTLD_LAZY
11014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11015 # else
11016 # ifdef DL_LAZY
11017 # define LT_DLLAZY_OR_NOW DL_LAZY
11018 # else
11019 # ifdef RTLD_NOW
11020 # define LT_DLLAZY_OR_NOW RTLD_NOW
11021 # else
11022 # ifdef DL_NOW
11023 # define LT_DLLAZY_OR_NOW DL_NOW
11024 # else
11025 # define LT_DLLAZY_OR_NOW 0
11026 # endif
11027 # endif
11028 # endif
11029 # endif
11030 #endif
11032 #ifdef __cplusplus
11033 extern "C" void exit (int);
11034 #endif
11036 void fnord() { int i=42;}
11037 int main ()
11039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11040 int status = $lt_dlunknown;
11042 if (self)
11044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11045 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11046 /* dlclose (self); */
11048 else
11049 puts (dlerror ());
11051 exit (status);
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11059 (./conftest; exit; ) >&5 2>/dev/null
11060 lt_status=$?
11061 case x$lt_status in
11062 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11063 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11064 x$lt_dlunknown|x*) ;;
11065 esac
11066 else :
11067 # compilation failed
11071 rm -fr conftest*
11073 LIBS="$save_LIBS"
11076 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11077 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11081 if test x"$libltdl_cv_need_uscore" = xyes; then
11083 cat >>confdefs.h <<\_ACEOF
11084 #define NEED_USCORE 1
11085 _ACEOF
11090 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11091 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11092 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095 # PORTME does your system automatically load deplibs for dlopen?
11096 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11097 # For now, we just catch OSes we know something about -- in the
11098 # future, we'll try test this programmatically.
11099 libltdl_cv_sys_dlopen_deplibs=unknown
11100 case "$host_os" in
11101 aix3*|aix4.1.*|aix4.2.*)
11102 # Unknown whether this is true for these versions of AIX, but
11103 # we want this `case' here to explicitly catch those versions.
11104 libltdl_cv_sys_dlopen_deplibs=unknown
11106 aix[45]*)
11107 libltdl_cv_sys_dlopen_deplibs=yes
11109 darwin*)
11110 # Assuming the user has installed a libdl from somewhere, this is true
11111 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11112 libltdl_cv_sys_dlopen_deplibs=yes
11114 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11115 # GNU and its variants, using gnu ld.so (Glibc)
11116 libltdl_cv_sys_dlopen_deplibs=yes
11118 hpux10*|hpux11*)
11119 libltdl_cv_sys_dlopen_deplibs=yes
11121 interix*)
11122 libltdl_cv_sys_dlopen_deplibs=yes
11124 irix[12345]*|irix6.[01]*)
11125 # Catch all versions of IRIX before 6.2, and indicate that we don't
11126 # know how it worked for any of those versions.
11127 libltdl_cv_sys_dlopen_deplibs=unknown
11129 irix*)
11130 # The case above catches anything before 6.2, and it's known that
11131 # at 6.2 and later dlopen does load deplibs.
11132 libltdl_cv_sys_dlopen_deplibs=yes
11134 netbsd*)
11135 libltdl_cv_sys_dlopen_deplibs=yes
11137 openbsd*)
11138 libltdl_cv_sys_dlopen_deplibs=yes
11140 osf[1234]*)
11141 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11142 # it did *not* use an RPATH in a shared library to find objects the
11143 # library depends on, so we explictly say `no'.
11144 libltdl_cv_sys_dlopen_deplibs=no
11146 osf5.0|osf5.0a|osf5.1)
11147 # dlopen *does* load deplibs and with the right loader patch applied
11148 # it even uses RPATH in a shared library to search for shared objects
11149 # that the library depends on, but there's no easy way to know if that
11150 # patch is installed. Since this is the case, all we can really
11151 # say is unknown -- it depends on the patch being installed. If
11152 # it is, this changes to `yes'. Without it, it would be `no'.
11153 libltdl_cv_sys_dlopen_deplibs=unknown
11155 osf*)
11156 # the two cases above should catch all versions of osf <= 5.1. Read
11157 # the comments above for what we know about them.
11158 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11159 # is used to find them so we can finally say `yes'.
11160 libltdl_cv_sys_dlopen_deplibs=yes
11162 solaris*)
11163 libltdl_cv_sys_dlopen_deplibs=yes
11165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11166 libltdl_cv_sys_dlopen_deplibs=yes
11168 esac
11171 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11172 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11173 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11175 cat >>confdefs.h <<\_ACEOF
11176 #define LTDL_DLOPEN_DEPLIBS 1
11177 _ACEOF
11182 for ac_header in argz.h
11184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 ac_res=`eval echo '${'$as_ac_Header'}'`
11192 { echo "$as_me:$LINENO: result: $ac_res" >&5
11193 echo "${ECHO_T}$ac_res" >&6; }
11194 else
11195 # Is the header compilable?
11196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11198 cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h. */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 $ac_includes_default
11205 #include <$ac_header>
11206 _ACEOF
11207 rm -f conftest.$ac_objext
11208 if { (ac_try="$ac_compile"
11209 case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212 esac
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11222 { (case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_try") 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235 esac
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_try") 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_header_compiler=yes
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 ac_header_compiler=no
11249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11251 echo "${ECHO_T}$ac_header_compiler" >&6; }
11253 # Is the header present?
11254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11256 cat >conftest.$ac_ext <<_ACEOF
11257 /* confdefs.h. */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 #include <$ac_header>
11263 _ACEOF
11264 if { (ac_try="$ac_cpp conftest.$ac_ext"
11265 case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } >/dev/null; then
11277 if test -s conftest.err; then
11278 ac_cpp_err=$ac_c_preproc_warn_flag
11279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11280 else
11281 ac_cpp_err=
11283 else
11284 ac_cpp_err=yes
11286 if test -z "$ac_cpp_err"; then
11287 ac_header_preproc=yes
11288 else
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 ac_header_preproc=no
11295 rm -f conftest.err conftest.$ac_ext
11296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11297 echo "${ECHO_T}$ac_header_preproc" >&6; }
11299 # So? What about this header?
11300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11301 yes:no: )
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11306 ac_header_preproc=yes
11308 no:yes:* )
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11321 ( cat <<\_ASBOX
11322 ## ----------------------------------- ##
11323 ## Report this to llvmbugs@cs.uiuc.edu ##
11324 ## ----------------------------------- ##
11325 _ASBOX
11326 ) | sed "s/^/$as_me: WARNING: /" >&2
11328 esac
11329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334 eval "$as_ac_Header=\$ac_header_preproc"
11336 ac_res=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11344 _ACEOF
11348 done
11351 { echo "$as_me:$LINENO: checking for error_t" >&5
11352 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11353 if test "${ac_cv_type_error_t+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
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 #if HAVE_ARGZ_H
11363 # include <argz.h>
11364 #endif
11366 typedef error_t ac__type_new_;
11368 main ()
11370 if ((ac__type_new_ *) 0)
11371 return 0;
11372 if (sizeof (ac__type_new_))
11373 return 0;
11375 return 0;
11377 _ACEOF
11378 rm -f conftest.$ac_objext
11379 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
11392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; } &&
11402 { ac_try='test -s conftest.$ac_objext'
11403 { (case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_try") 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_cv_type_error_t=yes
11413 else
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_cv_type_error_t=no
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11423 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11424 if test $ac_cv_type_error_t = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_ERROR_T 1
11428 _ACEOF
11431 else
11433 cat >>confdefs.h <<\_ACEOF
11434 #define error_t int
11435 _ACEOF
11445 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h. */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11461 #define $ac_func innocuous_$ac_func
11463 /* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char $ac_func (); below.
11465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466 <limits.h> exists even on freestanding compilers. */
11468 #ifdef __STDC__
11469 # include <limits.h>
11470 #else
11471 # include <assert.h>
11472 #endif
11474 #undef $ac_func
11476 /* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11479 #ifdef __cplusplus
11480 extern "C"
11481 #endif
11482 char $ac_func ();
11483 /* The GNU C library defines this for functions which it implements
11484 to always fail with ENOSYS. Some functions are actually named
11485 something starting with __ and the normal name is an alias. */
11486 #if defined __stub_$ac_func || defined __stub___$ac_func
11487 choke me
11488 #endif
11491 main ()
11493 return $ac_func ();
11495 return 0;
11497 _ACEOF
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (ac_try="$ac_link"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_link") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest$ac_exeext'
11523 { (case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_try") 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 eval "$as_ac_var=yes"
11533 else
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 eval "$as_ac_var=no"
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11543 ac_res=`eval echo '${'$as_ac_var'}'`
11544 { echo "$as_me:$LINENO: result: $ac_res" >&5
11545 echo "${ECHO_T}$ac_res" >&6; }
11546 if test `eval echo '${'$as_ac_var'}'` = yes; then
11547 cat >>confdefs.h <<_ACEOF
11548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11549 _ACEOF
11552 done
11581 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11582 stdio.h unistd.h
11584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 ac_res=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11594 else
11595 # Is the header compilable?
11596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 #include <$ac_header>
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (ac_try="$ac_compile"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635 esac
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_try") 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 ac_header_compiler=yes
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_header_compiler=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11651 echo "${ECHO_T}$ac_header_compiler" >&6; }
11653 # Is the header present?
11654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h. */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 #include <$ac_header>
11663 _ACEOF
11664 if { (ac_try="$ac_cpp conftest.$ac_ext"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } >/dev/null; then
11677 if test -s conftest.err; then
11678 ac_cpp_err=$ac_c_preproc_warn_flag
11679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11680 else
11681 ac_cpp_err=
11683 else
11684 ac_cpp_err=yes
11686 if test -z "$ac_cpp_err"; then
11687 ac_header_preproc=yes
11688 else
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_header_preproc=no
11695 rm -f conftest.err conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11697 echo "${ECHO_T}$ac_header_preproc" >&6; }
11699 # So? What about this header?
11700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11701 yes:no: )
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11706 ac_header_preproc=yes
11708 no:yes:* )
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11721 ( cat <<\_ASBOX
11722 ## ----------------------------------- ##
11723 ## Report this to llvmbugs@cs.uiuc.edu ##
11724 ## ----------------------------------- ##
11725 _ASBOX
11726 ) | sed "s/^/$as_me: WARNING: /" >&2
11728 esac
11729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734 eval "$as_ac_Header=\$ac_header_preproc"
11736 ac_res=`eval echo '${'$as_ac_Header'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11742 cat >>confdefs.h <<_ACEOF
11743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11744 _ACEOF
11748 done
11754 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 ac_res=`eval echo '${'$as_ac_Header'}'`
11764 { echo "$as_me:$LINENO: result: $ac_res" >&5
11765 echo "${ECHO_T}$ac_res" >&6; }
11766 else
11767 # Is the header compilable?
11768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 #include <$ac_header>
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_header_compiler=yes
11814 else
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_header_compiler=no
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11823 echo "${ECHO_T}$ac_header_compiler" >&6; }
11825 # Is the header present?
11826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <$ac_header>
11835 _ACEOF
11836 if { (ac_try="$ac_cpp conftest.$ac_ext"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11843 ac_status=$?
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } >/dev/null; then
11849 if test -s conftest.err; then
11850 ac_cpp_err=$ac_c_preproc_warn_flag
11851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11852 else
11853 ac_cpp_err=
11855 else
11856 ac_cpp_err=yes
11858 if test -z "$ac_cpp_err"; then
11859 ac_header_preproc=yes
11860 else
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_header_preproc=no
11867 rm -f conftest.err conftest.$ac_ext
11868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11869 echo "${ECHO_T}$ac_header_preproc" >&6; }
11871 # So? What about this header?
11872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11873 yes:no: )
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11878 ac_header_preproc=yes
11880 no:yes:* )
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11893 ( cat <<\_ASBOX
11894 ## ----------------------------------- ##
11895 ## Report this to llvmbugs@cs.uiuc.edu ##
11896 ## ----------------------------------- ##
11897 _ASBOX
11898 ) | sed "s/^/$as_me: WARNING: /" >&2
11900 esac
11901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906 eval "$as_ac_Header=\$ac_header_preproc"
11908 ac_res=`eval echo '${'$as_ac_Header'}'`
11909 { echo "$as_me:$LINENO: result: $ac_res" >&5
11910 echo "${ECHO_T}$ac_res" >&6; }
11913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11914 cat >>confdefs.h <<_ACEOF
11915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11916 _ACEOF
11920 done
11924 for ac_header in string.h strings.h
11926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 ac_res=`eval echo '${'$as_ac_Header'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935 echo "${ECHO_T}$ac_res" >&6; }
11936 else
11937 # Is the header compilable?
11938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 #include <$ac_header>
11948 _ACEOF
11949 rm -f conftest.$ac_objext
11950 if { (ac_try="$ac_compile"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_compile") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_header_compiler=yes
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_header_compiler=no
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11993 echo "${ECHO_T}$ac_header_compiler" >&6; }
11995 # Is the header present?
11996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <$ac_header>
12005 _ACEOF
12006 if { (ac_try="$ac_cpp conftest.$ac_ext"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev/null; then
12019 if test -s conftest.err; then
12020 ac_cpp_err=$ac_c_preproc_warn_flag
12021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12022 else
12023 ac_cpp_err=
12025 else
12026 ac_cpp_err=yes
12028 if test -z "$ac_cpp_err"; then
12029 ac_header_preproc=yes
12030 else
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 ac_header_preproc=no
12037 rm -f conftest.err conftest.$ac_ext
12038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12039 echo "${ECHO_T}$ac_header_preproc" >&6; }
12041 # So? What about this header?
12042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12043 yes:no: )
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12048 ac_header_preproc=yes
12050 no:yes:* )
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12063 ( cat <<\_ASBOX
12064 ## ----------------------------------- ##
12065 ## Report this to llvmbugs@cs.uiuc.edu ##
12066 ## ----------------------------------- ##
12067 _ASBOX
12068 ) | sed "s/^/$as_me: WARNING: /" >&2
12070 esac
12071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 eval "$as_ac_Header=\$ac_header_preproc"
12078 ac_res=`eval echo '${'$as_ac_Header'}'`
12079 { echo "$as_me:$LINENO: result: $ac_res" >&5
12080 echo "${ECHO_T}$ac_res" >&6; }
12083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12084 cat >>confdefs.h <<_ACEOF
12085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12086 _ACEOF
12087 break
12090 done
12095 for ac_func in strchr index
12097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111 #define $ac_func innocuous_$ac_func
12113 /* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12118 #ifdef __STDC__
12119 # include <limits.h>
12120 #else
12121 # include <assert.h>
12122 #endif
12124 #undef $ac_func
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char $ac_func ();
12133 /* The GNU C library defines this for functions which it implements
12134 to always fail with ENOSYS. Some functions are actually named
12135 something starting with __ and the normal name is an alias. */
12136 #if defined __stub_$ac_func || defined __stub___$ac_func
12137 choke me
12138 #endif
12141 main ()
12143 return $ac_func ();
12145 return 0;
12147 _ACEOF
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (ac_try="$ac_link"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 eval "$as_ac_var=yes"
12183 else
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 eval "$as_ac_var=no"
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12193 ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 _ACEOF
12200 break
12202 done
12206 for ac_func in strrchr rindex
12208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12222 #define $ac_func innocuous_$ac_func
12224 /* System header to define __stub macros and hopefully few prototypes,
12225 which can conflict with char $ac_func (); below.
12226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227 <limits.h> exists even on freestanding compilers. */
12229 #ifdef __STDC__
12230 # include <limits.h>
12231 #else
12232 # include <assert.h>
12233 #endif
12235 #undef $ac_func
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char $ac_func ();
12244 /* The GNU C library defines this for functions which it implements
12245 to always fail with ENOSYS. Some functions are actually named
12246 something starting with __ and the normal name is an alias. */
12247 #if defined __stub_$ac_func || defined __stub___$ac_func
12248 choke me
12249 #endif
12252 main ()
12254 return $ac_func ();
12256 return 0;
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (ac_try="$ac_link"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_link") 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274 { (case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_try") 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest$ac_exeext'
12284 { (case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_try") 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 eval "$as_ac_var=yes"
12294 else
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 eval "$as_ac_var=no"
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12304 ac_res=`eval echo '${'$as_ac_var'}'`
12305 { echo "$as_me:$LINENO: result: $ac_res" >&5
12306 echo "${ECHO_T}$ac_res" >&6; }
12307 if test `eval echo '${'$as_ac_var'}'` = yes; then
12308 cat >>confdefs.h <<_ACEOF
12309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12310 _ACEOF
12311 break
12313 done
12317 for ac_func in memcpy bcopy
12319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12333 #define $ac_func innocuous_$ac_func
12335 /* System header to define __stub macros and hopefully few prototypes,
12336 which can conflict with char $ac_func (); below.
12337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12338 <limits.h> exists even on freestanding compilers. */
12340 #ifdef __STDC__
12341 # include <limits.h>
12342 #else
12343 # include <assert.h>
12344 #endif
12346 #undef $ac_func
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 char $ac_func ();
12355 /* The GNU C library defines this for functions which it implements
12356 to always fail with ENOSYS. Some functions are actually named
12357 something starting with __ and the normal name is an alias. */
12358 #if defined __stub_$ac_func || defined __stub___$ac_func
12359 choke me
12360 #endif
12363 main ()
12365 return $ac_func ();
12367 return 0;
12369 _ACEOF
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (ac_try="$ac_link"
12372 case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375 esac
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_link") 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12385 { (case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_try") 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398 esac
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_try") 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 eval "$as_ac_var=yes"
12405 else
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 eval "$as_ac_var=no"
12412 rm -f core conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext conftest.$ac_ext
12415 ac_res=`eval echo '${'$as_ac_var'}'`
12416 { echo "$as_me:$LINENO: result: $ac_res" >&5
12417 echo "${ECHO_T}$ac_res" >&6; }
12418 if test `eval echo '${'$as_ac_var'}'` = yes; then
12419 cat >>confdefs.h <<_ACEOF
12420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12421 _ACEOF
12422 break
12424 done
12428 for ac_func in memmove strcmp
12430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12435 else
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h. */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12444 #define $ac_func innocuous_$ac_func
12446 /* System header to define __stub macros and hopefully few prototypes,
12447 which can conflict with char $ac_func (); below.
12448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449 <limits.h> exists even on freestanding compilers. */
12451 #ifdef __STDC__
12452 # include <limits.h>
12453 #else
12454 # include <assert.h>
12455 #endif
12457 #undef $ac_func
12459 /* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12462 #ifdef __cplusplus
12463 extern "C"
12464 #endif
12465 char $ac_func ();
12466 /* The GNU C library defines this for functions which it implements
12467 to always fail with ENOSYS. Some functions are actually named
12468 something starting with __ and the normal name is an alias. */
12469 #if defined __stub_$ac_func || defined __stub___$ac_func
12470 choke me
12471 #endif
12474 main ()
12476 return $ac_func ();
12478 return 0;
12480 _ACEOF
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (ac_try="$ac_link"
12483 case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486 esac
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_link") 2>conftest.er1
12489 ac_status=$?
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12496 { (case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12499 esac
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_try") 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } &&
12505 { ac_try='test -s conftest$ac_exeext'
12506 { (case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_try") 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 eval "$as_ac_var=yes"
12516 else
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 eval "$as_ac_var=no"
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12526 ac_res=`eval echo '${'$as_ac_var'}'`
12527 { echo "$as_me:$LINENO: result: $ac_res" >&5
12528 echo "${ECHO_T}$ac_res" >&6; }
12529 if test `eval echo '${'$as_ac_var'}'` = yes; then
12530 cat >>confdefs.h <<_ACEOF
12531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12532 _ACEOF
12535 done
12540 for ac_func in closedir opendir readdir
12542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12556 #define $ac_func innocuous_$ac_func
12558 /* System header to define __stub macros and hopefully few prototypes,
12559 which can conflict with char $ac_func (); below.
12560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12561 <limits.h> exists even on freestanding compilers. */
12563 #ifdef __STDC__
12564 # include <limits.h>
12565 #else
12566 # include <assert.h>
12567 #endif
12569 #undef $ac_func
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 char $ac_func ();
12578 /* The GNU C library defines this for functions which it implements
12579 to always fail with ENOSYS. Some functions are actually named
12580 something starting with __ and the normal name is an alias. */
12581 #if defined __stub_$ac_func || defined __stub___$ac_func
12582 choke me
12583 #endif
12586 main ()
12588 return $ac_func ();
12590 return 0;
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (ac_try="$ac_link"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_link") 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest$ac_exeext'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 eval "$as_ac_var=yes"
12628 else
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 eval "$as_ac_var=no"
12635 rm -f core conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
12638 ac_res=`eval echo '${'$as_ac_var'}'`
12639 { echo "$as_me:$LINENO: result: $ac_res" >&5
12640 echo "${ECHO_T}$ac_res" >&6; }
12641 if test `eval echo '${'$as_ac_var'}'` = yes; then
12642 cat >>confdefs.h <<_ACEOF
12643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12644 _ACEOF
12647 done
12650 # Check whether --enable-shared was given.
12651 if test "${enable_shared+set}" = set; then
12652 enableval=$enable_shared; p=${PACKAGE-default}
12653 case $enableval in
12654 yes) enable_shared=yes ;;
12655 no) enable_shared=no ;;
12657 enable_shared=no
12658 # Look at the argument we got. We use all the common list separators.
12659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12660 for pkg in $enableval; do
12661 IFS="$lt_save_ifs"
12662 if test "X$pkg" = "X$p"; then
12663 enable_shared=yes
12665 done
12666 IFS="$lt_save_ifs"
12668 esac
12669 else
12670 enable_shared=yes
12674 # Check whether --enable-static was given.
12675 if test "${enable_static+set}" = set; then
12676 enableval=$enable_static; p=${PACKAGE-default}
12677 case $enableval in
12678 yes) enable_static=yes ;;
12679 no) enable_static=no ;;
12681 enable_static=no
12682 # Look at the argument we got. We use all the common list separators.
12683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12684 for pkg in $enableval; do
12685 IFS="$lt_save_ifs"
12686 if test "X$pkg" = "X$p"; then
12687 enable_static=yes
12689 done
12690 IFS="$lt_save_ifs"
12692 esac
12693 else
12694 enable_static=yes
12698 # Check whether --enable-fast-install was given.
12699 if test "${enable_fast_install+set}" = set; then
12700 enableval=$enable_fast_install; p=${PACKAGE-default}
12701 case $enableval in
12702 yes) enable_fast_install=yes ;;
12703 no) enable_fast_install=no ;;
12705 enable_fast_install=no
12706 # Look at the argument we got. We use all the common list separators.
12707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12708 for pkg in $enableval; do
12709 IFS="$lt_save_ifs"
12710 if test "X$pkg" = "X$p"; then
12711 enable_fast_install=yes
12713 done
12714 IFS="$lt_save_ifs"
12716 esac
12717 else
12718 enable_fast_install=yes
12722 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12723 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12724 if test "${lt_cv_path_SED+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727 # Loop through the user's path and test for sed and gsed.
12728 # Then use that list of sed's as ones to test for truncation.
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for lt_ac_prog in sed gsed; do
12735 for ac_exec_ext in '' $ac_executable_extensions; do
12736 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12737 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12739 done
12740 done
12741 done
12742 lt_ac_max=0
12743 lt_ac_count=0
12744 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12745 # along with /bin/sed that truncates output.
12746 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12747 test ! -f $lt_ac_sed && continue
12748 cat /dev/null > conftest.in
12749 lt_ac_count=0
12750 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12751 # Check for GNU sed and select it if it is found.
12752 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12753 lt_cv_path_SED=$lt_ac_sed
12754 break
12756 while true; do
12757 cat conftest.in conftest.in >conftest.tmp
12758 mv conftest.tmp conftest.in
12759 cp conftest.in conftest.nl
12760 echo >>conftest.nl
12761 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12762 cmp -s conftest.out conftest.nl || break
12763 # 10000 chars as input seems more than enough
12764 test $lt_ac_count -gt 10 && break
12765 lt_ac_count=`expr $lt_ac_count + 1`
12766 if test $lt_ac_count -gt $lt_ac_max; then
12767 lt_ac_max=$lt_ac_count
12768 lt_cv_path_SED=$lt_ac_sed
12770 done
12771 done
12775 SED=$lt_cv_path_SED
12776 { echo "$as_me:$LINENO: result: $SED" >&5
12777 echo "${ECHO_T}$SED" >&6; }
12780 # Check whether --with-gnu-ld was given.
12781 if test "${with_gnu_ld+set}" = set; then
12782 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12783 else
12784 with_gnu_ld=no
12787 ac_prog=ld
12788 if test "$GCC" = yes; then
12789 # Check if gcc -print-prog-name=ld gives a path.
12790 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12791 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12792 case $host in
12793 *-*-mingw*)
12794 # gcc leaves a trailing carriage return which upsets mingw
12795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12798 esac
12799 case $ac_prog in
12800 # Accept absolute paths.
12801 [\\/]* | ?:[\\/]*)
12802 re_direlt='/[^/][^/]*/\.\./'
12803 # Canonicalize the pathname of ld
12804 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12805 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12806 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12807 done
12808 test -z "$LD" && LD="$ac_prog"
12811 # If it fails, then pretend we aren't using GCC.
12812 ac_prog=ld
12815 # If it is relative, then search for the first ld in PATH.
12816 with_gnu_ld=unknown
12818 esac
12819 elif test "$with_gnu_ld" = yes; then
12820 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12821 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12822 else
12823 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12824 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12826 if test "${lt_cv_path_LD+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829 if test -z "$LD"; then
12830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12831 for ac_dir in $PATH; do
12832 IFS="$lt_save_ifs"
12833 test -z "$ac_dir" && ac_dir=.
12834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12835 lt_cv_path_LD="$ac_dir/$ac_prog"
12836 # Check to see if the program is GNU ld. I'd rather use --version,
12837 # but apparently some variants of GNU ld only accept -v.
12838 # Break only if it was the GNU/non-GNU ld that we prefer.
12839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12840 *GNU* | *'with BFD'*)
12841 test "$with_gnu_ld" != no && break
12844 test "$with_gnu_ld" != yes && break
12846 esac
12848 done
12849 IFS="$lt_save_ifs"
12850 else
12851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12855 LD="$lt_cv_path_LD"
12856 if test -n "$LD"; then
12857 { echo "$as_me:$LINENO: result: $LD" >&5
12858 echo "${ECHO_T}$LD" >&6; }
12859 else
12860 { echo "$as_me:$LINENO: result: no" >&5
12861 echo "${ECHO_T}no" >&6; }
12863 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12864 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12865 { (exit 1); exit 1; }; }
12866 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12867 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12868 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 else
12871 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12872 case `$LD -v 2>&1 </dev/null` in
12873 *GNU* | *'with BFD'*)
12874 lt_cv_prog_gnu_ld=yes
12877 lt_cv_prog_gnu_ld=no
12879 esac
12881 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12882 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12883 with_gnu_ld=$lt_cv_prog_gnu_ld
12886 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12887 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12888 if test "${lt_cv_ld_reload_flag+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 lt_cv_ld_reload_flag='-r'
12893 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12894 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12895 reload_flag=$lt_cv_ld_reload_flag
12896 case $reload_flag in
12897 "" | " "*) ;;
12898 *) reload_flag=" $reload_flag" ;;
12899 esac
12900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12901 case $host_os in
12902 darwin*)
12903 if test "$GCC" = yes; then
12904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12905 else
12906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12909 esac
12911 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12912 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12913 if test "${lt_cv_deplibs_check_method+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916 lt_cv_file_magic_cmd='$MAGIC_CMD'
12917 lt_cv_file_magic_test_file=
12918 lt_cv_deplibs_check_method='unknown'
12919 # Need to set the preceding variable on all platforms that support
12920 # interlibrary dependencies.
12921 # 'none' -- dependencies not supported.
12922 # `unknown' -- same as none, but documents that we really don't know.
12923 # 'pass_all' -- all dependencies passed with no checks.
12924 # 'test_compile' -- check by making test program.
12925 # 'file_magic [[regex]]' -- check by looking for files in library path
12926 # which responds to the $file_magic_cmd with a given extended regex.
12927 # If you have `file' or equivalent on your system and you're not sure
12928 # whether `pass_all' will *always* work, you probably want this one.
12930 case $host_os in
12931 aix4* | aix5*)
12932 lt_cv_deplibs_check_method=pass_all
12935 beos*)
12936 lt_cv_deplibs_check_method=pass_all
12939 bsdi[45]*)
12940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12941 lt_cv_file_magic_cmd='/usr/bin/file -L'
12942 lt_cv_file_magic_test_file=/shlib/libc.so
12945 cygwin*)
12946 # func_win32_libid is a shell function defined in ltmain.sh
12947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12948 lt_cv_file_magic_cmd='func_win32_libid'
12951 mingw* | pw32*)
12952 # Base MSYS/MinGW do not provide the 'file' command needed by
12953 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12954 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12955 lt_cv_file_magic_cmd='$OBJDUMP -f'
12958 darwin* | rhapsody*)
12959 lt_cv_deplibs_check_method=pass_all
12962 freebsd* | kfreebsd*-gnu | dragonfly*)
12963 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12964 case $host_cpu in
12965 i*86 )
12966 # Not sure whether the presence of OpenBSD here was a mistake.
12967 # Let's accept both of them until this is cleared up.
12968 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12969 lt_cv_file_magic_cmd=/usr/bin/file
12970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12972 esac
12973 else
12974 lt_cv_deplibs_check_method=pass_all
12978 gnu*)
12979 lt_cv_deplibs_check_method=pass_all
12982 hpux10.20* | hpux11*)
12983 lt_cv_file_magic_cmd=/usr/bin/file
12984 case $host_cpu in
12985 ia64*)
12986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12987 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12989 hppa*64*)
12990 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]'
12991 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12997 esac
13000 interix3*)
13001 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13005 irix5* | irix6* | nonstopux*)
13006 case $LD in
13007 *-32|*"-32 ") libmagic=32-bit;;
13008 *-n32|*"-n32 ") libmagic=N32;;
13009 *-64|*"-64 ") libmagic=64-bit;;
13010 *) libmagic=never-match;;
13011 esac
13012 lt_cv_deplibs_check_method=pass_all
13015 # This must be Linux ELF.
13016 linux*)
13017 lt_cv_deplibs_check_method=pass_all
13020 netbsd*)
13021 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13023 else
13024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13028 newos6*)
13029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13030 lt_cv_file_magic_cmd=/usr/bin/file
13031 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13034 nto-qnx*)
13035 lt_cv_deplibs_check_method=unknown
13038 openbsd*)
13039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13041 else
13042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13046 osf3* | osf4* | osf5*)
13047 lt_cv_deplibs_check_method=pass_all
13050 solaris*)
13051 lt_cv_deplibs_check_method=pass_all
13054 sysv4 | sysv4.3*)
13055 case $host_vendor in
13056 motorola)
13057 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]'
13058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13060 ncr)
13061 lt_cv_deplibs_check_method=pass_all
13063 sequent)
13064 lt_cv_file_magic_cmd='/bin/file'
13065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13067 sni)
13068 lt_cv_file_magic_cmd='/bin/file'
13069 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13070 lt_cv_file_magic_test_file=/lib/libc.so
13072 siemens)
13073 lt_cv_deplibs_check_method=pass_all
13076 lt_cv_deplibs_check_method=pass_all
13078 esac
13081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13082 lt_cv_deplibs_check_method=pass_all
13084 esac
13087 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13088 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13089 file_magic_cmd=$lt_cv_file_magic_cmd
13090 deplibs_check_method=$lt_cv_deplibs_check_method
13091 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13095 # If no C compiler was specified, use CC.
13096 LTCC=${LTCC-"$CC"}
13098 # If no C compiler flags were specified, use CFLAGS.
13099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13101 # Allow CC to be a program name with arguments.
13102 compiler=$CC
13104 # Check whether --enable-libtool-lock was given.
13105 if test "${enable_libtool_lock+set}" = set; then
13106 enableval=$enable_libtool_lock;
13109 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13111 # Some flags need to be propagated to the compiler or linker for good
13112 # libtool support.
13113 case $host in
13114 ia64-*-hpux*)
13115 # Find out which ABI we are using.
13116 echo 'int i;' > conftest.$ac_ext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; then
13122 case `/usr/bin/file conftest.$ac_objext` in
13123 *ELF-32*)
13124 HPUX_IA64_MODE="32"
13126 *ELF-64*)
13127 HPUX_IA64_MODE="64"
13129 esac
13131 rm -rf conftest*
13133 *-*-irix6*)
13134 # Find out which ABI we are using.
13135 echo '#line 13135 "configure"' > conftest.$ac_ext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137 (eval $ac_compile) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; then
13141 if test "$lt_cv_prog_gnu_ld" = yes; then
13142 case `/usr/bin/file conftest.$ac_objext` in
13143 *32-bit*)
13144 LD="${LD-ld} -melf32bsmip"
13146 *N32*)
13147 LD="${LD-ld} -melf32bmipn32"
13149 *64-bit*)
13150 LD="${LD-ld} -melf64bmip"
13152 esac
13153 else
13154 case `/usr/bin/file conftest.$ac_objext` in
13155 *32-bit*)
13156 LD="${LD-ld} -32"
13158 *N32*)
13159 LD="${LD-ld} -n32"
13161 *64-bit*)
13162 LD="${LD-ld} -64"
13164 esac
13167 rm -rf conftest*
13170 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13171 # Find out which ABI we are using.
13172 echo 'int i;' > conftest.$ac_ext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; then
13178 case `/usr/bin/file conftest.o` in
13179 *32-bit*)
13180 case $host in
13181 x86_64-*linux*)
13182 LD="${LD-ld} -m elf_i386"
13184 ppc64-*linux*|powerpc64-*linux*)
13185 LD="${LD-ld} -m elf32ppclinux"
13187 s390x-*linux*)
13188 LD="${LD-ld} -m elf_s390"
13190 sparc64-*linux*)
13191 LD="${LD-ld} -m elf32_sparc"
13193 esac
13195 *64-bit*)
13196 case $host in
13197 x86_64-*linux*)
13198 LD="${LD-ld} -m elf_x86_64"
13200 ppc*-*linux*|powerpc*-*linux*)
13201 LD="${LD-ld} -m elf64ppc"
13203 s390*-*linux*)
13204 LD="${LD-ld} -m elf64_s390"
13206 sparc*-*linux*)
13207 LD="${LD-ld} -m elf64_sparc"
13209 esac
13211 esac
13213 rm -rf conftest*
13216 *-*-sco3.2v5*)
13217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13218 SAVE_CFLAGS="$CFLAGS"
13219 CFLAGS="$CFLAGS -belf"
13220 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13221 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13222 if test "${lt_cv_cc_needs_belf+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225 ac_ext=c
13226 ac_cpp='$CPP $CPPFLAGS'
13227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13231 cat >conftest.$ac_ext <<_ACEOF
13232 /* confdefs.h. */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13239 main ()
13243 return 0;
13245 _ACEOF
13246 rm -f conftest.$ac_objext conftest$ac_exeext
13247 if { (ac_try="$ac_link"
13248 case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_link") 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13261 { (case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_try") 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest$ac_exeext'
13271 { (case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274 esac
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_try") 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 lt_cv_cc_needs_belf=yes
13281 else
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 lt_cv_cc_needs_belf=no
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 ac_ext=c
13291 ac_cpp='$CPP $CPPFLAGS'
13292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13297 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13298 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13299 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13300 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13301 CFLAGS="$SAVE_CFLAGS"
13304 sparc*-*solaris*)
13305 # Find out which ABI we are using.
13306 echo 'int i;' > conftest.$ac_ext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; then
13312 case `/usr/bin/file conftest.o` in
13313 *64-bit*)
13314 case $lt_cv_prog_gnu_ld in
13315 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13316 *) LD="${LD-ld} -64" ;;
13317 esac
13319 esac
13321 rm -rf conftest*
13325 esac
13327 need_locks="$enable_libtool_lock"
13332 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13333 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13334 (test "X$CXX" != "Xg++"))) ; then
13335 ac_ext=cpp
13336 ac_cpp='$CXXCPP $CPPFLAGS'
13337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13340 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13341 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13342 if test -z "$CXXCPP"; then
13343 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13346 # Double quotes because CXXCPP needs to be expanded
13347 for CXXCPP in "$CXX -E" "/lib/cpp"
13349 ac_preproc_ok=false
13350 for ac_cxx_preproc_warn_flag in '' yes
13352 # Use a header file that comes with gcc, so configuring glibc
13353 # with a fresh cross-compiler works.
13354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13355 # <limits.h> exists even on freestanding compilers.
13356 # On the NeXT, cc -E runs the code through the compiler's parser,
13357 # not just through cpp. "Syntax error" is here to catch this case.
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 #ifdef __STDC__
13365 # include <limits.h>
13366 #else
13367 # include <assert.h>
13368 #endif
13369 Syntax error
13370 _ACEOF
13371 if { (ac_try="$ac_cpp conftest.$ac_ext"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } >/dev/null; then
13384 if test -s conftest.err; then
13385 ac_cpp_err=$ac_cxx_preproc_warn_flag
13386 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13387 else
13388 ac_cpp_err=
13390 else
13391 ac_cpp_err=yes
13393 if test -z "$ac_cpp_err"; then
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 # Broken: fails on valid input.
13400 continue
13403 rm -f conftest.err conftest.$ac_ext
13405 # OK, works on sane cases. Now check whether nonexistent headers
13406 # can be detected and how.
13407 cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h. */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 #include <ac_nonexistent.h>
13414 _ACEOF
13415 if { (ac_try="$ac_cpp conftest.$ac_ext"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } >/dev/null; then
13428 if test -s conftest.err; then
13429 ac_cpp_err=$ac_cxx_preproc_warn_flag
13430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13431 else
13432 ac_cpp_err=
13434 else
13435 ac_cpp_err=yes
13437 if test -z "$ac_cpp_err"; then
13438 # Broken: success on invalid input.
13439 continue
13440 else
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13444 # Passes both tests.
13445 ac_preproc_ok=:
13446 break
13449 rm -f conftest.err conftest.$ac_ext
13451 done
13452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13453 rm -f conftest.err conftest.$ac_ext
13454 if $ac_preproc_ok; then
13455 break
13458 done
13459 ac_cv_prog_CXXCPP=$CXXCPP
13462 CXXCPP=$ac_cv_prog_CXXCPP
13463 else
13464 ac_cv_prog_CXXCPP=$CXXCPP
13466 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13467 echo "${ECHO_T}$CXXCPP" >&6; }
13468 ac_preproc_ok=false
13469 for ac_cxx_preproc_warn_flag in '' yes
13471 # Use a header file that comes with gcc, so configuring glibc
13472 # with a fresh cross-compiler works.
13473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474 # <limits.h> exists even on freestanding compilers.
13475 # On the NeXT, cc -E runs the code through the compiler's parser,
13476 # not just through cpp. "Syntax error" is here to catch this case.
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 #ifdef __STDC__
13484 # include <limits.h>
13485 #else
13486 # include <assert.h>
13487 #endif
13488 Syntax error
13489 _ACEOF
13490 if { (ac_try="$ac_cpp conftest.$ac_ext"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } >/dev/null; then
13503 if test -s conftest.err; then
13504 ac_cpp_err=$ac_cxx_preproc_warn_flag
13505 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13506 else
13507 ac_cpp_err=
13509 else
13510 ac_cpp_err=yes
13512 if test -z "$ac_cpp_err"; then
13514 else
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 # Broken: fails on valid input.
13519 continue
13522 rm -f conftest.err conftest.$ac_ext
13524 # OK, works on sane cases. Now check whether nonexistent headers
13525 # can be detected and how.
13526 cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h. */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 #include <ac_nonexistent.h>
13533 _ACEOF
13534 if { (ac_try="$ac_cpp conftest.$ac_ext"
13535 case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13538 esac
13539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } >/dev/null; then
13547 if test -s conftest.err; then
13548 ac_cpp_err=$ac_cxx_preproc_warn_flag
13549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13550 else
13551 ac_cpp_err=
13553 else
13554 ac_cpp_err=yes
13556 if test -z "$ac_cpp_err"; then
13557 # Broken: success on invalid input.
13558 continue
13559 else
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 # Passes both tests.
13564 ac_preproc_ok=:
13565 break
13568 rm -f conftest.err conftest.$ac_ext
13570 done
13571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13572 rm -f conftest.err conftest.$ac_ext
13573 if $ac_preproc_ok; then
13575 else
13576 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13577 See \`config.log' for more details." >&5
13578 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13579 See \`config.log' for more details." >&2;}
13580 { (exit 1); exit 1; }; }
13583 ac_ext=cpp
13584 ac_cpp='$CXXCPP $CPPFLAGS'
13585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13592 ac_ext=f
13593 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13594 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13595 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13596 if test -n "$ac_tool_prefix"; then
13597 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
13599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13603 if test "${ac_cv_prog_F77+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 if test -n "$F77"; then
13607 ac_cv_prog_F77="$F77" # Let the user override the test.
13608 else
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13620 done
13621 done
13622 IFS=$as_save_IFS
13626 F77=$ac_cv_prog_F77
13627 if test -n "$F77"; then
13628 { echo "$as_me:$LINENO: result: $F77" >&5
13629 echo "${ECHO_T}$F77" >&6; }
13630 else
13631 { echo "$as_me:$LINENO: result: no" >&5
13632 echo "${ECHO_T}no" >&6; }
13636 test -n "$F77" && break
13637 done
13639 if test -z "$F77"; then
13640 ac_ct_F77=$F77
13641 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
13643 # Extract the first word of "$ac_prog", so it can be a program name with args.
13644 set dummy $ac_prog; ac_word=$2
13645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13647 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650 if test -n "$ac_ct_F77"; then
13651 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13652 else
13653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654 for as_dir in $PATH
13656 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do
13659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13660 ac_cv_prog_ac_ct_F77="$ac_prog"
13661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 break 2
13664 done
13665 done
13666 IFS=$as_save_IFS
13670 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13671 if test -n "$ac_ct_F77"; then
13672 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13673 echo "${ECHO_T}$ac_ct_F77" >&6; }
13674 else
13675 { echo "$as_me:$LINENO: result: no" >&5
13676 echo "${ECHO_T}no" >&6; }
13680 test -n "$ac_ct_F77" && break
13681 done
13683 if test "x$ac_ct_F77" = x; then
13684 F77=""
13685 else
13686 case $cross_compiling:$ac_tool_warned in
13687 yes:)
13688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13689 whose name does not start with the host triplet. If you think this
13690 configuration is useful to you, please write to autoconf@gnu.org." >&5
13691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13692 whose name does not start with the host triplet. If you think this
13693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13694 ac_tool_warned=yes ;;
13695 esac
13696 F77=$ac_ct_F77
13701 # Provide some information about the compiler.
13702 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13703 ac_compiler=`set X $ac_compile; echo $2`
13704 { (ac_try="$ac_compiler --version >&5"
13705 case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708 esac
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_compiler --version >&5") 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }
13714 { (ac_try="$ac_compiler -v >&5"
13715 case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_compiler -v >&5") 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }
13724 { (ac_try="$ac_compiler -V >&5"
13725 case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728 esac
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compiler -V >&5") 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }
13734 rm -f a.out
13736 # If we don't use `.F' as extension, the preprocessor is not run on the
13737 # input file. (Note that this only needs to work for GNU compilers.)
13738 ac_save_ext=$ac_ext
13739 ac_ext=F
13740 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13741 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13742 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745 cat >conftest.$ac_ext <<_ACEOF
13746 program main
13747 #ifndef __GNUC__
13748 choke me
13749 #endif
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (ac_try="$ac_compile"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_compile") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_compiler_gnu=yes
13788 else
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_compiler_gnu=no
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13799 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13800 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13801 ac_ext=$ac_save_ext
13802 ac_test_FFLAGS=${FFLAGS+set}
13803 ac_save_FFLAGS=$FFLAGS
13804 FFLAGS=
13805 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13806 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13807 if test "${ac_cv_prog_f77_g+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 FFLAGS=-g
13811 cat >conftest.$ac_ext <<_ACEOF
13812 program main
13815 _ACEOF
13816 rm -f conftest.$ac_objext
13817 if { (ac_try="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13821 esac
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13824 ac_status=$?
13825 grep -v '^ *+' conftest.er1 >conftest.err
13826 rm -f conftest.er1
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
13830 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834 esac
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try='test -s conftest.$ac_objext'
13841 { (case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_try") 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 ac_cv_prog_f77_g=yes
13851 else
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13855 ac_cv_prog_f77_g=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13862 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13863 if test "$ac_test_FFLAGS" = set; then
13864 FFLAGS=$ac_save_FFLAGS
13865 elif test $ac_cv_prog_f77_g = yes; then
13866 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13867 FFLAGS="-g -O2"
13868 else
13869 FFLAGS="-g"
13871 else
13872 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13873 FFLAGS="-O2"
13874 else
13875 FFLAGS=
13879 G77=`test $ac_compiler_gnu = yes && echo yes`
13880 ac_ext=c
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13890 # find the maximum length of command line arguments
13891 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13892 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13893 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13897 teststring="ABCD"
13899 case $build_os in
13900 msdosdjgpp*)
13901 # On DJGPP, this test can blow up pretty badly due to problems in libc
13902 # (any single argument exceeding 2000 bytes causes a buffer overrun
13903 # during glob expansion). Even if it were fixed, the result of this
13904 # check would be larger than it should be.
13905 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13908 gnu*)
13909 # Under GNU Hurd, this test is not required because there is
13910 # no limit to the length of command line arguments.
13911 # Libtool will interpret -1 as no limit whatsoever
13912 lt_cv_sys_max_cmd_len=-1;
13915 cygwin* | mingw*)
13916 # On Win9x/ME, this test blows up -- it succeeds, but takes
13917 # about 5 minutes as the teststring grows exponentially.
13918 # Worse, since 9x/ME are not pre-emptively multitasking,
13919 # you end up with a "frozen" computer, even though with patience
13920 # the test eventually succeeds (with a max line length of 256k).
13921 # Instead, let's just punt: use the minimum linelength reported by
13922 # all of the supported platforms: 8192 (on NT/2K/XP).
13923 lt_cv_sys_max_cmd_len=8192;
13926 amigaos*)
13927 # On AmigaOS with pdksh, this test takes hours, literally.
13928 # So we just punt and use a minimum line length of 8192.
13929 lt_cv_sys_max_cmd_len=8192;
13932 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13933 # This has been around since 386BSD, at least. Likely further.
13934 if test -x /sbin/sysctl; then
13935 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13936 elif test -x /usr/sbin/sysctl; then
13937 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13938 else
13939 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13941 # And add a safety zone
13942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13946 interix*)
13947 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13948 lt_cv_sys_max_cmd_len=196608
13951 osf*)
13952 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13953 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13954 # nice to cause kernel panics so lets avoid the loop below.
13955 # First set a reasonable default.
13956 lt_cv_sys_max_cmd_len=16384
13958 if test -x /sbin/sysconfig; then
13959 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13960 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13961 esac
13964 sco3.2v5*)
13965 lt_cv_sys_max_cmd_len=102400
13967 sysv5* | sco5v6* | sysv4.2uw2*)
13968 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13969 if test -n "$kargmax"; then
13970 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13971 else
13972 lt_cv_sys_max_cmd_len=32768
13976 # If test is not a shell built-in, we'll probably end up computing a
13977 # maximum length that is only half of the actual maximum length, but
13978 # we can't tell.
13979 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13980 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13981 = "XX$teststring") >/dev/null 2>&1 &&
13982 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13983 lt_cv_sys_max_cmd_len=$new_result &&
13984 test $i != 17 # 1/2 MB should be enough
13986 i=`expr $i + 1`
13987 teststring=$teststring$teststring
13988 done
13989 teststring=
13990 # Add a significant safety factor because C++ compilers can tack on massive
13991 # amounts of additional arguments before passing them to the linker.
13992 # It appears as though 1/2 is a usable value.
13993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13995 esac
13999 if test -n $lt_cv_sys_max_cmd_len ; then
14000 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14001 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14002 else
14003 { echo "$as_me:$LINENO: result: none" >&5
14004 echo "${ECHO_T}none" >&6; }
14010 # Check for command to grab the raw symbol name followed by C symbol from nm.
14011 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14012 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14013 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14017 # These are sane defaults that work on at least a few old systems.
14018 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14020 # Character class describing NM global symbol codes.
14021 symcode='[BCDEGRST]'
14023 # Regexp to match symbols that can be accessed directly from C.
14024 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14026 # Transform an extracted symbol line into a proper C declaration
14027 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14029 # Transform an extracted symbol line into symbol name and symbol address
14030 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'"
14032 # Define system-specific variables.
14033 case $host_os in
14034 aix*)
14035 symcode='[BCDT]'
14037 cygwin* | mingw* | pw32*)
14038 symcode='[ABCDGISTW]'
14040 hpux*) # Its linker distinguishes data from code symbols
14041 if test "$host_cpu" = ia64; then
14042 symcode='[ABCDEGRST]'
14044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14045 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'"
14047 linux*)
14048 if test "$host_cpu" = ia64; then
14049 symcode='[ABCDGIRSTW]'
14050 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14051 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'"
14054 irix* | nonstopux*)
14055 symcode='[BCDEGRST]'
14057 osf*)
14058 symcode='[BCDEGQRST]'
14060 solaris*)
14061 symcode='[BDRT]'
14063 sco3.2v5*)
14064 symcode='[DT]'
14066 sysv4.2uw2*)
14067 symcode='[DT]'
14069 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14070 symcode='[ABDT]'
14072 sysv4)
14073 symcode='[DFNSTU]'
14075 esac
14077 # Handle CRLF in mingw tool chain
14078 opt_cr=
14079 case $build_os in
14080 mingw*)
14081 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14083 esac
14085 # If we're using GNU nm, then use its standard symbol codes.
14086 case `$NM -V 2>&1` in
14087 *GNU* | *'with BFD'*)
14088 symcode='[ABCDGIRSTW]' ;;
14089 esac
14091 # Try without a prefix undercore, then with it.
14092 for ac_symprfx in "" "_"; do
14094 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14095 symxfrm="\\1 $ac_symprfx\\2 \\2"
14097 # Write the raw and C identifiers.
14098 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14100 # Check to see that the pipe works correctly.
14101 pipe_works=no
14103 rm -f conftest*
14104 cat > conftest.$ac_ext <<EOF
14105 #ifdef __cplusplus
14106 extern "C" {
14107 #endif
14108 char nm_test_var;
14109 void nm_test_func(){}
14110 #ifdef __cplusplus
14112 #endif
14113 int main(){nm_test_var='a';nm_test_func();return(0);}
14116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14117 (eval $ac_compile) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; then
14121 # Now try to grab the symbols.
14122 nlist=conftest.nm
14123 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14124 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } && test -s "$nlist"; then
14128 # Try sorting and uniquifying the output.
14129 if sort "$nlist" | uniq > "$nlist"T; then
14130 mv -f "$nlist"T "$nlist"
14131 else
14132 rm -f "$nlist"T
14135 # Make sure that we snagged all the symbols we need.
14136 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14137 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14138 cat <<EOF > conftest.$ac_ext
14139 #ifdef __cplusplus
14140 extern "C" {
14141 #endif
14144 # Now generate the symbol file.
14145 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14147 cat <<EOF >> conftest.$ac_ext
14148 #if defined (__STDC__) && __STDC__
14149 # define lt_ptr_t void *
14150 #else
14151 # define lt_ptr_t char *
14152 # define const
14153 #endif
14155 /* The mapping between symbol names and symbols. */
14156 const struct {
14157 const char *name;
14158 lt_ptr_t address;
14160 lt_preloaded_symbols[] =
14163 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14164 cat <<\EOF >> conftest.$ac_ext
14165 {0, (lt_ptr_t) 0}
14168 #ifdef __cplusplus
14170 #endif
14172 # Now try linking the two files.
14173 mv conftest.$ac_objext conftstm.$ac_objext
14174 lt_save_LIBS="$LIBS"
14175 lt_save_CFLAGS="$CFLAGS"
14176 LIBS="conftstm.$ac_objext"
14177 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14179 (eval $ac_link) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14183 pipe_works=yes
14185 LIBS="$lt_save_LIBS"
14186 CFLAGS="$lt_save_CFLAGS"
14187 else
14188 echo "cannot find nm_test_func in $nlist" >&5
14190 else
14191 echo "cannot find nm_test_var in $nlist" >&5
14193 else
14194 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14196 else
14197 echo "$progname: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14200 rm -f conftest* conftst*
14202 # Do not use the global_symbol_pipe unless it works.
14203 if test "$pipe_works" = yes; then
14204 break
14205 else
14206 lt_cv_sys_global_symbol_pipe=
14208 done
14212 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14213 lt_cv_sys_global_symbol_to_cdecl=
14215 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14216 { echo "$as_me:$LINENO: result: failed" >&5
14217 echo "${ECHO_T}failed" >&6; }
14218 else
14219 { echo "$as_me:$LINENO: result: ok" >&5
14220 echo "${ECHO_T}ok" >&6; }
14223 { echo "$as_me:$LINENO: checking for objdir" >&5
14224 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14225 if test "${lt_cv_objdir+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228 rm -f .libs 2>/dev/null
14229 mkdir .libs 2>/dev/null
14230 if test -d .libs; then
14231 lt_cv_objdir=.libs
14232 else
14233 # MS-DOS does not allow filenames that begin with a dot.
14234 lt_cv_objdir=_libs
14236 rmdir .libs 2>/dev/null
14238 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14239 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14240 objdir=$lt_cv_objdir
14246 case $host_os in
14247 aix3*)
14248 # AIX sometimes has problems with the GCC collect2 program. For some
14249 # reason, if we set the COLLECT_NAMES environment variable, the problems
14250 # vanish in a puff of smoke.
14251 if test "X${COLLECT_NAMES+set}" != Xset; then
14252 COLLECT_NAMES=
14253 export COLLECT_NAMES
14256 esac
14258 # Sed substitution that helps us do robust quoting. It backslashifies
14259 # metacharacters that are still active within double-quoted strings.
14260 Xsed='sed -e 1s/^X//'
14261 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14263 # Same as above, but do not quote variable references.
14264 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14266 # Sed substitution to delay expansion of an escaped shell variable in a
14267 # double_quote_subst'ed string.
14268 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14270 # Sed substitution to avoid accidental globbing in evaled expressions
14271 no_glob_subst='s/\*/\\\*/g'
14273 # Constants:
14274 rm="rm -f"
14276 # Global variables:
14277 default_ofile=mklib
14278 can_build_shared=yes
14280 # All known linkers require a `.a' archive for static linking (except MSVC,
14281 # which needs '.lib').
14282 libext=a
14283 ltmain="$ac_aux_dir/ltmain.sh"
14284 ofile="$default_ofile"
14285 with_gnu_ld="$lt_cv_prog_gnu_ld"
14287 if test -n "$ac_tool_prefix"; then
14288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14289 set dummy ${ac_tool_prefix}ar; ac_word=$2
14290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14292 if test "${ac_cv_prog_AR+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295 if test -n "$AR"; then
14296 ac_cv_prog_AR="$AR" # Let the user override the test.
14297 else
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14301 IFS=$as_save_IFS
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14305 ac_cv_prog_AR="${ac_tool_prefix}ar"
14306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 break 2
14309 done
14310 done
14311 IFS=$as_save_IFS
14315 AR=$ac_cv_prog_AR
14316 if test -n "$AR"; then
14317 { echo "$as_me:$LINENO: result: $AR" >&5
14318 echo "${ECHO_T}$AR" >&6; }
14319 else
14320 { echo "$as_me:$LINENO: result: no" >&5
14321 echo "${ECHO_T}no" >&6; }
14326 if test -z "$ac_cv_prog_AR"; then
14327 ac_ct_AR=$AR
14328 # Extract the first word of "ar", so it can be a program name with args.
14329 set dummy ar; ac_word=$2
14330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335 if test -n "$ac_ct_AR"; then
14336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14337 else
14338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14339 for as_dir in $PATH
14341 IFS=$as_save_IFS
14342 test -z "$as_dir" && as_dir=.
14343 for ac_exec_ext in '' $ac_executable_extensions; do
14344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14345 ac_cv_prog_ac_ct_AR="ar"
14346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14347 break 2
14349 done
14350 done
14351 IFS=$as_save_IFS
14355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14356 if test -n "$ac_ct_AR"; then
14357 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14358 echo "${ECHO_T}$ac_ct_AR" >&6; }
14359 else
14360 { echo "$as_me:$LINENO: result: no" >&5
14361 echo "${ECHO_T}no" >&6; }
14364 if test "x$ac_ct_AR" = x; then
14365 AR="false"
14366 else
14367 case $cross_compiling:$ac_tool_warned in
14368 yes:)
14369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14370 whose name does not start with the host triplet. If you think this
14371 configuration is useful to you, please write to autoconf@gnu.org." >&5
14372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14373 whose name does not start with the host triplet. If you think this
14374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14375 ac_tool_warned=yes ;;
14376 esac
14377 AR=$ac_ct_AR
14379 else
14380 AR="$ac_cv_prog_AR"
14383 if test -n "$ac_tool_prefix"; then
14384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14388 if test "${ac_cv_prog_RANLIB+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391 if test -n "$RANLIB"; then
14392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14405 done
14406 done
14407 IFS=$as_save_IFS
14411 RANLIB=$ac_cv_prog_RANLIB
14412 if test -n "$RANLIB"; then
14413 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14414 echo "${ECHO_T}$RANLIB" >&6; }
14415 else
14416 { echo "$as_me:$LINENO: result: no" >&5
14417 echo "${ECHO_T}no" >&6; }
14422 if test -z "$ac_cv_prog_RANLIB"; then
14423 ac_ct_RANLIB=$RANLIB
14424 # Extract the first word of "ranlib", so it can be a program name with args.
14425 set dummy ranlib; ac_word=$2
14426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431 if test -n "$ac_ct_RANLIB"; then
14432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14433 else
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_ac_ct_RANLIB="ranlib"
14442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14445 done
14446 done
14447 IFS=$as_save_IFS
14451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14452 if test -n "$ac_ct_RANLIB"; then
14453 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14454 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14455 else
14456 { echo "$as_me:$LINENO: result: no" >&5
14457 echo "${ECHO_T}no" >&6; }
14460 if test "x$ac_ct_RANLIB" = x; then
14461 RANLIB=":"
14462 else
14463 case $cross_compiling:$ac_tool_warned in
14464 yes:)
14465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14466 whose name does not start with the host triplet. If you think this
14467 configuration is useful to you, please write to autoconf@gnu.org." >&5
14468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14469 whose name does not start with the host triplet. If you think this
14470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14471 ac_tool_warned=yes ;;
14472 esac
14473 RANLIB=$ac_ct_RANLIB
14475 else
14476 RANLIB="$ac_cv_prog_RANLIB"
14479 if test -n "$ac_tool_prefix"; then
14480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14481 set dummy ${ac_tool_prefix}strip; ac_word=$2
14482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14484 if test "${ac_cv_prog_STRIP+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 else
14487 if test -n "$STRIP"; then
14488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14489 else
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14493 IFS=$as_save_IFS
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14499 break 2
14501 done
14502 done
14503 IFS=$as_save_IFS
14507 STRIP=$ac_cv_prog_STRIP
14508 if test -n "$STRIP"; then
14509 { echo "$as_me:$LINENO: result: $STRIP" >&5
14510 echo "${ECHO_T}$STRIP" >&6; }
14511 else
14512 { echo "$as_me:$LINENO: result: no" >&5
14513 echo "${ECHO_T}no" >&6; }
14518 if test -z "$ac_cv_prog_STRIP"; then
14519 ac_ct_STRIP=$STRIP
14520 # Extract the first word of "strip", so it can be a program name with args.
14521 set dummy strip; ac_word=$2
14522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527 if test -n "$ac_ct_STRIP"; then
14528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14529 else
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531 for as_dir in $PATH
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
14536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14537 ac_cv_prog_ac_ct_STRIP="strip"
14538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14539 break 2
14541 done
14542 done
14543 IFS=$as_save_IFS
14547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14548 if test -n "$ac_ct_STRIP"; then
14549 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14550 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14551 else
14552 { echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6; }
14556 if test "x$ac_ct_STRIP" = x; then
14557 STRIP=":"
14558 else
14559 case $cross_compiling:$ac_tool_warned in
14560 yes:)
14561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14562 whose name does not start with the host triplet. If you think this
14563 configuration is useful to you, please write to autoconf@gnu.org." >&5
14564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14565 whose name does not start with the host triplet. If you think this
14566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14567 ac_tool_warned=yes ;;
14568 esac
14569 STRIP=$ac_ct_STRIP
14571 else
14572 STRIP="$ac_cv_prog_STRIP"
14576 old_CC="$CC"
14577 old_CFLAGS="$CFLAGS"
14579 # Set sane defaults for various variables
14580 test -z "$AR" && AR=ar
14581 test -z "$AR_FLAGS" && AR_FLAGS=cru
14582 test -z "$AS" && AS=as
14583 test -z "$CC" && CC=cc
14584 test -z "$LTCC" && LTCC=$CC
14585 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14586 test -z "$DLLTOOL" && DLLTOOL=dlltool
14587 test -z "$LD" && LD=ld
14588 test -z "$LN_S" && LN_S="ln -s"
14589 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14590 test -z "$NM" && NM=nm
14591 test -z "$SED" && SED=sed
14592 test -z "$OBJDUMP" && OBJDUMP=objdump
14593 test -z "$RANLIB" && RANLIB=:
14594 test -z "$STRIP" && STRIP=:
14595 test -z "$ac_objext" && ac_objext=o
14597 # Determine commands to create old-style static archives.
14598 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14599 old_postinstall_cmds='chmod 644 $oldlib'
14600 old_postuninstall_cmds=
14602 if test -n "$RANLIB"; then
14603 case $host_os in
14604 openbsd*)
14605 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14608 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14610 esac
14611 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14614 for cc_temp in $compiler""; do
14615 case $cc_temp in
14616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14618 \-*) ;;
14619 *) break;;
14620 esac
14621 done
14622 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14625 # Only perform the check for file, if the check method requires it
14626 case $deplibs_check_method in
14627 file_magic*)
14628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14629 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14630 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14631 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634 case $MAGIC_CMD in
14635 [\\/*] | ?:[\\/]*)
14636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14639 lt_save_MAGIC_CMD="$MAGIC_CMD"
14640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14642 for ac_dir in $ac_dummy; do
14643 IFS="$lt_save_ifs"
14644 test -z "$ac_dir" && ac_dir=.
14645 if test -f $ac_dir/${ac_tool_prefix}file; then
14646 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14647 if test -n "$file_magic_test_file"; then
14648 case $deplibs_check_method in
14649 "file_magic "*)
14650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14653 $EGREP "$file_magic_regex" > /dev/null; then
14655 else
14656 cat <<EOF 1>&2
14658 *** Warning: the command libtool uses to detect shared libraries,
14659 *** $file_magic_cmd, produces output that libtool cannot recognize.
14660 *** The result is that libtool may fail to recognize shared libraries
14661 *** as such. This will affect the creation of libtool libraries that
14662 *** depend on shared libraries, but programs linked with such libtool
14663 *** libraries will work regardless of this problem. Nevertheless, you
14664 *** may want to report the problem to your system manager and/or to
14665 *** bug-libtool@gnu.org
14668 fi ;;
14669 esac
14671 break
14673 done
14674 IFS="$lt_save_ifs"
14675 MAGIC_CMD="$lt_save_MAGIC_CMD"
14677 esac
14680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14681 if test -n "$MAGIC_CMD"; then
14682 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14683 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14684 else
14685 { echo "$as_me:$LINENO: result: no" >&5
14686 echo "${ECHO_T}no" >&6; }
14689 if test -z "$lt_cv_path_MAGIC_CMD"; then
14690 if test -n "$ac_tool_prefix"; then
14691 { echo "$as_me:$LINENO: checking for file" >&5
14692 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14693 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 else
14696 case $MAGIC_CMD in
14697 [\\/*] | ?:[\\/]*)
14698 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14701 lt_save_MAGIC_CMD="$MAGIC_CMD"
14702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14704 for ac_dir in $ac_dummy; do
14705 IFS="$lt_save_ifs"
14706 test -z "$ac_dir" && ac_dir=.
14707 if test -f $ac_dir/file; then
14708 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14709 if test -n "$file_magic_test_file"; then
14710 case $deplibs_check_method in
14711 "file_magic "*)
14712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14715 $EGREP "$file_magic_regex" > /dev/null; then
14717 else
14718 cat <<EOF 1>&2
14720 *** Warning: the command libtool uses to detect shared libraries,
14721 *** $file_magic_cmd, produces output that libtool cannot recognize.
14722 *** The result is that libtool may fail to recognize shared libraries
14723 *** as such. This will affect the creation of libtool libraries that
14724 *** depend on shared libraries, but programs linked with such libtool
14725 *** libraries will work regardless of this problem. Nevertheless, you
14726 *** may want to report the problem to your system manager and/or to
14727 *** bug-libtool@gnu.org
14730 fi ;;
14731 esac
14733 break
14735 done
14736 IFS="$lt_save_ifs"
14737 MAGIC_CMD="$lt_save_MAGIC_CMD"
14739 esac
14742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14743 if test -n "$MAGIC_CMD"; then
14744 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14745 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14746 else
14747 { echo "$as_me:$LINENO: result: no" >&5
14748 echo "${ECHO_T}no" >&6; }
14751 else
14752 MAGIC_CMD=:
14758 esac
14760 enable_dlopen=yes
14761 enable_win32_dll=no
14763 # Check whether --enable-libtool-lock was given.
14764 if test "${enable_libtool_lock+set}" = set; then
14765 enableval=$enable_libtool_lock;
14768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14771 # Check whether --with-pic was given.
14772 if test "${with_pic+set}" = set; then
14773 withval=$with_pic; pic_mode="$withval"
14774 else
14775 pic_mode=default
14778 test -z "$pic_mode" && pic_mode=default
14780 # Use C for the default configuration in the libtool script
14781 tagname=
14782 lt_save_CC="$CC"
14783 ac_ext=c
14784 ac_cpp='$CPP $CPPFLAGS'
14785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14790 # Source file extension for C test sources.
14791 ac_ext=c
14793 # Object file extension for compiled C test sources.
14794 objext=o
14795 objext=$objext
14797 # Code to be used in simple compile tests
14798 lt_simple_compile_test_code="int some_variable = 0;\n"
14800 # Code to be used in simple link tests
14801 lt_simple_link_test_code='int main(){return(0);}\n'
14804 # If no C compiler was specified, use CC.
14805 LTCC=${LTCC-"$CC"}
14807 # If no C compiler flags were specified, use CFLAGS.
14808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14810 # Allow CC to be a program name with arguments.
14811 compiler=$CC
14814 # save warnings/boilerplate of simple test code
14815 ac_outfile=conftest.$ac_objext
14816 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14818 _lt_compiler_boilerplate=`cat conftest.err`
14819 $rm conftest*
14821 ac_outfile=conftest.$ac_objext
14822 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14824 _lt_linker_boilerplate=`cat conftest.err`
14825 $rm conftest*
14829 lt_prog_compiler_no_builtin_flag=
14831 if test "$GCC" = yes; then
14832 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14835 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 else
14840 lt_cv_prog_compiler_rtti_exceptions=no
14841 ac_outfile=conftest.$ac_objext
14842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14843 lt_compiler_flag="-fno-rtti -fno-exceptions"
14844 # Insert the option either (1) after the last *FLAGS variable, or
14845 # (2) before a word containing "conftest.", or (3) at the end.
14846 # Note that $ac_compile itself does not contain backslashes and begins
14847 # with a dollar sign (not a hyphen), so the echo should work correctly.
14848 # The option is referenced via a variable to avoid confusing sed.
14849 lt_compile=`echo "$ac_compile" | $SED \
14850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852 -e 's:$: $lt_compiler_flag:'`
14853 (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
14854 (eval "$lt_compile" 2>conftest.err)
14855 ac_status=$?
14856 cat conftest.err >&5
14857 echo "$as_me:14857: \$? = $ac_status" >&5
14858 if (exit $ac_status) && test -s "$ac_outfile"; then
14859 # The compiler can only warn and ignore the option if not recognized
14860 # So say no if there are warnings other than the usual output.
14861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14864 lt_cv_prog_compiler_rtti_exceptions=yes
14867 $rm conftest*
14870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14871 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14873 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14874 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14875 else
14881 lt_prog_compiler_wl=
14882 lt_prog_compiler_pic=
14883 lt_prog_compiler_static=
14885 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14888 if test "$GCC" = yes; then
14889 lt_prog_compiler_wl='-Wl,'
14890 lt_prog_compiler_static='-static'
14892 case $host_os in
14893 aix*)
14894 # All AIX code is PIC.
14895 if test "$host_cpu" = ia64; then
14896 # AIX 5 now supports IA64 processor
14897 lt_prog_compiler_static='-Bstatic'
14901 amigaos*)
14902 # FIXME: we need at least 68020 code to build shared libraries, but
14903 # adding the `-m68020' flag to GCC prevents building anything better,
14904 # like `-m68040'.
14905 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14908 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14909 # PIC is the default for these OSes.
14912 mingw* | pw32* | os2*)
14913 # This hack is so that the source file can tell whether it is being
14914 # built for inclusion in a dll (and should export symbols for example).
14915 lt_prog_compiler_pic='-DDLL_EXPORT'
14918 darwin* | rhapsody*)
14919 # PIC is the default on this platform
14920 # Common symbols not allowed in MH_DYLIB files
14921 lt_prog_compiler_pic='-fno-common'
14924 interix3*)
14925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14926 # Instead, we relocate shared libraries at runtime.
14929 msdosdjgpp*)
14930 # Just because we use GCC doesn't mean we suddenly get shared libraries
14931 # on systems that don't support them.
14932 lt_prog_compiler_can_build_shared=no
14933 enable_shared=no
14936 sysv4*MP*)
14937 if test -d /usr/nec; then
14938 lt_prog_compiler_pic=-Kconform_pic
14942 hpux*)
14943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14944 # not for PA HP-UX.
14945 case $host_cpu in
14946 hppa*64*|ia64*)
14947 # +Z the default
14950 lt_prog_compiler_pic='-fPIC'
14952 esac
14956 lt_prog_compiler_pic='-fPIC'
14958 esac
14959 else
14960 # PORTME Check for flag to pass linker flags through the system compiler.
14961 case $host_os in
14962 aix*)
14963 lt_prog_compiler_wl='-Wl,'
14964 if test "$host_cpu" = ia64; then
14965 # AIX 5 now supports IA64 processor
14966 lt_prog_compiler_static='-Bstatic'
14967 else
14968 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14971 darwin*)
14972 # PIC is the default on this platform
14973 # Common symbols not allowed in MH_DYLIB files
14974 case $cc_basename in
14975 xlc*)
14976 lt_prog_compiler_pic='-qnocommon'
14977 lt_prog_compiler_wl='-Wl,'
14979 esac
14982 mingw* | pw32* | os2*)
14983 # This hack is so that the source file can tell whether it is being
14984 # built for inclusion in a dll (and should export symbols for example).
14985 lt_prog_compiler_pic='-DDLL_EXPORT'
14988 hpux9* | hpux10* | hpux11*)
14989 lt_prog_compiler_wl='-Wl,'
14990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14991 # not for PA HP-UX.
14992 case $host_cpu in
14993 hppa*64*|ia64*)
14994 # +Z the default
14997 lt_prog_compiler_pic='+Z'
14999 esac
15000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15001 lt_prog_compiler_static='${wl}-a ${wl}archive'
15004 irix5* | irix6* | nonstopux*)
15005 lt_prog_compiler_wl='-Wl,'
15006 # PIC (with -KPIC) is the default.
15007 lt_prog_compiler_static='-non_shared'
15010 newsos6)
15011 lt_prog_compiler_pic='-KPIC'
15012 lt_prog_compiler_static='-Bstatic'
15015 linux*)
15016 case $cc_basename in
15017 icc* | ecc*)
15018 lt_prog_compiler_wl='-Wl,'
15019 lt_prog_compiler_pic='-KPIC'
15020 lt_prog_compiler_static='-static'
15022 pgcc* | pgf77* | pgf90* | pgf95*)
15023 # Portland Group compilers (*not* the Pentium gcc compiler,
15024 # which looks to be a dead project)
15025 lt_prog_compiler_wl='-Wl,'
15026 lt_prog_compiler_pic='-fpic'
15027 lt_prog_compiler_static='-Bstatic'
15029 ccc*)
15030 lt_prog_compiler_wl='-Wl,'
15031 # All Alpha code is PIC.
15032 lt_prog_compiler_static='-non_shared'
15034 esac
15037 osf3* | osf4* | osf5*)
15038 lt_prog_compiler_wl='-Wl,'
15039 # All OSF/1 code is PIC.
15040 lt_prog_compiler_static='-non_shared'
15043 solaris*)
15044 lt_prog_compiler_pic='-KPIC'
15045 lt_prog_compiler_static='-Bstatic'
15046 case $cc_basename in
15047 f77* | f90* | f95*)
15048 lt_prog_compiler_wl='-Qoption ld ';;
15050 lt_prog_compiler_wl='-Wl,';;
15051 esac
15054 sunos4*)
15055 lt_prog_compiler_wl='-Qoption ld '
15056 lt_prog_compiler_pic='-PIC'
15057 lt_prog_compiler_static='-Bstatic'
15060 sysv4 | sysv4.2uw2* | sysv4.3*)
15061 lt_prog_compiler_wl='-Wl,'
15062 lt_prog_compiler_pic='-KPIC'
15063 lt_prog_compiler_static='-Bstatic'
15066 sysv4*MP*)
15067 if test -d /usr/nec ;then
15068 lt_prog_compiler_pic='-Kconform_pic'
15069 lt_prog_compiler_static='-Bstatic'
15073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15074 lt_prog_compiler_wl='-Wl,'
15075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
15079 unicos*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_can_build_shared=no
15084 uts4*)
15085 lt_prog_compiler_pic='-pic'
15086 lt_prog_compiler_static='-Bstatic'
15090 lt_prog_compiler_can_build_shared=no
15092 esac
15095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15096 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15099 # Check to make sure the PIC flag actually works.
15101 if test -n "$lt_prog_compiler_pic"; then
15103 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15105 if test "${lt_prog_compiler_pic_works+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108 lt_prog_compiler_pic_works=no
15109 ac_outfile=conftest.$ac_objext
15110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15112 # Insert the option either (1) after the last *FLAGS variable, or
15113 # (2) before a word containing "conftest.", or (3) at the end.
15114 # Note that $ac_compile itself does not contain backslashes and begins
15115 # with a dollar sign (not a hyphen), so the echo should work correctly.
15116 # The option is referenced via a variable to avoid confusing sed.
15117 lt_compile=`echo "$ac_compile" | $SED \
15118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120 -e 's:$: $lt_compiler_flag:'`
15121 (eval echo "\"\$as_me:15121: $lt_compile\"" >&5)
15122 (eval "$lt_compile" 2>conftest.err)
15123 ac_status=$?
15124 cat conftest.err >&5
15125 echo "$as_me:15125: \$? = $ac_status" >&5
15126 if (exit $ac_status) && test -s "$ac_outfile"; then
15127 # The compiler can only warn and ignore the option if not recognized
15128 # So say no if there are warnings other than the usual output.
15129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15132 lt_prog_compiler_pic_works=yes
15135 $rm conftest*
15138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15139 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15141 if test x"$lt_prog_compiler_pic_works" = xyes; then
15142 case $lt_prog_compiler_pic in
15143 "" | " "*) ;;
15144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15145 esac
15146 else
15147 lt_prog_compiler_pic=
15148 lt_prog_compiler_can_build_shared=no
15152 case $host_os in
15153 # For platforms which do not support PIC, -DPIC is meaningless:
15154 *djgpp*)
15155 lt_prog_compiler_pic=
15158 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15160 esac
15163 # Check to make sure the static flag actually works.
15165 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15166 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15168 if test "${lt_prog_compiler_static_works+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171 lt_prog_compiler_static_works=no
15172 save_LDFLAGS="$LDFLAGS"
15173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15174 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15176 # The linker can only warn and ignore the option if not recognized
15177 # So say no if there are warnings
15178 if test -s conftest.err; then
15179 # Append any errors to the config.log.
15180 cat conftest.err 1>&5
15181 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15183 if diff conftest.exp conftest.er2 >/dev/null; then
15184 lt_prog_compiler_static_works=yes
15186 else
15187 lt_prog_compiler_static_works=yes
15190 $rm conftest*
15191 LDFLAGS="$save_LDFLAGS"
15194 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15195 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15197 if test x"$lt_prog_compiler_static_works" = xyes; then
15199 else
15200 lt_prog_compiler_static=
15204 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15206 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 else
15209 lt_cv_prog_compiler_c_o=no
15210 $rm -r conftest 2>/dev/null
15211 mkdir conftest
15212 cd conftest
15213 mkdir out
15214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15216 lt_compiler_flag="-o out/conftest2.$ac_objext"
15217 # Insert the option either (1) after the last *FLAGS variable, or
15218 # (2) before a word containing "conftest.", or (3) at the end.
15219 # Note that $ac_compile itself does not contain backslashes and begins
15220 # with a dollar sign (not a hyphen), so the echo should work correctly.
15221 lt_compile=`echo "$ac_compile" | $SED \
15222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15224 -e 's:$: $lt_compiler_flag:'`
15225 (eval echo "\"\$as_me:15225: $lt_compile\"" >&5)
15226 (eval "$lt_compile" 2>out/conftest.err)
15227 ac_status=$?
15228 cat out/conftest.err >&5
15229 echo "$as_me:15229: \$? = $ac_status" >&5
15230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15231 then
15232 # The compiler can only warn and ignore the option if not recognized
15233 # So say no if there are warnings
15234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15237 lt_cv_prog_compiler_c_o=yes
15240 chmod u+w . 2>&5
15241 $rm conftest*
15242 # SGI C++ compiler will create directory out/ii_files/ for
15243 # template instantiation
15244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15245 $rm out/* && rmdir out
15246 cd ..
15247 rmdir conftest
15248 $rm conftest*
15251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15255 hard_links="nottested"
15256 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15257 # do not overwrite the value of need_locks provided by the user
15258 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15260 hard_links=yes
15261 $rm conftest*
15262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15263 touch conftest.a
15264 ln conftest.a conftest.b 2>&5 || hard_links=no
15265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15266 { echo "$as_me:$LINENO: result: $hard_links" >&5
15267 echo "${ECHO_T}$hard_links" >&6; }
15268 if test "$hard_links" = no; then
15269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15271 need_locks=warn
15273 else
15274 need_locks=no
15277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15280 runpath_var=
15281 allow_undefined_flag=
15282 enable_shared_with_static_runtimes=no
15283 archive_cmds=
15284 archive_expsym_cmds=
15285 old_archive_From_new_cmds=
15286 old_archive_from_expsyms_cmds=
15287 export_dynamic_flag_spec=
15288 whole_archive_flag_spec=
15289 thread_safe_flag_spec=
15290 hardcode_libdir_flag_spec=
15291 hardcode_libdir_flag_spec_ld=
15292 hardcode_libdir_separator=
15293 hardcode_direct=no
15294 hardcode_minus_L=no
15295 hardcode_shlibpath_var=unsupported
15296 link_all_deplibs=unknown
15297 hardcode_automatic=no
15298 module_cmds=
15299 module_expsym_cmds=
15300 always_export_symbols=no
15301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15302 # include_expsyms should be a list of space-separated symbols to be *always*
15303 # included in the symbol list
15304 include_expsyms=
15305 # exclude_expsyms can be an extended regexp of symbols to exclude
15306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15308 # as well as any symbol that contains `d'.
15309 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15311 # platforms (ab)use it in PIC code, but their linkers get confused if
15312 # the symbol is explicitly referenced. Since portable code cannot
15313 # rely on this symbol name, it's probably fine to never include it in
15314 # preloaded symbol tables.
15315 extract_expsyms_cmds=
15316 # Just being paranoid about ensuring that cc_basename is set.
15317 for cc_temp in $compiler""; do
15318 case $cc_temp in
15319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15321 \-*) ;;
15322 *) break;;
15323 esac
15324 done
15325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15327 case $host_os in
15328 cygwin* | mingw* | pw32*)
15329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15330 # When not using gcc, we currently assume that we are using
15331 # Microsoft Visual C++.
15332 if test "$GCC" != yes; then
15333 with_gnu_ld=no
15336 interix*)
15337 # we just hope/assume this is gcc and not c89 (= MSVC++)
15338 with_gnu_ld=yes
15340 openbsd*)
15341 with_gnu_ld=no
15343 esac
15345 ld_shlibs=yes
15346 if test "$with_gnu_ld" = yes; then
15347 # If archive_cmds runs LD, not CC, wlarc should be empty
15348 wlarc='${wl}'
15350 # Set some defaults for GNU ld with shared library support. These
15351 # are reset later if shared libraries are not supported. Putting them
15352 # here allows them to be overridden if necessary.
15353 runpath_var=LD_RUN_PATH
15354 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15355 export_dynamic_flag_spec='${wl}--export-dynamic'
15356 # ancient GNU ld didn't support --whole-archive et. al.
15357 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15358 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15359 else
15360 whole_archive_flag_spec=
15362 supports_anon_versioning=no
15363 case `$LD -v 2>/dev/null` in
15364 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15365 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15366 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15367 *\ 2.11.*) ;; # other 2.11 versions
15368 *) supports_anon_versioning=yes ;;
15369 esac
15371 # See if GNU ld supports shared libraries.
15372 case $host_os in
15373 aix3* | aix4* | aix5*)
15374 # On AIX/PPC, the GNU linker is very broken
15375 if test "$host_cpu" != ia64; then
15376 ld_shlibs=no
15377 cat <<EOF 1>&2
15379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15380 *** to be unable to reliably create shared libraries on AIX.
15381 *** Therefore, libtool is disabling shared libraries support. If you
15382 *** really care for shared libraries, you may want to modify your PATH
15383 *** so that a non-GNU linker is found, and then restart.
15389 amigaos*)
15390 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)'
15391 hardcode_libdir_flag_spec='-L$libdir'
15392 hardcode_minus_L=yes
15394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15395 # that the semantics of dynamic libraries on AmigaOS, at least up
15396 # to version 4, is to share data among multiple programs linked
15397 # with the same dynamic library. Since this doesn't match the
15398 # behavior of shared libraries on other platforms, we can't use
15399 # them.
15400 ld_shlibs=no
15403 beos*)
15404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15405 allow_undefined_flag=unsupported
15406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15407 # support --undefined. This deserves some investigation. FIXME
15408 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15409 else
15410 ld_shlibs=no
15414 cygwin* | mingw* | pw32*)
15415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15416 # as there is no search path for DLLs.
15417 hardcode_libdir_flag_spec='-L$libdir'
15418 allow_undefined_flag=unsupported
15419 always_export_symbols=no
15420 enable_shared_with_static_runtimes=yes
15421 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15425 # If the export-symbols file already is a .def file (1st line
15426 # is EXPORTS), use it as is; otherwise, prepend...
15427 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15428 cp $export_symbols $output_objdir/$soname.def;
15429 else
15430 echo EXPORTS > $output_objdir/$soname.def;
15431 cat $export_symbols >> $output_objdir/$soname.def;
15433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15434 else
15435 ld_shlibs=no
15439 interix3*)
15440 hardcode_direct=no
15441 hardcode_shlibpath_var=no
15442 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15443 export_dynamic_flag_spec='${wl}-E'
15444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15445 # Instead, shared libraries are loaded at an image base (0x10000000 by
15446 # default) and relocated if they conflict, which is a slow very memory
15447 # consuming and fragmenting process. To avoid this, we pick a random,
15448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15450 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15451 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'
15454 linux*)
15455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15456 tmp_addflag=
15457 case $cc_basename,$host_cpu in
15458 pgcc*) # Portland Group C compiler
15459 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'
15460 tmp_addflag=' $pic_flag'
15462 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15463 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'
15464 tmp_addflag=' $pic_flag -Mnomain' ;;
15465 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15466 tmp_addflag=' -i_dynamic' ;;
15467 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15468 tmp_addflag=' -i_dynamic -nofor_main' ;;
15469 ifc* | ifort*) # Intel Fortran compiler
15470 tmp_addflag=' -nofor_main' ;;
15471 esac
15472 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15474 if test $supports_anon_versioning = yes; then
15475 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15477 $echo "local: *; };" >> $output_objdir/$libname.ver~
15478 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15480 else
15481 ld_shlibs=no
15485 netbsd*)
15486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15488 wlarc=
15489 else
15490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15495 solaris*)
15496 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15497 ld_shlibs=no
15498 cat <<EOF 1>&2
15500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15501 *** create shared libraries on Solaris systems. Therefore, libtool
15502 *** is disabling shared libraries support. We urge you to upgrade GNU
15503 *** binutils to release 2.9.1 or newer. Another option is to modify
15504 *** your PATH or compiler configuration so that the native linker is
15505 *** used, and then restart.
15508 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15511 else
15512 ld_shlibs=no
15516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15517 case `$LD -v 2>&1` in
15518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15519 ld_shlibs=no
15520 cat <<_LT_EOF 1>&2
15522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15523 *** reliably create shared libraries on SCO systems. Therefore, libtool
15524 *** is disabling shared libraries support. We urge you to upgrade GNU
15525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15526 *** your PATH or compiler configuration so that the native linker is
15527 *** used, and then restart.
15529 _LT_EOF
15532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15533 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15536 else
15537 ld_shlibs=no
15540 esac
15543 sunos4*)
15544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15545 wlarc=
15546 hardcode_direct=yes
15547 hardcode_shlibpath_var=no
15551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15554 else
15555 ld_shlibs=no
15558 esac
15560 if test "$ld_shlibs" = no; then
15561 runpath_var=
15562 hardcode_libdir_flag_spec=
15563 export_dynamic_flag_spec=
15564 whole_archive_flag_spec=
15566 else
15567 # PORTME fill in a description of your system's linker (not GNU ld)
15568 case $host_os in
15569 aix3*)
15570 allow_undefined_flag=unsupported
15571 always_export_symbols=yes
15572 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'
15573 # Note: this linker hardcodes the directories in LIBPATH if there
15574 # are no directories specified by -L.
15575 hardcode_minus_L=yes
15576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15577 # Neither direct hardcoding nor static linking is supported with a
15578 # broken collect2.
15579 hardcode_direct=unsupported
15583 aix4* | aix5*)
15584 if test "$host_cpu" = ia64; then
15585 # On IA64, the linker does run time linking by default, so we don't
15586 # have to do anything special.
15587 aix_use_runtimelinking=no
15588 exp_sym_flag='-Bexport'
15589 no_entry_flag=""
15590 else
15591 # If we're using GNU nm, then we don't want the "-C" option.
15592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15594 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'
15595 else
15596 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'
15598 aix_use_runtimelinking=no
15600 # Test if we are trying to use run time linking or normal
15601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15602 # need to do runtime linking.
15603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15604 for ld_flag in $LDFLAGS; do
15605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15606 aix_use_runtimelinking=yes
15607 break
15609 done
15611 esac
15613 exp_sym_flag='-bexport'
15614 no_entry_flag='-bnoentry'
15617 # When large executables or shared objects are built, AIX ld can
15618 # have problems creating the table of contents. If linking a library
15619 # or program results in "error TOC overflow" add -mminimal-toc to
15620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15623 archive_cmds=''
15624 hardcode_direct=yes
15625 hardcode_libdir_separator=':'
15626 link_all_deplibs=yes
15628 if test "$GCC" = yes; then
15629 case $host_os in aix4.[012]|aix4.[012].*)
15630 # We only want to do this on AIX 4.2 and lower, the check
15631 # below for broken collect2 doesn't work under 4.3+
15632 collect2name=`${CC} -print-prog-name=collect2`
15633 if test -f "$collect2name" && \
15634 strings "$collect2name" | grep resolve_lib_name >/dev/null
15635 then
15636 # We have reworked collect2
15637 hardcode_direct=yes
15638 else
15639 # We have old collect2
15640 hardcode_direct=unsupported
15641 # It fails to find uninstalled libraries when the uninstalled
15642 # path is not listed in the libpath. Setting hardcode_minus_L
15643 # to unsupported forces relinking
15644 hardcode_minus_L=yes
15645 hardcode_libdir_flag_spec='-L$libdir'
15646 hardcode_libdir_separator=
15649 esac
15650 shared_flag='-shared'
15651 if test "$aix_use_runtimelinking" = yes; then
15652 shared_flag="$shared_flag "'${wl}-G'
15654 else
15655 # not using gcc
15656 if test "$host_cpu" = ia64; then
15657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15658 # chokes on -Wl,-G. The following line is correct:
15659 shared_flag='-G'
15660 else
15661 if test "$aix_use_runtimelinking" = yes; then
15662 shared_flag='${wl}-G'
15663 else
15664 shared_flag='${wl}-bM:SRE'
15669 # It seems that -bexpall does not export symbols beginning with
15670 # underscore (_), so it is better to generate a list of symbols to export.
15671 always_export_symbols=yes
15672 if test "$aix_use_runtimelinking" = yes; then
15673 # Warning - without using the other runtime loading flags (-brtl),
15674 # -berok will link without error, but may produce a broken library.
15675 allow_undefined_flag='-berok'
15676 # Determine the default libpath from the value encoded in an empty executable.
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15685 main ()
15689 return 0;
15691 _ACEOF
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (ac_try="$ac_link"
15694 case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
15700 ac_status=$?
15701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15707 { (case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15710 esac
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_try") 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_try") 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15729 # Check for a 64-bit object if we didn't find anything.
15730 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; }
15731 }'`; fi
15732 else
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15739 rm -f core conftest.err conftest.$ac_objext \
15740 conftest$ac_exeext conftest.$ac_ext
15741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15744 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"
15745 else
15746 if test "$host_cpu" = ia64; then
15747 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15748 allow_undefined_flag="-z nodefs"
15749 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"
15750 else
15751 # Determine the default libpath from the value encoded in an empty executable.
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15760 main ()
15764 return 0;
15766 _ACEOF
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (ac_try="$ac_link"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15782 { (case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_try") 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest$ac_exeext'
15792 { (case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_try") 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15802 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15804 # Check for a 64-bit object if we didn't find anything.
15805 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; }
15806 }'`; fi
15807 else
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15814 rm -f core conftest.err conftest.$ac_objext \
15815 conftest$ac_exeext conftest.$ac_ext
15816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15818 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15819 # Warning - without using the other run time loading flags,
15820 # -berok will link without error, but may produce a broken library.
15821 no_undefined_flag=' ${wl}-bernotok'
15822 allow_undefined_flag=' ${wl}-berok'
15823 # Exported symbols can be pulled into shared objects from archives
15824 whole_archive_flag_spec='$convenience'
15825 archive_cmds_need_lc=yes
15826 # This is similar to how AIX traditionally builds its shared libraries.
15827 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'
15832 amigaos*)
15833 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)'
15834 hardcode_libdir_flag_spec='-L$libdir'
15835 hardcode_minus_L=yes
15836 # see comment about different semantics on the GNU ld section
15837 ld_shlibs=no
15840 bsdi[45]*)
15841 export_dynamic_flag_spec=-rdynamic
15844 cygwin* | mingw* | pw32*)
15845 # When not using gcc, we currently assume that we are using
15846 # Microsoft Visual C++.
15847 # hardcode_libdir_flag_spec is actually meaningless, as there is
15848 # no search path for DLLs.
15849 hardcode_libdir_flag_spec=' '
15850 allow_undefined_flag=unsupported
15851 # Tell ltmain to make .lib files, not .a files.
15852 libext=lib
15853 # Tell ltmain to make .dll files, not .so files.
15854 shrext_cmds=".dll"
15855 # FIXME: Setting linknames here is a bad hack.
15856 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15857 # The linker will automatically build a .lib file if we build a DLL.
15858 old_archive_From_new_cmds='true'
15859 # FIXME: Should let the user specify the lib program.
15860 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15861 fix_srcfile_path='`cygpath -w "$srcfile"`'
15862 enable_shared_with_static_runtimes=yes
15865 darwin* | rhapsody*)
15866 case $host_os in
15867 rhapsody* | darwin1.[012])
15868 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15870 *) # Darwin 1.3 on
15871 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15872 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15873 else
15874 case ${MACOSX_DEPLOYMENT_TARGET} in
15875 10.[012])
15876 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15878 10.*)
15879 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15881 esac
15884 esac
15885 archive_cmds_need_lc=no
15886 hardcode_direct=no
15887 hardcode_automatic=yes
15888 hardcode_shlibpath_var=unsupported
15889 whole_archive_flag_spec=''
15890 link_all_deplibs=yes
15891 if test "$GCC" = yes ; then
15892 output_verbose_link_cmd='echo'
15893 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15894 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15895 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15896 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}'
15897 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}'
15898 else
15899 case $cc_basename in
15900 xlc*)
15901 output_verbose_link_cmd='echo'
15902 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15903 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15905 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}'
15906 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}'
15909 ld_shlibs=no
15911 esac
15915 dgux*)
15916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15917 hardcode_libdir_flag_spec='-L$libdir'
15918 hardcode_shlibpath_var=no
15921 freebsd1*)
15922 ld_shlibs=no
15925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15926 # support. Future versions do this automatically, but an explicit c++rt0.o
15927 # does not break anything, and helps significantly (at the cost of a little
15928 # extra space).
15929 freebsd2.2*)
15930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15931 hardcode_libdir_flag_spec='-R$libdir'
15932 hardcode_direct=yes
15933 hardcode_shlibpath_var=no
15936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15937 freebsd2*)
15938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15939 hardcode_direct=yes
15940 hardcode_minus_L=yes
15941 hardcode_shlibpath_var=no
15944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15945 freebsd* | kfreebsd*-gnu | dragonfly*)
15946 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15947 hardcode_libdir_flag_spec='-R$libdir'
15948 hardcode_direct=yes
15949 hardcode_shlibpath_var=no
15952 hpux9*)
15953 if test "$GCC" = yes; then
15954 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'
15955 else
15956 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'
15958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15959 hardcode_libdir_separator=:
15960 hardcode_direct=yes
15962 # hardcode_minus_L: Not really in the search PATH,
15963 # but as the default location of the library.
15964 hardcode_minus_L=yes
15965 export_dynamic_flag_spec='${wl}-E'
15968 hpux10*)
15969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15970 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15971 else
15972 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15974 if test "$with_gnu_ld" = no; then
15975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15976 hardcode_libdir_separator=:
15978 hardcode_direct=yes
15979 export_dynamic_flag_spec='${wl}-E'
15981 # hardcode_minus_L: Not really in the search PATH,
15982 # but as the default location of the library.
15983 hardcode_minus_L=yes
15987 hpux11*)
15988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15989 case $host_cpu in
15990 hppa*64*)
15991 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15993 ia64*)
15994 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15997 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15999 esac
16000 else
16001 case $host_cpu in
16002 hppa*64*)
16003 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16005 ia64*)
16006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16009 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16011 esac
16013 if test "$with_gnu_ld" = no; then
16014 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16015 hardcode_libdir_separator=:
16017 case $host_cpu in
16018 hppa*64*|ia64*)
16019 hardcode_libdir_flag_spec_ld='+b $libdir'
16020 hardcode_direct=no
16021 hardcode_shlibpath_var=no
16024 hardcode_direct=yes
16025 export_dynamic_flag_spec='${wl}-E'
16027 # hardcode_minus_L: Not really in the search PATH,
16028 # but as the default location of the library.
16029 hardcode_minus_L=yes
16031 esac
16035 irix5* | irix6* | nonstopux*)
16036 if test "$GCC" = yes; then
16037 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'
16038 else
16039 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'
16040 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16043 hardcode_libdir_separator=:
16044 link_all_deplibs=yes
16047 netbsd*)
16048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16050 else
16051 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16053 hardcode_libdir_flag_spec='-R$libdir'
16054 hardcode_direct=yes
16055 hardcode_shlibpath_var=no
16058 newsos6)
16059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_direct=yes
16061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16062 hardcode_libdir_separator=:
16063 hardcode_shlibpath_var=no
16066 openbsd*)
16067 hardcode_direct=yes
16068 hardcode_shlibpath_var=no
16069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16070 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16071 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16073 export_dynamic_flag_spec='${wl}-E'
16074 else
16075 case $host_os in
16076 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_libdir_flag_spec='-R$libdir'
16081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16084 esac
16088 os2*)
16089 hardcode_libdir_flag_spec='-L$libdir'
16090 hardcode_minus_L=yes
16091 allow_undefined_flag=unsupported
16092 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'
16093 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16096 osf3*)
16097 if test "$GCC" = yes; then
16098 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16099 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'
16100 else
16101 allow_undefined_flag=' -expect_unresolved \*'
16102 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'
16104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16105 hardcode_libdir_separator=:
16108 osf4* | osf5*) # as osf3* with the addition of -msym flag
16109 if test "$GCC" = yes; then
16110 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16111 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'
16112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16113 else
16114 allow_undefined_flag=' -expect_unresolved \*'
16115 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'
16116 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16117 $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'
16119 # Both c and cxx compiler support -rpath directly
16120 hardcode_libdir_flag_spec='-rpath $libdir'
16122 hardcode_libdir_separator=:
16125 solaris*)
16126 no_undefined_flag=' -z text'
16127 if test "$GCC" = yes; then
16128 wlarc='${wl}'
16129 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16130 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16131 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16132 else
16133 wlarc=''
16134 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16138 hardcode_libdir_flag_spec='-R$libdir'
16139 hardcode_shlibpath_var=no
16140 case $host_os in
16141 solaris2.[0-5] | solaris2.[0-5].*) ;;
16143 # The compiler driver will combine linker options so we
16144 # cannot just pass the convience library names through
16145 # without $wl, iff we do not link with $LD.
16146 # Luckily, gcc supports the same syntax we need for Sun Studio.
16147 # Supported since Solaris 2.6 (maybe 2.5.1?)
16148 case $wlarc in
16150 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16152 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' ;;
16153 esac ;;
16154 esac
16155 link_all_deplibs=yes
16158 sunos4*)
16159 if test "x$host_vendor" = xsequent; then
16160 # Use $CC to link under sequent, because it throws in some extra .o
16161 # files that make .init and .fini sections work.
16162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16163 else
16164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16166 hardcode_libdir_flag_spec='-L$libdir'
16167 hardcode_direct=yes
16168 hardcode_minus_L=yes
16169 hardcode_shlibpath_var=no
16172 sysv4)
16173 case $host_vendor in
16174 sni)
16175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_direct=yes # is this really true???
16178 siemens)
16179 ## LD is ld it makes a PLAMLIB
16180 ## CC just makes a GrossModule.
16181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16182 reload_cmds='$CC -r -o $output$reload_objs'
16183 hardcode_direct=no
16185 motorola)
16186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16189 esac
16190 runpath_var='LD_RUN_PATH'
16191 hardcode_shlibpath_var=no
16194 sysv4.3*)
16195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_shlibpath_var=no
16197 export_dynamic_flag_spec='-Bexport'
16200 sysv4*MP*)
16201 if test -d /usr/nec; then
16202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_shlibpath_var=no
16204 runpath_var=LD_RUN_PATH
16205 hardcode_runpath_var=yes
16206 ld_shlibs=yes
16210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16211 no_undefined_flag='${wl}-z,text'
16212 archive_cmds_need_lc=no
16213 hardcode_shlibpath_var=no
16214 runpath_var='LD_RUN_PATH'
16216 if test "$GCC" = yes; then
16217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16219 else
16220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 sysv5* | sco3.2v5* | sco5v6*)
16226 # Note: We can NOT use -z defs as we might desire, because we do not
16227 # link with -lc, and that would cause any symbols used from libc to
16228 # always be unresolved, which means just about no library would
16229 # ever link correctly. If we're not using GNU ld we use -z text
16230 # though, which does catch some bad symbols but isn't as heavy-handed
16231 # as -z defs.
16232 no_undefined_flag='${wl}-z,text'
16233 allow_undefined_flag='${wl}-z,nodefs'
16234 archive_cmds_need_lc=no
16235 hardcode_shlibpath_var=no
16236 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16237 hardcode_libdir_separator=':'
16238 link_all_deplibs=yes
16239 export_dynamic_flag_spec='${wl}-Bexport'
16240 runpath_var='LD_RUN_PATH'
16242 if test "$GCC" = yes; then
16243 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16244 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16245 else
16246 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16251 uts4*)
16252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16253 hardcode_libdir_flag_spec='-L$libdir'
16254 hardcode_shlibpath_var=no
16258 ld_shlibs=no
16260 esac
16263 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16264 echo "${ECHO_T}$ld_shlibs" >&6; }
16265 test "$ld_shlibs" = no && can_build_shared=no
16268 # Do we need to explicitly link libc?
16270 case "x$archive_cmds_need_lc" in
16271 x|xyes)
16272 # Assume -lc should be added
16273 archive_cmds_need_lc=yes
16275 if test "$enable_shared" = yes && test "$GCC" = yes; then
16276 case $archive_cmds in
16277 *'~'*)
16278 # FIXME: we may have to deal with multi-command sequences.
16280 '$CC '*)
16281 # Test whether the compiler implicitly links with -lc since on some
16282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16283 # to ld, don't add -lc before -lgcc.
16284 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16285 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16286 $rm conftest*
16287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } 2>conftest.err; then
16294 soname=conftest
16295 lib=conftest
16296 libobjs=conftest.$ac_objext
16297 deplibs=
16298 wl=$lt_prog_compiler_wl
16299 pic_flag=$lt_prog_compiler_pic
16300 compiler_flags=-v
16301 linker_flags=-v
16302 verstring=
16303 output_objdir=.
16304 libname=conftest
16305 lt_save_allow_undefined_flag=$allow_undefined_flag
16306 allow_undefined_flag=
16307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16308 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }
16312 then
16313 archive_cmds_need_lc=no
16314 else
16315 archive_cmds_need_lc=yes
16317 allow_undefined_flag=$lt_save_allow_undefined_flag
16318 else
16319 cat conftest.err 1>&5
16321 $rm conftest*
16322 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16323 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16325 esac
16328 esac
16330 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16332 library_names_spec=
16333 libname_spec='lib$name'
16334 soname_spec=
16335 shrext_cmds=".so"
16336 postinstall_cmds=
16337 postuninstall_cmds=
16338 finish_cmds=
16339 finish_eval=
16340 shlibpath_var=
16341 shlibpath_overrides_runpath=unknown
16342 version_type=none
16343 dynamic_linker="$host_os ld.so"
16344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16345 if test "$GCC" = yes; then
16346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16347 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16348 # if the path contains ";" then we assume it to be the separator
16349 # otherwise default to the standard path separator (i.e. ":") - it is
16350 # assumed that no part of a normal pathname contains ";" but that should
16351 # okay in the real world where ";" in dirpaths is itself problematic.
16352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16353 else
16354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16356 else
16357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16359 need_lib_prefix=unknown
16360 hardcode_into_libs=no
16362 # when you set need_version to no, make sure it does not cause -set_version
16363 # flags to be left without arguments
16364 need_version=unknown
16366 case $host_os in
16367 aix3*)
16368 version_type=linux
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16370 shlibpath_var=LIBPATH
16372 # AIX 3 has no versioning support, so we append a major version to the name.
16373 soname_spec='${libname}${release}${shared_ext}$major'
16376 aix4* | aix5*)
16377 version_type=linux
16378 need_lib_prefix=no
16379 need_version=no
16380 hardcode_into_libs=yes
16381 if test "$host_cpu" = ia64; then
16382 # AIX 5 supports IA64
16383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 else
16386 # With GCC up to 2.95.x, collect2 would create an import file
16387 # for dependence libraries. The import file would start with
16388 # the line `#! .'. This would cause the generated library to
16389 # depend on `.', always an invalid library. This was fixed in
16390 # development snapshots of GCC prior to 3.0.
16391 case $host_os in
16392 aix4 | aix4.[01] | aix4.[01].*)
16393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16394 echo ' yes '
16395 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16397 else
16398 can_build_shared=no
16401 esac
16402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16403 # soname into executable. Probably we can add versioning support to
16404 # collect2, so additional links can be useful in future.
16405 if test "$aix_use_runtimelinking" = yes; then
16406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16407 # instead of lib<name>.a to let people know that these are not
16408 # typical AIX shared libraries.
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 else
16411 # We preserve .a as extension for shared libraries through AIX4.2
16412 # and later when we are not doing run time linking.
16413 library_names_spec='${libname}${release}.a $libname.a'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16416 shlibpath_var=LIBPATH
16420 amigaos*)
16421 library_names_spec='$libname.ixlibrary $libname.a'
16422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423 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'
16426 beos*)
16427 library_names_spec='${libname}${shared_ext}'
16428 dynamic_linker="$host_os ld.so"
16429 shlibpath_var=LIBRARY_PATH
16432 bsdi[45]*)
16433 version_type=linux
16434 need_version=no
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16441 # the default ld.so.conf also contains /usr/contrib/lib and
16442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16443 # libtool to hard-code these into programs
16446 cygwin* | mingw* | pw32*)
16447 version_type=windows
16448 shrext_cmds=".dll"
16449 need_version=no
16450 need_lib_prefix=no
16452 case $GCC,$host_os in
16453 yes,cygwin* | yes,mingw* | yes,pw32*)
16454 library_names_spec='$libname.dll.a'
16455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456 postinstall_cmds='base_file=`basename \${file}`~
16457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16458 dldir=$destdir/`dirname \$dlpath`~
16459 test -d \$dldir || mkdir -p \$dldir~
16460 $install_prog $dir/$dlname \$dldir/$dlname~
16461 chmod a+x \$dldir/$dlname'
16462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16463 dlpath=$dir/\$dldll~
16464 $rm \$dlpath'
16465 shlibpath_overrides_runpath=yes
16467 case $host_os in
16468 cygwin*)
16469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16473 mingw*)
16474 # MinGW DLLs use traditional 'lib' prefix
16475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16476 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16477 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16478 # It is most probably a Windows format PATH printed by
16479 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16480 # path with ; separators, and with drive letters. We can handle the
16481 # drive letters (cygwin fileutils understands them), so leave them,
16482 # especially as we might pass files found there to a mingw objdump,
16483 # which wouldn't understand a cygwinified path. Ahh.
16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16485 else
16486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16489 pw32*)
16490 # pw32 DLLs use 'pw' prefix rather than 'lib'
16491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16493 esac
16497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16499 esac
16500 dynamic_linker='Win32 ld.exe'
16501 # FIXME: first we should search . and the directory the executable is in
16502 shlibpath_var=PATH
16505 darwin* | rhapsody*)
16506 dynamic_linker="$host_os dyld"
16507 version_type=darwin
16508 need_lib_prefix=no
16509 need_version=no
16510 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16511 soname_spec='${libname}${release}${major}$shared_ext'
16512 shlibpath_overrides_runpath=yes
16513 shlibpath_var=DYLD_LIBRARY_PATH
16514 shrext_cmds='.dylib'
16515 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16516 if test "$GCC" = yes; then
16517 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"`
16518 else
16519 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16524 dgux*)
16525 version_type=linux
16526 need_lib_prefix=no
16527 need_version=no
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16533 freebsd1*)
16534 dynamic_linker=no
16537 kfreebsd*-gnu)
16538 version_type=linux
16539 need_lib_prefix=no
16540 need_version=no
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=no
16545 hardcode_into_libs=yes
16546 dynamic_linker='GNU ld.so'
16549 freebsd* | dragonfly*)
16550 # DragonFly does not have aout. When/if they implement a new
16551 # versioning mechanism, adjust this.
16552 if test -x /usr/bin/objformat; then
16553 objformat=`/usr/bin/objformat`
16554 else
16555 case $host_os in
16556 freebsd[123]*) objformat=aout ;;
16557 *) objformat=elf ;;
16558 esac
16560 version_type=freebsd-$objformat
16561 case $version_type in
16562 freebsd-elf*)
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16564 need_version=no
16565 need_lib_prefix=no
16567 freebsd-*)
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16569 need_version=yes
16571 esac
16572 shlibpath_var=LD_LIBRARY_PATH
16573 case $host_os in
16574 freebsd2*)
16575 shlibpath_overrides_runpath=yes
16577 freebsd3.[01]* | freebsdelf3.[01]*)
16578 shlibpath_overrides_runpath=yes
16579 hardcode_into_libs=yes
16581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16583 shlibpath_overrides_runpath=no
16584 hardcode_into_libs=yes
16586 freebsd*) # from 4.6 on
16587 shlibpath_overrides_runpath=yes
16588 hardcode_into_libs=yes
16590 esac
16593 gnu*)
16594 version_type=linux
16595 need_lib_prefix=no
16596 need_version=no
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 hardcode_into_libs=yes
16603 hpux9* | hpux10* | hpux11*)
16604 # Give a soname corresponding to the major version so that dld.sl refuses to
16605 # link against other versions.
16606 version_type=sunos
16607 need_lib_prefix=no
16608 need_version=no
16609 case $host_cpu in
16610 ia64*)
16611 shrext_cmds='.so'
16612 hardcode_into_libs=yes
16613 dynamic_linker="$host_os dld.so"
16614 shlibpath_var=LD_LIBRARY_PATH
16615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617 soname_spec='${libname}${release}${shared_ext}$major'
16618 if test "X$HPUX_IA64_MODE" = X32; then
16619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16620 else
16621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16625 hppa*64*)
16626 shrext_cmds='.sl'
16627 hardcode_into_libs=yes
16628 dynamic_linker="$host_os dld.sl"
16629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16637 shrext_cmds='.sl'
16638 dynamic_linker="$host_os dld.sl"
16639 shlibpath_var=SHLIB_PATH
16640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16644 esac
16645 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16646 postinstall_cmds='chmod 555 $lib'
16649 interix3*)
16650 version_type=linux
16651 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16656 shlibpath_var=LD_LIBRARY_PATH
16657 shlibpath_overrides_runpath=no
16658 hardcode_into_libs=yes
16661 irix5* | irix6* | nonstopux*)
16662 case $host_os in
16663 nonstopux*) version_type=nonstopux ;;
16665 if test "$lt_cv_prog_gnu_ld" = yes; then
16666 version_type=linux
16667 else
16668 version_type=irix
16669 fi ;;
16670 esac
16671 need_lib_prefix=no
16672 need_version=no
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16675 case $host_os in
16676 irix5* | nonstopux*)
16677 libsuff= shlibsuff=
16680 case $LD in # libtool.m4 will add one of these switches to LD
16681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16682 libsuff= shlibsuff= libmagic=32-bit;;
16683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16684 libsuff=32 shlibsuff=N32 libmagic=N32;;
16685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16687 *) libsuff= shlibsuff= libmagic=never-match;;
16688 esac
16690 esac
16691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16692 shlibpath_overrides_runpath=no
16693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16695 hardcode_into_libs=yes
16698 # No shared lib support for Linux oldld, aout, or coff.
16699 linux*oldld* | linux*aout* | linux*coff*)
16700 dynamic_linker=no
16703 # This must be Linux ELF.
16704 linux*)
16705 version_type=linux
16706 need_lib_prefix=no
16707 need_version=no
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath=no
16713 # This implies no fast_install, which is unacceptable.
16714 # Some rework will be needed to allow for fast_install
16715 # before this can be enabled.
16716 hardcode_into_libs=yes
16718 # Append ld.so.conf contents to the search path
16719 if test -f /etc/ld.so.conf; then
16720 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' ' '`
16721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16724 # We used to test for /lib/ld.so.1 and disable shared libraries on
16725 # powerpc, because MkLinux only supported shared libraries with the
16726 # GNU dynamic linker. Since this was broken with cross compilers,
16727 # most powerpc-linux boxes support dynamic linking these days and
16728 # people can always --disable-shared, the test was removed, and we
16729 # assume the GNU/Linux dynamic linker is in use.
16730 dynamic_linker='GNU/Linux ld.so'
16733 knetbsd*-gnu)
16734 version_type=linux
16735 need_lib_prefix=no
16736 need_version=no
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 shlibpath_overrides_runpath=no
16741 hardcode_into_libs=yes
16742 dynamic_linker='GNU ld.so'
16745 netbsd*)
16746 version_type=sunos
16747 need_lib_prefix=no
16748 need_version=no
16749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16752 dynamic_linker='NetBSD (a.out) ld.so'
16753 else
16754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16755 soname_spec='${libname}${release}${shared_ext}$major'
16756 dynamic_linker='NetBSD ld.elf_so'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=yes
16760 hardcode_into_libs=yes
16763 newsos6)
16764 version_type=linux
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=yes
16770 nto-qnx*)
16771 version_type=linux
16772 need_lib_prefix=no
16773 need_version=no
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 shlibpath_overrides_runpath=yes
16780 openbsd*)
16781 version_type=sunos
16782 sys_lib_dlsearch_path_spec="/usr/lib"
16783 need_lib_prefix=no
16784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16785 case $host_os in
16786 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16787 *) need_version=no ;;
16788 esac
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16793 case $host_os in
16794 openbsd2.[89] | openbsd2.[89].*)
16795 shlibpath_overrides_runpath=no
16798 shlibpath_overrides_runpath=yes
16800 esac
16801 else
16802 shlibpath_overrides_runpath=yes
16806 os2*)
16807 libname_spec='$name'
16808 shrext_cmds=".dll"
16809 need_lib_prefix=no
16810 library_names_spec='$libname${shared_ext} $libname.a'
16811 dynamic_linker='OS/2 ld.exe'
16812 shlibpath_var=LIBPATH
16815 osf3* | osf4* | osf5*)
16816 version_type=osf
16817 need_lib_prefix=no
16818 need_version=no
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16826 solaris*)
16827 version_type=linux
16828 need_lib_prefix=no
16829 need_version=no
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=yes
16834 hardcode_into_libs=yes
16835 # ldd complains unless libraries are executable
16836 postinstall_cmds='chmod +x $lib'
16839 sunos4*)
16840 version_type=sunos
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=yes
16845 if test "$with_gnu_ld" = yes; then
16846 need_lib_prefix=no
16848 need_version=yes
16851 sysv4 | sysv4.3*)
16852 version_type=linux
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 shlibpath_var=LD_LIBRARY_PATH
16856 case $host_vendor in
16857 sni)
16858 shlibpath_overrides_runpath=no
16859 need_lib_prefix=no
16860 export_dynamic_flag_spec='${wl}-Blargedynsym'
16861 runpath_var=LD_RUN_PATH
16863 siemens)
16864 need_lib_prefix=no
16866 motorola)
16867 need_lib_prefix=no
16868 need_version=no
16869 shlibpath_overrides_runpath=no
16870 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16872 esac
16875 sysv4*MP*)
16876 if test -d /usr/nec ;then
16877 version_type=linux
16878 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16879 soname_spec='$libname${shared_ext}.$major'
16880 shlibpath_var=LD_LIBRARY_PATH
16884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16885 version_type=freebsd-elf
16886 need_lib_prefix=no
16887 need_version=no
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 hardcode_into_libs=yes
16892 if test "$with_gnu_ld" = yes; then
16893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16894 shlibpath_overrides_runpath=no
16895 else
16896 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16897 shlibpath_overrides_runpath=yes
16898 case $host_os in
16899 sco3.2v5*)
16900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16902 esac
16904 sys_lib_dlsearch_path_spec='/usr/lib'
16907 uts4*)
16908 version_type=linux
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 shlibpath_var=LD_LIBRARY_PATH
16915 dynamic_linker=no
16917 esac
16918 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16919 echo "${ECHO_T}$dynamic_linker" >&6; }
16920 test "$dynamic_linker" = no && can_build_shared=no
16922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16923 if test "$GCC" = yes; then
16924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16927 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16928 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16929 hardcode_action=
16930 if test -n "$hardcode_libdir_flag_spec" || \
16931 test -n "$runpath_var" || \
16932 test "X$hardcode_automatic" = "Xyes" ; then
16934 # We can hardcode non-existant directories.
16935 if test "$hardcode_direct" != no &&
16936 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16937 # have to relink, otherwise we might link with an installed library
16938 # when we should be linking with a yet-to-be-installed one
16939 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16940 test "$hardcode_minus_L" != no; then
16941 # Linking always hardcodes the temporary library directory.
16942 hardcode_action=relink
16943 else
16944 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16945 hardcode_action=immediate
16947 else
16948 # We cannot hardcode anything, or else we can only hardcode existing
16949 # directories.
16950 hardcode_action=unsupported
16952 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16953 echo "${ECHO_T}$hardcode_action" >&6; }
16955 if test "$hardcode_action" = relink; then
16956 # Fast installation is not supported
16957 enable_fast_install=no
16958 elif test "$shlibpath_overrides_runpath" = yes ||
16959 test "$enable_shared" = no; then
16960 # Fast installation is not necessary
16961 enable_fast_install=needless
16964 striplib=
16965 old_striplib=
16966 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16967 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16968 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16969 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16970 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16971 { echo "$as_me:$LINENO: result: yes" >&5
16972 echo "${ECHO_T}yes" >&6; }
16973 else
16974 # FIXME - insert some real tests, host_os isn't really good enough
16975 case $host_os in
16976 darwin*)
16977 if test -n "$STRIP" ; then
16978 striplib="$STRIP -x"
16979 { echo "$as_me:$LINENO: result: yes" >&5
16980 echo "${ECHO_T}yes" >&6; }
16981 else
16982 { echo "$as_me:$LINENO: result: no" >&5
16983 echo "${ECHO_T}no" >&6; }
16987 { echo "$as_me:$LINENO: result: no" >&5
16988 echo "${ECHO_T}no" >&6; }
16990 esac
16993 if test "x$enable_dlopen" != xyes; then
16994 enable_dlopen=unknown
16995 enable_dlopen_self=unknown
16996 enable_dlopen_self_static=unknown
16997 else
16998 lt_cv_dlopen=no
16999 lt_cv_dlopen_libs=
17001 case $host_os in
17002 beos*)
17003 lt_cv_dlopen="load_add_on"
17004 lt_cv_dlopen_libs=
17005 lt_cv_dlopen_self=yes
17008 mingw* | pw32*)
17009 lt_cv_dlopen="LoadLibrary"
17010 lt_cv_dlopen_libs=
17013 cygwin*)
17014 lt_cv_dlopen="dlopen"
17015 lt_cv_dlopen_libs=
17018 darwin*)
17019 # if libdl is installed we need to link against it
17020 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17021 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025 ac_check_lib_save_LIBS=$LIBS
17026 LIBS="-ldl $LIBS"
17027 cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17037 #ifdef __cplusplus
17038 extern "C"
17039 #endif
17040 char dlopen ();
17042 main ()
17044 return dlopen ();
17046 return 0;
17048 _ACEOF
17049 rm -f conftest.$ac_objext conftest$ac_exeext
17050 if { (ac_try="$ac_link"
17051 case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_link") 2>conftest.er1
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
17063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17064 { (case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_try") 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest$ac_exeext'
17074 { (case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17077 esac
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_try") 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_lib_dl_dlopen=yes
17084 else
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 ac_cv_lib_dl_dlopen=no
17091 rm -f core conftest.err conftest.$ac_objext \
17092 conftest$ac_exeext conftest.$ac_ext
17093 LIBS=$ac_check_lib_save_LIBS
17095 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17096 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17097 if test $ac_cv_lib_dl_dlopen = yes; then
17098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17099 else
17101 lt_cv_dlopen="dyld"
17102 lt_cv_dlopen_libs=
17103 lt_cv_dlopen_self=yes
17110 { echo "$as_me:$LINENO: checking for shl_load" >&5
17111 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17112 if test "${ac_cv_func_shl_load+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17123 #define shl_load innocuous_shl_load
17125 /* System header to define __stub macros and hopefully few prototypes,
17126 which can conflict with char shl_load (); below.
17127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17128 <limits.h> exists even on freestanding compilers. */
17130 #ifdef __STDC__
17131 # include <limits.h>
17132 #else
17133 # include <assert.h>
17134 #endif
17136 #undef shl_load
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17141 #ifdef __cplusplus
17142 extern "C"
17143 #endif
17144 char shl_load ();
17145 /* The GNU C library defines this for functions which it implements
17146 to always fail with ENOSYS. Some functions are actually named
17147 something starting with __ and the normal name is an alias. */
17148 #if defined __stub_shl_load || defined __stub___shl_load
17149 choke me
17150 #endif
17153 main ()
17155 return shl_load ();
17157 return 0;
17159 _ACEOF
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest$ac_exeext'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188 esac
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_try") 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_func_shl_load=yes
17195 else
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17199 ac_cv_func_shl_load=no
17202 rm -f core conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17205 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17206 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17207 if test $ac_cv_func_shl_load = yes; then
17208 lt_cv_dlopen="shl_load"
17209 else
17210 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17211 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17212 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 else
17215 ac_check_lib_save_LIBS=$LIBS
17216 LIBS="-ldld $LIBS"
17217 cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h. */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17224 /* Override any GCC internal prototype to avoid an error.
17225 Use char because int might match the return type of a GCC
17226 builtin and then its argument prototype would still apply. */
17227 #ifdef __cplusplus
17228 extern "C"
17229 #endif
17230 char shl_load ();
17232 main ()
17234 return shl_load ();
17236 return 0;
17238 _ACEOF
17239 rm -f conftest.$ac_objext conftest$ac_exeext
17240 if { (ac_try="$ac_link"
17241 case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_link") 2>conftest.er1
17247 ac_status=$?
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest$ac_exeext'
17264 { (case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_try") 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_cv_lib_dld_shl_load=yes
17274 else
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_cv_lib_dld_shl_load=no
17281 rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17283 LIBS=$ac_check_lib_save_LIBS
17285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17286 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17287 if test $ac_cv_lib_dld_shl_load = yes; then
17288 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17289 else
17290 { echo "$as_me:$LINENO: checking for dlopen" >&5
17291 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17292 if test "${ac_cv_func_dlopen+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295 cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h. */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17303 #define dlopen innocuous_dlopen
17305 /* System header to define __stub macros and hopefully few prototypes,
17306 which can conflict with char dlopen (); below.
17307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17308 <limits.h> exists even on freestanding compilers. */
17310 #ifdef __STDC__
17311 # include <limits.h>
17312 #else
17313 # include <assert.h>
17314 #endif
17316 #undef dlopen
17318 /* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17321 #ifdef __cplusplus
17322 extern "C"
17323 #endif
17324 char dlopen ();
17325 /* The GNU C library defines this for functions which it implements
17326 to always fail with ENOSYS. Some functions are actually named
17327 something starting with __ and the normal name is an alias. */
17328 #if defined __stub_dlopen || defined __stub___dlopen
17329 choke me
17330 #endif
17333 main ()
17335 return dlopen ();
17337 return 0;
17339 _ACEOF
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17355 { (case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_try") 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
17365 { (case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_try") 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_func_dlopen=yes
17375 else
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_func_dlopen=no
17382 rm -f core conftest.err conftest.$ac_objext \
17383 conftest$ac_exeext conftest.$ac_ext
17385 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17386 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17387 if test $ac_cv_func_dlopen = yes; then
17388 lt_cv_dlopen="dlopen"
17389 else
17390 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17391 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395 ac_check_lib_save_LIBS=$LIBS
17396 LIBS="-ldl $LIBS"
17397 cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h. */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 /* Override any GCC internal prototype to avoid an error.
17405 Use char because int might match the return type of a GCC
17406 builtin and then its argument prototype would still apply. */
17407 #ifdef __cplusplus
17408 extern "C"
17409 #endif
17410 char dlopen ();
17412 main ()
17414 return dlopen ();
17416 return 0;
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434 { (case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest$ac_exeext'
17444 { (case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_try") 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_lib_dl_dlopen=yes
17454 else
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_cv_lib_dl_dlopen=no
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17465 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17467 if test $ac_cv_lib_dl_dlopen = yes; then
17468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17469 else
17470 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17471 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17472 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 ac_check_lib_save_LIBS=$LIBS
17476 LIBS="-lsvld $LIBS"
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h. */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 /* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17487 #ifdef __cplusplus
17488 extern "C"
17489 #endif
17490 char dlopen ();
17492 main ()
17494 return dlopen ();
17496 return 0;
17498 _ACEOF
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>conftest.er1
17507 ac_status=$?
17508 grep -v '^ *+' conftest.er1 >conftest.err
17509 rm -f conftest.er1
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514 { (case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_try") 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_lib_svld_dlopen=yes
17534 else
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_cv_lib_svld_dlopen=no
17541 rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17543 LIBS=$ac_check_lib_save_LIBS
17545 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17546 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17547 if test $ac_cv_lib_svld_dlopen = yes; then
17548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17549 else
17550 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17551 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17552 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17554 else
17555 ac_check_lib_save_LIBS=$LIBS
17556 LIBS="-ldld $LIBS"
17557 cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h. */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17564 /* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17567 #ifdef __cplusplus
17568 extern "C"
17569 #endif
17570 char dld_link ();
17572 main ()
17574 return dld_link ();
17576 return 0;
17578 _ACEOF
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_lib_dld_dld_link=yes
17614 else
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ac_cv_lib_dld_dld_link=no
17621 rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623 LIBS=$ac_check_lib_save_LIBS
17625 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17626 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17627 if test $ac_cv_lib_dld_dld_link = yes; then
17628 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17647 esac
17649 if test "x$lt_cv_dlopen" != xno; then
17650 enable_dlopen=yes
17651 else
17652 enable_dlopen=no
17655 case $lt_cv_dlopen in
17656 dlopen)
17657 save_CPPFLAGS="$CPPFLAGS"
17658 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17660 save_LDFLAGS="$LDFLAGS"
17661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17663 save_LIBS="$LIBS"
17664 LIBS="$lt_cv_dlopen_libs $LIBS"
17666 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17667 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17668 if test "${lt_cv_dlopen_self+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17671 if test "$cross_compiling" = yes; then :
17672 lt_cv_dlopen_self=cross
17673 else
17674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17675 lt_status=$lt_dlunknown
17676 cat > conftest.$ac_ext <<EOF
17677 #line 17677 "configure"
17678 #include "confdefs.h"
17680 #if HAVE_DLFCN_H
17681 #include <dlfcn.h>
17682 #endif
17684 #include <stdio.h>
17686 #ifdef RTLD_GLOBAL
17687 # define LT_DLGLOBAL RTLD_GLOBAL
17688 #else
17689 # ifdef DL_GLOBAL
17690 # define LT_DLGLOBAL DL_GLOBAL
17691 # else
17692 # define LT_DLGLOBAL 0
17693 # endif
17694 #endif
17696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17697 find out it does not work in some platform. */
17698 #ifndef LT_DLLAZY_OR_NOW
17699 # ifdef RTLD_LAZY
17700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17701 # else
17702 # ifdef DL_LAZY
17703 # define LT_DLLAZY_OR_NOW DL_LAZY
17704 # else
17705 # ifdef RTLD_NOW
17706 # define LT_DLLAZY_OR_NOW RTLD_NOW
17707 # else
17708 # ifdef DL_NOW
17709 # define LT_DLLAZY_OR_NOW DL_NOW
17710 # else
17711 # define LT_DLLAZY_OR_NOW 0
17712 # endif
17713 # endif
17714 # endif
17715 # endif
17716 #endif
17718 #ifdef __cplusplus
17719 extern "C" void exit (int);
17720 #endif
17722 void fnord() { int i=42;}
17723 int main ()
17725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17726 int status = $lt_dlunknown;
17728 if (self)
17730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17732 /* dlclose (self); */
17734 else
17735 puts (dlerror ());
17737 exit (status);
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741 (eval $ac_link) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17745 (./conftest; exit; ) >&5 2>/dev/null
17746 lt_status=$?
17747 case x$lt_status in
17748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17750 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17751 esac
17752 else :
17753 # compilation failed
17754 lt_cv_dlopen_self=no
17757 rm -fr conftest*
17761 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17762 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17764 if test "x$lt_cv_dlopen_self" = xyes; then
17765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17766 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17767 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17768 if test "${lt_cv_dlopen_self_static+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771 if test "$cross_compiling" = yes; then :
17772 lt_cv_dlopen_self_static=cross
17773 else
17774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17775 lt_status=$lt_dlunknown
17776 cat > conftest.$ac_ext <<EOF
17777 #line 17777 "configure"
17778 #include "confdefs.h"
17780 #if HAVE_DLFCN_H
17781 #include <dlfcn.h>
17782 #endif
17784 #include <stdio.h>
17786 #ifdef RTLD_GLOBAL
17787 # define LT_DLGLOBAL RTLD_GLOBAL
17788 #else
17789 # ifdef DL_GLOBAL
17790 # define LT_DLGLOBAL DL_GLOBAL
17791 # else
17792 # define LT_DLGLOBAL 0
17793 # endif
17794 #endif
17796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17797 find out it does not work in some platform. */
17798 #ifndef LT_DLLAZY_OR_NOW
17799 # ifdef RTLD_LAZY
17800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17801 # else
17802 # ifdef DL_LAZY
17803 # define LT_DLLAZY_OR_NOW DL_LAZY
17804 # else
17805 # ifdef RTLD_NOW
17806 # define LT_DLLAZY_OR_NOW RTLD_NOW
17807 # else
17808 # ifdef DL_NOW
17809 # define LT_DLLAZY_OR_NOW DL_NOW
17810 # else
17811 # define LT_DLLAZY_OR_NOW 0
17812 # endif
17813 # endif
17814 # endif
17815 # endif
17816 #endif
17818 #ifdef __cplusplus
17819 extern "C" void exit (int);
17820 #endif
17822 void fnord() { int i=42;}
17823 int main ()
17825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17826 int status = $lt_dlunknown;
17828 if (self)
17830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17831 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17832 /* dlclose (self); */
17834 else
17835 puts (dlerror ());
17837 exit (status);
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841 (eval $ac_link) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17845 (./conftest; exit; ) >&5 2>/dev/null
17846 lt_status=$?
17847 case x$lt_status in
17848 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17849 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17850 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17851 esac
17852 else :
17853 # compilation failed
17854 lt_cv_dlopen_self_static=no
17857 rm -fr conftest*
17861 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17862 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17865 CPPFLAGS="$save_CPPFLAGS"
17866 LDFLAGS="$save_LDFLAGS"
17867 LIBS="$save_LIBS"
17869 esac
17871 case $lt_cv_dlopen_self in
17872 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17873 *) enable_dlopen_self=unknown ;;
17874 esac
17876 case $lt_cv_dlopen_self_static in
17877 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17878 *) enable_dlopen_self_static=unknown ;;
17879 esac
17883 # Report which library types will actually be built
17884 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17885 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17886 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17887 echo "${ECHO_T}$can_build_shared" >&6; }
17889 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17890 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17891 test "$can_build_shared" = "no" && enable_shared=no
17893 # On AIX, shared libraries and static libraries use the same namespace, and
17894 # are all built from PIC.
17895 case $host_os in
17896 aix3*)
17897 test "$enable_shared" = yes && enable_static=no
17898 if test -n "$RANLIB"; then
17899 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17900 postinstall_cmds='$RANLIB $lib'
17904 aix4* | aix5*)
17905 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17906 test "$enable_shared" = yes && enable_static=no
17909 esac
17910 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17911 echo "${ECHO_T}$enable_shared" >&6; }
17913 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17914 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17915 # Make sure either enable_shared or enable_static is yes.
17916 test "$enable_shared" = yes || enable_static=yes
17917 { echo "$as_me:$LINENO: result: $enable_static" >&5
17918 echo "${ECHO_T}$enable_static" >&6; }
17920 # The else clause should only fire when bootstrapping the
17921 # libtool distribution, otherwise you forgot to ship ltmain.sh
17922 # with your package, and you will get complaints that there are
17923 # no rules to generate ltmain.sh.
17924 if test -f "$ltmain"; then
17925 # See if we are running on zsh, and set the options which allow our commands through
17926 # without removal of \ escapes.
17927 if test -n "${ZSH_VERSION+set}" ; then
17928 setopt NO_GLOB_SUBST
17930 # Now quote all the things that may contain metacharacters while being
17931 # careful not to overquote the AC_SUBSTed values. We take copies of the
17932 # variables and quote the copies for generation of the libtool script.
17933 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17934 SED SHELL STRIP \
17935 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17936 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17937 deplibs_check_method reload_flag reload_cmds need_locks \
17938 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17939 lt_cv_sys_global_symbol_to_c_name_address \
17940 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17941 old_postinstall_cmds old_postuninstall_cmds \
17942 compiler \
17943 CC \
17944 LD \
17945 lt_prog_compiler_wl \
17946 lt_prog_compiler_pic \
17947 lt_prog_compiler_static \
17948 lt_prog_compiler_no_builtin_flag \
17949 export_dynamic_flag_spec \
17950 thread_safe_flag_spec \
17951 whole_archive_flag_spec \
17952 enable_shared_with_static_runtimes \
17953 old_archive_cmds \
17954 old_archive_from_new_cmds \
17955 predep_objects \
17956 postdep_objects \
17957 predeps \
17958 postdeps \
17959 compiler_lib_search_path \
17960 archive_cmds \
17961 archive_expsym_cmds \
17962 postinstall_cmds \
17963 postuninstall_cmds \
17964 old_archive_from_expsyms_cmds \
17965 allow_undefined_flag \
17966 no_undefined_flag \
17967 export_symbols_cmds \
17968 hardcode_libdir_flag_spec \
17969 hardcode_libdir_flag_spec_ld \
17970 hardcode_libdir_separator \
17971 hardcode_automatic \
17972 module_cmds \
17973 module_expsym_cmds \
17974 lt_cv_prog_compiler_c_o \
17975 exclude_expsyms \
17976 include_expsyms; do
17978 case $var in
17979 old_archive_cmds | \
17980 old_archive_from_new_cmds | \
17981 archive_cmds | \
17982 archive_expsym_cmds | \
17983 module_cmds | \
17984 module_expsym_cmds | \
17985 old_archive_from_expsyms_cmds | \
17986 export_symbols_cmds | \
17987 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17988 postinstall_cmds | postuninstall_cmds | \
17989 old_postinstall_cmds | old_postuninstall_cmds | \
17990 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17991 # Double-quote double-evaled strings.
17992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17997 esac
17998 done
18000 case $lt_echo in
18001 *'\$0 --fallback-echo"')
18002 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18004 esac
18006 cfgfile="${ofile}T"
18007 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18008 $rm -f "$cfgfile"
18009 { echo "$as_me:$LINENO: creating $ofile" >&5
18010 echo "$as_me: creating $ofile" >&6;}
18012 cat <<__EOF__ >> "$cfgfile"
18013 #! $SHELL
18015 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18016 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18017 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18019 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18020 # Free Software Foundation, Inc.
18022 # This file is part of GNU Libtool:
18023 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18025 # This program is free software; you can redistribute it and/or modify
18026 # it under the terms of the GNU General Public License as published by
18027 # the Free Software Foundation; either version 2 of the License, or
18028 # (at your option) any later version.
18030 # This program is distributed in the hope that it will be useful, but
18031 # WITHOUT ANY WARRANTY; without even the implied warranty of
18032 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18033 # General Public License for more details.
18035 # You should have received a copy of the GNU General Public License
18036 # along with this program; if not, write to the Free Software
18037 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18039 # As a special exception to the GNU General Public License, if you
18040 # distribute this file as part of a program that contains a
18041 # configuration script generated by Autoconf, you may include it under
18042 # the same distribution terms that you use for the rest of that program.
18044 # A sed program that does not truncate output.
18045 SED=$lt_SED
18047 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18048 Xsed="$SED -e 1s/^X//"
18050 # The HP-UX ksh and POSIX shell print the target directory to stdout
18051 # if CDPATH is set.
18052 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18054 # The names of the tagged configurations supported by this script.
18055 available_tags=
18057 # ### BEGIN LIBTOOL CONFIG
18059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18061 # Shell to use when invoking shell scripts.
18062 SHELL=$lt_SHELL
18064 # Whether or not to build shared libraries.
18065 build_libtool_libs=$enable_shared
18067 # Whether or not to build static libraries.
18068 build_old_libs=$enable_static
18070 # Whether or not to add -lc for building shared libraries.
18071 build_libtool_need_lc=$archive_cmds_need_lc
18073 # Whether or not to disallow shared libs when runtime libs are static
18074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18076 # Whether or not to optimize for fast installation.
18077 fast_install=$enable_fast_install
18079 # The host system.
18080 host_alias=$host_alias
18081 host=$host
18082 host_os=$host_os
18084 # The build system.
18085 build_alias=$build_alias
18086 build=$build
18087 build_os=$build_os
18089 # An echo program that does not interpret backslashes.
18090 echo=$lt_echo
18092 # The archiver.
18093 AR=$lt_AR
18094 AR_FLAGS=$lt_AR_FLAGS
18096 # A C compiler.
18097 LTCC=$lt_LTCC
18099 # LTCC compiler flags.
18100 LTCFLAGS=$lt_LTCFLAGS
18102 # A language-specific compiler.
18103 CC=$lt_compiler
18105 # Is the compiler the GNU C compiler?
18106 with_gcc=$GCC
18108 # An ERE matcher.
18109 EGREP=$lt_EGREP
18111 # The linker used to build libraries.
18112 LD=$lt_LD
18114 # Whether we need hard or soft links.
18115 LN_S=$lt_LN_S
18117 # A BSD-compatible nm program.
18118 NM=$lt_NM
18120 # A symbol stripping program
18121 STRIP=$lt_STRIP
18123 # Used to examine libraries when file_magic_cmd begins "file"
18124 MAGIC_CMD=$MAGIC_CMD
18126 # Used on cygwin: DLL creation program.
18127 DLLTOOL="$DLLTOOL"
18129 # Used on cygwin: object dumper.
18130 OBJDUMP="$OBJDUMP"
18132 # Used on cygwin: assembler.
18133 AS="$AS"
18135 # The name of the directory that contains temporary libtool files.
18136 objdir=$objdir
18138 # How to create reloadable object files.
18139 reload_flag=$lt_reload_flag
18140 reload_cmds=$lt_reload_cmds
18142 # How to pass a linker flag through the compiler.
18143 wl=$lt_lt_prog_compiler_wl
18145 # Object file suffix (normally "o").
18146 objext="$ac_objext"
18148 # Old archive suffix (normally "a").
18149 libext="$libext"
18151 # Shared library suffix (normally ".so").
18152 shrext_cmds='$shrext_cmds'
18154 # Executable file suffix (normally "").
18155 exeext="$exeext"
18157 # Additional compiler flags for building library objects.
18158 pic_flag=$lt_lt_prog_compiler_pic
18159 pic_mode=$pic_mode
18161 # What is the maximum length of a command?
18162 max_cmd_len=$lt_cv_sys_max_cmd_len
18164 # Does compiler simultaneously support -c and -o options?
18165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18167 # Must we lock files when doing compilation?
18168 need_locks=$lt_need_locks
18170 # Do we need the lib prefix for modules?
18171 need_lib_prefix=$need_lib_prefix
18173 # Do we need a version for libraries?
18174 need_version=$need_version
18176 # Whether dlopen is supported.
18177 dlopen_support=$enable_dlopen
18179 # Whether dlopen of programs is supported.
18180 dlopen_self=$enable_dlopen_self
18182 # Whether dlopen of statically linked programs is supported.
18183 dlopen_self_static=$enable_dlopen_self_static
18185 # Compiler flag to prevent dynamic linking.
18186 link_static_flag=$lt_lt_prog_compiler_static
18188 # Compiler flag to turn off builtin functions.
18189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18191 # Compiler flag to allow reflexive dlopens.
18192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18194 # Compiler flag to generate shared objects directly from archives.
18195 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18197 # Compiler flag to generate thread-safe objects.
18198 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18200 # Library versioning type.
18201 version_type=$version_type
18203 # Format of library name prefix.
18204 libname_spec=$lt_libname_spec
18206 # List of archive names. First name is the real one, the rest are links.
18207 # The last name is the one that the linker finds with -lNAME.
18208 library_names_spec=$lt_library_names_spec
18210 # The coded name of the library, if different from the real name.
18211 soname_spec=$lt_soname_spec
18213 # Commands used to build and install an old-style archive.
18214 RANLIB=$lt_RANLIB
18215 old_archive_cmds=$lt_old_archive_cmds
18216 old_postinstall_cmds=$lt_old_postinstall_cmds
18217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18219 # Create an old-style archive from a shared archive.
18220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18222 # Create a temporary old-style archive to link instead of a shared archive.
18223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18225 # Commands used to build and install a shared archive.
18226 archive_cmds=$lt_archive_cmds
18227 archive_expsym_cmds=$lt_archive_expsym_cmds
18228 postinstall_cmds=$lt_postinstall_cmds
18229 postuninstall_cmds=$lt_postuninstall_cmds
18231 # Commands used to build a loadable module (assumed same as above if empty)
18232 module_cmds=$lt_module_cmds
18233 module_expsym_cmds=$lt_module_expsym_cmds
18235 # Commands to strip libraries.
18236 old_striplib=$lt_old_striplib
18237 striplib=$lt_striplib
18239 # Dependencies to place before the objects being linked to create a
18240 # shared library.
18241 predep_objects=$lt_predep_objects
18243 # Dependencies to place after the objects being linked to create a
18244 # shared library.
18245 postdep_objects=$lt_postdep_objects
18247 # Dependencies to place before the objects being linked to create a
18248 # shared library.
18249 predeps=$lt_predeps
18251 # Dependencies to place after the objects being linked to create a
18252 # shared library.
18253 postdeps=$lt_postdeps
18255 # The library search path used internally by the compiler when linking
18256 # a shared library.
18257 compiler_lib_search_path=$lt_compiler_lib_search_path
18259 # Method to check whether dependent libraries are shared objects.
18260 deplibs_check_method=$lt_deplibs_check_method
18262 # Command to use when deplibs_check_method == file_magic.
18263 file_magic_cmd=$lt_file_magic_cmd
18265 # Flag that allows shared libraries with undefined symbols to be built.
18266 allow_undefined_flag=$lt_allow_undefined_flag
18268 # Flag that forces no undefined symbols.
18269 no_undefined_flag=$lt_no_undefined_flag
18271 # Commands used to finish a libtool library installation in a directory.
18272 finish_cmds=$lt_finish_cmds
18274 # Same as above, but a single script fragment to be evaled but not shown.
18275 finish_eval=$lt_finish_eval
18277 # Take the output of nm and produce a listing of raw symbols and C names.
18278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18280 # Transform the output of nm in a proper C declaration
18281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18283 # Transform the output of nm in a C name address pair
18284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18286 # This is the shared library runtime path variable.
18287 runpath_var=$runpath_var
18289 # This is the shared library path variable.
18290 shlibpath_var=$shlibpath_var
18292 # Is shlibpath searched before the hard-coded library search path?
18293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18295 # How to hardcode a shared library path into an executable.
18296 hardcode_action=$hardcode_action
18298 # Whether we should hardcode library paths into libraries.
18299 hardcode_into_libs=$hardcode_into_libs
18301 # Flag to hardcode \$libdir into a binary during linking.
18302 # This must work even if \$libdir does not exist.
18303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18305 # If ld is used when linking, flag to hardcode \$libdir into
18306 # a binary during linking. This must work even if \$libdir does
18307 # not exist.
18308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18310 # Whether we need a single -rpath flag with a separated argument.
18311 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18314 # resulting binary.
18315 hardcode_direct=$hardcode_direct
18317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18318 # resulting binary.
18319 hardcode_minus_L=$hardcode_minus_L
18321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18322 # the resulting binary.
18323 hardcode_shlibpath_var=$hardcode_shlibpath_var
18325 # Set to yes if building a shared library automatically hardcodes DIR into the library
18326 # and all subsequent libraries and executables linked against it.
18327 hardcode_automatic=$hardcode_automatic
18329 # Variables whose values should be saved in libtool wrapper scripts and
18330 # restored at relink time.
18331 variables_saved_for_relink="$variables_saved_for_relink"
18333 # Whether libtool must link a program against all its dependency libraries.
18334 link_all_deplibs=$link_all_deplibs
18336 # Compile-time system search path for libraries
18337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18339 # Run-time system search path for libraries
18340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18342 # Fix the shell variable \$srcfile for the compiler.
18343 fix_srcfile_path="$fix_srcfile_path"
18345 # Set to yes if exported symbols are required.
18346 always_export_symbols=$always_export_symbols
18348 # The commands to list exported symbols.
18349 export_symbols_cmds=$lt_export_symbols_cmds
18351 # The commands to extract the exported symbol list from a shared archive.
18352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18354 # Symbols that should not be listed in the preloaded symbols.
18355 exclude_expsyms=$lt_exclude_expsyms
18357 # Symbols that must always be exported.
18358 include_expsyms=$lt_include_expsyms
18360 # ### END LIBTOOL CONFIG
18362 __EOF__
18365 case $host_os in
18366 aix3*)
18367 cat <<\EOF >> "$cfgfile"
18369 # AIX sometimes has problems with the GCC collect2 program. For some
18370 # reason, if we set the COLLECT_NAMES environment variable, the problems
18371 # vanish in a puff of smoke.
18372 if test "X${COLLECT_NAMES+set}" != Xset; then
18373 COLLECT_NAMES=
18374 export COLLECT_NAMES
18378 esac
18380 # We use sed instead of cat because bash on DJGPP gets confused if
18381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18382 # text mode, it properly converts lines to CR/LF. This bash problem
18383 # is reportedly fixed, but why not run on old versions too?
18384 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18386 mv -f "$cfgfile" "$ofile" || \
18387 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18388 chmod +x "$ofile"
18390 else
18391 # If there is no Makefile yet, we rely on a make rule to execute
18392 # `config.status --recheck' to rerun these tests and create the
18393 # libtool script then.
18394 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18395 if test -f "$ltmain_in"; then
18396 test -f Makefile && make "$ltmain"
18401 ac_ext=c
18402 ac_cpp='$CPP $CPPFLAGS'
18403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18407 CC="$lt_save_CC"
18410 # Check whether --with-tags was given.
18411 if test "${with_tags+set}" = set; then
18412 withval=$with_tags; tagnames="$withval"
18416 if test -f "$ltmain" && test -n "$tagnames"; then
18417 if test ! -f "${ofile}"; then
18418 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18419 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18422 if test -z "$LTCC"; then
18423 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18424 if test -z "$LTCC"; then
18425 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18426 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18427 else
18428 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18429 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18432 if test -z "$LTCFLAGS"; then
18433 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18436 # Extract list of available tagged configurations in $ofile.
18437 # Note that this assumes the entire list is on one line.
18438 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18441 for tagname in $tagnames; do
18442 IFS="$lt_save_ifs"
18443 # Check whether tagname contains only valid characters
18444 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18445 "") ;;
18446 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18447 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18448 { (exit 1); exit 1; }; }
18450 esac
18452 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18453 then
18454 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18455 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18456 { (exit 1); exit 1; }; }
18459 # Update the list of available tags.
18460 if test -n "$tagname"; then
18461 echo appending configuration tag \"$tagname\" to $ofile
18463 case $tagname in
18464 CXX)
18465 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18466 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18467 (test "X$CXX" != "Xg++"))) ; then
18468 ac_ext=cpp
18469 ac_cpp='$CXXCPP $CPPFLAGS'
18470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18477 archive_cmds_need_lc_CXX=no
18478 allow_undefined_flag_CXX=
18479 always_export_symbols_CXX=no
18480 archive_expsym_cmds_CXX=
18481 export_dynamic_flag_spec_CXX=
18482 hardcode_direct_CXX=no
18483 hardcode_libdir_flag_spec_CXX=
18484 hardcode_libdir_flag_spec_ld_CXX=
18485 hardcode_libdir_separator_CXX=
18486 hardcode_minus_L_CXX=no
18487 hardcode_shlibpath_var_CXX=unsupported
18488 hardcode_automatic_CXX=no
18489 module_cmds_CXX=
18490 module_expsym_cmds_CXX=
18491 link_all_deplibs_CXX=unknown
18492 old_archive_cmds_CXX=$old_archive_cmds
18493 no_undefined_flag_CXX=
18494 whole_archive_flag_spec_CXX=
18495 enable_shared_with_static_runtimes_CXX=no
18497 # Dependencies to place before and after the object being linked:
18498 predep_objects_CXX=
18499 postdep_objects_CXX=
18500 predeps_CXX=
18501 postdeps_CXX=
18502 compiler_lib_search_path_CXX=
18504 # Source file extension for C++ test sources.
18505 ac_ext=cpp
18507 # Object file extension for compiled C++ test sources.
18508 objext=o
18509 objext_CXX=$objext
18511 # Code to be used in simple compile tests
18512 lt_simple_compile_test_code="int some_variable = 0;\n"
18514 # Code to be used in simple link tests
18515 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18519 # If no C compiler was specified, use CC.
18520 LTCC=${LTCC-"$CC"}
18522 # If no C compiler flags were specified, use CFLAGS.
18523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18525 # Allow CC to be a program name with arguments.
18526 compiler=$CC
18529 # save warnings/boilerplate of simple test code
18530 ac_outfile=conftest.$ac_objext
18531 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18533 _lt_compiler_boilerplate=`cat conftest.err`
18534 $rm conftest*
18536 ac_outfile=conftest.$ac_objext
18537 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18539 _lt_linker_boilerplate=`cat conftest.err`
18540 $rm conftest*
18543 # Allow CC to be a program name with arguments.
18544 lt_save_CC=$CC
18545 lt_save_LD=$LD
18546 lt_save_GCC=$GCC
18547 GCC=$GXX
18548 lt_save_with_gnu_ld=$with_gnu_ld
18549 lt_save_path_LD=$lt_cv_path_LD
18550 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18551 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18552 else
18553 $as_unset lt_cv_prog_gnu_ld
18555 if test -n "${lt_cv_path_LDCXX+set}"; then
18556 lt_cv_path_LD=$lt_cv_path_LDCXX
18557 else
18558 $as_unset lt_cv_path_LD
18560 test -z "${LDCXX+set}" || LD=$LDCXX
18561 CC=${CXX-"c++"}
18562 compiler=$CC
18563 compiler_CXX=$CC
18564 for cc_temp in $compiler""; do
18565 case $cc_temp in
18566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18568 \-*) ;;
18569 *) break;;
18570 esac
18571 done
18572 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18575 # We don't want -fno-exception wen compiling C++ code, so set the
18576 # no_builtin_flag separately
18577 if test "$GXX" = yes; then
18578 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18579 else
18580 lt_prog_compiler_no_builtin_flag_CXX=
18583 if test "$GXX" = yes; then
18584 # Set up default GNU C++ configuration
18587 # Check whether --with-gnu-ld was given.
18588 if test "${with_gnu_ld+set}" = set; then
18589 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18590 else
18591 with_gnu_ld=no
18594 ac_prog=ld
18595 if test "$GCC" = yes; then
18596 # Check if gcc -print-prog-name=ld gives a path.
18597 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18598 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18599 case $host in
18600 *-*-mingw*)
18601 # gcc leaves a trailing carriage return which upsets mingw
18602 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18604 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18605 esac
18606 case $ac_prog in
18607 # Accept absolute paths.
18608 [\\/]* | ?:[\\/]*)
18609 re_direlt='/[^/][^/]*/\.\./'
18610 # Canonicalize the pathname of ld
18611 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18612 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18613 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18614 done
18615 test -z "$LD" && LD="$ac_prog"
18618 # If it fails, then pretend we aren't using GCC.
18619 ac_prog=ld
18622 # If it is relative, then search for the first ld in PATH.
18623 with_gnu_ld=unknown
18625 esac
18626 elif test "$with_gnu_ld" = yes; then
18627 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18628 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18629 else
18630 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18631 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18633 if test "${lt_cv_path_LD+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18636 if test -z "$LD"; then
18637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18638 for ac_dir in $PATH; do
18639 IFS="$lt_save_ifs"
18640 test -z "$ac_dir" && ac_dir=.
18641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18642 lt_cv_path_LD="$ac_dir/$ac_prog"
18643 # Check to see if the program is GNU ld. I'd rather use --version,
18644 # but apparently some variants of GNU ld only accept -v.
18645 # Break only if it was the GNU/non-GNU ld that we prefer.
18646 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18647 *GNU* | *'with BFD'*)
18648 test "$with_gnu_ld" != no && break
18651 test "$with_gnu_ld" != yes && break
18653 esac
18655 done
18656 IFS="$lt_save_ifs"
18657 else
18658 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18662 LD="$lt_cv_path_LD"
18663 if test -n "$LD"; then
18664 { echo "$as_me:$LINENO: result: $LD" >&5
18665 echo "${ECHO_T}$LD" >&6; }
18666 else
18667 { echo "$as_me:$LINENO: result: no" >&5
18668 echo "${ECHO_T}no" >&6; }
18670 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18671 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18672 { (exit 1); exit 1; }; }
18673 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18674 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18675 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 else
18678 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18679 case `$LD -v 2>&1 </dev/null` in
18680 *GNU* | *'with BFD'*)
18681 lt_cv_prog_gnu_ld=yes
18684 lt_cv_prog_gnu_ld=no
18686 esac
18688 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18689 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18690 with_gnu_ld=$lt_cv_prog_gnu_ld
18694 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18695 # archiving commands below assume that GNU ld is being used.
18696 if test "$with_gnu_ld" = yes; then
18697 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18698 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'
18700 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18703 # If archive_cmds runs LD, not CC, wlarc should be empty
18704 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18705 # investigate it a little bit more. (MM)
18706 wlarc='${wl}'
18708 # ancient GNU ld didn't support --whole-archive et. al.
18709 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18710 grep 'no-whole-archive' > /dev/null; then
18711 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18712 else
18713 whole_archive_flag_spec_CXX=
18715 else
18716 with_gnu_ld=no
18717 wlarc=
18719 # A generic and very simple default shared library creation
18720 # command for GNU C++ for the case where it uses the native
18721 # linker, instead of GNU ld. If possible, this setting should
18722 # overridden to take advantage of the native linker features on
18723 # the platform it is being used on.
18724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18727 # Commands to make compiler produce verbose output that lists
18728 # what "hidden" libraries, object files and flags are used when
18729 # linking a shared library.
18730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18732 else
18733 GXX=no
18734 with_gnu_ld=no
18735 wlarc=
18738 # PORTME: fill in a description of your system's C++ link characteristics
18739 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18740 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18741 ld_shlibs_CXX=yes
18742 case $host_os in
18743 aix3*)
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18747 aix4* | aix5*)
18748 if test "$host_cpu" = ia64; then
18749 # On IA64, the linker does run time linking by default, so we don't
18750 # have to do anything special.
18751 aix_use_runtimelinking=no
18752 exp_sym_flag='-Bexport'
18753 no_entry_flag=""
18754 else
18755 aix_use_runtimelinking=no
18757 # Test if we are trying to use run time linking or normal
18758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18759 # need to do runtime linking.
18760 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18761 for ld_flag in $LDFLAGS; do
18762 case $ld_flag in
18763 *-brtl*)
18764 aix_use_runtimelinking=yes
18765 break
18767 esac
18768 done
18770 esac
18772 exp_sym_flag='-bexport'
18773 no_entry_flag='-bnoentry'
18776 # When large executables or shared objects are built, AIX ld can
18777 # have problems creating the table of contents. If linking a library
18778 # or program results in "error TOC overflow" add -mminimal-toc to
18779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18782 archive_cmds_CXX=''
18783 hardcode_direct_CXX=yes
18784 hardcode_libdir_separator_CXX=':'
18785 link_all_deplibs_CXX=yes
18787 if test "$GXX" = yes; then
18788 case $host_os in aix4.[012]|aix4.[012].*)
18789 # We only want to do this on AIX 4.2 and lower, the check
18790 # below for broken collect2 doesn't work under 4.3+
18791 collect2name=`${CC} -print-prog-name=collect2`
18792 if test -f "$collect2name" && \
18793 strings "$collect2name" | grep resolve_lib_name >/dev/null
18794 then
18795 # We have reworked collect2
18796 hardcode_direct_CXX=yes
18797 else
18798 # We have old collect2
18799 hardcode_direct_CXX=unsupported
18800 # It fails to find uninstalled libraries when the uninstalled
18801 # path is not listed in the libpath. Setting hardcode_minus_L
18802 # to unsupported forces relinking
18803 hardcode_minus_L_CXX=yes
18804 hardcode_libdir_flag_spec_CXX='-L$libdir'
18805 hardcode_libdir_separator_CXX=
18808 esac
18809 shared_flag='-shared'
18810 if test "$aix_use_runtimelinking" = yes; then
18811 shared_flag="$shared_flag "'${wl}-G'
18813 else
18814 # not using gcc
18815 if test "$host_cpu" = ia64; then
18816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18817 # chokes on -Wl,-G. The following line is correct:
18818 shared_flag='-G'
18819 else
18820 if test "$aix_use_runtimelinking" = yes; then
18821 shared_flag='${wl}-G'
18822 else
18823 shared_flag='${wl}-bM:SRE'
18828 # It seems that -bexpall does not export symbols beginning with
18829 # underscore (_), so it is better to generate a list of symbols to export.
18830 always_export_symbols_CXX=yes
18831 if test "$aix_use_runtimelinking" = yes; then
18832 # Warning - without using the other runtime loading flags (-brtl),
18833 # -berok will link without error, but may produce a broken library.
18834 allow_undefined_flag_CXX='-berok'
18835 # Determine the default libpath from the value encoded in an empty executable.
18836 cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h. */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18844 main ()
18848 return 0;
18850 _ACEOF
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_link") 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18866 { (case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (case "(($ac_try" in
18877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18879 esac
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_try") 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18888 # Check for a 64-bit object if we didn't find anything.
18889 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; }
18890 }'`; fi
18891 else
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18898 rm -f core conftest.err conftest.$ac_objext \
18899 conftest$ac_exeext conftest.$ac_ext
18900 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18902 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18904 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"
18905 else
18906 if test "$host_cpu" = ia64; then
18907 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18908 allow_undefined_flag_CXX="-z nodefs"
18909 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"
18910 else
18911 # Determine the default libpath from the value encoded in an empty executable.
18912 cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h. */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18920 main ()
18924 return 0;
18926 _ACEOF
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_link") 2>conftest.er1
18935 ac_status=$?
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18942 { (case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945 esac
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest$ac_exeext'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18964 # Check for a 64-bit object if we didn't find anything.
18965 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; }
18966 }'`; fi
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18974 rm -f core conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18978 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18979 # Warning - without using the other run time loading flags,
18980 # -berok will link without error, but may produce a broken library.
18981 no_undefined_flag_CXX=' ${wl}-bernotok'
18982 allow_undefined_flag_CXX=' ${wl}-berok'
18983 # Exported symbols can be pulled into shared objects from archives
18984 whole_archive_flag_spec_CXX='$convenience'
18985 archive_cmds_need_lc_CXX=yes
18986 # This is similar to how AIX traditionally builds its shared libraries.
18987 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'
18992 beos*)
18993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18994 allow_undefined_flag_CXX=unsupported
18995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18996 # support --undefined. This deserves some investigation. FIXME
18997 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18998 else
18999 ld_shlibs_CXX=no
19003 chorus*)
19004 case $cc_basename in
19006 # FIXME: insert proper C++ library support
19007 ld_shlibs_CXX=no
19009 esac
19012 cygwin* | mingw* | pw32*)
19013 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19014 # as there is no search path for DLLs.
19015 hardcode_libdir_flag_spec_CXX='-L$libdir'
19016 allow_undefined_flag_CXX=unsupported
19017 always_export_symbols_CXX=no
19018 enable_shared_with_static_runtimes_CXX=yes
19020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19021 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'
19022 # If the export-symbols file already is a .def file (1st line
19023 # is EXPORTS), use it as is; otherwise, prepend...
19024 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19025 cp $export_symbols $output_objdir/$soname.def;
19026 else
19027 echo EXPORTS > $output_objdir/$soname.def;
19028 cat $export_symbols >> $output_objdir/$soname.def;
19030 $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'
19031 else
19032 ld_shlibs_CXX=no
19035 darwin* | rhapsody*)
19036 case $host_os in
19037 rhapsody* | darwin1.[012])
19038 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19040 *) # Darwin 1.3 on
19041 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19042 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19043 else
19044 case ${MACOSX_DEPLOYMENT_TARGET} in
19045 10.[012])
19046 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19048 10.*)
19049 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19051 esac
19054 esac
19055 archive_cmds_need_lc_CXX=no
19056 hardcode_direct_CXX=no
19057 hardcode_automatic_CXX=yes
19058 hardcode_shlibpath_var_CXX=unsupported
19059 whole_archive_flag_spec_CXX=''
19060 link_all_deplibs_CXX=yes
19062 if test "$GXX" = yes ; then
19063 lt_int_apple_cc_single_mod=no
19064 output_verbose_link_cmd='echo'
19065 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19066 lt_int_apple_cc_single_mod=yes
19068 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19069 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19070 else
19071 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'
19073 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19075 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19076 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}'
19077 else
19078 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}'
19080 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}'
19081 else
19082 case $cc_basename in
19083 xlc*)
19084 output_verbose_link_cmd='echo'
19085 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'
19086 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19088 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}'
19089 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}'
19092 ld_shlibs_CXX=no
19094 esac
19098 dgux*)
19099 case $cc_basename in
19100 ec++*)
19101 # FIXME: insert proper C++ library support
19102 ld_shlibs_CXX=no
19104 ghcx*)
19105 # Green Hills C++ Compiler
19106 # FIXME: insert proper C++ library support
19107 ld_shlibs_CXX=no
19110 # FIXME: insert proper C++ library support
19111 ld_shlibs_CXX=no
19113 esac
19115 freebsd[12]*)
19116 # C++ shared libraries reported to be fairly broken before switch to ELF
19117 ld_shlibs_CXX=no
19119 freebsd-elf*)
19120 archive_cmds_need_lc_CXX=no
19122 freebsd* | kfreebsd*-gnu | dragonfly*)
19123 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19124 # conventions
19125 ld_shlibs_CXX=yes
19127 gnu*)
19129 hpux9*)
19130 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19131 hardcode_libdir_separator_CXX=:
19132 export_dynamic_flag_spec_CXX='${wl}-E'
19133 hardcode_direct_CXX=yes
19134 hardcode_minus_L_CXX=yes # Not in the search PATH,
19135 # but as the default
19136 # location of the library.
19138 case $cc_basename in
19139 CC*)
19140 # FIXME: insert proper C++ library support
19141 ld_shlibs_CXX=no
19143 aCC*)
19144 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'
19145 # Commands to make compiler produce verbose output that lists
19146 # what "hidden" libraries, object files and flags are used when
19147 # linking a shared library.
19149 # There doesn't appear to be a way to prevent this compiler from
19150 # explicitly linking system object files so we need to strip them
19151 # from the output so that they don't get included in the library
19152 # dependencies.
19153 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'
19156 if test "$GXX" = yes; then
19157 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'
19158 else
19159 # FIXME: insert proper C++ library support
19160 ld_shlibs_CXX=no
19163 esac
19165 hpux10*|hpux11*)
19166 if test $with_gnu_ld = no; then
19167 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19168 hardcode_libdir_separator_CXX=:
19170 case $host_cpu in
19171 hppa*64*|ia64*)
19172 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19175 export_dynamic_flag_spec_CXX='${wl}-E'
19177 esac
19179 case $host_cpu in
19180 hppa*64*|ia64*)
19181 hardcode_direct_CXX=no
19182 hardcode_shlibpath_var_CXX=no
19185 hardcode_direct_CXX=yes
19186 hardcode_minus_L_CXX=yes # Not in the search PATH,
19187 # but as the default
19188 # location of the library.
19190 esac
19192 case $cc_basename in
19193 CC*)
19194 # FIXME: insert proper C++ library support
19195 ld_shlibs_CXX=no
19197 aCC*)
19198 case $host_cpu in
19199 hppa*64*)
19200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19202 ia64*)
19203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19208 esac
19209 # Commands to make compiler produce verbose output that lists
19210 # what "hidden" libraries, object files and flags are used when
19211 # linking a shared library.
19213 # There doesn't appear to be a way to prevent this compiler from
19214 # explicitly linking system object files so we need to strip them
19215 # from the output so that they don't get included in the library
19216 # dependencies.
19217 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'
19220 if test "$GXX" = yes; then
19221 if test $with_gnu_ld = no; then
19222 case $host_cpu in
19223 hppa*64*)
19224 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19226 ia64*)
19227 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 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'
19232 esac
19234 else
19235 # FIXME: insert proper C++ library support
19236 ld_shlibs_CXX=no
19239 esac
19241 interix3*)
19242 hardcode_direct_CXX=no
19243 hardcode_shlibpath_var_CXX=no
19244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19245 export_dynamic_flag_spec_CXX='${wl}-E'
19246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19247 # Instead, shared libraries are loaded at an image base (0x10000000 by
19248 # default) and relocated if they conflict, which is a slow very memory
19249 # consuming and fragmenting process. To avoid this, we pick a random,
19250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19252 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'
19253 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'
19255 irix5* | irix6*)
19256 case $cc_basename in
19257 CC*)
19258 # SGI C++
19259 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'
19261 # Archives containing C++ object files must be created using
19262 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19263 # necessary to make sure instantiated templates are included
19264 # in the archive.
19265 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19268 if test "$GXX" = yes; then
19269 if test "$with_gnu_ld" = no; then
19270 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'
19271 else
19272 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'
19275 link_all_deplibs_CXX=yes
19277 esac
19278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19279 hardcode_libdir_separator_CXX=:
19281 linux*)
19282 case $cc_basename in
19283 KCC*)
19284 # Kuck and Associates, Inc. (KAI) C++ Compiler
19286 # KCC will only create a shared library if the output file
19287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19288 # to its proper name (with version) after linking.
19289 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'
19290 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'
19291 # Commands to make compiler produce verbose output that lists
19292 # what "hidden" libraries, object files and flags are used when
19293 # linking a shared library.
19295 # There doesn't appear to be a way to prevent this compiler from
19296 # explicitly linking system object files so we need to strip them
19297 # from the output so that they don't get included in the library
19298 # dependencies.
19299 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'
19301 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19304 # Archives containing C++ object files must be created using
19305 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19306 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19308 icpc*)
19309 # Intel C++
19310 with_gnu_ld=yes
19311 # version 8.0 and above of icpc choke on multiply defined symbols
19312 # if we add $predep_objects and $postdep_objects, however 7.1 and
19313 # earlier do not add the objects themselves.
19314 case `$CC -V 2>&1` in
19315 *"Version 7."*)
19316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317 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'
19319 *) # Version 8.0 or newer
19320 tmp_idyn=
19321 case $host_cpu in
19322 ia64*) tmp_idyn=' -i_dynamic';;
19323 esac
19324 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 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'
19327 esac
19328 archive_cmds_need_lc_CXX=no
19329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19333 pgCC*)
19334 # Portland Group C++ compiler
19335 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19336 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'
19338 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19339 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19340 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'
19342 cxx*)
19343 # Compaq C++
19344 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 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'
19347 runpath_var=LD_RUN_PATH
19348 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19349 hardcode_libdir_separator_CXX=:
19351 # Commands to make compiler produce verbose output that lists
19352 # what "hidden" libraries, object files and flags are used when
19353 # linking a shared library.
19355 # There doesn't appear to be a way to prevent this compiler from
19356 # explicitly linking system object files so we need to strip them
19357 # from the output so that they don't get included in the library
19358 # dependencies.
19359 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'
19361 esac
19363 lynxos*)
19364 # FIXME: insert proper C++ library support
19365 ld_shlibs_CXX=no
19367 m88k*)
19368 # FIXME: insert proper C++ library support
19369 ld_shlibs_CXX=no
19371 mvs*)
19372 case $cc_basename in
19373 cxx*)
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19378 # FIXME: insert proper C++ library support
19379 ld_shlibs_CXX=no
19381 esac
19383 netbsd*)
19384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19385 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19386 wlarc=
19387 hardcode_libdir_flag_spec_CXX='-R$libdir'
19388 hardcode_direct_CXX=yes
19389 hardcode_shlibpath_var_CXX=no
19391 # Workaround some broken pre-1.5 toolchains
19392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19394 openbsd2*)
19395 # C++ shared libraries are fairly broken
19396 ld_shlibs_CXX=no
19398 openbsd*)
19399 hardcode_direct_CXX=yes
19400 hardcode_shlibpath_var_CXX=no
19401 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19402 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19404 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19405 export_dynamic_flag_spec_CXX='${wl}-E'
19406 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19408 output_verbose_link_cmd='echo'
19410 osf3*)
19411 case $cc_basename in
19412 KCC*)
19413 # Kuck and Associates, Inc. (KAI) C++ Compiler
19415 # KCC will only create a shared library if the output file
19416 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19417 # to its proper name (with version) after linking.
19418 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'
19420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19421 hardcode_libdir_separator_CXX=:
19423 # Archives containing C++ object files must be created using
19424 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19425 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19428 RCC*)
19429 # Rational C++ 2.4.1
19430 # FIXME: insert proper C++ library support
19431 ld_shlibs_CXX=no
19433 cxx*)
19434 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19435 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'
19437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19438 hardcode_libdir_separator_CXX=:
19440 # Commands to make compiler produce verbose output that lists
19441 # what "hidden" libraries, object files and flags are used when
19442 # linking a shared library.
19444 # There doesn't appear to be a way to prevent this compiler from
19445 # explicitly linking system object files so we need to strip them
19446 # from the output so that they don't get included in the library
19447 # dependencies.
19448 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'
19451 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19452 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19453 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'
19455 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19456 hardcode_libdir_separator_CXX=:
19458 # Commands to make compiler produce verbose output that lists
19459 # what "hidden" libraries, object files and flags are used when
19460 # linking a shared library.
19461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19463 else
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19468 esac
19470 osf4* | osf5*)
19471 case $cc_basename in
19472 KCC*)
19473 # Kuck and Associates, Inc. (KAI) C++ Compiler
19475 # KCC will only create a shared library if the output file
19476 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19477 # to its proper name (with version) after linking.
19478 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'
19480 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19481 hardcode_libdir_separator_CXX=:
19483 # Archives containing C++ object files must be created using
19484 # the KAI C++ compiler.
19485 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19487 RCC*)
19488 # Rational C++ 2.4.1
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19492 cxx*)
19493 allow_undefined_flag_CXX=' -expect_unresolved \*'
19494 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'
19495 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19496 echo "-hidden">> $lib.exp~
19497 $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~
19498 $rm $lib.exp'
19500 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19501 hardcode_libdir_separator_CXX=:
19503 # Commands to make compiler produce verbose output that lists
19504 # what "hidden" libraries, object files and flags are used when
19505 # linking a shared library.
19507 # There doesn't appear to be a way to prevent this compiler from
19508 # explicitly linking system object files so we need to strip them
19509 # from the output so that they don't get included in the library
19510 # dependencies.
19511 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'
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19515 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19516 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'
19518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19519 hardcode_libdir_separator_CXX=:
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19526 else
19527 # FIXME: insert proper C++ library support
19528 ld_shlibs_CXX=no
19531 esac
19533 psos*)
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19537 sunos4*)
19538 case $cc_basename in
19539 CC*)
19540 # Sun C++ 4.x
19541 # FIXME: insert proper C++ library support
19542 ld_shlibs_CXX=no
19544 lcc*)
19545 # Lucid
19546 # FIXME: insert proper C++ library support
19547 ld_shlibs_CXX=no
19550 # FIXME: insert proper C++ library support
19551 ld_shlibs_CXX=no
19553 esac
19555 solaris*)
19556 case $cc_basename in
19557 CC*)
19558 # Sun C++ 4.2, 5.x and Centerline C++
19559 archive_cmds_need_lc_CXX=yes
19560 no_undefined_flag_CXX=' -zdefs'
19561 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19562 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19563 $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'
19565 hardcode_libdir_flag_spec_CXX='-R$libdir'
19566 hardcode_shlibpath_var_CXX=no
19567 case $host_os in
19568 solaris2.[0-5] | solaris2.[0-5].*) ;;
19570 # The C++ compiler is used as linker so we must use $wl
19571 # flag to pass the commands to the underlying system
19572 # linker. We must also pass each convience library through
19573 # to the system linker between allextract/defaultextract.
19574 # The C++ compiler will combine linker options so we
19575 # cannot just pass the convience library names through
19576 # without $wl.
19577 # Supported since Solaris 2.6 (maybe 2.5.1?)
19578 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'
19580 esac
19581 link_all_deplibs_CXX=yes
19583 output_verbose_link_cmd='echo'
19585 # Archives containing C++ object files must be created using
19586 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19587 # necessary to make sure instantiated templates are included
19588 # in the archive.
19589 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19591 gcx*)
19592 # Green Hills C++ Compiler
19593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19595 # The C++ compiler must be used to create the archive.
19596 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19599 # GNU C++ compiler with Solaris linker
19600 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19601 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19602 if $CC --version | grep -v '^2\.7' > /dev/null; then
19603 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19604 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19605 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19607 # Commands to make compiler produce verbose output that lists
19608 # what "hidden" libraries, object files and flags are used when
19609 # linking a shared library.
19610 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19611 else
19612 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19613 # platform.
19614 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19615 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19616 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19618 # Commands to make compiler produce verbose output that lists
19619 # what "hidden" libraries, object files and flags are used when
19620 # linking a shared library.
19621 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19624 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19627 esac
19629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19630 no_undefined_flag_CXX='${wl}-z,text'
19631 archive_cmds_need_lc_CXX=no
19632 hardcode_shlibpath_var_CXX=no
19633 runpath_var='LD_RUN_PATH'
19635 case $cc_basename in
19636 CC*)
19637 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19641 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19642 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19644 esac
19646 sysv5* | sco3.2v5* | sco5v6*)
19647 # Note: We can NOT use -z defs as we might desire, because we do not
19648 # link with -lc, and that would cause any symbols used from libc to
19649 # always be unresolved, which means just about no library would
19650 # ever link correctly. If we're not using GNU ld we use -z text
19651 # though, which does catch some bad symbols but isn't as heavy-handed
19652 # as -z defs.
19653 # For security reasons, it is highly recommended that you always
19654 # use absolute paths for naming shared libraries, and exclude the
19655 # DT_RUNPATH tag from executables and libraries. But doing so
19656 # requires that you compile everything twice, which is a pain.
19657 # So that behaviour is only enabled if SCOABSPATH is set to a
19658 # non-empty value in the environment. Most likely only useful for
19659 # creating official distributions of packages.
19660 # This is a hack until libtool officially supports absolute path
19661 # names for shared libraries.
19662 no_undefined_flag_CXX='${wl}-z,text'
19663 allow_undefined_flag_CXX='${wl}-z,nodefs'
19664 archive_cmds_need_lc_CXX=no
19665 hardcode_shlibpath_var_CXX=no
19666 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19667 hardcode_libdir_separator_CXX=':'
19668 link_all_deplibs_CXX=yes
19669 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19670 runpath_var='LD_RUN_PATH'
19672 case $cc_basename in
19673 CC*)
19674 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19675 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19678 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19679 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681 esac
19683 tandem*)
19684 case $cc_basename in
19685 NCC*)
19686 # NonStop-UX NCC 3.20
19687 # FIXME: insert proper C++ library support
19688 ld_shlibs_CXX=no
19691 # FIXME: insert proper C++ library support
19692 ld_shlibs_CXX=no
19694 esac
19696 vxworks*)
19697 # FIXME: insert proper C++ library support
19698 ld_shlibs_CXX=no
19701 # FIXME: insert proper C++ library support
19702 ld_shlibs_CXX=no
19704 esac
19705 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19706 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19707 test "$ld_shlibs_CXX" = no && can_build_shared=no
19709 GCC_CXX="$GXX"
19710 LD_CXX="$LD"
19713 cat > conftest.$ac_ext <<EOF
19714 class Foo
19716 public:
19717 Foo (void) { a = 0; }
19718 private:
19719 int a;
19723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19724 (eval $ac_compile) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; then
19728 # Parse the compiler output and extract the necessary
19729 # objects, libraries and library flags.
19731 # Sentinel used to keep track of whether or not we are before
19732 # the conftest object file.
19733 pre_test_object_deps_done=no
19735 # The `*' in the case matches for architectures that use `case' in
19736 # $output_verbose_cmd can trigger glob expansion during the loop
19737 # eval without this substitution.
19738 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19740 for p in `eval $output_verbose_link_cmd`; do
19741 case $p in
19743 -L* | -R* | -l*)
19744 # Some compilers place space between "-{L,R}" and the path.
19745 # Remove the space.
19746 if test $p = "-L" \
19747 || test $p = "-R"; then
19748 prev=$p
19749 continue
19750 else
19751 prev=
19754 if test "$pre_test_object_deps_done" = no; then
19755 case $p in
19756 -L* | -R*)
19757 # Internal compiler library paths should come after those
19758 # provided the user. The postdeps already come after the
19759 # user supplied libs so there is no need to process them.
19760 if test -z "$compiler_lib_search_path_CXX"; then
19761 compiler_lib_search_path_CXX="${prev}${p}"
19762 else
19763 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19766 # The "-l" case would never come before the object being
19767 # linked, so don't bother handling this case.
19768 esac
19769 else
19770 if test -z "$postdeps_CXX"; then
19771 postdeps_CXX="${prev}${p}"
19772 else
19773 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19778 *.$objext)
19779 # This assumes that the test object file only shows up
19780 # once in the compiler output.
19781 if test "$p" = "conftest.$objext"; then
19782 pre_test_object_deps_done=yes
19783 continue
19786 if test "$pre_test_object_deps_done" = no; then
19787 if test -z "$predep_objects_CXX"; then
19788 predep_objects_CXX="$p"
19789 else
19790 predep_objects_CXX="$predep_objects_CXX $p"
19792 else
19793 if test -z "$postdep_objects_CXX"; then
19794 postdep_objects_CXX="$p"
19795 else
19796 postdep_objects_CXX="$postdep_objects_CXX $p"
19801 *) ;; # Ignore the rest.
19803 esac
19804 done
19806 # Clean up.
19807 rm -f a.out a.exe
19808 else
19809 echo "libtool.m4: error: problem compiling CXX test program"
19812 $rm -f confest.$objext
19814 # PORTME: override above test on systems where it is broken
19815 case $host_os in
19816 interix3*)
19817 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19818 # hack all around it, let's just trust "g++" to DTRT.
19819 predep_objects_CXX=
19820 postdep_objects_CXX=
19821 postdeps_CXX=
19824 solaris*)
19825 case $cc_basename in
19826 CC*)
19827 # Adding this requires a known-good setup of shared libraries for
19828 # Sun compiler versions before 5.6, else PIC objects from an old
19829 # archive will be linked into the output, leading to subtle bugs.
19830 postdeps_CXX='-lCstd -lCrun'
19832 esac
19834 esac
19837 case " $postdeps_CXX " in
19838 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19839 esac
19841 lt_prog_compiler_wl_CXX=
19842 lt_prog_compiler_pic_CXX=
19843 lt_prog_compiler_static_CXX=
19845 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19846 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19848 # C++ specific cases for pic, static, wl, etc.
19849 if test "$GXX" = yes; then
19850 lt_prog_compiler_wl_CXX='-Wl,'
19851 lt_prog_compiler_static_CXX='-static'
19853 case $host_os in
19854 aix*)
19855 # All AIX code is PIC.
19856 if test "$host_cpu" = ia64; then
19857 # AIX 5 now supports IA64 processor
19858 lt_prog_compiler_static_CXX='-Bstatic'
19861 amigaos*)
19862 # FIXME: we need at least 68020 code to build shared libraries, but
19863 # adding the `-m68020' flag to GCC prevents building anything better,
19864 # like `-m68040'.
19865 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19867 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19868 # PIC is the default for these OSes.
19870 mingw* | os2* | pw32*)
19871 # This hack is so that the source file can tell whether it is being
19872 # built for inclusion in a dll (and should export symbols for example).
19873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19875 darwin* | rhapsody*)
19876 # PIC is the default on this platform
19877 # Common symbols not allowed in MH_DYLIB files
19878 lt_prog_compiler_pic_CXX='-fno-common'
19880 *djgpp*)
19881 # DJGPP does not support shared libraries at all
19882 lt_prog_compiler_pic_CXX=
19884 interix3*)
19885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19886 # Instead, we relocate shared libraries at runtime.
19888 sysv4*MP*)
19889 if test -d /usr/nec; then
19890 lt_prog_compiler_pic_CXX=-Kconform_pic
19893 hpux*)
19894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19895 # not for PA HP-UX.
19896 case $host_cpu in
19897 hppa*64*|ia64*)
19900 lt_prog_compiler_pic_CXX='-fPIC'
19902 esac
19905 lt_prog_compiler_pic_CXX='-fPIC'
19907 esac
19908 else
19909 case $host_os in
19910 aix4* | aix5*)
19911 # All AIX code is PIC.
19912 if test "$host_cpu" = ia64; then
19913 # AIX 5 now supports IA64 processor
19914 lt_prog_compiler_static_CXX='-Bstatic'
19915 else
19916 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19919 chorus*)
19920 case $cc_basename in
19921 cxch68*)
19922 # Green Hills C++ Compiler
19923 # _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"
19925 esac
19927 darwin*)
19928 # PIC is the default on this platform
19929 # Common symbols not allowed in MH_DYLIB files
19930 case $cc_basename in
19931 xlc*)
19932 lt_prog_compiler_pic_CXX='-qnocommon'
19933 lt_prog_compiler_wl_CXX='-Wl,'
19935 esac
19937 dgux*)
19938 case $cc_basename in
19939 ec++*)
19940 lt_prog_compiler_pic_CXX='-KPIC'
19942 ghcx*)
19943 # Green Hills C++ Compiler
19944 lt_prog_compiler_pic_CXX='-pic'
19948 esac
19950 freebsd* | kfreebsd*-gnu | dragonfly*)
19951 # FreeBSD uses GNU C++
19953 hpux9* | hpux10* | hpux11*)
19954 case $cc_basename in
19955 CC*)
19956 lt_prog_compiler_wl_CXX='-Wl,'
19957 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19958 if test "$host_cpu" != ia64; then
19959 lt_prog_compiler_pic_CXX='+Z'
19962 aCC*)
19963 lt_prog_compiler_wl_CXX='-Wl,'
19964 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19965 case $host_cpu in
19966 hppa*64*|ia64*)
19967 # +Z the default
19970 lt_prog_compiler_pic_CXX='+Z'
19972 esac
19976 esac
19978 interix*)
19979 # This is c89, which is MS Visual C++ (no shared libs)
19980 # Anyone wants to do a port?
19982 irix5* | irix6* | nonstopux*)
19983 case $cc_basename in
19984 CC*)
19985 lt_prog_compiler_wl_CXX='-Wl,'
19986 lt_prog_compiler_static_CXX='-non_shared'
19987 # CC pic flag -KPIC is the default.
19991 esac
19993 linux*)
19994 case $cc_basename in
19995 KCC*)
19996 # KAI C++ Compiler
19997 lt_prog_compiler_wl_CXX='--backend -Wl,'
19998 lt_prog_compiler_pic_CXX='-fPIC'
20000 icpc* | ecpc*)
20001 # Intel C++
20002 lt_prog_compiler_wl_CXX='-Wl,'
20003 lt_prog_compiler_pic_CXX='-KPIC'
20004 lt_prog_compiler_static_CXX='-static'
20006 pgCC*)
20007 # Portland Group C++ compiler.
20008 lt_prog_compiler_wl_CXX='-Wl,'
20009 lt_prog_compiler_pic_CXX='-fpic'
20010 lt_prog_compiler_static_CXX='-Bstatic'
20012 cxx*)
20013 # Compaq C++
20014 # Make sure the PIC flag is empty. It appears that all Alpha
20015 # Linux and Compaq Tru64 Unix objects are PIC.
20016 lt_prog_compiler_pic_CXX=
20017 lt_prog_compiler_static_CXX='-non_shared'
20021 esac
20023 lynxos*)
20025 m88k*)
20027 mvs*)
20028 case $cc_basename in
20029 cxx*)
20030 lt_prog_compiler_pic_CXX='-W c,exportall'
20034 esac
20036 netbsd*)
20038 osf3* | osf4* | osf5*)
20039 case $cc_basename in
20040 KCC*)
20041 lt_prog_compiler_wl_CXX='--backend -Wl,'
20043 RCC*)
20044 # Rational C++ 2.4.1
20045 lt_prog_compiler_pic_CXX='-pic'
20047 cxx*)
20048 # Digital/Compaq C++
20049 lt_prog_compiler_wl_CXX='-Wl,'
20050 # Make sure the PIC flag is empty. It appears that all Alpha
20051 # Linux and Compaq Tru64 Unix objects are PIC.
20052 lt_prog_compiler_pic_CXX=
20053 lt_prog_compiler_static_CXX='-non_shared'
20057 esac
20059 psos*)
20061 solaris*)
20062 case $cc_basename in
20063 CC*)
20064 # Sun C++ 4.2, 5.x and Centerline C++
20065 lt_prog_compiler_pic_CXX='-KPIC'
20066 lt_prog_compiler_static_CXX='-Bstatic'
20067 lt_prog_compiler_wl_CXX='-Qoption ld '
20069 gcx*)
20070 # Green Hills C++ Compiler
20071 lt_prog_compiler_pic_CXX='-PIC'
20075 esac
20077 sunos4*)
20078 case $cc_basename in
20079 CC*)
20080 # Sun C++ 4.x
20081 lt_prog_compiler_pic_CXX='-pic'
20082 lt_prog_compiler_static_CXX='-Bstatic'
20084 lcc*)
20085 # Lucid
20086 lt_prog_compiler_pic_CXX='-pic'
20090 esac
20092 tandem*)
20093 case $cc_basename in
20094 NCC*)
20095 # NonStop-UX NCC 3.20
20096 lt_prog_compiler_pic_CXX='-KPIC'
20100 esac
20102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20103 case $cc_basename in
20104 CC*)
20105 lt_prog_compiler_wl_CXX='-Wl,'
20106 lt_prog_compiler_pic_CXX='-KPIC'
20107 lt_prog_compiler_static_CXX='-Bstatic'
20109 esac
20111 vxworks*)
20114 lt_prog_compiler_can_build_shared_CXX=no
20116 esac
20119 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20120 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20123 # Check to make sure the PIC flag actually works.
20125 if test -n "$lt_prog_compiler_pic_CXX"; then
20127 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20128 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20129 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132 lt_prog_compiler_pic_works_CXX=no
20133 ac_outfile=conftest.$ac_objext
20134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20135 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20136 # Insert the option either (1) after the last *FLAGS variable, or
20137 # (2) before a word containing "conftest.", or (3) at the end.
20138 # Note that $ac_compile itself does not contain backslashes and begins
20139 # with a dollar sign (not a hyphen), so the echo should work correctly.
20140 # The option is referenced via a variable to avoid confusing sed.
20141 lt_compile=`echo "$ac_compile" | $SED \
20142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20144 -e 's:$: $lt_compiler_flag:'`
20145 (eval echo "\"\$as_me:20145: $lt_compile\"" >&5)
20146 (eval "$lt_compile" 2>conftest.err)
20147 ac_status=$?
20148 cat conftest.err >&5
20149 echo "$as_me:20149: \$? = $ac_status" >&5
20150 if (exit $ac_status) && test -s "$ac_outfile"; then
20151 # The compiler can only warn and ignore the option if not recognized
20152 # So say no if there are warnings other than the usual output.
20153 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20156 lt_prog_compiler_pic_works_CXX=yes
20159 $rm conftest*
20162 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20163 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20165 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20166 case $lt_prog_compiler_pic_CXX in
20167 "" | " "*) ;;
20168 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20169 esac
20170 else
20171 lt_prog_compiler_pic_CXX=
20172 lt_prog_compiler_can_build_shared_CXX=no
20176 case $host_os in
20177 # For platforms which do not support PIC, -DPIC is meaningless:
20178 *djgpp*)
20179 lt_prog_compiler_pic_CXX=
20182 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20184 esac
20187 # Check to make sure the static flag actually works.
20189 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20190 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20191 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20192 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 else
20195 lt_prog_compiler_static_works_CXX=no
20196 save_LDFLAGS="$LDFLAGS"
20197 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20198 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20200 # The linker can only warn and ignore the option if not recognized
20201 # So say no if there are warnings
20202 if test -s conftest.err; then
20203 # Append any errors to the config.log.
20204 cat conftest.err 1>&5
20205 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20207 if diff conftest.exp conftest.er2 >/dev/null; then
20208 lt_prog_compiler_static_works_CXX=yes
20210 else
20211 lt_prog_compiler_static_works_CXX=yes
20214 $rm conftest*
20215 LDFLAGS="$save_LDFLAGS"
20218 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20219 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20221 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20223 else
20224 lt_prog_compiler_static_CXX=
20228 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20229 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20230 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233 lt_cv_prog_compiler_c_o_CXX=no
20234 $rm -r conftest 2>/dev/null
20235 mkdir conftest
20236 cd conftest
20237 mkdir out
20238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20240 lt_compiler_flag="-o out/conftest2.$ac_objext"
20241 # Insert the option either (1) after the last *FLAGS variable, or
20242 # (2) before a word containing "conftest.", or (3) at the end.
20243 # Note that $ac_compile itself does not contain backslashes and begins
20244 # with a dollar sign (not a hyphen), so the echo should work correctly.
20245 lt_compile=`echo "$ac_compile" | $SED \
20246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20248 -e 's:$: $lt_compiler_flag:'`
20249 (eval echo "\"\$as_me:20249: $lt_compile\"" >&5)
20250 (eval "$lt_compile" 2>out/conftest.err)
20251 ac_status=$?
20252 cat out/conftest.err >&5
20253 echo "$as_me:20253: \$? = $ac_status" >&5
20254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20255 then
20256 # The compiler can only warn and ignore the option if not recognized
20257 # So say no if there are warnings
20258 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20261 lt_cv_prog_compiler_c_o_CXX=yes
20264 chmod u+w . 2>&5
20265 $rm conftest*
20266 # SGI C++ compiler will create directory out/ii_files/ for
20267 # template instantiation
20268 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20269 $rm out/* && rmdir out
20270 cd ..
20271 rmdir conftest
20272 $rm conftest*
20275 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20276 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20279 hard_links="nottested"
20280 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20281 # do not overwrite the value of need_locks provided by the user
20282 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20283 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20284 hard_links=yes
20285 $rm conftest*
20286 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20287 touch conftest.a
20288 ln conftest.a conftest.b 2>&5 || hard_links=no
20289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20290 { echo "$as_me:$LINENO: result: $hard_links" >&5
20291 echo "${ECHO_T}$hard_links" >&6; }
20292 if test "$hard_links" = no; then
20293 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20294 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20295 need_locks=warn
20297 else
20298 need_locks=no
20301 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20302 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20304 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20305 case $host_os in
20306 aix4* | aix5*)
20307 # If we're using GNU nm, then we don't want the "-C" option.
20308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20309 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20310 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'
20311 else
20312 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'
20315 pw32*)
20316 export_symbols_cmds_CXX="$ltdll_cmds"
20318 cygwin* | mingw*)
20319 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'
20322 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20324 esac
20326 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20327 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20328 test "$ld_shlibs_CXX" = no && can_build_shared=no
20331 # Do we need to explicitly link libc?
20333 case "x$archive_cmds_need_lc_CXX" in
20334 x|xyes)
20335 # Assume -lc should be added
20336 archive_cmds_need_lc_CXX=yes
20338 if test "$enable_shared" = yes && test "$GCC" = yes; then
20339 case $archive_cmds_CXX in
20340 *'~'*)
20341 # FIXME: we may have to deal with multi-command sequences.
20343 '$CC '*)
20344 # Test whether the compiler implicitly links with -lc since on some
20345 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20346 # to ld, don't add -lc before -lgcc.
20347 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20348 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20349 $rm conftest*
20350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20353 (eval $ac_compile) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } 2>conftest.err; then
20357 soname=conftest
20358 lib=conftest
20359 libobjs=conftest.$ac_objext
20360 deplibs=
20361 wl=$lt_prog_compiler_wl_CXX
20362 pic_flag=$lt_prog_compiler_pic_CXX
20363 compiler_flags=-v
20364 linker_flags=-v
20365 verstring=
20366 output_objdir=.
20367 libname=conftest
20368 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20369 allow_undefined_flag_CXX=
20370 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20371 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }
20375 then
20376 archive_cmds_need_lc_CXX=no
20377 else
20378 archive_cmds_need_lc_CXX=yes
20380 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20381 else
20382 cat conftest.err 1>&5
20384 $rm conftest*
20385 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20386 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20388 esac
20391 esac
20393 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20394 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20395 library_names_spec=
20396 libname_spec='lib$name'
20397 soname_spec=
20398 shrext_cmds=".so"
20399 postinstall_cmds=
20400 postuninstall_cmds=
20401 finish_cmds=
20402 finish_eval=
20403 shlibpath_var=
20404 shlibpath_overrides_runpath=unknown
20405 version_type=none
20406 dynamic_linker="$host_os ld.so"
20407 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20408 if test "$GCC" = yes; then
20409 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20410 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20411 # if the path contains ";" then we assume it to be the separator
20412 # otherwise default to the standard path separator (i.e. ":") - it is
20413 # assumed that no part of a normal pathname contains ";" but that should
20414 # okay in the real world where ";" in dirpaths is itself problematic.
20415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20416 else
20417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20419 else
20420 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20422 need_lib_prefix=unknown
20423 hardcode_into_libs=no
20425 # when you set need_version to no, make sure it does not cause -set_version
20426 # flags to be left without arguments
20427 need_version=unknown
20429 case $host_os in
20430 aix3*)
20431 version_type=linux
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20433 shlibpath_var=LIBPATH
20435 # AIX 3 has no versioning support, so we append a major version to the name.
20436 soname_spec='${libname}${release}${shared_ext}$major'
20439 aix4* | aix5*)
20440 version_type=linux
20441 need_lib_prefix=no
20442 need_version=no
20443 hardcode_into_libs=yes
20444 if test "$host_cpu" = ia64; then
20445 # AIX 5 supports IA64
20446 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20447 shlibpath_var=LD_LIBRARY_PATH
20448 else
20449 # With GCC up to 2.95.x, collect2 would create an import file
20450 # for dependence libraries. The import file would start with
20451 # the line `#! .'. This would cause the generated library to
20452 # depend on `.', always an invalid library. This was fixed in
20453 # development snapshots of GCC prior to 3.0.
20454 case $host_os in
20455 aix4 | aix4.[01] | aix4.[01].*)
20456 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20457 echo ' yes '
20458 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20460 else
20461 can_build_shared=no
20464 esac
20465 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20466 # soname into executable. Probably we can add versioning support to
20467 # collect2, so additional links can be useful in future.
20468 if test "$aix_use_runtimelinking" = yes; then
20469 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20470 # instead of lib<name>.a to let people know that these are not
20471 # typical AIX shared libraries.
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 else
20474 # We preserve .a as extension for shared libraries through AIX4.2
20475 # and later when we are not doing run time linking.
20476 library_names_spec='${libname}${release}.a $libname.a'
20477 soname_spec='${libname}${release}${shared_ext}$major'
20479 shlibpath_var=LIBPATH
20483 amigaos*)
20484 library_names_spec='$libname.ixlibrary $libname.a'
20485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20486 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'
20489 beos*)
20490 library_names_spec='${libname}${shared_ext}'
20491 dynamic_linker="$host_os ld.so"
20492 shlibpath_var=LIBRARY_PATH
20495 bsdi[45]*)
20496 version_type=linux
20497 need_version=no
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 soname_spec='${libname}${release}${shared_ext}$major'
20500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20501 shlibpath_var=LD_LIBRARY_PATH
20502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20504 # the default ld.so.conf also contains /usr/contrib/lib and
20505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20506 # libtool to hard-code these into programs
20509 cygwin* | mingw* | pw32*)
20510 version_type=windows
20511 shrext_cmds=".dll"
20512 need_version=no
20513 need_lib_prefix=no
20515 case $GCC,$host_os in
20516 yes,cygwin* | yes,mingw* | yes,pw32*)
20517 library_names_spec='$libname.dll.a'
20518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20519 postinstall_cmds='base_file=`basename \${file}`~
20520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20521 dldir=$destdir/`dirname \$dlpath`~
20522 test -d \$dldir || mkdir -p \$dldir~
20523 $install_prog $dir/$dlname \$dldir/$dlname~
20524 chmod a+x \$dldir/$dlname'
20525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20526 dlpath=$dir/\$dldll~
20527 $rm \$dlpath'
20528 shlibpath_overrides_runpath=yes
20530 case $host_os in
20531 cygwin*)
20532 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20533 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20534 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20536 mingw*)
20537 # MinGW DLLs use traditional 'lib' prefix
20538 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20539 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20540 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20541 # It is most probably a Windows format PATH printed by
20542 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20543 # path with ; separators, and with drive letters. We can handle the
20544 # drive letters (cygwin fileutils understands them), so leave them,
20545 # especially as we might pass files found there to a mingw objdump,
20546 # which wouldn't understand a cygwinified path. Ahh.
20547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20548 else
20549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20552 pw32*)
20553 # pw32 DLLs use 'pw' prefix rather than 'lib'
20554 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20556 esac
20560 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20562 esac
20563 dynamic_linker='Win32 ld.exe'
20564 # FIXME: first we should search . and the directory the executable is in
20565 shlibpath_var=PATH
20568 darwin* | rhapsody*)
20569 dynamic_linker="$host_os dyld"
20570 version_type=darwin
20571 need_lib_prefix=no
20572 need_version=no
20573 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20574 soname_spec='${libname}${release}${major}$shared_ext'
20575 shlibpath_overrides_runpath=yes
20576 shlibpath_var=DYLD_LIBRARY_PATH
20577 shrext_cmds='.dylib'
20578 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20579 if test "$GCC" = yes; then
20580 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"`
20581 else
20582 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20584 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20587 dgux*)
20588 version_type=linux
20589 need_lib_prefix=no
20590 need_version=no
20591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20592 soname_spec='${libname}${release}${shared_ext}$major'
20593 shlibpath_var=LD_LIBRARY_PATH
20596 freebsd1*)
20597 dynamic_linker=no
20600 kfreebsd*-gnu)
20601 version_type=linux
20602 need_lib_prefix=no
20603 need_version=no
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 shlibpath_overrides_runpath=no
20608 hardcode_into_libs=yes
20609 dynamic_linker='GNU ld.so'
20612 freebsd* | dragonfly*)
20613 # DragonFly does not have aout. When/if they implement a new
20614 # versioning mechanism, adjust this.
20615 if test -x /usr/bin/objformat; then
20616 objformat=`/usr/bin/objformat`
20617 else
20618 case $host_os in
20619 freebsd[123]*) objformat=aout ;;
20620 *) objformat=elf ;;
20621 esac
20623 version_type=freebsd-$objformat
20624 case $version_type in
20625 freebsd-elf*)
20626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20627 need_version=no
20628 need_lib_prefix=no
20630 freebsd-*)
20631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20632 need_version=yes
20634 esac
20635 shlibpath_var=LD_LIBRARY_PATH
20636 case $host_os in
20637 freebsd2*)
20638 shlibpath_overrides_runpath=yes
20640 freebsd3.[01]* | freebsdelf3.[01]*)
20641 shlibpath_overrides_runpath=yes
20642 hardcode_into_libs=yes
20644 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20645 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20646 shlibpath_overrides_runpath=no
20647 hardcode_into_libs=yes
20649 freebsd*) # from 4.6 on
20650 shlibpath_overrides_runpath=yes
20651 hardcode_into_libs=yes
20653 esac
20656 gnu*)
20657 version_type=linux
20658 need_lib_prefix=no
20659 need_version=no
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20661 soname_spec='${libname}${release}${shared_ext}$major'
20662 shlibpath_var=LD_LIBRARY_PATH
20663 hardcode_into_libs=yes
20666 hpux9* | hpux10* | hpux11*)
20667 # Give a soname corresponding to the major version so that dld.sl refuses to
20668 # link against other versions.
20669 version_type=sunos
20670 need_lib_prefix=no
20671 need_version=no
20672 case $host_cpu in
20673 ia64*)
20674 shrext_cmds='.so'
20675 hardcode_into_libs=yes
20676 dynamic_linker="$host_os dld.so"
20677 shlibpath_var=LD_LIBRARY_PATH
20678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20680 soname_spec='${libname}${release}${shared_ext}$major'
20681 if test "X$HPUX_IA64_MODE" = X32; then
20682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20683 else
20684 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20688 hppa*64*)
20689 shrext_cmds='.sl'
20690 hardcode_into_libs=yes
20691 dynamic_linker="$host_os dld.sl"
20692 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 soname_spec='${libname}${release}${shared_ext}$major'
20696 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20700 shrext_cmds='.sl'
20701 dynamic_linker="$host_os dld.sl"
20702 shlibpath_var=SHLIB_PATH
20703 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20705 soname_spec='${libname}${release}${shared_ext}$major'
20707 esac
20708 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20709 postinstall_cmds='chmod 555 $lib'
20712 interix3*)
20713 version_type=linux
20714 need_lib_prefix=no
20715 need_version=no
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20717 soname_spec='${libname}${release}${shared_ext}$major'
20718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath=no
20721 hardcode_into_libs=yes
20724 irix5* | irix6* | nonstopux*)
20725 case $host_os in
20726 nonstopux*) version_type=nonstopux ;;
20728 if test "$lt_cv_prog_gnu_ld" = yes; then
20729 version_type=linux
20730 else
20731 version_type=irix
20732 fi ;;
20733 esac
20734 need_lib_prefix=no
20735 need_version=no
20736 soname_spec='${libname}${release}${shared_ext}$major'
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20738 case $host_os in
20739 irix5* | nonstopux*)
20740 libsuff= shlibsuff=
20743 case $LD in # libtool.m4 will add one of these switches to LD
20744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20745 libsuff= shlibsuff= libmagic=32-bit;;
20746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20747 libsuff=32 shlibsuff=N32 libmagic=N32;;
20748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20750 *) libsuff= shlibsuff= libmagic=never-match;;
20751 esac
20753 esac
20754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20755 shlibpath_overrides_runpath=no
20756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20758 hardcode_into_libs=yes
20761 # No shared lib support for Linux oldld, aout, or coff.
20762 linux*oldld* | linux*aout* | linux*coff*)
20763 dynamic_linker=no
20766 # This must be Linux ELF.
20767 linux*)
20768 version_type=linux
20769 need_lib_prefix=no
20770 need_version=no
20771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20772 soname_spec='${libname}${release}${shared_ext}$major'
20773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20774 shlibpath_var=LD_LIBRARY_PATH
20775 shlibpath_overrides_runpath=no
20776 # This implies no fast_install, which is unacceptable.
20777 # Some rework will be needed to allow for fast_install
20778 # before this can be enabled.
20779 hardcode_into_libs=yes
20781 # Append ld.so.conf contents to the search path
20782 if test -f /etc/ld.so.conf; then
20783 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' ' '`
20784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20787 # We used to test for /lib/ld.so.1 and disable shared libraries on
20788 # powerpc, because MkLinux only supported shared libraries with the
20789 # GNU dynamic linker. Since this was broken with cross compilers,
20790 # most powerpc-linux boxes support dynamic linking these days and
20791 # people can always --disable-shared, the test was removed, and we
20792 # assume the GNU/Linux dynamic linker is in use.
20793 dynamic_linker='GNU/Linux ld.so'
20796 knetbsd*-gnu)
20797 version_type=linux
20798 need_lib_prefix=no
20799 need_version=no
20800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 shlibpath_var=LD_LIBRARY_PATH
20803 shlibpath_overrides_runpath=no
20804 hardcode_into_libs=yes
20805 dynamic_linker='GNU ld.so'
20808 netbsd*)
20809 version_type=sunos
20810 need_lib_prefix=no
20811 need_version=no
20812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20815 dynamic_linker='NetBSD (a.out) ld.so'
20816 else
20817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20818 soname_spec='${libname}${release}${shared_ext}$major'
20819 dynamic_linker='NetBSD ld.elf_so'
20821 shlibpath_var=LD_LIBRARY_PATH
20822 shlibpath_overrides_runpath=yes
20823 hardcode_into_libs=yes
20826 newsos6)
20827 version_type=linux
20828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20829 shlibpath_var=LD_LIBRARY_PATH
20830 shlibpath_overrides_runpath=yes
20833 nto-qnx*)
20834 version_type=linux
20835 need_lib_prefix=no
20836 need_version=no
20837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20838 soname_spec='${libname}${release}${shared_ext}$major'
20839 shlibpath_var=LD_LIBRARY_PATH
20840 shlibpath_overrides_runpath=yes
20843 openbsd*)
20844 version_type=sunos
20845 sys_lib_dlsearch_path_spec="/usr/lib"
20846 need_lib_prefix=no
20847 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20848 case $host_os in
20849 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20850 *) need_version=no ;;
20851 esac
20852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20854 shlibpath_var=LD_LIBRARY_PATH
20855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20856 case $host_os in
20857 openbsd2.[89] | openbsd2.[89].*)
20858 shlibpath_overrides_runpath=no
20861 shlibpath_overrides_runpath=yes
20863 esac
20864 else
20865 shlibpath_overrides_runpath=yes
20869 os2*)
20870 libname_spec='$name'
20871 shrext_cmds=".dll"
20872 need_lib_prefix=no
20873 library_names_spec='$libname${shared_ext} $libname.a'
20874 dynamic_linker='OS/2 ld.exe'
20875 shlibpath_var=LIBPATH
20878 osf3* | osf4* | osf5*)
20879 version_type=osf
20880 need_lib_prefix=no
20881 need_version=no
20882 soname_spec='${libname}${release}${shared_ext}$major'
20883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 shlibpath_var=LD_LIBRARY_PATH
20885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20886 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20889 solaris*)
20890 version_type=linux
20891 need_lib_prefix=no
20892 need_version=no
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 shlibpath_var=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath=yes
20897 hardcode_into_libs=yes
20898 # ldd complains unless libraries are executable
20899 postinstall_cmds='chmod +x $lib'
20902 sunos4*)
20903 version_type=sunos
20904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20905 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 shlibpath_overrides_runpath=yes
20908 if test "$with_gnu_ld" = yes; then
20909 need_lib_prefix=no
20911 need_version=yes
20914 sysv4 | sysv4.3*)
20915 version_type=linux
20916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20917 soname_spec='${libname}${release}${shared_ext}$major'
20918 shlibpath_var=LD_LIBRARY_PATH
20919 case $host_vendor in
20920 sni)
20921 shlibpath_overrides_runpath=no
20922 need_lib_prefix=no
20923 export_dynamic_flag_spec='${wl}-Blargedynsym'
20924 runpath_var=LD_RUN_PATH
20926 siemens)
20927 need_lib_prefix=no
20929 motorola)
20930 need_lib_prefix=no
20931 need_version=no
20932 shlibpath_overrides_runpath=no
20933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20935 esac
20938 sysv4*MP*)
20939 if test -d /usr/nec ;then
20940 version_type=linux
20941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20942 soname_spec='$libname${shared_ext}.$major'
20943 shlibpath_var=LD_LIBRARY_PATH
20947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20948 version_type=freebsd-elf
20949 need_lib_prefix=no
20950 need_version=no
20951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20952 soname_spec='${libname}${release}${shared_ext}$major'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 hardcode_into_libs=yes
20955 if test "$with_gnu_ld" = yes; then
20956 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20957 shlibpath_overrides_runpath=no
20958 else
20959 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20960 shlibpath_overrides_runpath=yes
20961 case $host_os in
20962 sco3.2v5*)
20963 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20965 esac
20967 sys_lib_dlsearch_path_spec='/usr/lib'
20970 uts4*)
20971 version_type=linux
20972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973 soname_spec='${libname}${release}${shared_ext}$major'
20974 shlibpath_var=LD_LIBRARY_PATH
20978 dynamic_linker=no
20980 esac
20981 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20982 echo "${ECHO_T}$dynamic_linker" >&6; }
20983 test "$dynamic_linker" = no && can_build_shared=no
20985 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20986 if test "$GCC" = yes; then
20987 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20990 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20991 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20992 hardcode_action_CXX=
20993 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20994 test -n "$runpath_var_CXX" || \
20995 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20997 # We can hardcode non-existant directories.
20998 if test "$hardcode_direct_CXX" != no &&
20999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21000 # have to relink, otherwise we might link with an installed library
21001 # when we should be linking with a yet-to-be-installed one
21002 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21003 test "$hardcode_minus_L_CXX" != no; then
21004 # Linking always hardcodes the temporary library directory.
21005 hardcode_action_CXX=relink
21006 else
21007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21008 hardcode_action_CXX=immediate
21010 else
21011 # We cannot hardcode anything, or else we can only hardcode existing
21012 # directories.
21013 hardcode_action_CXX=unsupported
21015 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21016 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21018 if test "$hardcode_action_CXX" = relink; then
21019 # Fast installation is not supported
21020 enable_fast_install=no
21021 elif test "$shlibpath_overrides_runpath" = yes ||
21022 test "$enable_shared" = no; then
21023 # Fast installation is not necessary
21024 enable_fast_install=needless
21028 # The else clause should only fire when bootstrapping the
21029 # libtool distribution, otherwise you forgot to ship ltmain.sh
21030 # with your package, and you will get complaints that there are
21031 # no rules to generate ltmain.sh.
21032 if test -f "$ltmain"; then
21033 # See if we are running on zsh, and set the options which allow our commands through
21034 # without removal of \ escapes.
21035 if test -n "${ZSH_VERSION+set}" ; then
21036 setopt NO_GLOB_SUBST
21038 # Now quote all the things that may contain metacharacters while being
21039 # careful not to overquote the AC_SUBSTed values. We take copies of the
21040 # variables and quote the copies for generation of the libtool script.
21041 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21042 SED SHELL STRIP \
21043 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21044 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21045 deplibs_check_method reload_flag reload_cmds need_locks \
21046 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21047 lt_cv_sys_global_symbol_to_c_name_address \
21048 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21049 old_postinstall_cmds old_postuninstall_cmds \
21050 compiler_CXX \
21051 CC_CXX \
21052 LD_CXX \
21053 lt_prog_compiler_wl_CXX \
21054 lt_prog_compiler_pic_CXX \
21055 lt_prog_compiler_static_CXX \
21056 lt_prog_compiler_no_builtin_flag_CXX \
21057 export_dynamic_flag_spec_CXX \
21058 thread_safe_flag_spec_CXX \
21059 whole_archive_flag_spec_CXX \
21060 enable_shared_with_static_runtimes_CXX \
21061 old_archive_cmds_CXX \
21062 old_archive_from_new_cmds_CXX \
21063 predep_objects_CXX \
21064 postdep_objects_CXX \
21065 predeps_CXX \
21066 postdeps_CXX \
21067 compiler_lib_search_path_CXX \
21068 archive_cmds_CXX \
21069 archive_expsym_cmds_CXX \
21070 postinstall_cmds_CXX \
21071 postuninstall_cmds_CXX \
21072 old_archive_from_expsyms_cmds_CXX \
21073 allow_undefined_flag_CXX \
21074 no_undefined_flag_CXX \
21075 export_symbols_cmds_CXX \
21076 hardcode_libdir_flag_spec_CXX \
21077 hardcode_libdir_flag_spec_ld_CXX \
21078 hardcode_libdir_separator_CXX \
21079 hardcode_automatic_CXX \
21080 module_cmds_CXX \
21081 module_expsym_cmds_CXX \
21082 lt_cv_prog_compiler_c_o_CXX \
21083 exclude_expsyms_CXX \
21084 include_expsyms_CXX; do
21086 case $var in
21087 old_archive_cmds_CXX | \
21088 old_archive_from_new_cmds_CXX | \
21089 archive_cmds_CXX | \
21090 archive_expsym_cmds_CXX | \
21091 module_cmds_CXX | \
21092 module_expsym_cmds_CXX | \
21093 old_archive_from_expsyms_cmds_CXX | \
21094 export_symbols_cmds_CXX | \
21095 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21096 postinstall_cmds | postuninstall_cmds | \
21097 old_postinstall_cmds | old_postuninstall_cmds | \
21098 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21099 # Double-quote double-evaled strings.
21100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21105 esac
21106 done
21108 case $lt_echo in
21109 *'\$0 --fallback-echo"')
21110 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21112 esac
21114 cfgfile="$ofile"
21116 cat <<__EOF__ >> "$cfgfile"
21117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21121 # Shell to use when invoking shell scripts.
21122 SHELL=$lt_SHELL
21124 # Whether or not to build shared libraries.
21125 build_libtool_libs=$enable_shared
21127 # Whether or not to build static libraries.
21128 build_old_libs=$enable_static
21130 # Whether or not to add -lc for building shared libraries.
21131 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21133 # Whether or not to disallow shared libs when runtime libs are static
21134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21136 # Whether or not to optimize for fast installation.
21137 fast_install=$enable_fast_install
21139 # The host system.
21140 host_alias=$host_alias
21141 host=$host
21142 host_os=$host_os
21144 # The build system.
21145 build_alias=$build_alias
21146 build=$build
21147 build_os=$build_os
21149 # An echo program that does not interpret backslashes.
21150 echo=$lt_echo
21152 # The archiver.
21153 AR=$lt_AR
21154 AR_FLAGS=$lt_AR_FLAGS
21156 # A C compiler.
21157 LTCC=$lt_LTCC
21159 # LTCC compiler flags.
21160 LTCFLAGS=$lt_LTCFLAGS
21162 # A language-specific compiler.
21163 CC=$lt_compiler_CXX
21165 # Is the compiler the GNU C compiler?
21166 with_gcc=$GCC_CXX
21168 # An ERE matcher.
21169 EGREP=$lt_EGREP
21171 # The linker used to build libraries.
21172 LD=$lt_LD_CXX
21174 # Whether we need hard or soft links.
21175 LN_S=$lt_LN_S
21177 # A BSD-compatible nm program.
21178 NM=$lt_NM
21180 # A symbol stripping program
21181 STRIP=$lt_STRIP
21183 # Used to examine libraries when file_magic_cmd begins "file"
21184 MAGIC_CMD=$MAGIC_CMD
21186 # Used on cygwin: DLL creation program.
21187 DLLTOOL="$DLLTOOL"
21189 # Used on cygwin: object dumper.
21190 OBJDUMP="$OBJDUMP"
21192 # Used on cygwin: assembler.
21193 AS="$AS"
21195 # The name of the directory that contains temporary libtool files.
21196 objdir=$objdir
21198 # How to create reloadable object files.
21199 reload_flag=$lt_reload_flag
21200 reload_cmds=$lt_reload_cmds
21202 # How to pass a linker flag through the compiler.
21203 wl=$lt_lt_prog_compiler_wl_CXX
21205 # Object file suffix (normally "o").
21206 objext="$ac_objext"
21208 # Old archive suffix (normally "a").
21209 libext="$libext"
21211 # Shared library suffix (normally ".so").
21212 shrext_cmds='$shrext_cmds'
21214 # Executable file suffix (normally "").
21215 exeext="$exeext"
21217 # Additional compiler flags for building library objects.
21218 pic_flag=$lt_lt_prog_compiler_pic_CXX
21219 pic_mode=$pic_mode
21221 # What is the maximum length of a command?
21222 max_cmd_len=$lt_cv_sys_max_cmd_len
21224 # Does compiler simultaneously support -c and -o options?
21225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21227 # Must we lock files when doing compilation?
21228 need_locks=$lt_need_locks
21230 # Do we need the lib prefix for modules?
21231 need_lib_prefix=$need_lib_prefix
21233 # Do we need a version for libraries?
21234 need_version=$need_version
21236 # Whether dlopen is supported.
21237 dlopen_support=$enable_dlopen
21239 # Whether dlopen of programs is supported.
21240 dlopen_self=$enable_dlopen_self
21242 # Whether dlopen of statically linked programs is supported.
21243 dlopen_self_static=$enable_dlopen_self_static
21245 # Compiler flag to prevent dynamic linking.
21246 link_static_flag=$lt_lt_prog_compiler_static_CXX
21248 # Compiler flag to turn off builtin functions.
21249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21251 # Compiler flag to allow reflexive dlopens.
21252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21254 # Compiler flag to generate shared objects directly from archives.
21255 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21257 # Compiler flag to generate thread-safe objects.
21258 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21260 # Library versioning type.
21261 version_type=$version_type
21263 # Format of library name prefix.
21264 libname_spec=$lt_libname_spec
21266 # List of archive names. First name is the real one, the rest are links.
21267 # The last name is the one that the linker finds with -lNAME.
21268 library_names_spec=$lt_library_names_spec
21270 # The coded name of the library, if different from the real name.
21271 soname_spec=$lt_soname_spec
21273 # Commands used to build and install an old-style archive.
21274 RANLIB=$lt_RANLIB
21275 old_archive_cmds=$lt_old_archive_cmds_CXX
21276 old_postinstall_cmds=$lt_old_postinstall_cmds
21277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21279 # Create an old-style archive from a shared archive.
21280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21282 # Create a temporary old-style archive to link instead of a shared archive.
21283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21285 # Commands used to build and install a shared archive.
21286 archive_cmds=$lt_archive_cmds_CXX
21287 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21288 postinstall_cmds=$lt_postinstall_cmds
21289 postuninstall_cmds=$lt_postuninstall_cmds
21291 # Commands used to build a loadable module (assumed same as above if empty)
21292 module_cmds=$lt_module_cmds_CXX
21293 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21295 # Commands to strip libraries.
21296 old_striplib=$lt_old_striplib
21297 striplib=$lt_striplib
21299 # Dependencies to place before the objects being linked to create a
21300 # shared library.
21301 predep_objects=$lt_predep_objects_CXX
21303 # Dependencies to place after the objects being linked to create a
21304 # shared library.
21305 postdep_objects=$lt_postdep_objects_CXX
21307 # Dependencies to place before the objects being linked to create a
21308 # shared library.
21309 predeps=$lt_predeps_CXX
21311 # Dependencies to place after the objects being linked to create a
21312 # shared library.
21313 postdeps=$lt_postdeps_CXX
21315 # The library search path used internally by the compiler when linking
21316 # a shared library.
21317 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21319 # Method to check whether dependent libraries are shared objects.
21320 deplibs_check_method=$lt_deplibs_check_method
21322 # Command to use when deplibs_check_method == file_magic.
21323 file_magic_cmd=$lt_file_magic_cmd
21325 # Flag that allows shared libraries with undefined symbols to be built.
21326 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21328 # Flag that forces no undefined symbols.
21329 no_undefined_flag=$lt_no_undefined_flag_CXX
21331 # Commands used to finish a libtool library installation in a directory.
21332 finish_cmds=$lt_finish_cmds
21334 # Same as above, but a single script fragment to be evaled but not shown.
21335 finish_eval=$lt_finish_eval
21337 # Take the output of nm and produce a listing of raw symbols and C names.
21338 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21340 # Transform the output of nm in a proper C declaration
21341 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21343 # Transform the output of nm in a C name address pair
21344 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21346 # This is the shared library runtime path variable.
21347 runpath_var=$runpath_var
21349 # This is the shared library path variable.
21350 shlibpath_var=$shlibpath_var
21352 # Is shlibpath searched before the hard-coded library search path?
21353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21355 # How to hardcode a shared library path into an executable.
21356 hardcode_action=$hardcode_action_CXX
21358 # Whether we should hardcode library paths into libraries.
21359 hardcode_into_libs=$hardcode_into_libs
21361 # Flag to hardcode \$libdir into a binary during linking.
21362 # This must work even if \$libdir does not exist.
21363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21365 # If ld is used when linking, flag to hardcode \$libdir into
21366 # a binary during linking. This must work even if \$libdir does
21367 # not exist.
21368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21370 # Whether we need a single -rpath flag with a separated argument.
21371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21373 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21374 # resulting binary.
21375 hardcode_direct=$hardcode_direct_CXX
21377 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21378 # resulting binary.
21379 hardcode_minus_L=$hardcode_minus_L_CXX
21381 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21382 # the resulting binary.
21383 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21385 # Set to yes if building a shared library automatically hardcodes DIR into the library
21386 # and all subsequent libraries and executables linked against it.
21387 hardcode_automatic=$hardcode_automatic_CXX
21389 # Variables whose values should be saved in libtool wrapper scripts and
21390 # restored at relink time.
21391 variables_saved_for_relink="$variables_saved_for_relink"
21393 # Whether libtool must link a program against all its dependency libraries.
21394 link_all_deplibs=$link_all_deplibs_CXX
21396 # Compile-time system search path for libraries
21397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21399 # Run-time system search path for libraries
21400 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21402 # Fix the shell variable \$srcfile for the compiler.
21403 fix_srcfile_path="$fix_srcfile_path_CXX"
21405 # Set to yes if exported symbols are required.
21406 always_export_symbols=$always_export_symbols_CXX
21408 # The commands to list exported symbols.
21409 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21411 # The commands to extract the exported symbol list from a shared archive.
21412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21414 # Symbols that should not be listed in the preloaded symbols.
21415 exclude_expsyms=$lt_exclude_expsyms_CXX
21417 # Symbols that must always be exported.
21418 include_expsyms=$lt_include_expsyms_CXX
21420 # ### END LIBTOOL TAG CONFIG: $tagname
21422 __EOF__
21425 else
21426 # If there is no Makefile yet, we rely on a make rule to execute
21427 # `config.status --recheck' to rerun these tests and create the
21428 # libtool script then.
21429 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21430 if test -f "$ltmain_in"; then
21431 test -f Makefile && make "$ltmain"
21436 ac_ext=c
21437 ac_cpp='$CPP $CPPFLAGS'
21438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21442 CC=$lt_save_CC
21443 LDCXX=$LD
21444 LD=$lt_save_LD
21445 GCC=$lt_save_GCC
21446 with_gnu_ldcxx=$with_gnu_ld
21447 with_gnu_ld=$lt_save_with_gnu_ld
21448 lt_cv_path_LDCXX=$lt_cv_path_LD
21449 lt_cv_path_LD=$lt_save_path_LD
21450 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21451 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21453 else
21454 tagname=""
21458 F77)
21459 if test -n "$F77" && test "X$F77" != "Xno"; then
21461 ac_ext=f
21462 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21463 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21464 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21467 archive_cmds_need_lc_F77=no
21468 allow_undefined_flag_F77=
21469 always_export_symbols_F77=no
21470 archive_expsym_cmds_F77=
21471 export_dynamic_flag_spec_F77=
21472 hardcode_direct_F77=no
21473 hardcode_libdir_flag_spec_F77=
21474 hardcode_libdir_flag_spec_ld_F77=
21475 hardcode_libdir_separator_F77=
21476 hardcode_minus_L_F77=no
21477 hardcode_automatic_F77=no
21478 module_cmds_F77=
21479 module_expsym_cmds_F77=
21480 link_all_deplibs_F77=unknown
21481 old_archive_cmds_F77=$old_archive_cmds
21482 no_undefined_flag_F77=
21483 whole_archive_flag_spec_F77=
21484 enable_shared_with_static_runtimes_F77=no
21486 # Source file extension for f77 test sources.
21487 ac_ext=f
21489 # Object file extension for compiled f77 test sources.
21490 objext=o
21491 objext_F77=$objext
21493 # Code to be used in simple compile tests
21494 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21496 # Code to be used in simple link tests
21497 lt_simple_link_test_code=" program t\n end\n"
21499 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21501 # If no C compiler was specified, use CC.
21502 LTCC=${LTCC-"$CC"}
21504 # If no C compiler flags were specified, use CFLAGS.
21505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21507 # Allow CC to be a program name with arguments.
21508 compiler=$CC
21511 # save warnings/boilerplate of simple test code
21512 ac_outfile=conftest.$ac_objext
21513 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21514 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21515 _lt_compiler_boilerplate=`cat conftest.err`
21516 $rm conftest*
21518 ac_outfile=conftest.$ac_objext
21519 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21520 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21521 _lt_linker_boilerplate=`cat conftest.err`
21522 $rm conftest*
21525 # Allow CC to be a program name with arguments.
21526 lt_save_CC="$CC"
21527 CC=${F77-"f77"}
21528 compiler=$CC
21529 compiler_F77=$CC
21530 for cc_temp in $compiler""; do
21531 case $cc_temp in
21532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21534 \-*) ;;
21535 *) break;;
21536 esac
21537 done
21538 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21541 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21542 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21543 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21544 echo "${ECHO_T}$can_build_shared" >&6; }
21546 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21547 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21548 test "$can_build_shared" = "no" && enable_shared=no
21550 # On AIX, shared libraries and static libraries use the same namespace, and
21551 # are all built from PIC.
21552 case $host_os in
21553 aix3*)
21554 test "$enable_shared" = yes && enable_static=no
21555 if test -n "$RANLIB"; then
21556 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21557 postinstall_cmds='$RANLIB $lib'
21560 aix4* | aix5*)
21561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21562 test "$enable_shared" = yes && enable_static=no
21565 esac
21566 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21567 echo "${ECHO_T}$enable_shared" >&6; }
21569 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21570 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21571 # Make sure either enable_shared or enable_static is yes.
21572 test "$enable_shared" = yes || enable_static=yes
21573 { echo "$as_me:$LINENO: result: $enable_static" >&5
21574 echo "${ECHO_T}$enable_static" >&6; }
21576 GCC_F77="$G77"
21577 LD_F77="$LD"
21579 lt_prog_compiler_wl_F77=
21580 lt_prog_compiler_pic_F77=
21581 lt_prog_compiler_static_F77=
21583 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21584 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21586 if test "$GCC" = yes; then
21587 lt_prog_compiler_wl_F77='-Wl,'
21588 lt_prog_compiler_static_F77='-static'
21590 case $host_os in
21591 aix*)
21592 # All AIX code is PIC.
21593 if test "$host_cpu" = ia64; then
21594 # AIX 5 now supports IA64 processor
21595 lt_prog_compiler_static_F77='-Bstatic'
21599 amigaos*)
21600 # FIXME: we need at least 68020 code to build shared libraries, but
21601 # adding the `-m68020' flag to GCC prevents building anything better,
21602 # like `-m68040'.
21603 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21606 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21607 # PIC is the default for these OSes.
21610 mingw* | pw32* | os2*)
21611 # This hack is so that the source file can tell whether it is being
21612 # built for inclusion in a dll (and should export symbols for example).
21613 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21616 darwin* | rhapsody*)
21617 # PIC is the default on this platform
21618 # Common symbols not allowed in MH_DYLIB files
21619 lt_prog_compiler_pic_F77='-fno-common'
21622 interix3*)
21623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21624 # Instead, we relocate shared libraries at runtime.
21627 msdosdjgpp*)
21628 # Just because we use GCC doesn't mean we suddenly get shared libraries
21629 # on systems that don't support them.
21630 lt_prog_compiler_can_build_shared_F77=no
21631 enable_shared=no
21634 sysv4*MP*)
21635 if test -d /usr/nec; then
21636 lt_prog_compiler_pic_F77=-Kconform_pic
21640 hpux*)
21641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21642 # not for PA HP-UX.
21643 case $host_cpu in
21644 hppa*64*|ia64*)
21645 # +Z the default
21648 lt_prog_compiler_pic_F77='-fPIC'
21650 esac
21654 lt_prog_compiler_pic_F77='-fPIC'
21656 esac
21657 else
21658 # PORTME Check for flag to pass linker flags through the system compiler.
21659 case $host_os in
21660 aix*)
21661 lt_prog_compiler_wl_F77='-Wl,'
21662 if test "$host_cpu" = ia64; then
21663 # AIX 5 now supports IA64 processor
21664 lt_prog_compiler_static_F77='-Bstatic'
21665 else
21666 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21669 darwin*)
21670 # PIC is the default on this platform
21671 # Common symbols not allowed in MH_DYLIB files
21672 case $cc_basename in
21673 xlc*)
21674 lt_prog_compiler_pic_F77='-qnocommon'
21675 lt_prog_compiler_wl_F77='-Wl,'
21677 esac
21680 mingw* | pw32* | os2*)
21681 # This hack is so that the source file can tell whether it is being
21682 # built for inclusion in a dll (and should export symbols for example).
21683 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21686 hpux9* | hpux10* | hpux11*)
21687 lt_prog_compiler_wl_F77='-Wl,'
21688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21689 # not for PA HP-UX.
21690 case $host_cpu in
21691 hppa*64*|ia64*)
21692 # +Z the default
21695 lt_prog_compiler_pic_F77='+Z'
21697 esac
21698 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21699 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21702 irix5* | irix6* | nonstopux*)
21703 lt_prog_compiler_wl_F77='-Wl,'
21704 # PIC (with -KPIC) is the default.
21705 lt_prog_compiler_static_F77='-non_shared'
21708 newsos6)
21709 lt_prog_compiler_pic_F77='-KPIC'
21710 lt_prog_compiler_static_F77='-Bstatic'
21713 linux*)
21714 case $cc_basename in
21715 icc* | ecc*)
21716 lt_prog_compiler_wl_F77='-Wl,'
21717 lt_prog_compiler_pic_F77='-KPIC'
21718 lt_prog_compiler_static_F77='-static'
21720 pgcc* | pgf77* | pgf90* | pgf95*)
21721 # Portland Group compilers (*not* the Pentium gcc compiler,
21722 # which looks to be a dead project)
21723 lt_prog_compiler_wl_F77='-Wl,'
21724 lt_prog_compiler_pic_F77='-fpic'
21725 lt_prog_compiler_static_F77='-Bstatic'
21727 ccc*)
21728 lt_prog_compiler_wl_F77='-Wl,'
21729 # All Alpha code is PIC.
21730 lt_prog_compiler_static_F77='-non_shared'
21732 esac
21735 osf3* | osf4* | osf5*)
21736 lt_prog_compiler_wl_F77='-Wl,'
21737 # All OSF/1 code is PIC.
21738 lt_prog_compiler_static_F77='-non_shared'
21741 solaris*)
21742 lt_prog_compiler_pic_F77='-KPIC'
21743 lt_prog_compiler_static_F77='-Bstatic'
21744 case $cc_basename in
21745 f77* | f90* | f95*)
21746 lt_prog_compiler_wl_F77='-Qoption ld ';;
21748 lt_prog_compiler_wl_F77='-Wl,';;
21749 esac
21752 sunos4*)
21753 lt_prog_compiler_wl_F77='-Qoption ld '
21754 lt_prog_compiler_pic_F77='-PIC'
21755 lt_prog_compiler_static_F77='-Bstatic'
21758 sysv4 | sysv4.2uw2* | sysv4.3*)
21759 lt_prog_compiler_wl_F77='-Wl,'
21760 lt_prog_compiler_pic_F77='-KPIC'
21761 lt_prog_compiler_static_F77='-Bstatic'
21764 sysv4*MP*)
21765 if test -d /usr/nec ;then
21766 lt_prog_compiler_pic_F77='-Kconform_pic'
21767 lt_prog_compiler_static_F77='-Bstatic'
21771 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21772 lt_prog_compiler_wl_F77='-Wl,'
21773 lt_prog_compiler_pic_F77='-KPIC'
21774 lt_prog_compiler_static_F77='-Bstatic'
21777 unicos*)
21778 lt_prog_compiler_wl_F77='-Wl,'
21779 lt_prog_compiler_can_build_shared_F77=no
21782 uts4*)
21783 lt_prog_compiler_pic_F77='-pic'
21784 lt_prog_compiler_static_F77='-Bstatic'
21788 lt_prog_compiler_can_build_shared_F77=no
21790 esac
21793 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21794 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21797 # Check to make sure the PIC flag actually works.
21799 if test -n "$lt_prog_compiler_pic_F77"; then
21801 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21802 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21803 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21805 else
21806 lt_prog_compiler_pic_works_F77=no
21807 ac_outfile=conftest.$ac_objext
21808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21809 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21810 # Insert the option either (1) after the last *FLAGS variable, or
21811 # (2) before a word containing "conftest.", or (3) at the end.
21812 # Note that $ac_compile itself does not contain backslashes and begins
21813 # with a dollar sign (not a hyphen), so the echo should work correctly.
21814 # The option is referenced via a variable to avoid confusing sed.
21815 lt_compile=`echo "$ac_compile" | $SED \
21816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21818 -e 's:$: $lt_compiler_flag:'`
21819 (eval echo "\"\$as_me:21819: $lt_compile\"" >&5)
21820 (eval "$lt_compile" 2>conftest.err)
21821 ac_status=$?
21822 cat conftest.err >&5
21823 echo "$as_me:21823: \$? = $ac_status" >&5
21824 if (exit $ac_status) && test -s "$ac_outfile"; then
21825 # The compiler can only warn and ignore the option if not recognized
21826 # So say no if there are warnings other than the usual output.
21827 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21830 lt_prog_compiler_pic_works_F77=yes
21833 $rm conftest*
21836 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21837 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21839 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21840 case $lt_prog_compiler_pic_F77 in
21841 "" | " "*) ;;
21842 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21843 esac
21844 else
21845 lt_prog_compiler_pic_F77=
21846 lt_prog_compiler_can_build_shared_F77=no
21850 case $host_os in
21851 # For platforms which do not support PIC, -DPIC is meaningless:
21852 *djgpp*)
21853 lt_prog_compiler_pic_F77=
21856 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21858 esac
21861 # Check to make sure the static flag actually works.
21863 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21864 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21865 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21866 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21869 lt_prog_compiler_static_works_F77=no
21870 save_LDFLAGS="$LDFLAGS"
21871 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21872 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21874 # The linker can only warn and ignore the option if not recognized
21875 # So say no if there are warnings
21876 if test -s conftest.err; then
21877 # Append any errors to the config.log.
21878 cat conftest.err 1>&5
21879 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21881 if diff conftest.exp conftest.er2 >/dev/null; then
21882 lt_prog_compiler_static_works_F77=yes
21884 else
21885 lt_prog_compiler_static_works_F77=yes
21888 $rm conftest*
21889 LDFLAGS="$save_LDFLAGS"
21892 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21893 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21895 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21897 else
21898 lt_prog_compiler_static_F77=
21902 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21903 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21904 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 else
21907 lt_cv_prog_compiler_c_o_F77=no
21908 $rm -r conftest 2>/dev/null
21909 mkdir conftest
21910 cd conftest
21911 mkdir out
21912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21914 lt_compiler_flag="-o out/conftest2.$ac_objext"
21915 # Insert the option either (1) after the last *FLAGS variable, or
21916 # (2) before a word containing "conftest.", or (3) at the end.
21917 # Note that $ac_compile itself does not contain backslashes and begins
21918 # with a dollar sign (not a hyphen), so the echo should work correctly.
21919 lt_compile=`echo "$ac_compile" | $SED \
21920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21922 -e 's:$: $lt_compiler_flag:'`
21923 (eval echo "\"\$as_me:21923: $lt_compile\"" >&5)
21924 (eval "$lt_compile" 2>out/conftest.err)
21925 ac_status=$?
21926 cat out/conftest.err >&5
21927 echo "$as_me:21927: \$? = $ac_status" >&5
21928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21929 then
21930 # The compiler can only warn and ignore the option if not recognized
21931 # So say no if there are warnings
21932 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21935 lt_cv_prog_compiler_c_o_F77=yes
21938 chmod u+w . 2>&5
21939 $rm conftest*
21940 # SGI C++ compiler will create directory out/ii_files/ for
21941 # template instantiation
21942 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21943 $rm out/* && rmdir out
21944 cd ..
21945 rmdir conftest
21946 $rm conftest*
21949 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21950 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21953 hard_links="nottested"
21954 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21955 # do not overwrite the value of need_locks provided by the user
21956 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21957 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21958 hard_links=yes
21959 $rm conftest*
21960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21961 touch conftest.a
21962 ln conftest.a conftest.b 2>&5 || hard_links=no
21963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21964 { echo "$as_me:$LINENO: result: $hard_links" >&5
21965 echo "${ECHO_T}$hard_links" >&6; }
21966 if test "$hard_links" = no; then
21967 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21968 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21969 need_locks=warn
21971 else
21972 need_locks=no
21975 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21976 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21978 runpath_var=
21979 allow_undefined_flag_F77=
21980 enable_shared_with_static_runtimes_F77=no
21981 archive_cmds_F77=
21982 archive_expsym_cmds_F77=
21983 old_archive_From_new_cmds_F77=
21984 old_archive_from_expsyms_cmds_F77=
21985 export_dynamic_flag_spec_F77=
21986 whole_archive_flag_spec_F77=
21987 thread_safe_flag_spec_F77=
21988 hardcode_libdir_flag_spec_F77=
21989 hardcode_libdir_flag_spec_ld_F77=
21990 hardcode_libdir_separator_F77=
21991 hardcode_direct_F77=no
21992 hardcode_minus_L_F77=no
21993 hardcode_shlibpath_var_F77=unsupported
21994 link_all_deplibs_F77=unknown
21995 hardcode_automatic_F77=no
21996 module_cmds_F77=
21997 module_expsym_cmds_F77=
21998 always_export_symbols_F77=no
21999 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22000 # include_expsyms should be a list of space-separated symbols to be *always*
22001 # included in the symbol list
22002 include_expsyms_F77=
22003 # exclude_expsyms can be an extended regexp of symbols to exclude
22004 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22005 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22006 # as well as any symbol that contains `d'.
22007 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22008 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22009 # platforms (ab)use it in PIC code, but their linkers get confused if
22010 # the symbol is explicitly referenced. Since portable code cannot
22011 # rely on this symbol name, it's probably fine to never include it in
22012 # preloaded symbol tables.
22013 extract_expsyms_cmds=
22014 # Just being paranoid about ensuring that cc_basename is set.
22015 for cc_temp in $compiler""; do
22016 case $cc_temp in
22017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22019 \-*) ;;
22020 *) break;;
22021 esac
22022 done
22023 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22025 case $host_os in
22026 cygwin* | mingw* | pw32*)
22027 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22028 # When not using gcc, we currently assume that we are using
22029 # Microsoft Visual C++.
22030 if test "$GCC" != yes; then
22031 with_gnu_ld=no
22034 interix*)
22035 # we just hope/assume this is gcc and not c89 (= MSVC++)
22036 with_gnu_ld=yes
22038 openbsd*)
22039 with_gnu_ld=no
22041 esac
22043 ld_shlibs_F77=yes
22044 if test "$with_gnu_ld" = yes; then
22045 # If archive_cmds runs LD, not CC, wlarc should be empty
22046 wlarc='${wl}'
22048 # Set some defaults for GNU ld with shared library support. These
22049 # are reset later if shared libraries are not supported. Putting them
22050 # here allows them to be overridden if necessary.
22051 runpath_var=LD_RUN_PATH
22052 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22053 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22054 # ancient GNU ld didn't support --whole-archive et. al.
22055 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22056 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22057 else
22058 whole_archive_flag_spec_F77=
22060 supports_anon_versioning=no
22061 case `$LD -v 2>/dev/null` in
22062 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22063 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22064 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22065 *\ 2.11.*) ;; # other 2.11 versions
22066 *) supports_anon_versioning=yes ;;
22067 esac
22069 # See if GNU ld supports shared libraries.
22070 case $host_os in
22071 aix3* | aix4* | aix5*)
22072 # On AIX/PPC, the GNU linker is very broken
22073 if test "$host_cpu" != ia64; then
22074 ld_shlibs_F77=no
22075 cat <<EOF 1>&2
22077 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22078 *** to be unable to reliably create shared libraries on AIX.
22079 *** Therefore, libtool is disabling shared libraries support. If you
22080 *** really care for shared libraries, you may want to modify your PATH
22081 *** so that a non-GNU linker is found, and then restart.
22087 amigaos*)
22088 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)'
22089 hardcode_libdir_flag_spec_F77='-L$libdir'
22090 hardcode_minus_L_F77=yes
22092 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22093 # that the semantics of dynamic libraries on AmigaOS, at least up
22094 # to version 4, is to share data among multiple programs linked
22095 # with the same dynamic library. Since this doesn't match the
22096 # behavior of shared libraries on other platforms, we can't use
22097 # them.
22098 ld_shlibs_F77=no
22101 beos*)
22102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22103 allow_undefined_flag_F77=unsupported
22104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22105 # support --undefined. This deserves some investigation. FIXME
22106 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22107 else
22108 ld_shlibs_F77=no
22112 cygwin* | mingw* | pw32*)
22113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22114 # as there is no search path for DLLs.
22115 hardcode_libdir_flag_spec_F77='-L$libdir'
22116 allow_undefined_flag_F77=unsupported
22117 always_export_symbols_F77=no
22118 enable_shared_with_static_runtimes_F77=yes
22119 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22121 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22122 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22123 # If the export-symbols file already is a .def file (1st line
22124 # is EXPORTS), use it as is; otherwise, prepend...
22125 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22126 cp $export_symbols $output_objdir/$soname.def;
22127 else
22128 echo EXPORTS > $output_objdir/$soname.def;
22129 cat $export_symbols >> $output_objdir/$soname.def;
22131 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22132 else
22133 ld_shlibs_F77=no
22137 interix3*)
22138 hardcode_direct_F77=no
22139 hardcode_shlibpath_var_F77=no
22140 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22141 export_dynamic_flag_spec_F77='${wl}-E'
22142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22143 # Instead, shared libraries are loaded at an image base (0x10000000 by
22144 # default) and relocated if they conflict, which is a slow very memory
22145 # consuming and fragmenting process. To avoid this, we pick a random,
22146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22147 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22148 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'
22149 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'
22152 linux*)
22153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22154 tmp_addflag=
22155 case $cc_basename,$host_cpu in
22156 pgcc*) # Portland Group C compiler
22157 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'
22158 tmp_addflag=' $pic_flag'
22160 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22161 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'
22162 tmp_addflag=' $pic_flag -Mnomain' ;;
22163 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22164 tmp_addflag=' -i_dynamic' ;;
22165 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22166 tmp_addflag=' -i_dynamic -nofor_main' ;;
22167 ifc* | ifort*) # Intel Fortran compiler
22168 tmp_addflag=' -nofor_main' ;;
22169 esac
22170 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22172 if test $supports_anon_versioning = yes; then
22173 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22175 $echo "local: *; };" >> $output_objdir/$libname.ver~
22176 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22178 else
22179 ld_shlibs_F77=no
22183 netbsd*)
22184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22185 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22186 wlarc=
22187 else
22188 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22189 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22193 solaris*)
22194 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22195 ld_shlibs_F77=no
22196 cat <<EOF 1>&2
22198 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22199 *** create shared libraries on Solaris systems. Therefore, libtool
22200 *** is disabling shared libraries support. We urge you to upgrade GNU
22201 *** binutils to release 2.9.1 or newer. Another option is to modify
22202 *** your PATH or compiler configuration so that the native linker is
22203 *** used, and then restart.
22206 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22207 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22208 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22209 else
22210 ld_shlibs_F77=no
22214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22215 case `$LD -v 2>&1` in
22216 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22217 ld_shlibs_F77=no
22218 cat <<_LT_EOF 1>&2
22220 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22221 *** reliably create shared libraries on SCO systems. Therefore, libtool
22222 *** is disabling shared libraries support. We urge you to upgrade GNU
22223 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22224 *** your PATH or compiler configuration so that the native linker is
22225 *** used, and then restart.
22227 _LT_EOF
22230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22231 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22232 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22233 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22234 else
22235 ld_shlibs_F77=no
22238 esac
22241 sunos4*)
22242 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22243 wlarc=
22244 hardcode_direct_F77=yes
22245 hardcode_shlibpath_var_F77=no
22249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22251 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22252 else
22253 ld_shlibs_F77=no
22256 esac
22258 if test "$ld_shlibs_F77" = no; then
22259 runpath_var=
22260 hardcode_libdir_flag_spec_F77=
22261 export_dynamic_flag_spec_F77=
22262 whole_archive_flag_spec_F77=
22264 else
22265 # PORTME fill in a description of your system's linker (not GNU ld)
22266 case $host_os in
22267 aix3*)
22268 allow_undefined_flag_F77=unsupported
22269 always_export_symbols_F77=yes
22270 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'
22271 # Note: this linker hardcodes the directories in LIBPATH if there
22272 # are no directories specified by -L.
22273 hardcode_minus_L_F77=yes
22274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22275 # Neither direct hardcoding nor static linking is supported with a
22276 # broken collect2.
22277 hardcode_direct_F77=unsupported
22281 aix4* | aix5*)
22282 if test "$host_cpu" = ia64; then
22283 # On IA64, the linker does run time linking by default, so we don't
22284 # have to do anything special.
22285 aix_use_runtimelinking=no
22286 exp_sym_flag='-Bexport'
22287 no_entry_flag=""
22288 else
22289 # If we're using GNU nm, then we don't want the "-C" option.
22290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22291 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22292 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'
22293 else
22294 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'
22296 aix_use_runtimelinking=no
22298 # Test if we are trying to use run time linking or normal
22299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22300 # need to do runtime linking.
22301 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22302 for ld_flag in $LDFLAGS; do
22303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22304 aix_use_runtimelinking=yes
22305 break
22307 done
22309 esac
22311 exp_sym_flag='-bexport'
22312 no_entry_flag='-bnoentry'
22315 # When large executables or shared objects are built, AIX ld can
22316 # have problems creating the table of contents. If linking a library
22317 # or program results in "error TOC overflow" add -mminimal-toc to
22318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22321 archive_cmds_F77=''
22322 hardcode_direct_F77=yes
22323 hardcode_libdir_separator_F77=':'
22324 link_all_deplibs_F77=yes
22326 if test "$GCC" = yes; then
22327 case $host_os in aix4.[012]|aix4.[012].*)
22328 # We only want to do this on AIX 4.2 and lower, the check
22329 # below for broken collect2 doesn't work under 4.3+
22330 collect2name=`${CC} -print-prog-name=collect2`
22331 if test -f "$collect2name" && \
22332 strings "$collect2name" | grep resolve_lib_name >/dev/null
22333 then
22334 # We have reworked collect2
22335 hardcode_direct_F77=yes
22336 else
22337 # We have old collect2
22338 hardcode_direct_F77=unsupported
22339 # It fails to find uninstalled libraries when the uninstalled
22340 # path is not listed in the libpath. Setting hardcode_minus_L
22341 # to unsupported forces relinking
22342 hardcode_minus_L_F77=yes
22343 hardcode_libdir_flag_spec_F77='-L$libdir'
22344 hardcode_libdir_separator_F77=
22347 esac
22348 shared_flag='-shared'
22349 if test "$aix_use_runtimelinking" = yes; then
22350 shared_flag="$shared_flag "'${wl}-G'
22352 else
22353 # not using gcc
22354 if test "$host_cpu" = ia64; then
22355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22356 # chokes on -Wl,-G. The following line is correct:
22357 shared_flag='-G'
22358 else
22359 if test "$aix_use_runtimelinking" = yes; then
22360 shared_flag='${wl}-G'
22361 else
22362 shared_flag='${wl}-bM:SRE'
22367 # It seems that -bexpall does not export symbols beginning with
22368 # underscore (_), so it is better to generate a list of symbols to export.
22369 always_export_symbols_F77=yes
22370 if test "$aix_use_runtimelinking" = yes; then
22371 # Warning - without using the other runtime loading flags (-brtl),
22372 # -berok will link without error, but may produce a broken library.
22373 allow_undefined_flag_F77='-berok'
22374 # Determine the default libpath from the value encoded in an empty executable.
22375 cat >conftest.$ac_ext <<_ACEOF
22376 program main
22379 _ACEOF
22380 rm -f conftest.$ac_objext conftest$ac_exeext
22381 if { (ac_try="$ac_link"
22382 case "(($ac_try" in
22383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22385 esac
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_link") 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22395 { (case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398 esac
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_try") 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; } &&
22404 { ac_try='test -s conftest$ac_exeext'
22405 { (case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22408 esac
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_try") 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
22415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22417 # Check for a 64-bit object if we didn't find anything.
22418 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; }
22419 }'`; fi
22420 else
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22427 rm -f core conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22431 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22432 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"
22433 else
22434 if test "$host_cpu" = ia64; then
22435 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22436 allow_undefined_flag_F77="-z nodefs"
22437 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"
22438 else
22439 # Determine the default libpath from the value encoded in an empty executable.
22440 cat >conftest.$ac_ext <<_ACEOF
22441 program main
22444 _ACEOF
22445 rm -f conftest.$ac_objext conftest$ac_exeext
22446 if { (ac_try="$ac_link"
22447 case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450 esac
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_link") 2>conftest.er1
22453 ac_status=$?
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
22459 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22460 { (case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_try") 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; } &&
22469 { ac_try='test -s conftest$ac_exeext'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
22480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22482 # Check for a 64-bit object if we didn't find anything.
22483 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; }
22484 }'`; fi
22485 else
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22492 rm -f core conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
22494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22496 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22497 # Warning - without using the other run time loading flags,
22498 # -berok will link without error, but may produce a broken library.
22499 no_undefined_flag_F77=' ${wl}-bernotok'
22500 allow_undefined_flag_F77=' ${wl}-berok'
22501 # Exported symbols can be pulled into shared objects from archives
22502 whole_archive_flag_spec_F77='$convenience'
22503 archive_cmds_need_lc_F77=yes
22504 # This is similar to how AIX traditionally builds its shared libraries.
22505 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'
22510 amigaos*)
22511 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)'
22512 hardcode_libdir_flag_spec_F77='-L$libdir'
22513 hardcode_minus_L_F77=yes
22514 # see comment about different semantics on the GNU ld section
22515 ld_shlibs_F77=no
22518 bsdi[45]*)
22519 export_dynamic_flag_spec_F77=-rdynamic
22522 cygwin* | mingw* | pw32*)
22523 # When not using gcc, we currently assume that we are using
22524 # Microsoft Visual C++.
22525 # hardcode_libdir_flag_spec is actually meaningless, as there is
22526 # no search path for DLLs.
22527 hardcode_libdir_flag_spec_F77=' '
22528 allow_undefined_flag_F77=unsupported
22529 # Tell ltmain to make .lib files, not .a files.
22530 libext=lib
22531 # Tell ltmain to make .dll files, not .so files.
22532 shrext_cmds=".dll"
22533 # FIXME: Setting linknames here is a bad hack.
22534 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22535 # The linker will automatically build a .lib file if we build a DLL.
22536 old_archive_From_new_cmds_F77='true'
22537 # FIXME: Should let the user specify the lib program.
22538 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22539 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22540 enable_shared_with_static_runtimes_F77=yes
22543 darwin* | rhapsody*)
22544 case $host_os in
22545 rhapsody* | darwin1.[012])
22546 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22548 *) # Darwin 1.3 on
22549 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22550 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22551 else
22552 case ${MACOSX_DEPLOYMENT_TARGET} in
22553 10.[012])
22554 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22556 10.*)
22557 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22559 esac
22562 esac
22563 archive_cmds_need_lc_F77=no
22564 hardcode_direct_F77=no
22565 hardcode_automatic_F77=yes
22566 hardcode_shlibpath_var_F77=unsupported
22567 whole_archive_flag_spec_F77=''
22568 link_all_deplibs_F77=yes
22569 if test "$GCC" = yes ; then
22570 output_verbose_link_cmd='echo'
22571 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22572 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22574 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}'
22575 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}'
22576 else
22577 case $cc_basename in
22578 xlc*)
22579 output_verbose_link_cmd='echo'
22580 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22581 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22583 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}'
22584 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}'
22587 ld_shlibs_F77=no
22589 esac
22593 dgux*)
22594 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22595 hardcode_libdir_flag_spec_F77='-L$libdir'
22596 hardcode_shlibpath_var_F77=no
22599 freebsd1*)
22600 ld_shlibs_F77=no
22603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22604 # support. Future versions do this automatically, but an explicit c++rt0.o
22605 # does not break anything, and helps significantly (at the cost of a little
22606 # extra space).
22607 freebsd2.2*)
22608 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22609 hardcode_libdir_flag_spec_F77='-R$libdir'
22610 hardcode_direct_F77=yes
22611 hardcode_shlibpath_var_F77=no
22614 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22615 freebsd2*)
22616 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22617 hardcode_direct_F77=yes
22618 hardcode_minus_L_F77=yes
22619 hardcode_shlibpath_var_F77=no
22622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22623 freebsd* | kfreebsd*-gnu | dragonfly*)
22624 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22625 hardcode_libdir_flag_spec_F77='-R$libdir'
22626 hardcode_direct_F77=yes
22627 hardcode_shlibpath_var_F77=no
22630 hpux9*)
22631 if test "$GCC" = yes; then
22632 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'
22633 else
22634 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'
22636 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22637 hardcode_libdir_separator_F77=:
22638 hardcode_direct_F77=yes
22640 # hardcode_minus_L: Not really in the search PATH,
22641 # but as the default location of the library.
22642 hardcode_minus_L_F77=yes
22643 export_dynamic_flag_spec_F77='${wl}-E'
22646 hpux10*)
22647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22648 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22649 else
22650 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22652 if test "$with_gnu_ld" = no; then
22653 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22654 hardcode_libdir_separator_F77=:
22656 hardcode_direct_F77=yes
22657 export_dynamic_flag_spec_F77='${wl}-E'
22659 # hardcode_minus_L: Not really in the search PATH,
22660 # but as the default location of the library.
22661 hardcode_minus_L_F77=yes
22665 hpux11*)
22666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22667 case $host_cpu in
22668 hppa*64*)
22669 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22671 ia64*)
22672 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22675 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22677 esac
22678 else
22679 case $host_cpu in
22680 hppa*64*)
22681 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22683 ia64*)
22684 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22689 esac
22691 if test "$with_gnu_ld" = no; then
22692 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22693 hardcode_libdir_separator_F77=:
22695 case $host_cpu in
22696 hppa*64*|ia64*)
22697 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22698 hardcode_direct_F77=no
22699 hardcode_shlibpath_var_F77=no
22702 hardcode_direct_F77=yes
22703 export_dynamic_flag_spec_F77='${wl}-E'
22705 # hardcode_minus_L: Not really in the search PATH,
22706 # but as the default location of the library.
22707 hardcode_minus_L_F77=yes
22709 esac
22713 irix5* | irix6* | nonstopux*)
22714 if test "$GCC" = yes; then
22715 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'
22716 else
22717 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'
22718 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22720 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22721 hardcode_libdir_separator_F77=:
22722 link_all_deplibs_F77=yes
22725 netbsd*)
22726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22727 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22728 else
22729 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22731 hardcode_libdir_flag_spec_F77='-R$libdir'
22732 hardcode_direct_F77=yes
22733 hardcode_shlibpath_var_F77=no
22736 newsos6)
22737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22738 hardcode_direct_F77=yes
22739 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22740 hardcode_libdir_separator_F77=:
22741 hardcode_shlibpath_var_F77=no
22744 openbsd*)
22745 hardcode_direct_F77=yes
22746 hardcode_shlibpath_var_F77=no
22747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22748 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22749 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22750 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22751 export_dynamic_flag_spec_F77='${wl}-E'
22752 else
22753 case $host_os in
22754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22756 hardcode_libdir_flag_spec_F77='-R$libdir'
22759 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22760 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22762 esac
22766 os2*)
22767 hardcode_libdir_flag_spec_F77='-L$libdir'
22768 hardcode_minus_L_F77=yes
22769 allow_undefined_flag_F77=unsupported
22770 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'
22771 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22774 osf3*)
22775 if test "$GCC" = yes; then
22776 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22777 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'
22778 else
22779 allow_undefined_flag_F77=' -expect_unresolved \*'
22780 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'
22782 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22783 hardcode_libdir_separator_F77=:
22786 osf4* | osf5*) # as osf3* with the addition of -msym flag
22787 if test "$GCC" = yes; then
22788 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22789 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'
22790 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22791 else
22792 allow_undefined_flag_F77=' -expect_unresolved \*'
22793 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'
22794 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~
22795 $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'
22797 # Both c and cxx compiler support -rpath directly
22798 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22800 hardcode_libdir_separator_F77=:
22803 solaris*)
22804 no_undefined_flag_F77=' -z text'
22805 if test "$GCC" = yes; then
22806 wlarc='${wl}'
22807 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22808 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22809 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22810 else
22811 wlarc=''
22812 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22813 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22816 hardcode_libdir_flag_spec_F77='-R$libdir'
22817 hardcode_shlibpath_var_F77=no
22818 case $host_os in
22819 solaris2.[0-5] | solaris2.[0-5].*) ;;
22821 # The compiler driver will combine linker options so we
22822 # cannot just pass the convience library names through
22823 # without $wl, iff we do not link with $LD.
22824 # Luckily, gcc supports the same syntax we need for Sun Studio.
22825 # Supported since Solaris 2.6 (maybe 2.5.1?)
22826 case $wlarc in
22828 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22830 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' ;;
22831 esac ;;
22832 esac
22833 link_all_deplibs_F77=yes
22836 sunos4*)
22837 if test "x$host_vendor" = xsequent; then
22838 # Use $CC to link under sequent, because it throws in some extra .o
22839 # files that make .init and .fini sections work.
22840 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22841 else
22842 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22844 hardcode_libdir_flag_spec_F77='-L$libdir'
22845 hardcode_direct_F77=yes
22846 hardcode_minus_L_F77=yes
22847 hardcode_shlibpath_var_F77=no
22850 sysv4)
22851 case $host_vendor in
22852 sni)
22853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22854 hardcode_direct_F77=yes # is this really true???
22856 siemens)
22857 ## LD is ld it makes a PLAMLIB
22858 ## CC just makes a GrossModule.
22859 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22860 reload_cmds_F77='$CC -r -o $output$reload_objs'
22861 hardcode_direct_F77=no
22863 motorola)
22864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22865 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22867 esac
22868 runpath_var='LD_RUN_PATH'
22869 hardcode_shlibpath_var_F77=no
22872 sysv4.3*)
22873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22874 hardcode_shlibpath_var_F77=no
22875 export_dynamic_flag_spec_F77='-Bexport'
22878 sysv4*MP*)
22879 if test -d /usr/nec; then
22880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22881 hardcode_shlibpath_var_F77=no
22882 runpath_var=LD_RUN_PATH
22883 hardcode_runpath_var=yes
22884 ld_shlibs_F77=yes
22888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22889 no_undefined_flag_F77='${wl}-z,text'
22890 archive_cmds_need_lc_F77=no
22891 hardcode_shlibpath_var_F77=no
22892 runpath_var='LD_RUN_PATH'
22894 if test "$GCC" = yes; then
22895 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22896 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22897 else
22898 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22899 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22903 sysv5* | sco3.2v5* | sco5v6*)
22904 # Note: We can NOT use -z defs as we might desire, because we do not
22905 # link with -lc, and that would cause any symbols used from libc to
22906 # always be unresolved, which means just about no library would
22907 # ever link correctly. If we're not using GNU ld we use -z text
22908 # though, which does catch some bad symbols but isn't as heavy-handed
22909 # as -z defs.
22910 no_undefined_flag_F77='${wl}-z,text'
22911 allow_undefined_flag_F77='${wl}-z,nodefs'
22912 archive_cmds_need_lc_F77=no
22913 hardcode_shlibpath_var_F77=no
22914 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22915 hardcode_libdir_separator_F77=':'
22916 link_all_deplibs_F77=yes
22917 export_dynamic_flag_spec_F77='${wl}-Bexport'
22918 runpath_var='LD_RUN_PATH'
22920 if test "$GCC" = yes; then
22921 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22922 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22923 else
22924 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22925 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22929 uts4*)
22930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22931 hardcode_libdir_flag_spec_F77='-L$libdir'
22932 hardcode_shlibpath_var_F77=no
22936 ld_shlibs_F77=no
22938 esac
22941 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22942 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22943 test "$ld_shlibs_F77" = no && can_build_shared=no
22946 # Do we need to explicitly link libc?
22948 case "x$archive_cmds_need_lc_F77" in
22949 x|xyes)
22950 # Assume -lc should be added
22951 archive_cmds_need_lc_F77=yes
22953 if test "$enable_shared" = yes && test "$GCC" = yes; then
22954 case $archive_cmds_F77 in
22955 *'~'*)
22956 # FIXME: we may have to deal with multi-command sequences.
22958 '$CC '*)
22959 # Test whether the compiler implicitly links with -lc since on some
22960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22961 # to ld, don't add -lc before -lgcc.
22962 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22963 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22964 $rm conftest*
22965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22968 (eval $ac_compile) 2>&5
22969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } 2>conftest.err; then
22972 soname=conftest
22973 lib=conftest
22974 libobjs=conftest.$ac_objext
22975 deplibs=
22976 wl=$lt_prog_compiler_wl_F77
22977 pic_flag=$lt_prog_compiler_pic_F77
22978 compiler_flags=-v
22979 linker_flags=-v
22980 verstring=
22981 output_objdir=.
22982 libname=conftest
22983 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22984 allow_undefined_flag_F77=
22985 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22986 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }
22990 then
22991 archive_cmds_need_lc_F77=no
22992 else
22993 archive_cmds_need_lc_F77=yes
22995 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22996 else
22997 cat conftest.err 1>&5
22999 $rm conftest*
23000 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23001 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23003 esac
23006 esac
23008 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23009 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23010 library_names_spec=
23011 libname_spec='lib$name'
23012 soname_spec=
23013 shrext_cmds=".so"
23014 postinstall_cmds=
23015 postuninstall_cmds=
23016 finish_cmds=
23017 finish_eval=
23018 shlibpath_var=
23019 shlibpath_overrides_runpath=unknown
23020 version_type=none
23021 dynamic_linker="$host_os ld.so"
23022 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23023 if test "$GCC" = yes; then
23024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23025 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23026 # if the path contains ";" then we assume it to be the separator
23027 # otherwise default to the standard path separator (i.e. ":") - it is
23028 # assumed that no part of a normal pathname contains ";" but that should
23029 # okay in the real world where ";" in dirpaths is itself problematic.
23030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23031 else
23032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23034 else
23035 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23037 need_lib_prefix=unknown
23038 hardcode_into_libs=no
23040 # when you set need_version to no, make sure it does not cause -set_version
23041 # flags to be left without arguments
23042 need_version=unknown
23044 case $host_os in
23045 aix3*)
23046 version_type=linux
23047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23048 shlibpath_var=LIBPATH
23050 # AIX 3 has no versioning support, so we append a major version to the name.
23051 soname_spec='${libname}${release}${shared_ext}$major'
23054 aix4* | aix5*)
23055 version_type=linux
23056 need_lib_prefix=no
23057 need_version=no
23058 hardcode_into_libs=yes
23059 if test "$host_cpu" = ia64; then
23060 # AIX 5 supports IA64
23061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23062 shlibpath_var=LD_LIBRARY_PATH
23063 else
23064 # With GCC up to 2.95.x, collect2 would create an import file
23065 # for dependence libraries. The import file would start with
23066 # the line `#! .'. This would cause the generated library to
23067 # depend on `.', always an invalid library. This was fixed in
23068 # development snapshots of GCC prior to 3.0.
23069 case $host_os in
23070 aix4 | aix4.[01] | aix4.[01].*)
23071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23072 echo ' yes '
23073 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23075 else
23076 can_build_shared=no
23079 esac
23080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23081 # soname into executable. Probably we can add versioning support to
23082 # collect2, so additional links can be useful in future.
23083 if test "$aix_use_runtimelinking" = yes; then
23084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23085 # instead of lib<name>.a to let people know that these are not
23086 # typical AIX shared libraries.
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088 else
23089 # We preserve .a as extension for shared libraries through AIX4.2
23090 # and later when we are not doing run time linking.
23091 library_names_spec='${libname}${release}.a $libname.a'
23092 soname_spec='${libname}${release}${shared_ext}$major'
23094 shlibpath_var=LIBPATH
23098 amigaos*)
23099 library_names_spec='$libname.ixlibrary $libname.a'
23100 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23101 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'
23104 beos*)
23105 library_names_spec='${libname}${shared_ext}'
23106 dynamic_linker="$host_os ld.so"
23107 shlibpath_var=LIBRARY_PATH
23110 bsdi[45]*)
23111 version_type=linux
23112 need_version=no
23113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23114 soname_spec='${libname}${release}${shared_ext}$major'
23115 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23116 shlibpath_var=LD_LIBRARY_PATH
23117 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23118 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23119 # the default ld.so.conf also contains /usr/contrib/lib and
23120 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23121 # libtool to hard-code these into programs
23124 cygwin* | mingw* | pw32*)
23125 version_type=windows
23126 shrext_cmds=".dll"
23127 need_version=no
23128 need_lib_prefix=no
23130 case $GCC,$host_os in
23131 yes,cygwin* | yes,mingw* | yes,pw32*)
23132 library_names_spec='$libname.dll.a'
23133 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23134 postinstall_cmds='base_file=`basename \${file}`~
23135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23136 dldir=$destdir/`dirname \$dlpath`~
23137 test -d \$dldir || mkdir -p \$dldir~
23138 $install_prog $dir/$dlname \$dldir/$dlname~
23139 chmod a+x \$dldir/$dlname'
23140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23141 dlpath=$dir/\$dldll~
23142 $rm \$dlpath'
23143 shlibpath_overrides_runpath=yes
23145 case $host_os in
23146 cygwin*)
23147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23149 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23151 mingw*)
23152 # MinGW DLLs use traditional 'lib' prefix
23153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23154 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23155 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23156 # It is most probably a Windows format PATH printed by
23157 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23158 # path with ; separators, and with drive letters. We can handle the
23159 # drive letters (cygwin fileutils understands them), so leave them,
23160 # especially as we might pass files found there to a mingw objdump,
23161 # which wouldn't understand a cygwinified path. Ahh.
23162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23163 else
23164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23167 pw32*)
23168 # pw32 DLLs use 'pw' prefix rather than 'lib'
23169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23171 esac
23175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23177 esac
23178 dynamic_linker='Win32 ld.exe'
23179 # FIXME: first we should search . and the directory the executable is in
23180 shlibpath_var=PATH
23183 darwin* | rhapsody*)
23184 dynamic_linker="$host_os dyld"
23185 version_type=darwin
23186 need_lib_prefix=no
23187 need_version=no
23188 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23189 soname_spec='${libname}${release}${major}$shared_ext'
23190 shlibpath_overrides_runpath=yes
23191 shlibpath_var=DYLD_LIBRARY_PATH
23192 shrext_cmds='.dylib'
23193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23194 if test "$GCC" = yes; then
23195 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"`
23196 else
23197 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23202 dgux*)
23203 version_type=linux
23204 need_lib_prefix=no
23205 need_version=no
23206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23207 soname_spec='${libname}${release}${shared_ext}$major'
23208 shlibpath_var=LD_LIBRARY_PATH
23211 freebsd1*)
23212 dynamic_linker=no
23215 kfreebsd*-gnu)
23216 version_type=linux
23217 need_lib_prefix=no
23218 need_version=no
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23220 soname_spec='${libname}${release}${shared_ext}$major'
23221 shlibpath_var=LD_LIBRARY_PATH
23222 shlibpath_overrides_runpath=no
23223 hardcode_into_libs=yes
23224 dynamic_linker='GNU ld.so'
23227 freebsd* | dragonfly*)
23228 # DragonFly does not have aout. When/if they implement a new
23229 # versioning mechanism, adjust this.
23230 if test -x /usr/bin/objformat; then
23231 objformat=`/usr/bin/objformat`
23232 else
23233 case $host_os in
23234 freebsd[123]*) objformat=aout ;;
23235 *) objformat=elf ;;
23236 esac
23238 version_type=freebsd-$objformat
23239 case $version_type in
23240 freebsd-elf*)
23241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23242 need_version=no
23243 need_lib_prefix=no
23245 freebsd-*)
23246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23247 need_version=yes
23249 esac
23250 shlibpath_var=LD_LIBRARY_PATH
23251 case $host_os in
23252 freebsd2*)
23253 shlibpath_overrides_runpath=yes
23255 freebsd3.[01]* | freebsdelf3.[01]*)
23256 shlibpath_overrides_runpath=yes
23257 hardcode_into_libs=yes
23259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23261 shlibpath_overrides_runpath=no
23262 hardcode_into_libs=yes
23264 freebsd*) # from 4.6 on
23265 shlibpath_overrides_runpath=yes
23266 hardcode_into_libs=yes
23268 esac
23271 gnu*)
23272 version_type=linux
23273 need_lib_prefix=no
23274 need_version=no
23275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23276 soname_spec='${libname}${release}${shared_ext}$major'
23277 shlibpath_var=LD_LIBRARY_PATH
23278 hardcode_into_libs=yes
23281 hpux9* | hpux10* | hpux11*)
23282 # Give a soname corresponding to the major version so that dld.sl refuses to
23283 # link against other versions.
23284 version_type=sunos
23285 need_lib_prefix=no
23286 need_version=no
23287 case $host_cpu in
23288 ia64*)
23289 shrext_cmds='.so'
23290 hardcode_into_libs=yes
23291 dynamic_linker="$host_os dld.so"
23292 shlibpath_var=LD_LIBRARY_PATH
23293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23295 soname_spec='${libname}${release}${shared_ext}$major'
23296 if test "X$HPUX_IA64_MODE" = X32; then
23297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23298 else
23299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23303 hppa*64*)
23304 shrext_cmds='.sl'
23305 hardcode_into_libs=yes
23306 dynamic_linker="$host_os dld.sl"
23307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23310 soname_spec='${libname}${release}${shared_ext}$major'
23311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23315 shrext_cmds='.sl'
23316 dynamic_linker="$host_os dld.sl"
23317 shlibpath_var=SHLIB_PATH
23318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23320 soname_spec='${libname}${release}${shared_ext}$major'
23322 esac
23323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23324 postinstall_cmds='chmod 555 $lib'
23327 interix3*)
23328 version_type=linux
23329 need_lib_prefix=no
23330 need_version=no
23331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23332 soname_spec='${libname}${release}${shared_ext}$major'
23333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23334 shlibpath_var=LD_LIBRARY_PATH
23335 shlibpath_overrides_runpath=no
23336 hardcode_into_libs=yes
23339 irix5* | irix6* | nonstopux*)
23340 case $host_os in
23341 nonstopux*) version_type=nonstopux ;;
23343 if test "$lt_cv_prog_gnu_ld" = yes; then
23344 version_type=linux
23345 else
23346 version_type=irix
23347 fi ;;
23348 esac
23349 need_lib_prefix=no
23350 need_version=no
23351 soname_spec='${libname}${release}${shared_ext}$major'
23352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23353 case $host_os in
23354 irix5* | nonstopux*)
23355 libsuff= shlibsuff=
23358 case $LD in # libtool.m4 will add one of these switches to LD
23359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23360 libsuff= shlibsuff= libmagic=32-bit;;
23361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23362 libsuff=32 shlibsuff=N32 libmagic=N32;;
23363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23365 *) libsuff= shlibsuff= libmagic=never-match;;
23366 esac
23368 esac
23369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23370 shlibpath_overrides_runpath=no
23371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23373 hardcode_into_libs=yes
23376 # No shared lib support for Linux oldld, aout, or coff.
23377 linux*oldld* | linux*aout* | linux*coff*)
23378 dynamic_linker=no
23381 # This must be Linux ELF.
23382 linux*)
23383 version_type=linux
23384 need_lib_prefix=no
23385 need_version=no
23386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23387 soname_spec='${libname}${release}${shared_ext}$major'
23388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23389 shlibpath_var=LD_LIBRARY_PATH
23390 shlibpath_overrides_runpath=no
23391 # This implies no fast_install, which is unacceptable.
23392 # Some rework will be needed to allow for fast_install
23393 # before this can be enabled.
23394 hardcode_into_libs=yes
23396 # Append ld.so.conf contents to the search path
23397 if test -f /etc/ld.so.conf; then
23398 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' ' '`
23399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23402 # We used to test for /lib/ld.so.1 and disable shared libraries on
23403 # powerpc, because MkLinux only supported shared libraries with the
23404 # GNU dynamic linker. Since this was broken with cross compilers,
23405 # most powerpc-linux boxes support dynamic linking these days and
23406 # people can always --disable-shared, the test was removed, and we
23407 # assume the GNU/Linux dynamic linker is in use.
23408 dynamic_linker='GNU/Linux ld.so'
23411 knetbsd*-gnu)
23412 version_type=linux
23413 need_lib_prefix=no
23414 need_version=no
23415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23416 soname_spec='${libname}${release}${shared_ext}$major'
23417 shlibpath_var=LD_LIBRARY_PATH
23418 shlibpath_overrides_runpath=no
23419 hardcode_into_libs=yes
23420 dynamic_linker='GNU ld.so'
23423 netbsd*)
23424 version_type=sunos
23425 need_lib_prefix=no
23426 need_version=no
23427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23430 dynamic_linker='NetBSD (a.out) ld.so'
23431 else
23432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23433 soname_spec='${libname}${release}${shared_ext}$major'
23434 dynamic_linker='NetBSD ld.elf_so'
23436 shlibpath_var=LD_LIBRARY_PATH
23437 shlibpath_overrides_runpath=yes
23438 hardcode_into_libs=yes
23441 newsos6)
23442 version_type=linux
23443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23444 shlibpath_var=LD_LIBRARY_PATH
23445 shlibpath_overrides_runpath=yes
23448 nto-qnx*)
23449 version_type=linux
23450 need_lib_prefix=no
23451 need_version=no
23452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23453 soname_spec='${libname}${release}${shared_ext}$major'
23454 shlibpath_var=LD_LIBRARY_PATH
23455 shlibpath_overrides_runpath=yes
23458 openbsd*)
23459 version_type=sunos
23460 sys_lib_dlsearch_path_spec="/usr/lib"
23461 need_lib_prefix=no
23462 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23463 case $host_os in
23464 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23465 *) need_version=no ;;
23466 esac
23467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23469 shlibpath_var=LD_LIBRARY_PATH
23470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23471 case $host_os in
23472 openbsd2.[89] | openbsd2.[89].*)
23473 shlibpath_overrides_runpath=no
23476 shlibpath_overrides_runpath=yes
23478 esac
23479 else
23480 shlibpath_overrides_runpath=yes
23484 os2*)
23485 libname_spec='$name'
23486 shrext_cmds=".dll"
23487 need_lib_prefix=no
23488 library_names_spec='$libname${shared_ext} $libname.a'
23489 dynamic_linker='OS/2 ld.exe'
23490 shlibpath_var=LIBPATH
23493 osf3* | osf4* | osf5*)
23494 version_type=osf
23495 need_lib_prefix=no
23496 need_version=no
23497 soname_spec='${libname}${release}${shared_ext}$major'
23498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23499 shlibpath_var=LD_LIBRARY_PATH
23500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23501 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23504 solaris*)
23505 version_type=linux
23506 need_lib_prefix=no
23507 need_version=no
23508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23509 soname_spec='${libname}${release}${shared_ext}$major'
23510 shlibpath_var=LD_LIBRARY_PATH
23511 shlibpath_overrides_runpath=yes
23512 hardcode_into_libs=yes
23513 # ldd complains unless libraries are executable
23514 postinstall_cmds='chmod +x $lib'
23517 sunos4*)
23518 version_type=sunos
23519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 shlibpath_overrides_runpath=yes
23523 if test "$with_gnu_ld" = yes; then
23524 need_lib_prefix=no
23526 need_version=yes
23529 sysv4 | sysv4.3*)
23530 version_type=linux
23531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23532 soname_spec='${libname}${release}${shared_ext}$major'
23533 shlibpath_var=LD_LIBRARY_PATH
23534 case $host_vendor in
23535 sni)
23536 shlibpath_overrides_runpath=no
23537 need_lib_prefix=no
23538 export_dynamic_flag_spec='${wl}-Blargedynsym'
23539 runpath_var=LD_RUN_PATH
23541 siemens)
23542 need_lib_prefix=no
23544 motorola)
23545 need_lib_prefix=no
23546 need_version=no
23547 shlibpath_overrides_runpath=no
23548 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23550 esac
23553 sysv4*MP*)
23554 if test -d /usr/nec ;then
23555 version_type=linux
23556 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23557 soname_spec='$libname${shared_ext}.$major'
23558 shlibpath_var=LD_LIBRARY_PATH
23562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23563 version_type=freebsd-elf
23564 need_lib_prefix=no
23565 need_version=no
23566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23567 soname_spec='${libname}${release}${shared_ext}$major'
23568 shlibpath_var=LD_LIBRARY_PATH
23569 hardcode_into_libs=yes
23570 if test "$with_gnu_ld" = yes; then
23571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23572 shlibpath_overrides_runpath=no
23573 else
23574 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23575 shlibpath_overrides_runpath=yes
23576 case $host_os in
23577 sco3.2v5*)
23578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23580 esac
23582 sys_lib_dlsearch_path_spec='/usr/lib'
23585 uts4*)
23586 version_type=linux
23587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23588 soname_spec='${libname}${release}${shared_ext}$major'
23589 shlibpath_var=LD_LIBRARY_PATH
23593 dynamic_linker=no
23595 esac
23596 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23597 echo "${ECHO_T}$dynamic_linker" >&6; }
23598 test "$dynamic_linker" = no && can_build_shared=no
23600 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23601 if test "$GCC" = yes; then
23602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23605 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23606 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23607 hardcode_action_F77=
23608 if test -n "$hardcode_libdir_flag_spec_F77" || \
23609 test -n "$runpath_var_F77" || \
23610 test "X$hardcode_automatic_F77" = "Xyes" ; then
23612 # We can hardcode non-existant directories.
23613 if test "$hardcode_direct_F77" != no &&
23614 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23615 # have to relink, otherwise we might link with an installed library
23616 # when we should be linking with a yet-to-be-installed one
23617 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23618 test "$hardcode_minus_L_F77" != no; then
23619 # Linking always hardcodes the temporary library directory.
23620 hardcode_action_F77=relink
23621 else
23622 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23623 hardcode_action_F77=immediate
23625 else
23626 # We cannot hardcode anything, or else we can only hardcode existing
23627 # directories.
23628 hardcode_action_F77=unsupported
23630 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23631 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23633 if test "$hardcode_action_F77" = relink; then
23634 # Fast installation is not supported
23635 enable_fast_install=no
23636 elif test "$shlibpath_overrides_runpath" = yes ||
23637 test "$enable_shared" = no; then
23638 # Fast installation is not necessary
23639 enable_fast_install=needless
23643 # The else clause should only fire when bootstrapping the
23644 # libtool distribution, otherwise you forgot to ship ltmain.sh
23645 # with your package, and you will get complaints that there are
23646 # no rules to generate ltmain.sh.
23647 if test -f "$ltmain"; then
23648 # See if we are running on zsh, and set the options which allow our commands through
23649 # without removal of \ escapes.
23650 if test -n "${ZSH_VERSION+set}" ; then
23651 setopt NO_GLOB_SUBST
23653 # Now quote all the things that may contain metacharacters while being
23654 # careful not to overquote the AC_SUBSTed values. We take copies of the
23655 # variables and quote the copies for generation of the libtool script.
23656 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23657 SED SHELL STRIP \
23658 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23659 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23660 deplibs_check_method reload_flag reload_cmds need_locks \
23661 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23662 lt_cv_sys_global_symbol_to_c_name_address \
23663 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23664 old_postinstall_cmds old_postuninstall_cmds \
23665 compiler_F77 \
23666 CC_F77 \
23667 LD_F77 \
23668 lt_prog_compiler_wl_F77 \
23669 lt_prog_compiler_pic_F77 \
23670 lt_prog_compiler_static_F77 \
23671 lt_prog_compiler_no_builtin_flag_F77 \
23672 export_dynamic_flag_spec_F77 \
23673 thread_safe_flag_spec_F77 \
23674 whole_archive_flag_spec_F77 \
23675 enable_shared_with_static_runtimes_F77 \
23676 old_archive_cmds_F77 \
23677 old_archive_from_new_cmds_F77 \
23678 predep_objects_F77 \
23679 postdep_objects_F77 \
23680 predeps_F77 \
23681 postdeps_F77 \
23682 compiler_lib_search_path_F77 \
23683 archive_cmds_F77 \
23684 archive_expsym_cmds_F77 \
23685 postinstall_cmds_F77 \
23686 postuninstall_cmds_F77 \
23687 old_archive_from_expsyms_cmds_F77 \
23688 allow_undefined_flag_F77 \
23689 no_undefined_flag_F77 \
23690 export_symbols_cmds_F77 \
23691 hardcode_libdir_flag_spec_F77 \
23692 hardcode_libdir_flag_spec_ld_F77 \
23693 hardcode_libdir_separator_F77 \
23694 hardcode_automatic_F77 \
23695 module_cmds_F77 \
23696 module_expsym_cmds_F77 \
23697 lt_cv_prog_compiler_c_o_F77 \
23698 exclude_expsyms_F77 \
23699 include_expsyms_F77; do
23701 case $var in
23702 old_archive_cmds_F77 | \
23703 old_archive_from_new_cmds_F77 | \
23704 archive_cmds_F77 | \
23705 archive_expsym_cmds_F77 | \
23706 module_cmds_F77 | \
23707 module_expsym_cmds_F77 | \
23708 old_archive_from_expsyms_cmds_F77 | \
23709 export_symbols_cmds_F77 | \
23710 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23711 postinstall_cmds | postuninstall_cmds | \
23712 old_postinstall_cmds | old_postuninstall_cmds | \
23713 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23714 # Double-quote double-evaled strings.
23715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23720 esac
23721 done
23723 case $lt_echo in
23724 *'\$0 --fallback-echo"')
23725 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23727 esac
23729 cfgfile="$ofile"
23731 cat <<__EOF__ >> "$cfgfile"
23732 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23736 # Shell to use when invoking shell scripts.
23737 SHELL=$lt_SHELL
23739 # Whether or not to build shared libraries.
23740 build_libtool_libs=$enable_shared
23742 # Whether or not to build static libraries.
23743 build_old_libs=$enable_static
23745 # Whether or not to add -lc for building shared libraries.
23746 build_libtool_need_lc=$archive_cmds_need_lc_F77
23748 # Whether or not to disallow shared libs when runtime libs are static
23749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23751 # Whether or not to optimize for fast installation.
23752 fast_install=$enable_fast_install
23754 # The host system.
23755 host_alias=$host_alias
23756 host=$host
23757 host_os=$host_os
23759 # The build system.
23760 build_alias=$build_alias
23761 build=$build
23762 build_os=$build_os
23764 # An echo program that does not interpret backslashes.
23765 echo=$lt_echo
23767 # The archiver.
23768 AR=$lt_AR
23769 AR_FLAGS=$lt_AR_FLAGS
23771 # A C compiler.
23772 LTCC=$lt_LTCC
23774 # LTCC compiler flags.
23775 LTCFLAGS=$lt_LTCFLAGS
23777 # A language-specific compiler.
23778 CC=$lt_compiler_F77
23780 # Is the compiler the GNU C compiler?
23781 with_gcc=$GCC_F77
23783 # An ERE matcher.
23784 EGREP=$lt_EGREP
23786 # The linker used to build libraries.
23787 LD=$lt_LD_F77
23789 # Whether we need hard or soft links.
23790 LN_S=$lt_LN_S
23792 # A BSD-compatible nm program.
23793 NM=$lt_NM
23795 # A symbol stripping program
23796 STRIP=$lt_STRIP
23798 # Used to examine libraries when file_magic_cmd begins "file"
23799 MAGIC_CMD=$MAGIC_CMD
23801 # Used on cygwin: DLL creation program.
23802 DLLTOOL="$DLLTOOL"
23804 # Used on cygwin: object dumper.
23805 OBJDUMP="$OBJDUMP"
23807 # Used on cygwin: assembler.
23808 AS="$AS"
23810 # The name of the directory that contains temporary libtool files.
23811 objdir=$objdir
23813 # How to create reloadable object files.
23814 reload_flag=$lt_reload_flag
23815 reload_cmds=$lt_reload_cmds
23817 # How to pass a linker flag through the compiler.
23818 wl=$lt_lt_prog_compiler_wl_F77
23820 # Object file suffix (normally "o").
23821 objext="$ac_objext"
23823 # Old archive suffix (normally "a").
23824 libext="$libext"
23826 # Shared library suffix (normally ".so").
23827 shrext_cmds='$shrext_cmds'
23829 # Executable file suffix (normally "").
23830 exeext="$exeext"
23832 # Additional compiler flags for building library objects.
23833 pic_flag=$lt_lt_prog_compiler_pic_F77
23834 pic_mode=$pic_mode
23836 # What is the maximum length of a command?
23837 max_cmd_len=$lt_cv_sys_max_cmd_len
23839 # Does compiler simultaneously support -c and -o options?
23840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23842 # Must we lock files when doing compilation?
23843 need_locks=$lt_need_locks
23845 # Do we need the lib prefix for modules?
23846 need_lib_prefix=$need_lib_prefix
23848 # Do we need a version for libraries?
23849 need_version=$need_version
23851 # Whether dlopen is supported.
23852 dlopen_support=$enable_dlopen
23854 # Whether dlopen of programs is supported.
23855 dlopen_self=$enable_dlopen_self
23857 # Whether dlopen of statically linked programs is supported.
23858 dlopen_self_static=$enable_dlopen_self_static
23860 # Compiler flag to prevent dynamic linking.
23861 link_static_flag=$lt_lt_prog_compiler_static_F77
23863 # Compiler flag to turn off builtin functions.
23864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23866 # Compiler flag to allow reflexive dlopens.
23867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23869 # Compiler flag to generate shared objects directly from archives.
23870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23872 # Compiler flag to generate thread-safe objects.
23873 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23875 # Library versioning type.
23876 version_type=$version_type
23878 # Format of library name prefix.
23879 libname_spec=$lt_libname_spec
23881 # List of archive names. First name is the real one, the rest are links.
23882 # The last name is the one that the linker finds with -lNAME.
23883 library_names_spec=$lt_library_names_spec
23885 # The coded name of the library, if different from the real name.
23886 soname_spec=$lt_soname_spec
23888 # Commands used to build and install an old-style archive.
23889 RANLIB=$lt_RANLIB
23890 old_archive_cmds=$lt_old_archive_cmds_F77
23891 old_postinstall_cmds=$lt_old_postinstall_cmds
23892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23894 # Create an old-style archive from a shared archive.
23895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23897 # Create a temporary old-style archive to link instead of a shared archive.
23898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23900 # Commands used to build and install a shared archive.
23901 archive_cmds=$lt_archive_cmds_F77
23902 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23903 postinstall_cmds=$lt_postinstall_cmds
23904 postuninstall_cmds=$lt_postuninstall_cmds
23906 # Commands used to build a loadable module (assumed same as above if empty)
23907 module_cmds=$lt_module_cmds_F77
23908 module_expsym_cmds=$lt_module_expsym_cmds_F77
23910 # Commands to strip libraries.
23911 old_striplib=$lt_old_striplib
23912 striplib=$lt_striplib
23914 # Dependencies to place before the objects being linked to create a
23915 # shared library.
23916 predep_objects=$lt_predep_objects_F77
23918 # Dependencies to place after the objects being linked to create a
23919 # shared library.
23920 postdep_objects=$lt_postdep_objects_F77
23922 # Dependencies to place before the objects being linked to create a
23923 # shared library.
23924 predeps=$lt_predeps_F77
23926 # Dependencies to place after the objects being linked to create a
23927 # shared library.
23928 postdeps=$lt_postdeps_F77
23930 # The library search path used internally by the compiler when linking
23931 # a shared library.
23932 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23934 # Method to check whether dependent libraries are shared objects.
23935 deplibs_check_method=$lt_deplibs_check_method
23937 # Command to use when deplibs_check_method == file_magic.
23938 file_magic_cmd=$lt_file_magic_cmd
23940 # Flag that allows shared libraries with undefined symbols to be built.
23941 allow_undefined_flag=$lt_allow_undefined_flag_F77
23943 # Flag that forces no undefined symbols.
23944 no_undefined_flag=$lt_no_undefined_flag_F77
23946 # Commands used to finish a libtool library installation in a directory.
23947 finish_cmds=$lt_finish_cmds
23949 # Same as above, but a single script fragment to be evaled but not shown.
23950 finish_eval=$lt_finish_eval
23952 # Take the output of nm and produce a listing of raw symbols and C names.
23953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23955 # Transform the output of nm in a proper C declaration
23956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23958 # Transform the output of nm in a C name address pair
23959 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23961 # This is the shared library runtime path variable.
23962 runpath_var=$runpath_var
23964 # This is the shared library path variable.
23965 shlibpath_var=$shlibpath_var
23967 # Is shlibpath searched before the hard-coded library search path?
23968 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23970 # How to hardcode a shared library path into an executable.
23971 hardcode_action=$hardcode_action_F77
23973 # Whether we should hardcode library paths into libraries.
23974 hardcode_into_libs=$hardcode_into_libs
23976 # Flag to hardcode \$libdir into a binary during linking.
23977 # This must work even if \$libdir does not exist.
23978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23980 # If ld is used when linking, flag to hardcode \$libdir into
23981 # a binary during linking. This must work even if \$libdir does
23982 # not exist.
23983 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23985 # Whether we need a single -rpath flag with a separated argument.
23986 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23988 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23989 # resulting binary.
23990 hardcode_direct=$hardcode_direct_F77
23992 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23993 # resulting binary.
23994 hardcode_minus_L=$hardcode_minus_L_F77
23996 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23997 # the resulting binary.
23998 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24000 # Set to yes if building a shared library automatically hardcodes DIR into the library
24001 # and all subsequent libraries and executables linked against it.
24002 hardcode_automatic=$hardcode_automatic_F77
24004 # Variables whose values should be saved in libtool wrapper scripts and
24005 # restored at relink time.
24006 variables_saved_for_relink="$variables_saved_for_relink"
24008 # Whether libtool must link a program against all its dependency libraries.
24009 link_all_deplibs=$link_all_deplibs_F77
24011 # Compile-time system search path for libraries
24012 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24014 # Run-time system search path for libraries
24015 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24017 # Fix the shell variable \$srcfile for the compiler.
24018 fix_srcfile_path="$fix_srcfile_path_F77"
24020 # Set to yes if exported symbols are required.
24021 always_export_symbols=$always_export_symbols_F77
24023 # The commands to list exported symbols.
24024 export_symbols_cmds=$lt_export_symbols_cmds_F77
24026 # The commands to extract the exported symbol list from a shared archive.
24027 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24029 # Symbols that should not be listed in the preloaded symbols.
24030 exclude_expsyms=$lt_exclude_expsyms_F77
24032 # Symbols that must always be exported.
24033 include_expsyms=$lt_include_expsyms_F77
24035 # ### END LIBTOOL TAG CONFIG: $tagname
24037 __EOF__
24040 else
24041 # If there is no Makefile yet, we rely on a make rule to execute
24042 # `config.status --recheck' to rerun these tests and create the
24043 # libtool script then.
24044 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24045 if test -f "$ltmain_in"; then
24046 test -f Makefile && make "$ltmain"
24051 ac_ext=c
24052 ac_cpp='$CPP $CPPFLAGS'
24053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24057 CC="$lt_save_CC"
24059 else
24060 tagname=""
24064 GCJ)
24065 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24066 ac_ext=c
24067 ac_cpp='$CPP $CPPFLAGS'
24068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24073 # Source file extension for Java test sources.
24074 ac_ext=java
24076 # Object file extension for compiled Java test sources.
24077 objext=o
24078 objext_GCJ=$objext
24080 # Code to be used in simple compile tests
24081 lt_simple_compile_test_code="class foo {}\n"
24083 # Code to be used in simple link tests
24084 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24088 # If no C compiler was specified, use CC.
24089 LTCC=${LTCC-"$CC"}
24091 # If no C compiler flags were specified, use CFLAGS.
24092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24094 # Allow CC to be a program name with arguments.
24095 compiler=$CC
24098 # save warnings/boilerplate of simple test code
24099 ac_outfile=conftest.$ac_objext
24100 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24102 _lt_compiler_boilerplate=`cat conftest.err`
24103 $rm conftest*
24105 ac_outfile=conftest.$ac_objext
24106 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24107 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24108 _lt_linker_boilerplate=`cat conftest.err`
24109 $rm conftest*
24112 # Allow CC to be a program name with arguments.
24113 lt_save_CC="$CC"
24114 CC=${GCJ-"gcj"}
24115 compiler=$CC
24116 compiler_GCJ=$CC
24117 for cc_temp in $compiler""; do
24118 case $cc_temp in
24119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24121 \-*) ;;
24122 *) break;;
24123 esac
24124 done
24125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24128 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24129 archive_cmds_need_lc_GCJ=no
24131 old_archive_cmds_GCJ=$old_archive_cmds
24134 lt_prog_compiler_no_builtin_flag_GCJ=
24136 if test "$GCC" = yes; then
24137 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24140 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24141 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24142 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24144 else
24145 lt_cv_prog_compiler_rtti_exceptions=no
24146 ac_outfile=conftest.$ac_objext
24147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24148 lt_compiler_flag="-fno-rtti -fno-exceptions"
24149 # Insert the option either (1) after the last *FLAGS variable, or
24150 # (2) before a word containing "conftest.", or (3) at the end.
24151 # Note that $ac_compile itself does not contain backslashes and begins
24152 # with a dollar sign (not a hyphen), so the echo should work correctly.
24153 # The option is referenced via a variable to avoid confusing sed.
24154 lt_compile=`echo "$ac_compile" | $SED \
24155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24157 -e 's:$: $lt_compiler_flag:'`
24158 (eval echo "\"\$as_me:24158: $lt_compile\"" >&5)
24159 (eval "$lt_compile" 2>conftest.err)
24160 ac_status=$?
24161 cat conftest.err >&5
24162 echo "$as_me:24162: \$? = $ac_status" >&5
24163 if (exit $ac_status) && test -s "$ac_outfile"; then
24164 # The compiler can only warn and ignore the option if not recognized
24165 # So say no if there are warnings other than the usual output.
24166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24169 lt_cv_prog_compiler_rtti_exceptions=yes
24172 $rm conftest*
24175 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24176 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24178 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24179 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24180 else
24186 lt_prog_compiler_wl_GCJ=
24187 lt_prog_compiler_pic_GCJ=
24188 lt_prog_compiler_static_GCJ=
24190 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24191 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24193 if test "$GCC" = yes; then
24194 lt_prog_compiler_wl_GCJ='-Wl,'
24195 lt_prog_compiler_static_GCJ='-static'
24197 case $host_os in
24198 aix*)
24199 # All AIX code is PIC.
24200 if test "$host_cpu" = ia64; then
24201 # AIX 5 now supports IA64 processor
24202 lt_prog_compiler_static_GCJ='-Bstatic'
24206 amigaos*)
24207 # FIXME: we need at least 68020 code to build shared libraries, but
24208 # adding the `-m68020' flag to GCC prevents building anything better,
24209 # like `-m68040'.
24210 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24213 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24214 # PIC is the default for these OSes.
24217 mingw* | pw32* | os2*)
24218 # This hack is so that the source file can tell whether it is being
24219 # built for inclusion in a dll (and should export symbols for example).
24220 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24223 darwin* | rhapsody*)
24224 # PIC is the default on this platform
24225 # Common symbols not allowed in MH_DYLIB files
24226 lt_prog_compiler_pic_GCJ='-fno-common'
24229 interix3*)
24230 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24231 # Instead, we relocate shared libraries at runtime.
24234 msdosdjgpp*)
24235 # Just because we use GCC doesn't mean we suddenly get shared libraries
24236 # on systems that don't support them.
24237 lt_prog_compiler_can_build_shared_GCJ=no
24238 enable_shared=no
24241 sysv4*MP*)
24242 if test -d /usr/nec; then
24243 lt_prog_compiler_pic_GCJ=-Kconform_pic
24247 hpux*)
24248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24249 # not for PA HP-UX.
24250 case $host_cpu in
24251 hppa*64*|ia64*)
24252 # +Z the default
24255 lt_prog_compiler_pic_GCJ='-fPIC'
24257 esac
24261 lt_prog_compiler_pic_GCJ='-fPIC'
24263 esac
24264 else
24265 # PORTME Check for flag to pass linker flags through the system compiler.
24266 case $host_os in
24267 aix*)
24268 lt_prog_compiler_wl_GCJ='-Wl,'
24269 if test "$host_cpu" = ia64; then
24270 # AIX 5 now supports IA64 processor
24271 lt_prog_compiler_static_GCJ='-Bstatic'
24272 else
24273 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24276 darwin*)
24277 # PIC is the default on this platform
24278 # Common symbols not allowed in MH_DYLIB files
24279 case $cc_basename in
24280 xlc*)
24281 lt_prog_compiler_pic_GCJ='-qnocommon'
24282 lt_prog_compiler_wl_GCJ='-Wl,'
24284 esac
24287 mingw* | pw32* | os2*)
24288 # This hack is so that the source file can tell whether it is being
24289 # built for inclusion in a dll (and should export symbols for example).
24290 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24293 hpux9* | hpux10* | hpux11*)
24294 lt_prog_compiler_wl_GCJ='-Wl,'
24295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24296 # not for PA HP-UX.
24297 case $host_cpu in
24298 hppa*64*|ia64*)
24299 # +Z the default
24302 lt_prog_compiler_pic_GCJ='+Z'
24304 esac
24305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24306 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24309 irix5* | irix6* | nonstopux*)
24310 lt_prog_compiler_wl_GCJ='-Wl,'
24311 # PIC (with -KPIC) is the default.
24312 lt_prog_compiler_static_GCJ='-non_shared'
24315 newsos6)
24316 lt_prog_compiler_pic_GCJ='-KPIC'
24317 lt_prog_compiler_static_GCJ='-Bstatic'
24320 linux*)
24321 case $cc_basename in
24322 icc* | ecc*)
24323 lt_prog_compiler_wl_GCJ='-Wl,'
24324 lt_prog_compiler_pic_GCJ='-KPIC'
24325 lt_prog_compiler_static_GCJ='-static'
24327 pgcc* | pgf77* | pgf90* | pgf95*)
24328 # Portland Group compilers (*not* the Pentium gcc compiler,
24329 # which looks to be a dead project)
24330 lt_prog_compiler_wl_GCJ='-Wl,'
24331 lt_prog_compiler_pic_GCJ='-fpic'
24332 lt_prog_compiler_static_GCJ='-Bstatic'
24334 ccc*)
24335 lt_prog_compiler_wl_GCJ='-Wl,'
24336 # All Alpha code is PIC.
24337 lt_prog_compiler_static_GCJ='-non_shared'
24339 esac
24342 osf3* | osf4* | osf5*)
24343 lt_prog_compiler_wl_GCJ='-Wl,'
24344 # All OSF/1 code is PIC.
24345 lt_prog_compiler_static_GCJ='-non_shared'
24348 solaris*)
24349 lt_prog_compiler_pic_GCJ='-KPIC'
24350 lt_prog_compiler_static_GCJ='-Bstatic'
24351 case $cc_basename in
24352 f77* | f90* | f95*)
24353 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24355 lt_prog_compiler_wl_GCJ='-Wl,';;
24356 esac
24359 sunos4*)
24360 lt_prog_compiler_wl_GCJ='-Qoption ld '
24361 lt_prog_compiler_pic_GCJ='-PIC'
24362 lt_prog_compiler_static_GCJ='-Bstatic'
24365 sysv4 | sysv4.2uw2* | sysv4.3*)
24366 lt_prog_compiler_wl_GCJ='-Wl,'
24367 lt_prog_compiler_pic_GCJ='-KPIC'
24368 lt_prog_compiler_static_GCJ='-Bstatic'
24371 sysv4*MP*)
24372 if test -d /usr/nec ;then
24373 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24374 lt_prog_compiler_static_GCJ='-Bstatic'
24378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24379 lt_prog_compiler_wl_GCJ='-Wl,'
24380 lt_prog_compiler_pic_GCJ='-KPIC'
24381 lt_prog_compiler_static_GCJ='-Bstatic'
24384 unicos*)
24385 lt_prog_compiler_wl_GCJ='-Wl,'
24386 lt_prog_compiler_can_build_shared_GCJ=no
24389 uts4*)
24390 lt_prog_compiler_pic_GCJ='-pic'
24391 lt_prog_compiler_static_GCJ='-Bstatic'
24395 lt_prog_compiler_can_build_shared_GCJ=no
24397 esac
24400 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24401 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24404 # Check to make sure the PIC flag actually works.
24406 if test -n "$lt_prog_compiler_pic_GCJ"; then
24408 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24410 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24412 else
24413 lt_prog_compiler_pic_works_GCJ=no
24414 ac_outfile=conftest.$ac_objext
24415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24416 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24417 # Insert the option either (1) after the last *FLAGS variable, or
24418 # (2) before a word containing "conftest.", or (3) at the end.
24419 # Note that $ac_compile itself does not contain backslashes and begins
24420 # with a dollar sign (not a hyphen), so the echo should work correctly.
24421 # The option is referenced via a variable to avoid confusing sed.
24422 lt_compile=`echo "$ac_compile" | $SED \
24423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24425 -e 's:$: $lt_compiler_flag:'`
24426 (eval echo "\"\$as_me:24426: $lt_compile\"" >&5)
24427 (eval "$lt_compile" 2>conftest.err)
24428 ac_status=$?
24429 cat conftest.err >&5
24430 echo "$as_me:24430: \$? = $ac_status" >&5
24431 if (exit $ac_status) && test -s "$ac_outfile"; then
24432 # The compiler can only warn and ignore the option if not recognized
24433 # So say no if there are warnings other than the usual output.
24434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24437 lt_prog_compiler_pic_works_GCJ=yes
24440 $rm conftest*
24443 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24444 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24446 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24447 case $lt_prog_compiler_pic_GCJ in
24448 "" | " "*) ;;
24449 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24450 esac
24451 else
24452 lt_prog_compiler_pic_GCJ=
24453 lt_prog_compiler_can_build_shared_GCJ=no
24457 case $host_os in
24458 # For platforms which do not support PIC, -DPIC is meaningless:
24459 *djgpp*)
24460 lt_prog_compiler_pic_GCJ=
24463 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24465 esac
24468 # Check to make sure the static flag actually works.
24470 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24471 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24472 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24473 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24474 echo $ECHO_N "(cached) $ECHO_C" >&6
24475 else
24476 lt_prog_compiler_static_works_GCJ=no
24477 save_LDFLAGS="$LDFLAGS"
24478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24479 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24481 # The linker can only warn and ignore the option if not recognized
24482 # So say no if there are warnings
24483 if test -s conftest.err; then
24484 # Append any errors to the config.log.
24485 cat conftest.err 1>&5
24486 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24488 if diff conftest.exp conftest.er2 >/dev/null; then
24489 lt_prog_compiler_static_works_GCJ=yes
24491 else
24492 lt_prog_compiler_static_works_GCJ=yes
24495 $rm conftest*
24496 LDFLAGS="$save_LDFLAGS"
24499 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24500 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24502 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24504 else
24505 lt_prog_compiler_static_GCJ=
24509 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24510 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24511 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24512 echo $ECHO_N "(cached) $ECHO_C" >&6
24513 else
24514 lt_cv_prog_compiler_c_o_GCJ=no
24515 $rm -r conftest 2>/dev/null
24516 mkdir conftest
24517 cd conftest
24518 mkdir out
24519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24521 lt_compiler_flag="-o out/conftest2.$ac_objext"
24522 # Insert the option either (1) after the last *FLAGS variable, or
24523 # (2) before a word containing "conftest.", or (3) at the end.
24524 # Note that $ac_compile itself does not contain backslashes and begins
24525 # with a dollar sign (not a hyphen), so the echo should work correctly.
24526 lt_compile=`echo "$ac_compile" | $SED \
24527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24529 -e 's:$: $lt_compiler_flag:'`
24530 (eval echo "\"\$as_me:24530: $lt_compile\"" >&5)
24531 (eval "$lt_compile" 2>out/conftest.err)
24532 ac_status=$?
24533 cat out/conftest.err >&5
24534 echo "$as_me:24534: \$? = $ac_status" >&5
24535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24536 then
24537 # The compiler can only warn and ignore the option if not recognized
24538 # So say no if there are warnings
24539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24542 lt_cv_prog_compiler_c_o_GCJ=yes
24545 chmod u+w . 2>&5
24546 $rm conftest*
24547 # SGI C++ compiler will create directory out/ii_files/ for
24548 # template instantiation
24549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24550 $rm out/* && rmdir out
24551 cd ..
24552 rmdir conftest
24553 $rm conftest*
24556 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24557 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24560 hard_links="nottested"
24561 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24562 # do not overwrite the value of need_locks provided by the user
24563 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24564 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24565 hard_links=yes
24566 $rm conftest*
24567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24568 touch conftest.a
24569 ln conftest.a conftest.b 2>&5 || hard_links=no
24570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24571 { echo "$as_me:$LINENO: result: $hard_links" >&5
24572 echo "${ECHO_T}$hard_links" >&6; }
24573 if test "$hard_links" = no; then
24574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24575 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24576 need_locks=warn
24578 else
24579 need_locks=no
24582 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24583 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24585 runpath_var=
24586 allow_undefined_flag_GCJ=
24587 enable_shared_with_static_runtimes_GCJ=no
24588 archive_cmds_GCJ=
24589 archive_expsym_cmds_GCJ=
24590 old_archive_From_new_cmds_GCJ=
24591 old_archive_from_expsyms_cmds_GCJ=
24592 export_dynamic_flag_spec_GCJ=
24593 whole_archive_flag_spec_GCJ=
24594 thread_safe_flag_spec_GCJ=
24595 hardcode_libdir_flag_spec_GCJ=
24596 hardcode_libdir_flag_spec_ld_GCJ=
24597 hardcode_libdir_separator_GCJ=
24598 hardcode_direct_GCJ=no
24599 hardcode_minus_L_GCJ=no
24600 hardcode_shlibpath_var_GCJ=unsupported
24601 link_all_deplibs_GCJ=unknown
24602 hardcode_automatic_GCJ=no
24603 module_cmds_GCJ=
24604 module_expsym_cmds_GCJ=
24605 always_export_symbols_GCJ=no
24606 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24607 # include_expsyms should be a list of space-separated symbols to be *always*
24608 # included in the symbol list
24609 include_expsyms_GCJ=
24610 # exclude_expsyms can be an extended regexp of symbols to exclude
24611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24613 # as well as any symbol that contains `d'.
24614 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24616 # platforms (ab)use it in PIC code, but their linkers get confused if
24617 # the symbol is explicitly referenced. Since portable code cannot
24618 # rely on this symbol name, it's probably fine to never include it in
24619 # preloaded symbol tables.
24620 extract_expsyms_cmds=
24621 # Just being paranoid about ensuring that cc_basename is set.
24622 for cc_temp in $compiler""; do
24623 case $cc_temp in
24624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24626 \-*) ;;
24627 *) break;;
24628 esac
24629 done
24630 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24632 case $host_os in
24633 cygwin* | mingw* | pw32*)
24634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24635 # When not using gcc, we currently assume that we are using
24636 # Microsoft Visual C++.
24637 if test "$GCC" != yes; then
24638 with_gnu_ld=no
24641 interix*)
24642 # we just hope/assume this is gcc and not c89 (= MSVC++)
24643 with_gnu_ld=yes
24645 openbsd*)
24646 with_gnu_ld=no
24648 esac
24650 ld_shlibs_GCJ=yes
24651 if test "$with_gnu_ld" = yes; then
24652 # If archive_cmds runs LD, not CC, wlarc should be empty
24653 wlarc='${wl}'
24655 # Set some defaults for GNU ld with shared library support. These
24656 # are reset later if shared libraries are not supported. Putting them
24657 # here allows them to be overridden if necessary.
24658 runpath_var=LD_RUN_PATH
24659 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24660 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24661 # ancient GNU ld didn't support --whole-archive et. al.
24662 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24663 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24664 else
24665 whole_archive_flag_spec_GCJ=
24667 supports_anon_versioning=no
24668 case `$LD -v 2>/dev/null` in
24669 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24670 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24671 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24672 *\ 2.11.*) ;; # other 2.11 versions
24673 *) supports_anon_versioning=yes ;;
24674 esac
24676 # See if GNU ld supports shared libraries.
24677 case $host_os in
24678 aix3* | aix4* | aix5*)
24679 # On AIX/PPC, the GNU linker is very broken
24680 if test "$host_cpu" != ia64; then
24681 ld_shlibs_GCJ=no
24682 cat <<EOF 1>&2
24684 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24685 *** to be unable to reliably create shared libraries on AIX.
24686 *** Therefore, libtool is disabling shared libraries support. If you
24687 *** really care for shared libraries, you may want to modify your PATH
24688 *** so that a non-GNU linker is found, and then restart.
24694 amigaos*)
24695 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)'
24696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24697 hardcode_minus_L_GCJ=yes
24699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24700 # that the semantics of dynamic libraries on AmigaOS, at least up
24701 # to version 4, is to share data among multiple programs linked
24702 # with the same dynamic library. Since this doesn't match the
24703 # behavior of shared libraries on other platforms, we can't use
24704 # them.
24705 ld_shlibs_GCJ=no
24708 beos*)
24709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24710 allow_undefined_flag_GCJ=unsupported
24711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24712 # support --undefined. This deserves some investigation. FIXME
24713 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24714 else
24715 ld_shlibs_GCJ=no
24719 cygwin* | mingw* | pw32*)
24720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24721 # as there is no search path for DLLs.
24722 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24723 allow_undefined_flag_GCJ=unsupported
24724 always_export_symbols_GCJ=no
24725 enable_shared_with_static_runtimes_GCJ=yes
24726 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24728 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24730 # If the export-symbols file already is a .def file (1st line
24731 # is EXPORTS), use it as is; otherwise, prepend...
24732 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24733 cp $export_symbols $output_objdir/$soname.def;
24734 else
24735 echo EXPORTS > $output_objdir/$soname.def;
24736 cat $export_symbols >> $output_objdir/$soname.def;
24738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24739 else
24740 ld_shlibs_GCJ=no
24744 interix3*)
24745 hardcode_direct_GCJ=no
24746 hardcode_shlibpath_var_GCJ=no
24747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24748 export_dynamic_flag_spec_GCJ='${wl}-E'
24749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24750 # Instead, shared libraries are loaded at an image base (0x10000000 by
24751 # default) and relocated if they conflict, which is a slow very memory
24752 # consuming and fragmenting process. To avoid this, we pick a random,
24753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24755 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'
24756 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'
24759 linux*)
24760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24761 tmp_addflag=
24762 case $cc_basename,$host_cpu in
24763 pgcc*) # Portland Group C compiler
24764 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'
24765 tmp_addflag=' $pic_flag'
24767 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24768 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'
24769 tmp_addflag=' $pic_flag -Mnomain' ;;
24770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24771 tmp_addflag=' -i_dynamic' ;;
24772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24773 tmp_addflag=' -i_dynamic -nofor_main' ;;
24774 ifc* | ifort*) # Intel Fortran compiler
24775 tmp_addflag=' -nofor_main' ;;
24776 esac
24777 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24779 if test $supports_anon_versioning = yes; then
24780 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24782 $echo "local: *; };" >> $output_objdir/$libname.ver~
24783 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24785 else
24786 ld_shlibs_GCJ=no
24790 netbsd*)
24791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24792 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24793 wlarc=
24794 else
24795 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24796 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24800 solaris*)
24801 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24802 ld_shlibs_GCJ=no
24803 cat <<EOF 1>&2
24805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24806 *** create shared libraries on Solaris systems. Therefore, libtool
24807 *** is disabling shared libraries support. We urge you to upgrade GNU
24808 *** binutils to release 2.9.1 or newer. Another option is to modify
24809 *** your PATH or compiler configuration so that the native linker is
24810 *** used, and then restart.
24813 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24814 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24815 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24816 else
24817 ld_shlibs_GCJ=no
24821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24822 case `$LD -v 2>&1` in
24823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24824 ld_shlibs_GCJ=no
24825 cat <<_LT_EOF 1>&2
24827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24828 *** reliably create shared libraries on SCO systems. Therefore, libtool
24829 *** is disabling shared libraries support. We urge you to upgrade GNU
24830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24831 *** your PATH or compiler configuration so that the native linker is
24832 *** used, and then restart.
24834 _LT_EOF
24837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24838 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24839 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24840 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24841 else
24842 ld_shlibs_GCJ=no
24845 esac
24848 sunos4*)
24849 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24850 wlarc=
24851 hardcode_direct_GCJ=yes
24852 hardcode_shlibpath_var_GCJ=no
24856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24857 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24858 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24859 else
24860 ld_shlibs_GCJ=no
24863 esac
24865 if test "$ld_shlibs_GCJ" = no; then
24866 runpath_var=
24867 hardcode_libdir_flag_spec_GCJ=
24868 export_dynamic_flag_spec_GCJ=
24869 whole_archive_flag_spec_GCJ=
24871 else
24872 # PORTME fill in a description of your system's linker (not GNU ld)
24873 case $host_os in
24874 aix3*)
24875 allow_undefined_flag_GCJ=unsupported
24876 always_export_symbols_GCJ=yes
24877 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'
24878 # Note: this linker hardcodes the directories in LIBPATH if there
24879 # are no directories specified by -L.
24880 hardcode_minus_L_GCJ=yes
24881 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24882 # Neither direct hardcoding nor static linking is supported with a
24883 # broken collect2.
24884 hardcode_direct_GCJ=unsupported
24888 aix4* | aix5*)
24889 if test "$host_cpu" = ia64; then
24890 # On IA64, the linker does run time linking by default, so we don't
24891 # have to do anything special.
24892 aix_use_runtimelinking=no
24893 exp_sym_flag='-Bexport'
24894 no_entry_flag=""
24895 else
24896 # If we're using GNU nm, then we don't want the "-C" option.
24897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24899 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'
24900 else
24901 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'
24903 aix_use_runtimelinking=no
24905 # Test if we are trying to use run time linking or normal
24906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24907 # need to do runtime linking.
24908 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24909 for ld_flag in $LDFLAGS; do
24910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24911 aix_use_runtimelinking=yes
24912 break
24914 done
24916 esac
24918 exp_sym_flag='-bexport'
24919 no_entry_flag='-bnoentry'
24922 # When large executables or shared objects are built, AIX ld can
24923 # have problems creating the table of contents. If linking a library
24924 # or program results in "error TOC overflow" add -mminimal-toc to
24925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24928 archive_cmds_GCJ=''
24929 hardcode_direct_GCJ=yes
24930 hardcode_libdir_separator_GCJ=':'
24931 link_all_deplibs_GCJ=yes
24933 if test "$GCC" = yes; then
24934 case $host_os in aix4.[012]|aix4.[012].*)
24935 # We only want to do this on AIX 4.2 and lower, the check
24936 # below for broken collect2 doesn't work under 4.3+
24937 collect2name=`${CC} -print-prog-name=collect2`
24938 if test -f "$collect2name" && \
24939 strings "$collect2name" | grep resolve_lib_name >/dev/null
24940 then
24941 # We have reworked collect2
24942 hardcode_direct_GCJ=yes
24943 else
24944 # We have old collect2
24945 hardcode_direct_GCJ=unsupported
24946 # It fails to find uninstalled libraries when the uninstalled
24947 # path is not listed in the libpath. Setting hardcode_minus_L
24948 # to unsupported forces relinking
24949 hardcode_minus_L_GCJ=yes
24950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24951 hardcode_libdir_separator_GCJ=
24954 esac
24955 shared_flag='-shared'
24956 if test "$aix_use_runtimelinking" = yes; then
24957 shared_flag="$shared_flag "'${wl}-G'
24959 else
24960 # not using gcc
24961 if test "$host_cpu" = ia64; then
24962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24963 # chokes on -Wl,-G. The following line is correct:
24964 shared_flag='-G'
24965 else
24966 if test "$aix_use_runtimelinking" = yes; then
24967 shared_flag='${wl}-G'
24968 else
24969 shared_flag='${wl}-bM:SRE'
24974 # It seems that -bexpall does not export symbols beginning with
24975 # underscore (_), so it is better to generate a list of symbols to export.
24976 always_export_symbols_GCJ=yes
24977 if test "$aix_use_runtimelinking" = yes; then
24978 # Warning - without using the other runtime loading flags (-brtl),
24979 # -berok will link without error, but may produce a broken library.
24980 allow_undefined_flag_GCJ='-berok'
24981 # Determine the default libpath from the value encoded in an empty executable.
24982 cat >conftest.$ac_ext <<_ACEOF
24983 /* confdefs.h. */
24984 _ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24990 main ()
24994 return 0;
24996 _ACEOF
24997 rm -f conftest.$ac_objext conftest$ac_exeext
24998 if { (ac_try="$ac_link"
24999 case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25002 esac
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_link") 2>conftest.er1
25005 ac_status=$?
25006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25012 { (case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25015 esac
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_try") 2>&5
25018 ac_status=$?
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; } &&
25021 { ac_try='test -s conftest$ac_exeext'
25022 { (case "(($ac_try" in
25023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024 *) ac_try_echo=$ac_try;;
25025 esac
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027 (eval "$ac_try") 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25034 # Check for a 64-bit object if we didn't find anything.
25035 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; }
25036 }'`; fi
25037 else
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25044 rm -f core conftest.err conftest.$ac_objext \
25045 conftest$ac_exeext conftest.$ac_ext
25046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25048 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25049 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"
25050 else
25051 if test "$host_cpu" = ia64; then
25052 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25053 allow_undefined_flag_GCJ="-z nodefs"
25054 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"
25055 else
25056 # Determine the default libpath from the value encoded in an empty executable.
25057 cat >conftest.$ac_ext <<_ACEOF
25058 /* confdefs.h. */
25059 _ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25065 main ()
25069 return 0;
25071 _ACEOF
25072 rm -f conftest.$ac_objext conftest$ac_exeext
25073 if { (ac_try="$ac_link"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077 esac
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_link") 2>conftest.er1
25080 ac_status=$?
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } &&
25086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25087 { (case "(($ac_try" in
25088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089 *) ac_try_echo=$ac_try;;
25090 esac
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092 (eval "$ac_try") 2>&5
25093 ac_status=$?
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; } &&
25096 { ac_try='test -s conftest$ac_exeext'
25097 { (case "(($ac_try" in
25098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099 *) ac_try_echo=$ac_try;;
25100 esac
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102 (eval "$ac_try") 2>&5
25103 ac_status=$?
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; }; then
25107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25109 # Check for a 64-bit object if we didn't find anything.
25110 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; }
25111 }'`; fi
25112 else
25113 echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25119 rm -f core conftest.err conftest.$ac_objext \
25120 conftest$ac_exeext conftest.$ac_ext
25121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25123 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25124 # Warning - without using the other run time loading flags,
25125 # -berok will link without error, but may produce a broken library.
25126 no_undefined_flag_GCJ=' ${wl}-bernotok'
25127 allow_undefined_flag_GCJ=' ${wl}-berok'
25128 # Exported symbols can be pulled into shared objects from archives
25129 whole_archive_flag_spec_GCJ='$convenience'
25130 archive_cmds_need_lc_GCJ=yes
25131 # This is similar to how AIX traditionally builds its shared libraries.
25132 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'
25137 amigaos*)
25138 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)'
25139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25140 hardcode_minus_L_GCJ=yes
25141 # see comment about different semantics on the GNU ld section
25142 ld_shlibs_GCJ=no
25145 bsdi[45]*)
25146 export_dynamic_flag_spec_GCJ=-rdynamic
25149 cygwin* | mingw* | pw32*)
25150 # When not using gcc, we currently assume that we are using
25151 # Microsoft Visual C++.
25152 # hardcode_libdir_flag_spec is actually meaningless, as there is
25153 # no search path for DLLs.
25154 hardcode_libdir_flag_spec_GCJ=' '
25155 allow_undefined_flag_GCJ=unsupported
25156 # Tell ltmain to make .lib files, not .a files.
25157 libext=lib
25158 # Tell ltmain to make .dll files, not .so files.
25159 shrext_cmds=".dll"
25160 # FIXME: Setting linknames here is a bad hack.
25161 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25162 # The linker will automatically build a .lib file if we build a DLL.
25163 old_archive_From_new_cmds_GCJ='true'
25164 # FIXME: Should let the user specify the lib program.
25165 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25166 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25167 enable_shared_with_static_runtimes_GCJ=yes
25170 darwin* | rhapsody*)
25171 case $host_os in
25172 rhapsody* | darwin1.[012])
25173 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25175 *) # Darwin 1.3 on
25176 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25177 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25178 else
25179 case ${MACOSX_DEPLOYMENT_TARGET} in
25180 10.[012])
25181 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25183 10.*)
25184 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25186 esac
25189 esac
25190 archive_cmds_need_lc_GCJ=no
25191 hardcode_direct_GCJ=no
25192 hardcode_automatic_GCJ=yes
25193 hardcode_shlibpath_var_GCJ=unsupported
25194 whole_archive_flag_spec_GCJ=''
25195 link_all_deplibs_GCJ=yes
25196 if test "$GCC" = yes ; then
25197 output_verbose_link_cmd='echo'
25198 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25199 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25201 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}'
25202 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}'
25203 else
25204 case $cc_basename in
25205 xlc*)
25206 output_verbose_link_cmd='echo'
25207 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25208 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25210 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}'
25211 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}'
25214 ld_shlibs_GCJ=no
25216 esac
25220 dgux*)
25221 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25222 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25223 hardcode_shlibpath_var_GCJ=no
25226 freebsd1*)
25227 ld_shlibs_GCJ=no
25230 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25231 # support. Future versions do this automatically, but an explicit c++rt0.o
25232 # does not break anything, and helps significantly (at the cost of a little
25233 # extra space).
25234 freebsd2.2*)
25235 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237 hardcode_direct_GCJ=yes
25238 hardcode_shlibpath_var_GCJ=no
25241 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25242 freebsd2*)
25243 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25244 hardcode_direct_GCJ=yes
25245 hardcode_minus_L_GCJ=yes
25246 hardcode_shlibpath_var_GCJ=no
25249 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25250 freebsd* | kfreebsd*-gnu | dragonfly*)
25251 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25252 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25253 hardcode_direct_GCJ=yes
25254 hardcode_shlibpath_var_GCJ=no
25257 hpux9*)
25258 if test "$GCC" = yes; then
25259 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'
25260 else
25261 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'
25263 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25264 hardcode_libdir_separator_GCJ=:
25265 hardcode_direct_GCJ=yes
25267 # hardcode_minus_L: Not really in the search PATH,
25268 # but as the default location of the library.
25269 hardcode_minus_L_GCJ=yes
25270 export_dynamic_flag_spec_GCJ='${wl}-E'
25273 hpux10*)
25274 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25275 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25276 else
25277 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25279 if test "$with_gnu_ld" = no; then
25280 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25281 hardcode_libdir_separator_GCJ=:
25283 hardcode_direct_GCJ=yes
25284 export_dynamic_flag_spec_GCJ='${wl}-E'
25286 # hardcode_minus_L: Not really in the search PATH,
25287 # but as the default location of the library.
25288 hardcode_minus_L_GCJ=yes
25292 hpux11*)
25293 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25294 case $host_cpu in
25295 hppa*64*)
25296 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25298 ia64*)
25299 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25302 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25304 esac
25305 else
25306 case $host_cpu in
25307 hppa*64*)
25308 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25310 ia64*)
25311 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25314 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25316 esac
25318 if test "$with_gnu_ld" = no; then
25319 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25320 hardcode_libdir_separator_GCJ=:
25322 case $host_cpu in
25323 hppa*64*|ia64*)
25324 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25325 hardcode_direct_GCJ=no
25326 hardcode_shlibpath_var_GCJ=no
25329 hardcode_direct_GCJ=yes
25330 export_dynamic_flag_spec_GCJ='${wl}-E'
25332 # hardcode_minus_L: Not really in the search PATH,
25333 # but as the default location of the library.
25334 hardcode_minus_L_GCJ=yes
25336 esac
25340 irix5* | irix6* | nonstopux*)
25341 if test "$GCC" = yes; then
25342 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'
25343 else
25344 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'
25345 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25348 hardcode_libdir_separator_GCJ=:
25349 link_all_deplibs_GCJ=yes
25352 netbsd*)
25353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25355 else
25356 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25358 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25359 hardcode_direct_GCJ=yes
25360 hardcode_shlibpath_var_GCJ=no
25363 newsos6)
25364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25365 hardcode_direct_GCJ=yes
25366 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25367 hardcode_libdir_separator_GCJ=:
25368 hardcode_shlibpath_var_GCJ=no
25371 openbsd*)
25372 hardcode_direct_GCJ=yes
25373 hardcode_shlibpath_var_GCJ=no
25374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25375 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25376 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25378 export_dynamic_flag_spec_GCJ='${wl}-E'
25379 else
25380 case $host_os in
25381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25382 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25383 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25386 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25387 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25389 esac
25393 os2*)
25394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25395 hardcode_minus_L_GCJ=yes
25396 allow_undefined_flag_GCJ=unsupported
25397 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'
25398 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25401 osf3*)
25402 if test "$GCC" = yes; then
25403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25404 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'
25405 else
25406 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25407 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'
25409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25410 hardcode_libdir_separator_GCJ=:
25413 osf4* | osf5*) # as osf3* with the addition of -msym flag
25414 if test "$GCC" = yes; then
25415 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25416 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'
25417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25418 else
25419 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25420 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'
25421 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~
25422 $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'
25424 # Both c and cxx compiler support -rpath directly
25425 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25427 hardcode_libdir_separator_GCJ=:
25430 solaris*)
25431 no_undefined_flag_GCJ=' -z text'
25432 if test "$GCC" = yes; then
25433 wlarc='${wl}'
25434 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25435 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25436 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25437 else
25438 wlarc=''
25439 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25440 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25443 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25444 hardcode_shlibpath_var_GCJ=no
25445 case $host_os in
25446 solaris2.[0-5] | solaris2.[0-5].*) ;;
25448 # The compiler driver will combine linker options so we
25449 # cannot just pass the convience library names through
25450 # without $wl, iff we do not link with $LD.
25451 # Luckily, gcc supports the same syntax we need for Sun Studio.
25452 # Supported since Solaris 2.6 (maybe 2.5.1?)
25453 case $wlarc in
25455 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25457 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' ;;
25458 esac ;;
25459 esac
25460 link_all_deplibs_GCJ=yes
25463 sunos4*)
25464 if test "x$host_vendor" = xsequent; then
25465 # Use $CC to link under sequent, because it throws in some extra .o
25466 # files that make .init and .fini sections work.
25467 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25468 else
25469 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25471 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25472 hardcode_direct_GCJ=yes
25473 hardcode_minus_L_GCJ=yes
25474 hardcode_shlibpath_var_GCJ=no
25477 sysv4)
25478 case $host_vendor in
25479 sni)
25480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25481 hardcode_direct_GCJ=yes # is this really true???
25483 siemens)
25484 ## LD is ld it makes a PLAMLIB
25485 ## CC just makes a GrossModule.
25486 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25487 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25488 hardcode_direct_GCJ=no
25490 motorola)
25491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25492 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25494 esac
25495 runpath_var='LD_RUN_PATH'
25496 hardcode_shlibpath_var_GCJ=no
25499 sysv4.3*)
25500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25501 hardcode_shlibpath_var_GCJ=no
25502 export_dynamic_flag_spec_GCJ='-Bexport'
25505 sysv4*MP*)
25506 if test -d /usr/nec; then
25507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25508 hardcode_shlibpath_var_GCJ=no
25509 runpath_var=LD_RUN_PATH
25510 hardcode_runpath_var=yes
25511 ld_shlibs_GCJ=yes
25515 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25516 no_undefined_flag_GCJ='${wl}-z,text'
25517 archive_cmds_need_lc_GCJ=no
25518 hardcode_shlibpath_var_GCJ=no
25519 runpath_var='LD_RUN_PATH'
25521 if test "$GCC" = yes; then
25522 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25523 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25524 else
25525 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25526 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25530 sysv5* | sco3.2v5* | sco5v6*)
25531 # Note: We can NOT use -z defs as we might desire, because we do not
25532 # link with -lc, and that would cause any symbols used from libc to
25533 # always be unresolved, which means just about no library would
25534 # ever link correctly. If we're not using GNU ld we use -z text
25535 # though, which does catch some bad symbols but isn't as heavy-handed
25536 # as -z defs.
25537 no_undefined_flag_GCJ='${wl}-z,text'
25538 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25539 archive_cmds_need_lc_GCJ=no
25540 hardcode_shlibpath_var_GCJ=no
25541 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25542 hardcode_libdir_separator_GCJ=':'
25543 link_all_deplibs_GCJ=yes
25544 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25545 runpath_var='LD_RUN_PATH'
25547 if test "$GCC" = yes; then
25548 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25549 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25550 else
25551 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25552 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25556 uts4*)
25557 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25558 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25559 hardcode_shlibpath_var_GCJ=no
25563 ld_shlibs_GCJ=no
25565 esac
25568 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25569 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25570 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25573 # Do we need to explicitly link libc?
25575 case "x$archive_cmds_need_lc_GCJ" in
25576 x|xyes)
25577 # Assume -lc should be added
25578 archive_cmds_need_lc_GCJ=yes
25580 if test "$enable_shared" = yes && test "$GCC" = yes; then
25581 case $archive_cmds_GCJ in
25582 *'~'*)
25583 # FIXME: we may have to deal with multi-command sequences.
25585 '$CC '*)
25586 # Test whether the compiler implicitly links with -lc since on some
25587 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25588 # to ld, don't add -lc before -lgcc.
25589 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25590 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25591 $rm conftest*
25592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25595 (eval $ac_compile) 2>&5
25596 ac_status=$?
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } 2>conftest.err; then
25599 soname=conftest
25600 lib=conftest
25601 libobjs=conftest.$ac_objext
25602 deplibs=
25603 wl=$lt_prog_compiler_wl_GCJ
25604 pic_flag=$lt_prog_compiler_pic_GCJ
25605 compiler_flags=-v
25606 linker_flags=-v
25607 verstring=
25608 output_objdir=.
25609 libname=conftest
25610 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25611 allow_undefined_flag_GCJ=
25612 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25613 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25614 ac_status=$?
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }
25617 then
25618 archive_cmds_need_lc_GCJ=no
25619 else
25620 archive_cmds_need_lc_GCJ=yes
25622 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25623 else
25624 cat conftest.err 1>&5
25626 $rm conftest*
25627 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25628 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25630 esac
25633 esac
25635 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25636 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25637 library_names_spec=
25638 libname_spec='lib$name'
25639 soname_spec=
25640 shrext_cmds=".so"
25641 postinstall_cmds=
25642 postuninstall_cmds=
25643 finish_cmds=
25644 finish_eval=
25645 shlibpath_var=
25646 shlibpath_overrides_runpath=unknown
25647 version_type=none
25648 dynamic_linker="$host_os ld.so"
25649 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25650 if test "$GCC" = yes; then
25651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25652 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25653 # if the path contains ";" then we assume it to be the separator
25654 # otherwise default to the standard path separator (i.e. ":") - it is
25655 # assumed that no part of a normal pathname contains ";" but that should
25656 # okay in the real world where ";" in dirpaths is itself problematic.
25657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25658 else
25659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25661 else
25662 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25664 need_lib_prefix=unknown
25665 hardcode_into_libs=no
25667 # when you set need_version to no, make sure it does not cause -set_version
25668 # flags to be left without arguments
25669 need_version=unknown
25671 case $host_os in
25672 aix3*)
25673 version_type=linux
25674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25675 shlibpath_var=LIBPATH
25677 # AIX 3 has no versioning support, so we append a major version to the name.
25678 soname_spec='${libname}${release}${shared_ext}$major'
25681 aix4* | aix5*)
25682 version_type=linux
25683 need_lib_prefix=no
25684 need_version=no
25685 hardcode_into_libs=yes
25686 if test "$host_cpu" = ia64; then
25687 # AIX 5 supports IA64
25688 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25689 shlibpath_var=LD_LIBRARY_PATH
25690 else
25691 # With GCC up to 2.95.x, collect2 would create an import file
25692 # for dependence libraries. The import file would start with
25693 # the line `#! .'. This would cause the generated library to
25694 # depend on `.', always an invalid library. This was fixed in
25695 # development snapshots of GCC prior to 3.0.
25696 case $host_os in
25697 aix4 | aix4.[01] | aix4.[01].*)
25698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25699 echo ' yes '
25700 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25702 else
25703 can_build_shared=no
25706 esac
25707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25708 # soname into executable. Probably we can add versioning support to
25709 # collect2, so additional links can be useful in future.
25710 if test "$aix_use_runtimelinking" = yes; then
25711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25712 # instead of lib<name>.a to let people know that these are not
25713 # typical AIX shared libraries.
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715 else
25716 # We preserve .a as extension for shared libraries through AIX4.2
25717 # and later when we are not doing run time linking.
25718 library_names_spec='${libname}${release}.a $libname.a'
25719 soname_spec='${libname}${release}${shared_ext}$major'
25721 shlibpath_var=LIBPATH
25725 amigaos*)
25726 library_names_spec='$libname.ixlibrary $libname.a'
25727 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25728 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'
25731 beos*)
25732 library_names_spec='${libname}${shared_ext}'
25733 dynamic_linker="$host_os ld.so"
25734 shlibpath_var=LIBRARY_PATH
25737 bsdi[45]*)
25738 version_type=linux
25739 need_version=no
25740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25741 soname_spec='${libname}${release}${shared_ext}$major'
25742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25743 shlibpath_var=LD_LIBRARY_PATH
25744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25746 # the default ld.so.conf also contains /usr/contrib/lib and
25747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25748 # libtool to hard-code these into programs
25751 cygwin* | mingw* | pw32*)
25752 version_type=windows
25753 shrext_cmds=".dll"
25754 need_version=no
25755 need_lib_prefix=no
25757 case $GCC,$host_os in
25758 yes,cygwin* | yes,mingw* | yes,pw32*)
25759 library_names_spec='$libname.dll.a'
25760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25761 postinstall_cmds='base_file=`basename \${file}`~
25762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25763 dldir=$destdir/`dirname \$dlpath`~
25764 test -d \$dldir || mkdir -p \$dldir~
25765 $install_prog $dir/$dlname \$dldir/$dlname~
25766 chmod a+x \$dldir/$dlname'
25767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25768 dlpath=$dir/\$dldll~
25769 $rm \$dlpath'
25770 shlibpath_overrides_runpath=yes
25772 case $host_os in
25773 cygwin*)
25774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25776 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25778 mingw*)
25779 # MinGW DLLs use traditional 'lib' prefix
25780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25782 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25783 # It is most probably a Windows format PATH printed by
25784 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25785 # path with ; separators, and with drive letters. We can handle the
25786 # drive letters (cygwin fileutils understands them), so leave them,
25787 # especially as we might pass files found there to a mingw objdump,
25788 # which wouldn't understand a cygwinified path. Ahh.
25789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25790 else
25791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25794 pw32*)
25795 # pw32 DLLs use 'pw' prefix rather than 'lib'
25796 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25798 esac
25802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25804 esac
25805 dynamic_linker='Win32 ld.exe'
25806 # FIXME: first we should search . and the directory the executable is in
25807 shlibpath_var=PATH
25810 darwin* | rhapsody*)
25811 dynamic_linker="$host_os dyld"
25812 version_type=darwin
25813 need_lib_prefix=no
25814 need_version=no
25815 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25816 soname_spec='${libname}${release}${major}$shared_ext'
25817 shlibpath_overrides_runpath=yes
25818 shlibpath_var=DYLD_LIBRARY_PATH
25819 shrext_cmds='.dylib'
25820 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25821 if test "$GCC" = yes; then
25822 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"`
25823 else
25824 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25829 dgux*)
25830 version_type=linux
25831 need_lib_prefix=no
25832 need_version=no
25833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25834 soname_spec='${libname}${release}${shared_ext}$major'
25835 shlibpath_var=LD_LIBRARY_PATH
25838 freebsd1*)
25839 dynamic_linker=no
25842 kfreebsd*-gnu)
25843 version_type=linux
25844 need_lib_prefix=no
25845 need_version=no
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 shlibpath_var=LD_LIBRARY_PATH
25849 shlibpath_overrides_runpath=no
25850 hardcode_into_libs=yes
25851 dynamic_linker='GNU ld.so'
25854 freebsd* | dragonfly*)
25855 # DragonFly does not have aout. When/if they implement a new
25856 # versioning mechanism, adjust this.
25857 if test -x /usr/bin/objformat; then
25858 objformat=`/usr/bin/objformat`
25859 else
25860 case $host_os in
25861 freebsd[123]*) objformat=aout ;;
25862 *) objformat=elf ;;
25863 esac
25865 version_type=freebsd-$objformat
25866 case $version_type in
25867 freebsd-elf*)
25868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25869 need_version=no
25870 need_lib_prefix=no
25872 freebsd-*)
25873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25874 need_version=yes
25876 esac
25877 shlibpath_var=LD_LIBRARY_PATH
25878 case $host_os in
25879 freebsd2*)
25880 shlibpath_overrides_runpath=yes
25882 freebsd3.[01]* | freebsdelf3.[01]*)
25883 shlibpath_overrides_runpath=yes
25884 hardcode_into_libs=yes
25886 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25887 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25888 shlibpath_overrides_runpath=no
25889 hardcode_into_libs=yes
25891 freebsd*) # from 4.6 on
25892 shlibpath_overrides_runpath=yes
25893 hardcode_into_libs=yes
25895 esac
25898 gnu*)
25899 version_type=linux
25900 need_lib_prefix=no
25901 need_version=no
25902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25903 soname_spec='${libname}${release}${shared_ext}$major'
25904 shlibpath_var=LD_LIBRARY_PATH
25905 hardcode_into_libs=yes
25908 hpux9* | hpux10* | hpux11*)
25909 # Give a soname corresponding to the major version so that dld.sl refuses to
25910 # link against other versions.
25911 version_type=sunos
25912 need_lib_prefix=no
25913 need_version=no
25914 case $host_cpu in
25915 ia64*)
25916 shrext_cmds='.so'
25917 hardcode_into_libs=yes
25918 dynamic_linker="$host_os dld.so"
25919 shlibpath_var=LD_LIBRARY_PATH
25920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25922 soname_spec='${libname}${release}${shared_ext}$major'
25923 if test "X$HPUX_IA64_MODE" = X32; then
25924 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25925 else
25926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25930 hppa*64*)
25931 shrext_cmds='.sl'
25932 hardcode_into_libs=yes
25933 dynamic_linker="$host_os dld.sl"
25934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25937 soname_spec='${libname}${release}${shared_ext}$major'
25938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25942 shrext_cmds='.sl'
25943 dynamic_linker="$host_os dld.sl"
25944 shlibpath_var=SHLIB_PATH
25945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25947 soname_spec='${libname}${release}${shared_ext}$major'
25949 esac
25950 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25951 postinstall_cmds='chmod 555 $lib'
25954 interix3*)
25955 version_type=linux
25956 need_lib_prefix=no
25957 need_version=no
25958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25959 soname_spec='${libname}${release}${shared_ext}$major'
25960 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25961 shlibpath_var=LD_LIBRARY_PATH
25962 shlibpath_overrides_runpath=no
25963 hardcode_into_libs=yes
25966 irix5* | irix6* | nonstopux*)
25967 case $host_os in
25968 nonstopux*) version_type=nonstopux ;;
25970 if test "$lt_cv_prog_gnu_ld" = yes; then
25971 version_type=linux
25972 else
25973 version_type=irix
25974 fi ;;
25975 esac
25976 need_lib_prefix=no
25977 need_version=no
25978 soname_spec='${libname}${release}${shared_ext}$major'
25979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25980 case $host_os in
25981 irix5* | nonstopux*)
25982 libsuff= shlibsuff=
25985 case $LD in # libtool.m4 will add one of these switches to LD
25986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25987 libsuff= shlibsuff= libmagic=32-bit;;
25988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25989 libsuff=32 shlibsuff=N32 libmagic=N32;;
25990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25991 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25992 *) libsuff= shlibsuff= libmagic=never-match;;
25993 esac
25995 esac
25996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25997 shlibpath_overrides_runpath=no
25998 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25999 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26000 hardcode_into_libs=yes
26003 # No shared lib support for Linux oldld, aout, or coff.
26004 linux*oldld* | linux*aout* | linux*coff*)
26005 dynamic_linker=no
26008 # This must be Linux ELF.
26009 linux*)
26010 version_type=linux
26011 need_lib_prefix=no
26012 need_version=no
26013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26014 soname_spec='${libname}${release}${shared_ext}$major'
26015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26016 shlibpath_var=LD_LIBRARY_PATH
26017 shlibpath_overrides_runpath=no
26018 # This implies no fast_install, which is unacceptable.
26019 # Some rework will be needed to allow for fast_install
26020 # before this can be enabled.
26021 hardcode_into_libs=yes
26023 # Append ld.so.conf contents to the search path
26024 if test -f /etc/ld.so.conf; then
26025 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' ' '`
26026 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26029 # We used to test for /lib/ld.so.1 and disable shared libraries on
26030 # powerpc, because MkLinux only supported shared libraries with the
26031 # GNU dynamic linker. Since this was broken with cross compilers,
26032 # most powerpc-linux boxes support dynamic linking these days and
26033 # people can always --disable-shared, the test was removed, and we
26034 # assume the GNU/Linux dynamic linker is in use.
26035 dynamic_linker='GNU/Linux ld.so'
26038 knetbsd*-gnu)
26039 version_type=linux
26040 need_lib_prefix=no
26041 need_version=no
26042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26043 soname_spec='${libname}${release}${shared_ext}$major'
26044 shlibpath_var=LD_LIBRARY_PATH
26045 shlibpath_overrides_runpath=no
26046 hardcode_into_libs=yes
26047 dynamic_linker='GNU ld.so'
26050 netbsd*)
26051 version_type=sunos
26052 need_lib_prefix=no
26053 need_version=no
26054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26057 dynamic_linker='NetBSD (a.out) ld.so'
26058 else
26059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26060 soname_spec='${libname}${release}${shared_ext}$major'
26061 dynamic_linker='NetBSD ld.elf_so'
26063 shlibpath_var=LD_LIBRARY_PATH
26064 shlibpath_overrides_runpath=yes
26065 hardcode_into_libs=yes
26068 newsos6)
26069 version_type=linux
26070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26071 shlibpath_var=LD_LIBRARY_PATH
26072 shlibpath_overrides_runpath=yes
26075 nto-qnx*)
26076 version_type=linux
26077 need_lib_prefix=no
26078 need_version=no
26079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26080 soname_spec='${libname}${release}${shared_ext}$major'
26081 shlibpath_var=LD_LIBRARY_PATH
26082 shlibpath_overrides_runpath=yes
26085 openbsd*)
26086 version_type=sunos
26087 sys_lib_dlsearch_path_spec="/usr/lib"
26088 need_lib_prefix=no
26089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26090 case $host_os in
26091 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26092 *) need_version=no ;;
26093 esac
26094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26096 shlibpath_var=LD_LIBRARY_PATH
26097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26098 case $host_os in
26099 openbsd2.[89] | openbsd2.[89].*)
26100 shlibpath_overrides_runpath=no
26103 shlibpath_overrides_runpath=yes
26105 esac
26106 else
26107 shlibpath_overrides_runpath=yes
26111 os2*)
26112 libname_spec='$name'
26113 shrext_cmds=".dll"
26114 need_lib_prefix=no
26115 library_names_spec='$libname${shared_ext} $libname.a'
26116 dynamic_linker='OS/2 ld.exe'
26117 shlibpath_var=LIBPATH
26120 osf3* | osf4* | osf5*)
26121 version_type=osf
26122 need_lib_prefix=no
26123 need_version=no
26124 soname_spec='${libname}${release}${shared_ext}$major'
26125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26126 shlibpath_var=LD_LIBRARY_PATH
26127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26131 solaris*)
26132 version_type=linux
26133 need_lib_prefix=no
26134 need_version=no
26135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26136 soname_spec='${libname}${release}${shared_ext}$major'
26137 shlibpath_var=LD_LIBRARY_PATH
26138 shlibpath_overrides_runpath=yes
26139 hardcode_into_libs=yes
26140 # ldd complains unless libraries are executable
26141 postinstall_cmds='chmod +x $lib'
26144 sunos4*)
26145 version_type=sunos
26146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 shlibpath_overrides_runpath=yes
26150 if test "$with_gnu_ld" = yes; then
26151 need_lib_prefix=no
26153 need_version=yes
26156 sysv4 | sysv4.3*)
26157 version_type=linux
26158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26159 soname_spec='${libname}${release}${shared_ext}$major'
26160 shlibpath_var=LD_LIBRARY_PATH
26161 case $host_vendor in
26162 sni)
26163 shlibpath_overrides_runpath=no
26164 need_lib_prefix=no
26165 export_dynamic_flag_spec='${wl}-Blargedynsym'
26166 runpath_var=LD_RUN_PATH
26168 siemens)
26169 need_lib_prefix=no
26171 motorola)
26172 need_lib_prefix=no
26173 need_version=no
26174 shlibpath_overrides_runpath=no
26175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26177 esac
26180 sysv4*MP*)
26181 if test -d /usr/nec ;then
26182 version_type=linux
26183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26184 soname_spec='$libname${shared_ext}.$major'
26185 shlibpath_var=LD_LIBRARY_PATH
26189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26190 version_type=freebsd-elf
26191 need_lib_prefix=no
26192 need_version=no
26193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26194 soname_spec='${libname}${release}${shared_ext}$major'
26195 shlibpath_var=LD_LIBRARY_PATH
26196 hardcode_into_libs=yes
26197 if test "$with_gnu_ld" = yes; then
26198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26199 shlibpath_overrides_runpath=no
26200 else
26201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26202 shlibpath_overrides_runpath=yes
26203 case $host_os in
26204 sco3.2v5*)
26205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26207 esac
26209 sys_lib_dlsearch_path_spec='/usr/lib'
26212 uts4*)
26213 version_type=linux
26214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26215 soname_spec='${libname}${release}${shared_ext}$major'
26216 shlibpath_var=LD_LIBRARY_PATH
26220 dynamic_linker=no
26222 esac
26223 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26224 echo "${ECHO_T}$dynamic_linker" >&6; }
26225 test "$dynamic_linker" = no && can_build_shared=no
26227 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26228 if test "$GCC" = yes; then
26229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26232 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26233 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26234 hardcode_action_GCJ=
26235 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26236 test -n "$runpath_var_GCJ" || \
26237 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26239 # We can hardcode non-existant directories.
26240 if test "$hardcode_direct_GCJ" != no &&
26241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26242 # have to relink, otherwise we might link with an installed library
26243 # when we should be linking with a yet-to-be-installed one
26244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26245 test "$hardcode_minus_L_GCJ" != no; then
26246 # Linking always hardcodes the temporary library directory.
26247 hardcode_action_GCJ=relink
26248 else
26249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26250 hardcode_action_GCJ=immediate
26252 else
26253 # We cannot hardcode anything, or else we can only hardcode existing
26254 # directories.
26255 hardcode_action_GCJ=unsupported
26257 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26258 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26260 if test "$hardcode_action_GCJ" = relink; then
26261 # Fast installation is not supported
26262 enable_fast_install=no
26263 elif test "$shlibpath_overrides_runpath" = yes ||
26264 test "$enable_shared" = no; then
26265 # Fast installation is not necessary
26266 enable_fast_install=needless
26270 # The else clause should only fire when bootstrapping the
26271 # libtool distribution, otherwise you forgot to ship ltmain.sh
26272 # with your package, and you will get complaints that there are
26273 # no rules to generate ltmain.sh.
26274 if test -f "$ltmain"; then
26275 # See if we are running on zsh, and set the options which allow our commands through
26276 # without removal of \ escapes.
26277 if test -n "${ZSH_VERSION+set}" ; then
26278 setopt NO_GLOB_SUBST
26280 # Now quote all the things that may contain metacharacters while being
26281 # careful not to overquote the AC_SUBSTed values. We take copies of the
26282 # variables and quote the copies for generation of the libtool script.
26283 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26284 SED SHELL STRIP \
26285 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26286 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26287 deplibs_check_method reload_flag reload_cmds need_locks \
26288 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26289 lt_cv_sys_global_symbol_to_c_name_address \
26290 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26291 old_postinstall_cmds old_postuninstall_cmds \
26292 compiler_GCJ \
26293 CC_GCJ \
26294 LD_GCJ \
26295 lt_prog_compiler_wl_GCJ \
26296 lt_prog_compiler_pic_GCJ \
26297 lt_prog_compiler_static_GCJ \
26298 lt_prog_compiler_no_builtin_flag_GCJ \
26299 export_dynamic_flag_spec_GCJ \
26300 thread_safe_flag_spec_GCJ \
26301 whole_archive_flag_spec_GCJ \
26302 enable_shared_with_static_runtimes_GCJ \
26303 old_archive_cmds_GCJ \
26304 old_archive_from_new_cmds_GCJ \
26305 predep_objects_GCJ \
26306 postdep_objects_GCJ \
26307 predeps_GCJ \
26308 postdeps_GCJ \
26309 compiler_lib_search_path_GCJ \
26310 archive_cmds_GCJ \
26311 archive_expsym_cmds_GCJ \
26312 postinstall_cmds_GCJ \
26313 postuninstall_cmds_GCJ \
26314 old_archive_from_expsyms_cmds_GCJ \
26315 allow_undefined_flag_GCJ \
26316 no_undefined_flag_GCJ \
26317 export_symbols_cmds_GCJ \
26318 hardcode_libdir_flag_spec_GCJ \
26319 hardcode_libdir_flag_spec_ld_GCJ \
26320 hardcode_libdir_separator_GCJ \
26321 hardcode_automatic_GCJ \
26322 module_cmds_GCJ \
26323 module_expsym_cmds_GCJ \
26324 lt_cv_prog_compiler_c_o_GCJ \
26325 exclude_expsyms_GCJ \
26326 include_expsyms_GCJ; do
26328 case $var in
26329 old_archive_cmds_GCJ | \
26330 old_archive_from_new_cmds_GCJ | \
26331 archive_cmds_GCJ | \
26332 archive_expsym_cmds_GCJ | \
26333 module_cmds_GCJ | \
26334 module_expsym_cmds_GCJ | \
26335 old_archive_from_expsyms_cmds_GCJ | \
26336 export_symbols_cmds_GCJ | \
26337 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26338 postinstall_cmds | postuninstall_cmds | \
26339 old_postinstall_cmds | old_postuninstall_cmds | \
26340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26341 # Double-quote double-evaled strings.
26342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26347 esac
26348 done
26350 case $lt_echo in
26351 *'\$0 --fallback-echo"')
26352 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26354 esac
26356 cfgfile="$ofile"
26358 cat <<__EOF__ >> "$cfgfile"
26359 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26361 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26363 # Shell to use when invoking shell scripts.
26364 SHELL=$lt_SHELL
26366 # Whether or not to build shared libraries.
26367 build_libtool_libs=$enable_shared
26369 # Whether or not to build static libraries.
26370 build_old_libs=$enable_static
26372 # Whether or not to add -lc for building shared libraries.
26373 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26375 # Whether or not to disallow shared libs when runtime libs are static
26376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26378 # Whether or not to optimize for fast installation.
26379 fast_install=$enable_fast_install
26381 # The host system.
26382 host_alias=$host_alias
26383 host=$host
26384 host_os=$host_os
26386 # The build system.
26387 build_alias=$build_alias
26388 build=$build
26389 build_os=$build_os
26391 # An echo program that does not interpret backslashes.
26392 echo=$lt_echo
26394 # The archiver.
26395 AR=$lt_AR
26396 AR_FLAGS=$lt_AR_FLAGS
26398 # A C compiler.
26399 LTCC=$lt_LTCC
26401 # LTCC compiler flags.
26402 LTCFLAGS=$lt_LTCFLAGS
26404 # A language-specific compiler.
26405 CC=$lt_compiler_GCJ
26407 # Is the compiler the GNU C compiler?
26408 with_gcc=$GCC_GCJ
26410 # An ERE matcher.
26411 EGREP=$lt_EGREP
26413 # The linker used to build libraries.
26414 LD=$lt_LD_GCJ
26416 # Whether we need hard or soft links.
26417 LN_S=$lt_LN_S
26419 # A BSD-compatible nm program.
26420 NM=$lt_NM
26422 # A symbol stripping program
26423 STRIP=$lt_STRIP
26425 # Used to examine libraries when file_magic_cmd begins "file"
26426 MAGIC_CMD=$MAGIC_CMD
26428 # Used on cygwin: DLL creation program.
26429 DLLTOOL="$DLLTOOL"
26431 # Used on cygwin: object dumper.
26432 OBJDUMP="$OBJDUMP"
26434 # Used on cygwin: assembler.
26435 AS="$AS"
26437 # The name of the directory that contains temporary libtool files.
26438 objdir=$objdir
26440 # How to create reloadable object files.
26441 reload_flag=$lt_reload_flag
26442 reload_cmds=$lt_reload_cmds
26444 # How to pass a linker flag through the compiler.
26445 wl=$lt_lt_prog_compiler_wl_GCJ
26447 # Object file suffix (normally "o").
26448 objext="$ac_objext"
26450 # Old archive suffix (normally "a").
26451 libext="$libext"
26453 # Shared library suffix (normally ".so").
26454 shrext_cmds='$shrext_cmds'
26456 # Executable file suffix (normally "").
26457 exeext="$exeext"
26459 # Additional compiler flags for building library objects.
26460 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26461 pic_mode=$pic_mode
26463 # What is the maximum length of a command?
26464 max_cmd_len=$lt_cv_sys_max_cmd_len
26466 # Does compiler simultaneously support -c and -o options?
26467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26469 # Must we lock files when doing compilation?
26470 need_locks=$lt_need_locks
26472 # Do we need the lib prefix for modules?
26473 need_lib_prefix=$need_lib_prefix
26475 # Do we need a version for libraries?
26476 need_version=$need_version
26478 # Whether dlopen is supported.
26479 dlopen_support=$enable_dlopen
26481 # Whether dlopen of programs is supported.
26482 dlopen_self=$enable_dlopen_self
26484 # Whether dlopen of statically linked programs is supported.
26485 dlopen_self_static=$enable_dlopen_self_static
26487 # Compiler flag to prevent dynamic linking.
26488 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26490 # Compiler flag to turn off builtin functions.
26491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26493 # Compiler flag to allow reflexive dlopens.
26494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26496 # Compiler flag to generate shared objects directly from archives.
26497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26499 # Compiler flag to generate thread-safe objects.
26500 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26502 # Library versioning type.
26503 version_type=$version_type
26505 # Format of library name prefix.
26506 libname_spec=$lt_libname_spec
26508 # List of archive names. First name is the real one, the rest are links.
26509 # The last name is the one that the linker finds with -lNAME.
26510 library_names_spec=$lt_library_names_spec
26512 # The coded name of the library, if different from the real name.
26513 soname_spec=$lt_soname_spec
26515 # Commands used to build and install an old-style archive.
26516 RANLIB=$lt_RANLIB
26517 old_archive_cmds=$lt_old_archive_cmds_GCJ
26518 old_postinstall_cmds=$lt_old_postinstall_cmds
26519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26521 # Create an old-style archive from a shared archive.
26522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26524 # Create a temporary old-style archive to link instead of a shared archive.
26525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26527 # Commands used to build and install a shared archive.
26528 archive_cmds=$lt_archive_cmds_GCJ
26529 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26530 postinstall_cmds=$lt_postinstall_cmds
26531 postuninstall_cmds=$lt_postuninstall_cmds
26533 # Commands used to build a loadable module (assumed same as above if empty)
26534 module_cmds=$lt_module_cmds_GCJ
26535 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26537 # Commands to strip libraries.
26538 old_striplib=$lt_old_striplib
26539 striplib=$lt_striplib
26541 # Dependencies to place before the objects being linked to create a
26542 # shared library.
26543 predep_objects=$lt_predep_objects_GCJ
26545 # Dependencies to place after the objects being linked to create a
26546 # shared library.
26547 postdep_objects=$lt_postdep_objects_GCJ
26549 # Dependencies to place before the objects being linked to create a
26550 # shared library.
26551 predeps=$lt_predeps_GCJ
26553 # Dependencies to place after the objects being linked to create a
26554 # shared library.
26555 postdeps=$lt_postdeps_GCJ
26557 # The library search path used internally by the compiler when linking
26558 # a shared library.
26559 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26561 # Method to check whether dependent libraries are shared objects.
26562 deplibs_check_method=$lt_deplibs_check_method
26564 # Command to use when deplibs_check_method == file_magic.
26565 file_magic_cmd=$lt_file_magic_cmd
26567 # Flag that allows shared libraries with undefined symbols to be built.
26568 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26570 # Flag that forces no undefined symbols.
26571 no_undefined_flag=$lt_no_undefined_flag_GCJ
26573 # Commands used to finish a libtool library installation in a directory.
26574 finish_cmds=$lt_finish_cmds
26576 # Same as above, but a single script fragment to be evaled but not shown.
26577 finish_eval=$lt_finish_eval
26579 # Take the output of nm and produce a listing of raw symbols and C names.
26580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26582 # Transform the output of nm in a proper C declaration
26583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26585 # Transform the output of nm in a C name address pair
26586 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26588 # This is the shared library runtime path variable.
26589 runpath_var=$runpath_var
26591 # This is the shared library path variable.
26592 shlibpath_var=$shlibpath_var
26594 # Is shlibpath searched before the hard-coded library search path?
26595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26597 # How to hardcode a shared library path into an executable.
26598 hardcode_action=$hardcode_action_GCJ
26600 # Whether we should hardcode library paths into libraries.
26601 hardcode_into_libs=$hardcode_into_libs
26603 # Flag to hardcode \$libdir into a binary during linking.
26604 # This must work even if \$libdir does not exist.
26605 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26607 # If ld is used when linking, flag to hardcode \$libdir into
26608 # a binary during linking. This must work even if \$libdir does
26609 # not exist.
26610 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26612 # Whether we need a single -rpath flag with a separated argument.
26613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26615 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26616 # resulting binary.
26617 hardcode_direct=$hardcode_direct_GCJ
26619 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26620 # resulting binary.
26621 hardcode_minus_L=$hardcode_minus_L_GCJ
26623 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26624 # the resulting binary.
26625 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26627 # Set to yes if building a shared library automatically hardcodes DIR into the library
26628 # and all subsequent libraries and executables linked against it.
26629 hardcode_automatic=$hardcode_automatic_GCJ
26631 # Variables whose values should be saved in libtool wrapper scripts and
26632 # restored at relink time.
26633 variables_saved_for_relink="$variables_saved_for_relink"
26635 # Whether libtool must link a program against all its dependency libraries.
26636 link_all_deplibs=$link_all_deplibs_GCJ
26638 # Compile-time system search path for libraries
26639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26641 # Run-time system search path for libraries
26642 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26644 # Fix the shell variable \$srcfile for the compiler.
26645 fix_srcfile_path="$fix_srcfile_path_GCJ"
26647 # Set to yes if exported symbols are required.
26648 always_export_symbols=$always_export_symbols_GCJ
26650 # The commands to list exported symbols.
26651 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26653 # The commands to extract the exported symbol list from a shared archive.
26654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26656 # Symbols that should not be listed in the preloaded symbols.
26657 exclude_expsyms=$lt_exclude_expsyms_GCJ
26659 # Symbols that must always be exported.
26660 include_expsyms=$lt_include_expsyms_GCJ
26662 # ### END LIBTOOL TAG CONFIG: $tagname
26664 __EOF__
26667 else
26668 # If there is no Makefile yet, we rely on a make rule to execute
26669 # `config.status --recheck' to rerun these tests and create the
26670 # libtool script then.
26671 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26672 if test -f "$ltmain_in"; then
26673 test -f Makefile && make "$ltmain"
26678 ac_ext=c
26679 ac_cpp='$CPP $CPPFLAGS'
26680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26684 CC="$lt_save_CC"
26686 else
26687 tagname=""
26692 ac_ext=c
26693 ac_cpp='$CPP $CPPFLAGS'
26694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26699 # Source file extension for RC test sources.
26700 ac_ext=rc
26702 # Object file extension for compiled RC test sources.
26703 objext=o
26704 objext_RC=$objext
26706 # Code to be used in simple compile tests
26707 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26709 # Code to be used in simple link tests
26710 lt_simple_link_test_code="$lt_simple_compile_test_code"
26712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26714 # If no C compiler was specified, use CC.
26715 LTCC=${LTCC-"$CC"}
26717 # If no C compiler flags were specified, use CFLAGS.
26718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26720 # Allow CC to be a program name with arguments.
26721 compiler=$CC
26724 # save warnings/boilerplate of simple test code
26725 ac_outfile=conftest.$ac_objext
26726 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26727 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26728 _lt_compiler_boilerplate=`cat conftest.err`
26729 $rm conftest*
26731 ac_outfile=conftest.$ac_objext
26732 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26733 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26734 _lt_linker_boilerplate=`cat conftest.err`
26735 $rm conftest*
26738 # Allow CC to be a program name with arguments.
26739 lt_save_CC="$CC"
26740 CC=${RC-"windres"}
26741 compiler=$CC
26742 compiler_RC=$CC
26743 for cc_temp in $compiler""; do
26744 case $cc_temp in
26745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26747 \-*) ;;
26748 *) break;;
26749 esac
26750 done
26751 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26753 lt_cv_prog_compiler_c_o_RC=yes
26755 # The else clause should only fire when bootstrapping the
26756 # libtool distribution, otherwise you forgot to ship ltmain.sh
26757 # with your package, and you will get complaints that there are
26758 # no rules to generate ltmain.sh.
26759 if test -f "$ltmain"; then
26760 # See if we are running on zsh, and set the options which allow our commands through
26761 # without removal of \ escapes.
26762 if test -n "${ZSH_VERSION+set}" ; then
26763 setopt NO_GLOB_SUBST
26765 # Now quote all the things that may contain metacharacters while being
26766 # careful not to overquote the AC_SUBSTed values. We take copies of the
26767 # variables and quote the copies for generation of the libtool script.
26768 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26769 SED SHELL STRIP \
26770 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26771 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26772 deplibs_check_method reload_flag reload_cmds need_locks \
26773 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26774 lt_cv_sys_global_symbol_to_c_name_address \
26775 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26776 old_postinstall_cmds old_postuninstall_cmds \
26777 compiler_RC \
26778 CC_RC \
26779 LD_RC \
26780 lt_prog_compiler_wl_RC \
26781 lt_prog_compiler_pic_RC \
26782 lt_prog_compiler_static_RC \
26783 lt_prog_compiler_no_builtin_flag_RC \
26784 export_dynamic_flag_spec_RC \
26785 thread_safe_flag_spec_RC \
26786 whole_archive_flag_spec_RC \
26787 enable_shared_with_static_runtimes_RC \
26788 old_archive_cmds_RC \
26789 old_archive_from_new_cmds_RC \
26790 predep_objects_RC \
26791 postdep_objects_RC \
26792 predeps_RC \
26793 postdeps_RC \
26794 compiler_lib_search_path_RC \
26795 archive_cmds_RC \
26796 archive_expsym_cmds_RC \
26797 postinstall_cmds_RC \
26798 postuninstall_cmds_RC \
26799 old_archive_from_expsyms_cmds_RC \
26800 allow_undefined_flag_RC \
26801 no_undefined_flag_RC \
26802 export_symbols_cmds_RC \
26803 hardcode_libdir_flag_spec_RC \
26804 hardcode_libdir_flag_spec_ld_RC \
26805 hardcode_libdir_separator_RC \
26806 hardcode_automatic_RC \
26807 module_cmds_RC \
26808 module_expsym_cmds_RC \
26809 lt_cv_prog_compiler_c_o_RC \
26810 exclude_expsyms_RC \
26811 include_expsyms_RC; do
26813 case $var in
26814 old_archive_cmds_RC | \
26815 old_archive_from_new_cmds_RC | \
26816 archive_cmds_RC | \
26817 archive_expsym_cmds_RC | \
26818 module_cmds_RC | \
26819 module_expsym_cmds_RC | \
26820 old_archive_from_expsyms_cmds_RC | \
26821 export_symbols_cmds_RC | \
26822 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26823 postinstall_cmds | postuninstall_cmds | \
26824 old_postinstall_cmds | old_postuninstall_cmds | \
26825 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26826 # Double-quote double-evaled strings.
26827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26832 esac
26833 done
26835 case $lt_echo in
26836 *'\$0 --fallback-echo"')
26837 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26839 esac
26841 cfgfile="$ofile"
26843 cat <<__EOF__ >> "$cfgfile"
26844 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26848 # Shell to use when invoking shell scripts.
26849 SHELL=$lt_SHELL
26851 # Whether or not to build shared libraries.
26852 build_libtool_libs=$enable_shared
26854 # Whether or not to build static libraries.
26855 build_old_libs=$enable_static
26857 # Whether or not to add -lc for building shared libraries.
26858 build_libtool_need_lc=$archive_cmds_need_lc_RC
26860 # Whether or not to disallow shared libs when runtime libs are static
26861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26863 # Whether or not to optimize for fast installation.
26864 fast_install=$enable_fast_install
26866 # The host system.
26867 host_alias=$host_alias
26868 host=$host
26869 host_os=$host_os
26871 # The build system.
26872 build_alias=$build_alias
26873 build=$build
26874 build_os=$build_os
26876 # An echo program that does not interpret backslashes.
26877 echo=$lt_echo
26879 # The archiver.
26880 AR=$lt_AR
26881 AR_FLAGS=$lt_AR_FLAGS
26883 # A C compiler.
26884 LTCC=$lt_LTCC
26886 # LTCC compiler flags.
26887 LTCFLAGS=$lt_LTCFLAGS
26889 # A language-specific compiler.
26890 CC=$lt_compiler_RC
26892 # Is the compiler the GNU C compiler?
26893 with_gcc=$GCC_RC
26895 # An ERE matcher.
26896 EGREP=$lt_EGREP
26898 # The linker used to build libraries.
26899 LD=$lt_LD_RC
26901 # Whether we need hard or soft links.
26902 LN_S=$lt_LN_S
26904 # A BSD-compatible nm program.
26905 NM=$lt_NM
26907 # A symbol stripping program
26908 STRIP=$lt_STRIP
26910 # Used to examine libraries when file_magic_cmd begins "file"
26911 MAGIC_CMD=$MAGIC_CMD
26913 # Used on cygwin: DLL creation program.
26914 DLLTOOL="$DLLTOOL"
26916 # Used on cygwin: object dumper.
26917 OBJDUMP="$OBJDUMP"
26919 # Used on cygwin: assembler.
26920 AS="$AS"
26922 # The name of the directory that contains temporary libtool files.
26923 objdir=$objdir
26925 # How to create reloadable object files.
26926 reload_flag=$lt_reload_flag
26927 reload_cmds=$lt_reload_cmds
26929 # How to pass a linker flag through the compiler.
26930 wl=$lt_lt_prog_compiler_wl_RC
26932 # Object file suffix (normally "o").
26933 objext="$ac_objext"
26935 # Old archive suffix (normally "a").
26936 libext="$libext"
26938 # Shared library suffix (normally ".so").
26939 shrext_cmds='$shrext_cmds'
26941 # Executable file suffix (normally "").
26942 exeext="$exeext"
26944 # Additional compiler flags for building library objects.
26945 pic_flag=$lt_lt_prog_compiler_pic_RC
26946 pic_mode=$pic_mode
26948 # What is the maximum length of a command?
26949 max_cmd_len=$lt_cv_sys_max_cmd_len
26951 # Does compiler simultaneously support -c and -o options?
26952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26954 # Must we lock files when doing compilation?
26955 need_locks=$lt_need_locks
26957 # Do we need the lib prefix for modules?
26958 need_lib_prefix=$need_lib_prefix
26960 # Do we need a version for libraries?
26961 need_version=$need_version
26963 # Whether dlopen is supported.
26964 dlopen_support=$enable_dlopen
26966 # Whether dlopen of programs is supported.
26967 dlopen_self=$enable_dlopen_self
26969 # Whether dlopen of statically linked programs is supported.
26970 dlopen_self_static=$enable_dlopen_self_static
26972 # Compiler flag to prevent dynamic linking.
26973 link_static_flag=$lt_lt_prog_compiler_static_RC
26975 # Compiler flag to turn off builtin functions.
26976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26978 # Compiler flag to allow reflexive dlopens.
26979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26981 # Compiler flag to generate shared objects directly from archives.
26982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26984 # Compiler flag to generate thread-safe objects.
26985 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26987 # Library versioning type.
26988 version_type=$version_type
26990 # Format of library name prefix.
26991 libname_spec=$lt_libname_spec
26993 # List of archive names. First name is the real one, the rest are links.
26994 # The last name is the one that the linker finds with -lNAME.
26995 library_names_spec=$lt_library_names_spec
26997 # The coded name of the library, if different from the real name.
26998 soname_spec=$lt_soname_spec
27000 # Commands used to build and install an old-style archive.
27001 RANLIB=$lt_RANLIB
27002 old_archive_cmds=$lt_old_archive_cmds_RC
27003 old_postinstall_cmds=$lt_old_postinstall_cmds
27004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27006 # Create an old-style archive from a shared archive.
27007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27009 # Create a temporary old-style archive to link instead of a shared archive.
27010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27012 # Commands used to build and install a shared archive.
27013 archive_cmds=$lt_archive_cmds_RC
27014 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27015 postinstall_cmds=$lt_postinstall_cmds
27016 postuninstall_cmds=$lt_postuninstall_cmds
27018 # Commands used to build a loadable module (assumed same as above if empty)
27019 module_cmds=$lt_module_cmds_RC
27020 module_expsym_cmds=$lt_module_expsym_cmds_RC
27022 # Commands to strip libraries.
27023 old_striplib=$lt_old_striplib
27024 striplib=$lt_striplib
27026 # Dependencies to place before the objects being linked to create a
27027 # shared library.
27028 predep_objects=$lt_predep_objects_RC
27030 # Dependencies to place after the objects being linked to create a
27031 # shared library.
27032 postdep_objects=$lt_postdep_objects_RC
27034 # Dependencies to place before the objects being linked to create a
27035 # shared library.
27036 predeps=$lt_predeps_RC
27038 # Dependencies to place after the objects being linked to create a
27039 # shared library.
27040 postdeps=$lt_postdeps_RC
27042 # The library search path used internally by the compiler when linking
27043 # a shared library.
27044 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27046 # Method to check whether dependent libraries are shared objects.
27047 deplibs_check_method=$lt_deplibs_check_method
27049 # Command to use when deplibs_check_method == file_magic.
27050 file_magic_cmd=$lt_file_magic_cmd
27052 # Flag that allows shared libraries with undefined symbols to be built.
27053 allow_undefined_flag=$lt_allow_undefined_flag_RC
27055 # Flag that forces no undefined symbols.
27056 no_undefined_flag=$lt_no_undefined_flag_RC
27058 # Commands used to finish a libtool library installation in a directory.
27059 finish_cmds=$lt_finish_cmds
27061 # Same as above, but a single script fragment to be evaled but not shown.
27062 finish_eval=$lt_finish_eval
27064 # Take the output of nm and produce a listing of raw symbols and C names.
27065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27067 # Transform the output of nm in a proper C declaration
27068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27070 # Transform the output of nm in a C name address pair
27071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27073 # This is the shared library runtime path variable.
27074 runpath_var=$runpath_var
27076 # This is the shared library path variable.
27077 shlibpath_var=$shlibpath_var
27079 # Is shlibpath searched before the hard-coded library search path?
27080 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27082 # How to hardcode a shared library path into an executable.
27083 hardcode_action=$hardcode_action_RC
27085 # Whether we should hardcode library paths into libraries.
27086 hardcode_into_libs=$hardcode_into_libs
27088 # Flag to hardcode \$libdir into a binary during linking.
27089 # This must work even if \$libdir does not exist.
27090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27092 # If ld is used when linking, flag to hardcode \$libdir into
27093 # a binary during linking. This must work even if \$libdir does
27094 # not exist.
27095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27097 # Whether we need a single -rpath flag with a separated argument.
27098 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27100 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27101 # resulting binary.
27102 hardcode_direct=$hardcode_direct_RC
27104 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27105 # resulting binary.
27106 hardcode_minus_L=$hardcode_minus_L_RC
27108 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27109 # the resulting binary.
27110 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27112 # Set to yes if building a shared library automatically hardcodes DIR into the library
27113 # and all subsequent libraries and executables linked against it.
27114 hardcode_automatic=$hardcode_automatic_RC
27116 # Variables whose values should be saved in libtool wrapper scripts and
27117 # restored at relink time.
27118 variables_saved_for_relink="$variables_saved_for_relink"
27120 # Whether libtool must link a program against all its dependency libraries.
27121 link_all_deplibs=$link_all_deplibs_RC
27123 # Compile-time system search path for libraries
27124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27126 # Run-time system search path for libraries
27127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27129 # Fix the shell variable \$srcfile for the compiler.
27130 fix_srcfile_path="$fix_srcfile_path_RC"
27132 # Set to yes if exported symbols are required.
27133 always_export_symbols=$always_export_symbols_RC
27135 # The commands to list exported symbols.
27136 export_symbols_cmds=$lt_export_symbols_cmds_RC
27138 # The commands to extract the exported symbol list from a shared archive.
27139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27141 # Symbols that should not be listed in the preloaded symbols.
27142 exclude_expsyms=$lt_exclude_expsyms_RC
27144 # Symbols that must always be exported.
27145 include_expsyms=$lt_include_expsyms_RC
27147 # ### END LIBTOOL TAG CONFIG: $tagname
27149 __EOF__
27152 else
27153 # If there is no Makefile yet, we rely on a make rule to execute
27154 # `config.status --recheck' to rerun these tests and create the
27155 # libtool script then.
27156 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27157 if test -f "$ltmain_in"; then
27158 test -f Makefile && make "$ltmain"
27163 ac_ext=c
27164 ac_cpp='$CPP $CPPFLAGS'
27165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27169 CC="$lt_save_CC"
27174 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27175 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27176 { (exit 1); exit 1; }; }
27178 esac
27180 # Append the new tag name to the list of available tags.
27181 if test -n "$tagname" ; then
27182 available_tags="$available_tags $tagname"
27185 done
27186 IFS="$lt_save_ifs"
27188 # Now substitute the updated list of available tags.
27189 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27190 mv "${ofile}T" "$ofile"
27191 chmod +x "$ofile"
27192 else
27193 rm -f "${ofile}T"
27194 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27195 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27196 { (exit 1); exit 1; }; }
27202 # This can be used to rebuild libtool when needed
27203 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27205 # Always use our own libtool.
27206 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27208 # Prevent multiple expansion
27230 if test "$lt_cv_dlopen_self" = "yes" ; then
27232 cat >>confdefs.h <<\_ACEOF
27233 #define CAN_DLOPEN_SELF 1
27234 _ACEOF
27239 if test "$WITH_LLVMGCCDIR" = "default" ; then
27240 LLVMGCC="llvm-gcc${EXEEXT}"
27241 LLVMGXX="llvm-g++${EXEEXT}"
27242 LLVMGCCCOMMAND="$LLVMGCC"
27243 LLVMGXXCOMMAND="$LLVMGXX"
27244 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27246 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27248 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27249 set dummy $LLVMGCC; ac_word=$2
27250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27252 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27253 echo $ECHO_N "(cached) $ECHO_C" >&6
27254 else
27255 case $LLVMGCC in
27256 [\\/]* | ?:[\\/]*)
27257 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27261 for as_dir in $PATH
27263 IFS=$as_save_IFS
27264 test -z "$as_dir" && as_dir=.
27265 for ac_exec_ext in '' $ac_executable_extensions; do
27266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27267 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27269 break 2
27271 done
27272 done
27273 IFS=$as_save_IFS
27276 esac
27278 LLVMGCC=$ac_cv_path_LLVMGCC
27279 if test -n "$LLVMGCC"; then
27280 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27281 echo "${ECHO_T}$LLVMGCC" >&6; }
27282 else
27283 { echo "$as_me:$LINENO: result: no" >&5
27284 echo "${ECHO_T}no" >&6; }
27288 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27289 set dummy $LLVMGXX; ac_word=$2
27290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27292 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27294 else
27295 case $LLVMGXX in
27296 [\\/]* | ?:[\\/]*)
27297 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27301 for as_dir in $PATH
27303 IFS=$as_save_IFS
27304 test -z "$as_dir" && as_dir=.
27305 for ac_exec_ext in '' $ac_executable_extensions; do
27306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27307 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27309 break 2
27311 done
27312 done
27313 IFS=$as_save_IFS
27316 esac
27318 LLVMGXX=$ac_cv_path_LLVMGXX
27319 if test -n "$LLVMGXX"; then
27320 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27321 echo "${ECHO_T}$LLVMGXX" >&6; }
27322 else
27323 { echo "$as_me:$LINENO: result: no" >&5
27324 echo "${ECHO_T}no" >&6; }
27328 else
27329 if test -z "$LLVMGCC"; then
27330 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27331 LLVMGCCCOMMAND="$LLVMGCC"
27333 if test -z "$LLVMGXX"; then
27334 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27335 LLVMGXXCOMMAND="$LLVMGXX"
27338 LLVMGCC=$LLVMGCC
27340 LLVMGXX=$LLVMGXX
27342 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27344 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27349 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27350 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27352 ICC=no
27353 IXX=no
27354 case $CC in
27355 icc*|icpc*)
27356 ICC=yes
27357 IXX=yes
27361 esac
27363 if test "$GCC" != "yes" && test "$ICC" != "yes"
27364 then
27365 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27366 echo "$as_me: error: gcc|icc required but not found" >&2;}
27367 { (exit 1); exit 1; }; }
27370 if test "$GXX" != "yes" && test "$IXX" != "yes"
27371 then
27372 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27373 echo "$as_me: error: g++|icc required but not found" >&2;}
27374 { (exit 1); exit 1; }; }
27377 if test "$GCC" = "yes"
27378 then
27379 cat >conftest.$ac_ext <<_ACEOF
27380 #if !defined(__GNUC__) || __GNUC__ < 3
27381 #error Unsupported GCC version
27382 #endif
27384 _ACEOF
27385 rm -f conftest.$ac_objext
27386 if { (ac_try="$ac_compile"
27387 case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27390 esac
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_compile") 2>conftest.er1
27393 ac_status=$?
27394 grep -v '^ *+' conftest.er1 >conftest.err
27395 rm -f conftest.er1
27396 cat conftest.err >&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); } &&
27399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27400 { (case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27403 esac
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_try") 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest.$ac_objext'
27410 { (case "(($ac_try" in
27411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412 *) ac_try_echo=$ac_try;;
27413 esac
27414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415 (eval "$ac_try") 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
27420 else
27421 echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.$ac_ext >&5
27424 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27425 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27426 { (exit 1); exit 1; }; }
27429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432 if test -z "$llvm_cv_gnu_make_command"
27433 then
27434 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27435 echo "$as_me: error: GNU Make required but not found" >&2;}
27436 { (exit 1); exit 1; }; }
27439 { echo "$as_me:$LINENO: result: ok" >&5
27440 echo "${ECHO_T}ok" >&6; }
27444 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27445 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27446 if test "${ac_cv_lib_m_sin+set}" = set; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27448 else
27449 ac_check_lib_save_LIBS=$LIBS
27450 LIBS="-lm $LIBS"
27451 cat >conftest.$ac_ext <<_ACEOF
27452 /* confdefs.h. */
27453 _ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h. */
27458 /* Override any GCC internal prototype to avoid an error.
27459 Use char because int might match the return type of a GCC
27460 builtin and then its argument prototype would still apply. */
27461 #ifdef __cplusplus
27462 extern "C"
27463 #endif
27464 char sin ();
27466 main ()
27468 return sin ();
27470 return 0;
27472 _ACEOF
27473 rm -f conftest.$ac_objext conftest$ac_exeext
27474 if { (ac_try="$ac_link"
27475 case "(($ac_try" in
27476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477 *) ac_try_echo=$ac_try;;
27478 esac
27479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480 (eval "$ac_link") 2>conftest.er1
27481 ac_status=$?
27482 grep -v '^ *+' conftest.er1 >conftest.err
27483 rm -f conftest.er1
27484 cat conftest.err >&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); } &&
27487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27488 { (case "(($ac_try" in
27489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27491 esac
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493 (eval "$ac_try") 2>&5
27494 ac_status=$?
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); }; } &&
27497 { ac_try='test -s conftest$ac_exeext'
27498 { (case "(($ac_try" in
27499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27500 *) ac_try_echo=$ac_try;;
27501 esac
27502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27503 (eval "$ac_try") 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; }; then
27507 ac_cv_lib_m_sin=yes
27508 else
27509 echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27512 ac_cv_lib_m_sin=no
27515 rm -f core conftest.err conftest.$ac_objext \
27516 conftest$ac_exeext conftest.$ac_ext
27517 LIBS=$ac_check_lib_save_LIBS
27519 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27520 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27521 if test $ac_cv_lib_m_sin = yes; then
27522 cat >>confdefs.h <<_ACEOF
27523 #define HAVE_LIBM 1
27524 _ACEOF
27526 LIBS="-lm $LIBS"
27530 if test "$llvm_cv_os_type" = "MingW" ; then
27532 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27533 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27534 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27536 else
27537 ac_check_lib_save_LIBS=$LIBS
27538 LIBS="-limagehlp $LIBS"
27539 cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h. */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h. */
27548 main ()
27550 return main ();
27552 return 0;
27554 _ACEOF
27555 rm -f conftest.$ac_objext conftest$ac_exeext
27556 if { (ac_try="$ac_link"
27557 case "(($ac_try" in
27558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559 *) ac_try_echo=$ac_try;;
27560 esac
27561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562 (eval "$ac_link") 2>conftest.er1
27563 ac_status=$?
27564 grep -v '^ *+' conftest.er1 >conftest.err
27565 rm -f conftest.er1
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } &&
27569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27570 { (case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573 esac
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_try") 2>&5
27576 ac_status=$?
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; } &&
27579 { ac_try='test -s conftest$ac_exeext'
27580 { (case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27583 esac
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_try") 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; }; then
27589 ac_cv_lib_imagehlp_main=yes
27590 else
27591 echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27594 ac_cv_lib_imagehlp_main=no
27597 rm -f core conftest.err conftest.$ac_objext \
27598 conftest$ac_exeext conftest.$ac_ext
27599 LIBS=$ac_check_lib_save_LIBS
27601 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27602 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27603 if test $ac_cv_lib_imagehlp_main = yes; then
27604 cat >>confdefs.h <<_ACEOF
27605 #define HAVE_LIBIMAGEHLP 1
27606 _ACEOF
27608 LIBS="-limagehlp $LIBS"
27613 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27614 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27615 if test "${ac_cv_lib_psapi_main+set}" = set; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617 else
27618 ac_check_lib_save_LIBS=$LIBS
27619 LIBS="-lpsapi $LIBS"
27620 cat >conftest.$ac_ext <<_ACEOF
27621 /* confdefs.h. */
27622 _ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h. */
27629 main ()
27631 return main ();
27633 return 0;
27635 _ACEOF
27636 rm -f conftest.$ac_objext conftest$ac_exeext
27637 if { (ac_try="$ac_link"
27638 case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_link") 2>conftest.er1
27644 ac_status=$?
27645 grep -v '^ *+' conftest.er1 >conftest.err
27646 rm -f conftest.er1
27647 cat conftest.err >&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); } &&
27650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27651 { (case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27654 esac
27655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656 (eval "$ac_try") 2>&5
27657 ac_status=$?
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); }; } &&
27660 { ac_try='test -s conftest$ac_exeext'
27661 { (case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27664 esac
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_try") 2>&5
27667 ac_status=$?
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_cv_lib_psapi_main=yes
27671 else
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27675 ac_cv_lib_psapi_main=no
27678 rm -f core conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
27680 LIBS=$ac_check_lib_save_LIBS
27682 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27683 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27684 if test $ac_cv_lib_psapi_main = yes; then
27685 cat >>confdefs.h <<_ACEOF
27686 #define HAVE_LIBPSAPI 1
27687 _ACEOF
27689 LIBS="-lpsapi $LIBS"
27695 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27696 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27697 if test "${ac_cv_search_dlopen+set}" = set; then
27698 echo $ECHO_N "(cached) $ECHO_C" >&6
27699 else
27700 ac_func_search_save_LIBS=$LIBS
27701 cat >conftest.$ac_ext <<_ACEOF
27702 /* confdefs.h. */
27703 _ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h. */
27708 /* Override any GCC internal prototype to avoid an error.
27709 Use char because int might match the return type of a GCC
27710 builtin and then its argument prototype would still apply. */
27711 #ifdef __cplusplus
27712 extern "C"
27713 #endif
27714 char dlopen ();
27716 main ()
27718 return dlopen ();
27720 return 0;
27722 _ACEOF
27723 for ac_lib in '' dl; do
27724 if test -z "$ac_lib"; then
27725 ac_res="none required"
27726 else
27727 ac_res=-l$ac_lib
27728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27730 rm -f conftest.$ac_objext conftest$ac_exeext
27731 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27738 ac_status=$?
27739 grep -v '^ *+' conftest.er1 >conftest.err
27740 rm -f conftest.er1
27741 cat conftest.err >&5
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } &&
27744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27745 { (case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27748 esac
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_try") 2>&5
27751 ac_status=$?
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; } &&
27754 { ac_try='test -s conftest$ac_exeext'
27755 { (case "(($ac_try" in
27756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757 *) ac_try_echo=$ac_try;;
27758 esac
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_try") 2>&5
27761 ac_status=$?
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
27764 ac_cv_search_dlopen=$ac_res
27765 else
27766 echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27772 rm -f core conftest.err conftest.$ac_objext \
27773 conftest$ac_exeext
27774 if test "${ac_cv_search_dlopen+set}" = set; then
27775 break
27777 done
27778 if test "${ac_cv_search_dlopen+set}" = set; then
27780 else
27781 ac_cv_search_dlopen=no
27783 rm conftest.$ac_ext
27784 LIBS=$ac_func_search_save_LIBS
27786 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27787 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27788 ac_res=$ac_cv_search_dlopen
27789 if test "$ac_res" != no; then
27790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27792 cat >>confdefs.h <<\_ACEOF
27793 #define HAVE_DLOPEN 1
27794 _ACEOF
27796 else
27797 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27798 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27802 if test "$llvm_cv_enable_libffi" = "yes" ; then
27803 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27804 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27805 if test "${ac_cv_search_ffi_call+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27807 else
27808 ac_func_search_save_LIBS=$LIBS
27809 cat >conftest.$ac_ext <<_ACEOF
27810 /* confdefs.h. */
27811 _ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h. */
27816 /* Override any GCC internal prototype to avoid an error.
27817 Use char because int might match the return type of a GCC
27818 builtin and then its argument prototype would still apply. */
27819 #ifdef __cplusplus
27820 extern "C"
27821 #endif
27822 char ffi_call ();
27824 main ()
27826 return ffi_call ();
27828 return 0;
27830 _ACEOF
27831 for ac_lib in '' ffi; do
27832 if test -z "$ac_lib"; then
27833 ac_res="none required"
27834 else
27835 ac_res=-l$ac_lib
27836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27838 rm -f conftest.$ac_objext conftest$ac_exeext
27839 if { (ac_try="$ac_link"
27840 case "(($ac_try" in
27841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842 *) ac_try_echo=$ac_try;;
27843 esac
27844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27845 (eval "$ac_link") 2>conftest.er1
27846 ac_status=$?
27847 grep -v '^ *+' conftest.er1 >conftest.err
27848 rm -f conftest.er1
27849 cat conftest.err >&5
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); } &&
27852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27853 { (case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27856 esac
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_try") 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; } &&
27862 { ac_try='test -s conftest$ac_exeext'
27863 { (case "(($ac_try" in
27864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865 *) ac_try_echo=$ac_try;;
27866 esac
27867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868 (eval "$ac_try") 2>&5
27869 ac_status=$?
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; }; then
27872 ac_cv_search_ffi_call=$ac_res
27873 else
27874 echo "$as_me: failed program was:" >&5
27875 sed 's/^/| /' conftest.$ac_ext >&5
27880 rm -f core conftest.err conftest.$ac_objext \
27881 conftest$ac_exeext
27882 if test "${ac_cv_search_ffi_call+set}" = set; then
27883 break
27885 done
27886 if test "${ac_cv_search_ffi_call+set}" = set; then
27888 else
27889 ac_cv_search_ffi_call=no
27891 rm conftest.$ac_ext
27892 LIBS=$ac_func_search_save_LIBS
27894 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27895 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27896 ac_res=$ac_cv_search_ffi_call
27897 if test "$ac_res" != no; then
27898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27900 cat >>confdefs.h <<\_ACEOF
27901 #define HAVE_FFI_CALL 1
27902 _ACEOF
27904 else
27905 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27906 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27911 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27912 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27913 if test "${ac_cv_search_mallinfo+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27915 else
27916 ac_func_search_save_LIBS=$LIBS
27917 cat >conftest.$ac_ext <<_ACEOF
27918 /* confdefs.h. */
27919 _ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h. */
27924 /* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27927 #ifdef __cplusplus
27928 extern "C"
27929 #endif
27930 char mallinfo ();
27932 main ()
27934 return mallinfo ();
27936 return 0;
27938 _ACEOF
27939 for ac_lib in '' malloc; do
27940 if test -z "$ac_lib"; then
27941 ac_res="none required"
27942 else
27943 ac_res=-l$ac_lib
27944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27946 rm -f conftest.$ac_objext conftest$ac_exeext
27947 if { (ac_try="$ac_link"
27948 case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27951 esac
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_link") 2>conftest.er1
27954 ac_status=$?
27955 grep -v '^ *+' conftest.er1 >conftest.err
27956 rm -f conftest.er1
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
27960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27961 { (case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27964 esac
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_try") 2>&5
27967 ac_status=$?
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try='test -s conftest$ac_exeext'
27971 { (case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27974 esac
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_try") 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
27980 ac_cv_search_mallinfo=$ac_res
27981 else
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27988 rm -f core conftest.err conftest.$ac_objext \
27989 conftest$ac_exeext
27990 if test "${ac_cv_search_mallinfo+set}" = set; then
27991 break
27993 done
27994 if test "${ac_cv_search_mallinfo+set}" = set; then
27996 else
27997 ac_cv_search_mallinfo=no
27999 rm conftest.$ac_ext
28000 LIBS=$ac_func_search_save_LIBS
28002 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28003 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28004 ac_res=$ac_cv_search_mallinfo
28005 if test "$ac_res" != no; then
28006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28008 cat >>confdefs.h <<\_ACEOF
28009 #define HAVE_MALLINFO 1
28010 _ACEOF
28015 if test "$ENABLE_THREADS" -eq 1 ; then
28017 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28018 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28019 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022 ac_check_lib_save_LIBS=$LIBS
28023 LIBS="-lpthread $LIBS"
28024 cat >conftest.$ac_ext <<_ACEOF
28025 /* confdefs.h. */
28026 _ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h. */
28031 /* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28034 #ifdef __cplusplus
28035 extern "C"
28036 #endif
28037 char pthread_mutex_init ();
28039 main ()
28041 return pthread_mutex_init ();
28043 return 0;
28045 _ACEOF
28046 rm -f conftest.$ac_objext conftest$ac_exeext
28047 if { (ac_try="$ac_link"
28048 case "(($ac_try" in
28049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050 *) ac_try_echo=$ac_try;;
28051 esac
28052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28053 (eval "$ac_link") 2>conftest.er1
28054 ac_status=$?
28055 grep -v '^ *+' conftest.er1 >conftest.err
28056 rm -f conftest.er1
28057 cat conftest.err >&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); } &&
28060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28061 { (case "(($ac_try" in
28062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063 *) ac_try_echo=$ac_try;;
28064 esac
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_try") 2>&5
28067 ac_status=$?
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; } &&
28070 { ac_try='test -s conftest$ac_exeext'
28071 { (case "(($ac_try" in
28072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28073 *) ac_try_echo=$ac_try;;
28074 esac
28075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076 (eval "$ac_try") 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }; then
28080 ac_cv_lib_pthread_pthread_mutex_init=yes
28081 else
28082 echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28085 ac_cv_lib_pthread_pthread_mutex_init=no
28088 rm -f core conftest.err conftest.$ac_objext \
28089 conftest$ac_exeext conftest.$ac_ext
28090 LIBS=$ac_check_lib_save_LIBS
28092 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28093 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28094 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28095 cat >>confdefs.h <<_ACEOF
28096 #define HAVE_LIBPTHREAD 1
28097 _ACEOF
28099 LIBS="-lpthread $LIBS"
28103 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28104 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28105 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28106 echo $ECHO_N "(cached) $ECHO_C" >&6
28107 else
28108 ac_func_search_save_LIBS=$LIBS
28109 cat >conftest.$ac_ext <<_ACEOF
28110 /* confdefs.h. */
28111 _ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28116 /* Override any GCC internal prototype to avoid an error.
28117 Use char because int might match the return type of a GCC
28118 builtin and then its argument prototype would still apply. */
28119 #ifdef __cplusplus
28120 extern "C"
28121 #endif
28122 char pthread_mutex_lock ();
28124 main ()
28126 return pthread_mutex_lock ();
28128 return 0;
28130 _ACEOF
28131 for ac_lib in '' pthread; do
28132 if test -z "$ac_lib"; then
28133 ac_res="none required"
28134 else
28135 ac_res=-l$ac_lib
28136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28138 rm -f conftest.$ac_objext conftest$ac_exeext
28139 if { (ac_try="$ac_link"
28140 case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28143 esac
28144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_link") 2>conftest.er1
28146 ac_status=$?
28147 grep -v '^ *+' conftest.er1 >conftest.err
28148 rm -f conftest.er1
28149 cat conftest.err >&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); } &&
28152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28153 { (case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156 esac
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_try") 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try='test -s conftest$ac_exeext'
28163 { (case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28166 esac
28167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_try") 2>&5
28169 ac_status=$?
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); }; }; then
28172 ac_cv_search_pthread_mutex_lock=$ac_res
28173 else
28174 echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28180 rm -f core conftest.err conftest.$ac_objext \
28181 conftest$ac_exeext
28182 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28183 break
28185 done
28186 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28188 else
28189 ac_cv_search_pthread_mutex_lock=no
28191 rm conftest.$ac_ext
28192 LIBS=$ac_func_search_save_LIBS
28194 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28195 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28196 ac_res=$ac_cv_search_pthread_mutex_lock
28197 if test "$ac_res" != no; then
28198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28200 cat >>confdefs.h <<\_ACEOF
28201 #define HAVE_PTHREAD_MUTEX_LOCK 1
28202 _ACEOF
28206 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28207 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28208 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 else
28211 ac_func_search_save_LIBS=$LIBS
28212 cat >conftest.$ac_ext <<_ACEOF
28213 /* confdefs.h. */
28214 _ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h. */
28219 /* Override any GCC internal prototype to avoid an error.
28220 Use char because int might match the return type of a GCC
28221 builtin and then its argument prototype would still apply. */
28222 #ifdef __cplusplus
28223 extern "C"
28224 #endif
28225 char pthread_rwlock_init ();
28227 main ()
28229 return pthread_rwlock_init ();
28231 return 0;
28233 _ACEOF
28234 for ac_lib in '' pthread; do
28235 if test -z "$ac_lib"; then
28236 ac_res="none required"
28237 else
28238 ac_res=-l$ac_lib
28239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28241 rm -f conftest.$ac_objext conftest$ac_exeext
28242 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28249 ac_status=$?
28250 grep -v '^ *+' conftest.er1 >conftest.err
28251 rm -f conftest.er1
28252 cat conftest.err >&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); } &&
28255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28256 { (case "(($ac_try" in
28257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28258 *) ac_try_echo=$ac_try;;
28259 esac
28260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28261 (eval "$ac_try") 2>&5
28262 ac_status=$?
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; } &&
28265 { ac_try='test -s conftest$ac_exeext'
28266 { (case "(($ac_try" in
28267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28269 esac
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_try") 2>&5
28272 ac_status=$?
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); }; }; then
28275 ac_cv_search_pthread_rwlock_init=$ac_res
28276 else
28277 echo "$as_me: failed program was:" >&5
28278 sed 's/^/| /' conftest.$ac_ext >&5
28283 rm -f core conftest.err conftest.$ac_objext \
28284 conftest$ac_exeext
28285 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28286 break
28288 done
28289 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28291 else
28292 ac_cv_search_pthread_rwlock_init=no
28294 rm conftest.$ac_ext
28295 LIBS=$ac_func_search_save_LIBS
28297 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28298 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28299 ac_res=$ac_cv_search_pthread_rwlock_init
28300 if test "$ac_res" != no; then
28301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28303 cat >>confdefs.h <<\_ACEOF
28304 #define HAVE_PTHREAD_RWLOCK_INIT 1
28305 _ACEOF
28309 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28310 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28311 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28312 echo $ECHO_N "(cached) $ECHO_C" >&6
28313 else
28314 ac_func_search_save_LIBS=$LIBS
28315 cat >conftest.$ac_ext <<_ACEOF
28316 /* confdefs.h. */
28317 _ACEOF
28318 cat confdefs.h >>conftest.$ac_ext
28319 cat >>conftest.$ac_ext <<_ACEOF
28320 /* end confdefs.h. */
28322 /* Override any GCC internal prototype to avoid an error.
28323 Use char because int might match the return type of a GCC
28324 builtin and then its argument prototype would still apply. */
28325 #ifdef __cplusplus
28326 extern "C"
28327 #endif
28328 char pthread_getspecific ();
28330 main ()
28332 return pthread_getspecific ();
28334 return 0;
28336 _ACEOF
28337 for ac_lib in '' pthread; do
28338 if test -z "$ac_lib"; then
28339 ac_res="none required"
28340 else
28341 ac_res=-l$ac_lib
28342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28344 rm -f conftest.$ac_objext conftest$ac_exeext
28345 if { (ac_try="$ac_link"
28346 case "(($ac_try" in
28347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28348 *) ac_try_echo=$ac_try;;
28349 esac
28350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28351 (eval "$ac_link") 2>conftest.er1
28352 ac_status=$?
28353 grep -v '^ *+' conftest.er1 >conftest.err
28354 rm -f conftest.er1
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
28358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28359 { (case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28362 esac
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_try") 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest$ac_exeext'
28369 { (case "(($ac_try" in
28370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28372 esac
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_try") 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 ac_cv_search_pthread_getspecific=$ac_res
28379 else
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28386 rm -f core conftest.err conftest.$ac_objext \
28387 conftest$ac_exeext
28388 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28389 break
28391 done
28392 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28394 else
28395 ac_cv_search_pthread_getspecific=no
28397 rm conftest.$ac_ext
28398 LIBS=$ac_func_search_save_LIBS
28400 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28401 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28402 ac_res=$ac_cv_search_pthread_getspecific
28403 if test "$ac_res" != no; then
28404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28406 cat >>confdefs.h <<\_ACEOF
28407 #define HAVE_PTHREAD_GETSPECIFIC 1
28408 _ACEOF
28415 # Check whether --with-udis86 was given.
28416 if test "${with_udis86+set}" = set; then
28417 withval=$with_udis86;
28418 USE_UDIS86=1
28420 case "$withval" in
28421 /usr/lib|yes) ;;
28422 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28423 esac
28425 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28426 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28427 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28428 echo $ECHO_N "(cached) $ECHO_C" >&6
28429 else
28430 ac_check_lib_save_LIBS=$LIBS
28431 LIBS="-ludis86 $LIBS"
28432 cat >conftest.$ac_ext <<_ACEOF
28433 /* confdefs.h. */
28434 _ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h. */
28439 /* Override any GCC internal prototype to avoid an error.
28440 Use char because int might match the return type of a GCC
28441 builtin and then its argument prototype would still apply. */
28442 #ifdef __cplusplus
28443 extern "C"
28444 #endif
28445 char ud_init ();
28447 main ()
28449 return ud_init ();
28451 return 0;
28453 _ACEOF
28454 rm -f conftest.$ac_objext conftest$ac_exeext
28455 if { (ac_try="$ac_link"
28456 case "(($ac_try" in
28457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28458 *) ac_try_echo=$ac_try;;
28459 esac
28460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28461 (eval "$ac_link") 2>conftest.er1
28462 ac_status=$?
28463 grep -v '^ *+' conftest.er1 >conftest.err
28464 rm -f conftest.er1
28465 cat conftest.err >&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); } &&
28468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28469 { (case "(($ac_try" in
28470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28471 *) ac_try_echo=$ac_try;;
28472 esac
28473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28474 (eval "$ac_try") 2>&5
28475 ac_status=$?
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; } &&
28478 { ac_try='test -s conftest$ac_exeext'
28479 { (case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28482 esac
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_try") 2>&5
28485 ac_status=$?
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
28488 ac_cv_lib_udis86_ud_init=yes
28489 else
28490 echo "$as_me: failed program was:" >&5
28491 sed 's/^/| /' conftest.$ac_ext >&5
28493 ac_cv_lib_udis86_ud_init=no
28496 rm -f core conftest.err conftest.$ac_objext \
28497 conftest$ac_exeext conftest.$ac_ext
28498 LIBS=$ac_check_lib_save_LIBS
28500 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28501 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28502 if test $ac_cv_lib_udis86_ud_init = yes; then
28503 cat >>confdefs.h <<_ACEOF
28504 #define HAVE_LIBUDIS86 1
28505 _ACEOF
28507 LIBS="-ludis86 $LIBS"
28509 else
28511 echo "Error! You need to have libudis86 around."
28512 exit -1
28517 else
28518 USE_UDIS86=0
28523 cat >>confdefs.h <<_ACEOF
28524 #define USE_UDIS86 $USE_UDIS86
28525 _ACEOF
28529 # Check whether --with-oprofile was given.
28530 if test "${with_oprofile+set}" = set; then
28531 withval=$with_oprofile;
28532 USE_OPROFILE=1
28534 case "$withval" in
28535 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28536 *) llvm_cv_oppath="${withval}/lib/oprofile"
28537 CPPFLAGS="-I${withval}/include";;
28538 esac
28539 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28540 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28541 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28542 if test "${ac_cv_search_op_open_agent+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544 else
28545 ac_func_search_save_LIBS=$LIBS
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. */
28553 /* Override any GCC internal prototype to avoid an error.
28554 Use char because int might match the return type of a GCC
28555 builtin and then its argument prototype would still apply. */
28556 #ifdef __cplusplus
28557 extern "C"
28558 #endif
28559 char op_open_agent ();
28561 main ()
28563 return op_open_agent ();
28565 return 0;
28567 _ACEOF
28568 for ac_lib in '' opagent; do
28569 if test -z "$ac_lib"; then
28570 ac_res="none required"
28571 else
28572 ac_res=-l$ac_lib
28573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28575 rm -f conftest.$ac_objext conftest$ac_exeext
28576 if { (ac_try="$ac_link"
28577 case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28580 esac
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_link") 2>conftest.er1
28583 ac_status=$?
28584 grep -v '^ *+' conftest.er1 >conftest.err
28585 rm -f conftest.er1
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } &&
28589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28590 { (case "(($ac_try" in
28591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28592 *) ac_try_echo=$ac_try;;
28593 esac
28594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28595 (eval "$ac_try") 2>&5
28596 ac_status=$?
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); }; } &&
28599 { ac_try='test -s conftest$ac_exeext'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603 esac
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
28609 ac_cv_search_op_open_agent=$ac_res
28610 else
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28617 rm -f core conftest.err conftest.$ac_objext \
28618 conftest$ac_exeext
28619 if test "${ac_cv_search_op_open_agent+set}" = set; then
28620 break
28622 done
28623 if test "${ac_cv_search_op_open_agent+set}" = set; then
28625 else
28626 ac_cv_search_op_open_agent=no
28628 rm conftest.$ac_ext
28629 LIBS=$ac_func_search_save_LIBS
28631 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28632 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28633 ac_res=$ac_cv_search_op_open_agent
28634 if test "$ac_res" != no; then
28635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28637 else
28639 echo "Error! You need to have libopagent around."
28640 exit -1
28644 if test "${ac_cv_header_opagent_h+set}" = set; then
28645 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28646 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28647 if test "${ac_cv_header_opagent_h+set}" = set; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
28650 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28651 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28652 else
28653 # Is the header compilable?
28654 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28655 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28656 cat >conftest.$ac_ext <<_ACEOF
28657 /* confdefs.h. */
28658 _ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h. */
28662 $ac_includes_default
28663 #include <opagent.h>
28664 _ACEOF
28665 rm -f conftest.$ac_objext
28666 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28673 ac_status=$?
28674 grep -v '^ *+' conftest.er1 >conftest.err
28675 rm -f conftest.er1
28676 cat conftest.err >&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); } &&
28679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28680 { (case "(($ac_try" in
28681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28683 esac
28684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685 (eval "$ac_try") 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
28690 { (case "(($ac_try" in
28691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692 *) ac_try_echo=$ac_try;;
28693 esac
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_try") 2>&5
28696 ac_status=$?
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); }; }; then
28699 ac_header_compiler=yes
28700 else
28701 echo "$as_me: failed program was:" >&5
28702 sed 's/^/| /' conftest.$ac_ext >&5
28704 ac_header_compiler=no
28707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28709 echo "${ECHO_T}$ac_header_compiler" >&6; }
28711 # Is the header present?
28712 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28713 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28714 cat >conftest.$ac_ext <<_ACEOF
28715 /* confdefs.h. */
28716 _ACEOF
28717 cat confdefs.h >>conftest.$ac_ext
28718 cat >>conftest.$ac_ext <<_ACEOF
28719 /* end confdefs.h. */
28720 #include <opagent.h>
28721 _ACEOF
28722 if { (ac_try="$ac_cpp conftest.$ac_ext"
28723 case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726 esac
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28729 ac_status=$?
28730 grep -v '^ *+' conftest.er1 >conftest.err
28731 rm -f conftest.er1
28732 cat conftest.err >&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } >/dev/null; then
28735 if test -s conftest.err; then
28736 ac_cpp_err=$ac_c_preproc_warn_flag
28737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28738 else
28739 ac_cpp_err=
28741 else
28742 ac_cpp_err=yes
28744 if test -z "$ac_cpp_err"; then
28745 ac_header_preproc=yes
28746 else
28747 echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28750 ac_header_preproc=no
28753 rm -f conftest.err conftest.$ac_ext
28754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28755 echo "${ECHO_T}$ac_header_preproc" >&6; }
28757 # So? What about this header?
28758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28759 yes:no: )
28760 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28761 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28762 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28763 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28764 ac_header_preproc=yes
28766 no:yes:* )
28767 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28768 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28769 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28770 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28771 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28772 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28773 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28774 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28775 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28776 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28777 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28778 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28779 ( cat <<\_ASBOX
28780 ## ----------------------------------- ##
28781 ## Report this to llvmbugs@cs.uiuc.edu ##
28782 ## ----------------------------------- ##
28783 _ASBOX
28784 ) | sed "s/^/$as_me: WARNING: /" >&2
28786 esac
28787 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28788 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28789 if test "${ac_cv_header_opagent_h+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28791 else
28792 ac_cv_header_opagent_h=$ac_header_preproc
28794 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28795 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28798 if test $ac_cv_header_opagent_h = yes; then
28800 else
28802 echo "Error! You need to have opagent.h around."
28803 exit -1
28809 else
28811 llvm_cv_old_LIBS="$LIBS"
28812 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28813 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28814 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28815 if test "${ac_cv_search_op_open_agent+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818 ac_func_search_save_LIBS=$LIBS
28819 cat >conftest.$ac_ext <<_ACEOF
28820 /* confdefs.h. */
28821 _ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h. */
28826 /* Override any GCC internal prototype to avoid an error.
28827 Use char because int might match the return type of a GCC
28828 builtin and then its argument prototype would still apply. */
28829 #ifdef __cplusplus
28830 extern "C"
28831 #endif
28832 char op_open_agent ();
28834 main ()
28836 return op_open_agent ();
28838 return 0;
28840 _ACEOF
28841 for ac_lib in '' opagent; do
28842 if test -z "$ac_lib"; then
28843 ac_res="none required"
28844 else
28845 ac_res=-l$ac_lib
28846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28848 rm -f conftest.$ac_objext conftest$ac_exeext
28849 if { (ac_try="$ac_link"
28850 case "(($ac_try" in
28851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28852 *) ac_try_echo=$ac_try;;
28853 esac
28854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28855 (eval "$ac_link") 2>conftest.er1
28856 ac_status=$?
28857 grep -v '^ *+' conftest.er1 >conftest.err
28858 rm -f conftest.er1
28859 cat conftest.err >&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
28862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28863 { (case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28866 esac
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_try") 2>&5
28869 ac_status=$?
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; } &&
28872 { ac_try='test -s conftest$ac_exeext'
28873 { (case "(($ac_try" in
28874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28875 *) ac_try_echo=$ac_try;;
28876 esac
28877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878 (eval "$ac_try") 2>&5
28879 ac_status=$?
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; }; then
28882 ac_cv_search_op_open_agent=$ac_res
28883 else
28884 echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28890 rm -f core conftest.err conftest.$ac_objext \
28891 conftest$ac_exeext
28892 if test "${ac_cv_search_op_open_agent+set}" = set; then
28893 break
28895 done
28896 if test "${ac_cv_search_op_open_agent+set}" = set; then
28898 else
28899 ac_cv_search_op_open_agent=no
28901 rm conftest.$ac_ext
28902 LIBS=$ac_func_search_save_LIBS
28904 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28905 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28906 ac_res=$ac_cv_search_op_open_agent
28907 if test "$ac_res" != no; then
28908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28909 USE_OPROFILE=1
28911 else
28912 LIBS="$llvm_cv_old_LIBS"
28913 USE_OPROFILE=0
28917 if test "${ac_cv_header_opagent_h+set}" = set; then
28918 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28919 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28920 if test "${ac_cv_header_opagent_h+set}" = set; then
28921 echo $ECHO_N "(cached) $ECHO_C" >&6
28923 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28924 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28925 else
28926 # Is the header compilable?
28927 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28928 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28929 cat >conftest.$ac_ext <<_ACEOF
28930 /* confdefs.h. */
28931 _ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28935 $ac_includes_default
28936 #include <opagent.h>
28937 _ACEOF
28938 rm -f conftest.$ac_objext
28939 if { (ac_try="$ac_compile"
28940 case "(($ac_try" in
28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28943 esac
28944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_compile") 2>conftest.er1
28946 ac_status=$?
28947 grep -v '^ *+' conftest.er1 >conftest.err
28948 rm -f conftest.er1
28949 cat conftest.err >&5
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } &&
28952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28953 { (case "(($ac_try" in
28954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28955 *) ac_try_echo=$ac_try;;
28956 esac
28957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28958 (eval "$ac_try") 2>&5
28959 ac_status=$?
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); }; } &&
28962 { ac_try='test -s conftest.$ac_objext'
28963 { (case "(($ac_try" in
28964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965 *) ac_try_echo=$ac_try;;
28966 esac
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968 (eval "$ac_try") 2>&5
28969 ac_status=$?
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; }; then
28972 ac_header_compiler=yes
28973 else
28974 echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ac_header_compiler=no
28980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28982 echo "${ECHO_T}$ac_header_compiler" >&6; }
28984 # Is the header present?
28985 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28986 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28987 cat >conftest.$ac_ext <<_ACEOF
28988 /* confdefs.h. */
28989 _ACEOF
28990 cat confdefs.h >>conftest.$ac_ext
28991 cat >>conftest.$ac_ext <<_ACEOF
28992 /* end confdefs.h. */
28993 #include <opagent.h>
28994 _ACEOF
28995 if { (ac_try="$ac_cpp conftest.$ac_ext"
28996 case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29002 ac_status=$?
29003 grep -v '^ *+' conftest.er1 >conftest.err
29004 rm -f conftest.er1
29005 cat conftest.err >&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } >/dev/null; then
29008 if test -s conftest.err; then
29009 ac_cpp_err=$ac_c_preproc_warn_flag
29010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29011 else
29012 ac_cpp_err=
29014 else
29015 ac_cpp_err=yes
29017 if test -z "$ac_cpp_err"; then
29018 ac_header_preproc=yes
29019 else
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29023 ac_header_preproc=no
29026 rm -f conftest.err conftest.$ac_ext
29027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29028 echo "${ECHO_T}$ac_header_preproc" >&6; }
29030 # So? What about this header?
29031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29032 yes:no: )
29033 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29034 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29036 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29037 ac_header_preproc=yes
29039 no:yes:* )
29040 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29041 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29042 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29043 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29045 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29047 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29049 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29051 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29052 ( cat <<\_ASBOX
29053 ## ----------------------------------- ##
29054 ## Report this to llvmbugs@cs.uiuc.edu ##
29055 ## ----------------------------------- ##
29056 _ASBOX
29057 ) | sed "s/^/$as_me: WARNING: /" >&2
29059 esac
29060 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29061 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29062 if test "${ac_cv_header_opagent_h+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29064 else
29065 ac_cv_header_opagent_h=$ac_header_preproc
29067 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29068 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29071 if test $ac_cv_header_opagent_h = yes; then
29073 else
29075 LIBS="$llvm_cv_old_LIBS"
29076 USE_OPROFILE=0
29086 cat >>confdefs.h <<_ACEOF
29087 #define USE_OPROFILE $USE_OPROFILE
29088 _ACEOF
29097 ac_header_dirent=no
29098 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29099 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29100 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29101 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29104 else
29105 cat >conftest.$ac_ext <<_ACEOF
29106 /* confdefs.h. */
29107 _ACEOF
29108 cat confdefs.h >>conftest.$ac_ext
29109 cat >>conftest.$ac_ext <<_ACEOF
29110 /* end confdefs.h. */
29111 #include <sys/types.h>
29112 #include <$ac_hdr>
29115 main ()
29117 if ((DIR *) 0)
29118 return 0;
29120 return 0;
29122 _ACEOF
29123 rm -f conftest.$ac_objext
29124 if { (ac_try="$ac_compile"
29125 case "(($ac_try" in
29126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127 *) ac_try_echo=$ac_try;;
29128 esac
29129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130 (eval "$ac_compile") 2>conftest.er1
29131 ac_status=$?
29132 grep -v '^ *+' conftest.er1 >conftest.err
29133 rm -f conftest.er1
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } &&
29137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29138 { (case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29141 esac
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_try") 2>&5
29144 ac_status=$?
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; } &&
29147 { ac_try='test -s conftest.$ac_objext'
29148 { (case "(($ac_try" in
29149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29150 *) ac_try_echo=$ac_try;;
29151 esac
29152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153 (eval "$ac_try") 2>&5
29154 ac_status=$?
29155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); }; }; then
29157 eval "$as_ac_Header=yes"
29158 else
29159 echo "$as_me: failed program was:" >&5
29160 sed 's/^/| /' conftest.$ac_ext >&5
29162 eval "$as_ac_Header=no"
29165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29167 ac_res=`eval echo '${'$as_ac_Header'}'`
29168 { echo "$as_me:$LINENO: result: $ac_res" >&5
29169 echo "${ECHO_T}$ac_res" >&6; }
29170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29171 cat >>confdefs.h <<_ACEOF
29172 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29173 _ACEOF
29175 ac_header_dirent=$ac_hdr; break
29178 done
29179 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29180 if test $ac_header_dirent = dirent.h; then
29181 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29182 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29183 if test "${ac_cv_search_opendir+set}" = set; then
29184 echo $ECHO_N "(cached) $ECHO_C" >&6
29185 else
29186 ac_func_search_save_LIBS=$LIBS
29187 cat >conftest.$ac_ext <<_ACEOF
29188 /* confdefs.h. */
29189 _ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h. */
29194 /* Override any GCC internal prototype to avoid an error.
29195 Use char because int might match the return type of a GCC
29196 builtin and then its argument prototype would still apply. */
29197 #ifdef __cplusplus
29198 extern "C"
29199 #endif
29200 char opendir ();
29202 main ()
29204 return opendir ();
29206 return 0;
29208 _ACEOF
29209 for ac_lib in '' dir; do
29210 if test -z "$ac_lib"; then
29211 ac_res="none required"
29212 else
29213 ac_res=-l$ac_lib
29214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_link") 2>conftest.er1
29224 ac_status=$?
29225 grep -v '^ *+' conftest.er1 >conftest.err
29226 rm -f conftest.er1
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } &&
29230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29231 { (case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29234 esac
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_try") 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest$ac_exeext'
29241 { (case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29244 esac
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_try") 2>&5
29247 ac_status=$?
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 ac_cv_search_opendir=$ac_res
29251 else
29252 echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29258 rm -f core conftest.err conftest.$ac_objext \
29259 conftest$ac_exeext
29260 if test "${ac_cv_search_opendir+set}" = set; then
29261 break
29263 done
29264 if test "${ac_cv_search_opendir+set}" = set; then
29266 else
29267 ac_cv_search_opendir=no
29269 rm conftest.$ac_ext
29270 LIBS=$ac_func_search_save_LIBS
29272 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29273 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29274 ac_res=$ac_cv_search_opendir
29275 if test "$ac_res" != no; then
29276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29280 else
29281 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29282 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29283 if test "${ac_cv_search_opendir+set}" = set; then
29284 echo $ECHO_N "(cached) $ECHO_C" >&6
29285 else
29286 ac_func_search_save_LIBS=$LIBS
29287 cat >conftest.$ac_ext <<_ACEOF
29288 /* confdefs.h. */
29289 _ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h. */
29294 /* Override any GCC internal prototype to avoid an error.
29295 Use char because int might match the return type of a GCC
29296 builtin and then its argument prototype would still apply. */
29297 #ifdef __cplusplus
29298 extern "C"
29299 #endif
29300 char opendir ();
29302 main ()
29304 return opendir ();
29306 return 0;
29308 _ACEOF
29309 for ac_lib in '' x; do
29310 if test -z "$ac_lib"; then
29311 ac_res="none required"
29312 else
29313 ac_res=-l$ac_lib
29314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29316 rm -f conftest.$ac_objext conftest$ac_exeext
29317 if { (ac_try="$ac_link"
29318 case "(($ac_try" in
29319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320 *) ac_try_echo=$ac_try;;
29321 esac
29322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323 (eval "$ac_link") 2>conftest.er1
29324 ac_status=$?
29325 grep -v '^ *+' conftest.er1 >conftest.err
29326 rm -f conftest.er1
29327 cat conftest.err >&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); } &&
29330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29331 { (case "(($ac_try" in
29332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29333 *) ac_try_echo=$ac_try;;
29334 esac
29335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29336 (eval "$ac_try") 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; } &&
29340 { ac_try='test -s conftest$ac_exeext'
29341 { (case "(($ac_try" in
29342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29343 *) ac_try_echo=$ac_try;;
29344 esac
29345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29346 (eval "$ac_try") 2>&5
29347 ac_status=$?
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; }; then
29350 ac_cv_search_opendir=$ac_res
29351 else
29352 echo "$as_me: failed program was:" >&5
29353 sed 's/^/| /' conftest.$ac_ext >&5
29358 rm -f core conftest.err conftest.$ac_objext \
29359 conftest$ac_exeext
29360 if test "${ac_cv_search_opendir+set}" = set; then
29361 break
29363 done
29364 if test "${ac_cv_search_opendir+set}" = set; then
29366 else
29367 ac_cv_search_opendir=no
29369 rm conftest.$ac_ext
29370 LIBS=$ac_func_search_save_LIBS
29372 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29373 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29374 ac_res=$ac_cv_search_opendir
29375 if test "$ac_res" != no; then
29376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29382 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29383 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29384 if test "${ac_cv_header_mmap_anon+set}" = set; then
29385 echo $ECHO_N "(cached) $ECHO_C" >&6
29386 else
29387 ac_ext=c
29388 ac_cpp='$CPP $CPPFLAGS'
29389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29393 cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h. */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29399 #include <sys/mman.h>
29400 #include <unistd.h>
29401 #include <fcntl.h>
29403 main ()
29405 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29407 return 0;
29409 _ACEOF
29410 rm -f conftest.$ac_objext
29411 if { (ac_try="$ac_compile"
29412 case "(($ac_try" in
29413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414 *) ac_try_echo=$ac_try;;
29415 esac
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417 (eval "$ac_compile") 2>conftest.er1
29418 ac_status=$?
29419 grep -v '^ *+' conftest.er1 >conftest.err
29420 rm -f conftest.er1
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } &&
29424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29425 { (case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29428 esac
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_try") 2>&5
29431 ac_status=$?
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; } &&
29434 { ac_try='test -s conftest.$ac_objext'
29435 { (case "(($ac_try" in
29436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437 *) ac_try_echo=$ac_try;;
29438 esac
29439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440 (eval "$ac_try") 2>&5
29441 ac_status=$?
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); }; }; then
29444 ac_cv_header_mmap_anon=yes
29445 else
29446 echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.$ac_ext >&5
29449 ac_cv_header_mmap_anon=no
29452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453 ac_ext=c
29454 ac_cpp='$CPP $CPPFLAGS'
29455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29461 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29462 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29463 if test "$ac_cv_header_mmap_anon" = yes; then
29465 cat >>confdefs.h <<\_ACEOF
29466 #define HAVE_MMAP_ANONYMOUS 1
29467 _ACEOF
29471 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29472 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29473 if test "${ac_cv_header_stat_broken+set}" = set; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29475 else
29476 cat >conftest.$ac_ext <<_ACEOF
29477 /* confdefs.h. */
29478 _ACEOF
29479 cat confdefs.h >>conftest.$ac_ext
29480 cat >>conftest.$ac_ext <<_ACEOF
29481 /* end confdefs.h. */
29482 #include <sys/types.h>
29483 #include <sys/stat.h>
29485 #if defined S_ISBLK && defined S_IFDIR
29486 # if S_ISBLK (S_IFDIR)
29487 You lose.
29488 # endif
29489 #endif
29491 #if defined S_ISBLK && defined S_IFCHR
29492 # if S_ISBLK (S_IFCHR)
29493 You lose.
29494 # endif
29495 #endif
29497 #if defined S_ISLNK && defined S_IFREG
29498 # if S_ISLNK (S_IFREG)
29499 You lose.
29500 # endif
29501 #endif
29503 #if defined S_ISSOCK && defined S_IFREG
29504 # if S_ISSOCK (S_IFREG)
29505 You lose.
29506 # endif
29507 #endif
29509 _ACEOF
29510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29511 $EGREP "You lose" >/dev/null 2>&1; then
29512 ac_cv_header_stat_broken=yes
29513 else
29514 ac_cv_header_stat_broken=no
29516 rm -f conftest*
29519 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29520 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29521 if test $ac_cv_header_stat_broken = yes; then
29523 cat >>confdefs.h <<\_ACEOF
29524 #define STAT_MACROS_BROKEN 1
29525 _ACEOF
29529 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29530 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29531 if test "${ac_cv_header_stdc+set}" = set; then
29532 echo $ECHO_N "(cached) $ECHO_C" >&6
29533 else
29534 cat >conftest.$ac_ext <<_ACEOF
29535 /* confdefs.h. */
29536 _ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h. */
29540 #include <stdlib.h>
29541 #include <stdarg.h>
29542 #include <string.h>
29543 #include <float.h>
29546 main ()
29550 return 0;
29552 _ACEOF
29553 rm -f conftest.$ac_objext
29554 if { (ac_try="$ac_compile"
29555 case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29558 esac
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_compile") 2>conftest.er1
29561 ac_status=$?
29562 grep -v '^ *+' conftest.er1 >conftest.err
29563 rm -f conftest.er1
29564 cat conftest.err >&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); } &&
29567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29568 { (case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_try") 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; } &&
29577 { ac_try='test -s conftest.$ac_objext'
29578 { (case "(($ac_try" in
29579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29581 esac
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_try") 2>&5
29584 ac_status=$?
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; }; then
29587 ac_cv_header_stdc=yes
29588 else
29589 echo "$as_me: failed program was:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29592 ac_cv_header_stdc=no
29595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29597 if test $ac_cv_header_stdc = yes; then
29598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29599 cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h. */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29605 #include <string.h>
29607 _ACEOF
29608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29609 $EGREP "memchr" >/dev/null 2>&1; then
29611 else
29612 ac_cv_header_stdc=no
29614 rm -f conftest*
29618 if test $ac_cv_header_stdc = yes; then
29619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29620 cat >conftest.$ac_ext <<_ACEOF
29621 /* confdefs.h. */
29622 _ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29626 #include <stdlib.h>
29628 _ACEOF
29629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29630 $EGREP "free" >/dev/null 2>&1; then
29632 else
29633 ac_cv_header_stdc=no
29635 rm -f conftest*
29639 if test $ac_cv_header_stdc = yes; then
29640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29641 if test "$cross_compiling" = yes; then
29643 else
29644 cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h. */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29650 #include <ctype.h>
29651 #include <stdlib.h>
29652 #if ((' ' & 0x0FF) == 0x020)
29653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29655 #else
29656 # define ISLOWER(c) \
29657 (('a' <= (c) && (c) <= 'i') \
29658 || ('j' <= (c) && (c) <= 'r') \
29659 || ('s' <= (c) && (c) <= 'z'))
29660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29661 #endif
29663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29665 main ()
29667 int i;
29668 for (i = 0; i < 256; i++)
29669 if (XOR (islower (i), ISLOWER (i))
29670 || toupper (i) != TOUPPER (i))
29671 return 2;
29672 return 0;
29674 _ACEOF
29675 rm -f conftest$ac_exeext
29676 if { (ac_try="$ac_link"
29677 case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29680 esac
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_link") 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29686 { (case "(($ac_try" in
29687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29688 *) ac_try_echo=$ac_try;;
29689 esac
29690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29691 (eval "$ac_try") 2>&5
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; }; then
29696 else
29697 echo "$as_me: program exited with status $ac_status" >&5
29698 echo "$as_me: failed program was:" >&5
29699 sed 's/^/| /' conftest.$ac_ext >&5
29701 ( exit $ac_status )
29702 ac_cv_header_stdc=no
29704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29710 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29711 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29712 if test $ac_cv_header_stdc = yes; then
29714 cat >>confdefs.h <<\_ACEOF
29715 #define STDC_HEADERS 1
29716 _ACEOF
29720 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29721 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29722 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29723 echo $ECHO_N "(cached) $ECHO_C" >&6
29724 else
29725 cat >conftest.$ac_ext <<_ACEOF
29726 /* confdefs.h. */
29727 _ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h. */
29731 #include <sys/types.h>
29732 #include <sys/wait.h>
29733 #ifndef WEXITSTATUS
29734 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29735 #endif
29736 #ifndef WIFEXITED
29737 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29738 #endif
29741 main ()
29743 int s;
29744 wait (&s);
29745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29747 return 0;
29749 _ACEOF
29750 rm -f conftest.$ac_objext
29751 if { (ac_try="$ac_compile"
29752 case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29755 esac
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_compile") 2>conftest.er1
29758 ac_status=$?
29759 grep -v '^ *+' conftest.er1 >conftest.err
29760 rm -f conftest.er1
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } &&
29764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29765 { (case "(($ac_try" in
29766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29768 esac
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_try") 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; } &&
29774 { ac_try='test -s conftest.$ac_objext'
29775 { (case "(($ac_try" in
29776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777 *) ac_try_echo=$ac_try;;
29778 esac
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780 (eval "$ac_try") 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; }; then
29784 ac_cv_header_sys_wait_h=yes
29785 else
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29789 ac_cv_header_sys_wait_h=no
29792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29794 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29796 if test $ac_cv_header_sys_wait_h = yes; then
29798 cat >>confdefs.h <<\_ACEOF
29799 #define HAVE_SYS_WAIT_H 1
29800 _ACEOF
29804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29806 if test "${ac_cv_header_time+set}" = set; then
29807 echo $ECHO_N "(cached) $ECHO_C" >&6
29808 else
29809 cat >conftest.$ac_ext <<_ACEOF
29810 /* confdefs.h. */
29811 _ACEOF
29812 cat confdefs.h >>conftest.$ac_ext
29813 cat >>conftest.$ac_ext <<_ACEOF
29814 /* end confdefs.h. */
29815 #include <sys/types.h>
29816 #include <sys/time.h>
29817 #include <time.h>
29820 main ()
29822 if ((struct tm *) 0)
29823 return 0;
29825 return 0;
29827 _ACEOF
29828 rm -f conftest.$ac_objext
29829 if { (ac_try="$ac_compile"
29830 case "(($ac_try" in
29831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29833 esac
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_compile") 2>conftest.er1
29836 ac_status=$?
29837 grep -v '^ *+' conftest.er1 >conftest.err
29838 rm -f conftest.er1
29839 cat conftest.err >&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); } &&
29842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29843 { (case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29846 esac
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_try") 2>&5
29849 ac_status=$?
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; } &&
29852 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; }; then
29862 ac_cv_header_time=yes
29863 else
29864 echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29867 ac_cv_header_time=no
29870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29872 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29873 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29874 if test $ac_cv_header_time = yes; then
29876 cat >>confdefs.h <<\_ACEOF
29877 #define TIME_WITH_SYS_TIME 1
29878 _ACEOF
29889 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29898 ac_res=`eval echo '${'$as_ac_Header'}'`
29899 { echo "$as_me:$LINENO: result: $ac_res" >&5
29900 echo "${ECHO_T}$ac_res" >&6; }
29901 else
29902 # Is the header compilable?
29903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29905 cat >conftest.$ac_ext <<_ACEOF
29906 /* confdefs.h. */
29907 _ACEOF
29908 cat confdefs.h >>conftest.$ac_ext
29909 cat >>conftest.$ac_ext <<_ACEOF
29910 /* end confdefs.h. */
29911 $ac_includes_default
29912 #include <$ac_header>
29913 _ACEOF
29914 rm -f conftest.$ac_objext
29915 if { (ac_try="$ac_compile"
29916 case "(($ac_try" in
29917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29918 *) ac_try_echo=$ac_try;;
29919 esac
29920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29921 (eval "$ac_compile") 2>conftest.er1
29922 ac_status=$?
29923 grep -v '^ *+' conftest.er1 >conftest.err
29924 rm -f conftest.er1
29925 cat conftest.err >&5
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); } &&
29928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29929 { (case "(($ac_try" in
29930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29931 *) ac_try_echo=$ac_try;;
29932 esac
29933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29934 (eval "$ac_try") 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; } &&
29938 { ac_try='test -s conftest.$ac_objext'
29939 { (case "(($ac_try" in
29940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941 *) ac_try_echo=$ac_try;;
29942 esac
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944 (eval "$ac_try") 2>&5
29945 ac_status=$?
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; }; then
29948 ac_header_compiler=yes
29949 else
29950 echo "$as_me: failed program was:" >&5
29951 sed 's/^/| /' conftest.$ac_ext >&5
29953 ac_header_compiler=no
29956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29958 echo "${ECHO_T}$ac_header_compiler" >&6; }
29960 # Is the header present?
29961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29963 cat >conftest.$ac_ext <<_ACEOF
29964 /* confdefs.h. */
29965 _ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29969 #include <$ac_header>
29970 _ACEOF
29971 if { (ac_try="$ac_cpp conftest.$ac_ext"
29972 case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29975 esac
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29978 ac_status=$?
29979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } >/dev/null; then
29984 if test -s conftest.err; then
29985 ac_cpp_err=$ac_c_preproc_warn_flag
29986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29987 else
29988 ac_cpp_err=
29990 else
29991 ac_cpp_err=yes
29993 if test -z "$ac_cpp_err"; then
29994 ac_header_preproc=yes
29995 else
29996 echo "$as_me: failed program was:" >&5
29997 sed 's/^/| /' conftest.$ac_ext >&5
29999 ac_header_preproc=no
30002 rm -f conftest.err conftest.$ac_ext
30003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30004 echo "${ECHO_T}$ac_header_preproc" >&6; }
30006 # So? What about this header?
30007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30008 yes:no: )
30009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30013 ac_header_preproc=yes
30015 no:yes:* )
30016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30028 ( cat <<\_ASBOX
30029 ## ----------------------------------- ##
30030 ## Report this to llvmbugs@cs.uiuc.edu ##
30031 ## ----------------------------------- ##
30032 _ASBOX
30033 ) | sed "s/^/$as_me: WARNING: /" >&2
30035 esac
30036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30039 echo $ECHO_N "(cached) $ECHO_C" >&6
30040 else
30041 eval "$as_ac_Header=\$ac_header_preproc"
30043 ac_res=`eval echo '${'$as_ac_Header'}'`
30044 { echo "$as_me:$LINENO: result: $ac_res" >&5
30045 echo "${ECHO_T}$ac_res" >&6; }
30048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30049 cat >>confdefs.h <<_ACEOF
30050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30051 _ACEOF
30055 done
30063 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30072 ac_res=`eval echo '${'$as_ac_Header'}'`
30073 { echo "$as_me:$LINENO: result: $ac_res" >&5
30074 echo "${ECHO_T}$ac_res" >&6; }
30075 else
30076 # Is the header compilable?
30077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 #include <$ac_header>
30087 _ACEOF
30088 rm -f conftest.$ac_objext
30089 if { (ac_try="$ac_compile"
30090 case "(($ac_try" in
30091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30092 *) ac_try_echo=$ac_try;;
30093 esac
30094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095 (eval "$ac_compile") 2>conftest.er1
30096 ac_status=$?
30097 grep -v '^ *+' conftest.er1 >conftest.err
30098 rm -f conftest.er1
30099 cat conftest.err >&5
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); } &&
30102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30103 { (case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30106 esac
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_try") 2>&5
30109 ac_status=$?
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; } &&
30112 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30122 ac_header_compiler=yes
30123 else
30124 echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30127 ac_header_compiler=no
30130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30132 echo "${ECHO_T}$ac_header_compiler" >&6; }
30134 # Is the header present?
30135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30137 cat >conftest.$ac_ext <<_ACEOF
30138 /* confdefs.h. */
30139 _ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h. */
30143 #include <$ac_header>
30144 _ACEOF
30145 if { (ac_try="$ac_cpp conftest.$ac_ext"
30146 case "(($ac_try" in
30147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30148 *) ac_try_echo=$ac_try;;
30149 esac
30150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30152 ac_status=$?
30153 grep -v '^ *+' conftest.er1 >conftest.err
30154 rm -f conftest.er1
30155 cat conftest.err >&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); } >/dev/null; then
30158 if test -s conftest.err; then
30159 ac_cpp_err=$ac_c_preproc_warn_flag
30160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30161 else
30162 ac_cpp_err=
30164 else
30165 ac_cpp_err=yes
30167 if test -z "$ac_cpp_err"; then
30168 ac_header_preproc=yes
30169 else
30170 echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30173 ac_header_preproc=no
30176 rm -f conftest.err conftest.$ac_ext
30177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30178 echo "${ECHO_T}$ac_header_preproc" >&6; }
30180 # So? What about this header?
30181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30182 yes:no: )
30183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30187 ac_header_preproc=yes
30189 no:yes:* )
30190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30202 ( cat <<\_ASBOX
30203 ## ----------------------------------- ##
30204 ## Report this to llvmbugs@cs.uiuc.edu ##
30205 ## ----------------------------------- ##
30206 _ASBOX
30207 ) | sed "s/^/$as_me: WARNING: /" >&2
30209 esac
30210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30214 else
30215 eval "$as_ac_Header=\$ac_header_preproc"
30217 ac_res=`eval echo '${'$as_ac_Header'}'`
30218 { echo "$as_me:$LINENO: result: $ac_res" >&5
30219 echo "${ECHO_T}$ac_res" >&6; }
30222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30223 cat >>confdefs.h <<_ACEOF
30224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30225 _ACEOF
30229 done
30233 for ac_header in utime.h windows.h
30235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30242 ac_res=`eval echo '${'$as_ac_Header'}'`
30243 { echo "$as_me:$LINENO: result: $ac_res" >&5
30244 echo "${ECHO_T}$ac_res" >&6; }
30245 else
30246 # Is the header compilable?
30247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30249 cat >conftest.$ac_ext <<_ACEOF
30250 /* confdefs.h. */
30251 _ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h. */
30255 $ac_includes_default
30256 #include <$ac_header>
30257 _ACEOF
30258 rm -f conftest.$ac_objext
30259 if { (ac_try="$ac_compile"
30260 case "(($ac_try" in
30261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30262 *) ac_try_echo=$ac_try;;
30263 esac
30264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30265 (eval "$ac_compile") 2>conftest.er1
30266 ac_status=$?
30267 grep -v '^ *+' conftest.er1 >conftest.err
30268 rm -f conftest.er1
30269 cat conftest.err >&5
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } &&
30272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30273 { (case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_try") 2>&5
30279 ac_status=$?
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; } &&
30282 { ac_try='test -s conftest.$ac_objext'
30283 { (case "(($ac_try" in
30284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285 *) ac_try_echo=$ac_try;;
30286 esac
30287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288 (eval "$ac_try") 2>&5
30289 ac_status=$?
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; }; then
30292 ac_header_compiler=yes
30293 else
30294 echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30297 ac_header_compiler=no
30300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30302 echo "${ECHO_T}$ac_header_compiler" >&6; }
30304 # Is the header present?
30305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30307 cat >conftest.$ac_ext <<_ACEOF
30308 /* confdefs.h. */
30309 _ACEOF
30310 cat confdefs.h >>conftest.$ac_ext
30311 cat >>conftest.$ac_ext <<_ACEOF
30312 /* end confdefs.h. */
30313 #include <$ac_header>
30314 _ACEOF
30315 if { (ac_try="$ac_cpp conftest.$ac_ext"
30316 case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30319 esac
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30322 ac_status=$?
30323 grep -v '^ *+' conftest.er1 >conftest.err
30324 rm -f conftest.er1
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } >/dev/null; then
30328 if test -s conftest.err; then
30329 ac_cpp_err=$ac_c_preproc_warn_flag
30330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30331 else
30332 ac_cpp_err=
30334 else
30335 ac_cpp_err=yes
30337 if test -z "$ac_cpp_err"; then
30338 ac_header_preproc=yes
30339 else
30340 echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30343 ac_header_preproc=no
30346 rm -f conftest.err conftest.$ac_ext
30347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30348 echo "${ECHO_T}$ac_header_preproc" >&6; }
30350 # So? What about this header?
30351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30352 yes:no: )
30353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30357 ac_header_preproc=yes
30359 no:yes:* )
30360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30372 ( cat <<\_ASBOX
30373 ## ----------------------------------- ##
30374 ## Report this to llvmbugs@cs.uiuc.edu ##
30375 ## ----------------------------------- ##
30376 _ASBOX
30377 ) | sed "s/^/$as_me: WARNING: /" >&2
30379 esac
30380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30383 echo $ECHO_N "(cached) $ECHO_C" >&6
30384 else
30385 eval "$as_ac_Header=\$ac_header_preproc"
30387 ac_res=`eval echo '${'$as_ac_Header'}'`
30388 { echo "$as_me:$LINENO: result: $ac_res" >&5
30389 echo "${ECHO_T}$ac_res" >&6; }
30392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30393 cat >>confdefs.h <<_ACEOF
30394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30395 _ACEOF
30399 done
30405 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30412 echo $ECHO_N "(cached) $ECHO_C" >&6
30414 ac_res=`eval echo '${'$as_ac_Header'}'`
30415 { echo "$as_me:$LINENO: result: $ac_res" >&5
30416 echo "${ECHO_T}$ac_res" >&6; }
30417 else
30418 # Is the header compilable?
30419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30421 cat >conftest.$ac_ext <<_ACEOF
30422 /* confdefs.h. */
30423 _ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h. */
30427 $ac_includes_default
30428 #include <$ac_header>
30429 _ACEOF
30430 rm -f conftest.$ac_objext
30431 if { (ac_try="$ac_compile"
30432 case "(($ac_try" in
30433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434 *) ac_try_echo=$ac_try;;
30435 esac
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_compile") 2>conftest.er1
30438 ac_status=$?
30439 grep -v '^ *+' conftest.er1 >conftest.err
30440 rm -f conftest.er1
30441 cat conftest.err >&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } &&
30444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30445 { (case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30448 esac
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_try") 2>&5
30451 ac_status=$?
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); }; } &&
30454 { ac_try='test -s conftest.$ac_objext'
30455 { (case "(($ac_try" in
30456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30457 *) ac_try_echo=$ac_try;;
30458 esac
30459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30460 (eval "$ac_try") 2>&5
30461 ac_status=$?
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); }; }; then
30464 ac_header_compiler=yes
30465 else
30466 echo "$as_me: failed program was:" >&5
30467 sed 's/^/| /' conftest.$ac_ext >&5
30469 ac_header_compiler=no
30472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30474 echo "${ECHO_T}$ac_header_compiler" >&6; }
30476 # Is the header present?
30477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30479 cat >conftest.$ac_ext <<_ACEOF
30480 /* confdefs.h. */
30481 _ACEOF
30482 cat confdefs.h >>conftest.$ac_ext
30483 cat >>conftest.$ac_ext <<_ACEOF
30484 /* end confdefs.h. */
30485 #include <$ac_header>
30486 _ACEOF
30487 if { (ac_try="$ac_cpp conftest.$ac_ext"
30488 case "(($ac_try" in
30489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30491 esac
30492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30494 ac_status=$?
30495 grep -v '^ *+' conftest.er1 >conftest.err
30496 rm -f conftest.er1
30497 cat conftest.err >&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); } >/dev/null; then
30500 if test -s conftest.err; then
30501 ac_cpp_err=$ac_c_preproc_warn_flag
30502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30503 else
30504 ac_cpp_err=
30506 else
30507 ac_cpp_err=yes
30509 if test -z "$ac_cpp_err"; then
30510 ac_header_preproc=yes
30511 else
30512 echo "$as_me: failed program was:" >&5
30513 sed 's/^/| /' conftest.$ac_ext >&5
30515 ac_header_preproc=no
30518 rm -f conftest.err conftest.$ac_ext
30519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30520 echo "${ECHO_T}$ac_header_preproc" >&6; }
30522 # So? What about this header?
30523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30524 yes:no: )
30525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30529 ac_header_preproc=yes
30531 no:yes:* )
30532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30544 ( cat <<\_ASBOX
30545 ## ----------------------------------- ##
30546 ## Report this to llvmbugs@cs.uiuc.edu ##
30547 ## ----------------------------------- ##
30548 _ASBOX
30549 ) | sed "s/^/$as_me: WARNING: /" >&2
30551 esac
30552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30556 else
30557 eval "$as_ac_Header=\$ac_header_preproc"
30559 ac_res=`eval echo '${'$as_ac_Header'}'`
30560 { echo "$as_me:$LINENO: result: $ac_res" >&5
30561 echo "${ECHO_T}$ac_res" >&6; }
30564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30565 cat >>confdefs.h <<_ACEOF
30566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30567 _ACEOF
30571 done
30577 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30584 echo $ECHO_N "(cached) $ECHO_C" >&6
30586 ac_res=`eval echo '${'$as_ac_Header'}'`
30587 { echo "$as_me:$LINENO: result: $ac_res" >&5
30588 echo "${ECHO_T}$ac_res" >&6; }
30589 else
30590 # Is the header compilable?
30591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30593 cat >conftest.$ac_ext <<_ACEOF
30594 /* confdefs.h. */
30595 _ACEOF
30596 cat confdefs.h >>conftest.$ac_ext
30597 cat >>conftest.$ac_ext <<_ACEOF
30598 /* end confdefs.h. */
30599 $ac_includes_default
30600 #include <$ac_header>
30601 _ACEOF
30602 rm -f conftest.$ac_objext
30603 if { (ac_try="$ac_compile"
30604 case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30607 esac
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_compile") 2>conftest.er1
30610 ac_status=$?
30611 grep -v '^ *+' conftest.er1 >conftest.err
30612 rm -f conftest.er1
30613 cat conftest.err >&5
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); } &&
30616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30617 { (case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30620 esac
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_try") 2>&5
30623 ac_status=$?
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); }; } &&
30626 { ac_try='test -s conftest.$ac_objext'
30627 { (case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30630 esac
30631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_try") 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 ac_header_compiler=yes
30637 else
30638 echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30641 ac_header_compiler=no
30644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30646 echo "${ECHO_T}$ac_header_compiler" >&6; }
30648 # Is the header present?
30649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30651 cat >conftest.$ac_ext <<_ACEOF
30652 /* confdefs.h. */
30653 _ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h. */
30657 #include <$ac_header>
30658 _ACEOF
30659 if { (ac_try="$ac_cpp conftest.$ac_ext"
30660 case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30663 esac
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30666 ac_status=$?
30667 grep -v '^ *+' conftest.er1 >conftest.err
30668 rm -f conftest.er1
30669 cat conftest.err >&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } >/dev/null; then
30672 if test -s conftest.err; then
30673 ac_cpp_err=$ac_c_preproc_warn_flag
30674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30675 else
30676 ac_cpp_err=
30678 else
30679 ac_cpp_err=yes
30681 if test -z "$ac_cpp_err"; then
30682 ac_header_preproc=yes
30683 else
30684 echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30687 ac_header_preproc=no
30690 rm -f conftest.err conftest.$ac_ext
30691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30692 echo "${ECHO_T}$ac_header_preproc" >&6; }
30694 # So? What about this header?
30695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30696 yes:no: )
30697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30701 ac_header_preproc=yes
30703 no:yes:* )
30704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30716 ( cat <<\_ASBOX
30717 ## ----------------------------------- ##
30718 ## Report this to llvmbugs@cs.uiuc.edu ##
30719 ## ----------------------------------- ##
30720 _ASBOX
30721 ) | sed "s/^/$as_me: WARNING: /" >&2
30723 esac
30724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30727 echo $ECHO_N "(cached) $ECHO_C" >&6
30728 else
30729 eval "$as_ac_Header=\$ac_header_preproc"
30731 ac_res=`eval echo '${'$as_ac_Header'}'`
30732 { echo "$as_me:$LINENO: result: $ac_res" >&5
30733 echo "${ECHO_T}$ac_res" >&6; }
30736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30737 cat >>confdefs.h <<_ACEOF
30738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30739 _ACEOF
30743 done
30745 if test "$ENABLE_THREADS" -eq 1 ; then
30747 for ac_header in pthread.h
30749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30754 echo $ECHO_N "(cached) $ECHO_C" >&6
30756 ac_res=`eval echo '${'$as_ac_Header'}'`
30757 { echo "$as_me:$LINENO: result: $ac_res" >&5
30758 echo "${ECHO_T}$ac_res" >&6; }
30759 else
30760 # Is the header compilable?
30761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30763 cat >conftest.$ac_ext <<_ACEOF
30764 /* confdefs.h. */
30765 _ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h. */
30769 $ac_includes_default
30770 #include <$ac_header>
30771 _ACEOF
30772 rm -f conftest.$ac_objext
30773 if { (ac_try="$ac_compile"
30774 case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30777 esac
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_compile") 2>conftest.er1
30780 ac_status=$?
30781 grep -v '^ *+' conftest.er1 >conftest.err
30782 rm -f conftest.er1
30783 cat conftest.err >&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } &&
30786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30787 { (case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30790 esac
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_try") 2>&5
30793 ac_status=$?
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; } &&
30796 { ac_try='test -s conftest.$ac_objext'
30797 { (case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30800 esac
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_try") 2>&5
30803 ac_status=$?
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); }; }; then
30806 ac_header_compiler=yes
30807 else
30808 echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.$ac_ext >&5
30811 ac_header_compiler=no
30814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30816 echo "${ECHO_T}$ac_header_compiler" >&6; }
30818 # Is the header present?
30819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30821 cat >conftest.$ac_ext <<_ACEOF
30822 /* confdefs.h. */
30823 _ACEOF
30824 cat confdefs.h >>conftest.$ac_ext
30825 cat >>conftest.$ac_ext <<_ACEOF
30826 /* end confdefs.h. */
30827 #include <$ac_header>
30828 _ACEOF
30829 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
30836 ac_status=$?
30837 grep -v '^ *+' conftest.er1 >conftest.err
30838 rm -f conftest.er1
30839 cat conftest.err >&5
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); } >/dev/null; then
30842 if test -s conftest.err; then
30843 ac_cpp_err=$ac_c_preproc_warn_flag
30844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30845 else
30846 ac_cpp_err=
30848 else
30849 ac_cpp_err=yes
30851 if test -z "$ac_cpp_err"; then
30852 ac_header_preproc=yes
30853 else
30854 echo "$as_me: failed program was:" >&5
30855 sed 's/^/| /' conftest.$ac_ext >&5
30857 ac_header_preproc=no
30860 rm -f conftest.err conftest.$ac_ext
30861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30862 echo "${ECHO_T}$ac_header_preproc" >&6; }
30864 # So? What about this header?
30865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30866 yes:no: )
30867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30871 ac_header_preproc=yes
30873 no:yes:* )
30874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30886 ( cat <<\_ASBOX
30887 ## ----------------------------------- ##
30888 ## Report this to llvmbugs@cs.uiuc.edu ##
30889 ## ----------------------------------- ##
30890 _ASBOX
30891 ) | sed "s/^/$as_me: WARNING: /" >&2
30893 esac
30894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30897 echo $ECHO_N "(cached) $ECHO_C" >&6
30898 else
30899 eval "$as_ac_Header=\$ac_header_preproc"
30901 ac_res=`eval echo '${'$as_ac_Header'}'`
30902 { echo "$as_me:$LINENO: result: $ac_res" >&5
30903 echo "${ECHO_T}$ac_res" >&6; }
30906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30907 cat >>confdefs.h <<_ACEOF
30908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30909 _ACEOF
30910 HAVE_PTHREAD=1
30912 else
30913 HAVE_PTHREAD=0
30917 done
30919 else
30920 HAVE_PTHREAD=0
30924 if test "$llvm_cv_enable_libffi" = "yes" ; then
30927 for ac_header in ffi.h ffi/ffi.h
30929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30934 echo $ECHO_N "(cached) $ECHO_C" >&6
30936 ac_res=`eval echo '${'$as_ac_Header'}'`
30937 { echo "$as_me:$LINENO: result: $ac_res" >&5
30938 echo "${ECHO_T}$ac_res" >&6; }
30939 else
30940 # Is the header compilable?
30941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30943 cat >conftest.$ac_ext <<_ACEOF
30944 /* confdefs.h. */
30945 _ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h. */
30949 $ac_includes_default
30950 #include <$ac_header>
30951 _ACEOF
30952 rm -f conftest.$ac_objext
30953 if { (ac_try="$ac_compile"
30954 case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30957 esac
30958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959 (eval "$ac_compile") 2>conftest.er1
30960 ac_status=$?
30961 grep -v '^ *+' conftest.er1 >conftest.err
30962 rm -f conftest.er1
30963 cat conftest.err >&5
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); } &&
30966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30967 { (case "(($ac_try" in
30968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30969 *) ac_try_echo=$ac_try;;
30970 esac
30971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30972 (eval "$ac_try") 2>&5
30973 ac_status=$?
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; } &&
30976 { ac_try='test -s conftest.$ac_objext'
30977 { (case "(($ac_try" in
30978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30979 *) ac_try_echo=$ac_try;;
30980 esac
30981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30982 (eval "$ac_try") 2>&5
30983 ac_status=$?
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); }; }; then
30986 ac_header_compiler=yes
30987 else
30988 echo "$as_me: failed program was:" >&5
30989 sed 's/^/| /' conftest.$ac_ext >&5
30991 ac_header_compiler=no
30994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30996 echo "${ECHO_T}$ac_header_compiler" >&6; }
30998 # Is the header present?
30999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31001 cat >conftest.$ac_ext <<_ACEOF
31002 /* confdefs.h. */
31003 _ACEOF
31004 cat confdefs.h >>conftest.$ac_ext
31005 cat >>conftest.$ac_ext <<_ACEOF
31006 /* end confdefs.h. */
31007 #include <$ac_header>
31008 _ACEOF
31009 if { (ac_try="$ac_cpp conftest.$ac_ext"
31010 case "(($ac_try" in
31011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31012 *) ac_try_echo=$ac_try;;
31013 esac
31014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31016 ac_status=$?
31017 grep -v '^ *+' conftest.er1 >conftest.err
31018 rm -f conftest.er1
31019 cat conftest.err >&5
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); } >/dev/null; then
31022 if test -s conftest.err; then
31023 ac_cpp_err=$ac_c_preproc_warn_flag
31024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31025 else
31026 ac_cpp_err=
31028 else
31029 ac_cpp_err=yes
31031 if test -z "$ac_cpp_err"; then
31032 ac_header_preproc=yes
31033 else
31034 echo "$as_me: failed program was:" >&5
31035 sed 's/^/| /' conftest.$ac_ext >&5
31037 ac_header_preproc=no
31040 rm -f conftest.err conftest.$ac_ext
31041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31042 echo "${ECHO_T}$ac_header_preproc" >&6; }
31044 # So? What about this header?
31045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31046 yes:no: )
31047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31051 ac_header_preproc=yes
31053 no:yes:* )
31054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31066 ( cat <<\_ASBOX
31067 ## ----------------------------------- ##
31068 ## Report this to llvmbugs@cs.uiuc.edu ##
31069 ## ----------------------------------- ##
31070 _ASBOX
31071 ) | sed "s/^/$as_me: WARNING: /" >&2
31073 esac
31074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31077 echo $ECHO_N "(cached) $ECHO_C" >&6
31078 else
31079 eval "$as_ac_Header=\$ac_header_preproc"
31081 ac_res=`eval echo '${'$as_ac_Header'}'`
31082 { echo "$as_me:$LINENO: result: $ac_res" >&5
31083 echo "${ECHO_T}$ac_res" >&6; }
31086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31087 cat >>confdefs.h <<_ACEOF
31088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31089 _ACEOF
31093 done
31099 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31100 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31101 if test "${ac_cv_huge_val_sanity+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31103 else
31105 ac_ext=cpp
31106 ac_cpp='$CXXCPP $CPPFLAGS'
31107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31111 CXXFLAGS=-pedantic
31112 if test "$cross_compiling" = yes; then
31113 ac_cv_huge_val_sanity=yes
31114 else
31115 cat >conftest.$ac_ext <<_ACEOF
31116 /* confdefs.h. */
31117 _ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h. */
31121 #include <math.h>
31123 main ()
31125 double x = HUGE_VAL; return x != x;
31127 return 0;
31129 _ACEOF
31130 rm -f conftest$ac_exeext
31131 if { (ac_try="$ac_link"
31132 case "(($ac_try" in
31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31135 esac
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_link") 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31141 { (case "(($ac_try" in
31142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143 *) ac_try_echo=$ac_try;;
31144 esac
31145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146 (eval "$ac_try") 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; }; then
31150 ac_cv_huge_val_sanity=yes
31151 else
31152 echo "$as_me: program exited with status $ac_status" >&5
31153 echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31156 ( exit $ac_status )
31157 ac_cv_huge_val_sanity=no
31159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31163 ac_ext=c
31164 ac_cpp='$CPP $CPPFLAGS'
31165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31171 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31172 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31173 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31176 { echo "$as_me:$LINENO: checking for pid_t" >&5
31177 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31178 if test "${ac_cv_type_pid_t+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31180 else
31181 cat >conftest.$ac_ext <<_ACEOF
31182 /* confdefs.h. */
31183 _ACEOF
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h. */
31187 $ac_includes_default
31188 typedef pid_t ac__type_new_;
31190 main ()
31192 if ((ac__type_new_ *) 0)
31193 return 0;
31194 if (sizeof (ac__type_new_))
31195 return 0;
31197 return 0;
31199 _ACEOF
31200 rm -f conftest.$ac_objext
31201 if { (ac_try="$ac_compile"
31202 case "(($ac_try" in
31203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31204 *) ac_try_echo=$ac_try;;
31205 esac
31206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31207 (eval "$ac_compile") 2>conftest.er1
31208 ac_status=$?
31209 grep -v '^ *+' conftest.er1 >conftest.err
31210 rm -f conftest.er1
31211 cat conftest.err >&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); } &&
31214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31215 { (case "(($ac_try" in
31216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217 *) ac_try_echo=$ac_try;;
31218 esac
31219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220 (eval "$ac_try") 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest.$ac_objext'
31225 { (case "(($ac_try" in
31226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227 *) ac_try_echo=$ac_try;;
31228 esac
31229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_try") 2>&5
31231 ac_status=$?
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
31234 ac_cv_type_pid_t=yes
31235 else
31236 echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.$ac_ext >&5
31239 ac_cv_type_pid_t=no
31242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31244 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31245 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31246 if test $ac_cv_type_pid_t = yes; then
31248 else
31250 cat >>confdefs.h <<_ACEOF
31251 #define pid_t int
31252 _ACEOF
31256 { echo "$as_me:$LINENO: checking for size_t" >&5
31257 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31258 if test "${ac_cv_type_size_t+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260 else
31261 cat >conftest.$ac_ext <<_ACEOF
31262 /* confdefs.h. */
31263 _ACEOF
31264 cat confdefs.h >>conftest.$ac_ext
31265 cat >>conftest.$ac_ext <<_ACEOF
31266 /* end confdefs.h. */
31267 $ac_includes_default
31268 typedef size_t ac__type_new_;
31270 main ()
31272 if ((ac__type_new_ *) 0)
31273 return 0;
31274 if (sizeof (ac__type_new_))
31275 return 0;
31277 return 0;
31279 _ACEOF
31280 rm -f conftest.$ac_objext
31281 if { (ac_try="$ac_compile"
31282 case "(($ac_try" in
31283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31284 *) ac_try_echo=$ac_try;;
31285 esac
31286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287 (eval "$ac_compile") 2>conftest.er1
31288 ac_status=$?
31289 grep -v '^ *+' conftest.er1 >conftest.err
31290 rm -f conftest.er1
31291 cat conftest.err >&5
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); } &&
31294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31295 { (case "(($ac_try" in
31296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297 *) ac_try_echo=$ac_try;;
31298 esac
31299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300 (eval "$ac_try") 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; } &&
31304 { ac_try='test -s conftest.$ac_objext'
31305 { (case "(($ac_try" in
31306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307 *) ac_try_echo=$ac_try;;
31308 esac
31309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310 (eval "$ac_try") 2>&5
31311 ac_status=$?
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; }; then
31314 ac_cv_type_size_t=yes
31315 else
31316 echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31319 ac_cv_type_size_t=no
31322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31324 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31325 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31326 if test $ac_cv_type_size_t = yes; then
31328 else
31330 cat >>confdefs.h <<_ACEOF
31331 #define size_t unsigned int
31332 _ACEOF
31336 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31337 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31338 if test "${ac_cv_type_signal+set}" = set; then
31339 echo $ECHO_N "(cached) $ECHO_C" >&6
31340 else
31341 cat >conftest.$ac_ext <<_ACEOF
31342 /* confdefs.h. */
31343 _ACEOF
31344 cat confdefs.h >>conftest.$ac_ext
31345 cat >>conftest.$ac_ext <<_ACEOF
31346 /* end confdefs.h. */
31347 #include <sys/types.h>
31348 #include <signal.h>
31351 main ()
31353 return *(signal (0, 0)) (0) == 1;
31355 return 0;
31357 _ACEOF
31358 rm -f conftest.$ac_objext
31359 if { (ac_try="$ac_compile"
31360 case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31363 esac
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_compile") 2>conftest.er1
31366 ac_status=$?
31367 grep -v '^ *+' conftest.er1 >conftest.err
31368 rm -f conftest.er1
31369 cat conftest.err >&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); } &&
31372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31373 { (case "(($ac_try" in
31374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375 *) ac_try_echo=$ac_try;;
31376 esac
31377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378 (eval "$ac_try") 2>&5
31379 ac_status=$?
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); }; } &&
31382 { ac_try='test -s conftest.$ac_objext'
31383 { (case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31386 esac
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_try") 2>&5
31389 ac_status=$?
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; }; then
31392 ac_cv_type_signal=int
31393 else
31394 echo "$as_me: failed program was:" >&5
31395 sed 's/^/| /' conftest.$ac_ext >&5
31397 ac_cv_type_signal=void
31400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31402 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31403 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31405 cat >>confdefs.h <<_ACEOF
31406 #define RETSIGTYPE $ac_cv_type_signal
31407 _ACEOF
31410 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31411 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31412 if test "${ac_cv_struct_tm+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31414 else
31415 cat >conftest.$ac_ext <<_ACEOF
31416 /* confdefs.h. */
31417 _ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h. */
31421 #include <sys/types.h>
31422 #include <time.h>
31425 main ()
31427 struct tm *tp; tp->tm_sec;
31429 return 0;
31431 _ACEOF
31432 rm -f conftest.$ac_objext
31433 if { (ac_try="$ac_compile"
31434 case "(($ac_try" in
31435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31436 *) ac_try_echo=$ac_try;;
31437 esac
31438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31439 (eval "$ac_compile") 2>conftest.er1
31440 ac_status=$?
31441 grep -v '^ *+' conftest.er1 >conftest.err
31442 rm -f conftest.er1
31443 cat conftest.err >&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); } &&
31446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31447 { (case "(($ac_try" in
31448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449 *) ac_try_echo=$ac_try;;
31450 esac
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_try") 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; } &&
31456 { ac_try='test -s conftest.$ac_objext'
31457 { (case "(($ac_try" in
31458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31459 *) ac_try_echo=$ac_try;;
31460 esac
31461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31462 (eval "$ac_try") 2>&5
31463 ac_status=$?
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); }; }; then
31466 ac_cv_struct_tm=time.h
31467 else
31468 echo "$as_me: failed program was:" >&5
31469 sed 's/^/| /' conftest.$ac_ext >&5
31471 ac_cv_struct_tm=sys/time.h
31474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31476 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31477 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31478 if test $ac_cv_struct_tm = sys/time.h; then
31480 cat >>confdefs.h <<\_ACEOF
31481 #define TM_IN_SYS_TIME 1
31482 _ACEOF
31486 { echo "$as_me:$LINENO: checking for int64_t" >&5
31487 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31488 if test "${ac_cv_type_int64_t+set}" = set; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31490 else
31491 cat >conftest.$ac_ext <<_ACEOF
31492 /* confdefs.h. */
31493 _ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31497 $ac_includes_default
31498 typedef int64_t ac__type_new_;
31500 main ()
31502 if ((ac__type_new_ *) 0)
31503 return 0;
31504 if (sizeof (ac__type_new_))
31505 return 0;
31507 return 0;
31509 _ACEOF
31510 rm -f conftest.$ac_objext
31511 if { (ac_try="$ac_compile"
31512 case "(($ac_try" in
31513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31515 esac
31516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_compile") 2>conftest.er1
31518 ac_status=$?
31519 grep -v '^ *+' conftest.er1 >conftest.err
31520 rm -f conftest.er1
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } &&
31524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31525 { (case "(($ac_try" in
31526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31527 *) ac_try_echo=$ac_try;;
31528 esac
31529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31530 (eval "$ac_try") 2>&5
31531 ac_status=$?
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; } &&
31534 { ac_try='test -s conftest.$ac_objext'
31535 { (case "(($ac_try" in
31536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31538 esac
31539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31540 (eval "$ac_try") 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
31544 ac_cv_type_int64_t=yes
31545 else
31546 echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.$ac_ext >&5
31549 ac_cv_type_int64_t=no
31552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31555 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31556 if test $ac_cv_type_int64_t = yes; then
31558 cat >>confdefs.h <<_ACEOF
31559 #define HAVE_INT64_T 1
31560 _ACEOF
31563 else
31564 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31565 echo "$as_me: error: Type int64_t required but not found" >&2;}
31566 { (exit 1); exit 1; }; }
31569 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31570 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31571 if test "${ac_cv_type_uint64_t+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31573 else
31574 cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h. */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31580 $ac_includes_default
31581 typedef uint64_t ac__type_new_;
31583 main ()
31585 if ((ac__type_new_ *) 0)
31586 return 0;
31587 if (sizeof (ac__type_new_))
31588 return 0;
31590 return 0;
31592 _ACEOF
31593 rm -f conftest.$ac_objext
31594 if { (ac_try="$ac_compile"
31595 case "(($ac_try" in
31596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31598 esac
31599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_compile") 2>conftest.er1
31601 ac_status=$?
31602 grep -v '^ *+' conftest.er1 >conftest.err
31603 rm -f conftest.er1
31604 cat conftest.err >&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } &&
31607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31608 { (case "(($ac_try" in
31609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610 *) ac_try_echo=$ac_try;;
31611 esac
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_try") 2>&5
31614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; } &&
31617 { ac_try='test -s conftest.$ac_objext'
31618 { (case "(($ac_try" in
31619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31621 esac
31622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_try") 2>&5
31624 ac_status=$?
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; }; then
31627 ac_cv_type_uint64_t=yes
31628 else
31629 echo "$as_me: failed program was:" >&5
31630 sed 's/^/| /' conftest.$ac_ext >&5
31632 ac_cv_type_uint64_t=no
31635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31637 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31638 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31639 if test $ac_cv_type_uint64_t = yes; then
31641 cat >>confdefs.h <<_ACEOF
31642 #define HAVE_UINT64_T 1
31643 _ACEOF
31646 else
31647 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31648 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31649 if test "${ac_cv_type_u_int64_t+set}" = set; then
31650 echo $ECHO_N "(cached) $ECHO_C" >&6
31651 else
31652 cat >conftest.$ac_ext <<_ACEOF
31653 /* confdefs.h. */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h. */
31658 $ac_includes_default
31659 typedef u_int64_t ac__type_new_;
31661 main ()
31663 if ((ac__type_new_ *) 0)
31664 return 0;
31665 if (sizeof (ac__type_new_))
31666 return 0;
31668 return 0;
31670 _ACEOF
31671 rm -f conftest.$ac_objext
31672 if { (ac_try="$ac_compile"
31673 case "(($ac_try" in
31674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31675 *) ac_try_echo=$ac_try;;
31676 esac
31677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31678 (eval "$ac_compile") 2>conftest.er1
31679 ac_status=$?
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } &&
31685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31686 { (case "(($ac_try" in
31687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31688 *) ac_try_echo=$ac_try;;
31689 esac
31690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31691 (eval "$ac_try") 2>&5
31692 ac_status=$?
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); }; } &&
31695 { ac_try='test -s conftest.$ac_objext'
31696 { (case "(($ac_try" in
31697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31698 *) ac_try_echo=$ac_try;;
31699 esac
31700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31701 (eval "$ac_try") 2>&5
31702 ac_status=$?
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; }; then
31705 ac_cv_type_u_int64_t=yes
31706 else
31707 echo "$as_me: failed program was:" >&5
31708 sed 's/^/| /' conftest.$ac_ext >&5
31710 ac_cv_type_u_int64_t=no
31713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31715 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31716 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31717 if test $ac_cv_type_u_int64_t = yes; then
31719 cat >>confdefs.h <<_ACEOF
31720 #define HAVE_U_INT64_T 1
31721 _ACEOF
31724 else
31725 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31726 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31727 { (exit 1); exit 1; }; }
31741 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31747 echo $ECHO_N "(cached) $ECHO_C" >&6
31748 else
31749 cat >conftest.$ac_ext <<_ACEOF
31750 /* confdefs.h. */
31751 _ACEOF
31752 cat confdefs.h >>conftest.$ac_ext
31753 cat >>conftest.$ac_ext <<_ACEOF
31754 /* end confdefs.h. */
31755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31757 #define $ac_func innocuous_$ac_func
31759 /* System header to define __stub macros and hopefully few prototypes,
31760 which can conflict with char $ac_func (); below.
31761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31762 <limits.h> exists even on freestanding compilers. */
31764 #ifdef __STDC__
31765 # include <limits.h>
31766 #else
31767 # include <assert.h>
31768 #endif
31770 #undef $ac_func
31772 /* Override any GCC internal prototype to avoid an error.
31773 Use char because int might match the return type of a GCC
31774 builtin and then its argument prototype would still apply. */
31775 #ifdef __cplusplus
31776 extern "C"
31777 #endif
31778 char $ac_func ();
31779 /* The GNU C library defines this for functions which it implements
31780 to always fail with ENOSYS. Some functions are actually named
31781 something starting with __ and the normal name is an alias. */
31782 #if defined __stub_$ac_func || defined __stub___$ac_func
31783 choke me
31784 #endif
31787 main ()
31789 return $ac_func ();
31791 return 0;
31793 _ACEOF
31794 rm -f conftest.$ac_objext conftest$ac_exeext
31795 if { (ac_try="$ac_link"
31796 case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31799 esac
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>conftest.er1
31802 ac_status=$?
31803 grep -v '^ *+' conftest.er1 >conftest.err
31804 rm -f conftest.er1
31805 cat conftest.err >&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); } &&
31808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31809 { (case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31812 esac
31813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
31815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; } &&
31818 { ac_try='test -s conftest$ac_exeext'
31819 { (case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31822 esac
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_try") 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
31828 eval "$as_ac_var=yes"
31829 else
31830 echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31833 eval "$as_ac_var=no"
31836 rm -f core conftest.err conftest.$ac_objext \
31837 conftest$ac_exeext conftest.$ac_ext
31839 ac_res=`eval echo '${'$as_ac_var'}'`
31840 { echo "$as_me:$LINENO: result: $ac_res" >&5
31841 echo "${ECHO_T}$ac_res" >&6; }
31842 if test `eval echo '${'$as_ac_var'}'` = yes; then
31843 cat >>confdefs.h <<_ACEOF
31844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31845 _ACEOF
31848 done
31854 for ac_func in powf fmodf strtof round
31856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31860 echo $ECHO_N "(cached) $ECHO_C" >&6
31861 else
31862 cat >conftest.$ac_ext <<_ACEOF
31863 /* confdefs.h. */
31864 _ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h. */
31868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31870 #define $ac_func innocuous_$ac_func
31872 /* System header to define __stub macros and hopefully few prototypes,
31873 which can conflict with char $ac_func (); below.
31874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31875 <limits.h> exists even on freestanding compilers. */
31877 #ifdef __STDC__
31878 # include <limits.h>
31879 #else
31880 # include <assert.h>
31881 #endif
31883 #undef $ac_func
31885 /* Override any GCC internal prototype to avoid an error.
31886 Use char because int might match the return type of a GCC
31887 builtin and then its argument prototype would still apply. */
31888 #ifdef __cplusplus
31889 extern "C"
31890 #endif
31891 char $ac_func ();
31892 /* The GNU C library defines this for functions which it implements
31893 to always fail with ENOSYS. Some functions are actually named
31894 something starting with __ and the normal name is an alias. */
31895 #if defined __stub_$ac_func || defined __stub___$ac_func
31896 choke me
31897 #endif
31900 main ()
31902 return $ac_func ();
31904 return 0;
31906 _ACEOF
31907 rm -f conftest.$ac_objext conftest$ac_exeext
31908 if { (ac_try="$ac_link"
31909 case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31912 esac
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_link") 2>conftest.er1
31915 ac_status=$?
31916 grep -v '^ *+' conftest.er1 >conftest.err
31917 rm -f conftest.er1
31918 cat conftest.err >&5
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); } &&
31921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31922 { (case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31925 esac
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_try") 2>&5
31928 ac_status=$?
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; } &&
31931 { ac_try='test -s conftest$ac_exeext'
31932 { (case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31935 esac
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_try") 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; }; then
31941 eval "$as_ac_var=yes"
31942 else
31943 echo "$as_me: failed program was:" >&5
31944 sed 's/^/| /' conftest.$ac_ext >&5
31946 eval "$as_ac_var=no"
31949 rm -f core conftest.err conftest.$ac_objext \
31950 conftest$ac_exeext conftest.$ac_ext
31952 ac_res=`eval echo '${'$as_ac_var'}'`
31953 { echo "$as_me:$LINENO: result: $ac_res" >&5
31954 echo "${ECHO_T}$ac_res" >&6; }
31955 if test `eval echo '${'$as_ac_var'}'` = yes; then
31956 cat >>confdefs.h <<_ACEOF
31957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31958 _ACEOF
31961 done
31968 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31974 echo $ECHO_N "(cached) $ECHO_C" >&6
31975 else
31976 cat >conftest.$ac_ext <<_ACEOF
31977 /* confdefs.h. */
31978 _ACEOF
31979 cat confdefs.h >>conftest.$ac_ext
31980 cat >>conftest.$ac_ext <<_ACEOF
31981 /* end confdefs.h. */
31982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31984 #define $ac_func innocuous_$ac_func
31986 /* System header to define __stub macros and hopefully few prototypes,
31987 which can conflict with char $ac_func (); below.
31988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31989 <limits.h> exists even on freestanding compilers. */
31991 #ifdef __STDC__
31992 # include <limits.h>
31993 #else
31994 # include <assert.h>
31995 #endif
31997 #undef $ac_func
31999 /* Override any GCC internal prototype to avoid an error.
32000 Use char because int might match the return type of a GCC
32001 builtin and then its argument prototype would still apply. */
32002 #ifdef __cplusplus
32003 extern "C"
32004 #endif
32005 char $ac_func ();
32006 /* The GNU C library defines this for functions which it implements
32007 to always fail with ENOSYS. Some functions are actually named
32008 something starting with __ and the normal name is an alias. */
32009 #if defined __stub_$ac_func || defined __stub___$ac_func
32010 choke me
32011 #endif
32014 main ()
32016 return $ac_func ();
32018 return 0;
32020 _ACEOF
32021 rm -f conftest.$ac_objext conftest$ac_exeext
32022 if { (ac_try="$ac_link"
32023 case "(($ac_try" in
32024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32025 *) ac_try_echo=$ac_try;;
32026 esac
32027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32028 (eval "$ac_link") 2>conftest.er1
32029 ac_status=$?
32030 grep -v '^ *+' conftest.er1 >conftest.err
32031 rm -f conftest.er1
32032 cat conftest.err >&5
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); } &&
32035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32036 { (case "(($ac_try" in
32037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32038 *) ac_try_echo=$ac_try;;
32039 esac
32040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32041 (eval "$ac_try") 2>&5
32042 ac_status=$?
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); }; } &&
32045 { ac_try='test -s conftest$ac_exeext'
32046 { (case "(($ac_try" in
32047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048 *) ac_try_echo=$ac_try;;
32049 esac
32050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051 (eval "$ac_try") 2>&5
32052 ac_status=$?
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); }; }; then
32055 eval "$as_ac_var=yes"
32056 else
32057 echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.$ac_ext >&5
32060 eval "$as_ac_var=no"
32063 rm -f core conftest.err conftest.$ac_objext \
32064 conftest$ac_exeext conftest.$ac_ext
32066 ac_res=`eval echo '${'$as_ac_var'}'`
32067 { echo "$as_me:$LINENO: result: $ac_res" >&5
32068 echo "${ECHO_T}$ac_res" >&6; }
32069 if test `eval echo '${'$as_ac_var'}'` = yes; then
32070 cat >>confdefs.h <<_ACEOF
32071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32072 _ACEOF
32075 done
32080 for ac_func in isatty mkdtemp mkstemp
32082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32086 echo $ECHO_N "(cached) $ECHO_C" >&6
32087 else
32088 cat >conftest.$ac_ext <<_ACEOF
32089 /* confdefs.h. */
32090 _ACEOF
32091 cat confdefs.h >>conftest.$ac_ext
32092 cat >>conftest.$ac_ext <<_ACEOF
32093 /* end confdefs.h. */
32094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32096 #define $ac_func innocuous_$ac_func
32098 /* System header to define __stub macros and hopefully few prototypes,
32099 which can conflict with char $ac_func (); below.
32100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32101 <limits.h> exists even on freestanding compilers. */
32103 #ifdef __STDC__
32104 # include <limits.h>
32105 #else
32106 # include <assert.h>
32107 #endif
32109 #undef $ac_func
32111 /* Override any GCC internal prototype to avoid an error.
32112 Use char because int might match the return type of a GCC
32113 builtin and then its argument prototype would still apply. */
32114 #ifdef __cplusplus
32115 extern "C"
32116 #endif
32117 char $ac_func ();
32118 /* The GNU C library defines this for functions which it implements
32119 to always fail with ENOSYS. Some functions are actually named
32120 something starting with __ and the normal name is an alias. */
32121 #if defined __stub_$ac_func || defined __stub___$ac_func
32122 choke me
32123 #endif
32126 main ()
32128 return $ac_func ();
32130 return 0;
32132 _ACEOF
32133 rm -f conftest.$ac_objext conftest$ac_exeext
32134 if { (ac_try="$ac_link"
32135 case "(($ac_try" in
32136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137 *) ac_try_echo=$ac_try;;
32138 esac
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140 (eval "$ac_link") 2>conftest.er1
32141 ac_status=$?
32142 grep -v '^ *+' conftest.er1 >conftest.err
32143 rm -f conftest.er1
32144 cat conftest.err >&5
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); } &&
32147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32148 { (case "(($ac_try" in
32149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32150 *) ac_try_echo=$ac_try;;
32151 esac
32152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32153 (eval "$ac_try") 2>&5
32154 ac_status=$?
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); }; } &&
32157 { ac_try='test -s conftest$ac_exeext'
32158 { (case "(($ac_try" in
32159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160 *) ac_try_echo=$ac_try;;
32161 esac
32162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163 (eval "$ac_try") 2>&5
32164 ac_status=$?
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; }; then
32167 eval "$as_ac_var=yes"
32168 else
32169 echo "$as_me: failed program was:" >&5
32170 sed 's/^/| /' conftest.$ac_ext >&5
32172 eval "$as_ac_var=no"
32175 rm -f core conftest.err conftest.$ac_objext \
32176 conftest$ac_exeext conftest.$ac_ext
32178 ac_res=`eval echo '${'$as_ac_var'}'`
32179 { echo "$as_me:$LINENO: result: $ac_res" >&5
32180 echo "${ECHO_T}$ac_res" >&6; }
32181 if test `eval echo '${'$as_ac_var'}'` = yes; then
32182 cat >>confdefs.h <<_ACEOF
32183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32184 _ACEOF
32187 done
32194 for ac_func in mktemp realpath sbrk setrlimit strdup
32196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32201 else
32202 cat >conftest.$ac_ext <<_ACEOF
32203 /* confdefs.h. */
32204 _ACEOF
32205 cat confdefs.h >>conftest.$ac_ext
32206 cat >>conftest.$ac_ext <<_ACEOF
32207 /* end confdefs.h. */
32208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32210 #define $ac_func innocuous_$ac_func
32212 /* System header to define __stub macros and hopefully few prototypes,
32213 which can conflict with char $ac_func (); below.
32214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32215 <limits.h> exists even on freestanding compilers. */
32217 #ifdef __STDC__
32218 # include <limits.h>
32219 #else
32220 # include <assert.h>
32221 #endif
32223 #undef $ac_func
32225 /* Override any GCC internal prototype to avoid an error.
32226 Use char because int might match the return type of a GCC
32227 builtin and then its argument prototype would still apply. */
32228 #ifdef __cplusplus
32229 extern "C"
32230 #endif
32231 char $ac_func ();
32232 /* The GNU C library defines this for functions which it implements
32233 to always fail with ENOSYS. Some functions are actually named
32234 something starting with __ and the normal name is an alias. */
32235 #if defined __stub_$ac_func || defined __stub___$ac_func
32236 choke me
32237 #endif
32240 main ()
32242 return $ac_func ();
32244 return 0;
32246 _ACEOF
32247 rm -f conftest.$ac_objext conftest$ac_exeext
32248 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
32255 ac_status=$?
32256 grep -v '^ *+' conftest.er1 >conftest.err
32257 rm -f conftest.er1
32258 cat conftest.err >&5
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); } &&
32261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32262 { (case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32265 esac
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_try") 2>&5
32268 ac_status=$?
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; } &&
32271 { ac_try='test -s conftest$ac_exeext'
32272 { (case "(($ac_try" in
32273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274 *) ac_try_echo=$ac_try;;
32275 esac
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277 (eval "$ac_try") 2>&5
32278 ac_status=$?
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; }; then
32281 eval "$as_ac_var=yes"
32282 else
32283 echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32286 eval "$as_ac_var=no"
32289 rm -f core conftest.err conftest.$ac_objext \
32290 conftest$ac_exeext conftest.$ac_ext
32292 ac_res=`eval echo '${'$as_ac_var'}'`
32293 { echo "$as_me:$LINENO: result: $ac_res" >&5
32294 echo "${ECHO_T}$ac_res" >&6; }
32295 if test `eval echo '${'$as_ac_var'}'` = yes; then
32296 cat >>confdefs.h <<_ACEOF
32297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32298 _ACEOF
32301 done
32306 for ac_func in strerror strerror_r strerror_s
32308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
32313 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32322 #define $ac_func innocuous_$ac_func
32324 /* System header to define __stub macros and hopefully few prototypes,
32325 which can conflict with char $ac_func (); below.
32326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32327 <limits.h> exists even on freestanding compilers. */
32329 #ifdef __STDC__
32330 # include <limits.h>
32331 #else
32332 # include <assert.h>
32333 #endif
32335 #undef $ac_func
32337 /* Override any GCC internal prototype to avoid an error.
32338 Use char because int might match the return type of a GCC
32339 builtin and then its argument prototype would still apply. */
32340 #ifdef __cplusplus
32341 extern "C"
32342 #endif
32343 char $ac_func ();
32344 /* The GNU C library defines this for functions which it implements
32345 to always fail with ENOSYS. Some functions are actually named
32346 something starting with __ and the normal name is an alias. */
32347 #if defined __stub_$ac_func || defined __stub___$ac_func
32348 choke me
32349 #endif
32352 main ()
32354 return $ac_func ();
32356 return 0;
32358 _ACEOF
32359 rm -f conftest.$ac_objext conftest$ac_exeext
32360 if { (ac_try="$ac_link"
32361 case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32364 esac
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_link") 2>conftest.er1
32367 ac_status=$?
32368 grep -v '^ *+' conftest.er1 >conftest.err
32369 rm -f conftest.er1
32370 cat conftest.err >&5
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } &&
32373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32374 { (case "(($ac_try" in
32375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32376 *) ac_try_echo=$ac_try;;
32377 esac
32378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32379 (eval "$ac_try") 2>&5
32380 ac_status=$?
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; } &&
32383 { ac_try='test -s conftest$ac_exeext'
32384 { (case "(($ac_try" in
32385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386 *) ac_try_echo=$ac_try;;
32387 esac
32388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389 (eval "$ac_try") 2>&5
32390 ac_status=$?
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); }; }; then
32393 eval "$as_ac_var=yes"
32394 else
32395 echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.$ac_ext >&5
32398 eval "$as_ac_var=no"
32401 rm -f core conftest.err conftest.$ac_objext \
32402 conftest$ac_exeext conftest.$ac_ext
32404 ac_res=`eval echo '${'$as_ac_var'}'`
32405 { echo "$as_me:$LINENO: result: $ac_res" >&5
32406 echo "${ECHO_T}$ac_res" >&6; }
32407 if test `eval echo '${'$as_ac_var'}'` = yes; then
32408 cat >>confdefs.h <<_ACEOF
32409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32410 _ACEOF
32413 done
32419 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32425 echo $ECHO_N "(cached) $ECHO_C" >&6
32426 else
32427 cat >conftest.$ac_ext <<_ACEOF
32428 /* confdefs.h. */
32429 _ACEOF
32430 cat confdefs.h >>conftest.$ac_ext
32431 cat >>conftest.$ac_ext <<_ACEOF
32432 /* end confdefs.h. */
32433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32435 #define $ac_func innocuous_$ac_func
32437 /* System header to define __stub macros and hopefully few prototypes,
32438 which can conflict with char $ac_func (); below.
32439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32440 <limits.h> exists even on freestanding compilers. */
32442 #ifdef __STDC__
32443 # include <limits.h>
32444 #else
32445 # include <assert.h>
32446 #endif
32448 #undef $ac_func
32450 /* Override any GCC internal prototype to avoid an error.
32451 Use char because int might match the return type of a GCC
32452 builtin and then its argument prototype would still apply. */
32453 #ifdef __cplusplus
32454 extern "C"
32455 #endif
32456 char $ac_func ();
32457 /* The GNU C library defines this for functions which it implements
32458 to always fail with ENOSYS. Some functions are actually named
32459 something starting with __ and the normal name is an alias. */
32460 #if defined __stub_$ac_func || defined __stub___$ac_func
32461 choke me
32462 #endif
32465 main ()
32467 return $ac_func ();
32469 return 0;
32471 _ACEOF
32472 rm -f conftest.$ac_objext conftest$ac_exeext
32473 if { (ac_try="$ac_link"
32474 case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32477 esac
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_link") 2>conftest.er1
32480 ac_status=$?
32481 grep -v '^ *+' conftest.er1 >conftest.err
32482 rm -f conftest.er1
32483 cat conftest.err >&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); } &&
32486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32487 { (case "(($ac_try" in
32488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489 *) ac_try_echo=$ac_try;;
32490 esac
32491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492 (eval "$ac_try") 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; } &&
32496 { ac_try='test -s conftest$ac_exeext'
32497 { (case "(($ac_try" in
32498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499 *) ac_try_echo=$ac_try;;
32500 esac
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502 (eval "$ac_try") 2>&5
32503 ac_status=$?
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); }; }; then
32506 eval "$as_ac_var=yes"
32507 else
32508 echo "$as_me: failed program was:" >&5
32509 sed 's/^/| /' conftest.$ac_ext >&5
32511 eval "$as_ac_var=no"
32514 rm -f core conftest.err conftest.$ac_objext \
32515 conftest$ac_exeext conftest.$ac_ext
32517 ac_res=`eval echo '${'$as_ac_var'}'`
32518 { echo "$as_me:$LINENO: result: $ac_res" >&5
32519 echo "${ECHO_T}$ac_res" >&6; }
32520 if test `eval echo '${'$as_ac_var'}'` = yes; then
32521 cat >>confdefs.h <<_ACEOF
32522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32523 _ACEOF
32526 done
32532 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32538 echo $ECHO_N "(cached) $ECHO_C" >&6
32539 else
32540 cat >conftest.$ac_ext <<_ACEOF
32541 /* confdefs.h. */
32542 _ACEOF
32543 cat confdefs.h >>conftest.$ac_ext
32544 cat >>conftest.$ac_ext <<_ACEOF
32545 /* end confdefs.h. */
32546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32548 #define $ac_func innocuous_$ac_func
32550 /* System header to define __stub macros and hopefully few prototypes,
32551 which can conflict with char $ac_func (); below.
32552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32553 <limits.h> exists even on freestanding compilers. */
32555 #ifdef __STDC__
32556 # include <limits.h>
32557 #else
32558 # include <assert.h>
32559 #endif
32561 #undef $ac_func
32563 /* Override any GCC internal prototype to avoid an error.
32564 Use char because int might match the return type of a GCC
32565 builtin and then its argument prototype would still apply. */
32566 #ifdef __cplusplus
32567 extern "C"
32568 #endif
32569 char $ac_func ();
32570 /* The GNU C library defines this for functions which it implements
32571 to always fail with ENOSYS. Some functions are actually named
32572 something starting with __ and the normal name is an alias. */
32573 #if defined __stub_$ac_func || defined __stub___$ac_func
32574 choke me
32575 #endif
32578 main ()
32580 return $ac_func ();
32582 return 0;
32584 _ACEOF
32585 rm -f conftest.$ac_objext conftest$ac_exeext
32586 if { (ac_try="$ac_link"
32587 case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32590 esac
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_link") 2>conftest.er1
32593 ac_status=$?
32594 grep -v '^ *+' conftest.er1 >conftest.err
32595 rm -f conftest.er1
32596 cat conftest.err >&5
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); } &&
32599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32600 { (case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32603 esac
32604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_try") 2>&5
32606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; } &&
32609 { ac_try='test -s conftest$ac_exeext'
32610 { (case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32613 esac
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_try") 2>&5
32616 ac_status=$?
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32619 eval "$as_ac_var=yes"
32620 else
32621 echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.$ac_ext >&5
32624 eval "$as_ac_var=no"
32627 rm -f core conftest.err conftest.$ac_objext \
32628 conftest$ac_exeext conftest.$ac_ext
32630 ac_res=`eval echo '${'$as_ac_var'}'`
32631 { echo "$as_me:$LINENO: result: $ac_res" >&5
32632 echo "${ECHO_T}$ac_res" >&6; }
32633 if test `eval echo '${'$as_ac_var'}'` = yes; then
32634 cat >>confdefs.h <<_ACEOF
32635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32636 _ACEOF
32639 done
32641 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32642 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32643 if test "${llvm_cv_c_printf_a+set}" = set; then
32644 echo $ECHO_N "(cached) $ECHO_C" >&6
32645 else
32646 ac_ext=c
32647 ac_cpp='$CPP $CPPFLAGS'
32648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32652 if test "$cross_compiling" = yes; then
32653 llvmac_cv_c_printf_a=no
32654 else
32655 cat >conftest.$ac_ext <<_ACEOF
32657 /* confdefs.h. */
32658 _ACEOF
32659 cat confdefs.h >>conftest.$ac_ext
32660 cat >>conftest.$ac_ext <<_ACEOF
32661 /* end confdefs.h. */
32663 #include <stdio.h>
32664 #include <stdlib.h>
32667 main ()
32670 volatile double A, B;
32671 char Buffer[100];
32672 A = 1;
32673 A /= 10.0;
32674 sprintf(Buffer, "%a", A);
32675 B = atof(Buffer);
32676 if (A != B)
32677 return (1);
32678 if (A != 0x1.999999999999ap-4)
32679 return (1);
32680 return (0);
32682 return 0;
32684 _ACEOF
32685 rm -f conftest$ac_exeext
32686 if { (ac_try="$ac_link"
32687 case "(($ac_try" in
32688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32690 esac
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_link") 2>&5
32693 ac_status=$?
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32696 { (case "(($ac_try" in
32697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698 *) ac_try_echo=$ac_try;;
32699 esac
32700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701 (eval "$ac_try") 2>&5
32702 ac_status=$?
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
32705 llvm_cv_c_printf_a=yes
32706 else
32707 echo "$as_me: program exited with status $ac_status" >&5
32708 echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32711 ( exit $ac_status )
32712 llvmac_cv_c_printf_a=no
32714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32718 ac_ext=c
32719 ac_cpp='$CPP $CPPFLAGS'
32720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32725 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32726 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32727 if test "$llvm_cv_c_printf_a" = "yes"; then
32729 cat >>confdefs.h <<\_ACEOF
32730 #define HAVE_PRINTF_A 1
32731 _ACEOF
32735 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32736 # for constant arguments. Useless!
32737 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32738 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32739 if test "${ac_cv_working_alloca_h+set}" = set; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32741 else
32742 cat >conftest.$ac_ext <<_ACEOF
32743 /* confdefs.h. */
32744 _ACEOF
32745 cat confdefs.h >>conftest.$ac_ext
32746 cat >>conftest.$ac_ext <<_ACEOF
32747 /* end confdefs.h. */
32748 #include <alloca.h>
32750 main ()
32752 char *p = (char *) alloca (2 * sizeof (int));
32753 if (p) return 0;
32755 return 0;
32757 _ACEOF
32758 rm -f conftest.$ac_objext conftest$ac_exeext
32759 if { (ac_try="$ac_link"
32760 case "(($ac_try" in
32761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32762 *) ac_try_echo=$ac_try;;
32763 esac
32764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32765 (eval "$ac_link") 2>conftest.er1
32766 ac_status=$?
32767 grep -v '^ *+' conftest.er1 >conftest.err
32768 rm -f conftest.er1
32769 cat conftest.err >&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } &&
32772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32773 { (case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32776 esac
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_try") 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; } &&
32782 { ac_try='test -s conftest$ac_exeext'
32783 { (case "(($ac_try" in
32784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32786 esac
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_try") 2>&5
32789 ac_status=$?
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; }; then
32792 ac_cv_working_alloca_h=yes
32793 else
32794 echo "$as_me: failed program was:" >&5
32795 sed 's/^/| /' conftest.$ac_ext >&5
32797 ac_cv_working_alloca_h=no
32800 rm -f core conftest.err conftest.$ac_objext \
32801 conftest$ac_exeext conftest.$ac_ext
32803 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32804 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32805 if test $ac_cv_working_alloca_h = yes; then
32807 cat >>confdefs.h <<\_ACEOF
32808 #define HAVE_ALLOCA_H 1
32809 _ACEOF
32813 { echo "$as_me:$LINENO: checking for alloca" >&5
32814 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32815 if test "${ac_cv_func_alloca_works+set}" = set; then
32816 echo $ECHO_N "(cached) $ECHO_C" >&6
32817 else
32818 cat >conftest.$ac_ext <<_ACEOF
32819 /* confdefs.h. */
32820 _ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h. */
32824 #ifdef __GNUC__
32825 # define alloca __builtin_alloca
32826 #else
32827 # ifdef _MSC_VER
32828 # include <malloc.h>
32829 # define alloca _alloca
32830 # else
32831 # if HAVE_ALLOCA_H
32832 # include <alloca.h>
32833 # else
32834 # ifdef _AIX
32835 #pragma alloca
32836 # else
32837 # ifndef alloca /* predefined by HP cc +Olibcalls */
32838 char *alloca ();
32839 # endif
32840 # endif
32841 # endif
32842 # endif
32843 #endif
32846 main ()
32848 char *p = (char *) alloca (1);
32849 if (p) return 0;
32851 return 0;
32853 _ACEOF
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (ac_try="$ac_link"
32856 case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32859 esac
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_link") 2>conftest.er1
32862 ac_status=$?
32863 grep -v '^ *+' conftest.er1 >conftest.err
32864 rm -f conftest.er1
32865 cat conftest.err >&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); } &&
32868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32869 { (case "(($ac_try" in
32870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871 *) ac_try_echo=$ac_try;;
32872 esac
32873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874 (eval "$ac_try") 2>&5
32875 ac_status=$?
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; } &&
32878 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
32888 ac_cv_func_alloca_works=yes
32889 else
32890 echo "$as_me: failed program was:" >&5
32891 sed 's/^/| /' conftest.$ac_ext >&5
32893 ac_cv_func_alloca_works=no
32896 rm -f core conftest.err conftest.$ac_objext \
32897 conftest$ac_exeext conftest.$ac_ext
32899 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32900 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32902 if test $ac_cv_func_alloca_works = yes; then
32904 cat >>confdefs.h <<\_ACEOF
32905 #define HAVE_ALLOCA 1
32906 _ACEOF
32908 else
32909 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32910 # that cause trouble. Some versions do not even contain alloca or
32911 # contain a buggy version. If you still want to use their alloca,
32912 # use ar to extract alloca.o from them instead of compiling alloca.c.
32914 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32916 cat >>confdefs.h <<\_ACEOF
32917 #define C_ALLOCA 1
32918 _ACEOF
32921 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32922 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32923 if test "${ac_cv_os_cray+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32925 else
32926 cat >conftest.$ac_ext <<_ACEOF
32927 /* confdefs.h. */
32928 _ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h. */
32932 #if defined CRAY && ! defined CRAY2
32933 webecray
32934 #else
32935 wenotbecray
32936 #endif
32938 _ACEOF
32939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32940 $EGREP "webecray" >/dev/null 2>&1; then
32941 ac_cv_os_cray=yes
32942 else
32943 ac_cv_os_cray=no
32945 rm -f conftest*
32948 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32949 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32950 if test $ac_cv_os_cray = yes; then
32951 for ac_func in _getb67 GETB67 getb67; do
32952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32957 else
32958 cat >conftest.$ac_ext <<_ACEOF
32959 /* confdefs.h. */
32960 _ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h. */
32964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32966 #define $ac_func innocuous_$ac_func
32968 /* System header to define __stub macros and hopefully few prototypes,
32969 which can conflict with char $ac_func (); below.
32970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32971 <limits.h> exists even on freestanding compilers. */
32973 #ifdef __STDC__
32974 # include <limits.h>
32975 #else
32976 # include <assert.h>
32977 #endif
32979 #undef $ac_func
32981 /* Override any GCC internal prototype to avoid an error.
32982 Use char because int might match the return type of a GCC
32983 builtin and then its argument prototype would still apply. */
32984 #ifdef __cplusplus
32985 extern "C"
32986 #endif
32987 char $ac_func ();
32988 /* The GNU C library defines this for functions which it implements
32989 to always fail with ENOSYS. Some functions are actually named
32990 something starting with __ and the normal name is an alias. */
32991 #if defined __stub_$ac_func || defined __stub___$ac_func
32992 choke me
32993 #endif
32996 main ()
32998 return $ac_func ();
33000 return 0;
33002 _ACEOF
33003 rm -f conftest.$ac_objext conftest$ac_exeext
33004 if { (ac_try="$ac_link"
33005 case "(($ac_try" in
33006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33008 esac
33009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33010 (eval "$ac_link") 2>conftest.er1
33011 ac_status=$?
33012 grep -v '^ *+' conftest.er1 >conftest.err
33013 rm -f conftest.er1
33014 cat conftest.err >&5
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); } &&
33017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33018 { (case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33021 esac
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_try") 2>&5
33024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; } &&
33027 { ac_try='test -s conftest$ac_exeext'
33028 { (case "(($ac_try" in
33029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030 *) ac_try_echo=$ac_try;;
33031 esac
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033 (eval "$ac_try") 2>&5
33034 ac_status=$?
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; }; then
33037 eval "$as_ac_var=yes"
33038 else
33039 echo "$as_me: failed program was:" >&5
33040 sed 's/^/| /' conftest.$ac_ext >&5
33042 eval "$as_ac_var=no"
33045 rm -f core conftest.err conftest.$ac_objext \
33046 conftest$ac_exeext conftest.$ac_ext
33048 ac_res=`eval echo '${'$as_ac_var'}'`
33049 { echo "$as_me:$LINENO: result: $ac_res" >&5
33050 echo "${ECHO_T}$ac_res" >&6; }
33051 if test `eval echo '${'$as_ac_var'}'` = yes; then
33053 cat >>confdefs.h <<_ACEOF
33054 #define CRAY_STACKSEG_END $ac_func
33055 _ACEOF
33057 break
33060 done
33063 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33064 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33065 if test "${ac_cv_c_stack_direction+set}" = set; then
33066 echo $ECHO_N "(cached) $ECHO_C" >&6
33067 else
33068 if test "$cross_compiling" = yes; then
33069 ac_cv_c_stack_direction=0
33070 else
33071 cat >conftest.$ac_ext <<_ACEOF
33072 /* confdefs.h. */
33073 _ACEOF
33074 cat confdefs.h >>conftest.$ac_ext
33075 cat >>conftest.$ac_ext <<_ACEOF
33076 /* end confdefs.h. */
33077 $ac_includes_default
33079 find_stack_direction ()
33081 static char *addr = 0;
33082 auto char dummy;
33083 if (addr == 0)
33085 addr = &dummy;
33086 return find_stack_direction ();
33088 else
33089 return (&dummy > addr) ? 1 : -1;
33093 main ()
33095 return find_stack_direction () < 0;
33097 _ACEOF
33098 rm -f conftest$ac_exeext
33099 if { (ac_try="$ac_link"
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_link") 2>&5
33106 ac_status=$?
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33109 { (case "(($ac_try" in
33110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33111 *) ac_try_echo=$ac_try;;
33112 esac
33113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33114 (eval "$ac_try") 2>&5
33115 ac_status=$?
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); }; }; then
33118 ac_cv_c_stack_direction=1
33119 else
33120 echo "$as_me: program exited with status $ac_status" >&5
33121 echo "$as_me: failed program was:" >&5
33122 sed 's/^/| /' conftest.$ac_ext >&5
33124 ( exit $ac_status )
33125 ac_cv_c_stack_direction=-1
33127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33132 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33133 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33135 cat >>confdefs.h <<_ACEOF
33136 #define STACK_DIRECTION $ac_cv_c_stack_direction
33137 _ACEOF
33143 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33144 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33145 if test "${ac_cv_func_rand48+set}" = set; then
33146 echo $ECHO_N "(cached) $ECHO_C" >&6
33147 else
33148 ac_ext=cpp
33149 ac_cpp='$CXXCPP $CPPFLAGS'
33150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33154 cat >conftest.$ac_ext <<_ACEOF
33155 /* confdefs.h. */
33156 _ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h. */
33160 #include <stdlib.h>
33162 main ()
33164 srand48(0);lrand48();drand48();
33166 return 0;
33168 _ACEOF
33169 rm -f conftest.$ac_objext
33170 if { (ac_try="$ac_compile"
33171 case "(($ac_try" in
33172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173 *) ac_try_echo=$ac_try;;
33174 esac
33175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_compile") 2>conftest.er1
33177 ac_status=$?
33178 grep -v '^ *+' conftest.er1 >conftest.err
33179 rm -f conftest.er1
33180 cat conftest.err >&5
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); } &&
33183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33184 { (case "(($ac_try" in
33185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186 *) ac_try_echo=$ac_try;;
33187 esac
33188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_try") 2>&5
33190 ac_status=$?
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); }; } &&
33193 { ac_try='test -s conftest.$ac_objext'
33194 { (case "(($ac_try" in
33195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33197 esac
33198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_try") 2>&5
33200 ac_status=$?
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; }; then
33203 ac_cv_func_rand48=yes
33204 else
33205 echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33208 ac_cv_func_rand48=no
33211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33212 ac_ext=c
33213 ac_cpp='$CPP $CPPFLAGS'
33214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33219 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33220 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33222 if test "$ac_cv_func_rand48" = "yes" ; then
33224 cat >>confdefs.h <<\_ACEOF
33225 #define HAVE_RAND48 1
33226 _ACEOF
33231 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33232 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33233 if test "${ac_cv_cxx_namespaces+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33235 else
33236 ac_ext=cpp
33237 ac_cpp='$CXXCPP $CPPFLAGS'
33238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33242 cat >conftest.$ac_ext <<_ACEOF
33243 /* confdefs.h. */
33244 _ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h. */
33248 namespace Outer { namespace Inner { int i = 0; }}
33250 main ()
33252 using namespace Outer::Inner; return i;
33254 return 0;
33256 _ACEOF
33257 rm -f conftest.$ac_objext
33258 if { (ac_try="$ac_compile"
33259 case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33262 esac
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_compile") 2>conftest.er1
33265 ac_status=$?
33266 grep -v '^ *+' conftest.er1 >conftest.err
33267 rm -f conftest.er1
33268 cat conftest.err >&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); } &&
33271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272 { (case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33275 esac
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
33278 ac_status=$?
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; } &&
33281 { ac_try='test -s conftest.$ac_objext'
33282 { (case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33285 esac
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33288 ac_status=$?
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
33291 ac_cv_cxx_namespaces=yes
33292 else
33293 echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33296 ac_cv_cxx_namespaces=no
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300 ac_ext=c
33301 ac_cpp='$CPP $CPPFLAGS'
33302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33308 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33309 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33310 if test "$ac_cv_cxx_namespaces" = yes; then
33312 cat >>confdefs.h <<\_ACEOF
33313 #define HAVE_NAMESPACES
33314 _ACEOF
33318 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33319 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33320 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33322 else
33324 ac_ext=cpp
33325 ac_cpp='$CXXCPP $CPPFLAGS'
33326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33330 cat >conftest.$ac_ext <<_ACEOF
33331 /* confdefs.h. */
33332 _ACEOF
33333 cat confdefs.h >>conftest.$ac_ext
33334 cat >>conftest.$ac_ext <<_ACEOF
33335 /* end confdefs.h. */
33336 #include <iterator>
33337 #ifdef HAVE_NAMESPACES
33338 using namespace std;
33339 #endif
33341 main ()
33343 iterator<int,int,int> t; return 0;
33345 return 0;
33347 _ACEOF
33348 rm -f conftest.$ac_objext
33349 if { (ac_try="$ac_compile"
33350 case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33353 esac
33354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_compile") 2>conftest.er1
33356 ac_status=$?
33357 grep -v '^ *+' conftest.er1 >conftest.err
33358 rm -f conftest.er1
33359 cat conftest.err >&5
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } &&
33362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33363 { (case "(($ac_try" in
33364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33365 *) ac_try_echo=$ac_try;;
33366 esac
33367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33368 (eval "$ac_try") 2>&5
33369 ac_status=$?
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; } &&
33372 { ac_try='test -s conftest.$ac_objext'
33373 { (case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33376 esac
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_try") 2>&5
33379 ac_status=$?
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); }; }; then
33382 ac_cv_cxx_have_std_iterator=yes
33383 else
33384 echo "$as_me: failed program was:" >&5
33385 sed 's/^/| /' conftest.$ac_ext >&5
33387 ac_cv_cxx_have_std_iterator=no
33390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33391 ac_ext=c
33392 ac_cpp='$CPP $CPPFLAGS'
33393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33399 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33400 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33401 if test "$ac_cv_cxx_have_std_iterator" = yes
33402 then
33404 cat >>confdefs.h <<\_ACEOF
33405 #define HAVE_STD_ITERATOR 1
33406 _ACEOF
33408 else
33410 cat >>confdefs.h <<\_ACEOF
33411 #define HAVE_STD_ITERATOR 0
33412 _ACEOF
33416 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33417 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33418 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33419 echo $ECHO_N "(cached) $ECHO_C" >&6
33420 else
33422 ac_ext=cpp
33423 ac_cpp='$CXXCPP $CPPFLAGS'
33424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33428 cat >conftest.$ac_ext <<_ACEOF
33429 /* confdefs.h. */
33430 _ACEOF
33431 cat confdefs.h >>conftest.$ac_ext
33432 cat >>conftest.$ac_ext <<_ACEOF
33433 /* end confdefs.h. */
33434 #include <iterator>
33435 #ifdef HAVE_NAMESPACES
33436 using namespace std;
33437 #endif
33439 main ()
33441 bidirectional_iterator<int,int> t; return 0;
33443 return 0;
33445 _ACEOF
33446 rm -f conftest.$ac_objext
33447 if { (ac_try="$ac_compile"
33448 case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33451 esac
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_compile") 2>conftest.er1
33454 ac_status=$?
33455 grep -v '^ *+' conftest.er1 >conftest.err
33456 rm -f conftest.er1
33457 cat conftest.err >&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); } &&
33460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33461 { (case "(($ac_try" in
33462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33463 *) ac_try_echo=$ac_try;;
33464 esac
33465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33466 (eval "$ac_try") 2>&5
33467 ac_status=$?
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); }; } &&
33470 { ac_try='test -s conftest.$ac_objext'
33471 { (case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33474 esac
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_try") 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
33480 ac_cv_cxx_have_bi_iterator=yes
33481 else
33482 echo "$as_me: failed program was:" >&5
33483 sed 's/^/| /' conftest.$ac_ext >&5
33485 ac_cv_cxx_have_bi_iterator=no
33488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33489 ac_ext=c
33490 ac_cpp='$CPP $CPPFLAGS'
33491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33497 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33498 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33499 if test "$ac_cv_cxx_have_bi_iterator" = yes
33500 then
33502 cat >>confdefs.h <<\_ACEOF
33503 #define HAVE_BI_ITERATOR 1
33504 _ACEOF
33506 else
33508 cat >>confdefs.h <<\_ACEOF
33509 #define HAVE_BI_ITERATOR 0
33510 _ACEOF
33514 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33515 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33516 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33518 else
33520 ac_ext=cpp
33521 ac_cpp='$CXXCPP $CPPFLAGS'
33522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33526 cat >conftest.$ac_ext <<_ACEOF
33527 /* confdefs.h. */
33528 _ACEOF
33529 cat confdefs.h >>conftest.$ac_ext
33530 cat >>conftest.$ac_ext <<_ACEOF
33531 /* end confdefs.h. */
33532 #include <iterator>
33533 #ifdef HAVE_NAMESPACES
33534 using namespace std;
33535 #endif
33537 main ()
33539 forward_iterator<int,int> t; return 0;
33541 return 0;
33543 _ACEOF
33544 rm -f conftest.$ac_objext
33545 if { (ac_try="$ac_compile"
33546 case "(($ac_try" in
33547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548 *) ac_try_echo=$ac_try;;
33549 esac
33550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551 (eval "$ac_compile") 2>conftest.er1
33552 ac_status=$?
33553 grep -v '^ *+' conftest.er1 >conftest.err
33554 rm -f conftest.er1
33555 cat conftest.err >&5
33556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557 (exit $ac_status); } &&
33558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33559 { (case "(($ac_try" in
33560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33561 *) ac_try_echo=$ac_try;;
33562 esac
33563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33564 (eval "$ac_try") 2>&5
33565 ac_status=$?
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); }; } &&
33568 { ac_try='test -s conftest.$ac_objext'
33569 { (case "(($ac_try" in
33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571 *) ac_try_echo=$ac_try;;
33572 esac
33573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574 (eval "$ac_try") 2>&5
33575 ac_status=$?
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; }; then
33578 ac_cv_cxx_have_fwd_iterator=yes
33579 else
33580 echo "$as_me: failed program was:" >&5
33581 sed 's/^/| /' conftest.$ac_ext >&5
33583 ac_cv_cxx_have_fwd_iterator=no
33586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33587 ac_ext=c
33588 ac_cpp='$CPP $CPPFLAGS'
33589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33595 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33596 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33597 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33598 then
33600 cat >>confdefs.h <<\_ACEOF
33601 #define HAVE_FWD_ITERATOR 1
33602 _ACEOF
33604 else
33606 cat >>confdefs.h <<\_ACEOF
33607 #define HAVE_FWD_ITERATOR 0
33608 _ACEOF
33613 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33614 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33615 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33617 else
33618 ac_ext=cpp
33619 ac_cpp='$CXXCPP $CPPFLAGS'
33620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33624 cat >conftest.$ac_ext <<_ACEOF
33625 /* confdefs.h. */
33626 _ACEOF
33627 cat confdefs.h >>conftest.$ac_ext
33628 cat >>conftest.$ac_ext <<_ACEOF
33629 /* end confdefs.h. */
33630 #include <math.h>
33632 main ()
33634 float f; isnan(f);
33636 return 0;
33638 _ACEOF
33639 rm -f conftest.$ac_objext
33640 if { (ac_try="$ac_compile"
33641 case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644 esac
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_compile") 2>conftest.er1
33647 ac_status=$?
33648 grep -v '^ *+' conftest.er1 >conftest.err
33649 rm -f conftest.er1
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); } &&
33653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33654 { (case "(($ac_try" in
33655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33656 *) ac_try_echo=$ac_try;;
33657 esac
33658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659 (eval "$ac_try") 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; } &&
33663 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33670 ac_status=$?
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); }; }; then
33673 ac_cv_func_isnan_in_math_h=yes
33674 else
33675 echo "$as_me: failed program was:" >&5
33676 sed 's/^/| /' conftest.$ac_ext >&5
33678 ac_cv_func_isnan_in_math_h=no
33681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33682 ac_ext=c
33683 ac_cpp='$CPP $CPPFLAGS'
33684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33689 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33690 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33693 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33695 cat >>confdefs.h <<\_ACEOF
33696 #define HAVE_ISNAN_IN_MATH_H 1
33697 _ACEOF
33701 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33702 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33703 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33704 echo $ECHO_N "(cached) $ECHO_C" >&6
33705 else
33706 ac_ext=cpp
33707 ac_cpp='$CXXCPP $CPPFLAGS'
33708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33712 cat >conftest.$ac_ext <<_ACEOF
33713 /* confdefs.h. */
33714 _ACEOF
33715 cat confdefs.h >>conftest.$ac_ext
33716 cat >>conftest.$ac_ext <<_ACEOF
33717 /* end confdefs.h. */
33718 #include <cmath>
33720 main ()
33722 float f; isnan(f);
33724 return 0;
33726 _ACEOF
33727 rm -f conftest.$ac_objext
33728 if { (ac_try="$ac_compile"
33729 case "(($ac_try" in
33730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33731 *) ac_try_echo=$ac_try;;
33732 esac
33733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734 (eval "$ac_compile") 2>conftest.er1
33735 ac_status=$?
33736 grep -v '^ *+' conftest.er1 >conftest.err
33737 rm -f conftest.er1
33738 cat conftest.err >&5
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); } &&
33741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33742 { (case "(($ac_try" in
33743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33744 *) ac_try_echo=$ac_try;;
33745 esac
33746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33747 (eval "$ac_try") 2>&5
33748 ac_status=$?
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; } &&
33751 { ac_try='test -s conftest.$ac_objext'
33752 { (case "(($ac_try" in
33753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33754 *) ac_try_echo=$ac_try;;
33755 esac
33756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33757 (eval "$ac_try") 2>&5
33758 ac_status=$?
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); }; }; then
33761 ac_cv_func_isnan_in_cmath=yes
33762 else
33763 echo "$as_me: failed program was:" >&5
33764 sed 's/^/| /' conftest.$ac_ext >&5
33766 ac_cv_func_isnan_in_cmath=no
33769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33770 ac_ext=c
33771 ac_cpp='$CPP $CPPFLAGS'
33772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33777 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33778 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33780 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33782 cat >>confdefs.h <<\_ACEOF
33783 #define HAVE_ISNAN_IN_CMATH 1
33784 _ACEOF
33788 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33789 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33790 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
33792 else
33793 ac_ext=cpp
33794 ac_cpp='$CXXCPP $CPPFLAGS'
33795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33799 cat >conftest.$ac_ext <<_ACEOF
33800 /* confdefs.h. */
33801 _ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h. */
33805 #include <cmath>
33807 main ()
33809 float f; std::isnan(f);
33811 return 0;
33813 _ACEOF
33814 rm -f conftest.$ac_objext
33815 if { (ac_try="$ac_compile"
33816 case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33819 esac
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_compile") 2>conftest.er1
33822 ac_status=$?
33823 grep -v '^ *+' conftest.er1 >conftest.err
33824 rm -f conftest.er1
33825 cat conftest.err >&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); } &&
33828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33829 { (case "(($ac_try" in
33830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831 *) ac_try_echo=$ac_try;;
33832 esac
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_try") 2>&5
33835 ac_status=$?
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); }; } &&
33838 { ac_try='test -s conftest.$ac_objext'
33839 { (case "(($ac_try" in
33840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841 *) ac_try_echo=$ac_try;;
33842 esac
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844 (eval "$ac_try") 2>&5
33845 ac_status=$?
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; }; then
33848 ac_cv_func_std_isnan_in_cmath=yes
33849 else
33850 echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.$ac_ext >&5
33853 ac_cv_func_std_isnan_in_cmath=no
33856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33857 ac_ext=c
33858 ac_cpp='$CPP $CPPFLAGS'
33859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33864 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33865 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33867 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33869 cat >>confdefs.h <<\_ACEOF
33870 #define HAVE_STD_ISNAN_IN_CMATH 1
33871 _ACEOF
33876 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33877 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33878 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33880 else
33881 ac_ext=cpp
33882 ac_cpp='$CXXCPP $CPPFLAGS'
33883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33887 cat >conftest.$ac_ext <<_ACEOF
33888 /* confdefs.h. */
33889 _ACEOF
33890 cat confdefs.h >>conftest.$ac_ext
33891 cat >>conftest.$ac_ext <<_ACEOF
33892 /* end confdefs.h. */
33893 #include <math.h>
33895 main ()
33897 float f; isinf(f);
33899 return 0;
33901 _ACEOF
33902 rm -f conftest.$ac_objext
33903 if { (ac_try="$ac_compile"
33904 case "(($ac_try" in
33905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906 *) ac_try_echo=$ac_try;;
33907 esac
33908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909 (eval "$ac_compile") 2>conftest.er1
33910 ac_status=$?
33911 grep -v '^ *+' conftest.er1 >conftest.err
33912 rm -f conftest.er1
33913 cat conftest.err >&5
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); } &&
33916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33917 { (case "(($ac_try" in
33918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33919 *) ac_try_echo=$ac_try;;
33920 esac
33921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33922 (eval "$ac_try") 2>&5
33923 ac_status=$?
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925 (exit $ac_status); }; } &&
33926 { ac_try='test -s conftest.$ac_objext'
33927 { (case "(($ac_try" in
33928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33929 *) ac_try_echo=$ac_try;;
33930 esac
33931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33932 (eval "$ac_try") 2>&5
33933 ac_status=$?
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; }; then
33936 ac_cv_func_isinf_in_math_h=yes
33937 else
33938 echo "$as_me: failed program was:" >&5
33939 sed 's/^/| /' conftest.$ac_ext >&5
33941 ac_cv_func_isinf_in_math_h=no
33944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33945 ac_ext=c
33946 ac_cpp='$CPP $CPPFLAGS'
33947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33952 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33953 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33955 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33957 cat >>confdefs.h <<\_ACEOF
33958 #define HAVE_ISINF_IN_MATH_H 1
33959 _ACEOF
33963 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33964 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33965 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33967 else
33968 ac_ext=cpp
33969 ac_cpp='$CXXCPP $CPPFLAGS'
33970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33974 cat >conftest.$ac_ext <<_ACEOF
33975 /* confdefs.h. */
33976 _ACEOF
33977 cat confdefs.h >>conftest.$ac_ext
33978 cat >>conftest.$ac_ext <<_ACEOF
33979 /* end confdefs.h. */
33980 #include <cmath>
33982 main ()
33984 float f; isinf(f);
33986 return 0;
33988 _ACEOF
33989 rm -f conftest.$ac_objext
33990 if { (ac_try="$ac_compile"
33991 case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33994 esac
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_compile") 2>conftest.er1
33997 ac_status=$?
33998 grep -v '^ *+' conftest.er1 >conftest.err
33999 rm -f conftest.er1
34000 cat conftest.err >&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } &&
34003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34004 { (case "(($ac_try" in
34005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006 *) ac_try_echo=$ac_try;;
34007 esac
34008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009 (eval "$ac_try") 2>&5
34010 ac_status=$?
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); }; } &&
34013 { ac_try='test -s conftest.$ac_objext'
34014 { (case "(($ac_try" in
34015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34016 *) ac_try_echo=$ac_try;;
34017 esac
34018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34019 (eval "$ac_try") 2>&5
34020 ac_status=$?
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; }; then
34023 ac_cv_func_isinf_in_cmath=yes
34024 else
34025 echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.$ac_ext >&5
34028 ac_cv_func_isinf_in_cmath=no
34031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34032 ac_ext=c
34033 ac_cpp='$CPP $CPPFLAGS'
34034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34039 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34040 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34042 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34044 cat >>confdefs.h <<\_ACEOF
34045 #define HAVE_ISINF_IN_CMATH 1
34046 _ACEOF
34050 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34051 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34052 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34053 echo $ECHO_N "(cached) $ECHO_C" >&6
34054 else
34055 ac_ext=cpp
34056 ac_cpp='$CXXCPP $CPPFLAGS'
34057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34061 cat >conftest.$ac_ext <<_ACEOF
34062 /* confdefs.h. */
34063 _ACEOF
34064 cat confdefs.h >>conftest.$ac_ext
34065 cat >>conftest.$ac_ext <<_ACEOF
34066 /* end confdefs.h. */
34067 #include <cmath>
34069 main ()
34071 float f; std::isinf(f)}
34073 return 0;
34075 _ACEOF
34076 rm -f conftest.$ac_objext
34077 if { (ac_try="$ac_compile"
34078 case "(($ac_try" in
34079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34080 *) ac_try_echo=$ac_try;;
34081 esac
34082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34083 (eval "$ac_compile") 2>conftest.er1
34084 ac_status=$?
34085 grep -v '^ *+' conftest.er1 >conftest.err
34086 rm -f conftest.er1
34087 cat conftest.err >&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); } &&
34090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34091 { (case "(($ac_try" in
34092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34093 *) ac_try_echo=$ac_try;;
34094 esac
34095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34096 (eval "$ac_try") 2>&5
34097 ac_status=$?
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); }; } &&
34100 { ac_try='test -s conftest.$ac_objext'
34101 { (case "(($ac_try" in
34102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34103 *) ac_try_echo=$ac_try;;
34104 esac
34105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34106 (eval "$ac_try") 2>&5
34107 ac_status=$?
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); }; }; then
34110 ac_cv_func_std_isinf_in_cmath=yes
34111 else
34112 echo "$as_me: failed program was:" >&5
34113 sed 's/^/| /' conftest.$ac_ext >&5
34115 ac_cv_func_std_isinf_in_cmath=no
34118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34119 ac_ext=c
34120 ac_cpp='$CPP $CPPFLAGS'
34121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34126 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34127 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34129 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34131 cat >>confdefs.h <<\_ACEOF
34132 #define HAVE_STD_ISINF_IN_CMATH 1
34133 _ACEOF
34137 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34138 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34139 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34140 echo $ECHO_N "(cached) $ECHO_C" >&6
34141 else
34142 ac_ext=cpp
34143 ac_cpp='$CXXCPP $CPPFLAGS'
34144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34148 cat >conftest.$ac_ext <<_ACEOF
34149 /* confdefs.h. */
34150 _ACEOF
34151 cat confdefs.h >>conftest.$ac_ext
34152 cat >>conftest.$ac_ext <<_ACEOF
34153 /* end confdefs.h. */
34154 #include <ieeefp.h>
34156 main ()
34158 float f; finite(f);
34160 return 0;
34162 _ACEOF
34163 rm -f conftest.$ac_objext
34164 if { (ac_try="$ac_compile"
34165 case "(($ac_try" in
34166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34168 esac
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_compile") 2>conftest.er1
34171 ac_status=$?
34172 grep -v '^ *+' conftest.er1 >conftest.err
34173 rm -f conftest.er1
34174 cat conftest.err >&5
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); } &&
34177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34178 { (case "(($ac_try" in
34179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180 *) ac_try_echo=$ac_try;;
34181 esac
34182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183 (eval "$ac_try") 2>&5
34184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; } &&
34187 { ac_try='test -s conftest.$ac_objext'
34188 { (case "(($ac_try" in
34189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34190 *) ac_try_echo=$ac_try;;
34191 esac
34192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34193 (eval "$ac_try") 2>&5
34194 ac_status=$?
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
34197 ac_cv_func_finite_in_ieeefp_h=yes
34198 else
34199 echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34202 ac_cv_func_finite_in_ieeefp_h=no
34205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34206 ac_ext=c
34207 ac_cpp='$CPP $CPPFLAGS'
34208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34213 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34214 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34216 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34218 cat >>confdefs.h <<\_ACEOF
34219 #define HAVE_FINITE_IN_IEEEFP_H 1
34220 _ACEOF
34226 if test "$llvm_cv_platform_type" = "Unix" ; then
34229 for ac_header in stdlib.h unistd.h
34231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34236 echo $ECHO_N "(cached) $ECHO_C" >&6
34238 ac_res=`eval echo '${'$as_ac_Header'}'`
34239 { echo "$as_me:$LINENO: result: $ac_res" >&5
34240 echo "${ECHO_T}$ac_res" >&6; }
34241 else
34242 # Is the header compilable?
34243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34245 cat >conftest.$ac_ext <<_ACEOF
34246 /* confdefs.h. */
34247 _ACEOF
34248 cat confdefs.h >>conftest.$ac_ext
34249 cat >>conftest.$ac_ext <<_ACEOF
34250 /* end confdefs.h. */
34251 $ac_includes_default
34252 #include <$ac_header>
34253 _ACEOF
34254 rm -f conftest.$ac_objext
34255 if { (ac_try="$ac_compile"
34256 case "(($ac_try" in
34257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34258 *) ac_try_echo=$ac_try;;
34259 esac
34260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261 (eval "$ac_compile") 2>conftest.er1
34262 ac_status=$?
34263 grep -v '^ *+' conftest.er1 >conftest.err
34264 rm -f conftest.er1
34265 cat conftest.err >&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); } &&
34268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34269 { (case "(($ac_try" in
34270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34271 *) ac_try_echo=$ac_try;;
34272 esac
34273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34274 (eval "$ac_try") 2>&5
34275 ac_status=$?
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); }; } &&
34278 { ac_try='test -s conftest.$ac_objext'
34279 { (case "(($ac_try" in
34280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34281 *) ac_try_echo=$ac_try;;
34282 esac
34283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34284 (eval "$ac_try") 2>&5
34285 ac_status=$?
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); }; }; then
34288 ac_header_compiler=yes
34289 else
34290 echo "$as_me: failed program was:" >&5
34291 sed 's/^/| /' conftest.$ac_ext >&5
34293 ac_header_compiler=no
34296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34298 echo "${ECHO_T}$ac_header_compiler" >&6; }
34300 # Is the header present?
34301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34303 cat >conftest.$ac_ext <<_ACEOF
34304 /* confdefs.h. */
34305 _ACEOF
34306 cat confdefs.h >>conftest.$ac_ext
34307 cat >>conftest.$ac_ext <<_ACEOF
34308 /* end confdefs.h. */
34309 #include <$ac_header>
34310 _ACEOF
34311 if { (ac_try="$ac_cpp conftest.$ac_ext"
34312 case "(($ac_try" in
34313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34314 *) ac_try_echo=$ac_try;;
34315 esac
34316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34318 ac_status=$?
34319 grep -v '^ *+' conftest.er1 >conftest.err
34320 rm -f conftest.er1
34321 cat conftest.err >&5
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); } >/dev/null; then
34324 if test -s conftest.err; then
34325 ac_cpp_err=$ac_c_preproc_warn_flag
34326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34327 else
34328 ac_cpp_err=
34330 else
34331 ac_cpp_err=yes
34333 if test -z "$ac_cpp_err"; then
34334 ac_header_preproc=yes
34335 else
34336 echo "$as_me: failed program was:" >&5
34337 sed 's/^/| /' conftest.$ac_ext >&5
34339 ac_header_preproc=no
34342 rm -f conftest.err conftest.$ac_ext
34343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34344 echo "${ECHO_T}$ac_header_preproc" >&6; }
34346 # So? What about this header?
34347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34348 yes:no: )
34349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34353 ac_header_preproc=yes
34355 no:yes:* )
34356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34368 ( cat <<\_ASBOX
34369 ## ----------------------------------- ##
34370 ## Report this to llvmbugs@cs.uiuc.edu ##
34371 ## ----------------------------------- ##
34372 _ASBOX
34373 ) | sed "s/^/$as_me: WARNING: /" >&2
34375 esac
34376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34379 echo $ECHO_N "(cached) $ECHO_C" >&6
34380 else
34381 eval "$as_ac_Header=\$ac_header_preproc"
34383 ac_res=`eval echo '${'$as_ac_Header'}'`
34384 { echo "$as_me:$LINENO: result: $ac_res" >&5
34385 echo "${ECHO_T}$ac_res" >&6; }
34388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34389 cat >>confdefs.h <<_ACEOF
34390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34391 _ACEOF
34395 done
34398 for ac_func in getpagesize
34400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34404 echo $ECHO_N "(cached) $ECHO_C" >&6
34405 else
34406 cat >conftest.$ac_ext <<_ACEOF
34407 /* confdefs.h. */
34408 _ACEOF
34409 cat confdefs.h >>conftest.$ac_ext
34410 cat >>conftest.$ac_ext <<_ACEOF
34411 /* end confdefs.h. */
34412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34414 #define $ac_func innocuous_$ac_func
34416 /* System header to define __stub macros and hopefully few prototypes,
34417 which can conflict with char $ac_func (); below.
34418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34419 <limits.h> exists even on freestanding compilers. */
34421 #ifdef __STDC__
34422 # include <limits.h>
34423 #else
34424 # include <assert.h>
34425 #endif
34427 #undef $ac_func
34429 /* Override any GCC internal prototype to avoid an error.
34430 Use char because int might match the return type of a GCC
34431 builtin and then its argument prototype would still apply. */
34432 #ifdef __cplusplus
34433 extern "C"
34434 #endif
34435 char $ac_func ();
34436 /* The GNU C library defines this for functions which it implements
34437 to always fail with ENOSYS. Some functions are actually named
34438 something starting with __ and the normal name is an alias. */
34439 #if defined __stub_$ac_func || defined __stub___$ac_func
34440 choke me
34441 #endif
34444 main ()
34446 return $ac_func ();
34448 return 0;
34450 _ACEOF
34451 rm -f conftest.$ac_objext conftest$ac_exeext
34452 if { (ac_try="$ac_link"
34453 case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34456 esac
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_link") 2>conftest.er1
34459 ac_status=$?
34460 grep -v '^ *+' conftest.er1 >conftest.err
34461 rm -f conftest.er1
34462 cat conftest.err >&5
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); } &&
34465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34466 { (case "(($ac_try" in
34467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34468 *) ac_try_echo=$ac_try;;
34469 esac
34470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34471 (eval "$ac_try") 2>&5
34472 ac_status=$?
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; } &&
34475 { ac_try='test -s conftest$ac_exeext'
34476 { (case "(($ac_try" in
34477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34478 *) ac_try_echo=$ac_try;;
34479 esac
34480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34481 (eval "$ac_try") 2>&5
34482 ac_status=$?
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; }; then
34485 eval "$as_ac_var=yes"
34486 else
34487 echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.$ac_ext >&5
34490 eval "$as_ac_var=no"
34493 rm -f core conftest.err conftest.$ac_objext \
34494 conftest$ac_exeext conftest.$ac_ext
34496 ac_res=`eval echo '${'$as_ac_var'}'`
34497 { echo "$as_me:$LINENO: result: $ac_res" >&5
34498 echo "${ECHO_T}$ac_res" >&6; }
34499 if test `eval echo '${'$as_ac_var'}'` = yes; then
34500 cat >>confdefs.h <<_ACEOF
34501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34502 _ACEOF
34505 done
34507 { echo "$as_me:$LINENO: checking for working mmap" >&5
34508 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34509 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34510 echo $ECHO_N "(cached) $ECHO_C" >&6
34511 else
34512 if test "$cross_compiling" = yes; then
34513 ac_cv_func_mmap_fixed_mapped=no
34514 else
34515 cat >conftest.$ac_ext <<_ACEOF
34516 /* confdefs.h. */
34517 _ACEOF
34518 cat confdefs.h >>conftest.$ac_ext
34519 cat >>conftest.$ac_ext <<_ACEOF
34520 /* end confdefs.h. */
34521 $ac_includes_default
34522 /* malloc might have been renamed as rpl_malloc. */
34523 #undef malloc
34525 /* Thanks to Mike Haertel and Jim Avera for this test.
34526 Here is a matrix of mmap possibilities:
34527 mmap private not fixed
34528 mmap private fixed at somewhere currently unmapped
34529 mmap private fixed at somewhere already mapped
34530 mmap shared not fixed
34531 mmap shared fixed at somewhere currently unmapped
34532 mmap shared fixed at somewhere already mapped
34533 For private mappings, we should verify that changes cannot be read()
34534 back from the file, nor mmap's back from the file at a different
34535 address. (There have been systems where private was not correctly
34536 implemented like the infamous i386 svr4.0, and systems where the
34537 VM page cache was not coherent with the file system buffer cache
34538 like early versions of FreeBSD and possibly contemporary NetBSD.)
34539 For shared mappings, we should conversely verify that changes get
34540 propagated back to all the places they're supposed to be.
34542 Grep wants private fixed already mapped.
34543 The main things grep needs to know about mmap are:
34544 * does it exist and is it safe to write into the mmap'd area
34545 * how to use it (BSD variants) */
34547 #include <fcntl.h>
34548 #include <sys/mman.h>
34550 #if !STDC_HEADERS && !HAVE_STDLIB_H
34551 char *malloc ();
34552 #endif
34554 /* This mess was copied from the GNU getpagesize.h. */
34555 #if !HAVE_GETPAGESIZE
34556 /* Assume that all systems that can run configure have sys/param.h. */
34557 # if !HAVE_SYS_PARAM_H
34558 # define HAVE_SYS_PARAM_H 1
34559 # endif
34561 # ifdef _SC_PAGESIZE
34562 # define getpagesize() sysconf(_SC_PAGESIZE)
34563 # else /* no _SC_PAGESIZE */
34564 # if HAVE_SYS_PARAM_H
34565 # include <sys/param.h>
34566 # ifdef EXEC_PAGESIZE
34567 # define getpagesize() EXEC_PAGESIZE
34568 # else /* no EXEC_PAGESIZE */
34569 # ifdef NBPG
34570 # define getpagesize() NBPG * CLSIZE
34571 # ifndef CLSIZE
34572 # define CLSIZE 1
34573 # endif /* no CLSIZE */
34574 # else /* no NBPG */
34575 # ifdef NBPC
34576 # define getpagesize() NBPC
34577 # else /* no NBPC */
34578 # ifdef PAGESIZE
34579 # define getpagesize() PAGESIZE
34580 # endif /* PAGESIZE */
34581 # endif /* no NBPC */
34582 # endif /* no NBPG */
34583 # endif /* no EXEC_PAGESIZE */
34584 # else /* no HAVE_SYS_PARAM_H */
34585 # define getpagesize() 8192 /* punt totally */
34586 # endif /* no HAVE_SYS_PARAM_H */
34587 # endif /* no _SC_PAGESIZE */
34589 #endif /* no HAVE_GETPAGESIZE */
34592 main ()
34594 char *data, *data2, *data3;
34595 int i, pagesize;
34596 int fd;
34598 pagesize = getpagesize ();
34600 /* First, make a file with some known garbage in it. */
34601 data = (char *) malloc (pagesize);
34602 if (!data)
34603 return 1;
34604 for (i = 0; i < pagesize; ++i)
34605 *(data + i) = rand ();
34606 umask (0);
34607 fd = creat ("conftest.mmap", 0600);
34608 if (fd < 0)
34609 return 1;
34610 if (write (fd, data, pagesize) != pagesize)
34611 return 1;
34612 close (fd);
34614 /* Next, try to mmap the file at a fixed address which already has
34615 something else allocated at it. If we can, also make sure that
34616 we see the same garbage. */
34617 fd = open ("conftest.mmap", O_RDWR);
34618 if (fd < 0)
34619 return 1;
34620 data2 = (char *) malloc (2 * pagesize);
34621 if (!data2)
34622 return 1;
34623 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34624 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34625 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34626 return 1;
34627 for (i = 0; i < pagesize; ++i)
34628 if (*(data + i) != *(data2 + i))
34629 return 1;
34631 /* Finally, make sure that changes to the mapped area do not
34632 percolate back to the file as seen by read(). (This is a bug on
34633 some variants of i386 svr4.0.) */
34634 for (i = 0; i < pagesize; ++i)
34635 *(data2 + i) = *(data2 + i) + 1;
34636 data3 = (char *) malloc (pagesize);
34637 if (!data3)
34638 return 1;
34639 if (read (fd, data3, pagesize) != pagesize)
34640 return 1;
34641 for (i = 0; i < pagesize; ++i)
34642 if (*(data + i) != *(data3 + i))
34643 return 1;
34644 close (fd);
34645 return 0;
34647 _ACEOF
34648 rm -f conftest$ac_exeext
34649 if { (ac_try="$ac_link"
34650 case "(($ac_try" in
34651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34652 *) ac_try_echo=$ac_try;;
34653 esac
34654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34655 (eval "$ac_link") 2>&5
34656 ac_status=$?
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34659 { (case "(($ac_try" in
34660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34661 *) ac_try_echo=$ac_try;;
34662 esac
34663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34664 (eval "$ac_try") 2>&5
34665 ac_status=$?
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); }; }; then
34668 ac_cv_func_mmap_fixed_mapped=yes
34669 else
34670 echo "$as_me: program exited with status $ac_status" >&5
34671 echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34674 ( exit $ac_status )
34675 ac_cv_func_mmap_fixed_mapped=no
34677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34682 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34683 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34684 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34686 cat >>confdefs.h <<\_ACEOF
34687 #define HAVE_MMAP 1
34688 _ACEOF
34691 rm -f conftest.mmap
34693 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34694 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34695 if test "${ac_cv_func_mmap_file+set}" = set; then
34696 echo $ECHO_N "(cached) $ECHO_C" >&6
34697 else
34698 ac_ext=c
34699 ac_cpp='$CPP $CPPFLAGS'
34700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34704 if test "$cross_compiling" = yes; then
34705 ac_cv_func_mmap_file=no
34706 else
34707 cat >conftest.$ac_ext <<_ACEOF
34709 /* confdefs.h. */
34710 _ACEOF
34711 cat confdefs.h >>conftest.$ac_ext
34712 cat >>conftest.$ac_ext <<_ACEOF
34713 /* end confdefs.h. */
34715 #include <sys/types.h>
34716 #include <sys/mman.h>
34717 #include <fcntl.h>
34720 main ()
34723 int fd;
34724 fd = creat ("foo",0777);
34725 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34726 unlink ("foo");
34727 return (fd != (int) MAP_FAILED);
34729 return 0;
34731 _ACEOF
34732 rm -f conftest$ac_exeext
34733 if { (ac_try="$ac_link"
34734 case "(($ac_try" in
34735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34736 *) ac_try_echo=$ac_try;;
34737 esac
34738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34739 (eval "$ac_link") 2>&5
34740 ac_status=$?
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34743 { (case "(($ac_try" in
34744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34745 *) ac_try_echo=$ac_try;;
34746 esac
34747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34748 (eval "$ac_try") 2>&5
34749 ac_status=$?
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); }; }; then
34752 ac_cv_func_mmap_file=yes
34753 else
34754 echo "$as_me: program exited with status $ac_status" >&5
34755 echo "$as_me: failed program was:" >&5
34756 sed 's/^/| /' conftest.$ac_ext >&5
34758 ( exit $ac_status )
34759 ac_cv_func_mmap_file=no
34761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34765 ac_ext=c
34766 ac_cpp='$CPP $CPPFLAGS'
34767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34773 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34774 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34775 if test "$ac_cv_func_mmap_file" = yes; then
34777 cat >>confdefs.h <<\_ACEOF
34778 #define HAVE_MMAP_FILE
34779 _ACEOF
34781 MMAP_FILE=yes
34785 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34786 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34787 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34788 echo $ECHO_N "(cached) $ECHO_C" >&6
34789 else
34790 if test "$llvm_cv_os_type" = "Interix" ; then
34791 ac_cv_need_dev_zero_for_mmap=yes
34792 else
34793 ac_cv_need_dev_zero_for_mmap=no
34797 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34798 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34799 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34801 cat >>confdefs.h <<\_ACEOF
34802 #define NEED_DEV_ZERO_FOR_MMAP 1
34803 _ACEOF
34807 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34808 then
34809 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34810 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34812 if test "$ac_cv_func_mmap_file" = "no"
34813 then
34814 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34815 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34819 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34820 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34821 cat >conftest.$ac_ext <<_ACEOF
34822 /* confdefs.h. */
34823 _ACEOF
34824 cat confdefs.h >>conftest.$ac_ext
34825 cat >>conftest.$ac_ext <<_ACEOF
34826 /* end confdefs.h. */
34827 int main() {
34828 volatile unsigned long val = 1;
34829 __sync_synchronize();
34830 __sync_val_compare_and_swap(&val, 1, 0);
34831 __sync_add_and_fetch(&val, 1);
34832 __sync_sub_and_fetch(&val, 1);
34833 return 0;
34836 _ACEOF
34837 rm -f conftest.$ac_objext conftest$ac_exeext
34838 if { (ac_try="$ac_link"
34839 case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34842 esac
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_link") 2>conftest.er1
34845 ac_status=$?
34846 grep -v '^ *+' conftest.er1 >conftest.err
34847 rm -f conftest.er1
34848 cat conftest.err >&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
34851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34852 { (case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34855 esac
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_try") 2>&5
34858 ac_status=$?
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); }; } &&
34861 { ac_try='test -s conftest$ac_exeext'
34862 { (case "(($ac_try" in
34863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34864 *) ac_try_echo=$ac_try;;
34865 esac
34866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34867 (eval "$ac_try") 2>&5
34868 ac_status=$?
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871 { echo "$as_me:$LINENO: result: yes" >&5
34872 echo "${ECHO_T}yes" >&6; }
34874 cat >>confdefs.h <<\_ACEOF
34875 #define LLVM_MULTITHREADED 1
34876 _ACEOF
34878 else
34879 echo "$as_me: failed program was:" >&5
34880 sed 's/^/| /' conftest.$ac_ext >&5
34882 { echo "$as_me:$LINENO: result: no" >&5
34883 echo "${ECHO_T}no" >&6; }
34885 cat >>confdefs.h <<\_ACEOF
34886 #define LLVM_MULTITHREADED 0
34887 _ACEOF
34889 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34890 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34893 rm -f core conftest.err conftest.$ac_objext \
34894 conftest$ac_exeext conftest.$ac_ext
34899 for ac_func in __dso_handle
34901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34905 echo $ECHO_N "(cached) $ECHO_C" >&6
34906 else
34907 cat >conftest.$ac_ext <<_ACEOF
34908 /* confdefs.h. */
34909 _ACEOF
34910 cat confdefs.h >>conftest.$ac_ext
34911 cat >>conftest.$ac_ext <<_ACEOF
34912 /* end confdefs.h. */
34913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34915 #define $ac_func innocuous_$ac_func
34917 /* System header to define __stub macros and hopefully few prototypes,
34918 which can conflict with char $ac_func (); below.
34919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34920 <limits.h> exists even on freestanding compilers. */
34922 #ifdef __STDC__
34923 # include <limits.h>
34924 #else
34925 # include <assert.h>
34926 #endif
34928 #undef $ac_func
34930 /* Override any GCC internal prototype to avoid an error.
34931 Use char because int might match the return type of a GCC
34932 builtin and then its argument prototype would still apply. */
34933 #ifdef __cplusplus
34934 extern "C"
34935 #endif
34936 char $ac_func ();
34937 /* The GNU C library defines this for functions which it implements
34938 to always fail with ENOSYS. Some functions are actually named
34939 something starting with __ and the normal name is an alias. */
34940 #if defined __stub_$ac_func || defined __stub___$ac_func
34941 choke me
34942 #endif
34945 main ()
34947 return $ac_func ();
34949 return 0;
34951 _ACEOF
34952 rm -f conftest.$ac_objext conftest$ac_exeext
34953 if { (ac_try="$ac_link"
34954 case "(($ac_try" in
34955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34956 *) ac_try_echo=$ac_try;;
34957 esac
34958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34959 (eval "$ac_link") 2>conftest.er1
34960 ac_status=$?
34961 grep -v '^ *+' conftest.er1 >conftest.err
34962 rm -f conftest.er1
34963 cat conftest.err >&5
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); } &&
34966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34967 { (case "(($ac_try" in
34968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34969 *) ac_try_echo=$ac_try;;
34970 esac
34971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34972 (eval "$ac_try") 2>&5
34973 ac_status=$?
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; } &&
34976 { ac_try='test -s conftest$ac_exeext'
34977 { (case "(($ac_try" in
34978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34979 *) ac_try_echo=$ac_try;;
34980 esac
34981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34982 (eval "$ac_try") 2>&5
34983 ac_status=$?
34984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985 (exit $ac_status); }; }; then
34986 eval "$as_ac_var=yes"
34987 else
34988 echo "$as_me: failed program was:" >&5
34989 sed 's/^/| /' conftest.$ac_ext >&5
34991 eval "$as_ac_var=no"
34994 rm -f core conftest.err conftest.$ac_objext \
34995 conftest$ac_exeext conftest.$ac_ext
34997 ac_res=`eval echo '${'$as_ac_var'}'`
34998 { echo "$as_me:$LINENO: result: $ac_res" >&5
34999 echo "${ECHO_T}$ac_res" >&6; }
35000 if test `eval echo '${'$as_ac_var'}'` = yes; then
35001 cat >>confdefs.h <<_ACEOF
35002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35003 _ACEOF
35006 done
35009 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35010 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35011 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35012 echo $ECHO_N "(cached) $ECHO_C" >&6
35013 else
35014 llvm_cv_llvmgcc_sanity="no"
35015 if test -x "$LLVMGCC" ; then
35016 cp /dev/null conftest.c
35017 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35018 grep 'target datalayout =' > /dev/null 2>&1
35019 if test $? -eq 0 ; then
35020 llvm_cv_llvmgcc_sanity="yes"
35022 rm conftest.c
35025 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35026 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35028 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35029 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35030 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35031 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35032 LLVMCC1=$llvmcc1path
35034 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35035 LLVMCC1PLUS=$llvmcc1pluspath
35037 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35038 LLVMGCCDIR=$llvmgccdir
35040 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35041 LLVMGCCLIBEXEC=$llvmgcclibexec
35043 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35044 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35045 LLVMGCC_VERSION=$llvmgccversion
35047 LLVMGCC_MAJVERS=$llvmgccmajvers
35049 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35050 LLVMGCC_LANGS=$llvmgcclangs
35052 { echo "$as_me:$LINENO: result: ok" >&5
35053 echo "${ECHO_T}ok" >&6; }
35056 SHLIBEXT=$libltdl_cv_shlibext
35059 # Translate the various configuration directories and other basic
35060 # information into substitutions that will end up in Makefile.config.in
35061 # that these configured values can be used by the makefiles
35062 if test "${prefix}" = "NONE" ; then
35063 prefix="/usr/local"
35065 eval LLVM_PREFIX="${prefix}";
35066 eval LLVM_BINDIR="${prefix}/bin";
35067 eval LLVM_LIBDIR="${prefix}/lib";
35068 eval LLVM_DATADIR="${prefix}/share/llvm";
35069 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35070 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35071 eval LLVM_INCLUDEDIR="${prefix}/include";
35072 eval LLVM_INFODIR="${prefix}/info";
35073 eval LLVM_MANDIR="${prefix}/man";
35074 LLVM_CONFIGTIME=`date`
35086 # Place the various directores into the config.h file as #defines so that we
35087 # can know about the installation paths within LLVM.
35089 cat >>confdefs.h <<_ACEOF
35090 #define LLVM_PREFIX "$LLVM_PREFIX"
35091 _ACEOF
35094 cat >>confdefs.h <<_ACEOF
35095 #define LLVM_BINDIR "$LLVM_BINDIR"
35096 _ACEOF
35099 cat >>confdefs.h <<_ACEOF
35100 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35101 _ACEOF
35104 cat >>confdefs.h <<_ACEOF
35105 #define LLVM_DATADIR "$LLVM_DATADIR"
35106 _ACEOF
35109 cat >>confdefs.h <<_ACEOF
35110 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35111 _ACEOF
35114 cat >>confdefs.h <<_ACEOF
35115 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35116 _ACEOF
35119 cat >>confdefs.h <<_ACEOF
35120 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35121 _ACEOF
35124 cat >>confdefs.h <<_ACEOF
35125 #define LLVM_INFODIR "$LLVM_INFODIR"
35126 _ACEOF
35129 cat >>confdefs.h <<_ACEOF
35130 #define LLVM_MANDIR "$LLVM_MANDIR"
35131 _ACEOF
35134 cat >>confdefs.h <<_ACEOF
35135 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35136 _ACEOF
35139 cat >>confdefs.h <<_ACEOF
35140 #define LLVM_HOSTTRIPLE "$host"
35141 _ACEOF
35144 # Determine which bindings to build.
35145 if test "$BINDINGS_TO_BUILD" = auto ; then
35146 BINDINGS_TO_BUILD=""
35147 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35148 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35151 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35154 # This isn't really configurey, but it avoids having to repeat the list in
35155 # other files.
35156 ALL_BINDINGS=ocaml
35159 # Do any work necessary to ensure that bindings have what they need.
35160 binding_prereqs_failed=0
35161 for a_binding in $BINDINGS_TO_BUILD ; do
35162 case "$a_binding" in
35163 ocaml)
35164 if test "x$OCAMLC" = x ; then
35165 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35166 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35167 binding_prereqs_failed=1
35169 if test "x$OCAMLDEP" = x ; then
35170 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35171 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35172 binding_prereqs_failed=1
35174 if test "x$OCAMLOPT" = x ; then
35175 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35176 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35178 if test "x$with_ocaml_libdir" != xauto ; then
35179 OCAML_LIBDIR=$with_ocaml_libdir
35181 else
35182 ocaml_stdlib="`"$OCAMLC" -where`"
35183 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35184 then
35185 # ocaml stdlib is beneath our prefix; use stdlib
35186 OCAML_LIBDIR=$ocaml_stdlib
35188 else
35189 # ocaml stdlib is outside our prefix; use libdir/ocaml
35190 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35195 esac
35196 done
35197 if test "$binding_prereqs_failed" = 1 ; then
35198 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35199 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35200 { (exit 1); exit 1; }; }
35203 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35204 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35205 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35206 echo $ECHO_N "(cached) $ECHO_C" >&6
35207 else
35208 ac_ext=cpp
35209 ac_cpp='$CXXCPP $CPPFLAGS'
35210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35214 oldcxxflags="$CXXFLAGS"
35215 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35216 cat >conftest.$ac_ext <<_ACEOF
35217 /* confdefs.h. */
35218 _ACEOF
35219 cat confdefs.h >>conftest.$ac_ext
35220 cat >>conftest.$ac_ext <<_ACEOF
35221 /* end confdefs.h. */
35224 main ()
35228 return 0;
35230 _ACEOF
35231 rm -f conftest.$ac_objext
35232 if { (ac_try="$ac_compile"
35233 case "(($ac_try" in
35234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35235 *) ac_try_echo=$ac_try;;
35236 esac
35237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35238 (eval "$ac_compile") 2>conftest.er1
35239 ac_status=$?
35240 grep -v '^ *+' conftest.er1 >conftest.err
35241 rm -f conftest.er1
35242 cat conftest.err >&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); } &&
35245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35246 { (case "(($ac_try" in
35247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35248 *) ac_try_echo=$ac_try;;
35249 esac
35250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35251 (eval "$ac_try") 2>&5
35252 ac_status=$?
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); }; } &&
35255 { ac_try='test -s conftest.$ac_objext'
35256 { (case "(($ac_try" in
35257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35258 *) ac_try_echo=$ac_try;;
35259 esac
35260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35261 (eval "$ac_try") 2>&5
35262 ac_status=$?
35263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264 (exit $ac_status); }; }; then
35265 llvm_cv_cxx_visibility_inlines_hidden=yes
35266 else
35267 echo "$as_me: failed program was:" >&5
35268 sed 's/^/| /' conftest.$ac_ext >&5
35270 llvm_cv_cxx_visibility_inlines_hidden=no
35273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35274 CXXFLAGS="$oldcxxflags"
35275 ac_ext=c
35276 ac_cpp='$CPP $CPPFLAGS'
35277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35283 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35284 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35285 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35286 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35288 else
35289 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35294 if test "$llvm_cv_link_use_r" = "yes" ; then
35295 RPATH="-Wl,-R"
35296 else
35297 RPATH="-Wl,-rpath"
35301 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35302 RDYNAMIC="-Wl,-export-dynamic"
35303 else
35304 RDYNAMIC=""
35309 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35311 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35313 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35315 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35317 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35319 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35322 ac_config_files="$ac_config_files Makefile.config"
35325 ac_config_files="$ac_config_files llvm.spec"
35328 ac_config_files="$ac_config_files docs/doxygen.cfg"
35331 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35334 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35337 ac_config_commands="$ac_config_commands setup"
35339 ac_config_commands="$ac_config_commands Makefile"
35342 ac_config_commands="$ac_config_commands Makefile.common"
35345 ac_config_commands="$ac_config_commands examples/Makefile"
35348 ac_config_commands="$ac_config_commands lib/Makefile"
35351 ac_config_commands="$ac_config_commands runtime/Makefile"
35354 ac_config_commands="$ac_config_commands test/Makefile"
35357 ac_config_commands="$ac_config_commands test/Makefile.tests"
35360 ac_config_commands="$ac_config_commands unittests/Makefile"
35363 ac_config_commands="$ac_config_commands tools/Makefile"
35366 ac_config_commands="$ac_config_commands utils/Makefile"
35369 ac_config_commands="$ac_config_commands projects/Makefile"
35372 ac_config_commands="$ac_config_commands bindings/Makefile"
35375 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35379 cat >confcache <<\_ACEOF
35380 # This file is a shell script that caches the results of configure
35381 # tests run on this system so they can be shared between configure
35382 # scripts and configure runs, see configure's option --config-cache.
35383 # It is not useful on other systems. If it contains results you don't
35384 # want to keep, you may remove or edit it.
35386 # config.status only pays attention to the cache file if you give it
35387 # the --recheck option to rerun configure.
35389 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35390 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35391 # following values.
35393 _ACEOF
35395 # The following way of writing the cache mishandles newlines in values,
35396 # but we know of no workaround that is simple, portable, and efficient.
35397 # So, we kill variables containing newlines.
35398 # Ultrix sh set writes to stderr and can't be redirected directly,
35399 # and sets the high bit in the cache file unless we assign to the vars.
35401 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35402 eval ac_val=\$$ac_var
35403 case $ac_val in #(
35404 *${as_nl}*)
35405 case $ac_var in #(
35406 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35407 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35408 esac
35409 case $ac_var in #(
35410 _ | IFS | as_nl) ;; #(
35411 *) $as_unset $ac_var ;;
35412 esac ;;
35413 esac
35414 done
35416 (set) 2>&1 |
35417 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35418 *${as_nl}ac_space=\ *)
35419 # `set' does not quote correctly, so add quotes (double-quote
35420 # substitution turns \\\\ into \\, and sed turns \\ into \).
35421 sed -n \
35422 "s/'/'\\\\''/g;
35423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35424 ;; #(
35426 # `set' quotes correctly as required by POSIX, so do not add quotes.
35427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35429 esac |
35430 sort
35432 sed '
35433 /^ac_cv_env_/b end
35434 t clear
35435 :clear
35436 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35437 t end
35438 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35439 :end' >>confcache
35440 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35441 if test -w "$cache_file"; then
35442 test "x$cache_file" != "x/dev/null" &&
35443 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35444 echo "$as_me: updating cache $cache_file" >&6;}
35445 cat confcache >$cache_file
35446 else
35447 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35448 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35451 rm -f confcache
35453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35454 # Let make expand exec_prefix.
35455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35457 DEFS=-DHAVE_CONFIG_H
35459 ac_libobjs=
35460 ac_ltlibobjs=
35461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35462 # 1. Remove the extension, and $U if already installed.
35463 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35464 ac_i=`echo "$ac_i" | sed "$ac_script"`
35465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35466 # will be set to the directory where LIBOBJS objects are built.
35467 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35468 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35469 done
35470 LIBOBJS=$ac_libobjs
35472 LTLIBOBJS=$ac_ltlibobjs
35475 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35476 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35477 Usually this means the macro was only invoked conditionally." >&5
35478 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35479 Usually this means the macro was only invoked conditionally." >&2;}
35480 { (exit 1); exit 1; }; }
35482 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35483 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35484 Usually this means the macro was only invoked conditionally." >&5
35485 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35486 Usually this means the macro was only invoked conditionally." >&2;}
35487 { (exit 1); exit 1; }; }
35490 : ${CONFIG_STATUS=./config.status}
35491 ac_clean_files_save=$ac_clean_files
35492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35493 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35494 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35495 cat >$CONFIG_STATUS <<_ACEOF
35496 #! $SHELL
35497 # Generated by $as_me.
35498 # Run this file to recreate the current configuration.
35499 # Compiler output produced by configure, useful for debugging
35500 # configure, is in config.log if it exists.
35502 debug=false
35503 ac_cs_recheck=false
35504 ac_cs_silent=false
35505 SHELL=\${CONFIG_SHELL-$SHELL}
35506 _ACEOF
35508 cat >>$CONFIG_STATUS <<\_ACEOF
35509 ## --------------------- ##
35510 ## M4sh Initialization. ##
35511 ## --------------------- ##
35513 # Be Bourne compatible
35514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35515 emulate sh
35516 NULLCMD=:
35517 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35518 # is contrary to our usage. Disable this feature.
35519 alias -g '${1+"$@"}'='"$@"'
35520 setopt NO_GLOB_SUBST
35521 else
35522 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35524 BIN_SH=xpg4; export BIN_SH # for Tru64
35525 DUALCASE=1; export DUALCASE # for MKS sh
35528 # PATH needs CR
35529 # Avoid depending upon Character Ranges.
35530 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35531 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35532 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35533 as_cr_digits='0123456789'
35534 as_cr_alnum=$as_cr_Letters$as_cr_digits
35536 # The user is always right.
35537 if test "${PATH_SEPARATOR+set}" != set; then
35538 echo "#! /bin/sh" >conf$$.sh
35539 echo "exit 0" >>conf$$.sh
35540 chmod +x conf$$.sh
35541 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35542 PATH_SEPARATOR=';'
35543 else
35544 PATH_SEPARATOR=:
35546 rm -f conf$$.sh
35549 # Support unset when possible.
35550 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35551 as_unset=unset
35552 else
35553 as_unset=false
35557 # IFS
35558 # We need space, tab and new line, in precisely that order. Quoting is
35559 # there to prevent editors from complaining about space-tab.
35560 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35561 # splitting by setting IFS to empty value.)
35562 as_nl='
35564 IFS=" "" $as_nl"
35566 # Find who we are. Look in the path if we contain no directory separator.
35567 case $0 in
35568 *[\\/]* ) as_myself=$0 ;;
35569 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35570 for as_dir in $PATH
35572 IFS=$as_save_IFS
35573 test -z "$as_dir" && as_dir=.
35574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35575 done
35576 IFS=$as_save_IFS
35579 esac
35580 # We did not find ourselves, most probably we were run as `sh COMMAND'
35581 # in which case we are not to be found in the path.
35582 if test "x$as_myself" = x; then
35583 as_myself=$0
35585 if test ! -f "$as_myself"; then
35586 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35587 { (exit 1); exit 1; }
35590 # Work around bugs in pre-3.0 UWIN ksh.
35591 for as_var in ENV MAIL MAILPATH
35592 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35593 done
35594 PS1='$ '
35595 PS2='> '
35596 PS4='+ '
35598 # NLS nuisances.
35599 for as_var in \
35600 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35601 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35602 LC_TELEPHONE LC_TIME
35604 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35605 eval $as_var=C; export $as_var
35606 else
35607 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35609 done
35611 # Required to use basename.
35612 if expr a : '\(a\)' >/dev/null 2>&1 &&
35613 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35614 as_expr=expr
35615 else
35616 as_expr=false
35619 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35620 as_basename=basename
35621 else
35622 as_basename=false
35626 # Name of the executable.
35627 as_me=`$as_basename -- "$0" ||
35628 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35629 X"$0" : 'X\(//\)$' \| \
35630 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35631 echo X/"$0" |
35632 sed '/^.*\/\([^/][^/]*\)\/*$/{
35633 s//\1/
35636 /^X\/\(\/\/\)$/{
35637 s//\1/
35640 /^X\/\(\/\).*/{
35641 s//\1/
35644 s/.*/./; q'`
35646 # CDPATH.
35647 $as_unset CDPATH
35651 as_lineno_1=$LINENO
35652 as_lineno_2=$LINENO
35653 test "x$as_lineno_1" != "x$as_lineno_2" &&
35654 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35656 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35657 # uniformly replaced by the line number. The first 'sed' inserts a
35658 # line-number line after each line using $LINENO; the second 'sed'
35659 # does the real work. The second script uses 'N' to pair each
35660 # line-number line with the line containing $LINENO, and appends
35661 # trailing '-' during substitution so that $LINENO is not a special
35662 # case at line end.
35663 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35664 # scripts with optimization help from Paolo Bonzini. Blame Lee
35665 # E. McMahon (1931-1989) for sed's syntax. :-)
35666 sed -n '
35668 /[$]LINENO/=
35669 ' <$as_myself |
35670 sed '
35671 s/[$]LINENO.*/&-/
35672 t lineno
35674 :lineno
35676 :loop
35677 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35678 t loop
35679 s/-\n.*//
35680 ' >$as_me.lineno &&
35681 chmod +x "$as_me.lineno" ||
35682 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35683 { (exit 1); exit 1; }; }
35685 # Don't try to exec as it changes $[0], causing all sort of problems
35686 # (the dirname of $[0] is not the place where we might find the
35687 # original and so on. Autoconf is especially sensitive to this).
35688 . "./$as_me.lineno"
35689 # Exit status is that of the last command.
35690 exit
35694 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35695 as_dirname=dirname
35696 else
35697 as_dirname=false
35700 ECHO_C= ECHO_N= ECHO_T=
35701 case `echo -n x` in
35702 -n*)
35703 case `echo 'x\c'` in
35704 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35705 *) ECHO_C='\c';;
35706 esac;;
35708 ECHO_N='-n';;
35709 esac
35711 if expr a : '\(a\)' >/dev/null 2>&1 &&
35712 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35713 as_expr=expr
35714 else
35715 as_expr=false
35718 rm -f conf$$ conf$$.exe conf$$.file
35719 if test -d conf$$.dir; then
35720 rm -f conf$$.dir/conf$$.file
35721 else
35722 rm -f conf$$.dir
35723 mkdir conf$$.dir
35725 echo >conf$$.file
35726 if ln -s conf$$.file conf$$ 2>/dev/null; then
35727 as_ln_s='ln -s'
35728 # ... but there are two gotchas:
35729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35731 # In both cases, we have to default to `cp -p'.
35732 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35733 as_ln_s='cp -p'
35734 elif ln conf$$.file conf$$ 2>/dev/null; then
35735 as_ln_s=ln
35736 else
35737 as_ln_s='cp -p'
35739 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35740 rmdir conf$$.dir 2>/dev/null
35742 if mkdir -p . 2>/dev/null; then
35743 as_mkdir_p=:
35744 else
35745 test -d ./-p && rmdir ./-p
35746 as_mkdir_p=false
35749 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35750 # systems may use methods other than mode bits to determine executability.
35751 cat >conf$$.file <<_ASEOF
35752 #! /bin/sh
35753 exit 0
35754 _ASEOF
35755 chmod +x conf$$.file
35756 if test -x conf$$.file >/dev/null 2>&1; then
35757 as_executable_p="test -x"
35758 else
35759 as_executable_p=:
35761 rm -f conf$$.file
35763 # Sed expression to map a string onto a valid CPP name.
35764 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35766 # Sed expression to map a string onto a valid variable name.
35767 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35770 exec 6>&1
35772 # Save the log message, to keep $[0] and so on meaningful, and to
35773 # report actual input values of CONFIG_FILES etc. instead of their
35774 # values after options handling.
35775 ac_log="
35776 This file was extended by llvm $as_me 2.7svn, which was
35777 generated by GNU Autoconf 2.60. Invocation command line was
35779 CONFIG_FILES = $CONFIG_FILES
35780 CONFIG_HEADERS = $CONFIG_HEADERS
35781 CONFIG_LINKS = $CONFIG_LINKS
35782 CONFIG_COMMANDS = $CONFIG_COMMANDS
35783 $ $0 $@
35785 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35788 _ACEOF
35790 cat >>$CONFIG_STATUS <<_ACEOF
35791 # Files that config.status was made for.
35792 config_files="$ac_config_files"
35793 config_headers="$ac_config_headers"
35794 config_commands="$ac_config_commands"
35796 _ACEOF
35798 cat >>$CONFIG_STATUS <<\_ACEOF
35799 ac_cs_usage="\
35800 \`$as_me' instantiates files from templates according to the
35801 current configuration.
35803 Usage: $0 [OPTIONS] [FILE]...
35805 -h, --help print this help, then exit
35806 -V, --version print version number, then exit
35807 -q, --quiet do not print progress messages
35808 -d, --debug don't remove temporary files
35809 --recheck update $as_me by reconfiguring in the same conditions
35810 --file=FILE[:TEMPLATE]
35811 instantiate the configuration file FILE
35812 --header=FILE[:TEMPLATE]
35813 instantiate the configuration header FILE
35815 Configuration files:
35816 $config_files
35818 Configuration headers:
35819 $config_headers
35821 Configuration commands:
35822 $config_commands
35824 Report bugs to <bug-autoconf@gnu.org>."
35826 _ACEOF
35827 cat >>$CONFIG_STATUS <<_ACEOF
35828 ac_cs_version="\\
35829 llvm config.status 2.7svn
35830 configured by $0, generated by GNU Autoconf 2.60,
35831 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35833 Copyright (C) 2006 Free Software Foundation, Inc.
35834 This config.status script is free software; the Free Software Foundation
35835 gives unlimited permission to copy, distribute and modify it."
35837 ac_pwd='$ac_pwd'
35838 srcdir='$srcdir'
35839 INSTALL='$INSTALL'
35840 _ACEOF
35842 cat >>$CONFIG_STATUS <<\_ACEOF
35843 # If no file are specified by the user, then we need to provide default
35844 # value. By we need to know if files were specified by the user.
35845 ac_need_defaults=:
35846 while test $# != 0
35848 case $1 in
35849 --*=*)
35850 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35851 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35852 ac_shift=:
35855 ac_option=$1
35856 ac_optarg=$2
35857 ac_shift=shift
35859 esac
35861 case $ac_option in
35862 # Handling of the options.
35863 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35864 ac_cs_recheck=: ;;
35865 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35866 echo "$ac_cs_version"; exit ;;
35867 --debug | --debu | --deb | --de | --d | -d )
35868 debug=: ;;
35869 --file | --fil | --fi | --f )
35870 $ac_shift
35871 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35872 ac_need_defaults=false;;
35873 --header | --heade | --head | --hea )
35874 $ac_shift
35875 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35876 ac_need_defaults=false;;
35877 --he | --h)
35878 # Conflict between --help and --header
35879 { echo "$as_me: error: ambiguous option: $1
35880 Try \`$0 --help' for more information." >&2
35881 { (exit 1); exit 1; }; };;
35882 --help | --hel | -h )
35883 echo "$ac_cs_usage"; exit ;;
35884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35886 ac_cs_silent=: ;;
35888 # This is an error.
35889 -*) { echo "$as_me: error: unrecognized option: $1
35890 Try \`$0 --help' for more information." >&2
35891 { (exit 1); exit 1; }; } ;;
35893 *) ac_config_targets="$ac_config_targets $1"
35894 ac_need_defaults=false ;;
35896 esac
35897 shift
35898 done
35900 ac_configure_extra_args=
35902 if $ac_cs_silent; then
35903 exec 6>/dev/null
35904 ac_configure_extra_args="$ac_configure_extra_args --silent"
35907 _ACEOF
35908 cat >>$CONFIG_STATUS <<_ACEOF
35909 if \$ac_cs_recheck; then
35910 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35911 CONFIG_SHELL=$SHELL
35912 export CONFIG_SHELL
35913 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35916 _ACEOF
35917 cat >>$CONFIG_STATUS <<\_ACEOF
35918 exec 5>>config.log
35920 echo
35921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35922 ## Running $as_me. ##
35923 _ASBOX
35924 echo "$ac_log"
35925 } >&5
35927 _ACEOF
35928 cat >>$CONFIG_STATUS <<_ACEOF
35930 # INIT-COMMANDS
35932 llvm_src="${srcdir}"
35934 _ACEOF
35936 cat >>$CONFIG_STATUS <<\_ACEOF
35938 # Handling of arguments.
35939 for ac_config_target in $ac_config_targets
35941 case $ac_config_target in
35942 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35943 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35944 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35945 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35946 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35947 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35948 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35949 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35950 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35951 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35952 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35953 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35954 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35955 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35956 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35957 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35958 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35959 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35960 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35961 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35962 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35963 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35964 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35965 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35966 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35970 { (exit 1); exit 1; }; };;
35971 esac
35972 done
35975 # If the user did not use the arguments to specify the items to instantiate,
35976 # then the envvar interface is used. Set only those that are not.
35977 # We use the long form for the default assignment because of an extremely
35978 # bizarre bug on SunOS 4.1.3.
35979 if $ac_need_defaults; then
35980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35985 # Have a temporary directory for convenience. Make it in the build tree
35986 # simply because there is no reason against having it here, and in addition,
35987 # creating and moving files from /tmp can sometimes cause problems.
35988 # Hook for its removal unless debugging.
35989 # Note that there is a small window in which the directory will not be cleaned:
35990 # after its creation but before its name has been assigned to `$tmp'.
35991 $debug ||
35993 tmp=
35994 trap 'exit_status=$?
35995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35997 trap '{ (exit 1); exit 1; }' 1 2 13 15
35999 # Create a (secure) tmp directory for tmp files.
36002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36003 test -n "$tmp" && test -d "$tmp"
36004 } ||
36006 tmp=./conf$$-$RANDOM
36007 (umask 077 && mkdir "$tmp")
36008 } ||
36010 echo "$me: cannot create a temporary directory in ." >&2
36011 { (exit 1); exit 1; }
36015 # Set up the sed scripts for CONFIG_FILES section.
36018 # No need to generate the scripts if there are no CONFIG_FILES.
36019 # This happens for instance when ./config.status config.h
36020 if test -n "$CONFIG_FILES"; then
36022 _ACEOF
36026 ac_delim='%!_!# '
36027 for ac_last_try in false false false false false :; do
36028 cat >conf$$subs.sed <<_ACEOF
36029 SHELL!$SHELL$ac_delim
36030 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36031 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36032 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36033 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36034 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36035 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36036 exec_prefix!$exec_prefix$ac_delim
36037 prefix!$prefix$ac_delim
36038 program_transform_name!$program_transform_name$ac_delim
36039 bindir!$bindir$ac_delim
36040 sbindir!$sbindir$ac_delim
36041 libexecdir!$libexecdir$ac_delim
36042 datarootdir!$datarootdir$ac_delim
36043 datadir!$datadir$ac_delim
36044 sysconfdir!$sysconfdir$ac_delim
36045 sharedstatedir!$sharedstatedir$ac_delim
36046 localstatedir!$localstatedir$ac_delim
36047 includedir!$includedir$ac_delim
36048 oldincludedir!$oldincludedir$ac_delim
36049 docdir!$docdir$ac_delim
36050 infodir!$infodir$ac_delim
36051 htmldir!$htmldir$ac_delim
36052 dvidir!$dvidir$ac_delim
36053 pdfdir!$pdfdir$ac_delim
36054 psdir!$psdir$ac_delim
36055 libdir!$libdir$ac_delim
36056 localedir!$localedir$ac_delim
36057 mandir!$mandir$ac_delim
36058 DEFS!$DEFS$ac_delim
36059 ECHO_C!$ECHO_C$ac_delim
36060 ECHO_N!$ECHO_N$ac_delim
36061 ECHO_T!$ECHO_T$ac_delim
36062 LIBS!$LIBS$ac_delim
36063 build_alias!$build_alias$ac_delim
36064 host_alias!$host_alias$ac_delim
36065 target_alias!$target_alias$ac_delim
36066 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36067 subdirs!$subdirs$ac_delim
36068 build!$build$ac_delim
36069 build_cpu!$build_cpu$ac_delim
36070 build_vendor!$build_vendor$ac_delim
36071 build_os!$build_os$ac_delim
36072 host!$host$ac_delim
36073 host_cpu!$host_cpu$ac_delim
36074 host_vendor!$host_vendor$ac_delim
36075 host_os!$host_os$ac_delim
36076 target!$target$ac_delim
36077 target_cpu!$target_cpu$ac_delim
36078 target_vendor!$target_vendor$ac_delim
36079 target_os!$target_os$ac_delim
36080 OS!$OS$ac_delim
36081 HOST_OS!$HOST_OS$ac_delim
36082 TARGET_OS!$TARGET_OS$ac_delim
36083 LINKALL!$LINKALL$ac_delim
36084 NOLINKALL!$NOLINKALL$ac_delim
36085 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36086 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36087 ARCH!$ARCH$ac_delim
36088 ENDIAN!$ENDIAN$ac_delim
36089 CC!$CC$ac_delim
36090 CFLAGS!$CFLAGS$ac_delim
36091 LDFLAGS!$LDFLAGS$ac_delim
36092 CPPFLAGS!$CPPFLAGS$ac_delim
36093 ac_ct_CC!$ac_ct_CC$ac_delim
36094 EXEEXT!$EXEEXT$ac_delim
36095 OBJEXT!$OBJEXT$ac_delim
36096 CPP!$CPP$ac_delim
36097 GREP!$GREP$ac_delim
36098 EGREP!$EGREP$ac_delim
36099 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36100 BUILD_CC!$BUILD_CC$ac_delim
36101 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36102 BUILD_CXX!$BUILD_CXX$ac_delim
36103 CVSBUILD!$CVSBUILD$ac_delim
36104 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36105 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36106 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36107 LLVM_COMPACT_SENTINELS!$LLVM_COMPACT_SENTINELS$ac_delim
36108 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36109 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36110 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36111 JIT!$JIT$ac_delim
36112 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36113 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36114 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36115 ENABLE_PIC!$ENABLE_PIC$ac_delim
36116 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36117 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36118 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36119 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36120 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36121 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36122 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36123 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36124 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36125 CXX!$CXX$ac_delim
36126 _ACEOF
36128 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36129 break
36130 elif $ac_last_try; then
36131 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36132 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36133 { (exit 1); exit 1; }; }
36134 else
36135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36137 done
36139 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36140 if test -n "$ac_eof"; then
36141 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36142 ac_eof=`expr $ac_eof + 1`
36145 cat >>$CONFIG_STATUS <<_ACEOF
36146 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36148 _ACEOF
36149 sed '
36150 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36151 s/^/s,@/; s/!/@,|#_!!_#|/
36154 s/'"$ac_delim"'$/,g/; t
36155 s/$/\\/; p
36156 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36157 ' >>$CONFIG_STATUS <conf$$subs.sed
36158 rm -f conf$$subs.sed
36159 cat >>$CONFIG_STATUS <<_ACEOF
36160 CEOF$ac_eof
36161 _ACEOF
36164 ac_delim='%!_!# '
36165 for ac_last_try in false false false false false :; do
36166 cat >conf$$subs.sed <<_ACEOF
36167 CXXFLAGS!$CXXFLAGS$ac_delim
36168 ac_ct_CXX!$ac_ct_CXX$ac_delim
36169 NM!$NM$ac_delim
36170 ifGNUmake!$ifGNUmake$ac_delim
36171 LN_S!$LN_S$ac_delim
36172 CMP!$CMP$ac_delim
36173 CP!$CP$ac_delim
36174 DATE!$DATE$ac_delim
36175 FIND!$FIND$ac_delim
36176 MKDIR!$MKDIR$ac_delim
36177 MV!$MV$ac_delim
36178 RANLIB!$RANLIB$ac_delim
36179 RM!$RM$ac_delim
36180 SED!$SED$ac_delim
36181 TAR!$TAR$ac_delim
36182 BINPWD!$BINPWD$ac_delim
36183 GRAPHVIZ!$GRAPHVIZ$ac_delim
36184 DOT!$DOT$ac_delim
36185 FDP!$FDP$ac_delim
36186 NEATO!$NEATO$ac_delim
36187 TWOPI!$TWOPI$ac_delim
36188 CIRCO!$CIRCO$ac_delim
36189 GV!$GV$ac_delim
36190 DOTTY!$DOTTY$ac_delim
36191 PERL!$PERL$ac_delim
36192 HAVE_PERL!$HAVE_PERL$ac_delim
36193 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36194 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36195 INSTALL_DATA!$INSTALL_DATA$ac_delim
36196 BZIP2!$BZIP2$ac_delim
36197 DOXYGEN!$DOXYGEN$ac_delim
36198 GROFF!$GROFF$ac_delim
36199 GZIP!$GZIP$ac_delim
36200 POD2HTML!$POD2HTML$ac_delim
36201 POD2MAN!$POD2MAN$ac_delim
36202 RUNTEST!$RUNTEST$ac_delim
36203 TCLSH!$TCLSH$ac_delim
36204 ZIP!$ZIP$ac_delim
36205 OCAMLC!$OCAMLC$ac_delim
36206 OCAMLOPT!$OCAMLOPT$ac_delim
36207 OCAMLDEP!$OCAMLDEP$ac_delim
36208 OCAMLDOC!$OCAMLDOC$ac_delim
36209 GAS!$GAS$ac_delim
36210 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36211 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36212 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36213 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36214 LIBADD_DL!$LIBADD_DL$ac_delim
36215 ECHO!$ECHO$ac_delim
36216 AR!$AR$ac_delim
36217 STRIP!$STRIP$ac_delim
36218 CXXCPP!$CXXCPP$ac_delim
36219 F77!$F77$ac_delim
36220 FFLAGS!$FFLAGS$ac_delim
36221 ac_ct_F77!$ac_ct_F77$ac_delim
36222 LIBTOOL!$LIBTOOL$ac_delim
36223 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36224 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36225 LLVMGCC!$LLVMGCC$ac_delim
36226 LLVMGXX!$LLVMGXX$ac_delim
36227 USE_UDIS86!$USE_UDIS86$ac_delim
36228 USE_OPROFILE!$USE_OPROFILE$ac_delim
36229 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36230 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36231 ALLOCA!$ALLOCA$ac_delim
36232 MMAP_FILE!$MMAP_FILE$ac_delim
36233 LLVMCC1!$LLVMCC1$ac_delim
36234 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36235 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36236 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36237 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36238 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36239 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36240 SHLIBEXT!$SHLIBEXT$ac_delim
36241 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36242 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36243 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36244 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36245 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36246 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36247 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36248 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36249 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36250 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36251 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36252 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36253 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36254 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36255 RPATH!$RPATH$ac_delim
36256 RDYNAMIC!$RDYNAMIC$ac_delim
36257 LIBOBJS!$LIBOBJS$ac_delim
36258 LTLIBOBJS!$LTLIBOBJS$ac_delim
36259 _ACEOF
36261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36262 break
36263 elif $ac_last_try; then
36264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36265 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36266 { (exit 1); exit 1; }; }
36267 else
36268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36270 done
36272 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36273 if test -n "$ac_eof"; then
36274 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36275 ac_eof=`expr $ac_eof + 1`
36278 cat >>$CONFIG_STATUS <<_ACEOF
36279 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36281 _ACEOF
36282 sed '
36283 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36284 s/^/s,@/; s/!/@,|#_!!_#|/
36287 s/'"$ac_delim"'$/,g/; t
36288 s/$/\\/; p
36289 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36290 ' >>$CONFIG_STATUS <conf$$subs.sed
36291 rm -f conf$$subs.sed
36292 cat >>$CONFIG_STATUS <<_ACEOF
36293 :end
36294 s/|#_!!_#|//g
36295 CEOF$ac_eof
36296 _ACEOF
36299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36301 # trailing colons and then remove the whole line if VPATH becomes empty
36302 # (actually we leave an empty line to preserve line numbers).
36303 if test "x$srcdir" = x.; then
36304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36305 s/:*\$(srcdir):*/:/
36306 s/:*\${srcdir}:*/:/
36307 s/:*@srcdir@:*/:/
36308 s/^\([^=]*=[ ]*\):*/\1/
36309 s/:*$//
36310 s/^[^=]*=[ ]*$//
36314 cat >>$CONFIG_STATUS <<\_ACEOF
36315 fi # test -n "$CONFIG_FILES"
36318 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36320 case $ac_tag in
36321 :[FHLC]) ac_mode=$ac_tag; continue;;
36322 esac
36323 case $ac_mode$ac_tag in
36324 :[FHL]*:*);;
36325 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36326 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36327 { (exit 1); exit 1; }; };;
36328 :[FH]-) ac_tag=-:-;;
36329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36330 esac
36331 ac_save_IFS=$IFS
36332 IFS=:
36333 set x $ac_tag
36334 IFS=$ac_save_IFS
36335 shift
36336 ac_file=$1
36337 shift
36339 case $ac_mode in
36340 :L) ac_source=$1;;
36341 :[FH])
36342 ac_file_inputs=
36343 for ac_f
36345 case $ac_f in
36346 -) ac_f="$tmp/stdin";;
36347 *) # Look for the file first in the build tree, then in the source tree
36348 # (if the path is not absolute). The absolute path cannot be DOS-style,
36349 # because $ac_f cannot contain `:'.
36350 test -f "$ac_f" ||
36351 case $ac_f in
36352 [\\/$]*) false;;
36353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36354 esac ||
36355 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36356 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36357 { (exit 1); exit 1; }; };;
36358 esac
36359 ac_file_inputs="$ac_file_inputs $ac_f"
36360 done
36362 # Let's still pretend it is `configure' which instantiates (i.e., don't
36363 # use $as_me), people would be surprised to read:
36364 # /* config.h. Generated by config.status. */
36365 configure_input="Generated from "`IFS=:
36366 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36367 if test x"$ac_file" != x-; then
36368 configure_input="$ac_file. $configure_input"
36369 { echo "$as_me:$LINENO: creating $ac_file" >&5
36370 echo "$as_me: creating $ac_file" >&6;}
36373 case $ac_tag in
36374 *:-:* | *:-) cat >"$tmp/stdin";;
36375 esac
36377 esac
36379 ac_dir=`$as_dirname -- "$ac_file" ||
36380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36381 X"$ac_file" : 'X\(//\)[^/]' \| \
36382 X"$ac_file" : 'X\(//\)$' \| \
36383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36384 echo X"$ac_file" |
36385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36386 s//\1/
36389 /^X\(\/\/\)[^/].*/{
36390 s//\1/
36393 /^X\(\/\/\)$/{
36394 s//\1/
36397 /^X\(\/\).*/{
36398 s//\1/
36401 s/.*/./; q'`
36402 { as_dir="$ac_dir"
36403 case $as_dir in #(
36404 -*) as_dir=./$as_dir;;
36405 esac
36406 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36407 as_dirs=
36408 while :; do
36409 case $as_dir in #(
36410 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36411 *) as_qdir=$as_dir;;
36412 esac
36413 as_dirs="'$as_qdir' $as_dirs"
36414 as_dir=`$as_dirname -- "$as_dir" ||
36415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36416 X"$as_dir" : 'X\(//\)[^/]' \| \
36417 X"$as_dir" : 'X\(//\)$' \| \
36418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36419 echo X"$as_dir" |
36420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36421 s//\1/
36424 /^X\(\/\/\)[^/].*/{
36425 s//\1/
36428 /^X\(\/\/\)$/{
36429 s//\1/
36432 /^X\(\/\).*/{
36433 s//\1/
36436 s/.*/./; q'`
36437 test -d "$as_dir" && break
36438 done
36439 test -z "$as_dirs" || eval "mkdir $as_dirs"
36440 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36441 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36442 { (exit 1); exit 1; }; }; }
36443 ac_builddir=.
36445 case "$ac_dir" in
36446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36449 # A ".." for each directory in $ac_dir_suffix.
36450 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36451 case $ac_top_builddir_sub in
36452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36454 esac ;;
36455 esac
36456 ac_abs_top_builddir=$ac_pwd
36457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36458 # for backward compatibility:
36459 ac_top_builddir=$ac_top_build_prefix
36461 case $srcdir in
36462 .) # We are building in place.
36463 ac_srcdir=.
36464 ac_top_srcdir=$ac_top_builddir_sub
36465 ac_abs_top_srcdir=$ac_pwd ;;
36466 [\\/]* | ?:[\\/]* ) # Absolute name.
36467 ac_srcdir=$srcdir$ac_dir_suffix;
36468 ac_top_srcdir=$srcdir
36469 ac_abs_top_srcdir=$srcdir ;;
36470 *) # Relative name.
36471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36472 ac_top_srcdir=$ac_top_build_prefix$srcdir
36473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36474 esac
36475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36478 case $ac_mode in
36481 # CONFIG_FILE
36484 case $INSTALL in
36485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36487 esac
36488 _ACEOF
36490 cat >>$CONFIG_STATUS <<\_ACEOF
36491 # If the template does not know about datarootdir, expand it.
36492 # FIXME: This hack should be removed a few years after 2.60.
36493 ac_datarootdir_hack=; ac_datarootdir_seen=
36495 case `sed -n '/datarootdir/ {
36499 /@datadir@/p
36500 /@docdir@/p
36501 /@infodir@/p
36502 /@localedir@/p
36503 /@mandir@/p
36504 ' $ac_file_inputs` in
36505 *datarootdir*) ac_datarootdir_seen=yes;;
36506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36507 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36508 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36509 _ACEOF
36510 cat >>$CONFIG_STATUS <<_ACEOF
36511 ac_datarootdir_hack='
36512 s&@datadir@&$datadir&g
36513 s&@docdir@&$docdir&g
36514 s&@infodir@&$infodir&g
36515 s&@localedir@&$localedir&g
36516 s&@mandir@&$mandir&g
36517 s&\\\${datarootdir}&$datarootdir&g' ;;
36518 esac
36519 _ACEOF
36521 # Neutralize VPATH when `$srcdir' = `.'.
36522 # Shell code in configure.ac might set extrasub.
36523 # FIXME: do we really want to maintain this feature?
36524 cat >>$CONFIG_STATUS <<_ACEOF
36525 sed "$ac_vpsub
36526 $extrasub
36527 _ACEOF
36528 cat >>$CONFIG_STATUS <<\_ACEOF
36530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36531 s&@configure_input@&$configure_input&;t t
36532 s&@top_builddir@&$ac_top_builddir_sub&;t t
36533 s&@srcdir@&$ac_srcdir&;t t
36534 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36535 s&@top_srcdir@&$ac_top_srcdir&;t t
36536 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36537 s&@builddir@&$ac_builddir&;t t
36538 s&@abs_builddir@&$ac_abs_builddir&;t t
36539 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36540 s&@INSTALL@&$ac_INSTALL&;t t
36541 $ac_datarootdir_hack
36542 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36545 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36547 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36548 which seems to be undefined. Please make sure it is defined." >&5
36549 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36550 which seems to be undefined. Please make sure it is defined." >&2;}
36552 rm -f "$tmp/stdin"
36553 case $ac_file in
36554 -) cat "$tmp/out"; rm -f "$tmp/out";;
36555 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36556 esac
36560 # CONFIG_HEADER
36562 _ACEOF
36564 # Transform confdefs.h into a sed script `conftest.defines', that
36565 # substitutes the proper values into config.h.in to produce config.h.
36566 rm -f conftest.defines conftest.tail
36567 # First, append a space to every undef/define line, to ease matching.
36568 echo 's/$/ /' >conftest.defines
36569 # Then, protect against being on the right side of a sed subst, or in
36570 # an unquoted here document, in config.status. If some macros were
36571 # called several times there might be several #defines for the same
36572 # symbol, which is useless. But do not sort them, since the last
36573 # AC_DEFINE must be honored.
36574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36575 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36576 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36577 # PARAMS is the parameter list in the macro definition--in most cases, it's
36578 # just an empty string.
36579 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36580 ac_dB='\\)[ (].*,\\1define\\2'
36581 ac_dC=' '
36582 ac_dD=' ,'
36584 uniq confdefs.h |
36585 sed -n '
36586 t rset
36587 :rset
36588 s/^[ ]*#[ ]*define[ ][ ]*//
36589 t ok
36592 s/[\\&,]/\\&/g
36593 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36594 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36595 ' >>conftest.defines
36597 # Remove the space that was appended to ease matching.
36598 # Then replace #undef with comments. This is necessary, for
36599 # example, in the case of _POSIX_SOURCE, which is predefined and required
36600 # on some systems where configure will not decide to define it.
36601 # (The regexp can be short, since the line contains either #define or #undef.)
36602 echo 's/ $//
36603 s,^[ #]*u.*,/* & */,' >>conftest.defines
36605 # Break up conftest.defines:
36606 ac_max_sed_lines=50
36608 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36609 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36610 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36611 # et cetera.
36612 ac_in='$ac_file_inputs'
36613 ac_out='"$tmp/out1"'
36614 ac_nxt='"$tmp/out2"'
36616 while :
36618 # Write a here document:
36619 cat >>$CONFIG_STATUS <<_ACEOF
36620 # First, check the format of the line:
36621 cat >"\$tmp/defines.sed" <<\\CEOF
36622 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36623 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36625 :def
36626 _ACEOF
36627 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36628 echo 'CEOF
36629 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36630 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36631 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36632 grep . conftest.tail >/dev/null || break
36633 rm -f conftest.defines
36634 mv conftest.tail conftest.defines
36635 done
36636 rm -f conftest.defines conftest.tail
36638 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36639 cat >>$CONFIG_STATUS <<\_ACEOF
36640 if test x"$ac_file" != x-; then
36641 echo "/* $configure_input */" >"$tmp/config.h"
36642 cat "$ac_result" >>"$tmp/config.h"
36643 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36645 echo "$as_me: $ac_file is unchanged" >&6;}
36646 else
36647 rm -f $ac_file
36648 mv "$tmp/config.h" $ac_file
36650 else
36651 echo "/* $configure_input */"
36652 cat "$ac_result"
36654 rm -f "$tmp/out12"
36657 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36658 echo "$as_me: executing $ac_file commands" >&6;}
36660 esac
36663 case $ac_file$ac_mode in
36664 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36665 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36666 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36667 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36668 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36669 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36670 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36671 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36672 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36673 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36674 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36675 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36676 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36677 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36678 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36679 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36680 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36681 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36682 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36683 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36684 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36685 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36686 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36687 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36688 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36689 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36691 esac
36692 done # for ac_tag
36695 { (exit 0); exit 0; }
36696 _ACEOF
36697 chmod +x $CONFIG_STATUS
36698 ac_clean_files=$ac_clean_files_save
36701 # configure is writing to config.log, and then calls config.status.
36702 # config.status does its own redirection, appending to config.log.
36703 # Unfortunately, on DOS this fails, as config.log is still kept open
36704 # by configure, so config.status won't be able to write to it; its
36705 # output is simply discarded. So we exec the FD to /dev/null,
36706 # effectively closing config.log, so it can be properly (re)opened and
36707 # appended to by config.status. When coming back to configure, we
36708 # need to make the FD available again.
36709 if test "$no_create" != yes; then
36710 ac_cs_success=:
36711 ac_config_status_args=
36712 test "$silent" = yes &&
36713 ac_config_status_args="$ac_config_status_args --quiet"
36714 exec 5>/dev/null
36715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36716 exec 5>>config.log
36717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36718 # would make configure fail if this is the last instruction.
36719 $ac_cs_success || { (exit 1); exit 1; }
36723 # CONFIG_SUBDIRS section.
36725 if test "$no_recursion" != yes; then
36727 # Remove --cache-file and --srcdir arguments so they do not pile up.
36728 ac_sub_configure_args=
36729 ac_prev=
36730 eval "set x $ac_configure_args"
36731 shift
36732 for ac_arg
36734 if test -n "$ac_prev"; then
36735 ac_prev=
36736 continue
36738 case $ac_arg in
36739 -cache-file | --cache-file | --cache-fil | --cache-fi \
36740 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36741 ac_prev=cache_file ;;
36742 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36743 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36744 | --c=*)
36746 --config-cache | -C)
36748 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36749 ac_prev=srcdir ;;
36750 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36752 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36753 ac_prev=prefix ;;
36754 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36757 case $ac_arg in
36758 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36759 esac
36760 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36761 esac
36762 done
36764 # Always prepend --prefix to ensure using the same prefix
36765 # in subdir configurations.
36766 ac_arg="--prefix=$prefix"
36767 case $ac_arg in
36768 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36769 esac
36770 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36772 ac_popdir=`pwd`
36773 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36775 # Do not complain, so a configure script can configure whichever
36776 # parts of a large source tree are present.
36777 test -d "$srcdir/$ac_dir" || continue
36779 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36780 echo "$as_me:$LINENO: $ac_msg" >&5
36781 echo "$ac_msg" >&6
36782 { as_dir="$ac_dir"
36783 case $as_dir in #(
36784 -*) as_dir=./$as_dir;;
36785 esac
36786 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36787 as_dirs=
36788 while :; do
36789 case $as_dir in #(
36790 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36791 *) as_qdir=$as_dir;;
36792 esac
36793 as_dirs="'$as_qdir' $as_dirs"
36794 as_dir=`$as_dirname -- "$as_dir" ||
36795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36796 X"$as_dir" : 'X\(//\)[^/]' \| \
36797 X"$as_dir" : 'X\(//\)$' \| \
36798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36799 echo X"$as_dir" |
36800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36801 s//\1/
36804 /^X\(\/\/\)[^/].*/{
36805 s//\1/
36808 /^X\(\/\/\)$/{
36809 s//\1/
36812 /^X\(\/\).*/{
36813 s//\1/
36816 s/.*/./; q'`
36817 test -d "$as_dir" && break
36818 done
36819 test -z "$as_dirs" || eval "mkdir $as_dirs"
36820 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36821 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36822 { (exit 1); exit 1; }; }; }
36823 ac_builddir=.
36825 case "$ac_dir" in
36826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36829 # A ".." for each directory in $ac_dir_suffix.
36830 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36831 case $ac_top_builddir_sub in
36832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36834 esac ;;
36835 esac
36836 ac_abs_top_builddir=$ac_pwd
36837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36838 # for backward compatibility:
36839 ac_top_builddir=$ac_top_build_prefix
36841 case $srcdir in
36842 .) # We are building in place.
36843 ac_srcdir=.
36844 ac_top_srcdir=$ac_top_builddir_sub
36845 ac_abs_top_srcdir=$ac_pwd ;;
36846 [\\/]* | ?:[\\/]* ) # Absolute name.
36847 ac_srcdir=$srcdir$ac_dir_suffix;
36848 ac_top_srcdir=$srcdir
36849 ac_abs_top_srcdir=$srcdir ;;
36850 *) # Relative name.
36851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36852 ac_top_srcdir=$ac_top_build_prefix$srcdir
36853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36854 esac
36855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36858 cd "$ac_dir"
36860 # Check for guested configure; otherwise get Cygnus style configure.
36861 if test -f "$ac_srcdir/configure.gnu"; then
36862 ac_sub_configure=$ac_srcdir/configure.gnu
36863 elif test -f "$ac_srcdir/configure"; then
36864 ac_sub_configure=$ac_srcdir/configure
36865 elif test -f "$ac_srcdir/configure.in"; then
36866 # This should be Cygnus configure.
36867 ac_sub_configure=$ac_aux_dir/configure
36868 else
36869 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36870 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36871 ac_sub_configure=
36874 # The recursion is here.
36875 if test -n "$ac_sub_configure"; then
36876 # Make the cache file name correct relative to the subdirectory.
36877 case $cache_file in
36878 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36879 *) # Relative name.
36880 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36881 esac
36883 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36884 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36885 # The eval makes quoting arguments work.
36886 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36887 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36888 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36889 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36890 { (exit 1); exit 1; }; }
36893 cd "$ac_popdir"
36894 done