Add support for aggressive load-use-store folding. This takes care of the
[llvm/msp430.git] / configure
blob19dfdf679923e36586e0a606369f42fb95f66efb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
545 case X$ECHO in
546 X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 esac
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
562 else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
573 exit 0
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
591 done
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
598 else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
615 done
616 IFS="$lt_save_ifs"
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
664 prev="$cmd"
665 done
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 # Initializations.
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 # include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 # include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 DISABLE_ASSERTIONS
834 ENABLE_EXPENSIVE_CHECKS
835 EXPENSIVE_CHECKS
836 DEBUG_RUNTIME
838 TARGET_HAS_JIT
839 ENABLE_DOXYGEN
840 ENABLE_THREADS
841 ENABLE_PIC
842 TARGETS_TO_BUILD
843 ENABLE_CBE_PRINTF_A
844 EXTRA_OPTIONS
846 CXXFLAGS
847 ac_ct_CXX
849 LEXLIB
850 LEX_OUTPUT_ROOT
851 FLEX
852 YACC
853 YFLAGS
854 BISON
856 ifGNUmake
857 LN_S
860 DATE
861 FIND
862 MKDIR
864 RANLIB
868 BINPWD
869 GRAPHVIZ
872 DOTTY
873 PERL
874 HAVE_PERL
875 INSTALL_PROGRAM
876 INSTALL_SCRIPT
877 INSTALL_DATA
878 BZIP2
879 DOXYGEN
880 GROFF
881 GZIP
882 POD2HTML
883 POD2MAN
884 RUNTEST
885 TCLSH
887 OCAMLC
888 OCAMLOPT
889 OCAMLDEP
890 OCAMLDOC
892 INSTALL_LTDL_TRUE
893 INSTALL_LTDL_FALSE
894 CONVENIENCE_LTDL_TRUE
895 CONVENIENCE_LTDL_FALSE
896 LIBADD_DL
897 ECHO
899 STRIP
900 CXXCPP
902 FFLAGS
903 ac_ct_F77
904 LIBTOOL
905 LLVMGCC
906 LLVMGXX
907 USE_UDIS86
908 HAVE_PTHREAD
909 HUGE_VAL_SANITY
910 ALLOCA
911 MMAP_FILE
912 LLVMCC1
913 LLVMCC1PLUS
914 LLVMGCCDIR
915 LLVMGCCLIBEXEC
916 LLVMGCC_VERSION
917 LLVMGCC_MAJVERS
918 LLVMGCC_LANGS
919 SHLIBEXT
920 LLVM_PREFIX
921 LLVM_BINDIR
922 LLVM_LIBDIR
923 LLVM_DATADIR
924 LLVM_DOCSDIR
925 LLVM_ETCDIR
926 LLVM_INCLUDEDIR
927 LLVM_INFODIR
928 LLVM_MANDIR
929 LLVM_CONFIGTIME
930 BINDINGS_TO_BUILD
931 ALL_BINDINGS
932 OCAML_LIBDIR
933 ENABLE_VISIBILITY_INLINES_HIDDEN
934 LIBOBJS
935 LTLIBOBJS'
936 ac_subst_files=''
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
941 CFLAGS
942 LDFLAGS
943 CPPFLAGS
946 CXXFLAGS
948 YACC
949 YFLAGS
950 CXXCPP
952 FFLAGS'
953 ac_subdirs_all='projects/sample
954 projects/privbracket
955 projects/llvm-stacker
956 projects/llvm-test
957 projects/test-suite
958 projects/llvm-reopt
959 projects/llvm-gcc
960 projects/llvm-java
961 projects/llvm-tv
962 projects/llvm-poolalloc
963 projects/poolalloc
964 projects/llvm-kernel'
966 # Initialize some variables set by options.
967 ac_init_help=
968 ac_init_version=false
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
971 cache_file=/dev/null
972 exec_prefix=NONE
973 no_create=
974 no_recursion=
975 prefix=NONE
976 program_prefix=NONE
977 program_suffix=NONE
978 program_transform_name=s,x,x,
979 silent=
980 site=
981 srcdir=
982 verbose=
983 x_includes=NONE
984 x_libraries=NONE
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir='${datarootdir}/info'
1004 htmldir='${docdir}'
1005 dvidir='${docdir}'
1006 pdfdir='${docdir}'
1007 psdir='${docdir}'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1012 ac_prev=
1013 ac_dashdash=
1014 for ac_option
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1019 ac_prev=
1020 continue
1023 case $ac_option in
1024 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 *) ac_optarg=yes ;;
1026 esac
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1032 ac_dashdash=yes ;;
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 ac_prev=bindir ;;
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1054 -datadir | --datadir | --datadi | --datad)
1055 ac_prev=datadir ;;
1056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057 datadir=$ac_optarg ;;
1059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1066 -disable-* | --disable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1073 eval enable_$ac_feature=no ;;
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1085 -enable-* | --enable-*)
1086 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1089 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1092 eval enable_$ac_feature=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1172 no_create=yes ;;
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1282 -with-* | --with-*)
1283 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1286 { echo "$as_me: error: invalid package name: $ac_package" >&2
1287 { (exit 1); exit 1; }; }
1288 ac_package=`echo $ac_package| sed 's/-/_/g'`
1289 eval with_$ac_package=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_package=`echo $ac_package | sed 's/-/_/g'`
1298 eval with_$ac_package=no ;;
1300 --x)
1301 # Obsolete; use --with-x.
1302 with_x=yes ;;
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1318 -*) { echo "$as_me: error: unrecognized option: $ac_option
1319 Try \`$0 --help' for more information." >&2
1320 { (exit 1); exit 1; }; }
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1327 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328 { (exit 1); exit 1; }; }
1329 eval $ac_envvar=\$ac_optarg
1330 export $ac_envvar ;;
1333 # FIXME: should be removed in autoconf 3.0.
1334 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 esac
1341 done
1343 if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 { echo "$as_me: error: missing argument to $ac_option" >&2
1346 { (exit 1); exit 1; }; }
1349 # Be sure to have absolute directory names.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1355 eval ac_val=\$$ac_var
1356 case $ac_val in
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 esac
1360 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361 { (exit 1); exit 1; }; }
1362 done
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1382 ac_tool_prefix=
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 { echo "$as_me: error: Working directory cannot be determined" >&2
1392 { (exit 1); exit 1; }; }
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 { echo "$as_me: error: pwd does not report name of working directory" >&2
1395 { (exit 1); exit 1; }; }
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$0" ||
1403 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$0" : 'X\(//\)[^/]' \| \
1405 X"$0" : 'X\(//\)$' \| \
1406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1407 echo X"$0" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1416 /^X\(\/\/\)$/{
1417 s//\1/
1420 /^X\(\/\).*/{
1421 s//\1/
1424 s/.*/./; q'`
1425 srcdir=$ac_confdir
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 srcdir=..
1429 else
1430 ac_srcdir_defaulted=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435 { (exit 1); exit 1; }; }
1437 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 ac_abs_confdir=`(
1439 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1440 { (exit 1); exit 1; }; }
1441 pwd)`
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1449 case $srcdir in
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 esac
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 done
1460 # Report the --help message.
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
1466 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1473 Defaults for the options are specified in brackets.
1475 Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1490 [PREFIX]
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1497 For better control, use the options below.
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
1519 _ACEOF
1521 cat <<\_ACEOF
1523 System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527 _ACEOF
1530 if test -n "$ac_init_help"; then
1531 case $ac_init_help in
1532 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1533 esac
1534 cat <<\_ACEOF
1536 Optional Features:
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-optimized
1540 --enable-assertions
1541 --enable-expensive-checks
1543 --enable-debug-runtime
1544 --enable-jit Enable Just In Time Compiling (default is YES)
1545 --enable-doxygen Build doxygen documentation (default is NO)
1546 --enable-threads Use threads if available (default is YES)
1547 --enable-pic Build LLVM with Position Independent Code (default
1548 is NO)
1549 --enable-targets Build specific host targets:
1550 all,host-only,{target-name} (default=all)
1551 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1552 %a (default is YES)
1553 --enable-bindings Build specific language bindings:
1554 all,auto,none,{binding-name} (default=auto)
1555 --enable-ltdl-install install libltdl
1556 --enable-shared[=PKGS] build shared libraries
1557 [default=yes]
1558 --enable-static[=PKGS] build static libraries
1559 [default=yes]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation
1562 [default=yes]
1563 --disable-libtool-lock avoid locking (might break parallel builds)
1565 Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1569 searches PATH)
1570 --with-llvmgcc Specify location of llvm-gcc driver (default
1571 searches PATH)
1572 --with-llvmgxx Specify location of llvm-g++ driver (default
1573 searches PATH)
1574 --with-extra-options Specify addtional options to compile LLVM with
1575 --with-ocaml-libdir Specify install location for ocaml bindings (default
1576 is stdlib)
1577 --with-tclinclude directory where tcl headers are
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-tags[=TAGS] include additional configurations [automatic]
1582 --with-udis86=<path> Use udis86 external x86 disassembler library
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1594 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1595 the first program found out of: `bison -y', `byacc', `yacc'.
1596 YFLAGS The list of arguments that will be passed by default to $YACC.
1597 This script will default YFLAGS to the empty string to avoid a
1598 default value of `-d' given by some make applications.
1599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1606 Report bugs to <llvmbugs@cs.uiuc.edu>.
1607 _ACEOF
1608 ac_status=$?
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" || continue
1615 ac_builddir=.
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1633 case $srcdir in
1634 .) # We are building in place.
1635 ac_srcdir=.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1657 else
1658 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
1661 done
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1666 cat <<\_ACEOF
1667 llvm configure 2.6svn
1668 generated by GNU Autoconf 2.60
1670 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1671 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1675 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1676 _ACEOF
1677 exit
1679 cat >config.log <<_ACEOF
1680 This file contains any messages produced by compilers while
1681 running configure, to aid debugging if configure makes a mistake.
1683 It was created by llvm $as_me 2.6svn, which was
1684 generated by GNU Autoconf 2.60. Invocation command line was
1686 $ $0 $@
1688 _ACEOF
1689 exec 5>>config.log
1691 cat <<_ASUNAME
1692 ## --------- ##
1693 ## Platform. ##
1694 ## --------- ##
1696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1705 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1708 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1709 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1713 _ASUNAME
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 echo "PATH: $as_dir"
1721 done
1722 IFS=$as_save_IFS
1724 } >&5
1726 cat >&5 <<_ACEOF
1729 ## ----------- ##
1730 ## Core tests. ##
1731 ## ----------- ##
1733 _ACEOF
1736 # Keep a trace of the command line.
1737 # Strip out --no-create and --no-recursion so they do not pile up.
1738 # Strip out --silent because we don't want to record it for future runs.
1739 # Also quote any args containing shell meta-characters.
1740 # Make two passes to allow for proper duplicate-argument suppression.
1741 ac_configure_args=
1742 ac_configure_args0=
1743 ac_configure_args1=
1744 ac_must_keep_next=false
1745 for ac_pass in 1 2
1747 for ac_arg
1749 case $ac_arg in
1750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752 | -silent | --silent | --silen | --sile | --sil)
1753 continue ;;
1754 *\'*)
1755 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 esac
1757 case $ac_pass in
1758 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true; then
1762 ac_must_keep_next=false # Got value, back to normal.
1763 else
1764 case $ac_arg in
1765 *=* | --config-cache | -C | -disable-* | --disable-* \
1766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768 | -with-* | --with-* | -without-* | --without-* | --x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 esac
1773 -* ) ac_must_keep_next=true ;;
1774 esac
1776 ac_configure_args="$ac_configure_args '$ac_arg'"
1778 esac
1779 done
1780 done
1781 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1784 # When interrupted or exit'd, cleanup temporary files, and complete
1785 # config.log. We remove comments because anyway the quotes in there
1786 # would cause problems or look ugly.
1787 # WARNING: Use '\'' to represent an apostrophe within the trap.
1788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1789 trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
1792 echo
1794 cat <<\_ASBOX
1795 ## ---------------- ##
1796 ## Cache variables. ##
1797 ## ---------------- ##
1798 _ASBOX
1799 echo
1800 # The following way of writing the cache mishandles newlines in values,
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in #(
1805 *${as_nl}*)
1806 case $ac_var in #(
1807 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809 esac
1810 case $ac_var in #(
1811 _ | IFS | as_nl) ;; #(
1812 *) $as_unset $ac_var ;;
1813 esac ;;
1814 esac
1815 done
1816 (set) 2>&1 |
1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
1819 sed -n \
1820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822 ;; #(
1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1826 esac |
1827 sort
1829 echo
1831 cat <<\_ASBOX
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1835 _ASBOX
1836 echo
1837 for ac_var in $ac_subst_vars
1839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 echo "$ac_var='\''$ac_val'\''"
1844 done | sort
1845 echo
1847 if test -n "$ac_subst_files"; then
1848 cat <<\_ASBOX
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1852 _ASBOX
1853 echo
1854 for ac_var in $ac_subst_files
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1865 if test -s confdefs.h; then
1866 cat <<\_ASBOX
1867 ## ----------- ##
1868 ## confdefs.h. ##
1869 ## ----------- ##
1870 _ASBOX
1871 echo
1872 cat confdefs.h
1873 echo
1875 test "$ac_signal" != 0 &&
1876 echo "$as_me: caught signal $ac_signal"
1877 echo "$as_me: exit $exit_status"
1878 } >&5
1879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881 exit $exit_status
1883 for ac_signal in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 done
1886 ac_signal=0
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest* confdefs.h
1891 # Predefined preprocessor variables.
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 _ACEOF
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 _ACEOF
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 _ACEOF
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 _ACEOF
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 _ACEOF
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer explicitly selected file to automatically selected ones.
1920 if test -n "$CONFIG_SITE"; then
1921 set x "$CONFIG_SITE"
1922 elif test "x$prefix" != xNONE; then
1923 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1924 else
1925 set x "$ac_default_prefix/share/config.site" \
1926 "$ac_default_prefix/etc/config.site"
1928 shift
1929 for ac_site_file
1931 if test -r "$ac_site_file"; then
1932 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933 echo "$as_me: loading site script $ac_site_file" >&6;}
1934 sed 's/^/| /' "$ac_site_file" >&5
1935 . "$ac_site_file"
1937 done
1939 if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
1943 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944 echo "$as_me: loading cache $cache_file" >&6;}
1945 case $cache_file in
1946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
1948 esac
1950 else
1951 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952 echo "$as_me: creating cache $cache_file" >&6;}
1953 >$cache_file
1956 # Check that the precious variables saved in the cache have kept the same
1957 # value.
1958 ac_cache_corrupted=false
1959 for ac_var in $ac_precious_vars; do
1960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
1962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
1964 case $ac_old_set,$ac_new_set in
1965 set,)
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,set)
1970 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1973 ,);;
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
1976 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1977 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1978 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1979 echo "$as_me: former value: $ac_old_val" >&2;}
1980 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1981 echo "$as_me: current value: $ac_new_val" >&2;}
1982 ac_cache_corrupted=:
1983 fi;;
1984 esac
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1987 case $ac_new_val in
1988 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg=$ac_var=$ac_new_val ;;
1990 esac
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 esac
1996 done
1997 if $ac_cache_corrupted; then
1998 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002 { (exit 1); exit 1; }; }
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2045 ac_aux_dir=
2046 for ac_dir in autoconf "$srcdir"/autoconf; do
2047 if test -f "$ac_dir/install-sh"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install-sh -c"
2050 break
2051 elif test -f "$ac_dir/install.sh"; then
2052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/install.sh -c"
2054 break
2055 elif test -f "$ac_dir/shtool"; then
2056 ac_aux_dir=$ac_dir
2057 ac_install_sh="$ac_aux_dir/shtool install -c"
2058 break
2060 done
2061 if test -z "$ac_aux_dir"; then
2062 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2063 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2064 { (exit 1); exit 1; }; }
2067 # These three variables are undocumented and unsupported,
2068 # and are intended to be withdrawn in a future Autoconf release.
2069 # They can cause serious problems if a builder's source tree is in a directory
2070 # whose full name contains unusual characters.
2071 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2072 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2073 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077 if test ${srcdir} != "." ; then
2078 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2079 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2080 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2081 { (exit 1); exit 1; }; }
2085 for i in `ls ${srcdir}/projects`
2087 if test -d ${srcdir}/projects/${i} ; then
2088 case ${i} in
2089 CVS) ;;
2090 sample) subdirs="$subdirs projects/sample"
2092 privbracket) subdirs="$subdirs projects/privbracket"
2094 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2096 # llvm-test is the old name of the test-suite, kept here for backwards
2097 # compatibility
2098 llvm-test) subdirs="$subdirs projects/llvm-test"
2100 test-suite) subdirs="$subdirs projects/test-suite"
2102 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2104 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2106 llvm-java) subdirs="$subdirs projects/llvm-java"
2108 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2110 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2112 poolalloc) subdirs="$subdirs projects/poolalloc"
2114 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2117 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2118 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2120 esac
2122 done
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 ac_build_alias=$build_alias
2137 test "x$ac_build_alias" = x &&
2138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x &&
2140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
2143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2156 esac
2157 build=$ac_cv_build
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_build
2160 shift
2161 build_cpu=$1
2162 build_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 build_os=$*
2167 IFS=$ac_save_IFS
2168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test "x$host_alias" = x; then
2177 ac_cv_host=$ac_cv_build
2178 else
2179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2188 case $ac_cv_host in
2189 *-*-*) ;;
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2193 esac
2194 host=$ac_cv_host
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_host
2197 shift
2198 host_cpu=$1
2199 host_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 host_os=$*
2204 IFS=$ac_save_IFS
2205 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2208 { echo "$as_me:$LINENO: checking target system type" >&5
2209 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2210 if test "${ac_cv_target+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 if test "x$target_alias" = x; then
2214 ac_cv_target=$ac_cv_host
2215 else
2216 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2219 { (exit 1); exit 1; }; }
2223 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2224 echo "${ECHO_T}$ac_cv_target" >&6; }
2225 case $ac_cv_target in
2226 *-*-*) ;;
2227 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2228 echo "$as_me: error: invalid value of canonical target" >&2;}
2229 { (exit 1); exit 1; }; };;
2230 esac
2231 target=$ac_cv_target
2232 ac_save_IFS=$IFS; IFS='-'
2233 set x $ac_cv_target
2234 shift
2235 target_cpu=$1
2236 target_vendor=$2
2237 shift; shift
2238 # Remember, the first character of IFS is used to create $*,
2239 # except with old shells:
2240 target_os=$*
2241 IFS=$ac_save_IFS
2242 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2245 # The aliases save the names the user supplied, while $host etc.
2246 # will get canonicalized.
2247 test -n "$target_alias" &&
2248 test "$program_prefix$program_suffix$program_transform_name" = \
2249 NONENONEs,x,x, &&
2250 program_prefix=${target_alias}-
2252 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2253 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2254 if test "${llvm_cv_os_type+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 case $host in
2258 *-*-aix*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="AIX"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-irix*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="IRIX"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-cygwin*)
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="Cygwin"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-darwin*)
2274 llvm_cv_link_all_option="-Wl,-all_load"
2275 llvm_cv_no_link_all_option="-Wl,-noall_load"
2276 llvm_cv_os_type="Darwin"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-freebsd*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="FreeBSD"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-openbsd*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="OpenBSD"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-netbsd*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="NetBSD"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-dragonfly*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="DragonFly"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-hpux*)
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="HP-UX"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-interix*)
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="Interix"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-linux*)
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="Linux"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-solaris*)
2314 llvm_cv_link_all_option="-Wl,-z,allextract"
2315 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2316 llvm_cv_os_type="SunOS"
2317 llvm_cv_platform_type="Unix" ;;
2318 *-*-win32*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="Win32"
2322 llvm_cv_platform_type="Win32" ;;
2323 *-*-mingw*)
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="MingW"
2327 llvm_cv_platform_type="Win32" ;;
2329 llvm_cv_link_all_option=""
2330 llvm_cv_no_link_all_option=""
2331 llvm_cv_os_type="Unknown"
2332 llvm_cv_platform_type="Unknown" ;;
2333 esac
2335 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2336 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2338 if test "$llvm_cv_os_type" = "Unknown" ; then
2339 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2340 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2341 { (exit 1); exit 1; }; }
2344 OS=$llvm_cv_os_type
2347 LINKALL=$llvm_cv_link_all_option
2349 NOLINKALL=$llvm_cv_no_link_all_option
2352 case $llvm_cv_platform_type in
2353 Unix)
2355 cat >>confdefs.h <<\_ACEOF
2356 #define LLVM_ON_UNIX 1
2357 _ACEOF
2359 LLVM_ON_UNIX=1
2361 LLVM_ON_WIN32=0
2364 Win32)
2366 cat >>confdefs.h <<\_ACEOF
2367 #define LLVM_ON_WIN32 1
2368 _ACEOF
2370 LLVM_ON_UNIX=0
2372 LLVM_ON_WIN32=1
2375 esac
2377 { echo "$as_me:$LINENO: checking target architecture" >&5
2378 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2379 if test "${llvm_cv_target_arch+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 case $target in
2383 i?86-*) llvm_cv_target_arch="x86" ;;
2384 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2385 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2386 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2387 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2388 ia64-*) llvm_cv_target_arch="IA64" ;;
2389 arm-*) llvm_cv_target_arch="ARM" ;;
2390 mips-*) llvm_cv_target_arch="Mips" ;;
2391 pic16-*) llvm_cv_target_arch="PIC16" ;;
2392 xcore-*) llvm_cv_target_arch="XCore" ;;
2393 *) llvm_cv_target_arch="Unknown" ;;
2394 esac
2396 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2397 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2399 if test "$llvm_cv_target_arch" = "Unknown" ; then
2400 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2401 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2404 ARCH=$llvm_cv_target_arch
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2434 done
2435 done
2436 IFS=$as_save_IFS
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442 { echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6; }
2444 else
2445 { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2451 if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454 set dummy gcc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_ac_ct_CC="gcc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2474 done
2475 done
2476 IFS=$as_save_IFS
2480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481 if test -n "$ac_ct_CC"; then
2482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483 echo "${ECHO_T}$ac_ct_CC" >&6; }
2484 else
2485 { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet. If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&5
2497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet. If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2500 ac_tool_warned=yes ;;
2501 esac
2502 CC=$ac_ct_CC
2504 else
2505 CC="$ac_cv_prog_CC"
2508 if test -z "$CC"; then
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2511 set dummy ${ac_tool_prefix}cc; ac_word=$2
2512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_CC="${ac_tool_prefix}cc"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2531 done
2532 done
2533 IFS=$as_save_IFS
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539 { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2541 else
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2549 if test -z "$CC"; then
2550 # Extract the first word of "cc", so it can be a program name with args.
2551 set dummy cc; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 else
2560 ac_prog_rejected=no
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2569 ac_prog_rejected=yes
2570 continue
2572 ac_cv_prog_CC="cc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2576 done
2577 done
2578 IFS=$as_save_IFS
2580 if test $ac_prog_rejected = yes; then
2581 # We found a bogon in the path, so make sure we never use it.
2582 set dummy $ac_cv_prog_CC
2583 shift
2584 if test $# != 0; then
2585 # We chose a different compiler from the bogus one.
2586 # However, it has the same basename, so the bogon will be chosen
2587 # first if we set CC to just the basename; use the full file name.
2588 shift
2589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2594 CC=$ac_cv_prog_CC
2595 if test -n "$CC"; then
2596 { echo "$as_me:$LINENO: result: $CC" >&5
2597 echo "${ECHO_T}$CC" >&6; }
2598 else
2599 { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2605 if test -z "$CC"; then
2606 if test -n "$ac_tool_prefix"; then
2607 for ac_prog in cl.exe
2609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2630 done
2631 done
2632 IFS=$as_save_IFS
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638 { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2640 else
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2646 test -n "$CC" && break
2647 done
2649 if test -z "$CC"; then
2650 ac_ct_CC=$CC
2651 for ac_prog in cl.exe
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 if test -n "$ac_ct_CC"; then
2661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_ac_ct_CC="$ac_prog"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2674 done
2675 done
2676 IFS=$as_save_IFS
2680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2681 if test -n "$ac_ct_CC"; then
2682 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2683 echo "${ECHO_T}$ac_ct_CC" >&6; }
2684 else
2685 { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2690 test -n "$ac_ct_CC" && break
2691 done
2693 if test "x$ac_ct_CC" = x; then
2694 CC=""
2695 else
2696 case $cross_compiling:$ac_tool_warned in
2697 yes:)
2698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2699 whose name does not start with the host triplet. If you think this
2700 configuration is useful to you, please write to autoconf@gnu.org." >&5
2701 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2702 whose name does not start with the host triplet. If you think this
2703 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2704 ac_tool_warned=yes ;;
2705 esac
2706 CC=$ac_ct_CC
2713 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2714 See \`config.log' for more details." >&5
2715 echo "$as_me: error: no acceptable C compiler found in \$PATH
2716 See \`config.log' for more details." >&2;}
2717 { (exit 1); exit 1; }; }
2719 # Provide some information about the compiler.
2720 echo "$as_me:$LINENO: checking for C compiler version" >&5
2721 ac_compiler=`set X $ac_compile; echo $2`
2722 { (ac_try="$ac_compiler --version >&5"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler --version >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732 { (ac_try="$ac_compiler -v >&5"
2733 case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -v >&5") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742 { (ac_try="$ac_compiler -V >&5"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -V >&5") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 ac_clean_files_save=$ac_clean_files
2769 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2770 # Try to create an executable without -o first, disregard a.out.
2771 # It will help us diagnose broken compilers, and finding out an intuition
2772 # of exeext.
2773 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2774 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2775 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2777 # List of possible output files, starting from the most likely.
2778 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2779 # only as a last resort. b.out is created by i960 compilers.
2780 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2782 # The IRIX 6 linker writes into existing files which may not be
2783 # executable, retaining their permissions. Remove them first so a
2784 # subsequent execution test works.
2785 ac_rmfiles=
2786 for ac_file in $ac_files
2788 case $ac_file in
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2791 esac
2792 done
2793 rm -f $ac_rmfiles
2795 if { (ac_try="$ac_link_default"
2796 case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_link_default") 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; then
2805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2806 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2807 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2808 # so that the user can short-circuit this test for compilers unknown to
2809 # Autoconf.
2810 for ac_file in $ac_files
2812 test -f "$ac_file" || continue
2813 case $ac_file in
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2816 [ab].out )
2817 # We found the default executable, but exeext='' is most
2818 # certainly right.
2819 break;;
2820 *.* )
2821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2822 then :; else
2823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825 # We set ac_cv_exeext here because the later test for it is not
2826 # safe: cross compilers may not add the suffix if given an `-o'
2827 # argument, so we may need to know it at that point already.
2828 # Even if this section looks crufty: it has the advantage of
2829 # actually working.
2830 break;;
2832 break;;
2833 esac
2834 done
2835 test "$ac_cv_exeext" = no && ac_cv_exeext=
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2842 See \`config.log' for more details." >&5
2843 echo "$as_me: error: C compiler cannot create executables
2844 See \`config.log' for more details." >&2;}
2845 { (exit 77); exit 77; }; }
2848 ac_exeext=$ac_cv_exeext
2849 { echo "$as_me:$LINENO: result: $ac_file" >&5
2850 echo "${ECHO_T}$ac_file" >&6; }
2852 # Check that the compiler produces executables we can run. If not, either
2853 # the compiler is broken, or we cross compile.
2854 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2855 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2857 # If not cross compiling, check that we can run a simple program.
2858 if test "$cross_compiling" != yes; then
2859 if { ac_try='./$ac_file'
2860 { (case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_try") 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 cross_compiling=no
2870 else
2871 if test "$cross_compiling" = maybe; then
2872 cross_compiling=yes
2873 else
2874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2875 If you meant to cross compile, use \`--host'.
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: cannot run C compiled programs.
2878 If you meant to cross compile, use \`--host'.
2879 See \`config.log' for more details." >&2;}
2880 { (exit 1); exit 1; }; }
2884 { echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6; }
2887 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2888 ac_clean_files=$ac_clean_files_save
2889 # Check that the compiler produces executables we can run. If not, either
2890 # the compiler is broken, or we cross compile.
2891 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2892 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2893 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2894 echo "${ECHO_T}$cross_compiling" >&6; }
2896 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2897 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2898 if { (ac_try="$ac_link"
2899 case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_link") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
2908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2910 # work properly (i.e., refer to `conftest.exe'), while it won't with
2911 # `rm'.
2912 for ac_file in conftest.exe conftest conftest.*; do
2913 test -f "$ac_file" || continue
2914 case $ac_file in
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917 break;;
2918 * ) break;;
2919 esac
2920 done
2921 else
2922 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2929 rm -f conftest$ac_cv_exeext
2930 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2931 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2933 rm -f conftest.$ac_ext
2934 EXEEXT=$ac_cv_exeext
2935 ac_exeext=$EXEEXT
2936 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2938 if test "${ac_cv_objext+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2949 main ()
2953 return 0;
2955 _ACEOF
2956 rm -f conftest.o conftest.obj
2957 if { (ac_try="$ac_compile"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; then
2967 for ac_file in conftest.o conftest.obj conftest.*; do
2968 test -f "$ac_file" || continue;
2969 case $ac_file in
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972 break;;
2973 esac
2974 done
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2980 See \`config.log' for more details." >&5
2981 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2988 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2989 echo "${ECHO_T}$ac_cv_objext" >&6; }
2990 OBJEXT=$ac_cv_objext
2991 ac_objext=$OBJEXT
2992 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2993 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2994 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3005 main ()
3007 #ifndef __GNUC__
3008 choke me
3009 #endif
3012 return 0;
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3017 case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 ac_compiler_gnu=yes
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 ac_compiler_gnu=no
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3061 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3062 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3063 GCC=`test $ac_compiler_gnu = yes && echo yes`
3064 ac_test_CFLAGS=${CFLAGS+set}
3065 ac_save_CFLAGS=$CFLAGS
3066 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3067 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_cc_g+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 ac_save_c_werror_flag=$ac_c_werror_flag
3072 ac_c_werror_flag=yes
3073 ac_cv_prog_cc_g=no
3074 CFLAGS="-g"
3075 cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h. */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3083 main ()
3087 return 0;
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_cv_prog_cc_g=yes
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 CFLAGS=""
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3138 main ()
3142 return 0;
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3147 case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3180 else
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3185 CFLAGS="-g"
3186 cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h. */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3194 main ()
3198 return 0;
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_try") 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 ac_cv_prog_cc_g=yes
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3252 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3262 else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3269 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3271 if test "${ac_cv_prog_cc_c89+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 ac_cv_prog_cc_c89=no
3275 ac_save_CC=$CC
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <stdarg.h>
3283 #include <stdio.h>
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3290 char **p;
3291 int i;
3293 return p[i];
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std. */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3316 #define FOO(x) 'x'
3317 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3319 int test (int i, double x);
3320 struct s1 {int (*f) (int a);};
3321 struct s2 {int (*f) (double a);};
3322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323 int argc;
3324 char **argv;
3326 main ()
3328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3330 return 0;
3332 _ACEOF
3333 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_try") 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 ac_cv_prog_cc_c89=$ac_arg
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3379 rm -f core conftest.err conftest.$ac_objext
3380 test "x$ac_cv_prog_cc_c89" != "xno" && break
3381 done
3382 rm -f conftest.$ac_ext
3383 CC=$ac_save_CC
3386 # AC_CACHE_VAL
3387 case "x$ac_cv_prog_cc_c89" in
3389 { echo "$as_me:$LINENO: result: none needed" >&5
3390 echo "${ECHO_T}none needed" >&6; } ;;
3391 xno)
3392 { echo "$as_me:$LINENO: result: unsupported" >&5
3393 echo "${ECHO_T}unsupported" >&6; } ;;
3395 CC="$CC $ac_cv_prog_cc_c89"
3396 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3398 esac
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3414 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3415 # On Suns, sometimes $CPP names a directory.
3416 if test -n "$CPP" && test -d "$CPP"; then
3417 CPP=
3419 if test -z "$CPP"; then
3420 if test "${ac_cv_prog_CPP+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 # Double quotes because CPP needs to be expanded
3424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3426 ac_preproc_ok=false
3427 for ac_c_preproc_warn_flag in '' yes
3429 # Use a header file that comes with gcc, so configuring glibc
3430 # with a fresh cross-compiler works.
3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432 # <limits.h> exists even on freestanding compilers.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error" is here to catch this case.
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 #ifdef __STDC__
3442 # include <limits.h>
3443 #else
3444 # include <assert.h>
3445 #endif
3446 Syntax error
3447 _ACEOF
3448 if { (ac_try="$ac_cpp conftest.$ac_ext"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 else
3465 ac_cpp_err=
3467 else
3468 ac_cpp_err=yes
3470 if test -z "$ac_cpp_err"; then
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 # Broken: fails on valid input.
3477 continue
3480 rm -f conftest.err conftest.$ac_ext
3482 # OK, works on sane cases. Now check whether nonexistent headers
3483 # can be detected and how.
3484 cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h. */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #include <ac_nonexistent.h>
3491 _ACEOF
3492 if { (ac_try="$ac_cpp conftest.$ac_ext"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev/null; then
3505 if test -s conftest.err; then
3506 ac_cpp_err=$ac_c_preproc_warn_flag
3507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3508 else
3509 ac_cpp_err=
3511 else
3512 ac_cpp_err=yes
3514 if test -z "$ac_cpp_err"; then
3515 # Broken: success on invalid input.
3516 continue
3517 else
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 # Passes both tests.
3522 ac_preproc_ok=:
3523 break
3526 rm -f conftest.err conftest.$ac_ext
3528 done
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3532 break
3535 done
3536 ac_cv_prog_CPP=$CPP
3539 CPP=$ac_cv_prog_CPP
3540 else
3541 ac_cv_prog_CPP=$CPP
3543 { echo "$as_me:$LINENO: result: $CPP" >&5
3544 echo "${ECHO_T}$CPP" >&6; }
3545 ac_preproc_ok=false
3546 for ac_c_preproc_warn_flag in '' yes
3548 # Use a header file that comes with gcc, so configuring glibc
3549 # with a fresh cross-compiler works.
3550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551 # <limits.h> exists even on freestanding compilers.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error" is here to catch this case.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #ifdef __STDC__
3561 # include <limits.h>
3562 #else
3563 # include <assert.h>
3564 #endif
3565 Syntax error
3566 _ACEOF
3567 if { (ac_try="$ac_cpp conftest.$ac_ext"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583 else
3584 ac_cpp_err=
3586 else
3587 ac_cpp_err=yes
3589 if test -z "$ac_cpp_err"; then
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 # Broken: fails on valid input.
3596 continue
3599 rm -f conftest.err conftest.$ac_ext
3601 # OK, works on sane cases. Now check whether nonexistent headers
3602 # can be detected and how.
3603 cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h. */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 #include <ac_nonexistent.h>
3610 _ACEOF
3611 if { (ac_try="$ac_cpp conftest.$ac_ext"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3627 else
3628 ac_cpp_err=
3630 else
3631 ac_cpp_err=yes
3633 if test -z "$ac_cpp_err"; then
3634 # Broken: success on invalid input.
3635 continue
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 # Passes both tests.
3641 ac_preproc_ok=:
3642 break
3645 rm -f conftest.err conftest.$ac_ext
3647 done
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then
3652 else
3653 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details." >&5
3655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log' for more details." >&2;}
3657 { (exit 1); exit 1; }; }
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3669 if test "${ac_cv_path_GREP+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 # Extract the first word of "grep ggrep" to use in msg output
3673 if test -z "$GREP"; then
3674 set dummy grep ggrep; ac_prog_name=$2
3675 if test "${ac_cv_path_GREP+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 ac_path_GREP_found=false
3679 # Loop through the user's path and test for each of PROGNAME-LIST
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_prog in grep ggrep; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3688 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3689 # Check for GNU ac_path_GREP and select it if it is found.
3690 # Check for GNU $ac_path_GREP
3691 case `"$ac_path_GREP" --version 2>&1` in
3692 *GNU*)
3693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3695 ac_count=0
3696 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3697 while :
3699 cat "conftest.in" "conftest.in" >"conftest.tmp"
3700 mv "conftest.tmp" "conftest.in"
3701 cp "conftest.in" "conftest.nl"
3702 echo 'GREP' >> "conftest.nl"
3703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705 ac_count=`expr $ac_count + 1`
3706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707 # Best one so far, save it but keep looking for a better one
3708 ac_cv_path_GREP="$ac_path_GREP"
3709 ac_path_GREP_max=$ac_count
3711 # 10*(2^10) chars as input seems more than enough
3712 test $ac_count -gt 10 && break
3713 done
3714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 esac
3718 $ac_path_GREP_found && break 3
3719 done
3720 done
3722 done
3723 IFS=$as_save_IFS
3728 GREP="$ac_cv_path_GREP"
3729 if test -z "$GREP"; then
3730 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3732 { (exit 1); exit 1; }; }
3735 else
3736 ac_cv_path_GREP=$GREP
3741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3743 GREP="$ac_cv_path_GREP"
3746 { echo "$as_me:$LINENO: checking for egrep" >&5
3747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3752 then ac_cv_path_EGREP="$GREP -E"
3753 else
3754 # Extract the first word of "egrep" to use in msg output
3755 if test -z "$EGREP"; then
3756 set dummy egrep; ac_prog_name=$2
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 ac_path_EGREP_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in egrep; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3770 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3771 # Check for GNU ac_path_EGREP and select it if it is found.
3772 # Check for GNU $ac_path_EGREP
3773 case `"$ac_path_EGREP" --version 2>&1` in
3774 *GNU*)
3775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3777 ac_count=0
3778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779 while :
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 echo 'EGREP' >> "conftest.nl"
3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 ac_count=`expr $ac_count + 1`
3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_EGREP="$ac_path_EGREP"
3791 ac_path_EGREP_max=$ac_count
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3795 done
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797 esac
3800 $ac_path_EGREP_found && break 3
3801 done
3802 done
3804 done
3805 IFS=$as_save_IFS
3810 EGREP="$ac_cv_path_EGREP"
3811 if test -z "$EGREP"; then
3812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814 { (exit 1); exit 1; }; }
3817 else
3818 ac_cv_path_EGREP=$EGREP
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3826 EGREP="$ac_cv_path_EGREP"
3829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3831 if test "${ac_cv_header_stdc+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h. */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #include <stdlib.h>
3841 #include <stdarg.h>
3842 #include <string.h>
3843 #include <float.h>
3846 main ()
3850 return 0;
3852 _ACEOF
3853 rm -f conftest.$ac_objext
3854 if { (ac_try="$ac_compile"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868 { (case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_try") 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_try") 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_header_stdc=yes
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 ac_cv_header_stdc=no
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 if test $ac_cv_header_stdc = yes; then
3898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <string.h>
3907 _ACEOF
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "memchr" >/dev/null 2>&1; then
3911 else
3912 ac_cv_header_stdc=no
3914 rm -f conftest*
3918 if test $ac_cv_header_stdc = yes; then
3919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3920 cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h. */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <stdlib.h>
3928 _ACEOF
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930 $EGREP "free" >/dev/null 2>&1; then
3932 else
3933 ac_cv_header_stdc=no
3935 rm -f conftest*
3939 if test $ac_cv_header_stdc = yes; then
3940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3941 if test "$cross_compiling" = yes; then
3943 else
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 #include <ctype.h>
3951 #include <stdlib.h>
3952 #if ((' ' & 0x0FF) == 0x020)
3953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3955 #else
3956 # define ISLOWER(c) \
3957 (('a' <= (c) && (c) <= 'i') \
3958 || ('j' <= (c) && (c) <= 'r') \
3959 || ('s' <= (c) && (c) <= 'z'))
3960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3961 #endif
3963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3965 main ()
3967 int i;
3968 for (i = 0; i < 256; i++)
3969 if (XOR (islower (i), ISLOWER (i))
3970 || toupper (i) != TOUPPER (i))
3971 return 2;
3972 return 0;
3974 _ACEOF
3975 rm -f conftest$ac_exeext
3976 if { (ac_try="$ac_link"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_link") 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3986 { (case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_try") 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3996 else
3997 echo "$as_me: program exited with status $ac_status" >&5
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ( exit $ac_status )
4002 ac_cv_header_stdc=no
4004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4012 if test $ac_cv_header_stdc = yes; then
4014 cat >>confdefs.h <<\_ACEOF
4015 #define STDC_HEADERS 1
4016 _ACEOF
4020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4031 inttypes.h stdint.h unistd.h
4033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 $ac_includes_default
4047 #include <$ac_header>
4048 _ACEOF
4049 rm -f conftest.$ac_objext
4050 if { (ac_try="$ac_compile"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 eval "$as_ac_Header=yes"
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 eval "$as_ac_Header=no"
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_res=`eval echo '${'$as_ac_Header'}'`
4094 { echo "$as_me:$LINENO: result: $ac_res" >&5
4095 echo "${ECHO_T}$ac_res" >&6; }
4096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097 cat >>confdefs.h <<_ACEOF
4098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4099 _ACEOF
4103 done
4106 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4107 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4108 if test "${ac_cv_c_bigendian+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 # See if sys/param.h defines the BYTE_ORDER macro.
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #include <sys/types.h>
4119 #include <sys/param.h>
4122 main ()
4124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4125 bogus endian macros
4126 #endif
4129 return 0;
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 # It does; now see whether it defined to BIG_ENDIAN or not.
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #include <sys/types.h>
4174 #include <sys/param.h>
4177 main ()
4179 #if BYTE_ORDER != BIG_ENDIAN
4180 not big endian
4181 #endif
4184 return 0;
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (ac_try="$ac_compile"
4189 case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_try") 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_c_bigendian=yes
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_cv_c_bigendian=no
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 # It does not; compile a test program.
4235 if test "$cross_compiling" = yes; then
4236 # try to guess the endianness by grepping values into an object file
4237 ac_cv_c_bigendian=unknown
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4245 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4246 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4247 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4248 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4249 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4251 main ()
4253 _ascii (); _ebcdic ();
4255 return 0;
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4260 case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4293 ac_cv_c_bigendian=yes
4295 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4296 if test "$ac_cv_c_bigendian" = unknown; then
4297 ac_cv_c_bigendian=no
4298 else
4299 # finding both strings is unlikely to happen, but who knows?
4300 ac_cv_c_bigendian=unknown
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 else
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 $ac_includes_default
4320 main ()
4323 /* Are we little or big endian? From Harbison&Steele. */
4324 union
4326 long int l;
4327 char c[sizeof (long int)];
4328 } u;
4329 u.l = 1;
4330 return u.c[sizeof (long int) - 1] == 1;
4333 return 0;
4335 _ACEOF
4336 rm -f conftest$ac_exeext
4337 if { (ac_try="$ac_link"
4338 case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_link") 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_c_bigendian=no
4357 else
4358 echo "$as_me: program exited with status $ac_status" >&5
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 ( exit $ac_status )
4363 ac_cv_c_bigendian=yes
4365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4374 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4375 case $ac_cv_c_bigendian in
4376 yes)
4377 ENDIAN=big
4380 ENDIAN=little
4383 { { echo "$as_me:$LINENO: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385 echo "$as_me: error: unknown endianness
4386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4388 esac
4391 if test "$cross_compiling" = yes; then
4392 LLVM_CROSS_COMPILING=1
4395 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4396 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4397 if test "${ac_cv_build_exeext+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4401 ac_cv_build_exeext=.exe
4402 else
4403 ac_build_prefix=${build_alias}-
4405 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4406 set dummy ${ac_build_prefix}gcc; ac_word=$2
4407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 if test -n "$BUILD_CC"; then
4413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4428 IFS=$as_save_IFS
4432 BUILD_CC=$ac_cv_prog_BUILD_CC
4433 if test -n "$BUILD_CC"; then
4434 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4435 echo "${ECHO_T}$BUILD_CC" >&6; }
4436 else
4437 { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4442 if test -z "$BUILD_CC"; then
4443 # Extract the first word of "gcc", so it can be a program name with args.
4444 set dummy gcc; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450 if test -n "$BUILD_CC"; then
4451 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_BUILD_CC="gcc"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4466 IFS=$as_save_IFS
4470 BUILD_CC=$ac_cv_prog_BUILD_CC
4471 if test -n "$BUILD_CC"; then
4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473 echo "${ECHO_T}$BUILD_CC" >&6; }
4474 else
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4480 if test -z "$BUILD_CC"; then
4481 # Extract the first word of "cc", so it can be a program name with args.
4482 set dummy cc; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 if test -n "$BUILD_CC"; then
4489 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4490 else
4491 ac_prog_rejected=no
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4500 ac_prog_rejected=yes
4501 continue
4503 ac_cv_prog_BUILD_CC="cc"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4507 done
4508 done
4509 IFS=$as_save_IFS
4511 if test $ac_prog_rejected = yes; then
4512 # We found a bogon in the path, so make sure we never use it.
4513 set dummy $ac_cv_prog_BUILD_CC
4514 shift
4515 if test $# != 0; then
4516 # We chose a different compiler from the bogus one.
4517 # However, it has the same basename, so the bogon will be chosen
4518 # first if we set BUILD_CC to just the basename; use the full file name.
4519 shift
4520 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4525 BUILD_CC=$ac_cv_prog_BUILD_CC
4526 if test -n "$BUILD_CC"; then
4527 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4528 echo "${ECHO_T}$BUILD_CC" >&6; }
4529 else
4530 { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4537 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4538 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4539 { (exit 1); exit 1; }; }
4540 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4541 rm -f conftest*
4542 echo 'int main () { return 0; }' > conftest.$ac_ext
4543 ac_cv_build_exeext=
4544 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4545 (eval $ac_build_link) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 for file in conftest.*; do
4550 case $file in
4551 *.c | *.o | *.obj | *.dSYM) ;;
4552 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4553 esac
4554 done
4555 else
4556 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4557 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4558 { (exit 1); exit 1; }; }
4560 rm -f conftest*
4561 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4565 BUILD_EXEEXT=""
4566 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4567 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4568 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4569 ac_build_exeext=$BUILD_EXEEXT
4571 ac_build_prefix=${build_alias}-
4572 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4573 set dummy ${ac_build_prefix}g++; ac_word=$2
4574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4576 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 if test -n "$BUILD_CXX"; then
4580 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4593 done
4594 done
4595 IFS=$as_save_IFS
4599 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4600 if test -n "$BUILD_CXX"; then
4601 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4602 echo "${ECHO_T}$BUILD_CXX" >&6; }
4603 else
4604 { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4609 if test -z "$BUILD_CXX"; then
4610 # Extract the first word of "g++", so it can be a program name with args.
4611 set dummy g++; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 if test -n "$BUILD_CXX"; then
4618 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BUILD_CXX="g++"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4638 if test -n "$BUILD_CXX"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4640 echo "${ECHO_T}$BUILD_CXX" >&6; }
4641 else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test -z "$BUILD_CXX"; then
4648 # Extract the first word of "c++", so it can be a program name with args.
4649 set dummy c++; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 if test -n "$BUILD_CXX"; then
4656 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4657 else
4658 ac_prog_rejected=no
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4667 ac_prog_rejected=yes
4668 continue
4670 ac_cv_prog_BUILD_CXX="c++"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4674 done
4675 done
4676 IFS=$as_save_IFS
4678 if test $ac_prog_rejected = yes; then
4679 # We found a bogon in the path, so make sure we never use it.
4680 set dummy $ac_cv_prog_BUILD_CXX
4681 shift
4682 if test $# != 0; then
4683 # We chose a different compiler from the bogus one.
4684 # However, it has the same basename, so the bogon will be chosen
4685 # first if we set BUILD_CXX to just the basename; use the full file name.
4686 shift
4687 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4692 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4693 if test -n "$BUILD_CXX"; then
4694 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4695 echo "${ECHO_T}$BUILD_CXX" >&6; }
4696 else
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4704 else
4705 LLVM_CROSS_COMPILING=0
4709 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4710 cvsbuild="yes"
4711 optimize="no"
4712 CVSBUILD=CVSBUILD=1
4714 else
4715 cvsbuild="no"
4716 optimize="yes"
4720 # Check whether --enable-optimized was given.
4721 if test "${enable_optimized+set}" = set; then
4722 enableval=$enable_optimized;
4723 else
4724 enableval=$optimize
4727 if test ${enableval} = "no" ; then
4728 ENABLE_OPTIMIZED=
4730 else
4731 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4735 # Check whether --enable-assertions was given.
4736 if test "${enable_assertions+set}" = set; then
4737 enableval=$enable_assertions;
4738 else
4739 enableval="yes"
4742 if test ${enableval} = "yes" ; then
4743 DISABLE_ASSERTIONS=
4745 else
4746 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4750 # Check whether --enable-expensive-checks was given.
4751 if test "${enable_expensive_checks+set}" = set; then
4752 enableval=$enable_expensive_checks;
4753 else
4754 enableval="no"
4757 if test ${enableval} = "yes" ; then
4758 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4760 EXPENSIVE_CHECKS=yes
4762 else
4763 ENABLE_EXPENSIVE_CHECKS=
4765 EXPENSIVE_CHECKS=no
4769 # Check whether --enable-debug-runtime was given.
4770 if test "${enable_debug_runtime+set}" = set; then
4771 enableval=$enable_debug_runtime;
4772 else
4773 enableval=no
4776 if test ${enableval} = "no" ; then
4777 DEBUG_RUNTIME=
4779 else
4780 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4784 # Check whether --enable-jit was given.
4785 if test "${enable_jit+set}" = set; then
4786 enableval=$enable_jit;
4787 else
4788 enableval=default
4791 if test ${enableval} = "no"
4792 then
4793 JIT=
4795 else
4796 case "$llvm_cv_target_arch" in
4797 x86) TARGET_HAS_JIT=1
4799 Sparc) TARGET_HAS_JIT=0
4801 PowerPC) TARGET_HAS_JIT=1
4803 x86_64) TARGET_HAS_JIT=1
4805 Alpha) TARGET_HAS_JIT=1
4807 IA64) TARGET_HAS_JIT=0
4809 ARM) TARGET_HAS_JIT=0
4811 Mips) TARGET_HAS_JIT=0
4813 PIC16) TARGET_HAS_JIT=0
4815 XCore) TARGET_HAS_JIT=0
4817 *) TARGET_HAS_JIT=0
4819 esac
4822 # Check whether --enable-doxygen was given.
4823 if test "${enable_doxygen+set}" = set; then
4824 enableval=$enable_doxygen;
4825 else
4826 enableval=default
4829 case "$enableval" in
4830 yes) ENABLE_DOXYGEN=1
4832 no) ENABLE_DOXYGEN=0
4834 default) ENABLE_DOXYGEN=0
4836 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4837 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; } ;;
4839 esac
4841 # Check whether --enable-threads was given.
4842 if test "${enable_threads+set}" = set; then
4843 enableval=$enable_threads;
4844 else
4845 enableval=default
4848 case "$enableval" in
4849 yes) ENABLE_THREADS=1
4851 no) ENABLE_THREADS=0
4853 default) ENABLE_THREADS=1
4855 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4856 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4858 esac
4860 cat >>confdefs.h <<_ACEOF
4861 #define ENABLE_THREADS $ENABLE_THREADS
4862 _ACEOF
4865 # Check whether --enable-pic was given.
4866 if test "${enable_pic+set}" = set; then
4867 enableval=$enable_pic;
4868 else
4869 enableval=default
4872 case "$enableval" in
4873 yes) ENABLE_PIC=1
4875 no) ENABLE_PIC=0
4877 default) ENABLE_PIC=0
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4882 esac
4884 cat >>confdefs.h <<_ACEOF
4885 #define ENABLE_PIC $ENABLE_PIC
4886 _ACEOF
4889 TARGETS_TO_BUILD=""
4890 # Check whether --enable-targets was given.
4891 if test "${enable_targets+set}" = set; then
4892 enableval=$enable_targets;
4893 else
4894 enableval=all
4897 case "$enableval" in
4898 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4899 host-only)
4900 case "$llvm_cv_target_arch" in
4901 x86) TARGETS_TO_BUILD="X86" ;;
4902 x86_64) TARGETS_TO_BUILD="X86" ;;
4903 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4904 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4905 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4906 IA64) TARGETS_TO_BUILD="IA64" ;;
4907 ARM) TARGETS_TO_BUILD="ARM" ;;
4908 Mips) TARGETS_TO_BUILD="Mips" ;;
4909 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4910 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4911 XCore) TARGETS_TO_BUILD="XCore" ;;
4912 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4913 echo "$as_me: error: Can not set target to build" >&2;}
4914 { (exit 1); exit 1; }; } ;;
4915 esac
4917 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4918 case "$a_target" in
4919 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4920 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4921 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4922 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4923 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4924 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4925 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4926 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4927 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4928 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4929 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4930 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4931 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4932 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4933 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4934 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4935 { (exit 1); exit 1; }; } ;;
4936 esac
4937 done
4939 esac
4940 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4943 # Check whether --enable-cbe-printf-a was given.
4944 if test "${enable_cbe_printf_a+set}" = set; then
4945 enableval=$enable_cbe_printf_a;
4946 else
4947 enableval=default
4950 case "$enableval" in
4951 yes) ENABLE_CBE_PRINTF_A=1
4953 no) ENABLE_CBE_PRINTF_A=0
4955 default) ENABLE_CBE_PRINTF_A=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960 esac
4962 cat >>confdefs.h <<_ACEOF
4963 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4964 _ACEOF
4968 # Check whether --with-llvmgccdir was given.
4969 if test "${with_llvmgccdir+set}" = set; then
4970 withval=$with_llvmgccdir;
4971 else
4972 withval=default
4975 case "$withval" in
4976 default) WITH_LLVMGCCDIR=default ;;
4977 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4978 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4979 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4981 esac
4984 # Check whether --with-llvmgcc was given.
4985 if test "${with_llvmgcc+set}" = set; then
4986 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4987 WITH_LLVMGCCDIR=""
4992 # Check whether --with-llvmgxx was given.
4993 if test "${with_llvmgxx+set}" = set; then
4994 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4995 WITH_LLVMGCCDIR=""
4999 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5000 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5001 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5002 { (exit 1); exit 1; }; };
5005 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5006 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5007 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5008 { (exit 1); exit 1; }; };
5012 # Check whether --with-extra-options was given.
5013 if test "${with_extra_options+set}" = set; then
5014 withval=$with_extra_options;
5015 else
5016 withval=default
5019 case "$withval" in
5020 default) EXTRA_OPTIONS= ;;
5021 *) EXTRA_OPTIONS=$withval ;;
5022 esac
5023 EXTRA_OPTIONS=$EXTRA_OPTIONS
5026 # Check whether --enable-bindings was given.
5027 if test "${enable_bindings+set}" = set; then
5028 enableval=$enable_bindings;
5029 else
5030 enableval=default
5033 BINDINGS_TO_BUILD=""
5034 case "$enableval" in
5035 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5036 all ) BINDINGS_TO_BUILD="ocaml" ;;
5037 none | no) BINDINGS_TO_BUILD="" ;;
5038 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5039 case "$a_binding" in
5040 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5041 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5042 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5043 { (exit 1); exit 1; }; } ;;
5044 esac
5045 done
5047 esac
5050 # Check whether --with-ocaml-libdir was given.
5051 if test "${with_ocaml_libdir+set}" = set; then
5052 withval=$with_ocaml_libdir;
5053 else
5054 withval=auto
5057 case "$withval" in
5058 auto) with_ocaml_libdir="$withval" ;;
5059 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5060 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5061 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5062 { (exit 1); exit 1; }; } ;;
5063 esac
5066 ac_ext=c
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5073 # On Suns, sometimes $CPP names a directory.
5074 if test -n "$CPP" && test -d "$CPP"; then
5075 CPP=
5077 if test -z "$CPP"; then
5078 if test "${ac_cv_prog_CPP+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 # Double quotes because CPP needs to be expanded
5082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 ac_preproc_ok=false
5085 for ac_c_preproc_warn_flag in '' yes
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 #ifdef __STDC__
5100 # include <limits.h>
5101 #else
5102 # include <assert.h>
5103 #endif
5104 Syntax error
5105 _ACEOF
5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110 esac
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_c_preproc_warn_flag
5121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5122 else
5123 ac_cpp_err=
5125 else
5126 ac_cpp_err=yes
5128 if test -z "$ac_cpp_err"; then
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 # Broken: fails on valid input.
5135 continue
5138 rm -f conftest.err conftest.$ac_ext
5140 # OK, works on sane cases. Now check whether nonexistent headers
5141 # can be detected and how.
5142 cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h. */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 #include <ac_nonexistent.h>
5149 _ACEOF
5150 if { (ac_try="$ac_cpp conftest.$ac_ext"
5151 case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_c_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166 else
5167 ac_cpp_err=
5169 else
5170 ac_cpp_err=yes
5172 if test -z "$ac_cpp_err"; then
5173 # Broken: success on invalid input.
5174 continue
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Passes both tests.
5180 ac_preproc_ok=:
5181 break
5184 rm -f conftest.err conftest.$ac_ext
5186 done
5187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188 rm -f conftest.err conftest.$ac_ext
5189 if $ac_preproc_ok; then
5190 break
5193 done
5194 ac_cv_prog_CPP=$CPP
5197 CPP=$ac_cv_prog_CPP
5198 else
5199 ac_cv_prog_CPP=$CPP
5201 { echo "$as_me:$LINENO: result: $CPP" >&5
5202 echo "${ECHO_T}$CPP" >&6; }
5203 ac_preproc_ok=false
5204 for ac_c_preproc_warn_flag in '' yes
5206 # Use a header file that comes with gcc, so configuring glibc
5207 # with a fresh cross-compiler works.
5208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209 # <limits.h> exists even on freestanding compilers.
5210 # On the NeXT, cc -E runs the code through the compiler's parser,
5211 # not just through cpp. "Syntax error" is here to catch this case.
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 #ifdef __STDC__
5219 # include <limits.h>
5220 #else
5221 # include <assert.h>
5222 #endif
5223 Syntax error
5224 _ACEOF
5225 if { (ac_try="$ac_cpp conftest.$ac_ext"
5226 case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } >/dev/null; then
5238 if test -s conftest.err; then
5239 ac_cpp_err=$ac_c_preproc_warn_flag
5240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241 else
5242 ac_cpp_err=
5244 else
5245 ac_cpp_err=yes
5247 if test -z "$ac_cpp_err"; then
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 # Broken: fails on valid input.
5254 continue
5257 rm -f conftest.err conftest.$ac_ext
5259 # OK, works on sane cases. Now check whether nonexistent headers
5260 # can be detected and how.
5261 cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 #include <ac_nonexistent.h>
5268 _ACEOF
5269 if { (ac_try="$ac_cpp conftest.$ac_ext"
5270 case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273 esac
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 else
5286 ac_cpp_err=
5288 else
5289 ac_cpp_err=yes
5291 if test -z "$ac_cpp_err"; then
5292 # Broken: success on invalid input.
5293 continue
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 # Passes both tests.
5299 ac_preproc_ok=:
5300 break
5303 rm -f conftest.err conftest.$ac_ext
5305 done
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then
5310 else
5311 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5312 See \`config.log' for more details." >&5
5313 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5314 See \`config.log' for more details." >&2;}
5315 { (exit 1); exit 1; }; }
5318 ac_ext=c
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324 ac_ext=c
5325 ac_cpp='$CPP $CPPFLAGS'
5326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329 if test -n "$ac_tool_prefix"; then
5330 for ac_prog in gcc
5332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5336 if test "${ac_cv_prog_CC+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 if test -n "$CC"; then
5340 ac_cv_prog_CC="$CC" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5353 done
5354 done
5355 IFS=$as_save_IFS
5359 CC=$ac_cv_prog_CC
5360 if test -n "$CC"; then
5361 { echo "$as_me:$LINENO: result: $CC" >&5
5362 echo "${ECHO_T}$CC" >&6; }
5363 else
5364 { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5369 test -n "$CC" && break
5370 done
5372 if test -z "$CC"; then
5373 ac_ct_CC=$CC
5374 for ac_prog in gcc
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy $ac_prog; ac_word=$2
5378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 if test -n "$ac_ct_CC"; then
5384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_CC="$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5404 if test -n "$ac_ct_CC"; then
5405 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5406 echo "${ECHO_T}$ac_ct_CC" >&6; }
5407 else
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5413 test -n "$ac_ct_CC" && break
5414 done
5416 if test "x$ac_ct_CC" = x; then
5417 CC=""
5418 else
5419 case $cross_compiling:$ac_tool_warned in
5420 yes:)
5421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5422 whose name does not start with the host triplet. If you think this
5423 configuration is useful to you, please write to autoconf@gnu.org." >&5
5424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5425 whose name does not start with the host triplet. If you think this
5426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5427 ac_tool_warned=yes ;;
5428 esac
5429 CC=$ac_ct_CC
5434 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5435 See \`config.log' for more details." >&5
5436 echo "$as_me: error: no acceptable C compiler found in \$PATH
5437 See \`config.log' for more details." >&2;}
5438 { (exit 1); exit 1; }; }
5440 # Provide some information about the compiler.
5441 echo "$as_me:$LINENO: checking for C compiler version" >&5
5442 ac_compiler=`set X $ac_compile; echo $2`
5443 { (ac_try="$ac_compiler --version >&5"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compiler --version >&5") 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }
5453 { (ac_try="$ac_compiler -v >&5"
5454 case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_compiler -v >&5") 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }
5463 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }
5474 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5475 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5476 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5487 main ()
5489 #ifndef __GNUC__
5490 choke me
5491 #endif
5494 return 0;
5496 _ACEOF
5497 rm -f conftest.$ac_objext
5498 if { (ac_try="$ac_compile"
5499 case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compile") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5512 { (case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_try") 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_compiler_gnu=yes
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_compiler_gnu=no
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5543 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5544 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5545 GCC=`test $ac_compiler_gnu = yes && echo yes`
5546 ac_test_CFLAGS=${CFLAGS+set}
5547 ac_save_CFLAGS=$CFLAGS
5548 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5549 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5550 if test "${ac_cv_prog_cc_g+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 ac_save_c_werror_flag=$ac_c_werror_flag
5554 ac_c_werror_flag=yes
5555 ac_cv_prog_cc_g=no
5556 CFLAGS="-g"
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5565 main ()
5569 return 0;
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (ac_try="$ac_compile"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_try") 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_prog_cc_g=yes
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 CFLAGS=""
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5620 main ()
5624 return 0;
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5642 { (case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645 esac
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_try") 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_try") 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5662 else
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5666 ac_c_werror_flag=$ac_save_c_werror_flag
5667 CFLAGS="-g"
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5676 main ()
5680 return 0;
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5685 case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_prog_cc_g=yes
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 ac_c_werror_flag=$ac_save_c_werror_flag
5734 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5735 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5736 if test "$ac_test_CFLAGS" = set; then
5737 CFLAGS=$ac_save_CFLAGS
5738 elif test $ac_cv_prog_cc_g = yes; then
5739 if test "$GCC" = yes; then
5740 CFLAGS="-g -O2"
5741 else
5742 CFLAGS="-g"
5744 else
5745 if test "$GCC" = yes; then
5746 CFLAGS="-O2"
5747 else
5748 CFLAGS=
5751 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5752 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5753 if test "${ac_cv_prog_cc_c89+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 ac_cv_prog_cc_c89=no
5757 ac_save_CC=$CC
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <stdarg.h>
5765 #include <stdio.h>
5766 #include <sys/types.h>
5767 #include <sys/stat.h>
5768 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5769 struct buf { int x; };
5770 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5771 static char *e (p, i)
5772 char **p;
5773 int i;
5775 return p[i];
5777 static char *f (char * (*g) (char **, int), char **p, ...)
5779 char *s;
5780 va_list v;
5781 va_start (v,p);
5782 s = g (p, va_arg (v,int));
5783 va_end (v);
5784 return s;
5787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5788 function prototypes and stuff, but not '\xHH' hex character constants.
5789 These don't provoke an error unfortunately, instead are silently treated
5790 as 'x'. The following induces an error, until -std is added to get
5791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5792 array size at least. It's necessary to write '\x00'==0 to get something
5793 that's true only with -std. */
5794 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5796 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5797 inside strings and character constants. */
5798 #define FOO(x) 'x'
5799 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5801 int test (int i, double x);
5802 struct s1 {int (*f) (int a);};
5803 struct s2 {int (*f) (double a);};
5804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5805 int argc;
5806 char **argv;
5808 main ()
5810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5812 return 0;
5814 _ACEOF
5815 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5818 CC="$ac_save_CC $ac_arg"
5819 rm -f conftest.$ac_objext
5820 if { (ac_try="$ac_compile"
5821 case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5834 { (case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_try") 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest.$ac_objext'
5844 { (case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_try") 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_prog_cc_c89=$ac_arg
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5861 rm -f core conftest.err conftest.$ac_objext
5862 test "x$ac_cv_prog_cc_c89" != "xno" && break
5863 done
5864 rm -f conftest.$ac_ext
5865 CC=$ac_save_CC
5868 # AC_CACHE_VAL
5869 case "x$ac_cv_prog_cc_c89" in
5871 { echo "$as_me:$LINENO: result: none needed" >&5
5872 echo "${ECHO_T}none needed" >&6; } ;;
5873 xno)
5874 { echo "$as_me:$LINENO: result: unsupported" >&5
5875 echo "${ECHO_T}unsupported" >&6; } ;;
5877 CC="$CC $ac_cv_prog_cc_c89"
5878 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5879 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5880 esac
5883 ac_ext=c
5884 ac_cpp='$CPP $CPPFLAGS'
5885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889 ac_ext=cpp
5890 ac_cpp='$CXXCPP $CPPFLAGS'
5891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894 if test -z "$CXX"; then
5895 if test -n "$CCC"; then
5896 CXX=$CCC
5897 else
5898 if test -n "$ac_tool_prefix"; then
5899 for ac_prog in g++
5901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_CXX+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 if test -n "$CXX"; then
5909 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5922 done
5923 done
5924 IFS=$as_save_IFS
5928 CXX=$ac_cv_prog_CXX
5929 if test -n "$CXX"; then
5930 { echo "$as_me:$LINENO: result: $CXX" >&5
5931 echo "${ECHO_T}$CXX" >&6; }
5932 else
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5938 test -n "$CXX" && break
5939 done
5941 if test -z "$CXX"; then
5942 ac_ct_CXX=$CXX
5943 for ac_prog in g++
5945 # Extract the first word of "$ac_prog", so it can be a program name with args.
5946 set dummy $ac_prog; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 if test -n "$ac_ct_CXX"; then
5953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_CXX="$ac_prog"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5966 done
5967 done
5968 IFS=$as_save_IFS
5972 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5973 if test -n "$ac_ct_CXX"; then
5974 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5975 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5976 else
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5982 test -n "$ac_ct_CXX" && break
5983 done
5985 if test "x$ac_ct_CXX" = x; then
5986 CXX="g++"
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989 yes:)
5990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5991 whose name does not start with the host triplet. If you think this
5992 configuration is useful to you, please write to autoconf@gnu.org." >&5
5993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5994 whose name does not start with the host triplet. If you think this
5995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998 CXX=$ac_ct_CXX
6004 # Provide some information about the compiler.
6005 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6006 ac_compiler=`set X $ac_compile; echo $2`
6007 { (ac_try="$ac_compiler --version >&5"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compiler --version >&5") 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }
6017 { (ac_try="$ac_compiler -v >&5"
6018 case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021 esac
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_compiler -v >&5") 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }
6027 { (ac_try="$ac_compiler -V >&5"
6028 case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031 esac
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_compiler -V >&5") 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }
6038 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6039 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6040 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6051 main ()
6053 #ifndef __GNUC__
6054 choke me
6055 #endif
6058 return 0;
6060 _ACEOF
6061 rm -f conftest.$ac_objext
6062 if { (ac_try="$ac_compile"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compile") 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6076 { (case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_try") 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_try") 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_compiler_gnu=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_compiler_gnu=no
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6107 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6108 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6109 GXX=`test $ac_compiler_gnu = yes && echo yes`
6110 ac_test_CXXFLAGS=${CXXFLAGS+set}
6111 ac_save_CXXFLAGS=$CXXFLAGS
6112 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6113 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6114 if test "${ac_cv_prog_cxx_g+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6118 ac_cxx_werror_flag=yes
6119 ac_cv_prog_cxx_g=no
6120 CXXFLAGS="-g"
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6129 main ()
6133 return 0;
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_prog_cxx_g=yes
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 CXXFLAGS=""
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6184 main ()
6188 return 0;
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6206 { (case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_try") 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219 esac
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_try") 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6231 CXXFLAGS="-g"
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6240 main ()
6244 return 0;
6246 _ACEOF
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6262 { (case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_try") 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try='test -s conftest.$ac_objext'
6272 { (case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_try") 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_prog_cxx_g=yes
6282 else
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6298 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6299 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6300 if test "$ac_test_CXXFLAGS" = set; then
6301 CXXFLAGS=$ac_save_CXXFLAGS
6302 elif test $ac_cv_prog_cxx_g = yes; then
6303 if test "$GXX" = yes; then
6304 CXXFLAGS="-g -O2"
6305 else
6306 CXXFLAGS="-g"
6308 else
6309 if test "$GXX" = yes; then
6310 CXXFLAGS="-O2"
6311 else
6312 CXXFLAGS=
6315 ac_ext=c
6316 ac_cpp='$CPP $CPPFLAGS'
6317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6321 { echo "$as_me:$LINENO: checking " >&5
6322 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6323 if test "${ac_cv_has_flex+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 for ac_prog in flex lex
6328 # Extract the first word of "$ac_prog", so it can be a program name with args.
6329 set dummy $ac_prog; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_prog_LEX+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 if test -n "$LEX"; then
6336 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_LEX="$ac_prog"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6349 done
6350 done
6351 IFS=$as_save_IFS
6355 LEX=$ac_cv_prog_LEX
6356 if test -n "$LEX"; then
6357 { echo "$as_me:$LINENO: result: $LEX" >&5
6358 echo "${ECHO_T}$LEX" >&6; }
6359 else
6360 { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6365 test -n "$LEX" && break
6366 done
6367 test -n "$LEX" || LEX=":"
6369 if test -z "$LEXLIB"
6370 then
6371 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6372 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6373 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376 ac_check_lib_save_LIBS=$LIBS
6377 LIBS="-lfl $LIBS"
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6385 /* Override any GCC internal prototype to avoid an error.
6386 Use char because int might match the return type of a GCC
6387 builtin and then its argument prototype would still apply. */
6388 #ifdef __cplusplus
6389 extern "C"
6390 #endif
6391 char yywrap ();
6393 main ()
6395 return yywrap ();
6397 return 0;
6399 _ACEOF
6400 rm -f conftest.$ac_objext conftest$ac_exeext
6401 if { (ac_try="$ac_link"
6402 case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_link") 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6415 { (case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_try") 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_cv_lib_fl_yywrap=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 ac_cv_lib_fl_yywrap=no
6442 rm -f core conftest.err conftest.$ac_objext \
6443 conftest$ac_exeext conftest.$ac_ext
6444 LIBS=$ac_check_lib_save_LIBS
6446 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6447 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6448 if test $ac_cv_lib_fl_yywrap = yes; then
6449 LEXLIB="-lfl"
6450 else
6451 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6452 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6453 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456 ac_check_lib_save_LIBS=$LIBS
6457 LIBS="-ll $LIBS"
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6465 /* Override any GCC internal prototype to avoid an error.
6466 Use char because int might match the return type of a GCC
6467 builtin and then its argument prototype would still apply. */
6468 #ifdef __cplusplus
6469 extern "C"
6470 #endif
6471 char yywrap ();
6473 main ()
6475 return yywrap ();
6477 return 0;
6479 _ACEOF
6480 rm -f conftest.$ac_objext conftest$ac_exeext
6481 if { (ac_try="$ac_link"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_link") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6495 { (case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498 esac
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_try") 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest$ac_exeext'
6505 { (case "(($ac_try" in
6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6508 esac
6509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6510 (eval "$ac_try") 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_cv_lib_l_yywrap=yes
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_cv_lib_l_yywrap=no
6522 rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 LIBS=$ac_check_lib_save_LIBS
6526 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6527 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6528 if test $ac_cv_lib_l_yywrap = yes; then
6529 LEXLIB="-ll"
6536 if test "x$LEX" != "x:"; then
6537 { echo "$as_me:$LINENO: checking lex output file root" >&5
6538 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6539 if test "${ac_cv_prog_lex_root+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 # The minimal lex program is just a single line: %%. But some broken lexes
6543 # (Solaris, I think it was) want two %% lines, so accommodate them.
6544 cat >conftest.l <<_ACEOF
6547 _ACEOF
6548 { (ac_try="$LEX conftest.l"
6549 case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$LEX conftest.l") 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }
6558 if test -f lex.yy.c; then
6559 ac_cv_prog_lex_root=lex.yy
6560 elif test -f lexyy.c; then
6561 ac_cv_prog_lex_root=lexyy
6562 else
6563 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6564 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6565 { (exit 1); exit 1; }; }
6568 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6569 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6570 rm -f conftest.l
6571 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6573 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6574 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 # POSIX says lex can declare yytext either as a pointer or an array; the
6579 # default is implementation-dependent. Figure out which it is, since
6580 # not all implementations provide the %pointer and %array declarations.
6581 ac_cv_prog_lex_yytext_pointer=no
6582 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6583 ac_save_LIBS=$LIBS
6584 LIBS="$LIBS $LEXLIB"
6585 cat >conftest.$ac_ext <<_ACEOF
6586 `cat $LEX_OUTPUT_ROOT.c`
6587 _ACEOF
6588 rm -f conftest.$ac_objext conftest$ac_exeext
6589 if { (ac_try="$ac_link"
6590 case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_link") 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6603 { (case "(($ac_try" in
6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6606 esac
6607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6608 (eval "$ac_try") 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (case "(($ac_try" in
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6616 esac
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_try") 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 ac_cv_prog_lex_yytext_pointer=yes
6623 else
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6630 rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632 LIBS=$ac_save_LIBS
6633 rm -f "${LEX_OUTPUT_ROOT}.c"
6636 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6637 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6638 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6640 cat >>confdefs.h <<\_ACEOF
6641 #define YYTEXT_POINTER 1
6642 _ACEOF
6649 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6650 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6651 if test "$LEX" != "flex"; then
6652 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6653 echo "$as_me: error: flex not found but required" >&2;}
6654 { (exit 1); exit 1; }; }
6655 else
6656 FLEX=flex
6660 { echo "$as_me:$LINENO: checking " >&5
6661 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6662 if test "${llvm_cv_has_bison+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665 for ac_prog in 'bison -y' byacc
6667 # Extract the first word of "$ac_prog", so it can be a program name with args.
6668 set dummy $ac_prog; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_prog_YACC+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 if test -n "$YACC"; then
6675 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_YACC="$ac_prog"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6688 done
6689 done
6690 IFS=$as_save_IFS
6694 YACC=$ac_cv_prog_YACC
6695 if test -n "$YACC"; then
6696 { echo "$as_me:$LINENO: result: $YACC" >&5
6697 echo "${ECHO_T}$YACC" >&6; }
6698 else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6704 test -n "$YACC" && break
6705 done
6706 test -n "$YACC" || YACC="yacc"
6709 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6710 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6711 if test "$YACC" != "bison -y"; then
6713 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6714 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6715 else
6716 BISON=bison
6720 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6721 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6722 if test "${lt_cv_path_NM+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 if test -n "$NM"; then
6726 # Let the user override the test.
6727 lt_cv_path_NM="$NM"
6728 else
6729 lt_nm_to_check="${ac_tool_prefix}nm"
6730 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6731 lt_nm_to_check="$lt_nm_to_check nm"
6733 for lt_tmp_nm in $lt_nm_to_check; do
6734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6736 IFS="$lt_save_ifs"
6737 test -z "$ac_dir" && ac_dir=.
6738 tmp_nm="$ac_dir/$lt_tmp_nm"
6739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6740 # Check to see if the nm accepts a BSD-compat flag.
6741 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6742 # nm: unknown option "B" ignored
6743 # Tru64's nm complains that /dev/null is an invalid object file
6744 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6745 */dev/null* | *'Invalid file or object type'*)
6746 lt_cv_path_NM="$tmp_nm -B"
6747 break
6750 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6751 */dev/null*)
6752 lt_cv_path_NM="$tmp_nm -p"
6753 break
6756 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6757 continue # so that we can try to find one that supports BSD flags
6759 esac
6761 esac
6763 done
6764 IFS="$lt_save_ifs"
6765 done
6766 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6769 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6770 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6771 NM="$lt_cv_path_NM"
6775 { echo "$as_me:$LINENO: checking for GNU make" >&5
6776 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6777 if test "${llvm_cv_gnu_make_command+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 llvm_cv_gnu_make_command=''
6781 for a in "$MAKE" make gmake gnumake ; do
6782 if test -z "$a" ; then continue ; fi ;
6783 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6784 then
6785 llvm_cv_gnu_make_command=$a ;
6786 break;
6788 done
6790 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6791 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6792 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6793 ifGNUmake='' ;
6794 else
6795 ifGNUmake='#' ;
6796 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6797 echo "${ECHO_T}\"Not found\"" >&6; };
6801 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6803 LN_S=$as_ln_s
6804 if test "$LN_S" = "ln -s"; then
6805 { echo "$as_me:$LINENO: result: yes" >&5
6806 echo "${ECHO_T}yes" >&6; }
6807 else
6808 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6809 echo "${ECHO_T}no, using $LN_S" >&6; }
6812 # Extract the first word of "cmp", so it can be a program name with args.
6813 set dummy cmp; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_CMP+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 case $CMP in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6835 done
6836 done
6837 IFS=$as_save_IFS
6839 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6841 esac
6843 CMP=$ac_cv_path_CMP
6844 if test -n "$CMP"; then
6845 { echo "$as_me:$LINENO: result: $CMP" >&5
6846 echo "${ECHO_T}$CMP" >&6; }
6847 else
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 # Extract the first word of "cp", so it can be a program name with args.
6854 set dummy cp; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_CP+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 case $CP in
6861 [\\/]* | ?:[\\/]*)
6862 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6880 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6882 esac
6884 CP=$ac_cv_path_CP
6885 if test -n "$CP"; then
6886 { echo "$as_me:$LINENO: result: $CP" >&5
6887 echo "${ECHO_T}$CP" >&6; }
6888 else
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 # Extract the first word of "date", so it can be a program name with args.
6895 set dummy date; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_DATE+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901 case $DATE in
6902 [\\/]* | ?:[\\/]*)
6903 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6917 done
6918 done
6919 IFS=$as_save_IFS
6921 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6923 esac
6925 DATE=$ac_cv_path_DATE
6926 if test -n "$DATE"; then
6927 { echo "$as_me:$LINENO: result: $DATE" >&5
6928 echo "${ECHO_T}$DATE" >&6; }
6929 else
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 # Extract the first word of "find", so it can be a program name with args.
6936 set dummy find; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_FIND+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 case $FIND in
6943 [\\/]* | ?:[\\/]*)
6944 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6958 done
6959 done
6960 IFS=$as_save_IFS
6962 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6964 esac
6966 FIND=$ac_cv_path_FIND
6967 if test -n "$FIND"; then
6968 { echo "$as_me:$LINENO: result: $FIND" >&5
6969 echo "${ECHO_T}$FIND" >&6; }
6970 else
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 # Extract the first word of "grep", so it can be a program name with args.
6977 set dummy grep; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_GREP+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 case $GREP in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7001 IFS=$as_save_IFS
7003 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7005 esac
7007 GREP=$ac_cv_path_GREP
7008 if test -n "$GREP"; then
7009 { echo "$as_me:$LINENO: result: $GREP" >&5
7010 echo "${ECHO_T}$GREP" >&6; }
7011 else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "mkdir", so it can be a program name with args.
7018 set dummy mkdir; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_MKDIR+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 case $MKDIR in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7040 done
7041 done
7042 IFS=$as_save_IFS
7044 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7046 esac
7048 MKDIR=$ac_cv_path_MKDIR
7049 if test -n "$MKDIR"; then
7050 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7051 echo "${ECHO_T}$MKDIR" >&6; }
7052 else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "mv", so it can be a program name with args.
7059 set dummy mv; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_MV+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 case $MV in
7066 [\\/]* | ?:[\\/]*)
7067 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7085 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7087 esac
7089 MV=$ac_cv_path_MV
7090 if test -n "$MV"; then
7091 { echo "$as_me:$LINENO: result: $MV" >&5
7092 echo "${ECHO_T}$MV" >&6; }
7093 else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7121 done
7122 done
7123 IFS=$as_save_IFS
7127 RANLIB=$ac_cv_prog_RANLIB
7128 if test -n "$RANLIB"; then
7129 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7130 echo "${ECHO_T}$RANLIB" >&6; }
7131 else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7138 if test -z "$ac_cv_prog_RANLIB"; then
7139 ac_ct_RANLIB=$RANLIB
7140 # Extract the first word of "ranlib", so it can be a program name with args.
7141 set dummy ranlib; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 if test -n "$ac_ct_RANLIB"; then
7148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_ac_ct_RANLIB="ranlib"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7161 done
7162 done
7163 IFS=$as_save_IFS
7167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7168 if test -n "$ac_ct_RANLIB"; then
7169 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7170 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7171 else
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7176 if test "x$ac_ct_RANLIB" = x; then
7177 RANLIB=":"
7178 else
7179 case $cross_compiling:$ac_tool_warned in
7180 yes:)
7181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7182 whose name does not start with the host triplet. If you think this
7183 configuration is useful to you, please write to autoconf@gnu.org." >&5
7184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7185 whose name does not start with the host triplet. If you think this
7186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7187 ac_tool_warned=yes ;;
7188 esac
7189 RANLIB=$ac_ct_RANLIB
7191 else
7192 RANLIB="$ac_cv_prog_RANLIB"
7195 # Extract the first word of "rm", so it can be a program name with args.
7196 set dummy rm; ac_word=$2
7197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7199 if test "${ac_cv_path_RM+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 case $RM in
7203 [\\/]* | ?:[\\/]*)
7204 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7218 done
7219 done
7220 IFS=$as_save_IFS
7222 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7224 esac
7226 RM=$ac_cv_path_RM
7227 if test -n "$RM"; then
7228 { echo "$as_me:$LINENO: result: $RM" >&5
7229 echo "${ECHO_T}$RM" >&6; }
7230 else
7231 { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7236 # Extract the first word of "sed", so it can be a program name with args.
7237 set dummy sed; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_SED+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 case $SED in
7244 [\\/]* | ?:[\\/]*)
7245 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7259 done
7260 done
7261 IFS=$as_save_IFS
7263 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7265 esac
7267 SED=$ac_cv_path_SED
7268 if test -n "$SED"; then
7269 { echo "$as_me:$LINENO: result: $SED" >&5
7270 echo "${ECHO_T}$SED" >&6; }
7271 else
7272 { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7277 # Extract the first word of "tar", so it can be a program name with args.
7278 set dummy tar; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_TAR+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284 case $TAR in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7300 done
7301 done
7302 IFS=$as_save_IFS
7304 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7306 esac
7308 TAR=$ac_cv_path_TAR
7309 if test -n "$TAR"; then
7310 { echo "$as_me:$LINENO: result: $TAR" >&5
7311 echo "${ECHO_T}$TAR" >&6; }
7312 else
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7318 # Extract the first word of "pwd", so it can be a program name with args.
7319 set dummy pwd; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_BINPWD+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325 case $BINPWD in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7341 done
7342 done
7343 IFS=$as_save_IFS
7345 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7347 esac
7349 BINPWD=$ac_cv_path_BINPWD
7350 if test -n "$BINPWD"; then
7351 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7352 echo "${ECHO_T}$BINPWD" >&6; }
7353 else
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7360 # Extract the first word of "Graphviz", so it can be a program name with args.
7361 set dummy Graphviz; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 case $GRAPHVIZ in
7368 [\\/]* | ?:[\\/]*)
7369 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7383 done
7384 done
7385 IFS=$as_save_IFS
7387 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7389 esac
7391 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7392 if test -n "$GRAPHVIZ"; then
7393 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7394 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7395 else
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7401 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7403 cat >>confdefs.h <<\_ACEOF
7404 #define HAVE_GRAPHVIZ 1
7405 _ACEOF
7407 if test "$llvm_cv_os_type" = "MingW" ; then
7408 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7411 cat >>confdefs.h <<_ACEOF
7412 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7413 _ACEOF
7416 # Extract the first word of "dot", so it can be a program name with args.
7417 set dummy dot; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_DOT+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 case $DOT in
7424 [\\/]* | ?:[\\/]*)
7425 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7439 done
7440 done
7441 IFS=$as_save_IFS
7443 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7445 esac
7447 DOT=$ac_cv_path_DOT
7448 if test -n "$DOT"; then
7449 { echo "$as_me:$LINENO: result: $DOT" >&5
7450 echo "${ECHO_T}$DOT" >&6; }
7451 else
7452 { echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6; }
7457 if test "$DOT" != "echo dot" ; then
7459 cat >>confdefs.h <<\_ACEOF
7460 #define HAVE_DOT 1
7461 _ACEOF
7463 if test "$llvm_cv_os_type" = "MingW" ; then
7464 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7467 cat >>confdefs.h <<_ACEOF
7468 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7469 _ACEOF
7472 for ac_prog in gv gsview32
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy $ac_prog; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_GV+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 case $GV in
7482 [\\/]* | ?:[\\/]*)
7483 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7497 done
7498 done
7499 IFS=$as_save_IFS
7502 esac
7504 GV=$ac_cv_path_GV
7505 if test -n "$GV"; then
7506 { echo "$as_me:$LINENO: result: $GV" >&5
7507 echo "${ECHO_T}$GV" >&6; }
7508 else
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7514 test -n "$GV" && break
7515 done
7516 test -n "$GV" || GV="echo gv"
7518 if test "$GV" != "echo gv" ; then
7520 cat >>confdefs.h <<\_ACEOF
7521 #define HAVE_GV 1
7522 _ACEOF
7524 if test "$llvm_cv_os_type" = "MingW" ; then
7525 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7528 cat >>confdefs.h <<_ACEOF
7529 #define LLVM_PATH_GV "$GV${EXEEXT}"
7530 _ACEOF
7533 # Extract the first word of "dotty", so it can be a program name with args.
7534 set dummy dotty; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_DOTTY+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540 case $DOTTY in
7541 [\\/]* | ?:[\\/]*)
7542 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7556 done
7557 done
7558 IFS=$as_save_IFS
7560 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7562 esac
7564 DOTTY=$ac_cv_path_DOTTY
7565 if test -n "$DOTTY"; then
7566 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7567 echo "${ECHO_T}$DOTTY" >&6; }
7568 else
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7574 if test "$DOTTY" != "echo dotty" ; then
7576 cat >>confdefs.h <<\_ACEOF
7577 #define HAVE_DOTTY 1
7578 _ACEOF
7580 if test "$llvm_cv_os_type" = "MingW" ; then
7581 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7584 cat >>confdefs.h <<_ACEOF
7585 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7586 _ACEOF
7591 # Extract the first word of "perl", so it can be a program name with args.
7592 set dummy perl; ac_word=$2
7593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7595 if test "${ac_cv_path_PERL+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598 case $PERL in
7599 [\\/]* | ?:[\\/]*)
7600 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7614 done
7615 done
7616 IFS=$as_save_IFS
7618 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7620 esac
7622 PERL=$ac_cv_path_PERL
7623 if test -n "$PERL"; then
7624 { echo "$as_me:$LINENO: result: $PERL" >&5
7625 echo "${ECHO_T}$PERL" >&6; }
7626 else
7627 { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7632 if test "$PERL" != "none"; then
7633 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7634 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7635 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7636 { echo "$as_me:$LINENO: result: yes" >&5
7637 echo "${ECHO_T}yes" >&6; }
7638 else
7639 PERL=none
7640 { echo "$as_me:$LINENO: result: not found" >&5
7641 echo "${ECHO_T}not found" >&6; }
7646 if test x"$PERL" = xnone; then
7647 HAVE_PERL=0
7649 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7650 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7651 { (exit 1); exit 1; }; }
7652 else
7653 HAVE_PERL=1
7657 # Find a good install program. We prefer a C program (faster),
7658 # so one script is as good as another. But avoid the broken or
7659 # incompatible versions:
7660 # SysV /etc/install, /usr/sbin/install
7661 # SunOS /usr/etc/install
7662 # IRIX /sbin/install
7663 # AIX /bin/install
7664 # AmigaOS /C/install, which installs bootblocks on floppy discs
7665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7668 # OS/2's system install, which has a completely different semantic
7669 # ./install, which can be erroneously created by make from ./install.sh.
7670 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7672 if test -z "$INSTALL"; then
7673 if test "${ac_cv_path_install+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 # Account for people who put trailing slashes in PATH elements.
7682 case $as_dir/ in
7683 ./ | .// | /cC/* | \
7684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7685 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7686 /usr/ucb/* ) ;;
7688 # OSF1 and SCO ODT 3.0 have their own names for install.
7689 # Don't use installbsd from OSF since it installs stuff as root
7690 # by default.
7691 for ac_prog in ginstall scoinst install; do
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7694 if test $ac_prog = install &&
7695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7696 # AIX install. It has an incompatible calling convention.
7698 elif test $ac_prog = install &&
7699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7700 # program-specific install script used by HP pwplus--don't use.
7702 else
7703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7704 break 3
7707 done
7708 done
7710 esac
7711 done
7712 IFS=$as_save_IFS
7716 if test "${ac_cv_path_install+set}" = set; then
7717 INSTALL=$ac_cv_path_install
7718 else
7719 # As a last resort, use the slow shell script. Don't cache a
7720 # value for INSTALL within a source directory, because that will
7721 # break other packages using the cache if that directory is
7722 # removed, or if the value is a relative name.
7723 INSTALL=$ac_install_sh
7726 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7727 echo "${ECHO_T}$INSTALL" >&6; }
7729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7730 # It thinks the first close brace ends the variable substitution.
7731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7738 # Extract the first word of "bzip2", so it can be a program name with args.
7739 set dummy bzip2; ac_word=$2
7740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742 if test "${ac_cv_path_BZIP2+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 case $BZIP2 in
7746 [\\/]* | ?:[\\/]*)
7747 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7766 esac
7768 BZIP2=$ac_cv_path_BZIP2
7769 if test -n "$BZIP2"; then
7770 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7771 echo "${ECHO_T}$BZIP2" >&6; }
7772 else
7773 { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7778 # Extract the first word of "doxygen", so it can be a program name with args.
7779 set dummy doxygen; ac_word=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785 case $DOXYGEN in
7786 [\\/]* | ?:[\\/]*)
7787 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7801 done
7802 done
7803 IFS=$as_save_IFS
7806 esac
7808 DOXYGEN=$ac_cv_path_DOXYGEN
7809 if test -n "$DOXYGEN"; then
7810 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7811 echo "${ECHO_T}$DOXYGEN" >&6; }
7812 else
7813 { echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6; }
7818 # Extract the first word of "groff", so it can be a program name with args.
7819 set dummy groff; ac_word=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_path_GROFF+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 case $GROFF in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7841 done
7842 done
7843 IFS=$as_save_IFS
7846 esac
7848 GROFF=$ac_cv_path_GROFF
7849 if test -n "$GROFF"; then
7850 { echo "$as_me:$LINENO: result: $GROFF" >&5
7851 echo "${ECHO_T}$GROFF" >&6; }
7852 else
7853 { echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6; }
7858 # Extract the first word of "gzip", so it can be a program name with args.
7859 set dummy gzip; ac_word=$2
7860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862 if test "${ac_cv_path_GZIP+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 case $GZIP in
7866 [\\/]* | ?:[\\/]*)
7867 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7881 done
7882 done
7883 IFS=$as_save_IFS
7886 esac
7888 GZIP=$ac_cv_path_GZIP
7889 if test -n "$GZIP"; then
7890 { echo "$as_me:$LINENO: result: $GZIP" >&5
7891 echo "${ECHO_T}$GZIP" >&6; }
7892 else
7893 { echo "$as_me:$LINENO: result: no" >&5
7894 echo "${ECHO_T}no" >&6; }
7898 # Extract the first word of "pod2html", so it can be a program name with args.
7899 set dummy pod2html; ac_word=$2
7900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902 if test "${ac_cv_path_POD2HTML+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 case $POD2HTML in
7906 [\\/]* | ?:[\\/]*)
7907 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7921 done
7922 done
7923 IFS=$as_save_IFS
7926 esac
7928 POD2HTML=$ac_cv_path_POD2HTML
7929 if test -n "$POD2HTML"; then
7930 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7931 echo "${ECHO_T}$POD2HTML" >&6; }
7932 else
7933 { echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6; }
7938 # Extract the first word of "pod2man", so it can be a program name with args.
7939 set dummy pod2man; ac_word=$2
7940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7942 if test "${ac_cv_path_POD2MAN+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 case $POD2MAN in
7946 [\\/]* | ?:[\\/]*)
7947 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7961 done
7962 done
7963 IFS=$as_save_IFS
7966 esac
7968 POD2MAN=$ac_cv_path_POD2MAN
7969 if test -n "$POD2MAN"; then
7970 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7971 echo "${ECHO_T}$POD2MAN" >&6; }
7972 else
7973 { echo "$as_me:$LINENO: result: no" >&5
7974 echo "${ECHO_T}no" >&6; }
7978 # Extract the first word of "runtest", so it can be a program name with args.
7979 set dummy runtest; ac_word=$2
7980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982 if test "${ac_cv_path_RUNTEST+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985 case $RUNTEST in
7986 [\\/]* | ?:[\\/]*)
7987 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8001 done
8002 done
8003 IFS=$as_save_IFS
8006 esac
8008 RUNTEST=$ac_cv_path_RUNTEST
8009 if test -n "$RUNTEST"; then
8010 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8011 echo "${ECHO_T}$RUNTEST" >&6; }
8012 else
8013 { echo "$as_me:$LINENO: result: no" >&5
8014 echo "${ECHO_T}no" >&6; }
8019 no_itcl=true
8020 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8021 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8023 # Check whether --with-tclinclude was given.
8024 if test "${with_tclinclude+set}" = set; then
8025 withval=$with_tclinclude; with_tclinclude=${withval}
8026 else
8027 with_tclinclude=''
8030 if test "${ac_cv_path_tclsh+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8034 if test x"${with_tclinclude}" != x ; then
8035 if test -f ${with_tclinclude}/tclsh ; then
8036 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8037 elif test -f ${with_tclinclude}/src/tclsh ; then
8038 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8039 else
8040 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8041 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8042 { (exit 1); exit 1; }; }
8046 if test x"${ac_cv_path_tclsh}" = x ; then
8047 { echo "$as_me:$LINENO: result: none" >&5
8048 echo "${ECHO_T}none" >&6; }
8049 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
8051 # Extract the first word of "$ac_prog", so it can be a program name with args.
8052 set dummy $ac_prog; ac_word=$2
8053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8055 if test "${ac_cv_path_TCLSH+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 case $TCLSH in
8059 [\\/]* | ?:[\\/]*)
8060 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8074 done
8075 done
8076 IFS=$as_save_IFS
8079 esac
8081 TCLSH=$ac_cv_path_TCLSH
8082 if test -n "$TCLSH"; then
8083 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8084 echo "${ECHO_T}$TCLSH" >&6; }
8085 else
8086 { echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6; }
8091 test -n "$TCLSH" && break
8092 done
8094 if test x"${TCLSH}" = x ; then
8095 ac_cv_path_tclsh='';
8096 else
8097 ac_cv_path_tclsh="${TCLSH}";
8099 else
8100 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8101 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8102 TCLSH="${ac_cv_path_tclsh}"
8108 # Extract the first word of "zip", so it can be a program name with args.
8109 set dummy zip; ac_word=$2
8110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8112 if test "${ac_cv_path_ZIP+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 case $ZIP in
8116 [\\/]* | ?:[\\/]*)
8117 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8131 done
8132 done
8133 IFS=$as_save_IFS
8136 esac
8138 ZIP=$ac_cv_path_ZIP
8139 if test -n "$ZIP"; then
8140 { echo "$as_me:$LINENO: result: $ZIP" >&5
8141 echo "${ECHO_T}$ZIP" >&6; }
8142 else
8143 { echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6; }
8148 for ac_prog in ocamlc
8150 # Extract the first word of "$ac_prog", so it can be a program name with args.
8151 set dummy $ac_prog; ac_word=$2
8152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154 if test "${ac_cv_path_OCAMLC+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 case $OCAMLC in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8178 esac
8180 OCAMLC=$ac_cv_path_OCAMLC
8181 if test -n "$OCAMLC"; then
8182 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8183 echo "${ECHO_T}$OCAMLC" >&6; }
8184 else
8185 { echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6; }
8190 test -n "$OCAMLC" && break
8191 done
8193 for ac_prog in ocamlopt
8195 # Extract the first word of "$ac_prog", so it can be a program name with args.
8196 set dummy $ac_prog; ac_word=$2
8197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8199 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202 case $OCAMLOPT in
8203 [\\/]* | ?:[\\/]*)
8204 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8218 done
8219 done
8220 IFS=$as_save_IFS
8223 esac
8225 OCAMLOPT=$ac_cv_path_OCAMLOPT
8226 if test -n "$OCAMLOPT"; then
8227 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8228 echo "${ECHO_T}$OCAMLOPT" >&6; }
8229 else
8230 { echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6; }
8235 test -n "$OCAMLOPT" && break
8236 done
8238 for ac_prog in ocamldep
8240 # Extract the first word of "$ac_prog", so it can be a program name with args.
8241 set dummy $ac_prog; ac_word=$2
8242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8244 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247 case $OCAMLDEP in
8248 [\\/]* | ?:[\\/]*)
8249 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8263 done
8264 done
8265 IFS=$as_save_IFS
8268 esac
8270 OCAMLDEP=$ac_cv_path_OCAMLDEP
8271 if test -n "$OCAMLDEP"; then
8272 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8273 echo "${ECHO_T}$OCAMLDEP" >&6; }
8274 else
8275 { echo "$as_me:$LINENO: result: no" >&5
8276 echo "${ECHO_T}no" >&6; }
8280 test -n "$OCAMLDEP" && break
8281 done
8283 for ac_prog in ocamldoc
8285 # Extract the first word of "$ac_prog", so it can be a program name with args.
8286 set dummy $ac_prog; ac_word=$2
8287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8289 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 case $OCAMLDOC in
8293 [\\/]* | ?:[\\/]*)
8294 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8308 done
8309 done
8310 IFS=$as_save_IFS
8313 esac
8315 OCAMLDOC=$ac_cv_path_OCAMLDOC
8316 if test -n "$OCAMLDOC"; then
8317 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8318 echo "${ECHO_T}$OCAMLDOC" >&6; }
8319 else
8320 { echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6; }
8325 test -n "$OCAMLDOC" && break
8326 done
8328 for ac_prog in gas as
8330 # Extract the first word of "$ac_prog", so it can be a program name with args.
8331 set dummy $ac_prog; ac_word=$2
8332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8334 if test "${ac_cv_path_GAS+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 case $GAS in
8338 [\\/]* | ?:[\\/]*)
8339 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8353 done
8354 done
8355 IFS=$as_save_IFS
8358 esac
8360 GAS=$ac_cv_path_GAS
8361 if test -n "$GAS"; then
8362 { echo "$as_me:$LINENO: result: $GAS" >&5
8363 echo "${ECHO_T}$GAS" >&6; }
8364 else
8365 { echo "$as_me:$LINENO: result: no" >&5
8366 echo "${ECHO_T}no" >&6; }
8370 test -n "$GAS" && break
8371 done
8374 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8375 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8376 if test "${llvm_cv_link_use_r+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379 ac_ext=c
8380 ac_cpp='$CPP $CPPFLAGS'
8381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8385 oldcflags="$CFLAGS"
8386 CFLAGS="$CFLAGS -Wl,-R."
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8395 main ()
8397 int main() { return 0; }
8399 return 0;
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (ac_try="$ac_link"
8404 case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_link") 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_try") 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 llvm_cv_link_use_r=yes
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 llvm_cv_link_use_r=no
8444 rm -f core conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8446 CFLAGS="$oldcflags"
8447 ac_ext=c
8448 ac_cpp='$CPP $CPPFLAGS'
8449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8455 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8456 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8457 if test "$llvm_cv_link_use_r" = yes ; then
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_LINK_R 1
8461 _ACEOF
8468 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8469 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8470 if test "${ac_cv_c_const+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8481 main ()
8483 /* FIXME: Include the comments suggested by Paul. */
8484 #ifndef __cplusplus
8485 /* Ultrix mips cc rejects this. */
8486 typedef int charset[2];
8487 const charset x;
8488 /* SunOS 4.1.1 cc rejects this. */
8489 char const *const *ccp;
8490 char **p;
8491 /* NEC SVR4.0.2 mips cc rejects this. */
8492 struct point {int x, y;};
8493 static struct point const zero = {0,0};
8494 /* AIX XL C 1.02.0.0 rejects this.
8495 It does not let you subtract one const X* pointer from another in
8496 an arm of an if-expression whose if-part is not a constant
8497 expression */
8498 const char *g = "string";
8499 ccp = &g + (g ? g-g : 0);
8500 /* HPUX 7.0 cc rejects these. */
8501 ++ccp;
8502 p = (char**) ccp;
8503 ccp = (char const *const *) p;
8504 { /* SCO 3.2v4 cc rejects this. */
8505 char *t;
8506 char const *s = 0 ? (char *) 0 : (char const *) 0;
8508 *t++ = 0;
8509 if (s) return 0;
8511 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8512 int x[] = {25, 17};
8513 const int *foo = &x[0];
8514 ++foo;
8516 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8517 typedef const int *iptr;
8518 iptr p = 0;
8519 ++p;
8521 { /* AIX XL C 1.02.0.0 rejects this saying
8522 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8523 struct s { int j; const int *ap[3]; };
8524 struct s *b; b->j = 5;
8526 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8527 const int foo = 10;
8528 if (!foo) return 0;
8530 return !x[0] && !zero.x;
8531 #endif
8534 return 0;
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (ac_try="$ac_compile"
8539 case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_compile") 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8552 { (case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555 esac
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_try") 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_try") 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
8571 ac_cv_c_const=yes
8572 else
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_cv_c_const=no
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8582 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8583 if test $ac_cv_c_const = no; then
8585 cat >>confdefs.h <<\_ACEOF
8586 #define const
8587 _ACEOF
8596 ac_header_dirent=no
8597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8599 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 #include <sys/types.h>
8611 #include <$ac_hdr>
8614 main ()
8616 if ((DIR *) 0)
8617 return 0;
8619 return 0;
8621 _ACEOF
8622 rm -f conftest.$ac_objext
8623 if { (ac_try="$ac_compile"
8624 case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_compile") 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest.$ac_objext'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 eval "$as_ac_Header=yes"
8657 else
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 eval "$as_ac_Header=no"
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 ac_res=`eval echo '${'$as_ac_Header'}'`
8667 { echo "$as_me:$LINENO: result: $ac_res" >&5
8668 echo "${ECHO_T}$ac_res" >&6; }
8669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8670 cat >>confdefs.h <<_ACEOF
8671 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8672 _ACEOF
8674 ac_header_dirent=$ac_hdr; break
8677 done
8678 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8679 if test $ac_header_dirent = dirent.h; then
8680 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8681 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8682 if test "${ac_cv_search_opendir+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 ac_func_search_save_LIBS=$LIBS
8686 cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h. */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 /* Override any GCC internal prototype to avoid an error.
8694 Use char because int might match the return type of a GCC
8695 builtin and then its argument prototype would still apply. */
8696 #ifdef __cplusplus
8697 extern "C"
8698 #endif
8699 char opendir ();
8701 main ()
8703 return opendir ();
8705 return 0;
8707 _ACEOF
8708 for ac_lib in '' dir; do
8709 if test -z "$ac_lib"; then
8710 ac_res="none required"
8711 else
8712 ac_res=-l$ac_lib
8713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (ac_try="$ac_link"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_link") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest$ac_exeext'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_search_opendir=$ac_res
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8757 rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext
8759 if test "${ac_cv_search_opendir+set}" = set; then
8760 break
8762 done
8763 if test "${ac_cv_search_opendir+set}" = set; then
8765 else
8766 ac_cv_search_opendir=no
8768 rm conftest.$ac_ext
8769 LIBS=$ac_func_search_save_LIBS
8771 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8772 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8773 ac_res=$ac_cv_search_opendir
8774 if test "$ac_res" != no; then
8775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8779 else
8780 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8781 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8782 if test "${ac_cv_search_opendir+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 ac_func_search_save_LIBS=$LIBS
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 /* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8796 #ifdef __cplusplus
8797 extern "C"
8798 #endif
8799 char opendir ();
8801 main ()
8803 return opendir ();
8805 return 0;
8807 _ACEOF
8808 for ac_lib in '' x; do
8809 if test -z "$ac_lib"; then
8810 ac_res="none required"
8811 else
8812 ac_res=-l$ac_lib
8813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8817 case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820 esac
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_link") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833 esac
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_search_opendir=$ac_res
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8857 rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext
8859 if test "${ac_cv_search_opendir+set}" = set; then
8860 break
8862 done
8863 if test "${ac_cv_search_opendir+set}" = set; then
8865 else
8866 ac_cv_search_opendir=no
8868 rm conftest.$ac_ext
8869 LIBS=$ac_func_search_save_LIBS
8871 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8872 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8873 ac_res=$ac_cv_search_opendir
8874 if test "$ac_res" != no; then
8875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8882 for ac_header in dlfcn.h
8884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 ac_res=`eval echo '${'$as_ac_Header'}'`
8892 { echo "$as_me:$LINENO: result: $ac_res" >&5
8893 echo "${ECHO_T}$ac_res" >&6; }
8894 else
8895 # Is the header compilable?
8896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8905 #include <$ac_header>
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8909 case "(($ac_try" in
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8922 { (case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8925 esac
8926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_try") 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest.$ac_objext'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935 esac
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_header_compiler=yes
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_header_compiler=no
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8951 echo "${ECHO_T}$ac_header_compiler" >&6; }
8953 # Is the header present?
8954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h. */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 #include <$ac_header>
8963 _ACEOF
8964 if { (ac_try="$ac_cpp conftest.$ac_ext"
8965 case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8968 esac
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } >/dev/null; then
8977 if test -s conftest.err; then
8978 ac_cpp_err=$ac_c_preproc_warn_flag
8979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8980 else
8981 ac_cpp_err=
8983 else
8984 ac_cpp_err=yes
8986 if test -z "$ac_cpp_err"; then
8987 ac_header_preproc=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_header_preproc=no
8995 rm -f conftest.err conftest.$ac_ext
8996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8997 echo "${ECHO_T}$ac_header_preproc" >&6; }
8999 # So? What about this header?
9000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9001 yes:no: )
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9006 ac_header_preproc=yes
9008 no:yes:* )
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9021 ( cat <<\_ASBOX
9022 ## ----------------------------------- ##
9023 ## Report this to llvmbugs@cs.uiuc.edu ##
9024 ## ----------------------------------- ##
9025 _ASBOX
9026 ) | sed "s/^/$as_me: WARNING: /" >&2
9028 esac
9029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034 eval "$as_ac_Header=\$ac_header_preproc"
9036 ac_res=`eval echo '${'$as_ac_Header'}'`
9037 { echo "$as_me:$LINENO: result: $ac_res" >&5
9038 echo "${ECHO_T}$ac_res" >&6; }
9041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042 cat >>confdefs.h <<_ACEOF
9043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9044 _ACEOF
9048 done
9050 # Check whether --enable-ltdl-install was given.
9051 if test "${enable_ltdl_install+set}" = set; then
9052 enableval=$enable_ltdl_install;
9058 if test x"${enable_ltdl_install-no}" != xno; then
9059 INSTALL_LTDL_TRUE=
9060 INSTALL_LTDL_FALSE='#'
9061 else
9062 INSTALL_LTDL_TRUE='#'
9063 INSTALL_LTDL_FALSE=
9068 if test x"${enable_ltdl_convenience-no}" != xno; then
9069 CONVENIENCE_LTDL_TRUE=
9070 CONVENIENCE_LTDL_FALSE='#'
9071 else
9072 CONVENIENCE_LTDL_TRUE='#'
9073 CONVENIENCE_LTDL_FALSE=
9077 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9078 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9079 library_names_spec=
9080 libname_spec='lib$name'
9081 soname_spec=
9082 shrext_cmds=".so"
9083 postinstall_cmds=
9084 postuninstall_cmds=
9085 finish_cmds=
9086 finish_eval=
9087 shlibpath_var=
9088 shlibpath_overrides_runpath=unknown
9089 version_type=none
9090 dynamic_linker="$host_os ld.so"
9091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9092 if test "$GCC" = yes; then
9093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9095 # if the path contains ";" then we assume it to be the separator
9096 # otherwise default to the standard path separator (i.e. ":") - it is
9097 # assumed that no part of a normal pathname contains ";" but that should
9098 # okay in the real world where ";" in dirpaths is itself problematic.
9099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9100 else
9101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9103 else
9104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9106 need_lib_prefix=unknown
9107 hardcode_into_libs=no
9109 # when you set need_version to no, make sure it does not cause -set_version
9110 # flags to be left without arguments
9111 need_version=unknown
9113 case $host_os in
9114 aix3*)
9115 version_type=linux
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9117 shlibpath_var=LIBPATH
9119 # AIX 3 has no versioning support, so we append a major version to the name.
9120 soname_spec='${libname}${release}${shared_ext}$major'
9123 aix4* | aix5*)
9124 version_type=linux
9125 need_lib_prefix=no
9126 need_version=no
9127 hardcode_into_libs=yes
9128 if test "$host_cpu" = ia64; then
9129 # AIX 5 supports IA64
9130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 else
9133 # With GCC up to 2.95.x, collect2 would create an import file
9134 # for dependence libraries. The import file would start with
9135 # the line `#! .'. This would cause the generated library to
9136 # depend on `.', always an invalid library. This was fixed in
9137 # development snapshots of GCC prior to 3.0.
9138 case $host_os in
9139 aix4 | aix4.[01] | aix4.[01].*)
9140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9141 echo ' yes '
9142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9144 else
9145 can_build_shared=no
9148 esac
9149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9150 # soname into executable. Probably we can add versioning support to
9151 # collect2, so additional links can be useful in future.
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9154 # instead of lib<name>.a to let people know that these are not
9155 # typical AIX shared libraries.
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 else
9158 # We preserve .a as extension for shared libraries through AIX4.2
9159 # and later when we are not doing run time linking.
9160 library_names_spec='${libname}${release}.a $libname.a'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LIBPATH
9167 amigaos*)
9168 library_names_spec='$libname.ixlibrary $libname.a'
9169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170 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'
9173 beos*)
9174 library_names_spec='${libname}${shared_ext}'
9175 dynamic_linker="$host_os ld.so"
9176 shlibpath_var=LIBRARY_PATH
9179 bsdi[45]*)
9180 version_type=linux
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9188 # the default ld.so.conf also contains /usr/contrib/lib and
9189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9190 # libtool to hard-code these into programs
9193 cygwin* | mingw* | pw32*)
9194 version_type=windows
9195 shrext_cmds=".dll"
9196 need_version=no
9197 need_lib_prefix=no
9199 case $GCC,$host_os in
9200 yes,cygwin* | yes,mingw* | yes,pw32*)
9201 library_names_spec='$libname.dll.a'
9202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9203 postinstall_cmds='base_file=`basename \${file}`~
9204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9205 dldir=$destdir/`dirname \$dlpath`~
9206 test -d \$dldir || mkdir -p \$dldir~
9207 $install_prog $dir/$dlname \$dldir/$dlname~
9208 chmod a+x \$dldir/$dlname'
9209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9210 dlpath=$dir/\$dldll~
9211 $rm \$dlpath'
9212 shlibpath_overrides_runpath=yes
9214 case $host_os in
9215 cygwin*)
9216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9220 mingw*)
9221 # MinGW DLLs use traditional 'lib' prefix
9222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9225 # It is most probably a Windows format PATH printed by
9226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9227 # path with ; separators, and with drive letters. We can handle the
9228 # drive letters (cygwin fileutils understands them), so leave them,
9229 # especially as we might pass files found there to a mingw objdump,
9230 # which wouldn't understand a cygwinified path. Ahh.
9231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9232 else
9233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9236 pw32*)
9237 # pw32 DLLs use 'pw' prefix rather than 'lib'
9238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9240 esac
9244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9246 esac
9247 dynamic_linker='Win32 ld.exe'
9248 # FIXME: first we should search . and the directory the executable is in
9249 shlibpath_var=PATH
9252 darwin* | rhapsody*)
9253 dynamic_linker="$host_os dyld"
9254 version_type=darwin
9255 need_lib_prefix=no
9256 need_version=no
9257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9258 soname_spec='${libname}${release}${major}$shared_ext'
9259 shlibpath_overrides_runpath=yes
9260 shlibpath_var=DYLD_LIBRARY_PATH
9261 shrext_cmds='.dylib'
9262 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9263 if test "$GCC" = yes; then
9264 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"`
9265 else
9266 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9271 dgux*)
9272 version_type=linux
9273 need_lib_prefix=no
9274 need_version=no
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9280 freebsd1*)
9281 dynamic_linker=no
9284 kfreebsd*-gnu)
9285 version_type=linux
9286 need_lib_prefix=no
9287 need_version=no
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9293 dynamic_linker='GNU ld.so'
9296 freebsd* | dragonfly*)
9297 # DragonFly does not have aout. When/if they implement a new
9298 # versioning mechanism, adjust this.
9299 if test -x /usr/bin/objformat; then
9300 objformat=`/usr/bin/objformat`
9301 else
9302 case $host_os in
9303 freebsd[123]*) objformat=aout ;;
9304 *) objformat=elf ;;
9305 esac
9307 version_type=freebsd-$objformat
9308 case $version_type in
9309 freebsd-elf*)
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9311 need_version=no
9312 need_lib_prefix=no
9314 freebsd-*)
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9316 need_version=yes
9318 esac
9319 shlibpath_var=LD_LIBRARY_PATH
9320 case $host_os in
9321 freebsd2*)
9322 shlibpath_overrides_runpath=yes
9324 freebsd3.[01]* | freebsdelf3.[01]*)
9325 shlibpath_overrides_runpath=yes
9326 hardcode_into_libs=yes
9328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9330 shlibpath_overrides_runpath=no
9331 hardcode_into_libs=yes
9333 freebsd*) # from 4.6 on
9334 shlibpath_overrides_runpath=yes
9335 hardcode_into_libs=yes
9337 esac
9340 gnu*)
9341 version_type=linux
9342 need_lib_prefix=no
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 hardcode_into_libs=yes
9350 hpux9* | hpux10* | hpux11*)
9351 # Give a soname corresponding to the major version so that dld.sl refuses to
9352 # link against other versions.
9353 version_type=sunos
9354 need_lib_prefix=no
9355 need_version=no
9356 case $host_cpu in
9357 ia64*)
9358 shrext_cmds='.so'
9359 hardcode_into_libs=yes
9360 dynamic_linker="$host_os dld.so"
9361 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 if test "X$HPUX_IA64_MODE" = X32; then
9366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9367 else
9368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9372 hppa*64*)
9373 shrext_cmds='.sl'
9374 hardcode_into_libs=yes
9375 dynamic_linker="$host_os dld.sl"
9376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9384 shrext_cmds='.sl'
9385 dynamic_linker="$host_os dld.sl"
9386 shlibpath_var=SHLIB_PATH
9387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9391 esac
9392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9393 postinstall_cmds='chmod 555 $lib'
9396 interix3*)
9397 version_type=linux
9398 need_lib_prefix=no
9399 need_version=no
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 hardcode_into_libs=yes
9408 irix5* | irix6* | nonstopux*)
9409 case $host_os in
9410 nonstopux*) version_type=nonstopux ;;
9412 if test "$lt_cv_prog_gnu_ld" = yes; then
9413 version_type=linux
9414 else
9415 version_type=irix
9416 fi ;;
9417 esac
9418 need_lib_prefix=no
9419 need_version=no
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9422 case $host_os in
9423 irix5* | nonstopux*)
9424 libsuff= shlibsuff=
9427 case $LD in # libtool.m4 will add one of these switches to LD
9428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9429 libsuff= shlibsuff= libmagic=32-bit;;
9430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9431 libsuff=32 shlibsuff=N32 libmagic=N32;;
9432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9434 *) libsuff= shlibsuff= libmagic=never-match;;
9435 esac
9437 esac
9438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9439 shlibpath_overrides_runpath=no
9440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9442 hardcode_into_libs=yes
9445 # No shared lib support for Linux oldld, aout, or coff.
9446 linux*oldld* | linux*aout* | linux*coff*)
9447 dynamic_linker=no
9450 # This must be Linux ELF.
9451 linux*)
9452 version_type=linux
9453 need_lib_prefix=no
9454 need_version=no
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=no
9460 # This implies no fast_install, which is unacceptable.
9461 # Some rework will be needed to allow for fast_install
9462 # before this can be enabled.
9463 hardcode_into_libs=yes
9465 # Append ld.so.conf contents to the search path
9466 if test -f /etc/ld.so.conf; then
9467 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' ' '`
9468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9471 # We used to test for /lib/ld.so.1 and disable shared libraries on
9472 # powerpc, because MkLinux only supported shared libraries with the
9473 # GNU dynamic linker. Since this was broken with cross compilers,
9474 # most powerpc-linux boxes support dynamic linking these days and
9475 # people can always --disable-shared, the test was removed, and we
9476 # assume the GNU/Linux dynamic linker is in use.
9477 dynamic_linker='GNU/Linux ld.so'
9480 knetbsd*-gnu)
9481 version_type=linux
9482 need_lib_prefix=no
9483 need_version=no
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=no
9488 hardcode_into_libs=yes
9489 dynamic_linker='GNU ld.so'
9492 netbsd*)
9493 version_type=sunos
9494 need_lib_prefix=no
9495 need_version=no
9496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9499 dynamic_linker='NetBSD (a.out) ld.so'
9500 else
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 dynamic_linker='NetBSD ld.elf_so'
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes
9507 hardcode_into_libs=yes
9510 newsos6)
9511 version_type=linux
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 shlibpath_overrides_runpath=yes
9517 nto-qnx*)
9518 version_type=linux
9519 need_lib_prefix=no
9520 need_version=no
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes
9527 openbsd*)
9528 version_type=sunos
9529 sys_lib_dlsearch_path_spec="/usr/lib"
9530 need_lib_prefix=no
9531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9532 case $host_os in
9533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9534 *) need_version=no ;;
9535 esac
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9540 case $host_os in
9541 openbsd2.[89] | openbsd2.[89].*)
9542 shlibpath_overrides_runpath=no
9545 shlibpath_overrides_runpath=yes
9547 esac
9548 else
9549 shlibpath_overrides_runpath=yes
9553 os2*)
9554 libname_spec='$name'
9555 shrext_cmds=".dll"
9556 need_lib_prefix=no
9557 library_names_spec='$libname${shared_ext} $libname.a'
9558 dynamic_linker='OS/2 ld.exe'
9559 shlibpath_var=LIBPATH
9562 osf3* | osf4* | osf5*)
9563 version_type=osf
9564 need_lib_prefix=no
9565 need_version=no
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9573 solaris*)
9574 version_type=linux
9575 need_lib_prefix=no
9576 need_version=no
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=yes
9581 hardcode_into_libs=yes
9582 # ldd complains unless libraries are executable
9583 postinstall_cmds='chmod +x $lib'
9586 sunos4*)
9587 version_type=sunos
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9592 if test "$with_gnu_ld" = yes; then
9593 need_lib_prefix=no
9595 need_version=yes
9598 sysv4 | sysv4.3*)
9599 version_type=linux
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 case $host_vendor in
9604 sni)
9605 shlibpath_overrides_runpath=no
9606 need_lib_prefix=no
9607 export_dynamic_flag_spec='${wl}-Blargedynsym'
9608 runpath_var=LD_RUN_PATH
9610 siemens)
9611 need_lib_prefix=no
9613 motorola)
9614 need_lib_prefix=no
9615 need_version=no
9616 shlibpath_overrides_runpath=no
9617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9619 esac
9622 sysv4*MP*)
9623 if test -d /usr/nec ;then
9624 version_type=linux
9625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9626 soname_spec='$libname${shared_ext}.$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9632 version_type=freebsd-elf
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 hardcode_into_libs=yes
9639 if test "$with_gnu_ld" = yes; then
9640 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9641 shlibpath_overrides_runpath=no
9642 else
9643 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9644 shlibpath_overrides_runpath=yes
9645 case $host_os in
9646 sco3.2v5*)
9647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9649 esac
9651 sys_lib_dlsearch_path_spec='/usr/lib'
9654 uts4*)
9655 version_type=linux
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 shlibpath_var=LD_LIBRARY_PATH
9662 dynamic_linker=no
9664 esac
9665 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9666 echo "${ECHO_T}$dynamic_linker" >&6; }
9667 test "$dynamic_linker" = no && can_build_shared=no
9669 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9670 if test "$GCC" = yes; then
9671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9675 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9676 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9677 if test "${libltdl_cv_shlibext+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9681 module=yes
9682 eval libltdl_cv_shlibext=$shrext_cmds
9685 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9686 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9687 if test -n "$libltdl_cv_shlibext"; then
9689 cat >>confdefs.h <<_ACEOF
9690 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9691 _ACEOF
9696 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9697 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9698 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 libltdl_cv_shlibpath_var="$shlibpath_var"
9703 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9704 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9705 if test -n "$libltdl_cv_shlibpath_var"; then
9707 cat >>confdefs.h <<_ACEOF
9708 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9709 _ACEOF
9714 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9715 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9716 if test "${libltdl_cv_sys_search_path+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9721 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9722 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9723 if test -n "$libltdl_cv_sys_search_path"; then
9724 sys_search_path=
9725 for dir in $libltdl_cv_sys_search_path; do
9726 if test -z "$sys_search_path"; then
9727 sys_search_path="$dir"
9728 else
9729 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9731 done
9733 cat >>confdefs.h <<_ACEOF
9734 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9735 _ACEOF
9739 { echo "$as_me:$LINENO: checking for objdir" >&5
9740 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9741 if test "${libltdl_cv_objdir+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 libltdl_cv_objdir="$objdir"
9745 if test -n "$objdir"; then
9747 else
9748 rm -f .libs 2>/dev/null
9749 mkdir .libs 2>/dev/null
9750 if test -d .libs; then
9751 libltdl_cv_objdir=.libs
9752 else
9753 # MS-DOS does not allow filenames that begin with a dot.
9754 libltdl_cv_objdir=_libs
9756 rmdir .libs 2>/dev/null
9760 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9761 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9763 cat >>confdefs.h <<_ACEOF
9764 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9765 _ACEOF
9772 # Check for command to grab the raw symbol name followed by C symbol from nm.
9773 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9774 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9775 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9779 # These are sane defaults that work on at least a few old systems.
9780 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9782 # Character class describing NM global symbol codes.
9783 symcode='[BCDEGRST]'
9785 # Regexp to match symbols that can be accessed directly from C.
9786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9788 # Transform an extracted symbol line into a proper C declaration
9789 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9791 # Transform an extracted symbol line into symbol name and symbol address
9792 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'"
9794 # Define system-specific variables.
9795 case $host_os in
9796 aix*)
9797 symcode='[BCDT]'
9799 cygwin* | mingw* | pw32*)
9800 symcode='[ABCDGISTW]'
9802 hpux*) # Its linker distinguishes data from code symbols
9803 if test "$host_cpu" = ia64; then
9804 symcode='[ABCDEGRST]'
9806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9807 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'"
9809 linux*)
9810 if test "$host_cpu" = ia64; then
9811 symcode='[ABCDGIRSTW]'
9812 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9813 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'"
9816 irix* | nonstopux*)
9817 symcode='[BCDEGRST]'
9819 osf*)
9820 symcode='[BCDEGQRST]'
9822 solaris*)
9823 symcode='[BDRT]'
9825 sco3.2v5*)
9826 symcode='[DT]'
9828 sysv4.2uw2*)
9829 symcode='[DT]'
9831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9832 symcode='[ABDT]'
9834 sysv4)
9835 symcode='[DFNSTU]'
9837 esac
9839 # Handle CRLF in mingw tool chain
9840 opt_cr=
9841 case $build_os in
9842 mingw*)
9843 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9845 esac
9847 # If we're using GNU nm, then use its standard symbol codes.
9848 case `$NM -V 2>&1` in
9849 *GNU* | *'with BFD'*)
9850 symcode='[ABCDGIRSTW]' ;;
9851 esac
9853 # Try without a prefix undercore, then with it.
9854 for ac_symprfx in "" "_"; do
9856 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9857 symxfrm="\\1 $ac_symprfx\\2 \\2"
9859 # Write the raw and C identifiers.
9860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9862 # Check to see that the pipe works correctly.
9863 pipe_works=no
9865 rm -f conftest*
9866 cat > conftest.$ac_ext <<EOF
9867 #ifdef __cplusplus
9868 extern "C" {
9869 #endif
9870 char nm_test_var;
9871 void nm_test_func(){}
9872 #ifdef __cplusplus
9874 #endif
9875 int main(){nm_test_var='a';nm_test_func();return(0);}
9878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9879 (eval $ac_compile) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; then
9883 # Now try to grab the symbols.
9884 nlist=conftest.nm
9885 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9886 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } && test -s "$nlist"; then
9890 # Try sorting and uniquifying the output.
9891 if sort "$nlist" | uniq > "$nlist"T; then
9892 mv -f "$nlist"T "$nlist"
9893 else
9894 rm -f "$nlist"T
9897 # Make sure that we snagged all the symbols we need.
9898 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9899 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9900 cat <<EOF > conftest.$ac_ext
9901 #ifdef __cplusplus
9902 extern "C" {
9903 #endif
9906 # Now generate the symbol file.
9907 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9909 cat <<EOF >> conftest.$ac_ext
9910 #if defined (__STDC__) && __STDC__
9911 # define lt_ptr_t void *
9912 #else
9913 # define lt_ptr_t char *
9914 # define const
9915 #endif
9917 /* The mapping between symbol names and symbols. */
9918 const struct {
9919 const char *name;
9920 lt_ptr_t address;
9922 lt_preloaded_symbols[] =
9925 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9926 cat <<\EOF >> conftest.$ac_ext
9927 {0, (lt_ptr_t) 0}
9930 #ifdef __cplusplus
9932 #endif
9934 # Now try linking the two files.
9935 mv conftest.$ac_objext conftstm.$ac_objext
9936 lt_save_LIBS="$LIBS"
9937 lt_save_CFLAGS="$CFLAGS"
9938 LIBS="conftstm.$ac_objext"
9939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9945 pipe_works=yes
9947 LIBS="$lt_save_LIBS"
9948 CFLAGS="$lt_save_CFLAGS"
9949 else
9950 echo "cannot find nm_test_func in $nlist" >&5
9952 else
9953 echo "cannot find nm_test_var in $nlist" >&5
9955 else
9956 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9958 else
9959 echo "$progname: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9962 rm -f conftest* conftst*
9964 # Do not use the global_symbol_pipe unless it works.
9965 if test "$pipe_works" = yes; then
9966 break
9967 else
9968 lt_cv_sys_global_symbol_pipe=
9970 done
9974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9975 lt_cv_sys_global_symbol_to_cdecl=
9977 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9978 { echo "$as_me:$LINENO: result: failed" >&5
9979 echo "${ECHO_T}failed" >&6; }
9980 else
9981 { echo "$as_me:$LINENO: result: ok" >&5
9982 echo "${ECHO_T}ok" >&6; }
9986 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9987 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9988 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9992 libltdl_cv_preloaded_symbols=yes
9993 else
9994 libltdl_cv_preloaded_symbols=no
9998 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9999 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10000 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10002 cat >>confdefs.h <<\_ACEOF
10003 #define HAVE_PRELOADED_SYMBOLS 1
10004 _ACEOF
10008 LIBADD_DL=
10010 ac_ext=c
10011 ac_cpp='$CPP $CPPFLAGS'
10012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10017 { echo "$as_me:$LINENO: checking for shl_load" >&5
10018 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10019 if test "${ac_cv_func_shl_load+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030 #define shl_load innocuous_shl_load
10032 /* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char shl_load (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10037 #ifdef __STDC__
10038 # include <limits.h>
10039 #else
10040 # include <assert.h>
10041 #endif
10043 #undef shl_load
10045 /* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
10048 #ifdef __cplusplus
10049 extern "C"
10050 #endif
10051 char shl_load ();
10052 /* The GNU C library defines this for functions which it implements
10053 to always fail with ENOSYS. Some functions are actually named
10054 something starting with __ and the normal name is an alias. */
10055 #if defined __stub_shl_load || defined __stub___shl_load
10056 choke me
10057 #endif
10060 main ()
10062 return shl_load ();
10064 return 0;
10066 _ACEOF
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (ac_try="$ac_link"
10069 case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_link") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_func_shl_load=yes
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_func_shl_load=no
10109 rm -f core conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10112 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10113 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10114 if test $ac_cv_func_shl_load = yes; then
10116 cat >>confdefs.h <<\_ACEOF
10117 #define HAVE_SHL_LOAD 1
10118 _ACEOF
10120 else
10121 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10122 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10123 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 ac_check_lib_save_LIBS=$LIBS
10127 LIBS="-ldld $LIBS"
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 char shl_load ();
10143 main ()
10145 return shl_load ();
10147 return 0;
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (ac_try="$ac_link"
10152 case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155 esac
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_link") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10165 { (case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_try") 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_lib_dld_shl_load=yes
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_cv_lib_dld_shl_load=no
10192 rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10194 LIBS=$ac_check_lib_save_LIBS
10196 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10197 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10198 if test $ac_cv_lib_dld_shl_load = yes; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_SHL_LOAD 1
10202 _ACEOF
10204 LIBADD_DL="$LIBADD_DL -ldld"
10205 else
10206 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10207 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 ac_check_lib_save_LIBS=$LIBS
10212 LIBS="-ldl $LIBS"
10213 cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h. */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char dlopen ();
10228 main ()
10230 return dlopen ();
10232 return 0;
10234 _ACEOF
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (ac_try="$ac_link"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_lib_dl_dlopen=yes
10270 else
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_cv_lib_dl_dlopen=no
10277 rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10282 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10283 if test $ac_cv_lib_dl_dlopen = yes; then
10285 cat >>confdefs.h <<\_ACEOF
10286 #define HAVE_LIBDL 1
10287 _ACEOF
10289 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10290 else
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 #if HAVE_DLFCN_H
10298 # include <dlfcn.h>
10299 #endif
10302 main ()
10304 dlopen(0, 0);
10306 return 0;
10308 _ACEOF
10309 rm -f conftest.$ac_objext conftest$ac_exeext
10310 if { (ac_try="$ac_link"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314 esac
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_link") 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest$ac_exeext'
10334 { (case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_try") 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_LIBDL 1
10346 _ACEOF
10347 libltdl_cv_func_dlopen="yes"
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10353 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10354 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357 ac_check_lib_save_LIBS=$LIBS
10358 LIBS="-lsvld $LIBS"
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 char dlopen ();
10374 main ()
10376 return dlopen ();
10378 return 0;
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_link") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399 esac
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10415 ac_cv_lib_svld_dlopen=yes
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 ac_cv_lib_svld_dlopen=no
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10427 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10429 if test $ac_cv_lib_svld_dlopen = yes; then
10431 cat >>confdefs.h <<\_ACEOF
10432 #define HAVE_LIBDL 1
10433 _ACEOF
10435 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10436 else
10437 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10438 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10439 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442 ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-ldld $LIBS"
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h. */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 char dld_link ();
10459 main ()
10461 return dld_link ();
10463 return 0;
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (ac_try="$ac_link"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_link") 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } &&
10480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10481 { (case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_try") 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10494 esac
10495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_try") 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 ac_cv_lib_dld_dld_link=yes
10501 else
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10505 ac_cv_lib_dld_dld_link=no
10508 rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10512 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10513 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10514 if test $ac_cv_lib_dld_dld_link = yes; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_DLD 1
10518 _ACEOF
10520 LIBADD_DL="$LIBADD_DL -ldld"
10521 else
10522 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10523 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10524 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10535 #define _dyld_func_lookup innocuous__dyld_func_lookup
10537 /* System header to define __stub macros and hopefully few prototypes,
10538 which can conflict with char _dyld_func_lookup (); below.
10539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10540 <limits.h> exists even on freestanding compilers. */
10542 #ifdef __STDC__
10543 # include <limits.h>
10544 #else
10545 # include <assert.h>
10546 #endif
10548 #undef _dyld_func_lookup
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10553 #ifdef __cplusplus
10554 extern "C"
10555 #endif
10556 char _dyld_func_lookup ();
10557 /* The GNU C library defines this for functions which it implements
10558 to always fail with ENOSYS. Some functions are actually named
10559 something starting with __ and the normal name is an alias. */
10560 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10561 choke me
10562 #endif
10565 main ()
10567 return _dyld_func_lookup ();
10569 return 0;
10571 _ACEOF
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (ac_try="$ac_link"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_link") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10587 { (case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_try") 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest$ac_exeext'
10597 { (case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600 esac
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_try") 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 ac_cv_func__dyld_func_lookup=yes
10607 else
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ac_cv_func__dyld_func_lookup=no
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10618 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10619 if test $ac_cv_func__dyld_func_lookup = yes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define HAVE_DYLD 1
10623 _ACEOF
10636 rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10648 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10649 then
10650 lt_save_LIBS="$LIBS"
10651 LIBS="$LIBS $LIBADD_DL"
10653 for ac_func in dlerror
10655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10669 #define $ac_func innocuous_$ac_func
10671 /* System header to define __stub macros and hopefully few prototypes,
10672 which can conflict with char $ac_func (); below.
10673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10674 <limits.h> exists even on freestanding compilers. */
10676 #ifdef __STDC__
10677 # include <limits.h>
10678 #else
10679 # include <assert.h>
10680 #endif
10682 #undef $ac_func
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10687 #ifdef __cplusplus
10688 extern "C"
10689 #endif
10690 char $ac_func ();
10691 /* The GNU C library defines this for functions which it implements
10692 to always fail with ENOSYS. Some functions are actually named
10693 something starting with __ and the normal name is an alias. */
10694 #if defined __stub_$ac_func || defined __stub___$ac_func
10695 choke me
10696 #endif
10699 main ()
10701 return $ac_func ();
10703 return 0;
10705 _ACEOF
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (ac_try="$ac_link"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_link") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest$ac_exeext'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 eval "$as_ac_var=yes"
10741 else
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 eval "$as_ac_var=no"
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10751 ac_res=`eval echo '${'$as_ac_var'}'`
10752 { echo "$as_me:$LINENO: result: $ac_res" >&5
10753 echo "${ECHO_T}$ac_res" >&6; }
10754 if test `eval echo '${'$as_ac_var'}'` = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10757 _ACEOF
10760 done
10762 LIBS="$lt_save_LIBS"
10764 ac_ext=c
10765 ac_cpp='$CPP $CPPFLAGS'
10766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10773 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10774 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 ac_cv_sys_symbol_underscore=no
10778 cat > conftest.$ac_ext <<EOF
10779 void nm_test_func(){}
10780 int main(){nm_test_func;return 0;}
10782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; then
10787 # Now try to grab the symbols.
10788 ac_nlist=conftest.nm
10789 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10790 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && test -s "$ac_nlist"; then
10794 # See whether the symbols have a leading underscore.
10795 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10796 ac_cv_sys_symbol_underscore=yes
10797 else
10798 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10800 else
10801 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10804 else
10805 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10807 else
10808 echo "configure: failed program was:" >&5
10809 cat conftest.c >&5
10811 rm -rf conftest*
10814 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10815 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10818 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10819 if test x"$libltdl_cv_func_dlopen" = xyes ||
10820 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10821 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10822 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10823 if test "${libltdl_cv_need_uscore+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 libltdl_cv_need_uscore=unknown
10827 save_LIBS="$LIBS"
10828 LIBS="$LIBS $LIBADD_DL"
10829 if test "$cross_compiling" = yes; then :
10830 libltdl_cv_need_uscore=cross
10831 else
10832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10833 lt_status=$lt_dlunknown
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10835 "configure"
10836 #include "confdefs.h"
10838 #if HAVE_DLFCN_H
10839 #include <dlfcn.h>
10840 #endif
10842 #include <stdio.h>
10844 #ifdef RTLD_GLOBAL
10845 # define LT_DLGLOBAL RTLD_GLOBAL
10846 #else
10847 # ifdef DL_GLOBAL
10848 # define LT_DLGLOBAL DL_GLOBAL
10849 # else
10850 # define LT_DLGLOBAL 0
10851 # endif
10852 #endif
10854 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10855 find out it does not work in some platform. */
10856 #ifndef LT_DLLAZY_OR_NOW
10857 # ifdef RTLD_LAZY
10858 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10859 # else
10860 # ifdef DL_LAZY
10861 # define LT_DLLAZY_OR_NOW DL_LAZY
10862 # else
10863 # ifdef RTLD_NOW
10864 # define LT_DLLAZY_OR_NOW RTLD_NOW
10865 # else
10866 # ifdef DL_NOW
10867 # define LT_DLLAZY_OR_NOW DL_NOW
10868 # else
10869 # define LT_DLLAZY_OR_NOW 0
10870 # endif
10871 # endif
10872 # endif
10873 # endif
10874 #endif
10876 #ifdef __cplusplus
10877 extern "C" void exit (int);
10878 #endif
10880 void fnord() { int i=42;}
10881 int main ()
10883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10884 int status = $lt_dlunknown;
10886 if (self)
10888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10889 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10890 /* dlclose (self); */
10892 else
10893 puts (dlerror ());
10895 exit (status);
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10903 (./conftest; exit; ) >&5 2>/dev/null
10904 lt_status=$?
10905 case x$lt_status in
10906 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10907 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10908 x$lt_dlunknown|x*) ;;
10909 esac
10910 else :
10911 # compilation failed
10915 rm -fr conftest*
10917 LIBS="$save_LIBS"
10920 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10921 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10925 if test x"$libltdl_cv_need_uscore" = xyes; then
10927 cat >>confdefs.h <<\_ACEOF
10928 #define NEED_USCORE 1
10929 _ACEOF
10934 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10935 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10936 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 # PORTME does your system automatically load deplibs for dlopen?
10940 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10941 # For now, we just catch OSes we know something about -- in the
10942 # future, we'll try test this programmatically.
10943 libltdl_cv_sys_dlopen_deplibs=unknown
10944 case "$host_os" in
10945 aix3*|aix4.1.*|aix4.2.*)
10946 # Unknown whether this is true for these versions of AIX, but
10947 # we want this `case' here to explicitly catch those versions.
10948 libltdl_cv_sys_dlopen_deplibs=unknown
10950 aix[45]*)
10951 libltdl_cv_sys_dlopen_deplibs=yes
10953 darwin*)
10954 # Assuming the user has installed a libdl from somewhere, this is true
10955 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10956 libltdl_cv_sys_dlopen_deplibs=yes
10958 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10959 # GNU and its variants, using gnu ld.so (Glibc)
10960 libltdl_cv_sys_dlopen_deplibs=yes
10962 hpux10*|hpux11*)
10963 libltdl_cv_sys_dlopen_deplibs=yes
10965 interix*)
10966 libltdl_cv_sys_dlopen_deplibs=yes
10968 irix[12345]*|irix6.[01]*)
10969 # Catch all versions of IRIX before 6.2, and indicate that we don't
10970 # know how it worked for any of those versions.
10971 libltdl_cv_sys_dlopen_deplibs=unknown
10973 irix*)
10974 # The case above catches anything before 6.2, and it's known that
10975 # at 6.2 and later dlopen does load deplibs.
10976 libltdl_cv_sys_dlopen_deplibs=yes
10978 netbsd*)
10979 libltdl_cv_sys_dlopen_deplibs=yes
10981 openbsd*)
10982 libltdl_cv_sys_dlopen_deplibs=yes
10984 osf[1234]*)
10985 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10986 # it did *not* use an RPATH in a shared library to find objects the
10987 # library depends on, so we explictly say `no'.
10988 libltdl_cv_sys_dlopen_deplibs=no
10990 osf5.0|osf5.0a|osf5.1)
10991 # dlopen *does* load deplibs and with the right loader patch applied
10992 # it even uses RPATH in a shared library to search for shared objects
10993 # that the library depends on, but there's no easy way to know if that
10994 # patch is installed. Since this is the case, all we can really
10995 # say is unknown -- it depends on the patch being installed. If
10996 # it is, this changes to `yes'. Without it, it would be `no'.
10997 libltdl_cv_sys_dlopen_deplibs=unknown
10999 osf*)
11000 # the two cases above should catch all versions of osf <= 5.1. Read
11001 # the comments above for what we know about them.
11002 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11003 # is used to find them so we can finally say `yes'.
11004 libltdl_cv_sys_dlopen_deplibs=yes
11006 solaris*)
11007 libltdl_cv_sys_dlopen_deplibs=yes
11009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11010 libltdl_cv_sys_dlopen_deplibs=yes
11012 esac
11015 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11016 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11017 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11019 cat >>confdefs.h <<\_ACEOF
11020 #define LTDL_DLOPEN_DEPLIBS 1
11021 _ACEOF
11026 for ac_header in argz.h
11028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 ac_res=`eval echo '${'$as_ac_Header'}'`
11036 { echo "$as_me:$LINENO: result: $ac_res" >&5
11037 echo "${ECHO_T}$ac_res" >&6; }
11038 else
11039 # Is the header compilable?
11040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 $ac_includes_default
11049 #include <$ac_header>
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (ac_try="$ac_compile"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11066 { (case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11069 esac
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_try") 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_header_compiler=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_header_compiler=no
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11095 echo "${ECHO_T}$ac_header_compiler" >&6; }
11097 # Is the header present?
11098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h. */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 #include <$ac_header>
11107 _ACEOF
11108 if { (ac_try="$ac_cpp conftest.$ac_ext"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } >/dev/null; then
11121 if test -s conftest.err; then
11122 ac_cpp_err=$ac_c_preproc_warn_flag
11123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11124 else
11125 ac_cpp_err=
11127 else
11128 ac_cpp_err=yes
11130 if test -z "$ac_cpp_err"; then
11131 ac_header_preproc=yes
11132 else
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11136 ac_header_preproc=no
11139 rm -f conftest.err conftest.$ac_ext
11140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11141 echo "${ECHO_T}$ac_header_preproc" >&6; }
11143 # So? What about this header?
11144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11145 yes:no: )
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11150 ac_header_preproc=yes
11152 no:yes:* )
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11165 ( cat <<\_ASBOX
11166 ## ----------------------------------- ##
11167 ## Report this to llvmbugs@cs.uiuc.edu ##
11168 ## ----------------------------------- ##
11169 _ASBOX
11170 ) | sed "s/^/$as_me: WARNING: /" >&2
11172 esac
11173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 eval "$as_ac_Header=\$ac_header_preproc"
11180 ac_res=`eval echo '${'$as_ac_Header'}'`
11181 { echo "$as_me:$LINENO: result: $ac_res" >&5
11182 echo "${ECHO_T}$ac_res" >&6; }
11185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11186 cat >>confdefs.h <<_ACEOF
11187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11188 _ACEOF
11192 done
11195 { echo "$as_me:$LINENO: checking for error_t" >&5
11196 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11197 if test "${ac_cv_type_error_t+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h. */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206 #if HAVE_ARGZ_H
11207 # include <argz.h>
11208 #endif
11210 typedef error_t ac__type_new_;
11212 main ()
11214 if ((ac__type_new_ *) 0)
11215 return 0;
11216 if (sizeof (ac__type_new_))
11217 return 0;
11219 return 0;
11221 _ACEOF
11222 rm -f conftest.$ac_objext
11223 if { (ac_try="$ac_compile"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227 esac
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_compile") 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240 esac
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_try") 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest.$ac_objext'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250 esac
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_type_error_t=yes
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_cv_type_error_t=no
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11267 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11268 if test $ac_cv_type_error_t = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define HAVE_ERROR_T 1
11272 _ACEOF
11275 else
11277 cat >>confdefs.h <<\_ACEOF
11278 #define error_t int
11279 _ACEOF
11289 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h. */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305 #define $ac_func innocuous_$ac_func
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11312 #ifdef __STDC__
11313 # include <limits.h>
11314 #else
11315 # include <assert.h>
11316 #endif
11318 #undef $ac_func
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char $ac_func ();
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined __stub_$ac_func || defined __stub___$ac_func
11331 choke me
11332 #endif
11335 main ()
11337 return $ac_func ();
11339 return 0;
11341 _ACEOF
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 eval "$as_ac_var=yes"
11377 else
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 eval "$as_ac_var=no"
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11387 ac_res=`eval echo '${'$as_ac_var'}'`
11388 { echo "$as_me:$LINENO: result: $ac_res" >&5
11389 echo "${ECHO_T}$ac_res" >&6; }
11390 if test `eval echo '${'$as_ac_var'}'` = yes; then
11391 cat >>confdefs.h <<_ACEOF
11392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11393 _ACEOF
11396 done
11425 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11426 stdio.h unistd.h
11428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 ac_res=`eval echo '${'$as_ac_Header'}'`
11436 { echo "$as_me:$LINENO: result: $ac_res" >&5
11437 echo "${ECHO_T}$ac_res" >&6; }
11438 else
11439 # Is the header compilable?
11440 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11449 #include <$ac_header>
11450 _ACEOF
11451 rm -f conftest.$ac_objext
11452 if { (ac_try="$ac_compile"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_compile") 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_header_compiler=yes
11486 else
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_header_compiler=no
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11495 echo "${ECHO_T}$ac_header_compiler" >&6; }
11497 # Is the header present?
11498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include <$ac_header>
11507 _ACEOF
11508 if { (ac_try="$ac_cpp conftest.$ac_ext"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } >/dev/null; then
11521 if test -s conftest.err; then
11522 ac_cpp_err=$ac_c_preproc_warn_flag
11523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11524 else
11525 ac_cpp_err=
11527 else
11528 ac_cpp_err=yes
11530 if test -z "$ac_cpp_err"; then
11531 ac_header_preproc=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_preproc=no
11539 rm -f conftest.err conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11543 # So? What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545 yes:no: )
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc=yes
11552 no:yes:* )
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11565 ( cat <<\_ASBOX
11566 ## ----------------------------------- ##
11567 ## Report this to llvmbugs@cs.uiuc.edu ##
11568 ## ----------------------------------- ##
11569 _ASBOX
11570 ) | sed "s/^/$as_me: WARNING: /" >&2
11572 esac
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578 eval "$as_ac_Header=\$ac_header_preproc"
11580 ac_res=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582 echo "${ECHO_T}$ac_res" >&6; }
11585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11588 _ACEOF
11592 done
11598 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 ac_res=`eval echo '${'$as_ac_Header'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11610 else
11611 # Is the header compilable?
11612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h. */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 $ac_includes_default
11621 #include <$ac_header>
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (ac_try="$ac_compile"
11625 case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628 esac
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_compile") 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; } &&
11647 { ac_try='test -s conftest.$ac_objext'
11648 { (case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651 esac
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_try") 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_header_compiler=yes
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ac_header_compiler=no
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11667 echo "${ECHO_T}$ac_header_compiler" >&6; }
11669 # Is the header present?
11670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11672 cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h. */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 #include <$ac_header>
11679 _ACEOF
11680 if { (ac_try="$ac_cpp conftest.$ac_ext"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } >/dev/null; then
11693 if test -s conftest.err; then
11694 ac_cpp_err=$ac_c_preproc_warn_flag
11695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11696 else
11697 ac_cpp_err=
11699 else
11700 ac_cpp_err=yes
11702 if test -z "$ac_cpp_err"; then
11703 ac_header_preproc=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_header_preproc=no
11711 rm -f conftest.err conftest.$ac_ext
11712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11713 echo "${ECHO_T}$ac_header_preproc" >&6; }
11715 # So? What about this header?
11716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11717 yes:no: )
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11722 ac_header_preproc=yes
11724 no:yes:* )
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11737 ( cat <<\_ASBOX
11738 ## ----------------------------------- ##
11739 ## Report this to llvmbugs@cs.uiuc.edu ##
11740 ## ----------------------------------- ##
11741 _ASBOX
11742 ) | sed "s/^/$as_me: WARNING: /" >&2
11744 esac
11745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750 eval "$as_ac_Header=\$ac_header_preproc"
11752 ac_res=`eval echo '${'$as_ac_Header'}'`
11753 { echo "$as_me:$LINENO: result: $ac_res" >&5
11754 echo "${ECHO_T}$ac_res" >&6; }
11757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11760 _ACEOF
11764 done
11768 for ac_header in string.h strings.h
11770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 ac_res=`eval echo '${'$as_ac_Header'}'`
11778 { echo "$as_me:$LINENO: result: $ac_res" >&5
11779 echo "${ECHO_T}$ac_res" >&6; }
11780 else
11781 # Is the header compilable?
11782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11784 cat >conftest.$ac_ext <<_ACEOF
11785 /* confdefs.h. */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 $ac_includes_default
11791 #include <$ac_header>
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest.$ac_objext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 ac_header_compiler=yes
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_header_compiler=no
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11837 echo "${ECHO_T}$ac_header_compiler" >&6; }
11839 # Is the header present?
11840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <$ac_header>
11849 _ACEOF
11850 if { (ac_try="$ac_cpp conftest.$ac_ext"
11851 case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } >/dev/null; then
11863 if test -s conftest.err; then
11864 ac_cpp_err=$ac_c_preproc_warn_flag
11865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11866 else
11867 ac_cpp_err=
11869 else
11870 ac_cpp_err=yes
11872 if test -z "$ac_cpp_err"; then
11873 ac_header_preproc=yes
11874 else
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_header_preproc=no
11881 rm -f conftest.err conftest.$ac_ext
11882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11883 echo "${ECHO_T}$ac_header_preproc" >&6; }
11885 # So? What about this header?
11886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11887 yes:no: )
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11892 ac_header_preproc=yes
11894 no:yes:* )
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11907 ( cat <<\_ASBOX
11908 ## ----------------------------------- ##
11909 ## Report this to llvmbugs@cs.uiuc.edu ##
11910 ## ----------------------------------- ##
11911 _ASBOX
11912 ) | sed "s/^/$as_me: WARNING: /" >&2
11914 esac
11915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 eval "$as_ac_Header=\$ac_header_preproc"
11922 ac_res=`eval echo '${'$as_ac_Header'}'`
11923 { echo "$as_me:$LINENO: result: $ac_res" >&5
11924 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11930 _ACEOF
11931 break
11934 done
11939 for ac_func in strchr index
11941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h. */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11955 #define $ac_func innocuous_$ac_func
11957 /* System header to define __stub macros and hopefully few prototypes,
11958 which can conflict with char $ac_func (); below.
11959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960 <limits.h> exists even on freestanding compilers. */
11962 #ifdef __STDC__
11963 # include <limits.h>
11964 #else
11965 # include <assert.h>
11966 #endif
11968 #undef $ac_func
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char $ac_func ();
11977 /* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980 #if defined __stub_$ac_func || defined __stub___$ac_func
11981 choke me
11982 #endif
11985 main ()
11987 return $ac_func ();
11989 return 0;
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 eval "$as_ac_var=yes"
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 eval "$as_ac_var=no"
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12037 ac_res=`eval echo '${'$as_ac_var'}'`
12038 { echo "$as_me:$LINENO: result: $ac_res" >&5
12039 echo "${ECHO_T}$ac_res" >&6; }
12040 if test `eval echo '${'$as_ac_var'}'` = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12043 _ACEOF
12044 break
12046 done
12050 for ac_func in strrchr rindex
12052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define $ac_func innocuous_$ac_func
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12073 #ifdef __STDC__
12074 # include <limits.h>
12075 #else
12076 # include <assert.h>
12077 #endif
12079 #undef $ac_func
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char $ac_func ();
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined __stub_$ac_func || defined __stub___$ac_func
12092 choke me
12093 #endif
12096 main ()
12098 return $ac_func ();
12100 return 0;
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest$ac_exeext'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 eval "$as_ac_var=yes"
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 eval "$as_ac_var=no"
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12148 ac_res=`eval echo '${'$as_ac_var'}'`
12149 { echo "$as_me:$LINENO: result: $ac_res" >&5
12150 echo "${ECHO_T}$ac_res" >&6; }
12151 if test `eval echo '${'$as_ac_var'}'` = yes; then
12152 cat >>confdefs.h <<_ACEOF
12153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12154 _ACEOF
12155 break
12157 done
12161 for ac_func in memcpy bcopy
12163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12177 #define $ac_func innocuous_$ac_func
12179 /* System header to define __stub macros and hopefully few prototypes,
12180 which can conflict with char $ac_func (); below.
12181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182 <limits.h> exists even on freestanding compilers. */
12184 #ifdef __STDC__
12185 # include <limits.h>
12186 #else
12187 # include <assert.h>
12188 #endif
12190 #undef $ac_func
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char $ac_func ();
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined __stub_$ac_func || defined __stub___$ac_func
12203 choke me
12204 #endif
12207 main ()
12209 return $ac_func ();
12211 return 0;
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; } &&
12238 { ac_try='test -s conftest$ac_exeext'
12239 { (case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_try") 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 eval "$as_ac_var=yes"
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 eval "$as_ac_var=no"
12256 rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12259 ac_res=`eval echo '${'$as_ac_var'}'`
12260 { echo "$as_me:$LINENO: result: $ac_res" >&5
12261 echo "${ECHO_T}$ac_res" >&6; }
12262 if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265 _ACEOF
12266 break
12268 done
12272 for ac_func in memmove strcmp
12274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12288 #define $ac_func innocuous_$ac_func
12290 /* System header to define __stub macros and hopefully few prototypes,
12291 which can conflict with char $ac_func (); below.
12292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12293 <limits.h> exists even on freestanding compilers. */
12295 #ifdef __STDC__
12296 # include <limits.h>
12297 #else
12298 # include <assert.h>
12299 #endif
12301 #undef $ac_func
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12306 #ifdef __cplusplus
12307 extern "C"
12308 #endif
12309 char $ac_func ();
12310 /* The GNU C library defines this for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
12313 #if defined __stub_$ac_func || defined __stub___$ac_func
12314 choke me
12315 #endif
12318 main ()
12320 return $ac_func ();
12322 return 0;
12324 _ACEOF
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_link") 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12340 { (case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_try") 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; } &&
12349 { ac_try='test -s conftest$ac_exeext'
12350 { (case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12353 esac
12354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_try") 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 eval "$as_ac_var=yes"
12360 else
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 eval "$as_ac_var=no"
12367 rm -f core conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12370 ac_res=`eval echo '${'$as_ac_var'}'`
12371 { echo "$as_me:$LINENO: result: $ac_res" >&5
12372 echo "${ECHO_T}$ac_res" >&6; }
12373 if test `eval echo '${'$as_ac_var'}'` = yes; then
12374 cat >>confdefs.h <<_ACEOF
12375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12376 _ACEOF
12379 done
12384 for ac_func in closedir opendir readdir
12386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define $ac_func innocuous_$ac_func
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12407 #ifdef __STDC__
12408 # include <limits.h>
12409 #else
12410 # include <assert.h>
12411 #endif
12413 #undef $ac_func
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char $ac_func ();
12422 /* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
12425 #if defined __stub_$ac_func || defined __stub___$ac_func
12426 choke me
12427 #endif
12430 main ()
12432 return $ac_func ();
12434 return 0;
12436 _ACEOF
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_link") 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 eval "$as_ac_var=yes"
12472 else
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 eval "$as_ac_var=no"
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12482 ac_res=`eval echo '${'$as_ac_var'}'`
12483 { echo "$as_me:$LINENO: result: $ac_res" >&5
12484 echo "${ECHO_T}$ac_res" >&6; }
12485 if test `eval echo '${'$as_ac_var'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12488 _ACEOF
12491 done
12494 # Check whether --enable-shared was given.
12495 if test "${enable_shared+set}" = set; then
12496 enableval=$enable_shared; p=${PACKAGE-default}
12497 case $enableval in
12498 yes) enable_shared=yes ;;
12499 no) enable_shared=no ;;
12501 enable_shared=no
12502 # Look at the argument we got. We use all the common list separators.
12503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12504 for pkg in $enableval; do
12505 IFS="$lt_save_ifs"
12506 if test "X$pkg" = "X$p"; then
12507 enable_shared=yes
12509 done
12510 IFS="$lt_save_ifs"
12512 esac
12513 else
12514 enable_shared=yes
12518 # Check whether --enable-static was given.
12519 if test "${enable_static+set}" = set; then
12520 enableval=$enable_static; p=${PACKAGE-default}
12521 case $enableval in
12522 yes) enable_static=yes ;;
12523 no) enable_static=no ;;
12525 enable_static=no
12526 # Look at the argument we got. We use all the common list separators.
12527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12528 for pkg in $enableval; do
12529 IFS="$lt_save_ifs"
12530 if test "X$pkg" = "X$p"; then
12531 enable_static=yes
12533 done
12534 IFS="$lt_save_ifs"
12536 esac
12537 else
12538 enable_static=yes
12542 # Check whether --enable-fast-install was given.
12543 if test "${enable_fast_install+set}" = set; then
12544 enableval=$enable_fast_install; p=${PACKAGE-default}
12545 case $enableval in
12546 yes) enable_fast_install=yes ;;
12547 no) enable_fast_install=no ;;
12549 enable_fast_install=no
12550 # Look at the argument we got. We use all the common list separators.
12551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12552 for pkg in $enableval; do
12553 IFS="$lt_save_ifs"
12554 if test "X$pkg" = "X$p"; then
12555 enable_fast_install=yes
12557 done
12558 IFS="$lt_save_ifs"
12560 esac
12561 else
12562 enable_fast_install=yes
12566 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12567 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12568 if test "${lt_cv_path_SED+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571 # Loop through the user's path and test for sed and gsed.
12572 # Then use that list of sed's as ones to test for truncation.
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for lt_ac_prog in sed gsed; do
12579 for ac_exec_ext in '' $ac_executable_extensions; do
12580 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12581 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12583 done
12584 done
12585 done
12586 lt_ac_max=0
12587 lt_ac_count=0
12588 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12589 # along with /bin/sed that truncates output.
12590 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12591 test ! -f $lt_ac_sed && continue
12592 cat /dev/null > conftest.in
12593 lt_ac_count=0
12594 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12595 # Check for GNU sed and select it if it is found.
12596 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12597 lt_cv_path_SED=$lt_ac_sed
12598 break
12600 while true; do
12601 cat conftest.in conftest.in >conftest.tmp
12602 mv conftest.tmp conftest.in
12603 cp conftest.in conftest.nl
12604 echo >>conftest.nl
12605 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12606 cmp -s conftest.out conftest.nl || break
12607 # 10000 chars as input seems more than enough
12608 test $lt_ac_count -gt 10 && break
12609 lt_ac_count=`expr $lt_ac_count + 1`
12610 if test $lt_ac_count -gt $lt_ac_max; then
12611 lt_ac_max=$lt_ac_count
12612 lt_cv_path_SED=$lt_ac_sed
12614 done
12615 done
12619 SED=$lt_cv_path_SED
12620 { echo "$as_me:$LINENO: result: $SED" >&5
12621 echo "${ECHO_T}$SED" >&6; }
12624 # Check whether --with-gnu-ld was given.
12625 if test "${with_gnu_ld+set}" = set; then
12626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12627 else
12628 with_gnu_ld=no
12631 ac_prog=ld
12632 if test "$GCC" = yes; then
12633 # Check if gcc -print-prog-name=ld gives a path.
12634 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12635 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12636 case $host in
12637 *-*-mingw*)
12638 # gcc leaves a trailing carriage return which upsets mingw
12639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12642 esac
12643 case $ac_prog in
12644 # Accept absolute paths.
12645 [\\/]* | ?:[\\/]*)
12646 re_direlt='/[^/][^/]*/\.\./'
12647 # Canonicalize the pathname of ld
12648 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12649 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12650 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12651 done
12652 test -z "$LD" && LD="$ac_prog"
12655 # If it fails, then pretend we aren't using GCC.
12656 ac_prog=ld
12659 # If it is relative, then search for the first ld in PATH.
12660 with_gnu_ld=unknown
12662 esac
12663 elif test "$with_gnu_ld" = yes; then
12664 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12665 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12666 else
12667 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12668 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12670 if test "${lt_cv_path_LD+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 if test -z "$LD"; then
12674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12675 for ac_dir in $PATH; do
12676 IFS="$lt_save_ifs"
12677 test -z "$ac_dir" && ac_dir=.
12678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12679 lt_cv_path_LD="$ac_dir/$ac_prog"
12680 # Check to see if the program is GNU ld. I'd rather use --version,
12681 # but apparently some variants of GNU ld only accept -v.
12682 # Break only if it was the GNU/non-GNU ld that we prefer.
12683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12684 *GNU* | *'with BFD'*)
12685 test "$with_gnu_ld" != no && break
12688 test "$with_gnu_ld" != yes && break
12690 esac
12692 done
12693 IFS="$lt_save_ifs"
12694 else
12695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12699 LD="$lt_cv_path_LD"
12700 if test -n "$LD"; then
12701 { echo "$as_me:$LINENO: result: $LD" >&5
12702 echo "${ECHO_T}$LD" >&6; }
12703 else
12704 { echo "$as_me:$LINENO: result: no" >&5
12705 echo "${ECHO_T}no" >&6; }
12707 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12708 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12709 { (exit 1); exit 1; }; }
12710 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12711 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12712 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12716 case `$LD -v 2>&1 </dev/null` in
12717 *GNU* | *'with BFD'*)
12718 lt_cv_prog_gnu_ld=yes
12721 lt_cv_prog_gnu_ld=no
12723 esac
12725 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12726 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12727 with_gnu_ld=$lt_cv_prog_gnu_ld
12730 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12731 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12732 if test "${lt_cv_ld_reload_flag+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735 lt_cv_ld_reload_flag='-r'
12737 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12738 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12739 reload_flag=$lt_cv_ld_reload_flag
12740 case $reload_flag in
12741 "" | " "*) ;;
12742 *) reload_flag=" $reload_flag" ;;
12743 esac
12744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12745 case $host_os in
12746 darwin*)
12747 if test "$GCC" = yes; then
12748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12749 else
12750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12753 esac
12755 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12756 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12757 if test "${lt_cv_deplibs_check_method+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760 lt_cv_file_magic_cmd='$MAGIC_CMD'
12761 lt_cv_file_magic_test_file=
12762 lt_cv_deplibs_check_method='unknown'
12763 # Need to set the preceding variable on all platforms that support
12764 # interlibrary dependencies.
12765 # 'none' -- dependencies not supported.
12766 # `unknown' -- same as none, but documents that we really don't know.
12767 # 'pass_all' -- all dependencies passed with no checks.
12768 # 'test_compile' -- check by making test program.
12769 # 'file_magic [[regex]]' -- check by looking for files in library path
12770 # which responds to the $file_magic_cmd with a given extended regex.
12771 # If you have `file' or equivalent on your system and you're not sure
12772 # whether `pass_all' will *always* work, you probably want this one.
12774 case $host_os in
12775 aix4* | aix5*)
12776 lt_cv_deplibs_check_method=pass_all
12779 beos*)
12780 lt_cv_deplibs_check_method=pass_all
12783 bsdi[45]*)
12784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12785 lt_cv_file_magic_cmd='/usr/bin/file -L'
12786 lt_cv_file_magic_test_file=/shlib/libc.so
12789 cygwin*)
12790 # func_win32_libid is a shell function defined in ltmain.sh
12791 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12792 lt_cv_file_magic_cmd='func_win32_libid'
12795 mingw* | pw32*)
12796 # Base MSYS/MinGW do not provide the 'file' command needed by
12797 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12798 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12799 lt_cv_file_magic_cmd='$OBJDUMP -f'
12802 darwin* | rhapsody*)
12803 lt_cv_deplibs_check_method=pass_all
12806 freebsd* | kfreebsd*-gnu | dragonfly*)
12807 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12808 case $host_cpu in
12809 i*86 )
12810 # Not sure whether the presence of OpenBSD here was a mistake.
12811 # Let's accept both of them until this is cleared up.
12812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12813 lt_cv_file_magic_cmd=/usr/bin/file
12814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12816 esac
12817 else
12818 lt_cv_deplibs_check_method=pass_all
12822 gnu*)
12823 lt_cv_deplibs_check_method=pass_all
12826 hpux10.20* | hpux11*)
12827 lt_cv_file_magic_cmd=/usr/bin/file
12828 case $host_cpu in
12829 ia64*)
12830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12833 hppa*64*)
12834 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]'
12835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12841 esac
12844 interix3*)
12845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12849 irix5* | irix6* | nonstopux*)
12850 case $LD in
12851 *-32|*"-32 ") libmagic=32-bit;;
12852 *-n32|*"-n32 ") libmagic=N32;;
12853 *-64|*"-64 ") libmagic=64-bit;;
12854 *) libmagic=never-match;;
12855 esac
12856 lt_cv_deplibs_check_method=pass_all
12859 # This must be Linux ELF.
12860 linux*)
12861 lt_cv_deplibs_check_method=pass_all
12864 netbsd*)
12865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12867 else
12868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12872 newos6*)
12873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12874 lt_cv_file_magic_cmd=/usr/bin/file
12875 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12878 nto-qnx*)
12879 lt_cv_deplibs_check_method=unknown
12882 openbsd*)
12883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12885 else
12886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12890 osf3* | osf4* | osf5*)
12891 lt_cv_deplibs_check_method=pass_all
12894 solaris*)
12895 lt_cv_deplibs_check_method=pass_all
12898 sysv4 | sysv4.3*)
12899 case $host_vendor in
12900 motorola)
12901 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]'
12902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12904 ncr)
12905 lt_cv_deplibs_check_method=pass_all
12907 sequent)
12908 lt_cv_file_magic_cmd='/bin/file'
12909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12911 sni)
12912 lt_cv_file_magic_cmd='/bin/file'
12913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12914 lt_cv_file_magic_test_file=/lib/libc.so
12916 siemens)
12917 lt_cv_deplibs_check_method=pass_all
12920 lt_cv_deplibs_check_method=pass_all
12922 esac
12925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12926 lt_cv_deplibs_check_method=pass_all
12928 esac
12931 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12932 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12933 file_magic_cmd=$lt_cv_file_magic_cmd
12934 deplibs_check_method=$lt_cv_deplibs_check_method
12935 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12939 # If no C compiler was specified, use CC.
12940 LTCC=${LTCC-"$CC"}
12942 # If no C compiler flags were specified, use CFLAGS.
12943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12945 # Allow CC to be a program name with arguments.
12946 compiler=$CC
12948 # Check whether --enable-libtool-lock was given.
12949 if test "${enable_libtool_lock+set}" = set; then
12950 enableval=$enable_libtool_lock;
12953 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12955 # Some flags need to be propagated to the compiler or linker for good
12956 # libtool support.
12957 case $host in
12958 ia64-*-hpux*)
12959 # Find out which ABI we are using.
12960 echo 'int i;' > conftest.$ac_ext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; then
12966 case `/usr/bin/file conftest.$ac_objext` in
12967 *ELF-32*)
12968 HPUX_IA64_MODE="32"
12970 *ELF-64*)
12971 HPUX_IA64_MODE="64"
12973 esac
12975 rm -rf conftest*
12977 *-*-irix6*)
12978 # Find out which ABI we are using.
12979 echo '#line 12979 "configure"' > conftest.$ac_ext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; then
12985 if test "$lt_cv_prog_gnu_ld" = yes; then
12986 case `/usr/bin/file conftest.$ac_objext` in
12987 *32-bit*)
12988 LD="${LD-ld} -melf32bsmip"
12990 *N32*)
12991 LD="${LD-ld} -melf32bmipn32"
12993 *64-bit*)
12994 LD="${LD-ld} -melf64bmip"
12996 esac
12997 else
12998 case `/usr/bin/file conftest.$ac_objext` in
12999 *32-bit*)
13000 LD="${LD-ld} -32"
13002 *N32*)
13003 LD="${LD-ld} -n32"
13005 *64-bit*)
13006 LD="${LD-ld} -64"
13008 esac
13011 rm -rf conftest*
13014 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13015 # Find out which ABI we are using.
13016 echo 'int i;' > conftest.$ac_ext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; then
13022 case `/usr/bin/file conftest.o` in
13023 *32-bit*)
13024 case $host in
13025 x86_64-*linux*)
13026 LD="${LD-ld} -m elf_i386"
13028 ppc64-*linux*|powerpc64-*linux*)
13029 LD="${LD-ld} -m elf32ppclinux"
13031 s390x-*linux*)
13032 LD="${LD-ld} -m elf_s390"
13034 sparc64-*linux*)
13035 LD="${LD-ld} -m elf32_sparc"
13037 esac
13039 *64-bit*)
13040 case $host in
13041 x86_64-*linux*)
13042 LD="${LD-ld} -m elf_x86_64"
13044 ppc*-*linux*|powerpc*-*linux*)
13045 LD="${LD-ld} -m elf64ppc"
13047 s390*-*linux*)
13048 LD="${LD-ld} -m elf64_s390"
13050 sparc*-*linux*)
13051 LD="${LD-ld} -m elf64_sparc"
13053 esac
13055 esac
13057 rm -rf conftest*
13060 *-*-sco3.2v5*)
13061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13062 SAVE_CFLAGS="$CFLAGS"
13063 CFLAGS="$CFLAGS -belf"
13064 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13065 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13066 if test "${lt_cv_cc_needs_belf+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069 ac_ext=c
13070 ac_cpp='$CPP $CPPFLAGS'
13071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13083 main ()
13087 return 0;
13089 _ACEOF
13090 rm -f conftest.$ac_objext conftest$ac_exeext
13091 if { (ac_try="$ac_link"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_link") 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13105 { (case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108 esac
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_try") 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; } &&
13114 { ac_try='test -s conftest$ac_exeext'
13115 { (case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13118 esac
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_try") 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 lt_cv_cc_needs_belf=yes
13125 else
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 lt_cv_cc_needs_belf=no
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134 ac_ext=c
13135 ac_cpp='$CPP $CPPFLAGS'
13136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13141 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13142 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13143 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13144 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13145 CFLAGS="$SAVE_CFLAGS"
13148 sparc*-*solaris*)
13149 # Find out which ABI we are using.
13150 echo 'int i;' > conftest.$ac_ext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; then
13156 case `/usr/bin/file conftest.o` in
13157 *64-bit*)
13158 case $lt_cv_prog_gnu_ld in
13159 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13160 *) LD="${LD-ld} -64" ;;
13161 esac
13163 esac
13165 rm -rf conftest*
13169 esac
13171 need_locks="$enable_libtool_lock"
13176 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13177 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13178 (test "X$CXX" != "Xg++"))) ; then
13179 ac_ext=cpp
13180 ac_cpp='$CXXCPP $CPPFLAGS'
13181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13184 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13185 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13186 if test -z "$CXXCPP"; then
13187 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 # Double quotes because CXXCPP needs to be expanded
13191 for CXXCPP in "$CXX -E" "/lib/cpp"
13193 ac_preproc_ok=false
13194 for ac_cxx_preproc_warn_flag in '' yes
13196 # Use a header file that comes with gcc, so configuring glibc
13197 # with a fresh cross-compiler works.
13198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13199 # <limits.h> exists even on freestanding compilers.
13200 # On the NeXT, cc -E runs the code through the compiler's parser,
13201 # not just through cpp. "Syntax error" is here to catch this case.
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h. */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #ifdef __STDC__
13209 # include <limits.h>
13210 #else
13211 # include <assert.h>
13212 #endif
13213 Syntax error
13214 _ACEOF
13215 if { (ac_try="$ac_cpp conftest.$ac_ext"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219 esac
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } >/dev/null; then
13228 if test -s conftest.err; then
13229 ac_cpp_err=$ac_cxx_preproc_warn_flag
13230 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13231 else
13232 ac_cpp_err=
13234 else
13235 ac_cpp_err=yes
13237 if test -z "$ac_cpp_err"; then
13239 else
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 # Broken: fails on valid input.
13244 continue
13247 rm -f conftest.err conftest.$ac_ext
13249 # OK, works on sane cases. Now check whether nonexistent headers
13250 # can be detected and how.
13251 cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h. */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 #include <ac_nonexistent.h>
13258 _ACEOF
13259 if { (ac_try="$ac_cpp conftest.$ac_ext"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } >/dev/null; then
13272 if test -s conftest.err; then
13273 ac_cpp_err=$ac_cxx_preproc_warn_flag
13274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13275 else
13276 ac_cpp_err=
13278 else
13279 ac_cpp_err=yes
13281 if test -z "$ac_cpp_err"; then
13282 # Broken: success on invalid input.
13283 continue
13284 else
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 # Passes both tests.
13289 ac_preproc_ok=:
13290 break
13293 rm -f conftest.err conftest.$ac_ext
13295 done
13296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13297 rm -f conftest.err conftest.$ac_ext
13298 if $ac_preproc_ok; then
13299 break
13302 done
13303 ac_cv_prog_CXXCPP=$CXXCPP
13306 CXXCPP=$ac_cv_prog_CXXCPP
13307 else
13308 ac_cv_prog_CXXCPP=$CXXCPP
13310 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13311 echo "${ECHO_T}$CXXCPP" >&6; }
13312 ac_preproc_ok=false
13313 for ac_cxx_preproc_warn_flag in '' yes
13315 # Use a header file that comes with gcc, so configuring glibc
13316 # with a fresh cross-compiler works.
13317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13318 # <limits.h> exists even on freestanding compilers.
13319 # On the NeXT, cc -E runs the code through the compiler's parser,
13320 # not just through cpp. "Syntax error" is here to catch this case.
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h. */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #ifdef __STDC__
13328 # include <limits.h>
13329 #else
13330 # include <assert.h>
13331 #endif
13332 Syntax error
13333 _ACEOF
13334 if { (ac_try="$ac_cpp conftest.$ac_ext"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } >/dev/null; then
13347 if test -s conftest.err; then
13348 ac_cpp_err=$ac_cxx_preproc_warn_flag
13349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13350 else
13351 ac_cpp_err=
13353 else
13354 ac_cpp_err=yes
13356 if test -z "$ac_cpp_err"; then
13358 else
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 # Broken: fails on valid input.
13363 continue
13366 rm -f conftest.err conftest.$ac_ext
13368 # OK, works on sane cases. Now check whether nonexistent headers
13369 # can be detected and how.
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 #include <ac_nonexistent.h>
13377 _ACEOF
13378 if { (ac_try="$ac_cpp conftest.$ac_ext"
13379 case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } >/dev/null; then
13391 if test -s conftest.err; then
13392 ac_cpp_err=$ac_cxx_preproc_warn_flag
13393 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13394 else
13395 ac_cpp_err=
13397 else
13398 ac_cpp_err=yes
13400 if test -z "$ac_cpp_err"; then
13401 # Broken: success on invalid input.
13402 continue
13403 else
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 # Passes both tests.
13408 ac_preproc_ok=:
13409 break
13412 rm -f conftest.err conftest.$ac_ext
13414 done
13415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13416 rm -f conftest.err conftest.$ac_ext
13417 if $ac_preproc_ok; then
13419 else
13420 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13421 See \`config.log' for more details." >&5
13422 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13423 See \`config.log' for more details." >&2;}
13424 { (exit 1); exit 1; }; }
13427 ac_ext=cpp
13428 ac_cpp='$CXXCPP $CPPFLAGS'
13429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13436 ac_ext=f
13437 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13438 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13439 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13440 if test -n "$ac_tool_prefix"; then
13441 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
13443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13447 if test "${ac_cv_prog_F77+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 if test -n "$F77"; then
13451 ac_cv_prog_F77="$F77" # Let the user override the test.
13452 else
13453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454 for as_dir in $PATH
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13460 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 break 2
13464 done
13465 done
13466 IFS=$as_save_IFS
13470 F77=$ac_cv_prog_F77
13471 if test -n "$F77"; then
13472 { echo "$as_me:$LINENO: result: $F77" >&5
13473 echo "${ECHO_T}$F77" >&6; }
13474 else
13475 { echo "$as_me:$LINENO: result: no" >&5
13476 echo "${ECHO_T}no" >&6; }
13480 test -n "$F77" && break
13481 done
13483 if test -z "$F77"; then
13484 ac_ct_F77=$F77
13485 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
13487 # Extract the first word of "$ac_prog", so it can be a program name with args.
13488 set dummy $ac_prog; ac_word=$2
13489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13491 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 if test -n "$ac_ct_F77"; then
13495 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13496 else
13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498 for as_dir in $PATH
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13504 ac_cv_prog_ac_ct_F77="$ac_prog"
13505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13508 done
13509 done
13510 IFS=$as_save_IFS
13514 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13515 if test -n "$ac_ct_F77"; then
13516 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13517 echo "${ECHO_T}$ac_ct_F77" >&6; }
13518 else
13519 { echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6; }
13524 test -n "$ac_ct_F77" && break
13525 done
13527 if test "x$ac_ct_F77" = x; then
13528 F77=""
13529 else
13530 case $cross_compiling:$ac_tool_warned in
13531 yes:)
13532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13533 whose name does not start with the host triplet. If you think this
13534 configuration is useful to you, please write to autoconf@gnu.org." >&5
13535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13536 whose name does not start with the host triplet. If you think this
13537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13538 ac_tool_warned=yes ;;
13539 esac
13540 F77=$ac_ct_F77
13545 # Provide some information about the compiler.
13546 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13547 ac_compiler=`set X $ac_compile; echo $2`
13548 { (ac_try="$ac_compiler --version >&5"
13549 case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13552 esac
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_compiler --version >&5") 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }
13558 { (ac_try="$ac_compiler -v >&5"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562 esac
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_compiler -v >&5") 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }
13568 { (ac_try="$ac_compiler -V >&5"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572 esac
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compiler -V >&5") 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }
13578 rm -f a.out
13580 # If we don't use `.F' as extension, the preprocessor is not run on the
13581 # input file. (Note that this only needs to work for GNU compilers.)
13582 ac_save_ext=$ac_ext
13583 ac_ext=F
13584 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13585 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13586 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589 cat >conftest.$ac_ext <<_ACEOF
13590 program main
13591 #ifndef __GNUC__
13592 choke me
13593 #endif
13596 _ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (ac_try="$ac_compile"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compile") 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 ac_compiler_gnu=yes
13632 else
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 ac_compiler_gnu=no
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13643 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13644 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13645 ac_ext=$ac_save_ext
13646 ac_test_FFLAGS=${FFLAGS+set}
13647 ac_save_FFLAGS=$FFLAGS
13648 FFLAGS=
13649 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13650 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13651 if test "${ac_cv_prog_f77_g+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654 FFLAGS=-g
13655 cat >conftest.$ac_ext <<_ACEOF
13656 program main
13659 _ACEOF
13660 rm -f conftest.$ac_objext
13661 if { (ac_try="$ac_compile"
13662 case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_compile") 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688 esac
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 ac_cv_prog_f77_g=yes
13695 else
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ac_cv_prog_f77_g=no
13702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13706 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13707 if test "$ac_test_FFLAGS" = set; then
13708 FFLAGS=$ac_save_FFLAGS
13709 elif test $ac_cv_prog_f77_g = yes; then
13710 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13711 FFLAGS="-g -O2"
13712 else
13713 FFLAGS="-g"
13715 else
13716 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13717 FFLAGS="-O2"
13718 else
13719 FFLAGS=
13723 G77=`test $ac_compiler_gnu = yes && echo yes`
13724 ac_ext=c
13725 ac_cpp='$CPP $CPPFLAGS'
13726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13732 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13734 # find the maximum length of command line arguments
13735 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13736 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13737 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13741 teststring="ABCD"
13743 case $build_os in
13744 msdosdjgpp*)
13745 # On DJGPP, this test can blow up pretty badly due to problems in libc
13746 # (any single argument exceeding 2000 bytes causes a buffer overrun
13747 # during glob expansion). Even if it were fixed, the result of this
13748 # check would be larger than it should be.
13749 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13752 gnu*)
13753 # Under GNU Hurd, this test is not required because there is
13754 # no limit to the length of command line arguments.
13755 # Libtool will interpret -1 as no limit whatsoever
13756 lt_cv_sys_max_cmd_len=-1;
13759 cygwin* | mingw*)
13760 # On Win9x/ME, this test blows up -- it succeeds, but takes
13761 # about 5 minutes as the teststring grows exponentially.
13762 # Worse, since 9x/ME are not pre-emptively multitasking,
13763 # you end up with a "frozen" computer, even though with patience
13764 # the test eventually succeeds (with a max line length of 256k).
13765 # Instead, let's just punt: use the minimum linelength reported by
13766 # all of the supported platforms: 8192 (on NT/2K/XP).
13767 lt_cv_sys_max_cmd_len=8192;
13770 amigaos*)
13771 # On AmigaOS with pdksh, this test takes hours, literally.
13772 # So we just punt and use a minimum line length of 8192.
13773 lt_cv_sys_max_cmd_len=8192;
13776 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13777 # This has been around since 386BSD, at least. Likely further.
13778 if test -x /sbin/sysctl; then
13779 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13780 elif test -x /usr/sbin/sysctl; then
13781 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13782 else
13783 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13785 # And add a safety zone
13786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13790 interix*)
13791 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13792 lt_cv_sys_max_cmd_len=196608
13795 osf*)
13796 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13797 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13798 # nice to cause kernel panics so lets avoid the loop below.
13799 # First set a reasonable default.
13800 lt_cv_sys_max_cmd_len=16384
13802 if test -x /sbin/sysconfig; then
13803 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13804 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13805 esac
13808 sco3.2v5*)
13809 lt_cv_sys_max_cmd_len=102400
13811 sysv5* | sco5v6* | sysv4.2uw2*)
13812 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13813 if test -n "$kargmax"; then
13814 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13815 else
13816 lt_cv_sys_max_cmd_len=32768
13820 # If test is not a shell built-in, we'll probably end up computing a
13821 # maximum length that is only half of the actual maximum length, but
13822 # we can't tell.
13823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13824 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13825 = "XX$teststring") >/dev/null 2>&1 &&
13826 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13827 lt_cv_sys_max_cmd_len=$new_result &&
13828 test $i != 17 # 1/2 MB should be enough
13830 i=`expr $i + 1`
13831 teststring=$teststring$teststring
13832 done
13833 teststring=
13834 # Add a significant safety factor because C++ compilers can tack on massive
13835 # amounts of additional arguments before passing them to the linker.
13836 # It appears as though 1/2 is a usable value.
13837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13839 esac
13843 if test -n $lt_cv_sys_max_cmd_len ; then
13844 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13845 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13846 else
13847 { echo "$as_me:$LINENO: result: none" >&5
13848 echo "${ECHO_T}none" >&6; }
13854 # Check for command to grab the raw symbol name followed by C symbol from nm.
13855 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13856 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13857 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13861 # These are sane defaults that work on at least a few old systems.
13862 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13864 # Character class describing NM global symbol codes.
13865 symcode='[BCDEGRST]'
13867 # Regexp to match symbols that can be accessed directly from C.
13868 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13870 # Transform an extracted symbol line into a proper C declaration
13871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13873 # Transform an extracted symbol line into symbol name and symbol address
13874 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'"
13876 # Define system-specific variables.
13877 case $host_os in
13878 aix*)
13879 symcode='[BCDT]'
13881 cygwin* | mingw* | pw32*)
13882 symcode='[ABCDGISTW]'
13884 hpux*) # Its linker distinguishes data from code symbols
13885 if test "$host_cpu" = ia64; then
13886 symcode='[ABCDEGRST]'
13888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13889 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'"
13891 linux*)
13892 if test "$host_cpu" = ia64; then
13893 symcode='[ABCDGIRSTW]'
13894 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13895 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'"
13898 irix* | nonstopux*)
13899 symcode='[BCDEGRST]'
13901 osf*)
13902 symcode='[BCDEGQRST]'
13904 solaris*)
13905 symcode='[BDRT]'
13907 sco3.2v5*)
13908 symcode='[DT]'
13910 sysv4.2uw2*)
13911 symcode='[DT]'
13913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13914 symcode='[ABDT]'
13916 sysv4)
13917 symcode='[DFNSTU]'
13919 esac
13921 # Handle CRLF in mingw tool chain
13922 opt_cr=
13923 case $build_os in
13924 mingw*)
13925 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13927 esac
13929 # If we're using GNU nm, then use its standard symbol codes.
13930 case `$NM -V 2>&1` in
13931 *GNU* | *'with BFD'*)
13932 symcode='[ABCDGIRSTW]' ;;
13933 esac
13935 # Try without a prefix undercore, then with it.
13936 for ac_symprfx in "" "_"; do
13938 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13939 symxfrm="\\1 $ac_symprfx\\2 \\2"
13941 # Write the raw and C identifiers.
13942 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13944 # Check to see that the pipe works correctly.
13945 pipe_works=no
13947 rm -f conftest*
13948 cat > conftest.$ac_ext <<EOF
13949 #ifdef __cplusplus
13950 extern "C" {
13951 #endif
13952 char nm_test_var;
13953 void nm_test_func(){}
13954 #ifdef __cplusplus
13956 #endif
13957 int main(){nm_test_var='a';nm_test_func();return(0);}
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; then
13965 # Now try to grab the symbols.
13966 nlist=conftest.nm
13967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } && test -s "$nlist"; then
13972 # Try sorting and uniquifying the output.
13973 if sort "$nlist" | uniq > "$nlist"T; then
13974 mv -f "$nlist"T "$nlist"
13975 else
13976 rm -f "$nlist"T
13979 # Make sure that we snagged all the symbols we need.
13980 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13981 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13982 cat <<EOF > conftest.$ac_ext
13983 #ifdef __cplusplus
13984 extern "C" {
13985 #endif
13988 # Now generate the symbol file.
13989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13991 cat <<EOF >> conftest.$ac_ext
13992 #if defined (__STDC__) && __STDC__
13993 # define lt_ptr_t void *
13994 #else
13995 # define lt_ptr_t char *
13996 # define const
13997 #endif
13999 /* The mapping between symbol names and symbols. */
14000 const struct {
14001 const char *name;
14002 lt_ptr_t address;
14004 lt_preloaded_symbols[] =
14007 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14008 cat <<\EOF >> conftest.$ac_ext
14009 {0, (lt_ptr_t) 0}
14012 #ifdef __cplusplus
14014 #endif
14016 # Now try linking the two files.
14017 mv conftest.$ac_objext conftstm.$ac_objext
14018 lt_save_LIBS="$LIBS"
14019 lt_save_CFLAGS="$CFLAGS"
14020 LIBS="conftstm.$ac_objext"
14021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14027 pipe_works=yes
14029 LIBS="$lt_save_LIBS"
14030 CFLAGS="$lt_save_CFLAGS"
14031 else
14032 echo "cannot find nm_test_func in $nlist" >&5
14034 else
14035 echo "cannot find nm_test_var in $nlist" >&5
14037 else
14038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14040 else
14041 echo "$progname: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14044 rm -f conftest* conftst*
14046 # Do not use the global_symbol_pipe unless it works.
14047 if test "$pipe_works" = yes; then
14048 break
14049 else
14050 lt_cv_sys_global_symbol_pipe=
14052 done
14056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14057 lt_cv_sys_global_symbol_to_cdecl=
14059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14060 { echo "$as_me:$LINENO: result: failed" >&5
14061 echo "${ECHO_T}failed" >&6; }
14062 else
14063 { echo "$as_me:$LINENO: result: ok" >&5
14064 echo "${ECHO_T}ok" >&6; }
14067 { echo "$as_me:$LINENO: checking for objdir" >&5
14068 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14069 if test "${lt_cv_objdir+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 else
14072 rm -f .libs 2>/dev/null
14073 mkdir .libs 2>/dev/null
14074 if test -d .libs; then
14075 lt_cv_objdir=.libs
14076 else
14077 # MS-DOS does not allow filenames that begin with a dot.
14078 lt_cv_objdir=_libs
14080 rmdir .libs 2>/dev/null
14082 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14083 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14084 objdir=$lt_cv_objdir
14090 case $host_os in
14091 aix3*)
14092 # AIX sometimes has problems with the GCC collect2 program. For some
14093 # reason, if we set the COLLECT_NAMES environment variable, the problems
14094 # vanish in a puff of smoke.
14095 if test "X${COLLECT_NAMES+set}" != Xset; then
14096 COLLECT_NAMES=
14097 export COLLECT_NAMES
14100 esac
14102 # Sed substitution that helps us do robust quoting. It backslashifies
14103 # metacharacters that are still active within double-quoted strings.
14104 Xsed='sed -e 1s/^X//'
14105 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14107 # Same as above, but do not quote variable references.
14108 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14110 # Sed substitution to delay expansion of an escaped shell variable in a
14111 # double_quote_subst'ed string.
14112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14114 # Sed substitution to avoid accidental globbing in evaled expressions
14115 no_glob_subst='s/\*/\\\*/g'
14117 # Constants:
14118 rm="rm -f"
14120 # Global variables:
14121 default_ofile=mklib
14122 can_build_shared=yes
14124 # All known linkers require a `.a' archive for static linking (except MSVC,
14125 # which needs '.lib').
14126 libext=a
14127 ltmain="$ac_aux_dir/ltmain.sh"
14128 ofile="$default_ofile"
14129 with_gnu_ld="$lt_cv_prog_gnu_ld"
14131 if test -n "$ac_tool_prefix"; then
14132 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14133 set dummy ${ac_tool_prefix}ar; ac_word=$2
14134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14136 if test "${ac_cv_prog_AR+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139 if test -n "$AR"; then
14140 ac_cv_prog_AR="$AR" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14149 ac_cv_prog_AR="${ac_tool_prefix}ar"
14150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14153 done
14154 done
14155 IFS=$as_save_IFS
14159 AR=$ac_cv_prog_AR
14160 if test -n "$AR"; then
14161 { echo "$as_me:$LINENO: result: $AR" >&5
14162 echo "${ECHO_T}$AR" >&6; }
14163 else
14164 { echo "$as_me:$LINENO: result: no" >&5
14165 echo "${ECHO_T}no" >&6; }
14170 if test -z "$ac_cv_prog_AR"; then
14171 ac_ct_AR=$AR
14172 # Extract the first word of "ar", so it can be a program name with args.
14173 set dummy ar; ac_word=$2
14174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179 if test -n "$ac_ct_AR"; then
14180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14181 else
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14185 IFS=$as_save_IFS
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14189 ac_cv_prog_ac_ct_AR="ar"
14190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 break 2
14193 done
14194 done
14195 IFS=$as_save_IFS
14199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14200 if test -n "$ac_ct_AR"; then
14201 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14202 echo "${ECHO_T}$ac_ct_AR" >&6; }
14203 else
14204 { echo "$as_me:$LINENO: result: no" >&5
14205 echo "${ECHO_T}no" >&6; }
14208 if test "x$ac_ct_AR" = x; then
14209 AR="false"
14210 else
14211 case $cross_compiling:$ac_tool_warned in
14212 yes:)
14213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14214 whose name does not start with the host triplet. If you think this
14215 configuration is useful to you, please write to autoconf@gnu.org." >&5
14216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14217 whose name does not start with the host triplet. If you think this
14218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14219 ac_tool_warned=yes ;;
14220 esac
14221 AR=$ac_ct_AR
14223 else
14224 AR="$ac_cv_prog_AR"
14227 if test -n "$ac_tool_prefix"; then
14228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14232 if test "${ac_cv_prog_RANLIB+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235 if test -n "$RANLIB"; then
14236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14237 else
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14241 IFS=$as_save_IFS
14242 test -z "$as_dir" && as_dir=.
14243 for ac_exec_ext in '' $ac_executable_extensions; do
14244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14247 break 2
14249 done
14250 done
14251 IFS=$as_save_IFS
14255 RANLIB=$ac_cv_prog_RANLIB
14256 if test -n "$RANLIB"; then
14257 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14258 echo "${ECHO_T}$RANLIB" >&6; }
14259 else
14260 { echo "$as_me:$LINENO: result: no" >&5
14261 echo "${ECHO_T}no" >&6; }
14266 if test -z "$ac_cv_prog_RANLIB"; then
14267 ac_ct_RANLIB=$RANLIB
14268 # Extract the first word of "ranlib", so it can be a program name with args.
14269 set dummy ranlib; ac_word=$2
14270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275 if test -n "$ac_ct_RANLIB"; then
14276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14277 else
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14285 ac_cv_prog_ac_ct_RANLIB="ranlib"
14286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14289 done
14290 done
14291 IFS=$as_save_IFS
14295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14296 if test -n "$ac_ct_RANLIB"; then
14297 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14298 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14299 else
14300 { echo "$as_me:$LINENO: result: no" >&5
14301 echo "${ECHO_T}no" >&6; }
14304 if test "x$ac_ct_RANLIB" = x; then
14305 RANLIB=":"
14306 else
14307 case $cross_compiling:$ac_tool_warned in
14308 yes:)
14309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14310 whose name does not start with the host triplet. If you think this
14311 configuration is useful to you, please write to autoconf@gnu.org." >&5
14312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14313 whose name does not start with the host triplet. If you think this
14314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14315 ac_tool_warned=yes ;;
14316 esac
14317 RANLIB=$ac_ct_RANLIB
14319 else
14320 RANLIB="$ac_cv_prog_RANLIB"
14323 if test -n "$ac_tool_prefix"; then
14324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14325 set dummy ${ac_tool_prefix}strip; ac_word=$2
14326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14328 if test "${ac_cv_prog_STRIP+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331 if test -n "$STRIP"; then
14332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14333 else
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14345 done
14346 done
14347 IFS=$as_save_IFS
14351 STRIP=$ac_cv_prog_STRIP
14352 if test -n "$STRIP"; then
14353 { echo "$as_me:$LINENO: result: $STRIP" >&5
14354 echo "${ECHO_T}$STRIP" >&6; }
14355 else
14356 { echo "$as_me:$LINENO: result: no" >&5
14357 echo "${ECHO_T}no" >&6; }
14362 if test -z "$ac_cv_prog_STRIP"; then
14363 ac_ct_STRIP=$STRIP
14364 # Extract the first word of "strip", so it can be a program name with args.
14365 set dummy strip; ac_word=$2
14366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14368 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 if test -n "$ac_ct_STRIP"; then
14372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14373 else
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_prog_ac_ct_STRIP="strip"
14382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14383 break 2
14385 done
14386 done
14387 IFS=$as_save_IFS
14391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14392 if test -n "$ac_ct_STRIP"; then
14393 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14394 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14395 else
14396 { echo "$as_me:$LINENO: result: no" >&5
14397 echo "${ECHO_T}no" >&6; }
14400 if test "x$ac_ct_STRIP" = x; then
14401 STRIP=":"
14402 else
14403 case $cross_compiling:$ac_tool_warned in
14404 yes:)
14405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14406 whose name does not start with the host triplet. If you think this
14407 configuration is useful to you, please write to autoconf@gnu.org." >&5
14408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14409 whose name does not start with the host triplet. If you think this
14410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14411 ac_tool_warned=yes ;;
14412 esac
14413 STRIP=$ac_ct_STRIP
14415 else
14416 STRIP="$ac_cv_prog_STRIP"
14420 old_CC="$CC"
14421 old_CFLAGS="$CFLAGS"
14423 # Set sane defaults for various variables
14424 test -z "$AR" && AR=ar
14425 test -z "$AR_FLAGS" && AR_FLAGS=cru
14426 test -z "$AS" && AS=as
14427 test -z "$CC" && CC=cc
14428 test -z "$LTCC" && LTCC=$CC
14429 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14430 test -z "$DLLTOOL" && DLLTOOL=dlltool
14431 test -z "$LD" && LD=ld
14432 test -z "$LN_S" && LN_S="ln -s"
14433 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14434 test -z "$NM" && NM=nm
14435 test -z "$SED" && SED=sed
14436 test -z "$OBJDUMP" && OBJDUMP=objdump
14437 test -z "$RANLIB" && RANLIB=:
14438 test -z "$STRIP" && STRIP=:
14439 test -z "$ac_objext" && ac_objext=o
14441 # Determine commands to create old-style static archives.
14442 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14443 old_postinstall_cmds='chmod 644 $oldlib'
14444 old_postuninstall_cmds=
14446 if test -n "$RANLIB"; then
14447 case $host_os in
14448 openbsd*)
14449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14454 esac
14455 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14458 for cc_temp in $compiler""; do
14459 case $cc_temp in
14460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14462 \-*) ;;
14463 *) break;;
14464 esac
14465 done
14466 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14469 # Only perform the check for file, if the check method requires it
14470 case $deplibs_check_method in
14471 file_magic*)
14472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14473 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14474 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478 case $MAGIC_CMD in
14479 [\\/*] | ?:[\\/]*)
14480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14483 lt_save_MAGIC_CMD="$MAGIC_CMD"
14484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14486 for ac_dir in $ac_dummy; do
14487 IFS="$lt_save_ifs"
14488 test -z "$ac_dir" && ac_dir=.
14489 if test -f $ac_dir/${ac_tool_prefix}file; then
14490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14491 if test -n "$file_magic_test_file"; then
14492 case $deplibs_check_method in
14493 "file_magic "*)
14494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14497 $EGREP "$file_magic_regex" > /dev/null; then
14499 else
14500 cat <<EOF 1>&2
14502 *** Warning: the command libtool uses to detect shared libraries,
14503 *** $file_magic_cmd, produces output that libtool cannot recognize.
14504 *** The result is that libtool may fail to recognize shared libraries
14505 *** as such. This will affect the creation of libtool libraries that
14506 *** depend on shared libraries, but programs linked with such libtool
14507 *** libraries will work regardless of this problem. Nevertheless, you
14508 *** may want to report the problem to your system manager and/or to
14509 *** bug-libtool@gnu.org
14512 fi ;;
14513 esac
14515 break
14517 done
14518 IFS="$lt_save_ifs"
14519 MAGIC_CMD="$lt_save_MAGIC_CMD"
14521 esac
14524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14525 if test -n "$MAGIC_CMD"; then
14526 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14527 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14528 else
14529 { echo "$as_me:$LINENO: result: no" >&5
14530 echo "${ECHO_T}no" >&6; }
14533 if test -z "$lt_cv_path_MAGIC_CMD"; then
14534 if test -n "$ac_tool_prefix"; then
14535 { echo "$as_me:$LINENO: checking for file" >&5
14536 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14537 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540 case $MAGIC_CMD in
14541 [\\/*] | ?:[\\/]*)
14542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14545 lt_save_MAGIC_CMD="$MAGIC_CMD"
14546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14548 for ac_dir in $ac_dummy; do
14549 IFS="$lt_save_ifs"
14550 test -z "$ac_dir" && ac_dir=.
14551 if test -f $ac_dir/file; then
14552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14553 if test -n "$file_magic_test_file"; then
14554 case $deplibs_check_method in
14555 "file_magic "*)
14556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14559 $EGREP "$file_magic_regex" > /dev/null; then
14561 else
14562 cat <<EOF 1>&2
14564 *** Warning: the command libtool uses to detect shared libraries,
14565 *** $file_magic_cmd, produces output that libtool cannot recognize.
14566 *** The result is that libtool may fail to recognize shared libraries
14567 *** as such. This will affect the creation of libtool libraries that
14568 *** depend on shared libraries, but programs linked with such libtool
14569 *** libraries will work regardless of this problem. Nevertheless, you
14570 *** may want to report the problem to your system manager and/or to
14571 *** bug-libtool@gnu.org
14574 fi ;;
14575 esac
14577 break
14579 done
14580 IFS="$lt_save_ifs"
14581 MAGIC_CMD="$lt_save_MAGIC_CMD"
14583 esac
14586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587 if test -n "$MAGIC_CMD"; then
14588 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14589 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14590 else
14591 { echo "$as_me:$LINENO: result: no" >&5
14592 echo "${ECHO_T}no" >&6; }
14595 else
14596 MAGIC_CMD=:
14602 esac
14604 enable_dlopen=yes
14605 enable_win32_dll=no
14607 # Check whether --enable-libtool-lock was given.
14608 if test "${enable_libtool_lock+set}" = set; then
14609 enableval=$enable_libtool_lock;
14612 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14615 # Check whether --with-pic was given.
14616 if test "${with_pic+set}" = set; then
14617 withval=$with_pic; pic_mode="$withval"
14618 else
14619 pic_mode=default
14622 test -z "$pic_mode" && pic_mode=default
14624 # Use C for the default configuration in the libtool script
14625 tagname=
14626 lt_save_CC="$CC"
14627 ac_ext=c
14628 ac_cpp='$CPP $CPPFLAGS'
14629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634 # Source file extension for C test sources.
14635 ac_ext=c
14637 # Object file extension for compiled C test sources.
14638 objext=o
14639 objext=$objext
14641 # Code to be used in simple compile tests
14642 lt_simple_compile_test_code="int some_variable = 0;\n"
14644 # Code to be used in simple link tests
14645 lt_simple_link_test_code='int main(){return(0);}\n'
14648 # If no C compiler was specified, use CC.
14649 LTCC=${LTCC-"$CC"}
14651 # If no C compiler flags were specified, use CFLAGS.
14652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14654 # Allow CC to be a program name with arguments.
14655 compiler=$CC
14658 # save warnings/boilerplate of simple test code
14659 ac_outfile=conftest.$ac_objext
14660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14662 _lt_compiler_boilerplate=`cat conftest.err`
14663 $rm conftest*
14665 ac_outfile=conftest.$ac_objext
14666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14668 _lt_linker_boilerplate=`cat conftest.err`
14669 $rm conftest*
14673 lt_prog_compiler_no_builtin_flag=
14675 if test "$GCC" = yes; then
14676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14679 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14680 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14681 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 else
14684 lt_cv_prog_compiler_rtti_exceptions=no
14685 ac_outfile=conftest.$ac_objext
14686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14687 lt_compiler_flag="-fno-rtti -fno-exceptions"
14688 # Insert the option either (1) after the last *FLAGS variable, or
14689 # (2) before a word containing "conftest.", or (3) at the end.
14690 # Note that $ac_compile itself does not contain backslashes and begins
14691 # with a dollar sign (not a hyphen), so the echo should work correctly.
14692 # The option is referenced via a variable to avoid confusing sed.
14693 lt_compile=`echo "$ac_compile" | $SED \
14694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14696 -e 's:$: $lt_compiler_flag:'`
14697 (eval echo "\"\$as_me:14697: $lt_compile\"" >&5)
14698 (eval "$lt_compile" 2>conftest.err)
14699 ac_status=$?
14700 cat conftest.err >&5
14701 echo "$as_me:14701: \$? = $ac_status" >&5
14702 if (exit $ac_status) && test -s "$ac_outfile"; then
14703 # The compiler can only warn and ignore the option if not recognized
14704 # So say no if there are warnings other than the usual output.
14705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14708 lt_cv_prog_compiler_rtti_exceptions=yes
14711 $rm conftest*
14714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14715 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14719 else
14725 lt_prog_compiler_wl=
14726 lt_prog_compiler_pic=
14727 lt_prog_compiler_static=
14729 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14730 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14732 if test "$GCC" = yes; then
14733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_static='-static'
14736 case $host_os in
14737 aix*)
14738 # All AIX code is PIC.
14739 if test "$host_cpu" = ia64; then
14740 # AIX 5 now supports IA64 processor
14741 lt_prog_compiler_static='-Bstatic'
14745 amigaos*)
14746 # FIXME: we need at least 68020 code to build shared libraries, but
14747 # adding the `-m68020' flag to GCC prevents building anything better,
14748 # like `-m68040'.
14749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14753 # PIC is the default for these OSes.
14756 mingw* | pw32* | os2*)
14757 # This hack is so that the source file can tell whether it is being
14758 # built for inclusion in a dll (and should export symbols for example).
14759 lt_prog_compiler_pic='-DDLL_EXPORT'
14762 darwin* | rhapsody*)
14763 # PIC is the default on this platform
14764 # Common symbols not allowed in MH_DYLIB files
14765 lt_prog_compiler_pic='-fno-common'
14768 interix3*)
14769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14770 # Instead, we relocate shared libraries at runtime.
14773 msdosdjgpp*)
14774 # Just because we use GCC doesn't mean we suddenly get shared libraries
14775 # on systems that don't support them.
14776 lt_prog_compiler_can_build_shared=no
14777 enable_shared=no
14780 sysv4*MP*)
14781 if test -d /usr/nec; then
14782 lt_prog_compiler_pic=-Kconform_pic
14786 hpux*)
14787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14788 # not for PA HP-UX.
14789 case $host_cpu in
14790 hppa*64*|ia64*)
14791 # +Z the default
14794 lt_prog_compiler_pic='-fPIC'
14796 esac
14800 lt_prog_compiler_pic='-fPIC'
14802 esac
14803 else
14804 # PORTME Check for flag to pass linker flags through the system compiler.
14805 case $host_os in
14806 aix*)
14807 lt_prog_compiler_wl='-Wl,'
14808 if test "$host_cpu" = ia64; then
14809 # AIX 5 now supports IA64 processor
14810 lt_prog_compiler_static='-Bstatic'
14811 else
14812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14815 darwin*)
14816 # PIC is the default on this platform
14817 # Common symbols not allowed in MH_DYLIB files
14818 case $cc_basename in
14819 xlc*)
14820 lt_prog_compiler_pic='-qnocommon'
14821 lt_prog_compiler_wl='-Wl,'
14823 esac
14826 mingw* | pw32* | os2*)
14827 # This hack is so that the source file can tell whether it is being
14828 # built for inclusion in a dll (and should export symbols for example).
14829 lt_prog_compiler_pic='-DDLL_EXPORT'
14832 hpux9* | hpux10* | hpux11*)
14833 lt_prog_compiler_wl='-Wl,'
14834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14835 # not for PA HP-UX.
14836 case $host_cpu in
14837 hppa*64*|ia64*)
14838 # +Z the default
14841 lt_prog_compiler_pic='+Z'
14843 esac
14844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14845 lt_prog_compiler_static='${wl}-a ${wl}archive'
14848 irix5* | irix6* | nonstopux*)
14849 lt_prog_compiler_wl='-Wl,'
14850 # PIC (with -KPIC) is the default.
14851 lt_prog_compiler_static='-non_shared'
14854 newsos6)
14855 lt_prog_compiler_pic='-KPIC'
14856 lt_prog_compiler_static='-Bstatic'
14859 linux*)
14860 case $cc_basename in
14861 icc* | ecc*)
14862 lt_prog_compiler_wl='-Wl,'
14863 lt_prog_compiler_pic='-KPIC'
14864 lt_prog_compiler_static='-static'
14866 pgcc* | pgf77* | pgf90* | pgf95*)
14867 # Portland Group compilers (*not* the Pentium gcc compiler,
14868 # which looks to be a dead project)
14869 lt_prog_compiler_wl='-Wl,'
14870 lt_prog_compiler_pic='-fpic'
14871 lt_prog_compiler_static='-Bstatic'
14873 ccc*)
14874 lt_prog_compiler_wl='-Wl,'
14875 # All Alpha code is PIC.
14876 lt_prog_compiler_static='-non_shared'
14878 esac
14881 osf3* | osf4* | osf5*)
14882 lt_prog_compiler_wl='-Wl,'
14883 # All OSF/1 code is PIC.
14884 lt_prog_compiler_static='-non_shared'
14887 solaris*)
14888 lt_prog_compiler_pic='-KPIC'
14889 lt_prog_compiler_static='-Bstatic'
14890 case $cc_basename in
14891 f77* | f90* | f95*)
14892 lt_prog_compiler_wl='-Qoption ld ';;
14894 lt_prog_compiler_wl='-Wl,';;
14895 esac
14898 sunos4*)
14899 lt_prog_compiler_wl='-Qoption ld '
14900 lt_prog_compiler_pic='-PIC'
14901 lt_prog_compiler_static='-Bstatic'
14904 sysv4 | sysv4.2uw2* | sysv4.3*)
14905 lt_prog_compiler_wl='-Wl,'
14906 lt_prog_compiler_pic='-KPIC'
14907 lt_prog_compiler_static='-Bstatic'
14910 sysv4*MP*)
14911 if test -d /usr/nec ;then
14912 lt_prog_compiler_pic='-Kconform_pic'
14913 lt_prog_compiler_static='-Bstatic'
14917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14918 lt_prog_compiler_wl='-Wl,'
14919 lt_prog_compiler_pic='-KPIC'
14920 lt_prog_compiler_static='-Bstatic'
14923 unicos*)
14924 lt_prog_compiler_wl='-Wl,'
14925 lt_prog_compiler_can_build_shared=no
14928 uts4*)
14929 lt_prog_compiler_pic='-pic'
14930 lt_prog_compiler_static='-Bstatic'
14934 lt_prog_compiler_can_build_shared=no
14936 esac
14939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14940 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14943 # Check to make sure the PIC flag actually works.
14945 if test -n "$lt_prog_compiler_pic"; then
14947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14949 if test "${lt_prog_compiler_pic_works+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 lt_prog_compiler_pic_works=no
14953 ac_outfile=conftest.$ac_objext
14954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14956 # Insert the option either (1) after the last *FLAGS variable, or
14957 # (2) before a word containing "conftest.", or (3) at the end.
14958 # Note that $ac_compile itself does not contain backslashes and begins
14959 # with a dollar sign (not a hyphen), so the echo should work correctly.
14960 # The option is referenced via a variable to avoid confusing sed.
14961 lt_compile=`echo "$ac_compile" | $SED \
14962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14964 -e 's:$: $lt_compiler_flag:'`
14965 (eval echo "\"\$as_me:14965: $lt_compile\"" >&5)
14966 (eval "$lt_compile" 2>conftest.err)
14967 ac_status=$?
14968 cat conftest.err >&5
14969 echo "$as_me:14969: \$? = $ac_status" >&5
14970 if (exit $ac_status) && test -s "$ac_outfile"; then
14971 # The compiler can only warn and ignore the option if not recognized
14972 # So say no if there are warnings other than the usual output.
14973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14976 lt_prog_compiler_pic_works=yes
14979 $rm conftest*
14982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14983 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14985 if test x"$lt_prog_compiler_pic_works" = xyes; then
14986 case $lt_prog_compiler_pic in
14987 "" | " "*) ;;
14988 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14989 esac
14990 else
14991 lt_prog_compiler_pic=
14992 lt_prog_compiler_can_build_shared=no
14996 case $host_os in
14997 # For platforms which do not support PIC, -DPIC is meaningless:
14998 *djgpp*)
14999 lt_prog_compiler_pic=
15002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15004 esac
15007 # Check to make sure the static flag actually works.
15009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15010 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15011 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15012 if test "${lt_prog_compiler_static_works+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015 lt_prog_compiler_static_works=no
15016 save_LDFLAGS="$LDFLAGS"
15017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15018 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15020 # The linker can only warn and ignore the option if not recognized
15021 # So say no if there are warnings
15022 if test -s conftest.err; then
15023 # Append any errors to the config.log.
15024 cat conftest.err 1>&5
15025 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15027 if diff conftest.exp conftest.er2 >/dev/null; then
15028 lt_prog_compiler_static_works=yes
15030 else
15031 lt_prog_compiler_static_works=yes
15034 $rm conftest*
15035 LDFLAGS="$save_LDFLAGS"
15038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15039 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15041 if test x"$lt_prog_compiler_static_works" = xyes; then
15043 else
15044 lt_prog_compiler_static=
15048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15050 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053 lt_cv_prog_compiler_c_o=no
15054 $rm -r conftest 2>/dev/null
15055 mkdir conftest
15056 cd conftest
15057 mkdir out
15058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15060 lt_compiler_flag="-o out/conftest2.$ac_objext"
15061 # Insert the option either (1) after the last *FLAGS variable, or
15062 # (2) before a word containing "conftest.", or (3) at the end.
15063 # Note that $ac_compile itself does not contain backslashes and begins
15064 # with a dollar sign (not a hyphen), so the echo should work correctly.
15065 lt_compile=`echo "$ac_compile" | $SED \
15066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15068 -e 's:$: $lt_compiler_flag:'`
15069 (eval echo "\"\$as_me:15069: $lt_compile\"" >&5)
15070 (eval "$lt_compile" 2>out/conftest.err)
15071 ac_status=$?
15072 cat out/conftest.err >&5
15073 echo "$as_me:15073: \$? = $ac_status" >&5
15074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15075 then
15076 # The compiler can only warn and ignore the option if not recognized
15077 # So say no if there are warnings
15078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15081 lt_cv_prog_compiler_c_o=yes
15084 chmod u+w . 2>&5
15085 $rm conftest*
15086 # SGI C++ compiler will create directory out/ii_files/ for
15087 # template instantiation
15088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15089 $rm out/* && rmdir out
15090 cd ..
15091 rmdir conftest
15092 $rm conftest*
15095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15099 hard_links="nottested"
15100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15101 # do not overwrite the value of need_locks provided by the user
15102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15104 hard_links=yes
15105 $rm conftest*
15106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15107 touch conftest.a
15108 ln conftest.a conftest.b 2>&5 || hard_links=no
15109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15110 { echo "$as_me:$LINENO: result: $hard_links" >&5
15111 echo "${ECHO_T}$hard_links" >&6; }
15112 if test "$hard_links" = no; then
15113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15115 need_locks=warn
15117 else
15118 need_locks=no
15121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15124 runpath_var=
15125 allow_undefined_flag=
15126 enable_shared_with_static_runtimes=no
15127 archive_cmds=
15128 archive_expsym_cmds=
15129 old_archive_From_new_cmds=
15130 old_archive_from_expsyms_cmds=
15131 export_dynamic_flag_spec=
15132 whole_archive_flag_spec=
15133 thread_safe_flag_spec=
15134 hardcode_libdir_flag_spec=
15135 hardcode_libdir_flag_spec_ld=
15136 hardcode_libdir_separator=
15137 hardcode_direct=no
15138 hardcode_minus_L=no
15139 hardcode_shlibpath_var=unsupported
15140 link_all_deplibs=unknown
15141 hardcode_automatic=no
15142 module_cmds=
15143 module_expsym_cmds=
15144 always_export_symbols=no
15145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15146 # include_expsyms should be a list of space-separated symbols to be *always*
15147 # included in the symbol list
15148 include_expsyms=
15149 # exclude_expsyms can be an extended regexp of symbols to exclude
15150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15152 # as well as any symbol that contains `d'.
15153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15155 # platforms (ab)use it in PIC code, but their linkers get confused if
15156 # the symbol is explicitly referenced. Since portable code cannot
15157 # rely on this symbol name, it's probably fine to never include it in
15158 # preloaded symbol tables.
15159 extract_expsyms_cmds=
15160 # Just being paranoid about ensuring that cc_basename is set.
15161 for cc_temp in $compiler""; do
15162 case $cc_temp in
15163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15165 \-*) ;;
15166 *) break;;
15167 esac
15168 done
15169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15171 case $host_os in
15172 cygwin* | mingw* | pw32*)
15173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15174 # When not using gcc, we currently assume that we are using
15175 # Microsoft Visual C++.
15176 if test "$GCC" != yes; then
15177 with_gnu_ld=no
15180 interix*)
15181 # we just hope/assume this is gcc and not c89 (= MSVC++)
15182 with_gnu_ld=yes
15184 openbsd*)
15185 with_gnu_ld=no
15187 esac
15189 ld_shlibs=yes
15190 if test "$with_gnu_ld" = yes; then
15191 # If archive_cmds runs LD, not CC, wlarc should be empty
15192 wlarc='${wl}'
15194 # Set some defaults for GNU ld with shared library support. These
15195 # are reset later if shared libraries are not supported. Putting them
15196 # here allows them to be overridden if necessary.
15197 runpath_var=LD_RUN_PATH
15198 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15199 export_dynamic_flag_spec='${wl}--export-dynamic'
15200 # ancient GNU ld didn't support --whole-archive et. al.
15201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15203 else
15204 whole_archive_flag_spec=
15206 supports_anon_versioning=no
15207 case `$LD -v 2>/dev/null` in
15208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15211 *\ 2.11.*) ;; # other 2.11 versions
15212 *) supports_anon_versioning=yes ;;
15213 esac
15215 # See if GNU ld supports shared libraries.
15216 case $host_os in
15217 aix3* | aix4* | aix5*)
15218 # On AIX/PPC, the GNU linker is very broken
15219 if test "$host_cpu" != ia64; then
15220 ld_shlibs=no
15221 cat <<EOF 1>&2
15223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15224 *** to be unable to reliably create shared libraries on AIX.
15225 *** Therefore, libtool is disabling shared libraries support. If you
15226 *** really care for shared libraries, you may want to modify your PATH
15227 *** so that a non-GNU linker is found, and then restart.
15233 amigaos*)
15234 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)'
15235 hardcode_libdir_flag_spec='-L$libdir'
15236 hardcode_minus_L=yes
15238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15239 # that the semantics of dynamic libraries on AmigaOS, at least up
15240 # to version 4, is to share data among multiple programs linked
15241 # with the same dynamic library. Since this doesn't match the
15242 # behavior of shared libraries on other platforms, we can't use
15243 # them.
15244 ld_shlibs=no
15247 beos*)
15248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15249 allow_undefined_flag=unsupported
15250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15251 # support --undefined. This deserves some investigation. FIXME
15252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253 else
15254 ld_shlibs=no
15258 cygwin* | mingw* | pw32*)
15259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15260 # as there is no search path for DLLs.
15261 hardcode_libdir_flag_spec='-L$libdir'
15262 allow_undefined_flag=unsupported
15263 always_export_symbols=no
15264 enable_shared_with_static_runtimes=yes
15265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15269 # If the export-symbols file already is a .def file (1st line
15270 # is EXPORTS), use it as is; otherwise, prepend...
15271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15272 cp $export_symbols $output_objdir/$soname.def;
15273 else
15274 echo EXPORTS > $output_objdir/$soname.def;
15275 cat $export_symbols >> $output_objdir/$soname.def;
15277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15278 else
15279 ld_shlibs=no
15283 interix3*)
15284 hardcode_direct=no
15285 hardcode_shlibpath_var=no
15286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15287 export_dynamic_flag_spec='${wl}-E'
15288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15289 # Instead, shared libraries are loaded at an image base (0x10000000 by
15290 # default) and relocated if they conflict, which is a slow very memory
15291 # consuming and fragmenting process. To avoid this, we pick a random,
15292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15295 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'
15298 linux*)
15299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15300 tmp_addflag=
15301 case $cc_basename,$host_cpu in
15302 pgcc*) # Portland Group C compiler
15303 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'
15304 tmp_addflag=' $pic_flag'
15306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15307 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'
15308 tmp_addflag=' $pic_flag -Mnomain' ;;
15309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15310 tmp_addflag=' -i_dynamic' ;;
15311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15312 tmp_addflag=' -i_dynamic -nofor_main' ;;
15313 ifc* | ifort*) # Intel Fortran compiler
15314 tmp_addflag=' -nofor_main' ;;
15315 esac
15316 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318 if test $supports_anon_versioning = yes; then
15319 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15321 $echo "local: *; };" >> $output_objdir/$libname.ver~
15322 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15324 else
15325 ld_shlibs=no
15329 netbsd*)
15330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15331 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15332 wlarc=
15333 else
15334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15339 solaris*)
15340 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15341 ld_shlibs=no
15342 cat <<EOF 1>&2
15344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15345 *** create shared libraries on Solaris systems. Therefore, libtool
15346 *** is disabling shared libraries support. We urge you to upgrade GNU
15347 *** binutils to release 2.9.1 or newer. Another option is to modify
15348 *** your PATH or compiler configuration so that the native linker is
15349 *** used, and then restart.
15352 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15355 else
15356 ld_shlibs=no
15360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15361 case `$LD -v 2>&1` in
15362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15363 ld_shlibs=no
15364 cat <<_LT_EOF 1>&2
15366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15367 *** reliably create shared libraries on SCO systems. Therefore, libtool
15368 *** is disabling shared libraries support. We urge you to upgrade GNU
15369 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15370 *** your PATH or compiler configuration so that the native linker is
15371 *** used, and then restart.
15373 _LT_EOF
15376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15377 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15380 else
15381 ld_shlibs=no
15384 esac
15387 sunos4*)
15388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15389 wlarc=
15390 hardcode_direct=yes
15391 hardcode_shlibpath_var=no
15395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15398 else
15399 ld_shlibs=no
15402 esac
15404 if test "$ld_shlibs" = no; then
15405 runpath_var=
15406 hardcode_libdir_flag_spec=
15407 export_dynamic_flag_spec=
15408 whole_archive_flag_spec=
15410 else
15411 # PORTME fill in a description of your system's linker (not GNU ld)
15412 case $host_os in
15413 aix3*)
15414 allow_undefined_flag=unsupported
15415 always_export_symbols=yes
15416 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'
15417 # Note: this linker hardcodes the directories in LIBPATH if there
15418 # are no directories specified by -L.
15419 hardcode_minus_L=yes
15420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15421 # Neither direct hardcoding nor static linking is supported with a
15422 # broken collect2.
15423 hardcode_direct=unsupported
15427 aix4* | aix5*)
15428 if test "$host_cpu" = ia64; then
15429 # On IA64, the linker does run time linking by default, so we don't
15430 # have to do anything special.
15431 aix_use_runtimelinking=no
15432 exp_sym_flag='-Bexport'
15433 no_entry_flag=""
15434 else
15435 # If we're using GNU nm, then we don't want the "-C" option.
15436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15437 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15438 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'
15439 else
15440 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'
15442 aix_use_runtimelinking=no
15444 # Test if we are trying to use run time linking or normal
15445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15446 # need to do runtime linking.
15447 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15448 for ld_flag in $LDFLAGS; do
15449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15450 aix_use_runtimelinking=yes
15451 break
15453 done
15455 esac
15457 exp_sym_flag='-bexport'
15458 no_entry_flag='-bnoentry'
15461 # When large executables or shared objects are built, AIX ld can
15462 # have problems creating the table of contents. If linking a library
15463 # or program results in "error TOC overflow" add -mminimal-toc to
15464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15467 archive_cmds=''
15468 hardcode_direct=yes
15469 hardcode_libdir_separator=':'
15470 link_all_deplibs=yes
15472 if test "$GCC" = yes; then
15473 case $host_os in aix4.[012]|aix4.[012].*)
15474 # We only want to do this on AIX 4.2 and lower, the check
15475 # below for broken collect2 doesn't work under 4.3+
15476 collect2name=`${CC} -print-prog-name=collect2`
15477 if test -f "$collect2name" && \
15478 strings "$collect2name" | grep resolve_lib_name >/dev/null
15479 then
15480 # We have reworked collect2
15481 hardcode_direct=yes
15482 else
15483 # We have old collect2
15484 hardcode_direct=unsupported
15485 # It fails to find uninstalled libraries when the uninstalled
15486 # path is not listed in the libpath. Setting hardcode_minus_L
15487 # to unsupported forces relinking
15488 hardcode_minus_L=yes
15489 hardcode_libdir_flag_spec='-L$libdir'
15490 hardcode_libdir_separator=
15493 esac
15494 shared_flag='-shared'
15495 if test "$aix_use_runtimelinking" = yes; then
15496 shared_flag="$shared_flag "'${wl}-G'
15498 else
15499 # not using gcc
15500 if test "$host_cpu" = ia64; then
15501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15502 # chokes on -Wl,-G. The following line is correct:
15503 shared_flag='-G'
15504 else
15505 if test "$aix_use_runtimelinking" = yes; then
15506 shared_flag='${wl}-G'
15507 else
15508 shared_flag='${wl}-bM:SRE'
15513 # It seems that -bexpall does not export symbols beginning with
15514 # underscore (_), so it is better to generate a list of symbols to export.
15515 always_export_symbols=yes
15516 if test "$aix_use_runtimelinking" = yes; then
15517 # Warning - without using the other runtime loading flags (-brtl),
15518 # -berok will link without error, but may produce a broken library.
15519 allow_undefined_flag='-berok'
15520 # Determine the default libpath from the value encoded in an empty executable.
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h. */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15529 main ()
15533 return 0;
15535 _ACEOF
15536 rm -f conftest.$ac_objext conftest$ac_exeext
15537 if { (ac_try="$ac_link"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_link") 2>conftest.er1
15544 ac_status=$?
15545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -f conftest.er1
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest$ac_exeext'
15561 { (case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_try") 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15573 # Check for a 64-bit object if we didn't find anything.
15574 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; }
15575 }'`; fi
15576 else
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15583 rm -f core conftest.err conftest.$ac_objext \
15584 conftest$ac_exeext conftest.$ac_ext
15585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15588 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"
15589 else
15590 if test "$host_cpu" = ia64; then
15591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15592 allow_undefined_flag="-z nodefs"
15593 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"
15594 else
15595 # Determine the default libpath from the value encoded in an empty executable.
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15604 main ()
15608 return 0;
15610 _ACEOF
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (ac_try="$ac_link"
15613 case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_link") 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629 esac
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest$ac_exeext'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15639 esac
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15648 # Check for a 64-bit object if we didn't find anything.
15649 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; }
15650 }'`; fi
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15658 rm -f core conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15663 # Warning - without using the other run time loading flags,
15664 # -berok will link without error, but may produce a broken library.
15665 no_undefined_flag=' ${wl}-bernotok'
15666 allow_undefined_flag=' ${wl}-berok'
15667 # Exported symbols can be pulled into shared objects from archives
15668 whole_archive_flag_spec='$convenience'
15669 archive_cmds_need_lc=yes
15670 # This is similar to how AIX traditionally builds its shared libraries.
15671 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'
15676 amigaos*)
15677 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)'
15678 hardcode_libdir_flag_spec='-L$libdir'
15679 hardcode_minus_L=yes
15680 # see comment about different semantics on the GNU ld section
15681 ld_shlibs=no
15684 bsdi[45]*)
15685 export_dynamic_flag_spec=-rdynamic
15688 cygwin* | mingw* | pw32*)
15689 # When not using gcc, we currently assume that we are using
15690 # Microsoft Visual C++.
15691 # hardcode_libdir_flag_spec is actually meaningless, as there is
15692 # no search path for DLLs.
15693 hardcode_libdir_flag_spec=' '
15694 allow_undefined_flag=unsupported
15695 # Tell ltmain to make .lib files, not .a files.
15696 libext=lib
15697 # Tell ltmain to make .dll files, not .so files.
15698 shrext_cmds=".dll"
15699 # FIXME: Setting linknames here is a bad hack.
15700 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15701 # The linker will automatically build a .lib file if we build a DLL.
15702 old_archive_From_new_cmds='true'
15703 # FIXME: Should let the user specify the lib program.
15704 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15705 fix_srcfile_path='`cygpath -w "$srcfile"`'
15706 enable_shared_with_static_runtimes=yes
15709 darwin* | rhapsody*)
15710 case $host_os in
15711 rhapsody* | darwin1.[012])
15712 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15714 *) # Darwin 1.3 on
15715 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15716 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15717 else
15718 case ${MACOSX_DEPLOYMENT_TARGET} in
15719 10.[012])
15720 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15722 10.*)
15723 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15725 esac
15728 esac
15729 archive_cmds_need_lc=no
15730 hardcode_direct=no
15731 hardcode_automatic=yes
15732 hardcode_shlibpath_var=unsupported
15733 whole_archive_flag_spec=''
15734 link_all_deplibs=yes
15735 if test "$GCC" = yes ; then
15736 output_verbose_link_cmd='echo'
15737 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15738 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15740 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}'
15741 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}'
15742 else
15743 case $cc_basename in
15744 xlc*)
15745 output_verbose_link_cmd='echo'
15746 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15747 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15749 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}'
15750 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}'
15753 ld_shlibs=no
15755 esac
15759 dgux*)
15760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_libdir_flag_spec='-L$libdir'
15762 hardcode_shlibpath_var=no
15765 freebsd1*)
15766 ld_shlibs=no
15769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15770 # support. Future versions do this automatically, but an explicit c++rt0.o
15771 # does not break anything, and helps significantly (at the cost of a little
15772 # extra space).
15773 freebsd2.2*)
15774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15775 hardcode_libdir_flag_spec='-R$libdir'
15776 hardcode_direct=yes
15777 hardcode_shlibpath_var=no
15780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15781 freebsd2*)
15782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_direct=yes
15784 hardcode_minus_L=yes
15785 hardcode_shlibpath_var=no
15788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15789 freebsd* | kfreebsd*-gnu | dragonfly*)
15790 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15791 hardcode_libdir_flag_spec='-R$libdir'
15792 hardcode_direct=yes
15793 hardcode_shlibpath_var=no
15796 hpux9*)
15797 if test "$GCC" = yes; then
15798 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'
15799 else
15800 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'
15802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15803 hardcode_libdir_separator=:
15804 hardcode_direct=yes
15806 # hardcode_minus_L: Not really in the search PATH,
15807 # but as the default location of the library.
15808 hardcode_minus_L=yes
15809 export_dynamic_flag_spec='${wl}-E'
15812 hpux10*)
15813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15815 else
15816 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15818 if test "$with_gnu_ld" = no; then
15819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15820 hardcode_libdir_separator=:
15822 hardcode_direct=yes
15823 export_dynamic_flag_spec='${wl}-E'
15825 # hardcode_minus_L: Not really in the search PATH,
15826 # but as the default location of the library.
15827 hardcode_minus_L=yes
15831 hpux11*)
15832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15833 case $host_cpu in
15834 hppa*64*)
15835 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15837 ia64*)
15838 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15843 esac
15844 else
15845 case $host_cpu in
15846 hppa*64*)
15847 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15849 ia64*)
15850 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15853 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15855 esac
15857 if test "$with_gnu_ld" = no; then
15858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15859 hardcode_libdir_separator=:
15861 case $host_cpu in
15862 hppa*64*|ia64*)
15863 hardcode_libdir_flag_spec_ld='+b $libdir'
15864 hardcode_direct=no
15865 hardcode_shlibpath_var=no
15868 hardcode_direct=yes
15869 export_dynamic_flag_spec='${wl}-E'
15871 # hardcode_minus_L: Not really in the search PATH,
15872 # but as the default location of the library.
15873 hardcode_minus_L=yes
15875 esac
15879 irix5* | irix6* | nonstopux*)
15880 if test "$GCC" = yes; then
15881 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'
15882 else
15883 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'
15884 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15887 hardcode_libdir_separator=:
15888 link_all_deplibs=yes
15891 netbsd*)
15892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15894 else
15895 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15897 hardcode_libdir_flag_spec='-R$libdir'
15898 hardcode_direct=yes
15899 hardcode_shlibpath_var=no
15902 newsos6)
15903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_direct=yes
15905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15906 hardcode_libdir_separator=:
15907 hardcode_shlibpath_var=no
15910 openbsd*)
15911 hardcode_direct=yes
15912 hardcode_shlibpath_var=no
15913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15914 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15915 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15917 export_dynamic_flag_spec='${wl}-E'
15918 else
15919 case $host_os in
15920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15922 hardcode_libdir_flag_spec='-R$libdir'
15925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15926 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15928 esac
15932 os2*)
15933 hardcode_libdir_flag_spec='-L$libdir'
15934 hardcode_minus_L=yes
15935 allow_undefined_flag=unsupported
15936 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'
15937 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15940 osf3*)
15941 if test "$GCC" = yes; then
15942 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15943 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'
15944 else
15945 allow_undefined_flag=' -expect_unresolved \*'
15946 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'
15948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15949 hardcode_libdir_separator=:
15952 osf4* | osf5*) # as osf3* with the addition of -msym flag
15953 if test "$GCC" = yes; then
15954 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15955 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'
15956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15957 else
15958 allow_undefined_flag=' -expect_unresolved \*'
15959 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'
15960 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15961 $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'
15963 # Both c and cxx compiler support -rpath directly
15964 hardcode_libdir_flag_spec='-rpath $libdir'
15966 hardcode_libdir_separator=:
15969 solaris*)
15970 no_undefined_flag=' -z text'
15971 if test "$GCC" = yes; then
15972 wlarc='${wl}'
15973 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15974 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15976 else
15977 wlarc=''
15978 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15982 hardcode_libdir_flag_spec='-R$libdir'
15983 hardcode_shlibpath_var=no
15984 case $host_os in
15985 solaris2.[0-5] | solaris2.[0-5].*) ;;
15987 # The compiler driver will combine linker options so we
15988 # cannot just pass the convience library names through
15989 # without $wl, iff we do not link with $LD.
15990 # Luckily, gcc supports the same syntax we need for Sun Studio.
15991 # Supported since Solaris 2.6 (maybe 2.5.1?)
15992 case $wlarc in
15994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15996 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' ;;
15997 esac ;;
15998 esac
15999 link_all_deplibs=yes
16002 sunos4*)
16003 if test "x$host_vendor" = xsequent; then
16004 # Use $CC to link under sequent, because it throws in some extra .o
16005 # files that make .init and .fini sections work.
16006 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16007 else
16008 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_libdir_flag_spec='-L$libdir'
16011 hardcode_direct=yes
16012 hardcode_minus_L=yes
16013 hardcode_shlibpath_var=no
16016 sysv4)
16017 case $host_vendor in
16018 sni)
16019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020 hardcode_direct=yes # is this really true???
16022 siemens)
16023 ## LD is ld it makes a PLAMLIB
16024 ## CC just makes a GrossModule.
16025 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16026 reload_cmds='$CC -r -o $output$reload_objs'
16027 hardcode_direct=no
16029 motorola)
16030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16031 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16033 esac
16034 runpath_var='LD_RUN_PATH'
16035 hardcode_shlibpath_var=no
16038 sysv4.3*)
16039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16040 hardcode_shlibpath_var=no
16041 export_dynamic_flag_spec='-Bexport'
16044 sysv4*MP*)
16045 if test -d /usr/nec; then
16046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 hardcode_shlibpath_var=no
16048 runpath_var=LD_RUN_PATH
16049 hardcode_runpath_var=yes
16050 ld_shlibs=yes
16054 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16055 no_undefined_flag='${wl}-z,text'
16056 archive_cmds_need_lc=no
16057 hardcode_shlibpath_var=no
16058 runpath_var='LD_RUN_PATH'
16060 if test "$GCC" = yes; then
16061 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16062 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16063 else
16064 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16065 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16069 sysv5* | sco3.2v5* | sco5v6*)
16070 # Note: We can NOT use -z defs as we might desire, because we do not
16071 # link with -lc, and that would cause any symbols used from libc to
16072 # always be unresolved, which means just about no library would
16073 # ever link correctly. If we're not using GNU ld we use -z text
16074 # though, which does catch some bad symbols but isn't as heavy-handed
16075 # as -z defs.
16076 no_undefined_flag='${wl}-z,text'
16077 allow_undefined_flag='${wl}-z,nodefs'
16078 archive_cmds_need_lc=no
16079 hardcode_shlibpath_var=no
16080 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16081 hardcode_libdir_separator=':'
16082 link_all_deplibs=yes
16083 export_dynamic_flag_spec='${wl}-Bexport'
16084 runpath_var='LD_RUN_PATH'
16086 if test "$GCC" = yes; then
16087 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16088 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16089 else
16090 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16095 uts4*)
16096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16097 hardcode_libdir_flag_spec='-L$libdir'
16098 hardcode_shlibpath_var=no
16102 ld_shlibs=no
16104 esac
16107 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16108 echo "${ECHO_T}$ld_shlibs" >&6; }
16109 test "$ld_shlibs" = no && can_build_shared=no
16112 # Do we need to explicitly link libc?
16114 case "x$archive_cmds_need_lc" in
16115 x|xyes)
16116 # Assume -lc should be added
16117 archive_cmds_need_lc=yes
16119 if test "$enable_shared" = yes && test "$GCC" = yes; then
16120 case $archive_cmds in
16121 *'~'*)
16122 # FIXME: we may have to deal with multi-command sequences.
16124 '$CC '*)
16125 # Test whether the compiler implicitly links with -lc since on some
16126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16127 # to ld, don't add -lc before -lgcc.
16128 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16129 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16130 $rm conftest*
16131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } 2>conftest.err; then
16138 soname=conftest
16139 lib=conftest
16140 libobjs=conftest.$ac_objext
16141 deplibs=
16142 wl=$lt_prog_compiler_wl
16143 pic_flag=$lt_prog_compiler_pic
16144 compiler_flags=-v
16145 linker_flags=-v
16146 verstring=
16147 output_objdir=.
16148 libname=conftest
16149 lt_save_allow_undefined_flag=$allow_undefined_flag
16150 allow_undefined_flag=
16151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16152 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }
16156 then
16157 archive_cmds_need_lc=no
16158 else
16159 archive_cmds_need_lc=yes
16161 allow_undefined_flag=$lt_save_allow_undefined_flag
16162 else
16163 cat conftest.err 1>&5
16165 $rm conftest*
16166 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16167 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16169 esac
16172 esac
16174 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16176 library_names_spec=
16177 libname_spec='lib$name'
16178 soname_spec=
16179 shrext_cmds=".so"
16180 postinstall_cmds=
16181 postuninstall_cmds=
16182 finish_cmds=
16183 finish_eval=
16184 shlibpath_var=
16185 shlibpath_overrides_runpath=unknown
16186 version_type=none
16187 dynamic_linker="$host_os ld.so"
16188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16189 if test "$GCC" = yes; then
16190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16192 # if the path contains ";" then we assume it to be the separator
16193 # otherwise default to the standard path separator (i.e. ":") - it is
16194 # assumed that no part of a normal pathname contains ";" but that should
16195 # okay in the real world where ";" in dirpaths is itself problematic.
16196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16197 else
16198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16200 else
16201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16203 need_lib_prefix=unknown
16204 hardcode_into_libs=no
16206 # when you set need_version to no, make sure it does not cause -set_version
16207 # flags to be left without arguments
16208 need_version=unknown
16210 case $host_os in
16211 aix3*)
16212 version_type=linux
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16214 shlibpath_var=LIBPATH
16216 # AIX 3 has no versioning support, so we append a major version to the name.
16217 soname_spec='${libname}${release}${shared_ext}$major'
16220 aix4* | aix5*)
16221 version_type=linux
16222 need_lib_prefix=no
16223 need_version=no
16224 hardcode_into_libs=yes
16225 if test "$host_cpu" = ia64; then
16226 # AIX 5 supports IA64
16227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 else
16230 # With GCC up to 2.95.x, collect2 would create an import file
16231 # for dependence libraries. The import file would start with
16232 # the line `#! .'. This would cause the generated library to
16233 # depend on `.', always an invalid library. This was fixed in
16234 # development snapshots of GCC prior to 3.0.
16235 case $host_os in
16236 aix4 | aix4.[01] | aix4.[01].*)
16237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16238 echo ' yes '
16239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16241 else
16242 can_build_shared=no
16245 esac
16246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16247 # soname into executable. Probably we can add versioning support to
16248 # collect2, so additional links can be useful in future.
16249 if test "$aix_use_runtimelinking" = yes; then
16250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16251 # instead of lib<name>.a to let people know that these are not
16252 # typical AIX shared libraries.
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254 else
16255 # We preserve .a as extension for shared libraries through AIX4.2
16256 # and later when we are not doing run time linking.
16257 library_names_spec='${libname}${release}.a $libname.a'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LIBPATH
16264 amigaos*)
16265 library_names_spec='$libname.ixlibrary $libname.a'
16266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16267 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'
16270 beos*)
16271 library_names_spec='${libname}${shared_ext}'
16272 dynamic_linker="$host_os ld.so"
16273 shlibpath_var=LIBRARY_PATH
16276 bsdi[45]*)
16277 version_type=linux
16278 need_version=no
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16282 shlibpath_var=LD_LIBRARY_PATH
16283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16285 # the default ld.so.conf also contains /usr/contrib/lib and
16286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16287 # libtool to hard-code these into programs
16290 cygwin* | mingw* | pw32*)
16291 version_type=windows
16292 shrext_cmds=".dll"
16293 need_version=no
16294 need_lib_prefix=no
16296 case $GCC,$host_os in
16297 yes,cygwin* | yes,mingw* | yes,pw32*)
16298 library_names_spec='$libname.dll.a'
16299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16300 postinstall_cmds='base_file=`basename \${file}`~
16301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16302 dldir=$destdir/`dirname \$dlpath`~
16303 test -d \$dldir || mkdir -p \$dldir~
16304 $install_prog $dir/$dlname \$dldir/$dlname~
16305 chmod a+x \$dldir/$dlname'
16306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16307 dlpath=$dir/\$dldll~
16308 $rm \$dlpath'
16309 shlibpath_overrides_runpath=yes
16311 case $host_os in
16312 cygwin*)
16313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16315 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16317 mingw*)
16318 # MinGW DLLs use traditional 'lib' prefix
16319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16322 # It is most probably a Windows format PATH printed by
16323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16324 # path with ; separators, and with drive letters. We can handle the
16325 # drive letters (cygwin fileutils understands them), so leave them,
16326 # especially as we might pass files found there to a mingw objdump,
16327 # which wouldn't understand a cygwinified path. Ahh.
16328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16329 else
16330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16333 pw32*)
16334 # pw32 DLLs use 'pw' prefix rather than 'lib'
16335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16337 esac
16341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16343 esac
16344 dynamic_linker='Win32 ld.exe'
16345 # FIXME: first we should search . and the directory the executable is in
16346 shlibpath_var=PATH
16349 darwin* | rhapsody*)
16350 dynamic_linker="$host_os dyld"
16351 version_type=darwin
16352 need_lib_prefix=no
16353 need_version=no
16354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16355 soname_spec='${libname}${release}${major}$shared_ext'
16356 shlibpath_overrides_runpath=yes
16357 shlibpath_var=DYLD_LIBRARY_PATH
16358 shrext_cmds='.dylib'
16359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16360 if test "$GCC" = yes; then
16361 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"`
16362 else
16363 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16368 dgux*)
16369 version_type=linux
16370 need_lib_prefix=no
16371 need_version=no
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 shlibpath_var=LD_LIBRARY_PATH
16377 freebsd1*)
16378 dynamic_linker=no
16381 kfreebsd*-gnu)
16382 version_type=linux
16383 need_lib_prefix=no
16384 need_version=no
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=no
16389 hardcode_into_libs=yes
16390 dynamic_linker='GNU ld.so'
16393 freebsd* | dragonfly*)
16394 # DragonFly does not have aout. When/if they implement a new
16395 # versioning mechanism, adjust this.
16396 if test -x /usr/bin/objformat; then
16397 objformat=`/usr/bin/objformat`
16398 else
16399 case $host_os in
16400 freebsd[123]*) objformat=aout ;;
16401 *) objformat=elf ;;
16402 esac
16404 version_type=freebsd-$objformat
16405 case $version_type in
16406 freebsd-elf*)
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16408 need_version=no
16409 need_lib_prefix=no
16411 freebsd-*)
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16413 need_version=yes
16415 esac
16416 shlibpath_var=LD_LIBRARY_PATH
16417 case $host_os in
16418 freebsd2*)
16419 shlibpath_overrides_runpath=yes
16421 freebsd3.[01]* | freebsdelf3.[01]*)
16422 shlibpath_overrides_runpath=yes
16423 hardcode_into_libs=yes
16425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16427 shlibpath_overrides_runpath=no
16428 hardcode_into_libs=yes
16430 freebsd*) # from 4.6 on
16431 shlibpath_overrides_runpath=yes
16432 hardcode_into_libs=yes
16434 esac
16437 gnu*)
16438 version_type=linux
16439 need_lib_prefix=no
16440 need_version=no
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16443 shlibpath_var=LD_LIBRARY_PATH
16444 hardcode_into_libs=yes
16447 hpux9* | hpux10* | hpux11*)
16448 # Give a soname corresponding to the major version so that dld.sl refuses to
16449 # link against other versions.
16450 version_type=sunos
16451 need_lib_prefix=no
16452 need_version=no
16453 case $host_cpu in
16454 ia64*)
16455 shrext_cmds='.so'
16456 hardcode_into_libs=yes
16457 dynamic_linker="$host_os dld.so"
16458 shlibpath_var=LD_LIBRARY_PATH
16459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 if test "X$HPUX_IA64_MODE" = X32; then
16463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16464 else
16465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16469 hppa*64*)
16470 shrext_cmds='.sl'
16471 hardcode_into_libs=yes
16472 dynamic_linker="$host_os dld.sl"
16473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16481 shrext_cmds='.sl'
16482 dynamic_linker="$host_os dld.sl"
16483 shlibpath_var=SHLIB_PATH
16484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16486 soname_spec='${libname}${release}${shared_ext}$major'
16488 esac
16489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16490 postinstall_cmds='chmod 555 $lib'
16493 interix3*)
16494 version_type=linux
16495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=no
16502 hardcode_into_libs=yes
16505 irix5* | irix6* | nonstopux*)
16506 case $host_os in
16507 nonstopux*) version_type=nonstopux ;;
16509 if test "$lt_cv_prog_gnu_ld" = yes; then
16510 version_type=linux
16511 else
16512 version_type=irix
16513 fi ;;
16514 esac
16515 need_lib_prefix=no
16516 need_version=no
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16519 case $host_os in
16520 irix5* | nonstopux*)
16521 libsuff= shlibsuff=
16524 case $LD in # libtool.m4 will add one of these switches to LD
16525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16526 libsuff= shlibsuff= libmagic=32-bit;;
16527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16528 libsuff=32 shlibsuff=N32 libmagic=N32;;
16529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16531 *) libsuff= shlibsuff= libmagic=never-match;;
16532 esac
16534 esac
16535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16536 shlibpath_overrides_runpath=no
16537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16539 hardcode_into_libs=yes
16542 # No shared lib support for Linux oldld, aout, or coff.
16543 linux*oldld* | linux*aout* | linux*coff*)
16544 dynamic_linker=no
16547 # This must be Linux ELF.
16548 linux*)
16549 version_type=linux
16550 need_lib_prefix=no
16551 need_version=no
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=no
16557 # This implies no fast_install, which is unacceptable.
16558 # Some rework will be needed to allow for fast_install
16559 # before this can be enabled.
16560 hardcode_into_libs=yes
16562 # Append ld.so.conf contents to the search path
16563 if test -f /etc/ld.so.conf; then
16564 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' ' '`
16565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16568 # We used to test for /lib/ld.so.1 and disable shared libraries on
16569 # powerpc, because MkLinux only supported shared libraries with the
16570 # GNU dynamic linker. Since this was broken with cross compilers,
16571 # most powerpc-linux boxes support dynamic linking these days and
16572 # people can always --disable-shared, the test was removed, and we
16573 # assume the GNU/Linux dynamic linker is in use.
16574 dynamic_linker='GNU/Linux ld.so'
16577 knetbsd*-gnu)
16578 version_type=linux
16579 need_lib_prefix=no
16580 need_version=no
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=no
16585 hardcode_into_libs=yes
16586 dynamic_linker='GNU ld.so'
16589 netbsd*)
16590 version_type=sunos
16591 need_lib_prefix=no
16592 need_version=no
16593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16596 dynamic_linker='NetBSD (a.out) ld.so'
16597 else
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16599 soname_spec='${libname}${release}${shared_ext}$major'
16600 dynamic_linker='NetBSD ld.elf_so'
16602 shlibpath_var=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath=yes
16604 hardcode_into_libs=yes
16607 newsos6)
16608 version_type=linux
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath=yes
16614 nto-qnx*)
16615 version_type=linux
16616 need_lib_prefix=no
16617 need_version=no
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes
16624 openbsd*)
16625 version_type=sunos
16626 sys_lib_dlsearch_path_spec="/usr/lib"
16627 need_lib_prefix=no
16628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16629 case $host_os in
16630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16631 *) need_version=no ;;
16632 esac
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16635 shlibpath_var=LD_LIBRARY_PATH
16636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16637 case $host_os in
16638 openbsd2.[89] | openbsd2.[89].*)
16639 shlibpath_overrides_runpath=no
16642 shlibpath_overrides_runpath=yes
16644 esac
16645 else
16646 shlibpath_overrides_runpath=yes
16650 os2*)
16651 libname_spec='$name'
16652 shrext_cmds=".dll"
16653 need_lib_prefix=no
16654 library_names_spec='$libname${shared_ext} $libname.a'
16655 dynamic_linker='OS/2 ld.exe'
16656 shlibpath_var=LIBPATH
16659 osf3* | osf4* | osf5*)
16660 version_type=osf
16661 need_lib_prefix=no
16662 need_version=no
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 shlibpath_var=LD_LIBRARY_PATH
16666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16670 solaris*)
16671 version_type=linux
16672 need_lib_prefix=no
16673 need_version=no
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16675 soname_spec='${libname}${release}${shared_ext}$major'
16676 shlibpath_var=LD_LIBRARY_PATH
16677 shlibpath_overrides_runpath=yes
16678 hardcode_into_libs=yes
16679 # ldd complains unless libraries are executable
16680 postinstall_cmds='chmod +x $lib'
16683 sunos4*)
16684 version_type=sunos
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=yes
16689 if test "$with_gnu_ld" = yes; then
16690 need_lib_prefix=no
16692 need_version=yes
16695 sysv4 | sysv4.3*)
16696 version_type=linux
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 case $host_vendor in
16701 sni)
16702 shlibpath_overrides_runpath=no
16703 need_lib_prefix=no
16704 export_dynamic_flag_spec='${wl}-Blargedynsym'
16705 runpath_var=LD_RUN_PATH
16707 siemens)
16708 need_lib_prefix=no
16710 motorola)
16711 need_lib_prefix=no
16712 need_version=no
16713 shlibpath_overrides_runpath=no
16714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16716 esac
16719 sysv4*MP*)
16720 if test -d /usr/nec ;then
16721 version_type=linux
16722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16723 soname_spec='$libname${shared_ext}.$major'
16724 shlibpath_var=LD_LIBRARY_PATH
16728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16729 version_type=freebsd-elf
16730 need_lib_prefix=no
16731 need_version=no
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16733 soname_spec='${libname}${release}${shared_ext}$major'
16734 shlibpath_var=LD_LIBRARY_PATH
16735 hardcode_into_libs=yes
16736 if test "$with_gnu_ld" = yes; then
16737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16738 shlibpath_overrides_runpath=no
16739 else
16740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16741 shlibpath_overrides_runpath=yes
16742 case $host_os in
16743 sco3.2v5*)
16744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16746 esac
16748 sys_lib_dlsearch_path_spec='/usr/lib'
16751 uts4*)
16752 version_type=linux
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 shlibpath_var=LD_LIBRARY_PATH
16759 dynamic_linker=no
16761 esac
16762 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16763 echo "${ECHO_T}$dynamic_linker" >&6; }
16764 test "$dynamic_linker" = no && can_build_shared=no
16766 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16767 if test "$GCC" = yes; then
16768 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16771 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16773 hardcode_action=
16774 if test -n "$hardcode_libdir_flag_spec" || \
16775 test -n "$runpath_var" || \
16776 test "X$hardcode_automatic" = "Xyes" ; then
16778 # We can hardcode non-existant directories.
16779 if test "$hardcode_direct" != no &&
16780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16781 # have to relink, otherwise we might link with an installed library
16782 # when we should be linking with a yet-to-be-installed one
16783 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16784 test "$hardcode_minus_L" != no; then
16785 # Linking always hardcodes the temporary library directory.
16786 hardcode_action=relink
16787 else
16788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16789 hardcode_action=immediate
16791 else
16792 # We cannot hardcode anything, or else we can only hardcode existing
16793 # directories.
16794 hardcode_action=unsupported
16796 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16797 echo "${ECHO_T}$hardcode_action" >&6; }
16799 if test "$hardcode_action" = relink; then
16800 # Fast installation is not supported
16801 enable_fast_install=no
16802 elif test "$shlibpath_overrides_runpath" = yes ||
16803 test "$enable_shared" = no; then
16804 # Fast installation is not necessary
16805 enable_fast_install=needless
16808 striplib=
16809 old_striplib=
16810 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16811 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16812 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16815 { echo "$as_me:$LINENO: result: yes" >&5
16816 echo "${ECHO_T}yes" >&6; }
16817 else
16818 # FIXME - insert some real tests, host_os isn't really good enough
16819 case $host_os in
16820 darwin*)
16821 if test -n "$STRIP" ; then
16822 striplib="$STRIP -x"
16823 { echo "$as_me:$LINENO: result: yes" >&5
16824 echo "${ECHO_T}yes" >&6; }
16825 else
16826 { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16831 { echo "$as_me:$LINENO: result: no" >&5
16832 echo "${ECHO_T}no" >&6; }
16834 esac
16837 if test "x$enable_dlopen" != xyes; then
16838 enable_dlopen=unknown
16839 enable_dlopen_self=unknown
16840 enable_dlopen_self_static=unknown
16841 else
16842 lt_cv_dlopen=no
16843 lt_cv_dlopen_libs=
16845 case $host_os in
16846 beos*)
16847 lt_cv_dlopen="load_add_on"
16848 lt_cv_dlopen_libs=
16849 lt_cv_dlopen_self=yes
16852 mingw* | pw32*)
16853 lt_cv_dlopen="LoadLibrary"
16854 lt_cv_dlopen_libs=
16857 cygwin*)
16858 lt_cv_dlopen="dlopen"
16859 lt_cv_dlopen_libs=
16862 darwin*)
16863 # if libdl is installed we need to link against it
16864 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869 ac_check_lib_save_LIBS=$LIBS
16870 LIBS="-ldl $LIBS"
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16878 /* Override any GCC internal prototype to avoid an error.
16879 Use char because int might match the return type of a GCC
16880 builtin and then its argument prototype would still apply. */
16881 #ifdef __cplusplus
16882 extern "C"
16883 #endif
16884 char dlopen ();
16886 main ()
16888 return dlopen ();
16890 return 0;
16892 _ACEOF
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
16907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16908 { (case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16911 esac
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_try") 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921 esac
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_try") 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_lib_dl_dlopen=yes
16928 else
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_cv_lib_dl_dlopen=no
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_lib_save_LIBS
16939 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16941 if test $ac_cv_lib_dl_dlopen = yes; then
16942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16943 else
16945 lt_cv_dlopen="dyld"
16946 lt_cv_dlopen_libs=
16947 lt_cv_dlopen_self=yes
16954 { echo "$as_me:$LINENO: checking for shl_load" >&5
16955 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16956 if test "${ac_cv_func_shl_load+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959 cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h. */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16967 #define shl_load innocuous_shl_load
16969 /* System header to define __stub macros and hopefully few prototypes,
16970 which can conflict with char shl_load (); below.
16971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16972 <limits.h> exists even on freestanding compilers. */
16974 #ifdef __STDC__
16975 # include <limits.h>
16976 #else
16977 # include <assert.h>
16978 #endif
16980 #undef shl_load
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16985 #ifdef __cplusplus
16986 extern "C"
16987 #endif
16988 char shl_load ();
16989 /* The GNU C library defines this for functions which it implements
16990 to always fail with ENOSYS. Some functions are actually named
16991 something starting with __ and the normal name is an alias. */
16992 #if defined __stub_shl_load || defined __stub___shl_load
16993 choke me
16994 #endif
16997 main ()
16999 return shl_load ();
17001 return 0;
17003 _ACEOF
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17019 { (case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022 esac
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_try") 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest$ac_exeext'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_try") 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038 ac_cv_func_shl_load=yes
17039 else
17040 echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17043 ac_cv_func_shl_load=no
17046 rm -f core conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17049 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17050 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17051 if test $ac_cv_func_shl_load = yes; then
17052 lt_cv_dlopen="shl_load"
17053 else
17054 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17055 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17056 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059 ac_check_lib_save_LIBS=$LIBS
17060 LIBS="-ldld $LIBS"
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h. */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17068 /* Override any GCC internal prototype to avoid an error.
17069 Use char because int might match the return type of a GCC
17070 builtin and then its argument prototype would still apply. */
17071 #ifdef __cplusplus
17072 extern "C"
17073 #endif
17074 char shl_load ();
17076 main ()
17078 return shl_load ();
17080 return 0;
17082 _ACEOF
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (ac_try="$ac_link"
17085 case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088 esac
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
17091 ac_status=$?
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098 { (case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_try") 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest$ac_exeext'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17111 esac
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_lib_dld_shl_load=yes
17118 else
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 ac_cv_lib_dld_shl_load=no
17125 rm -f core conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17127 LIBS=$ac_check_lib_save_LIBS
17129 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17130 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17131 if test $ac_cv_lib_dld_shl_load = yes; then
17132 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17133 else
17134 { echo "$as_me:$LINENO: checking for dlopen" >&5
17135 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17136 if test "${ac_cv_func_dlopen+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h. */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17147 #define dlopen innocuous_dlopen
17149 /* System header to define __stub macros and hopefully few prototypes,
17150 which can conflict with char dlopen (); below.
17151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17152 <limits.h> exists even on freestanding compilers. */
17154 #ifdef __STDC__
17155 # include <limits.h>
17156 #else
17157 # include <assert.h>
17158 #endif
17160 #undef dlopen
17162 /* Override any GCC internal prototype to avoid an error.
17163 Use char because int might match the return type of a GCC
17164 builtin and then its argument prototype would still apply. */
17165 #ifdef __cplusplus
17166 extern "C"
17167 #endif
17168 char dlopen ();
17169 /* The GNU C library defines this for functions which it implements
17170 to always fail with ENOSYS. Some functions are actually named
17171 something starting with __ and the normal name is an alias. */
17172 #if defined __stub_dlopen || defined __stub___dlopen
17173 choke me
17174 #endif
17177 main ()
17179 return dlopen ();
17181 return 0;
17183 _ACEOF
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_link") 2>conftest.er1
17192 ac_status=$?
17193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17199 { (case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17202 esac
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_try") 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; } &&
17208 { ac_try='test -s conftest$ac_exeext'
17209 { (case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17212 esac
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_try") 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_cv_func_dlopen=yes
17219 else
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 ac_cv_func_dlopen=no
17226 rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
17229 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17230 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17231 if test $ac_cv_func_dlopen = yes; then
17232 lt_cv_dlopen="dlopen"
17233 else
17234 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-ldl $LIBS"
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char dlopen ();
17256 main ()
17258 return dlopen ();
17260 return 0;
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281 esac
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest$ac_exeext'
17288 { (case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 ac_cv_lib_dl_dlopen=yes
17298 else
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 ac_cv_lib_dl_dlopen=no
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 LIBS=$ac_check_lib_save_LIBS
17309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17311 if test $ac_cv_lib_dl_dlopen = yes; then
17312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17313 else
17314 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17315 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319 ac_check_lib_save_LIBS=$LIBS
17320 LIBS="-lsvld $LIBS"
17321 cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h. */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 char dlopen ();
17336 main ()
17338 return dlopen ();
17340 return 0;
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; } &&
17367 { ac_try='test -s conftest$ac_exeext'
17368 { (case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17371 esac
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_try") 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_lib_svld_dlopen=yes
17378 else
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ac_cv_lib_svld_dlopen=no
17385 rm -f core conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17387 LIBS=$ac_check_lib_save_LIBS
17389 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17390 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17391 if test $ac_cv_lib_svld_dlopen = yes; then
17392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17393 else
17394 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17395 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17396 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399 ac_check_lib_save_LIBS=$LIBS
17400 LIBS="-ldld $LIBS"
17401 cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h. */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17408 /* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
17411 #ifdef __cplusplus
17412 extern "C"
17413 #endif
17414 char dld_link ();
17416 main ()
17418 return dld_link ();
17420 return 0;
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest$ac_exeext'
17448 { (case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451 esac
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_try") 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_cv_lib_dld_dld_link=yes
17458 else
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_cv_lib_dld_dld_link=no
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17469 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17470 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17471 if test $ac_cv_lib_dld_dld_link = yes; then
17472 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17491 esac
17493 if test "x$lt_cv_dlopen" != xno; then
17494 enable_dlopen=yes
17495 else
17496 enable_dlopen=no
17499 case $lt_cv_dlopen in
17500 dlopen)
17501 save_CPPFLAGS="$CPPFLAGS"
17502 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17504 save_LDFLAGS="$LDFLAGS"
17505 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17507 save_LIBS="$LIBS"
17508 LIBS="$lt_cv_dlopen_libs $LIBS"
17510 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17511 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17512 if test "${lt_cv_dlopen_self+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515 if test "$cross_compiling" = yes; then :
17516 lt_cv_dlopen_self=cross
17517 else
17518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17519 lt_status=$lt_dlunknown
17520 cat > conftest.$ac_ext <<EOF
17521 #line 17521 "configure"
17522 #include "confdefs.h"
17524 #if HAVE_DLFCN_H
17525 #include <dlfcn.h>
17526 #endif
17528 #include <stdio.h>
17530 #ifdef RTLD_GLOBAL
17531 # define LT_DLGLOBAL RTLD_GLOBAL
17532 #else
17533 # ifdef DL_GLOBAL
17534 # define LT_DLGLOBAL DL_GLOBAL
17535 # else
17536 # define LT_DLGLOBAL 0
17537 # endif
17538 #endif
17540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17541 find out it does not work in some platform. */
17542 #ifndef LT_DLLAZY_OR_NOW
17543 # ifdef RTLD_LAZY
17544 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17545 # else
17546 # ifdef DL_LAZY
17547 # define LT_DLLAZY_OR_NOW DL_LAZY
17548 # else
17549 # ifdef RTLD_NOW
17550 # define LT_DLLAZY_OR_NOW RTLD_NOW
17551 # else
17552 # ifdef DL_NOW
17553 # define LT_DLLAZY_OR_NOW DL_NOW
17554 # else
17555 # define LT_DLLAZY_OR_NOW 0
17556 # endif
17557 # endif
17558 # endif
17559 # endif
17560 #endif
17562 #ifdef __cplusplus
17563 extern "C" void exit (int);
17564 #endif
17566 void fnord() { int i=42;}
17567 int main ()
17569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17570 int status = $lt_dlunknown;
17572 if (self)
17574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17576 /* dlclose (self); */
17578 else
17579 puts (dlerror ());
17581 exit (status);
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585 (eval $ac_link) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17589 (./conftest; exit; ) >&5 2>/dev/null
17590 lt_status=$?
17591 case x$lt_status in
17592 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17593 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17594 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17595 esac
17596 else :
17597 # compilation failed
17598 lt_cv_dlopen_self=no
17601 rm -fr conftest*
17605 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17606 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17608 if test "x$lt_cv_dlopen_self" = xyes; then
17609 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17610 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17611 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17612 if test "${lt_cv_dlopen_self_static+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 else
17615 if test "$cross_compiling" = yes; then :
17616 lt_cv_dlopen_self_static=cross
17617 else
17618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17619 lt_status=$lt_dlunknown
17620 cat > conftest.$ac_ext <<EOF
17621 #line 17621 "configure"
17622 #include "confdefs.h"
17624 #if HAVE_DLFCN_H
17625 #include <dlfcn.h>
17626 #endif
17628 #include <stdio.h>
17630 #ifdef RTLD_GLOBAL
17631 # define LT_DLGLOBAL RTLD_GLOBAL
17632 #else
17633 # ifdef DL_GLOBAL
17634 # define LT_DLGLOBAL DL_GLOBAL
17635 # else
17636 # define LT_DLGLOBAL 0
17637 # endif
17638 #endif
17640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17641 find out it does not work in some platform. */
17642 #ifndef LT_DLLAZY_OR_NOW
17643 # ifdef RTLD_LAZY
17644 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17645 # else
17646 # ifdef DL_LAZY
17647 # define LT_DLLAZY_OR_NOW DL_LAZY
17648 # else
17649 # ifdef RTLD_NOW
17650 # define LT_DLLAZY_OR_NOW RTLD_NOW
17651 # else
17652 # ifdef DL_NOW
17653 # define LT_DLLAZY_OR_NOW DL_NOW
17654 # else
17655 # define LT_DLLAZY_OR_NOW 0
17656 # endif
17657 # endif
17658 # endif
17659 # endif
17660 #endif
17662 #ifdef __cplusplus
17663 extern "C" void exit (int);
17664 #endif
17666 void fnord() { int i=42;}
17667 int main ()
17669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17670 int status = $lt_dlunknown;
17672 if (self)
17674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17675 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17676 /* dlclose (self); */
17678 else
17679 puts (dlerror ());
17681 exit (status);
17684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17689 (./conftest; exit; ) >&5 2>/dev/null
17690 lt_status=$?
17691 case x$lt_status in
17692 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17693 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17694 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17695 esac
17696 else :
17697 # compilation failed
17698 lt_cv_dlopen_self_static=no
17701 rm -fr conftest*
17705 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17706 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17709 CPPFLAGS="$save_CPPFLAGS"
17710 LDFLAGS="$save_LDFLAGS"
17711 LIBS="$save_LIBS"
17713 esac
17715 case $lt_cv_dlopen_self in
17716 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17717 *) enable_dlopen_self=unknown ;;
17718 esac
17720 case $lt_cv_dlopen_self_static in
17721 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17722 *) enable_dlopen_self_static=unknown ;;
17723 esac
17727 # Report which library types will actually be built
17728 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17729 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17730 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17731 echo "${ECHO_T}$can_build_shared" >&6; }
17733 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17734 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17735 test "$can_build_shared" = "no" && enable_shared=no
17737 # On AIX, shared libraries and static libraries use the same namespace, and
17738 # are all built from PIC.
17739 case $host_os in
17740 aix3*)
17741 test "$enable_shared" = yes && enable_static=no
17742 if test -n "$RANLIB"; then
17743 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17744 postinstall_cmds='$RANLIB $lib'
17748 aix4* | aix5*)
17749 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17750 test "$enable_shared" = yes && enable_static=no
17753 esac
17754 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17755 echo "${ECHO_T}$enable_shared" >&6; }
17757 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17758 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17759 # Make sure either enable_shared or enable_static is yes.
17760 test "$enable_shared" = yes || enable_static=yes
17761 { echo "$as_me:$LINENO: result: $enable_static" >&5
17762 echo "${ECHO_T}$enable_static" >&6; }
17764 # The else clause should only fire when bootstrapping the
17765 # libtool distribution, otherwise you forgot to ship ltmain.sh
17766 # with your package, and you will get complaints that there are
17767 # no rules to generate ltmain.sh.
17768 if test -f "$ltmain"; then
17769 # See if we are running on zsh, and set the options which allow our commands through
17770 # without removal of \ escapes.
17771 if test -n "${ZSH_VERSION+set}" ; then
17772 setopt NO_GLOB_SUBST
17774 # Now quote all the things that may contain metacharacters while being
17775 # careful not to overquote the AC_SUBSTed values. We take copies of the
17776 # variables and quote the copies for generation of the libtool script.
17777 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17778 SED SHELL STRIP \
17779 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17780 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17781 deplibs_check_method reload_flag reload_cmds need_locks \
17782 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17783 lt_cv_sys_global_symbol_to_c_name_address \
17784 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17785 old_postinstall_cmds old_postuninstall_cmds \
17786 compiler \
17787 CC \
17788 LD \
17789 lt_prog_compiler_wl \
17790 lt_prog_compiler_pic \
17791 lt_prog_compiler_static \
17792 lt_prog_compiler_no_builtin_flag \
17793 export_dynamic_flag_spec \
17794 thread_safe_flag_spec \
17795 whole_archive_flag_spec \
17796 enable_shared_with_static_runtimes \
17797 old_archive_cmds \
17798 old_archive_from_new_cmds \
17799 predep_objects \
17800 postdep_objects \
17801 predeps \
17802 postdeps \
17803 compiler_lib_search_path \
17804 archive_cmds \
17805 archive_expsym_cmds \
17806 postinstall_cmds \
17807 postuninstall_cmds \
17808 old_archive_from_expsyms_cmds \
17809 allow_undefined_flag \
17810 no_undefined_flag \
17811 export_symbols_cmds \
17812 hardcode_libdir_flag_spec \
17813 hardcode_libdir_flag_spec_ld \
17814 hardcode_libdir_separator \
17815 hardcode_automatic \
17816 module_cmds \
17817 module_expsym_cmds \
17818 lt_cv_prog_compiler_c_o \
17819 exclude_expsyms \
17820 include_expsyms; do
17822 case $var in
17823 old_archive_cmds | \
17824 old_archive_from_new_cmds | \
17825 archive_cmds | \
17826 archive_expsym_cmds | \
17827 module_cmds | \
17828 module_expsym_cmds | \
17829 old_archive_from_expsyms_cmds | \
17830 export_symbols_cmds | \
17831 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17832 postinstall_cmds | postuninstall_cmds | \
17833 old_postinstall_cmds | old_postuninstall_cmds | \
17834 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17835 # Double-quote double-evaled strings.
17836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17839 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17841 esac
17842 done
17844 case $lt_echo in
17845 *'\$0 --fallback-echo"')
17846 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17848 esac
17850 cfgfile="${ofile}T"
17851 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17852 $rm -f "$cfgfile"
17853 { echo "$as_me:$LINENO: creating $ofile" >&5
17854 echo "$as_me: creating $ofile" >&6;}
17856 cat <<__EOF__ >> "$cfgfile"
17857 #! $SHELL
17859 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17860 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17861 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17863 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17864 # Free Software Foundation, Inc.
17866 # This file is part of GNU Libtool:
17867 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17869 # This program is free software; you can redistribute it and/or modify
17870 # it under the terms of the GNU General Public License as published by
17871 # the Free Software Foundation; either version 2 of the License, or
17872 # (at your option) any later version.
17874 # This program is distributed in the hope that it will be useful, but
17875 # WITHOUT ANY WARRANTY; without even the implied warranty of
17876 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17877 # General Public License for more details.
17879 # You should have received a copy of the GNU General Public License
17880 # along with this program; if not, write to the Free Software
17881 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17883 # As a special exception to the GNU General Public License, if you
17884 # distribute this file as part of a program that contains a
17885 # configuration script generated by Autoconf, you may include it under
17886 # the same distribution terms that you use for the rest of that program.
17888 # A sed program that does not truncate output.
17889 SED=$lt_SED
17891 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17892 Xsed="$SED -e 1s/^X//"
17894 # The HP-UX ksh and POSIX shell print the target directory to stdout
17895 # if CDPATH is set.
17896 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17898 # The names of the tagged configurations supported by this script.
17899 available_tags=
17901 # ### BEGIN LIBTOOL CONFIG
17903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17905 # Shell to use when invoking shell scripts.
17906 SHELL=$lt_SHELL
17908 # Whether or not to build shared libraries.
17909 build_libtool_libs=$enable_shared
17911 # Whether or not to build static libraries.
17912 build_old_libs=$enable_static
17914 # Whether or not to add -lc for building shared libraries.
17915 build_libtool_need_lc=$archive_cmds_need_lc
17917 # Whether or not to disallow shared libs when runtime libs are static
17918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17920 # Whether or not to optimize for fast installation.
17921 fast_install=$enable_fast_install
17923 # The host system.
17924 host_alias=$host_alias
17925 host=$host
17926 host_os=$host_os
17928 # The build system.
17929 build_alias=$build_alias
17930 build=$build
17931 build_os=$build_os
17933 # An echo program that does not interpret backslashes.
17934 echo=$lt_echo
17936 # The archiver.
17937 AR=$lt_AR
17938 AR_FLAGS=$lt_AR_FLAGS
17940 # A C compiler.
17941 LTCC=$lt_LTCC
17943 # LTCC compiler flags.
17944 LTCFLAGS=$lt_LTCFLAGS
17946 # A language-specific compiler.
17947 CC=$lt_compiler
17949 # Is the compiler the GNU C compiler?
17950 with_gcc=$GCC
17952 # An ERE matcher.
17953 EGREP=$lt_EGREP
17955 # The linker used to build libraries.
17956 LD=$lt_LD
17958 # Whether we need hard or soft links.
17959 LN_S=$lt_LN_S
17961 # A BSD-compatible nm program.
17962 NM=$lt_NM
17964 # A symbol stripping program
17965 STRIP=$lt_STRIP
17967 # Used to examine libraries when file_magic_cmd begins "file"
17968 MAGIC_CMD=$MAGIC_CMD
17970 # Used on cygwin: DLL creation program.
17971 DLLTOOL="$DLLTOOL"
17973 # Used on cygwin: object dumper.
17974 OBJDUMP="$OBJDUMP"
17976 # Used on cygwin: assembler.
17977 AS="$AS"
17979 # The name of the directory that contains temporary libtool files.
17980 objdir=$objdir
17982 # How to create reloadable object files.
17983 reload_flag=$lt_reload_flag
17984 reload_cmds=$lt_reload_cmds
17986 # How to pass a linker flag through the compiler.
17987 wl=$lt_lt_prog_compiler_wl
17989 # Object file suffix (normally "o").
17990 objext="$ac_objext"
17992 # Old archive suffix (normally "a").
17993 libext="$libext"
17995 # Shared library suffix (normally ".so").
17996 shrext_cmds='$shrext_cmds'
17998 # Executable file suffix (normally "").
17999 exeext="$exeext"
18001 # Additional compiler flags for building library objects.
18002 pic_flag=$lt_lt_prog_compiler_pic
18003 pic_mode=$pic_mode
18005 # What is the maximum length of a command?
18006 max_cmd_len=$lt_cv_sys_max_cmd_len
18008 # Does compiler simultaneously support -c and -o options?
18009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18011 # Must we lock files when doing compilation?
18012 need_locks=$lt_need_locks
18014 # Do we need the lib prefix for modules?
18015 need_lib_prefix=$need_lib_prefix
18017 # Do we need a version for libraries?
18018 need_version=$need_version
18020 # Whether dlopen is supported.
18021 dlopen_support=$enable_dlopen
18023 # Whether dlopen of programs is supported.
18024 dlopen_self=$enable_dlopen_self
18026 # Whether dlopen of statically linked programs is supported.
18027 dlopen_self_static=$enable_dlopen_self_static
18029 # Compiler flag to prevent dynamic linking.
18030 link_static_flag=$lt_lt_prog_compiler_static
18032 # Compiler flag to turn off builtin functions.
18033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18035 # Compiler flag to allow reflexive dlopens.
18036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18038 # Compiler flag to generate shared objects directly from archives.
18039 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18041 # Compiler flag to generate thread-safe objects.
18042 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18044 # Library versioning type.
18045 version_type=$version_type
18047 # Format of library name prefix.
18048 libname_spec=$lt_libname_spec
18050 # List of archive names. First name is the real one, the rest are links.
18051 # The last name is the one that the linker finds with -lNAME.
18052 library_names_spec=$lt_library_names_spec
18054 # The coded name of the library, if different from the real name.
18055 soname_spec=$lt_soname_spec
18057 # Commands used to build and install an old-style archive.
18058 RANLIB=$lt_RANLIB
18059 old_archive_cmds=$lt_old_archive_cmds
18060 old_postinstall_cmds=$lt_old_postinstall_cmds
18061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18063 # Create an old-style archive from a shared archive.
18064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18066 # Create a temporary old-style archive to link instead of a shared archive.
18067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18069 # Commands used to build and install a shared archive.
18070 archive_cmds=$lt_archive_cmds
18071 archive_expsym_cmds=$lt_archive_expsym_cmds
18072 postinstall_cmds=$lt_postinstall_cmds
18073 postuninstall_cmds=$lt_postuninstall_cmds
18075 # Commands used to build a loadable module (assumed same as above if empty)
18076 module_cmds=$lt_module_cmds
18077 module_expsym_cmds=$lt_module_expsym_cmds
18079 # Commands to strip libraries.
18080 old_striplib=$lt_old_striplib
18081 striplib=$lt_striplib
18083 # Dependencies to place before the objects being linked to create a
18084 # shared library.
18085 predep_objects=$lt_predep_objects
18087 # Dependencies to place after the objects being linked to create a
18088 # shared library.
18089 postdep_objects=$lt_postdep_objects
18091 # Dependencies to place before the objects being linked to create a
18092 # shared library.
18093 predeps=$lt_predeps
18095 # Dependencies to place after the objects being linked to create a
18096 # shared library.
18097 postdeps=$lt_postdeps
18099 # The library search path used internally by the compiler when linking
18100 # a shared library.
18101 compiler_lib_search_path=$lt_compiler_lib_search_path
18103 # Method to check whether dependent libraries are shared objects.
18104 deplibs_check_method=$lt_deplibs_check_method
18106 # Command to use when deplibs_check_method == file_magic.
18107 file_magic_cmd=$lt_file_magic_cmd
18109 # Flag that allows shared libraries with undefined symbols to be built.
18110 allow_undefined_flag=$lt_allow_undefined_flag
18112 # Flag that forces no undefined symbols.
18113 no_undefined_flag=$lt_no_undefined_flag
18115 # Commands used to finish a libtool library installation in a directory.
18116 finish_cmds=$lt_finish_cmds
18118 # Same as above, but a single script fragment to be evaled but not shown.
18119 finish_eval=$lt_finish_eval
18121 # Take the output of nm and produce a listing of raw symbols and C names.
18122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18124 # Transform the output of nm in a proper C declaration
18125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18127 # Transform the output of nm in a C name address pair
18128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18130 # This is the shared library runtime path variable.
18131 runpath_var=$runpath_var
18133 # This is the shared library path variable.
18134 shlibpath_var=$shlibpath_var
18136 # Is shlibpath searched before the hard-coded library search path?
18137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18139 # How to hardcode a shared library path into an executable.
18140 hardcode_action=$hardcode_action
18142 # Whether we should hardcode library paths into libraries.
18143 hardcode_into_libs=$hardcode_into_libs
18145 # Flag to hardcode \$libdir into a binary during linking.
18146 # This must work even if \$libdir does not exist.
18147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18149 # If ld is used when linking, flag to hardcode \$libdir into
18150 # a binary during linking. This must work even if \$libdir does
18151 # not exist.
18152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18154 # Whether we need a single -rpath flag with a separated argument.
18155 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18157 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18158 # resulting binary.
18159 hardcode_direct=$hardcode_direct
18161 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18162 # resulting binary.
18163 hardcode_minus_L=$hardcode_minus_L
18165 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18166 # the resulting binary.
18167 hardcode_shlibpath_var=$hardcode_shlibpath_var
18169 # Set to yes if building a shared library automatically hardcodes DIR into the library
18170 # and all subsequent libraries and executables linked against it.
18171 hardcode_automatic=$hardcode_automatic
18173 # Variables whose values should be saved in libtool wrapper scripts and
18174 # restored at relink time.
18175 variables_saved_for_relink="$variables_saved_for_relink"
18177 # Whether libtool must link a program against all its dependency libraries.
18178 link_all_deplibs=$link_all_deplibs
18180 # Compile-time system search path for libraries
18181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18183 # Run-time system search path for libraries
18184 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18186 # Fix the shell variable \$srcfile for the compiler.
18187 fix_srcfile_path="$fix_srcfile_path"
18189 # Set to yes if exported symbols are required.
18190 always_export_symbols=$always_export_symbols
18192 # The commands to list exported symbols.
18193 export_symbols_cmds=$lt_export_symbols_cmds
18195 # The commands to extract the exported symbol list from a shared archive.
18196 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18198 # Symbols that should not be listed in the preloaded symbols.
18199 exclude_expsyms=$lt_exclude_expsyms
18201 # Symbols that must always be exported.
18202 include_expsyms=$lt_include_expsyms
18204 # ### END LIBTOOL CONFIG
18206 __EOF__
18209 case $host_os in
18210 aix3*)
18211 cat <<\EOF >> "$cfgfile"
18213 # AIX sometimes has problems with the GCC collect2 program. For some
18214 # reason, if we set the COLLECT_NAMES environment variable, the problems
18215 # vanish in a puff of smoke.
18216 if test "X${COLLECT_NAMES+set}" != Xset; then
18217 COLLECT_NAMES=
18218 export COLLECT_NAMES
18222 esac
18224 # We use sed instead of cat because bash on DJGPP gets confused if
18225 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18226 # text mode, it properly converts lines to CR/LF. This bash problem
18227 # is reportedly fixed, but why not run on old versions too?
18228 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18230 mv -f "$cfgfile" "$ofile" || \
18231 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18232 chmod +x "$ofile"
18234 else
18235 # If there is no Makefile yet, we rely on a make rule to execute
18236 # `config.status --recheck' to rerun these tests and create the
18237 # libtool script then.
18238 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18239 if test -f "$ltmain_in"; then
18240 test -f Makefile && make "$ltmain"
18245 ac_ext=c
18246 ac_cpp='$CPP $CPPFLAGS'
18247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18251 CC="$lt_save_CC"
18254 # Check whether --with-tags was given.
18255 if test "${with_tags+set}" = set; then
18256 withval=$with_tags; tagnames="$withval"
18260 if test -f "$ltmain" && test -n "$tagnames"; then
18261 if test ! -f "${ofile}"; then
18262 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18263 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18266 if test -z "$LTCC"; then
18267 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18268 if test -z "$LTCC"; then
18269 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18270 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18271 else
18272 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18273 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18276 if test -z "$LTCFLAGS"; then
18277 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18280 # Extract list of available tagged configurations in $ofile.
18281 # Note that this assumes the entire list is on one line.
18282 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18285 for tagname in $tagnames; do
18286 IFS="$lt_save_ifs"
18287 # Check whether tagname contains only valid characters
18288 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18289 "") ;;
18290 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18291 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18292 { (exit 1); exit 1; }; }
18294 esac
18296 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18297 then
18298 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18299 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18300 { (exit 1); exit 1; }; }
18303 # Update the list of available tags.
18304 if test -n "$tagname"; then
18305 echo appending configuration tag \"$tagname\" to $ofile
18307 case $tagname in
18308 CXX)
18309 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18310 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18311 (test "X$CXX" != "Xg++"))) ; then
18312 ac_ext=cpp
18313 ac_cpp='$CXXCPP $CPPFLAGS'
18314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18321 archive_cmds_need_lc_CXX=no
18322 allow_undefined_flag_CXX=
18323 always_export_symbols_CXX=no
18324 archive_expsym_cmds_CXX=
18325 export_dynamic_flag_spec_CXX=
18326 hardcode_direct_CXX=no
18327 hardcode_libdir_flag_spec_CXX=
18328 hardcode_libdir_flag_spec_ld_CXX=
18329 hardcode_libdir_separator_CXX=
18330 hardcode_minus_L_CXX=no
18331 hardcode_shlibpath_var_CXX=unsupported
18332 hardcode_automatic_CXX=no
18333 module_cmds_CXX=
18334 module_expsym_cmds_CXX=
18335 link_all_deplibs_CXX=unknown
18336 old_archive_cmds_CXX=$old_archive_cmds
18337 no_undefined_flag_CXX=
18338 whole_archive_flag_spec_CXX=
18339 enable_shared_with_static_runtimes_CXX=no
18341 # Dependencies to place before and after the object being linked:
18342 predep_objects_CXX=
18343 postdep_objects_CXX=
18344 predeps_CXX=
18345 postdeps_CXX=
18346 compiler_lib_search_path_CXX=
18348 # Source file extension for C++ test sources.
18349 ac_ext=cpp
18351 # Object file extension for compiled C++ test sources.
18352 objext=o
18353 objext_CXX=$objext
18355 # Code to be used in simple compile tests
18356 lt_simple_compile_test_code="int some_variable = 0;\n"
18358 # Code to be used in simple link tests
18359 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18363 # If no C compiler was specified, use CC.
18364 LTCC=${LTCC-"$CC"}
18366 # If no C compiler flags were specified, use CFLAGS.
18367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18369 # Allow CC to be a program name with arguments.
18370 compiler=$CC
18373 # save warnings/boilerplate of simple test code
18374 ac_outfile=conftest.$ac_objext
18375 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18377 _lt_compiler_boilerplate=`cat conftest.err`
18378 $rm conftest*
18380 ac_outfile=conftest.$ac_objext
18381 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18383 _lt_linker_boilerplate=`cat conftest.err`
18384 $rm conftest*
18387 # Allow CC to be a program name with arguments.
18388 lt_save_CC=$CC
18389 lt_save_LD=$LD
18390 lt_save_GCC=$GCC
18391 GCC=$GXX
18392 lt_save_with_gnu_ld=$with_gnu_ld
18393 lt_save_path_LD=$lt_cv_path_LD
18394 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18395 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18396 else
18397 $as_unset lt_cv_prog_gnu_ld
18399 if test -n "${lt_cv_path_LDCXX+set}"; then
18400 lt_cv_path_LD=$lt_cv_path_LDCXX
18401 else
18402 $as_unset lt_cv_path_LD
18404 test -z "${LDCXX+set}" || LD=$LDCXX
18405 CC=${CXX-"c++"}
18406 compiler=$CC
18407 compiler_CXX=$CC
18408 for cc_temp in $compiler""; do
18409 case $cc_temp in
18410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18412 \-*) ;;
18413 *) break;;
18414 esac
18415 done
18416 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18419 # We don't want -fno-exception wen compiling C++ code, so set the
18420 # no_builtin_flag separately
18421 if test "$GXX" = yes; then
18422 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18423 else
18424 lt_prog_compiler_no_builtin_flag_CXX=
18427 if test "$GXX" = yes; then
18428 # Set up default GNU C++ configuration
18431 # Check whether --with-gnu-ld was given.
18432 if test "${with_gnu_ld+set}" = set; then
18433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18434 else
18435 with_gnu_ld=no
18438 ac_prog=ld
18439 if test "$GCC" = yes; then
18440 # Check if gcc -print-prog-name=ld gives a path.
18441 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18442 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18443 case $host in
18444 *-*-mingw*)
18445 # gcc leaves a trailing carriage return which upsets mingw
18446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18449 esac
18450 case $ac_prog in
18451 # Accept absolute paths.
18452 [\\/]* | ?:[\\/]*)
18453 re_direlt='/[^/][^/]*/\.\./'
18454 # Canonicalize the pathname of ld
18455 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18457 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18458 done
18459 test -z "$LD" && LD="$ac_prog"
18462 # If it fails, then pretend we aren't using GCC.
18463 ac_prog=ld
18466 # If it is relative, then search for the first ld in PATH.
18467 with_gnu_ld=unknown
18469 esac
18470 elif test "$with_gnu_ld" = yes; then
18471 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18472 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18473 else
18474 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18475 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18477 if test "${lt_cv_path_LD+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480 if test -z "$LD"; then
18481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18482 for ac_dir in $PATH; do
18483 IFS="$lt_save_ifs"
18484 test -z "$ac_dir" && ac_dir=.
18485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18486 lt_cv_path_LD="$ac_dir/$ac_prog"
18487 # Check to see if the program is GNU ld. I'd rather use --version,
18488 # but apparently some variants of GNU ld only accept -v.
18489 # Break only if it was the GNU/non-GNU ld that we prefer.
18490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18491 *GNU* | *'with BFD'*)
18492 test "$with_gnu_ld" != no && break
18495 test "$with_gnu_ld" != yes && break
18497 esac
18499 done
18500 IFS="$lt_save_ifs"
18501 else
18502 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18506 LD="$lt_cv_path_LD"
18507 if test -n "$LD"; then
18508 { echo "$as_me:$LINENO: result: $LD" >&5
18509 echo "${ECHO_T}$LD" >&6; }
18510 else
18511 { echo "$as_me:$LINENO: result: no" >&5
18512 echo "${ECHO_T}no" >&6; }
18514 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18515 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18516 { (exit 1); exit 1; }; }
18517 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18518 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18519 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18520 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 else
18522 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18523 case `$LD -v 2>&1 </dev/null` in
18524 *GNU* | *'with BFD'*)
18525 lt_cv_prog_gnu_ld=yes
18528 lt_cv_prog_gnu_ld=no
18530 esac
18532 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18533 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18534 with_gnu_ld=$lt_cv_prog_gnu_ld
18538 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18539 # archiving commands below assume that GNU ld is being used.
18540 if test "$with_gnu_ld" = yes; then
18541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18542 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'
18544 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18547 # If archive_cmds runs LD, not CC, wlarc should be empty
18548 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18549 # investigate it a little bit more. (MM)
18550 wlarc='${wl}'
18552 # ancient GNU ld didn't support --whole-archive et. al.
18553 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18554 grep 'no-whole-archive' > /dev/null; then
18555 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18556 else
18557 whole_archive_flag_spec_CXX=
18559 else
18560 with_gnu_ld=no
18561 wlarc=
18563 # A generic and very simple default shared library creation
18564 # command for GNU C++ for the case where it uses the native
18565 # linker, instead of GNU ld. If possible, this setting should
18566 # overridden to take advantage of the native linker features on
18567 # the platform it is being used on.
18568 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18571 # Commands to make compiler produce verbose output that lists
18572 # what "hidden" libraries, object files and flags are used when
18573 # linking a shared library.
18574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18576 else
18577 GXX=no
18578 with_gnu_ld=no
18579 wlarc=
18582 # PORTME: fill in a description of your system's C++ link characteristics
18583 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18584 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18585 ld_shlibs_CXX=yes
18586 case $host_os in
18587 aix3*)
18588 # FIXME: insert proper C++ library support
18589 ld_shlibs_CXX=no
18591 aix4* | aix5*)
18592 if test "$host_cpu" = ia64; then
18593 # On IA64, the linker does run time linking by default, so we don't
18594 # have to do anything special.
18595 aix_use_runtimelinking=no
18596 exp_sym_flag='-Bexport'
18597 no_entry_flag=""
18598 else
18599 aix_use_runtimelinking=no
18601 # Test if we are trying to use run time linking or normal
18602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18603 # need to do runtime linking.
18604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18605 for ld_flag in $LDFLAGS; do
18606 case $ld_flag in
18607 *-brtl*)
18608 aix_use_runtimelinking=yes
18609 break
18611 esac
18612 done
18614 esac
18616 exp_sym_flag='-bexport'
18617 no_entry_flag='-bnoentry'
18620 # When large executables or shared objects are built, AIX ld can
18621 # have problems creating the table of contents. If linking a library
18622 # or program results in "error TOC overflow" add -mminimal-toc to
18623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18626 archive_cmds_CXX=''
18627 hardcode_direct_CXX=yes
18628 hardcode_libdir_separator_CXX=':'
18629 link_all_deplibs_CXX=yes
18631 if test "$GXX" = yes; then
18632 case $host_os in aix4.[012]|aix4.[012].*)
18633 # We only want to do this on AIX 4.2 and lower, the check
18634 # below for broken collect2 doesn't work under 4.3+
18635 collect2name=`${CC} -print-prog-name=collect2`
18636 if test -f "$collect2name" && \
18637 strings "$collect2name" | grep resolve_lib_name >/dev/null
18638 then
18639 # We have reworked collect2
18640 hardcode_direct_CXX=yes
18641 else
18642 # We have old collect2
18643 hardcode_direct_CXX=unsupported
18644 # It fails to find uninstalled libraries when the uninstalled
18645 # path is not listed in the libpath. Setting hardcode_minus_L
18646 # to unsupported forces relinking
18647 hardcode_minus_L_CXX=yes
18648 hardcode_libdir_flag_spec_CXX='-L$libdir'
18649 hardcode_libdir_separator_CXX=
18652 esac
18653 shared_flag='-shared'
18654 if test "$aix_use_runtimelinking" = yes; then
18655 shared_flag="$shared_flag "'${wl}-G'
18657 else
18658 # not using gcc
18659 if test "$host_cpu" = ia64; then
18660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18661 # chokes on -Wl,-G. The following line is correct:
18662 shared_flag='-G'
18663 else
18664 if test "$aix_use_runtimelinking" = yes; then
18665 shared_flag='${wl}-G'
18666 else
18667 shared_flag='${wl}-bM:SRE'
18672 # It seems that -bexpall does not export symbols beginning with
18673 # underscore (_), so it is better to generate a list of symbols to export.
18674 always_export_symbols_CXX=yes
18675 if test "$aix_use_runtimelinking" = yes; then
18676 # Warning - without using the other runtime loading flags (-brtl),
18677 # -berok will link without error, but may produce a broken library.
18678 allow_undefined_flag_CXX='-berok'
18679 # Determine the default libpath from the value encoded in an empty executable.
18680 cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h. */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18688 main ()
18692 return 0;
18694 _ACEOF
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (ac_try="$ac_link"
18697 case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_link") 2>conftest.er1
18703 ac_status=$?
18704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18713 esac
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest$ac_exeext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18730 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18732 # Check for a 64-bit object if we didn't find anything.
18733 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; }
18734 }'`; fi
18735 else
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18742 rm -f core conftest.err conftest.$ac_objext \
18743 conftest$ac_exeext conftest.$ac_ext
18744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18746 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18748 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"
18749 else
18750 if test "$host_cpu" = ia64; then
18751 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18752 allow_undefined_flag_CXX="-z nodefs"
18753 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"
18754 else
18755 # Determine the default libpath from the value encoded in an empty executable.
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18764 main ()
18768 return 0;
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18779 ac_status=$?
18780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18808 # Check for a 64-bit object if we didn't find anything.
18809 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; }
18810 }'`; fi
18811 else
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18818 rm -f core conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
18820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18823 # Warning - without using the other run time loading flags,
18824 # -berok will link without error, but may produce a broken library.
18825 no_undefined_flag_CXX=' ${wl}-bernotok'
18826 allow_undefined_flag_CXX=' ${wl}-berok'
18827 # Exported symbols can be pulled into shared objects from archives
18828 whole_archive_flag_spec_CXX='$convenience'
18829 archive_cmds_need_lc_CXX=yes
18830 # This is similar to how AIX traditionally builds its shared libraries.
18831 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'
18836 beos*)
18837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18838 allow_undefined_flag_CXX=unsupported
18839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18840 # support --undefined. This deserves some investigation. FIXME
18841 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18842 else
18843 ld_shlibs_CXX=no
18847 chorus*)
18848 case $cc_basename in
18850 # FIXME: insert proper C++ library support
18851 ld_shlibs_CXX=no
18853 esac
18856 cygwin* | mingw* | pw32*)
18857 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18858 # as there is no search path for DLLs.
18859 hardcode_libdir_flag_spec_CXX='-L$libdir'
18860 allow_undefined_flag_CXX=unsupported
18861 always_export_symbols_CXX=no
18862 enable_shared_with_static_runtimes_CXX=yes
18864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18865 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'
18866 # If the export-symbols file already is a .def file (1st line
18867 # is EXPORTS), use it as is; otherwise, prepend...
18868 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18869 cp $export_symbols $output_objdir/$soname.def;
18870 else
18871 echo EXPORTS > $output_objdir/$soname.def;
18872 cat $export_symbols >> $output_objdir/$soname.def;
18874 $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'
18875 else
18876 ld_shlibs_CXX=no
18879 darwin* | rhapsody*)
18880 case $host_os in
18881 rhapsody* | darwin1.[012])
18882 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18884 *) # Darwin 1.3 on
18885 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18886 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18887 else
18888 case ${MACOSX_DEPLOYMENT_TARGET} in
18889 10.[012])
18890 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18892 10.*)
18893 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18895 esac
18898 esac
18899 archive_cmds_need_lc_CXX=no
18900 hardcode_direct_CXX=no
18901 hardcode_automatic_CXX=yes
18902 hardcode_shlibpath_var_CXX=unsupported
18903 whole_archive_flag_spec_CXX=''
18904 link_all_deplibs_CXX=yes
18906 if test "$GXX" = yes ; then
18907 lt_int_apple_cc_single_mod=no
18908 output_verbose_link_cmd='echo'
18909 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18910 lt_int_apple_cc_single_mod=yes
18912 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18913 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18914 else
18915 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'
18917 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18920 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}'
18921 else
18922 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}'
18924 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}'
18925 else
18926 case $cc_basename in
18927 xlc*)
18928 output_verbose_link_cmd='echo'
18929 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'
18930 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18932 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}'
18933 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}'
18936 ld_shlibs_CXX=no
18938 esac
18942 dgux*)
18943 case $cc_basename in
18944 ec++*)
18945 # FIXME: insert proper C++ library support
18946 ld_shlibs_CXX=no
18948 ghcx*)
18949 # Green Hills C++ Compiler
18950 # FIXME: insert proper C++ library support
18951 ld_shlibs_CXX=no
18954 # FIXME: insert proper C++ library support
18955 ld_shlibs_CXX=no
18957 esac
18959 freebsd[12]*)
18960 # C++ shared libraries reported to be fairly broken before switch to ELF
18961 ld_shlibs_CXX=no
18963 freebsd-elf*)
18964 archive_cmds_need_lc_CXX=no
18966 freebsd* | kfreebsd*-gnu | dragonfly*)
18967 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18968 # conventions
18969 ld_shlibs_CXX=yes
18971 gnu*)
18973 hpux9*)
18974 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18975 hardcode_libdir_separator_CXX=:
18976 export_dynamic_flag_spec_CXX='${wl}-E'
18977 hardcode_direct_CXX=yes
18978 hardcode_minus_L_CXX=yes # Not in the search PATH,
18979 # but as the default
18980 # location of the library.
18982 case $cc_basename in
18983 CC*)
18984 # FIXME: insert proper C++ library support
18985 ld_shlibs_CXX=no
18987 aCC*)
18988 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'
18989 # Commands to make compiler produce verbose output that lists
18990 # what "hidden" libraries, object files and flags are used when
18991 # linking a shared library.
18993 # There doesn't appear to be a way to prevent this compiler from
18994 # explicitly linking system object files so we need to strip them
18995 # from the output so that they don't get included in the library
18996 # dependencies.
18997 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'
19000 if test "$GXX" = yes; then
19001 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'
19002 else
19003 # FIXME: insert proper C++ library support
19004 ld_shlibs_CXX=no
19007 esac
19009 hpux10*|hpux11*)
19010 if test $with_gnu_ld = no; then
19011 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19012 hardcode_libdir_separator_CXX=:
19014 case $host_cpu in
19015 hppa*64*|ia64*)
19016 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19019 export_dynamic_flag_spec_CXX='${wl}-E'
19021 esac
19023 case $host_cpu in
19024 hppa*64*|ia64*)
19025 hardcode_direct_CXX=no
19026 hardcode_shlibpath_var_CXX=no
19029 hardcode_direct_CXX=yes
19030 hardcode_minus_L_CXX=yes # Not in the search PATH,
19031 # but as the default
19032 # location of the library.
19034 esac
19036 case $cc_basename in
19037 CC*)
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19041 aCC*)
19042 case $host_cpu in
19043 hppa*64*)
19044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19046 ia64*)
19047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19052 esac
19053 # Commands to make compiler produce verbose output that lists
19054 # what "hidden" libraries, object files and flags are used when
19055 # linking a shared library.
19057 # There doesn't appear to be a way to prevent this compiler from
19058 # explicitly linking system object files so we need to strip them
19059 # from the output so that they don't get included in the library
19060 # dependencies.
19061 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'
19064 if test "$GXX" = yes; then
19065 if test $with_gnu_ld = no; then
19066 case $host_cpu in
19067 hppa*64*)
19068 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19070 ia64*)
19071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 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'
19076 esac
19078 else
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19083 esac
19085 interix3*)
19086 hardcode_direct_CXX=no
19087 hardcode_shlibpath_var_CXX=no
19088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19089 export_dynamic_flag_spec_CXX='${wl}-E'
19090 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19091 # Instead, shared libraries are loaded at an image base (0x10000000 by
19092 # default) and relocated if they conflict, which is a slow very memory
19093 # consuming and fragmenting process. To avoid this, we pick a random,
19094 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19095 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19096 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'
19097 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'
19099 irix5* | irix6*)
19100 case $cc_basename in
19101 CC*)
19102 # SGI C++
19103 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'
19105 # Archives containing C++ object files must be created using
19106 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19107 # necessary to make sure instantiated templates are included
19108 # in the archive.
19109 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19112 if test "$GXX" = yes; then
19113 if test "$with_gnu_ld" = no; then
19114 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'
19115 else
19116 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'
19119 link_all_deplibs_CXX=yes
19121 esac
19122 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19123 hardcode_libdir_separator_CXX=:
19125 linux*)
19126 case $cc_basename in
19127 KCC*)
19128 # Kuck and Associates, Inc. (KAI) C++ Compiler
19130 # KCC will only create a shared library if the output file
19131 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19132 # to its proper name (with version) after linking.
19133 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'
19134 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'
19135 # Commands to make compiler produce verbose output that lists
19136 # what "hidden" libraries, object files and flags are used when
19137 # linking a shared library.
19139 # There doesn't appear to be a way to prevent this compiler from
19140 # explicitly linking system object files so we need to strip them
19141 # from the output so that they don't get included in the library
19142 # dependencies.
19143 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'
19145 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19148 # Archives containing C++ object files must be created using
19149 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19150 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19152 icpc*)
19153 # Intel C++
19154 with_gnu_ld=yes
19155 # version 8.0 and above of icpc choke on multiply defined symbols
19156 # if we add $predep_objects and $postdep_objects, however 7.1 and
19157 # earlier do not add the objects themselves.
19158 case `$CC -V 2>&1` in
19159 *"Version 7."*)
19160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161 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'
19163 *) # Version 8.0 or newer
19164 tmp_idyn=
19165 case $host_cpu in
19166 ia64*) tmp_idyn=' -i_dynamic';;
19167 esac
19168 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19169 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'
19171 esac
19172 archive_cmds_need_lc_CXX=no
19173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19175 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19177 pgCC*)
19178 # Portland Group C++ compiler
19179 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19180 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'
19182 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19184 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'
19186 cxx*)
19187 # Compaq C++
19188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19189 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'
19191 runpath_var=LD_RUN_PATH
19192 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19193 hardcode_libdir_separator_CXX=:
19195 # Commands to make compiler produce verbose output that lists
19196 # what "hidden" libraries, object files and flags are used when
19197 # linking a shared library.
19199 # There doesn't appear to be a way to prevent this compiler from
19200 # explicitly linking system object files so we need to strip them
19201 # from the output so that they don't get included in the library
19202 # dependencies.
19203 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'
19205 esac
19207 lynxos*)
19208 # FIXME: insert proper C++ library support
19209 ld_shlibs_CXX=no
19211 m88k*)
19212 # FIXME: insert proper C++ library support
19213 ld_shlibs_CXX=no
19215 mvs*)
19216 case $cc_basename in
19217 cxx*)
19218 # FIXME: insert proper C++ library support
19219 ld_shlibs_CXX=no
19222 # FIXME: insert proper C++ library support
19223 ld_shlibs_CXX=no
19225 esac
19227 netbsd*)
19228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19229 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19230 wlarc=
19231 hardcode_libdir_flag_spec_CXX='-R$libdir'
19232 hardcode_direct_CXX=yes
19233 hardcode_shlibpath_var_CXX=no
19235 # Workaround some broken pre-1.5 toolchains
19236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19238 openbsd2*)
19239 # C++ shared libraries are fairly broken
19240 ld_shlibs_CXX=no
19242 openbsd*)
19243 hardcode_direct_CXX=yes
19244 hardcode_shlibpath_var_CXX=no
19245 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19248 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19249 export_dynamic_flag_spec_CXX='${wl}-E'
19250 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19252 output_verbose_link_cmd='echo'
19254 osf3*)
19255 case $cc_basename in
19256 KCC*)
19257 # Kuck and Associates, Inc. (KAI) C++ Compiler
19259 # KCC will only create a shared library if the output file
19260 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19261 # to its proper name (with version) after linking.
19262 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'
19264 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19265 hardcode_libdir_separator_CXX=:
19267 # Archives containing C++ object files must be created using
19268 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19269 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19272 RCC*)
19273 # Rational C++ 2.4.1
19274 # FIXME: insert proper C++ library support
19275 ld_shlibs_CXX=no
19277 cxx*)
19278 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19279 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'
19281 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19282 hardcode_libdir_separator_CXX=:
19284 # Commands to make compiler produce verbose output that lists
19285 # what "hidden" libraries, object files and flags are used when
19286 # linking a shared library.
19288 # There doesn't appear to be a way to prevent this compiler from
19289 # explicitly linking system object files so we need to strip them
19290 # from the output so that they don't get included in the library
19291 # dependencies.
19292 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'
19295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19296 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19297 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'
19299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19300 hardcode_libdir_separator_CXX=:
19302 # Commands to make compiler produce verbose output that lists
19303 # what "hidden" libraries, object files and flags are used when
19304 # linking a shared library.
19305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19307 else
19308 # FIXME: insert proper C++ library support
19309 ld_shlibs_CXX=no
19312 esac
19314 osf4* | osf5*)
19315 case $cc_basename in
19316 KCC*)
19317 # Kuck and Associates, Inc. (KAI) C++ Compiler
19319 # KCC will only create a shared library if the output file
19320 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19321 # to its proper name (with version) after linking.
19322 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'
19324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19325 hardcode_libdir_separator_CXX=:
19327 # Archives containing C++ object files must be created using
19328 # the KAI C++ compiler.
19329 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19331 RCC*)
19332 # Rational C++ 2.4.1
19333 # FIXME: insert proper C++ library support
19334 ld_shlibs_CXX=no
19336 cxx*)
19337 allow_undefined_flag_CXX=' -expect_unresolved \*'
19338 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'
19339 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19340 echo "-hidden">> $lib.exp~
19341 $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~
19342 $rm $lib.exp'
19344 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19345 hardcode_libdir_separator_CXX=:
19347 # Commands to make compiler produce verbose output that lists
19348 # what "hidden" libraries, object files and flags are used when
19349 # linking a shared library.
19351 # There doesn't appear to be a way to prevent this compiler from
19352 # explicitly linking system object files so we need to strip them
19353 # from the output so that they don't get included in the library
19354 # dependencies.
19355 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'
19358 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19360 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'
19362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19363 hardcode_libdir_separator_CXX=:
19365 # Commands to make compiler produce verbose output that lists
19366 # what "hidden" libraries, object files and flags are used when
19367 # linking a shared library.
19368 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19370 else
19371 # FIXME: insert proper C++ library support
19372 ld_shlibs_CXX=no
19375 esac
19377 psos*)
19378 # FIXME: insert proper C++ library support
19379 ld_shlibs_CXX=no
19381 sunos4*)
19382 case $cc_basename in
19383 CC*)
19384 # Sun C++ 4.x
19385 # FIXME: insert proper C++ library support
19386 ld_shlibs_CXX=no
19388 lcc*)
19389 # Lucid
19390 # FIXME: insert proper C++ library support
19391 ld_shlibs_CXX=no
19394 # FIXME: insert proper C++ library support
19395 ld_shlibs_CXX=no
19397 esac
19399 solaris*)
19400 case $cc_basename in
19401 CC*)
19402 # Sun C++ 4.2, 5.x and Centerline C++
19403 archive_cmds_need_lc_CXX=yes
19404 no_undefined_flag_CXX=' -zdefs'
19405 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19406 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19407 $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'
19409 hardcode_libdir_flag_spec_CXX='-R$libdir'
19410 hardcode_shlibpath_var_CXX=no
19411 case $host_os in
19412 solaris2.[0-5] | solaris2.[0-5].*) ;;
19414 # The C++ compiler is used as linker so we must use $wl
19415 # flag to pass the commands to the underlying system
19416 # linker. We must also pass each convience library through
19417 # to the system linker between allextract/defaultextract.
19418 # The C++ compiler will combine linker options so we
19419 # cannot just pass the convience library names through
19420 # without $wl.
19421 # Supported since Solaris 2.6 (maybe 2.5.1?)
19422 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'
19424 esac
19425 link_all_deplibs_CXX=yes
19427 output_verbose_link_cmd='echo'
19429 # Archives containing C++ object files must be created using
19430 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19431 # necessary to make sure instantiated templates are included
19432 # in the archive.
19433 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19435 gcx*)
19436 # Green Hills C++ Compiler
19437 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19439 # The C++ compiler must be used to create the archive.
19440 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19443 # GNU C++ compiler with Solaris linker
19444 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19445 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19446 if $CC --version | grep -v '^2\.7' > /dev/null; then
19447 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19448 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19449 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19451 # Commands to make compiler produce verbose output that lists
19452 # what "hidden" libraries, object files and flags are used when
19453 # linking a shared library.
19454 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19455 else
19456 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19457 # platform.
19458 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19459 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19460 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19462 # Commands to make compiler produce verbose output that lists
19463 # what "hidden" libraries, object files and flags are used when
19464 # linking a shared library.
19465 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19468 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19471 esac
19473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19474 no_undefined_flag_CXX='${wl}-z,text'
19475 archive_cmds_need_lc_CXX=no
19476 hardcode_shlibpath_var_CXX=no
19477 runpath_var='LD_RUN_PATH'
19479 case $cc_basename in
19480 CC*)
19481 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19485 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19486 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19488 esac
19490 sysv5* | sco3.2v5* | sco5v6*)
19491 # Note: We can NOT use -z defs as we might desire, because we do not
19492 # link with -lc, and that would cause any symbols used from libc to
19493 # always be unresolved, which means just about no library would
19494 # ever link correctly. If we're not using GNU ld we use -z text
19495 # though, which does catch some bad symbols but isn't as heavy-handed
19496 # as -z defs.
19497 # For security reasons, it is highly recommended that you always
19498 # use absolute paths for naming shared libraries, and exclude the
19499 # DT_RUNPATH tag from executables and libraries. But doing so
19500 # requires that you compile everything twice, which is a pain.
19501 # So that behaviour is only enabled if SCOABSPATH is set to a
19502 # non-empty value in the environment. Most likely only useful for
19503 # creating official distributions of packages.
19504 # This is a hack until libtool officially supports absolute path
19505 # names for shared libraries.
19506 no_undefined_flag_CXX='${wl}-z,text'
19507 allow_undefined_flag_CXX='${wl}-z,nodefs'
19508 archive_cmds_need_lc_CXX=no
19509 hardcode_shlibpath_var_CXX=no
19510 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19511 hardcode_libdir_separator_CXX=':'
19512 link_all_deplibs_CXX=yes
19513 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19514 runpath_var='LD_RUN_PATH'
19516 case $cc_basename in
19517 CC*)
19518 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19522 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19523 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19525 esac
19527 tandem*)
19528 case $cc_basename in
19529 NCC*)
19530 # NonStop-UX NCC 3.20
19531 # FIXME: insert proper C++ library support
19532 ld_shlibs_CXX=no
19535 # FIXME: insert proper C++ library support
19536 ld_shlibs_CXX=no
19538 esac
19540 vxworks*)
19541 # FIXME: insert proper C++ library support
19542 ld_shlibs_CXX=no
19545 # FIXME: insert proper C++ library support
19546 ld_shlibs_CXX=no
19548 esac
19549 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19550 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19551 test "$ld_shlibs_CXX" = no && can_build_shared=no
19553 GCC_CXX="$GXX"
19554 LD_CXX="$LD"
19557 cat > conftest.$ac_ext <<EOF
19558 class Foo
19560 public:
19561 Foo (void) { a = 0; }
19562 private:
19563 int a;
19567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568 (eval $ac_compile) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; then
19572 # Parse the compiler output and extract the necessary
19573 # objects, libraries and library flags.
19575 # Sentinel used to keep track of whether or not we are before
19576 # the conftest object file.
19577 pre_test_object_deps_done=no
19579 # The `*' in the case matches for architectures that use `case' in
19580 # $output_verbose_cmd can trigger glob expansion during the loop
19581 # eval without this substitution.
19582 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19584 for p in `eval $output_verbose_link_cmd`; do
19585 case $p in
19587 -L* | -R* | -l*)
19588 # Some compilers place space between "-{L,R}" and the path.
19589 # Remove the space.
19590 if test $p = "-L" \
19591 || test $p = "-R"; then
19592 prev=$p
19593 continue
19594 else
19595 prev=
19598 if test "$pre_test_object_deps_done" = no; then
19599 case $p in
19600 -L* | -R*)
19601 # Internal compiler library paths should come after those
19602 # provided the user. The postdeps already come after the
19603 # user supplied libs so there is no need to process them.
19604 if test -z "$compiler_lib_search_path_CXX"; then
19605 compiler_lib_search_path_CXX="${prev}${p}"
19606 else
19607 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19610 # The "-l" case would never come before the object being
19611 # linked, so don't bother handling this case.
19612 esac
19613 else
19614 if test -z "$postdeps_CXX"; then
19615 postdeps_CXX="${prev}${p}"
19616 else
19617 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19622 *.$objext)
19623 # This assumes that the test object file only shows up
19624 # once in the compiler output.
19625 if test "$p" = "conftest.$objext"; then
19626 pre_test_object_deps_done=yes
19627 continue
19630 if test "$pre_test_object_deps_done" = no; then
19631 if test -z "$predep_objects_CXX"; then
19632 predep_objects_CXX="$p"
19633 else
19634 predep_objects_CXX="$predep_objects_CXX $p"
19636 else
19637 if test -z "$postdep_objects_CXX"; then
19638 postdep_objects_CXX="$p"
19639 else
19640 postdep_objects_CXX="$postdep_objects_CXX $p"
19645 *) ;; # Ignore the rest.
19647 esac
19648 done
19650 # Clean up.
19651 rm -f a.out a.exe
19652 else
19653 echo "libtool.m4: error: problem compiling CXX test program"
19656 $rm -f confest.$objext
19658 # PORTME: override above test on systems where it is broken
19659 case $host_os in
19660 interix3*)
19661 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19662 # hack all around it, let's just trust "g++" to DTRT.
19663 predep_objects_CXX=
19664 postdep_objects_CXX=
19665 postdeps_CXX=
19668 solaris*)
19669 case $cc_basename in
19670 CC*)
19671 # Adding this requires a known-good setup of shared libraries for
19672 # Sun compiler versions before 5.6, else PIC objects from an old
19673 # archive will be linked into the output, leading to subtle bugs.
19674 postdeps_CXX='-lCstd -lCrun'
19676 esac
19678 esac
19681 case " $postdeps_CXX " in
19682 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19683 esac
19685 lt_prog_compiler_wl_CXX=
19686 lt_prog_compiler_pic_CXX=
19687 lt_prog_compiler_static_CXX=
19689 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19690 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19692 # C++ specific cases for pic, static, wl, etc.
19693 if test "$GXX" = yes; then
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 lt_prog_compiler_static_CXX='-static'
19697 case $host_os in
19698 aix*)
19699 # All AIX code is PIC.
19700 if test "$host_cpu" = ia64; then
19701 # AIX 5 now supports IA64 processor
19702 lt_prog_compiler_static_CXX='-Bstatic'
19705 amigaos*)
19706 # FIXME: we need at least 68020 code to build shared libraries, but
19707 # adding the `-m68020' flag to GCC prevents building anything better,
19708 # like `-m68040'.
19709 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19711 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19712 # PIC is the default for these OSes.
19714 mingw* | os2* | pw32*)
19715 # This hack is so that the source file can tell whether it is being
19716 # built for inclusion in a dll (and should export symbols for example).
19717 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19719 darwin* | rhapsody*)
19720 # PIC is the default on this platform
19721 # Common symbols not allowed in MH_DYLIB files
19722 lt_prog_compiler_pic_CXX='-fno-common'
19724 *djgpp*)
19725 # DJGPP does not support shared libraries at all
19726 lt_prog_compiler_pic_CXX=
19728 interix3*)
19729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19730 # Instead, we relocate shared libraries at runtime.
19732 sysv4*MP*)
19733 if test -d /usr/nec; then
19734 lt_prog_compiler_pic_CXX=-Kconform_pic
19737 hpux*)
19738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19739 # not for PA HP-UX.
19740 case $host_cpu in
19741 hppa*64*|ia64*)
19744 lt_prog_compiler_pic_CXX='-fPIC'
19746 esac
19749 lt_prog_compiler_pic_CXX='-fPIC'
19751 esac
19752 else
19753 case $host_os in
19754 aix4* | aix5*)
19755 # All AIX code is PIC.
19756 if test "$host_cpu" = ia64; then
19757 # AIX 5 now supports IA64 processor
19758 lt_prog_compiler_static_CXX='-Bstatic'
19759 else
19760 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19763 chorus*)
19764 case $cc_basename in
19765 cxch68*)
19766 # Green Hills C++ Compiler
19767 # _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"
19769 esac
19771 darwin*)
19772 # PIC is the default on this platform
19773 # Common symbols not allowed in MH_DYLIB files
19774 case $cc_basename in
19775 xlc*)
19776 lt_prog_compiler_pic_CXX='-qnocommon'
19777 lt_prog_compiler_wl_CXX='-Wl,'
19779 esac
19781 dgux*)
19782 case $cc_basename in
19783 ec++*)
19784 lt_prog_compiler_pic_CXX='-KPIC'
19786 ghcx*)
19787 # Green Hills C++ Compiler
19788 lt_prog_compiler_pic_CXX='-pic'
19792 esac
19794 freebsd* | kfreebsd*-gnu | dragonfly*)
19795 # FreeBSD uses GNU C++
19797 hpux9* | hpux10* | hpux11*)
19798 case $cc_basename in
19799 CC*)
19800 lt_prog_compiler_wl_CXX='-Wl,'
19801 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19802 if test "$host_cpu" != ia64; then
19803 lt_prog_compiler_pic_CXX='+Z'
19806 aCC*)
19807 lt_prog_compiler_wl_CXX='-Wl,'
19808 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19809 case $host_cpu in
19810 hppa*64*|ia64*)
19811 # +Z the default
19814 lt_prog_compiler_pic_CXX='+Z'
19816 esac
19820 esac
19822 interix*)
19823 # This is c89, which is MS Visual C++ (no shared libs)
19824 # Anyone wants to do a port?
19826 irix5* | irix6* | nonstopux*)
19827 case $cc_basename in
19828 CC*)
19829 lt_prog_compiler_wl_CXX='-Wl,'
19830 lt_prog_compiler_static_CXX='-non_shared'
19831 # CC pic flag -KPIC is the default.
19835 esac
19837 linux*)
19838 case $cc_basename in
19839 KCC*)
19840 # KAI C++ Compiler
19841 lt_prog_compiler_wl_CXX='--backend -Wl,'
19842 lt_prog_compiler_pic_CXX='-fPIC'
19844 icpc* | ecpc*)
19845 # Intel C++
19846 lt_prog_compiler_wl_CXX='-Wl,'
19847 lt_prog_compiler_pic_CXX='-KPIC'
19848 lt_prog_compiler_static_CXX='-static'
19850 pgCC*)
19851 # Portland Group C++ compiler.
19852 lt_prog_compiler_wl_CXX='-Wl,'
19853 lt_prog_compiler_pic_CXX='-fpic'
19854 lt_prog_compiler_static_CXX='-Bstatic'
19856 cxx*)
19857 # Compaq C++
19858 # Make sure the PIC flag is empty. It appears that all Alpha
19859 # Linux and Compaq Tru64 Unix objects are PIC.
19860 lt_prog_compiler_pic_CXX=
19861 lt_prog_compiler_static_CXX='-non_shared'
19865 esac
19867 lynxos*)
19869 m88k*)
19871 mvs*)
19872 case $cc_basename in
19873 cxx*)
19874 lt_prog_compiler_pic_CXX='-W c,exportall'
19878 esac
19880 netbsd*)
19882 osf3* | osf4* | osf5*)
19883 case $cc_basename in
19884 KCC*)
19885 lt_prog_compiler_wl_CXX='--backend -Wl,'
19887 RCC*)
19888 # Rational C++ 2.4.1
19889 lt_prog_compiler_pic_CXX='-pic'
19891 cxx*)
19892 # Digital/Compaq C++
19893 lt_prog_compiler_wl_CXX='-Wl,'
19894 # Make sure the PIC flag is empty. It appears that all Alpha
19895 # Linux and Compaq Tru64 Unix objects are PIC.
19896 lt_prog_compiler_pic_CXX=
19897 lt_prog_compiler_static_CXX='-non_shared'
19901 esac
19903 psos*)
19905 solaris*)
19906 case $cc_basename in
19907 CC*)
19908 # Sun C++ 4.2, 5.x and Centerline C++
19909 lt_prog_compiler_pic_CXX='-KPIC'
19910 lt_prog_compiler_static_CXX='-Bstatic'
19911 lt_prog_compiler_wl_CXX='-Qoption ld '
19913 gcx*)
19914 # Green Hills C++ Compiler
19915 lt_prog_compiler_pic_CXX='-PIC'
19919 esac
19921 sunos4*)
19922 case $cc_basename in
19923 CC*)
19924 # Sun C++ 4.x
19925 lt_prog_compiler_pic_CXX='-pic'
19926 lt_prog_compiler_static_CXX='-Bstatic'
19928 lcc*)
19929 # Lucid
19930 lt_prog_compiler_pic_CXX='-pic'
19934 esac
19936 tandem*)
19937 case $cc_basename in
19938 NCC*)
19939 # NonStop-UX NCC 3.20
19940 lt_prog_compiler_pic_CXX='-KPIC'
19944 esac
19946 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19947 case $cc_basename in
19948 CC*)
19949 lt_prog_compiler_wl_CXX='-Wl,'
19950 lt_prog_compiler_pic_CXX='-KPIC'
19951 lt_prog_compiler_static_CXX='-Bstatic'
19953 esac
19955 vxworks*)
19958 lt_prog_compiler_can_build_shared_CXX=no
19960 esac
19963 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19964 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19967 # Check to make sure the PIC flag actually works.
19969 if test -n "$lt_prog_compiler_pic_CXX"; then
19971 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19972 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19973 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976 lt_prog_compiler_pic_works_CXX=no
19977 ac_outfile=conftest.$ac_objext
19978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19979 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19980 # Insert the option either (1) after the last *FLAGS variable, or
19981 # (2) before a word containing "conftest.", or (3) at the end.
19982 # Note that $ac_compile itself does not contain backslashes and begins
19983 # with a dollar sign (not a hyphen), so the echo should work correctly.
19984 # The option is referenced via a variable to avoid confusing sed.
19985 lt_compile=`echo "$ac_compile" | $SED \
19986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19988 -e 's:$: $lt_compiler_flag:'`
19989 (eval echo "\"\$as_me:19989: $lt_compile\"" >&5)
19990 (eval "$lt_compile" 2>conftest.err)
19991 ac_status=$?
19992 cat conftest.err >&5
19993 echo "$as_me:19993: \$? = $ac_status" >&5
19994 if (exit $ac_status) && test -s "$ac_outfile"; then
19995 # The compiler can only warn and ignore the option if not recognized
19996 # So say no if there are warnings other than the usual output.
19997 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20000 lt_prog_compiler_pic_works_CXX=yes
20003 $rm conftest*
20006 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20007 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20009 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20010 case $lt_prog_compiler_pic_CXX in
20011 "" | " "*) ;;
20012 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20013 esac
20014 else
20015 lt_prog_compiler_pic_CXX=
20016 lt_prog_compiler_can_build_shared_CXX=no
20020 case $host_os in
20021 # For platforms which do not support PIC, -DPIC is meaningless:
20022 *djgpp*)
20023 lt_prog_compiler_pic_CXX=
20026 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20028 esac
20031 # Check to make sure the static flag actually works.
20033 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20034 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20035 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20036 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039 lt_prog_compiler_static_works_CXX=no
20040 save_LDFLAGS="$LDFLAGS"
20041 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20042 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20044 # The linker can only warn and ignore the option if not recognized
20045 # So say no if there are warnings
20046 if test -s conftest.err; then
20047 # Append any errors to the config.log.
20048 cat conftest.err 1>&5
20049 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20051 if diff conftest.exp conftest.er2 >/dev/null; then
20052 lt_prog_compiler_static_works_CXX=yes
20054 else
20055 lt_prog_compiler_static_works_CXX=yes
20058 $rm conftest*
20059 LDFLAGS="$save_LDFLAGS"
20062 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20063 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20065 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20067 else
20068 lt_prog_compiler_static_CXX=
20072 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20073 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20074 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077 lt_cv_prog_compiler_c_o_CXX=no
20078 $rm -r conftest 2>/dev/null
20079 mkdir conftest
20080 cd conftest
20081 mkdir out
20082 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20084 lt_compiler_flag="-o out/conftest2.$ac_objext"
20085 # Insert the option either (1) after the last *FLAGS variable, or
20086 # (2) before a word containing "conftest.", or (3) at the end.
20087 # Note that $ac_compile itself does not contain backslashes and begins
20088 # with a dollar sign (not a hyphen), so the echo should work correctly.
20089 lt_compile=`echo "$ac_compile" | $SED \
20090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20092 -e 's:$: $lt_compiler_flag:'`
20093 (eval echo "\"\$as_me:20093: $lt_compile\"" >&5)
20094 (eval "$lt_compile" 2>out/conftest.err)
20095 ac_status=$?
20096 cat out/conftest.err >&5
20097 echo "$as_me:20097: \$? = $ac_status" >&5
20098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20099 then
20100 # The compiler can only warn and ignore the option if not recognized
20101 # So say no if there are warnings
20102 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20105 lt_cv_prog_compiler_c_o_CXX=yes
20108 chmod u+w . 2>&5
20109 $rm conftest*
20110 # SGI C++ compiler will create directory out/ii_files/ for
20111 # template instantiation
20112 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20113 $rm out/* && rmdir out
20114 cd ..
20115 rmdir conftest
20116 $rm conftest*
20119 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20120 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20123 hard_links="nottested"
20124 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20125 # do not overwrite the value of need_locks provided by the user
20126 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20127 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20128 hard_links=yes
20129 $rm conftest*
20130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20131 touch conftest.a
20132 ln conftest.a conftest.b 2>&5 || hard_links=no
20133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20134 { echo "$as_me:$LINENO: result: $hard_links" >&5
20135 echo "${ECHO_T}$hard_links" >&6; }
20136 if test "$hard_links" = no; then
20137 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20138 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20139 need_locks=warn
20141 else
20142 need_locks=no
20145 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20146 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20149 case $host_os in
20150 aix4* | aix5*)
20151 # If we're using GNU nm, then we don't want the "-C" option.
20152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20154 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'
20155 else
20156 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'
20159 pw32*)
20160 export_symbols_cmds_CXX="$ltdll_cmds"
20162 cygwin* | mingw*)
20163 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'
20166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20168 esac
20170 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20171 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20172 test "$ld_shlibs_CXX" = no && can_build_shared=no
20175 # Do we need to explicitly link libc?
20177 case "x$archive_cmds_need_lc_CXX" in
20178 x|xyes)
20179 # Assume -lc should be added
20180 archive_cmds_need_lc_CXX=yes
20182 if test "$enable_shared" = yes && test "$GCC" = yes; then
20183 case $archive_cmds_CXX in
20184 *'~'*)
20185 # FIXME: we may have to deal with multi-command sequences.
20187 '$CC '*)
20188 # Test whether the compiler implicitly links with -lc since on some
20189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20190 # to ld, don't add -lc before -lgcc.
20191 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20193 $rm conftest*
20194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } 2>conftest.err; then
20201 soname=conftest
20202 lib=conftest
20203 libobjs=conftest.$ac_objext
20204 deplibs=
20205 wl=$lt_prog_compiler_wl_CXX
20206 pic_flag=$lt_prog_compiler_pic_CXX
20207 compiler_flags=-v
20208 linker_flags=-v
20209 verstring=
20210 output_objdir=.
20211 libname=conftest
20212 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20213 allow_undefined_flag_CXX=
20214 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20215 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }
20219 then
20220 archive_cmds_need_lc_CXX=no
20221 else
20222 archive_cmds_need_lc_CXX=yes
20224 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20225 else
20226 cat conftest.err 1>&5
20228 $rm conftest*
20229 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20230 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20232 esac
20235 esac
20237 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20238 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20239 library_names_spec=
20240 libname_spec='lib$name'
20241 soname_spec=
20242 shrext_cmds=".so"
20243 postinstall_cmds=
20244 postuninstall_cmds=
20245 finish_cmds=
20246 finish_eval=
20247 shlibpath_var=
20248 shlibpath_overrides_runpath=unknown
20249 version_type=none
20250 dynamic_linker="$host_os ld.so"
20251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20252 if test "$GCC" = yes; then
20253 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20254 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20255 # if the path contains ";" then we assume it to be the separator
20256 # otherwise default to the standard path separator (i.e. ":") - it is
20257 # assumed that no part of a normal pathname contains ";" but that should
20258 # okay in the real world where ";" in dirpaths is itself problematic.
20259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20260 else
20261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20263 else
20264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20266 need_lib_prefix=unknown
20267 hardcode_into_libs=no
20269 # when you set need_version to no, make sure it does not cause -set_version
20270 # flags to be left without arguments
20271 need_version=unknown
20273 case $host_os in
20274 aix3*)
20275 version_type=linux
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20277 shlibpath_var=LIBPATH
20279 # AIX 3 has no versioning support, so we append a major version to the name.
20280 soname_spec='${libname}${release}${shared_ext}$major'
20283 aix4* | aix5*)
20284 version_type=linux
20285 need_lib_prefix=no
20286 need_version=no
20287 hardcode_into_libs=yes
20288 if test "$host_cpu" = ia64; then
20289 # AIX 5 supports IA64
20290 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 else
20293 # With GCC up to 2.95.x, collect2 would create an import file
20294 # for dependence libraries. The import file would start with
20295 # the line `#! .'. This would cause the generated library to
20296 # depend on `.', always an invalid library. This was fixed in
20297 # development snapshots of GCC prior to 3.0.
20298 case $host_os in
20299 aix4 | aix4.[01] | aix4.[01].*)
20300 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20301 echo ' yes '
20302 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20304 else
20305 can_build_shared=no
20308 esac
20309 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20310 # soname into executable. Probably we can add versioning support to
20311 # collect2, so additional links can be useful in future.
20312 if test "$aix_use_runtimelinking" = yes; then
20313 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20314 # instead of lib<name>.a to let people know that these are not
20315 # typical AIX shared libraries.
20316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20317 else
20318 # We preserve .a as extension for shared libraries through AIX4.2
20319 # and later when we are not doing run time linking.
20320 library_names_spec='${libname}${release}.a $libname.a'
20321 soname_spec='${libname}${release}${shared_ext}$major'
20323 shlibpath_var=LIBPATH
20327 amigaos*)
20328 library_names_spec='$libname.ixlibrary $libname.a'
20329 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20330 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'
20333 beos*)
20334 library_names_spec='${libname}${shared_ext}'
20335 dynamic_linker="$host_os ld.so"
20336 shlibpath_var=LIBRARY_PATH
20339 bsdi[45]*)
20340 version_type=linux
20341 need_version=no
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20347 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20348 # the default ld.so.conf also contains /usr/contrib/lib and
20349 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20350 # libtool to hard-code these into programs
20353 cygwin* | mingw* | pw32*)
20354 version_type=windows
20355 shrext_cmds=".dll"
20356 need_version=no
20357 need_lib_prefix=no
20359 case $GCC,$host_os in
20360 yes,cygwin* | yes,mingw* | yes,pw32*)
20361 library_names_spec='$libname.dll.a'
20362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20363 postinstall_cmds='base_file=`basename \${file}`~
20364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20365 dldir=$destdir/`dirname \$dlpath`~
20366 test -d \$dldir || mkdir -p \$dldir~
20367 $install_prog $dir/$dlname \$dldir/$dlname~
20368 chmod a+x \$dldir/$dlname'
20369 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20370 dlpath=$dir/\$dldll~
20371 $rm \$dlpath'
20372 shlibpath_overrides_runpath=yes
20374 case $host_os in
20375 cygwin*)
20376 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20377 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20378 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20380 mingw*)
20381 # MinGW DLLs use traditional 'lib' prefix
20382 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20383 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20384 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20385 # It is most probably a Windows format PATH printed by
20386 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20387 # path with ; separators, and with drive letters. We can handle the
20388 # drive letters (cygwin fileutils understands them), so leave them,
20389 # especially as we might pass files found there to a mingw objdump,
20390 # which wouldn't understand a cygwinified path. Ahh.
20391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20392 else
20393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20396 pw32*)
20397 # pw32 DLLs use 'pw' prefix rather than 'lib'
20398 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20400 esac
20404 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20406 esac
20407 dynamic_linker='Win32 ld.exe'
20408 # FIXME: first we should search . and the directory the executable is in
20409 shlibpath_var=PATH
20412 darwin* | rhapsody*)
20413 dynamic_linker="$host_os dyld"
20414 version_type=darwin
20415 need_lib_prefix=no
20416 need_version=no
20417 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20418 soname_spec='${libname}${release}${major}$shared_ext'
20419 shlibpath_overrides_runpath=yes
20420 shlibpath_var=DYLD_LIBRARY_PATH
20421 shrext_cmds='.dylib'
20422 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20423 if test "$GCC" = yes; then
20424 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"`
20425 else
20426 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20428 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20431 dgux*)
20432 version_type=linux
20433 need_lib_prefix=no
20434 need_version=no
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 shlibpath_var=LD_LIBRARY_PATH
20440 freebsd1*)
20441 dynamic_linker=no
20444 kfreebsd*-gnu)
20445 version_type=linux
20446 need_lib_prefix=no
20447 need_version=no
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20449 soname_spec='${libname}${release}${shared_ext}$major'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=no
20452 hardcode_into_libs=yes
20453 dynamic_linker='GNU ld.so'
20456 freebsd* | dragonfly*)
20457 # DragonFly does not have aout. When/if they implement a new
20458 # versioning mechanism, adjust this.
20459 if test -x /usr/bin/objformat; then
20460 objformat=`/usr/bin/objformat`
20461 else
20462 case $host_os in
20463 freebsd[123]*) objformat=aout ;;
20464 *) objformat=elf ;;
20465 esac
20467 version_type=freebsd-$objformat
20468 case $version_type in
20469 freebsd-elf*)
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20471 need_version=no
20472 need_lib_prefix=no
20474 freebsd-*)
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20476 need_version=yes
20478 esac
20479 shlibpath_var=LD_LIBRARY_PATH
20480 case $host_os in
20481 freebsd2*)
20482 shlibpath_overrides_runpath=yes
20484 freebsd3.[01]* | freebsdelf3.[01]*)
20485 shlibpath_overrides_runpath=yes
20486 hardcode_into_libs=yes
20488 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20489 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20490 shlibpath_overrides_runpath=no
20491 hardcode_into_libs=yes
20493 freebsd*) # from 4.6 on
20494 shlibpath_overrides_runpath=yes
20495 hardcode_into_libs=yes
20497 esac
20500 gnu*)
20501 version_type=linux
20502 need_lib_prefix=no
20503 need_version=no
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20505 soname_spec='${libname}${release}${shared_ext}$major'
20506 shlibpath_var=LD_LIBRARY_PATH
20507 hardcode_into_libs=yes
20510 hpux9* | hpux10* | hpux11*)
20511 # Give a soname corresponding to the major version so that dld.sl refuses to
20512 # link against other versions.
20513 version_type=sunos
20514 need_lib_prefix=no
20515 need_version=no
20516 case $host_cpu in
20517 ia64*)
20518 shrext_cmds='.so'
20519 hardcode_into_libs=yes
20520 dynamic_linker="$host_os dld.so"
20521 shlibpath_var=LD_LIBRARY_PATH
20522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 if test "X$HPUX_IA64_MODE" = X32; then
20526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20527 else
20528 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20532 hppa*64*)
20533 shrext_cmds='.sl'
20534 hardcode_into_libs=yes
20535 dynamic_linker="$host_os dld.sl"
20536 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20544 shrext_cmds='.sl'
20545 dynamic_linker="$host_os dld.sl"
20546 shlibpath_var=SHLIB_PATH
20547 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549 soname_spec='${libname}${release}${shared_ext}$major'
20551 esac
20552 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20553 postinstall_cmds='chmod 555 $lib'
20556 interix3*)
20557 version_type=linux
20558 need_lib_prefix=no
20559 need_version=no
20560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20561 soname_spec='${libname}${release}${shared_ext}$major'
20562 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 shlibpath_overrides_runpath=no
20565 hardcode_into_libs=yes
20568 irix5* | irix6* | nonstopux*)
20569 case $host_os in
20570 nonstopux*) version_type=nonstopux ;;
20572 if test "$lt_cv_prog_gnu_ld" = yes; then
20573 version_type=linux
20574 else
20575 version_type=irix
20576 fi ;;
20577 esac
20578 need_lib_prefix=no
20579 need_version=no
20580 soname_spec='${libname}${release}${shared_ext}$major'
20581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20582 case $host_os in
20583 irix5* | nonstopux*)
20584 libsuff= shlibsuff=
20587 case $LD in # libtool.m4 will add one of these switches to LD
20588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20589 libsuff= shlibsuff= libmagic=32-bit;;
20590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20591 libsuff=32 shlibsuff=N32 libmagic=N32;;
20592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20593 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20594 *) libsuff= shlibsuff= libmagic=never-match;;
20595 esac
20597 esac
20598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20599 shlibpath_overrides_runpath=no
20600 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20601 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20602 hardcode_into_libs=yes
20605 # No shared lib support for Linux oldld, aout, or coff.
20606 linux*oldld* | linux*aout* | linux*coff*)
20607 dynamic_linker=no
20610 # This must be Linux ELF.
20611 linux*)
20612 version_type=linux
20613 need_lib_prefix=no
20614 need_version=no
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 soname_spec='${libname}${release}${shared_ext}$major'
20617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20618 shlibpath_var=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath=no
20620 # This implies no fast_install, which is unacceptable.
20621 # Some rework will be needed to allow for fast_install
20622 # before this can be enabled.
20623 hardcode_into_libs=yes
20625 # Append ld.so.conf contents to the search path
20626 if test -f /etc/ld.so.conf; then
20627 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' ' '`
20628 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20631 # We used to test for /lib/ld.so.1 and disable shared libraries on
20632 # powerpc, because MkLinux only supported shared libraries with the
20633 # GNU dynamic linker. Since this was broken with cross compilers,
20634 # most powerpc-linux boxes support dynamic linking these days and
20635 # people can always --disable-shared, the test was removed, and we
20636 # assume the GNU/Linux dynamic linker is in use.
20637 dynamic_linker='GNU/Linux ld.so'
20640 knetbsd*-gnu)
20641 version_type=linux
20642 need_lib_prefix=no
20643 need_version=no
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 shlibpath_overrides_runpath=no
20648 hardcode_into_libs=yes
20649 dynamic_linker='GNU ld.so'
20652 netbsd*)
20653 version_type=sunos
20654 need_lib_prefix=no
20655 need_version=no
20656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20659 dynamic_linker='NetBSD (a.out) ld.so'
20660 else
20661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20662 soname_spec='${libname}${release}${shared_ext}$major'
20663 dynamic_linker='NetBSD ld.elf_so'
20665 shlibpath_var=LD_LIBRARY_PATH
20666 shlibpath_overrides_runpath=yes
20667 hardcode_into_libs=yes
20670 newsos6)
20671 version_type=linux
20672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 shlibpath_overrides_runpath=yes
20677 nto-qnx*)
20678 version_type=linux
20679 need_lib_prefix=no
20680 need_version=no
20681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20682 soname_spec='${libname}${release}${shared_ext}$major'
20683 shlibpath_var=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath=yes
20687 openbsd*)
20688 version_type=sunos
20689 sys_lib_dlsearch_path_spec="/usr/lib"
20690 need_lib_prefix=no
20691 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20692 case $host_os in
20693 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20694 *) need_version=no ;;
20695 esac
20696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20698 shlibpath_var=LD_LIBRARY_PATH
20699 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20700 case $host_os in
20701 openbsd2.[89] | openbsd2.[89].*)
20702 shlibpath_overrides_runpath=no
20705 shlibpath_overrides_runpath=yes
20707 esac
20708 else
20709 shlibpath_overrides_runpath=yes
20713 os2*)
20714 libname_spec='$name'
20715 shrext_cmds=".dll"
20716 need_lib_prefix=no
20717 library_names_spec='$libname${shared_ext} $libname.a'
20718 dynamic_linker='OS/2 ld.exe'
20719 shlibpath_var=LIBPATH
20722 osf3* | osf4* | osf5*)
20723 version_type=osf
20724 need_lib_prefix=no
20725 need_version=no
20726 soname_spec='${libname}${release}${shared_ext}$major'
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 shlibpath_var=LD_LIBRARY_PATH
20729 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20730 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20733 solaris*)
20734 version_type=linux
20735 need_lib_prefix=no
20736 need_version=no
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20738 soname_spec='${libname}${release}${shared_ext}$major'
20739 shlibpath_var=LD_LIBRARY_PATH
20740 shlibpath_overrides_runpath=yes
20741 hardcode_into_libs=yes
20742 # ldd complains unless libraries are executable
20743 postinstall_cmds='chmod +x $lib'
20746 sunos4*)
20747 version_type=sunos
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20750 shlibpath_var=LD_LIBRARY_PATH
20751 shlibpath_overrides_runpath=yes
20752 if test "$with_gnu_ld" = yes; then
20753 need_lib_prefix=no
20755 need_version=yes
20758 sysv4 | sysv4.3*)
20759 version_type=linux
20760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20761 soname_spec='${libname}${release}${shared_ext}$major'
20762 shlibpath_var=LD_LIBRARY_PATH
20763 case $host_vendor in
20764 sni)
20765 shlibpath_overrides_runpath=no
20766 need_lib_prefix=no
20767 export_dynamic_flag_spec='${wl}-Blargedynsym'
20768 runpath_var=LD_RUN_PATH
20770 siemens)
20771 need_lib_prefix=no
20773 motorola)
20774 need_lib_prefix=no
20775 need_version=no
20776 shlibpath_overrides_runpath=no
20777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20779 esac
20782 sysv4*MP*)
20783 if test -d /usr/nec ;then
20784 version_type=linux
20785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20786 soname_spec='$libname${shared_ext}.$major'
20787 shlibpath_var=LD_LIBRARY_PATH
20791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20792 version_type=freebsd-elf
20793 need_lib_prefix=no
20794 need_version=no
20795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20796 soname_spec='${libname}${release}${shared_ext}$major'
20797 shlibpath_var=LD_LIBRARY_PATH
20798 hardcode_into_libs=yes
20799 if test "$with_gnu_ld" = yes; then
20800 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20801 shlibpath_overrides_runpath=no
20802 else
20803 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20804 shlibpath_overrides_runpath=yes
20805 case $host_os in
20806 sco3.2v5*)
20807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20809 esac
20811 sys_lib_dlsearch_path_spec='/usr/lib'
20814 uts4*)
20815 version_type=linux
20816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817 soname_spec='${libname}${release}${shared_ext}$major'
20818 shlibpath_var=LD_LIBRARY_PATH
20822 dynamic_linker=no
20824 esac
20825 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20826 echo "${ECHO_T}$dynamic_linker" >&6; }
20827 test "$dynamic_linker" = no && can_build_shared=no
20829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20830 if test "$GCC" = yes; then
20831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20834 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20835 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20836 hardcode_action_CXX=
20837 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20838 test -n "$runpath_var_CXX" || \
20839 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20841 # We can hardcode non-existant directories.
20842 if test "$hardcode_direct_CXX" != no &&
20843 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20844 # have to relink, otherwise we might link with an installed library
20845 # when we should be linking with a yet-to-be-installed one
20846 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20847 test "$hardcode_minus_L_CXX" != no; then
20848 # Linking always hardcodes the temporary library directory.
20849 hardcode_action_CXX=relink
20850 else
20851 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20852 hardcode_action_CXX=immediate
20854 else
20855 # We cannot hardcode anything, or else we can only hardcode existing
20856 # directories.
20857 hardcode_action_CXX=unsupported
20859 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20860 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20862 if test "$hardcode_action_CXX" = relink; then
20863 # Fast installation is not supported
20864 enable_fast_install=no
20865 elif test "$shlibpath_overrides_runpath" = yes ||
20866 test "$enable_shared" = no; then
20867 # Fast installation is not necessary
20868 enable_fast_install=needless
20872 # The else clause should only fire when bootstrapping the
20873 # libtool distribution, otherwise you forgot to ship ltmain.sh
20874 # with your package, and you will get complaints that there are
20875 # no rules to generate ltmain.sh.
20876 if test -f "$ltmain"; then
20877 # See if we are running on zsh, and set the options which allow our commands through
20878 # without removal of \ escapes.
20879 if test -n "${ZSH_VERSION+set}" ; then
20880 setopt NO_GLOB_SUBST
20882 # Now quote all the things that may contain metacharacters while being
20883 # careful not to overquote the AC_SUBSTed values. We take copies of the
20884 # variables and quote the copies for generation of the libtool script.
20885 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20886 SED SHELL STRIP \
20887 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20888 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20889 deplibs_check_method reload_flag reload_cmds need_locks \
20890 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20891 lt_cv_sys_global_symbol_to_c_name_address \
20892 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20893 old_postinstall_cmds old_postuninstall_cmds \
20894 compiler_CXX \
20895 CC_CXX \
20896 LD_CXX \
20897 lt_prog_compiler_wl_CXX \
20898 lt_prog_compiler_pic_CXX \
20899 lt_prog_compiler_static_CXX \
20900 lt_prog_compiler_no_builtin_flag_CXX \
20901 export_dynamic_flag_spec_CXX \
20902 thread_safe_flag_spec_CXX \
20903 whole_archive_flag_spec_CXX \
20904 enable_shared_with_static_runtimes_CXX \
20905 old_archive_cmds_CXX \
20906 old_archive_from_new_cmds_CXX \
20907 predep_objects_CXX \
20908 postdep_objects_CXX \
20909 predeps_CXX \
20910 postdeps_CXX \
20911 compiler_lib_search_path_CXX \
20912 archive_cmds_CXX \
20913 archive_expsym_cmds_CXX \
20914 postinstall_cmds_CXX \
20915 postuninstall_cmds_CXX \
20916 old_archive_from_expsyms_cmds_CXX \
20917 allow_undefined_flag_CXX \
20918 no_undefined_flag_CXX \
20919 export_symbols_cmds_CXX \
20920 hardcode_libdir_flag_spec_CXX \
20921 hardcode_libdir_flag_spec_ld_CXX \
20922 hardcode_libdir_separator_CXX \
20923 hardcode_automatic_CXX \
20924 module_cmds_CXX \
20925 module_expsym_cmds_CXX \
20926 lt_cv_prog_compiler_c_o_CXX \
20927 exclude_expsyms_CXX \
20928 include_expsyms_CXX; do
20930 case $var in
20931 old_archive_cmds_CXX | \
20932 old_archive_from_new_cmds_CXX | \
20933 archive_cmds_CXX | \
20934 archive_expsym_cmds_CXX | \
20935 module_cmds_CXX | \
20936 module_expsym_cmds_CXX | \
20937 old_archive_from_expsyms_cmds_CXX | \
20938 export_symbols_cmds_CXX | \
20939 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20940 postinstall_cmds | postuninstall_cmds | \
20941 old_postinstall_cmds | old_postuninstall_cmds | \
20942 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20943 # Double-quote double-evaled strings.
20944 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20949 esac
20950 done
20952 case $lt_echo in
20953 *'\$0 --fallback-echo"')
20954 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20956 esac
20958 cfgfile="$ofile"
20960 cat <<__EOF__ >> "$cfgfile"
20961 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20965 # Shell to use when invoking shell scripts.
20966 SHELL=$lt_SHELL
20968 # Whether or not to build shared libraries.
20969 build_libtool_libs=$enable_shared
20971 # Whether or not to build static libraries.
20972 build_old_libs=$enable_static
20974 # Whether or not to add -lc for building shared libraries.
20975 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20977 # Whether or not to disallow shared libs when runtime libs are static
20978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20980 # Whether or not to optimize for fast installation.
20981 fast_install=$enable_fast_install
20983 # The host system.
20984 host_alias=$host_alias
20985 host=$host
20986 host_os=$host_os
20988 # The build system.
20989 build_alias=$build_alias
20990 build=$build
20991 build_os=$build_os
20993 # An echo program that does not interpret backslashes.
20994 echo=$lt_echo
20996 # The archiver.
20997 AR=$lt_AR
20998 AR_FLAGS=$lt_AR_FLAGS
21000 # A C compiler.
21001 LTCC=$lt_LTCC
21003 # LTCC compiler flags.
21004 LTCFLAGS=$lt_LTCFLAGS
21006 # A language-specific compiler.
21007 CC=$lt_compiler_CXX
21009 # Is the compiler the GNU C compiler?
21010 with_gcc=$GCC_CXX
21012 # An ERE matcher.
21013 EGREP=$lt_EGREP
21015 # The linker used to build libraries.
21016 LD=$lt_LD_CXX
21018 # Whether we need hard or soft links.
21019 LN_S=$lt_LN_S
21021 # A BSD-compatible nm program.
21022 NM=$lt_NM
21024 # A symbol stripping program
21025 STRIP=$lt_STRIP
21027 # Used to examine libraries when file_magic_cmd begins "file"
21028 MAGIC_CMD=$MAGIC_CMD
21030 # Used on cygwin: DLL creation program.
21031 DLLTOOL="$DLLTOOL"
21033 # Used on cygwin: object dumper.
21034 OBJDUMP="$OBJDUMP"
21036 # Used on cygwin: assembler.
21037 AS="$AS"
21039 # The name of the directory that contains temporary libtool files.
21040 objdir=$objdir
21042 # How to create reloadable object files.
21043 reload_flag=$lt_reload_flag
21044 reload_cmds=$lt_reload_cmds
21046 # How to pass a linker flag through the compiler.
21047 wl=$lt_lt_prog_compiler_wl_CXX
21049 # Object file suffix (normally "o").
21050 objext="$ac_objext"
21052 # Old archive suffix (normally "a").
21053 libext="$libext"
21055 # Shared library suffix (normally ".so").
21056 shrext_cmds='$shrext_cmds'
21058 # Executable file suffix (normally "").
21059 exeext="$exeext"
21061 # Additional compiler flags for building library objects.
21062 pic_flag=$lt_lt_prog_compiler_pic_CXX
21063 pic_mode=$pic_mode
21065 # What is the maximum length of a command?
21066 max_cmd_len=$lt_cv_sys_max_cmd_len
21068 # Does compiler simultaneously support -c and -o options?
21069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21071 # Must we lock files when doing compilation?
21072 need_locks=$lt_need_locks
21074 # Do we need the lib prefix for modules?
21075 need_lib_prefix=$need_lib_prefix
21077 # Do we need a version for libraries?
21078 need_version=$need_version
21080 # Whether dlopen is supported.
21081 dlopen_support=$enable_dlopen
21083 # Whether dlopen of programs is supported.
21084 dlopen_self=$enable_dlopen_self
21086 # Whether dlopen of statically linked programs is supported.
21087 dlopen_self_static=$enable_dlopen_self_static
21089 # Compiler flag to prevent dynamic linking.
21090 link_static_flag=$lt_lt_prog_compiler_static_CXX
21092 # Compiler flag to turn off builtin functions.
21093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21095 # Compiler flag to allow reflexive dlopens.
21096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21098 # Compiler flag to generate shared objects directly from archives.
21099 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21101 # Compiler flag to generate thread-safe objects.
21102 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21104 # Library versioning type.
21105 version_type=$version_type
21107 # Format of library name prefix.
21108 libname_spec=$lt_libname_spec
21110 # List of archive names. First name is the real one, the rest are links.
21111 # The last name is the one that the linker finds with -lNAME.
21112 library_names_spec=$lt_library_names_spec
21114 # The coded name of the library, if different from the real name.
21115 soname_spec=$lt_soname_spec
21117 # Commands used to build and install an old-style archive.
21118 RANLIB=$lt_RANLIB
21119 old_archive_cmds=$lt_old_archive_cmds_CXX
21120 old_postinstall_cmds=$lt_old_postinstall_cmds
21121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21123 # Create an old-style archive from a shared archive.
21124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21126 # Create a temporary old-style archive to link instead of a shared archive.
21127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21129 # Commands used to build and install a shared archive.
21130 archive_cmds=$lt_archive_cmds_CXX
21131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21132 postinstall_cmds=$lt_postinstall_cmds
21133 postuninstall_cmds=$lt_postuninstall_cmds
21135 # Commands used to build a loadable module (assumed same as above if empty)
21136 module_cmds=$lt_module_cmds_CXX
21137 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21139 # Commands to strip libraries.
21140 old_striplib=$lt_old_striplib
21141 striplib=$lt_striplib
21143 # Dependencies to place before the objects being linked to create a
21144 # shared library.
21145 predep_objects=$lt_predep_objects_CXX
21147 # Dependencies to place after the objects being linked to create a
21148 # shared library.
21149 postdep_objects=$lt_postdep_objects_CXX
21151 # Dependencies to place before the objects being linked to create a
21152 # shared library.
21153 predeps=$lt_predeps_CXX
21155 # Dependencies to place after the objects being linked to create a
21156 # shared library.
21157 postdeps=$lt_postdeps_CXX
21159 # The library search path used internally by the compiler when linking
21160 # a shared library.
21161 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21163 # Method to check whether dependent libraries are shared objects.
21164 deplibs_check_method=$lt_deplibs_check_method
21166 # Command to use when deplibs_check_method == file_magic.
21167 file_magic_cmd=$lt_file_magic_cmd
21169 # Flag that allows shared libraries with undefined symbols to be built.
21170 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21172 # Flag that forces no undefined symbols.
21173 no_undefined_flag=$lt_no_undefined_flag_CXX
21175 # Commands used to finish a libtool library installation in a directory.
21176 finish_cmds=$lt_finish_cmds
21178 # Same as above, but a single script fragment to be evaled but not shown.
21179 finish_eval=$lt_finish_eval
21181 # Take the output of nm and produce a listing of raw symbols and C names.
21182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21184 # Transform the output of nm in a proper C declaration
21185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21187 # Transform the output of nm in a C name address pair
21188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21190 # This is the shared library runtime path variable.
21191 runpath_var=$runpath_var
21193 # This is the shared library path variable.
21194 shlibpath_var=$shlibpath_var
21196 # Is shlibpath searched before the hard-coded library search path?
21197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21199 # How to hardcode a shared library path into an executable.
21200 hardcode_action=$hardcode_action_CXX
21202 # Whether we should hardcode library paths into libraries.
21203 hardcode_into_libs=$hardcode_into_libs
21205 # Flag to hardcode \$libdir into a binary during linking.
21206 # This must work even if \$libdir does not exist.
21207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21209 # If ld is used when linking, flag to hardcode \$libdir into
21210 # a binary during linking. This must work even if \$libdir does
21211 # not exist.
21212 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21214 # Whether we need a single -rpath flag with a separated argument.
21215 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21217 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21218 # resulting binary.
21219 hardcode_direct=$hardcode_direct_CXX
21221 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21222 # resulting binary.
21223 hardcode_minus_L=$hardcode_minus_L_CXX
21225 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21226 # the resulting binary.
21227 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21229 # Set to yes if building a shared library automatically hardcodes DIR into the library
21230 # and all subsequent libraries and executables linked against it.
21231 hardcode_automatic=$hardcode_automatic_CXX
21233 # Variables whose values should be saved in libtool wrapper scripts and
21234 # restored at relink time.
21235 variables_saved_for_relink="$variables_saved_for_relink"
21237 # Whether libtool must link a program against all its dependency libraries.
21238 link_all_deplibs=$link_all_deplibs_CXX
21240 # Compile-time system search path for libraries
21241 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21243 # Run-time system search path for libraries
21244 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21246 # Fix the shell variable \$srcfile for the compiler.
21247 fix_srcfile_path="$fix_srcfile_path_CXX"
21249 # Set to yes if exported symbols are required.
21250 always_export_symbols=$always_export_symbols_CXX
21252 # The commands to list exported symbols.
21253 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21255 # The commands to extract the exported symbol list from a shared archive.
21256 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21258 # Symbols that should not be listed in the preloaded symbols.
21259 exclude_expsyms=$lt_exclude_expsyms_CXX
21261 # Symbols that must always be exported.
21262 include_expsyms=$lt_include_expsyms_CXX
21264 # ### END LIBTOOL TAG CONFIG: $tagname
21266 __EOF__
21269 else
21270 # If there is no Makefile yet, we rely on a make rule to execute
21271 # `config.status --recheck' to rerun these tests and create the
21272 # libtool script then.
21273 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21274 if test -f "$ltmain_in"; then
21275 test -f Makefile && make "$ltmain"
21280 ac_ext=c
21281 ac_cpp='$CPP $CPPFLAGS'
21282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21286 CC=$lt_save_CC
21287 LDCXX=$LD
21288 LD=$lt_save_LD
21289 GCC=$lt_save_GCC
21290 with_gnu_ldcxx=$with_gnu_ld
21291 with_gnu_ld=$lt_save_with_gnu_ld
21292 lt_cv_path_LDCXX=$lt_cv_path_LD
21293 lt_cv_path_LD=$lt_save_path_LD
21294 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21295 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21297 else
21298 tagname=""
21302 F77)
21303 if test -n "$F77" && test "X$F77" != "Xno"; then
21305 ac_ext=f
21306 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21307 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21311 archive_cmds_need_lc_F77=no
21312 allow_undefined_flag_F77=
21313 always_export_symbols_F77=no
21314 archive_expsym_cmds_F77=
21315 export_dynamic_flag_spec_F77=
21316 hardcode_direct_F77=no
21317 hardcode_libdir_flag_spec_F77=
21318 hardcode_libdir_flag_spec_ld_F77=
21319 hardcode_libdir_separator_F77=
21320 hardcode_minus_L_F77=no
21321 hardcode_automatic_F77=no
21322 module_cmds_F77=
21323 module_expsym_cmds_F77=
21324 link_all_deplibs_F77=unknown
21325 old_archive_cmds_F77=$old_archive_cmds
21326 no_undefined_flag_F77=
21327 whole_archive_flag_spec_F77=
21328 enable_shared_with_static_runtimes_F77=no
21330 # Source file extension for f77 test sources.
21331 ac_ext=f
21333 # Object file extension for compiled f77 test sources.
21334 objext=o
21335 objext_F77=$objext
21337 # Code to be used in simple compile tests
21338 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21340 # Code to be used in simple link tests
21341 lt_simple_link_test_code=" program t\n end\n"
21343 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21345 # If no C compiler was specified, use CC.
21346 LTCC=${LTCC-"$CC"}
21348 # If no C compiler flags were specified, use CFLAGS.
21349 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21351 # Allow CC to be a program name with arguments.
21352 compiler=$CC
21355 # save warnings/boilerplate of simple test code
21356 ac_outfile=conftest.$ac_objext
21357 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21358 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21359 _lt_compiler_boilerplate=`cat conftest.err`
21360 $rm conftest*
21362 ac_outfile=conftest.$ac_objext
21363 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21364 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21365 _lt_linker_boilerplate=`cat conftest.err`
21366 $rm conftest*
21369 # Allow CC to be a program name with arguments.
21370 lt_save_CC="$CC"
21371 CC=${F77-"f77"}
21372 compiler=$CC
21373 compiler_F77=$CC
21374 for cc_temp in $compiler""; do
21375 case $cc_temp in
21376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21378 \-*) ;;
21379 *) break;;
21380 esac
21381 done
21382 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21385 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21386 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21387 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21388 echo "${ECHO_T}$can_build_shared" >&6; }
21390 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21391 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21392 test "$can_build_shared" = "no" && enable_shared=no
21394 # On AIX, shared libraries and static libraries use the same namespace, and
21395 # are all built from PIC.
21396 case $host_os in
21397 aix3*)
21398 test "$enable_shared" = yes && enable_static=no
21399 if test -n "$RANLIB"; then
21400 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21401 postinstall_cmds='$RANLIB $lib'
21404 aix4* | aix5*)
21405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21406 test "$enable_shared" = yes && enable_static=no
21409 esac
21410 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21411 echo "${ECHO_T}$enable_shared" >&6; }
21413 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21414 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21415 # Make sure either enable_shared or enable_static is yes.
21416 test "$enable_shared" = yes || enable_static=yes
21417 { echo "$as_me:$LINENO: result: $enable_static" >&5
21418 echo "${ECHO_T}$enable_static" >&6; }
21420 GCC_F77="$G77"
21421 LD_F77="$LD"
21423 lt_prog_compiler_wl_F77=
21424 lt_prog_compiler_pic_F77=
21425 lt_prog_compiler_static_F77=
21427 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21428 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21430 if test "$GCC" = yes; then
21431 lt_prog_compiler_wl_F77='-Wl,'
21432 lt_prog_compiler_static_F77='-static'
21434 case $host_os in
21435 aix*)
21436 # All AIX code is PIC.
21437 if test "$host_cpu" = ia64; then
21438 # AIX 5 now supports IA64 processor
21439 lt_prog_compiler_static_F77='-Bstatic'
21443 amigaos*)
21444 # FIXME: we need at least 68020 code to build shared libraries, but
21445 # adding the `-m68020' flag to GCC prevents building anything better,
21446 # like `-m68040'.
21447 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21450 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21451 # PIC is the default for these OSes.
21454 mingw* | pw32* | os2*)
21455 # This hack is so that the source file can tell whether it is being
21456 # built for inclusion in a dll (and should export symbols for example).
21457 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21460 darwin* | rhapsody*)
21461 # PIC is the default on this platform
21462 # Common symbols not allowed in MH_DYLIB files
21463 lt_prog_compiler_pic_F77='-fno-common'
21466 interix3*)
21467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21468 # Instead, we relocate shared libraries at runtime.
21471 msdosdjgpp*)
21472 # Just because we use GCC doesn't mean we suddenly get shared libraries
21473 # on systems that don't support them.
21474 lt_prog_compiler_can_build_shared_F77=no
21475 enable_shared=no
21478 sysv4*MP*)
21479 if test -d /usr/nec; then
21480 lt_prog_compiler_pic_F77=-Kconform_pic
21484 hpux*)
21485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21486 # not for PA HP-UX.
21487 case $host_cpu in
21488 hppa*64*|ia64*)
21489 # +Z the default
21492 lt_prog_compiler_pic_F77='-fPIC'
21494 esac
21498 lt_prog_compiler_pic_F77='-fPIC'
21500 esac
21501 else
21502 # PORTME Check for flag to pass linker flags through the system compiler.
21503 case $host_os in
21504 aix*)
21505 lt_prog_compiler_wl_F77='-Wl,'
21506 if test "$host_cpu" = ia64; then
21507 # AIX 5 now supports IA64 processor
21508 lt_prog_compiler_static_F77='-Bstatic'
21509 else
21510 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21513 darwin*)
21514 # PIC is the default on this platform
21515 # Common symbols not allowed in MH_DYLIB files
21516 case $cc_basename in
21517 xlc*)
21518 lt_prog_compiler_pic_F77='-qnocommon'
21519 lt_prog_compiler_wl_F77='-Wl,'
21521 esac
21524 mingw* | pw32* | os2*)
21525 # This hack is so that the source file can tell whether it is being
21526 # built for inclusion in a dll (and should export symbols for example).
21527 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21530 hpux9* | hpux10* | hpux11*)
21531 lt_prog_compiler_wl_F77='-Wl,'
21532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21533 # not for PA HP-UX.
21534 case $host_cpu in
21535 hppa*64*|ia64*)
21536 # +Z the default
21539 lt_prog_compiler_pic_F77='+Z'
21541 esac
21542 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21543 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21546 irix5* | irix6* | nonstopux*)
21547 lt_prog_compiler_wl_F77='-Wl,'
21548 # PIC (with -KPIC) is the default.
21549 lt_prog_compiler_static_F77='-non_shared'
21552 newsos6)
21553 lt_prog_compiler_pic_F77='-KPIC'
21554 lt_prog_compiler_static_F77='-Bstatic'
21557 linux*)
21558 case $cc_basename in
21559 icc* | ecc*)
21560 lt_prog_compiler_wl_F77='-Wl,'
21561 lt_prog_compiler_pic_F77='-KPIC'
21562 lt_prog_compiler_static_F77='-static'
21564 pgcc* | pgf77* | pgf90* | pgf95*)
21565 # Portland Group compilers (*not* the Pentium gcc compiler,
21566 # which looks to be a dead project)
21567 lt_prog_compiler_wl_F77='-Wl,'
21568 lt_prog_compiler_pic_F77='-fpic'
21569 lt_prog_compiler_static_F77='-Bstatic'
21571 ccc*)
21572 lt_prog_compiler_wl_F77='-Wl,'
21573 # All Alpha code is PIC.
21574 lt_prog_compiler_static_F77='-non_shared'
21576 esac
21579 osf3* | osf4* | osf5*)
21580 lt_prog_compiler_wl_F77='-Wl,'
21581 # All OSF/1 code is PIC.
21582 lt_prog_compiler_static_F77='-non_shared'
21585 solaris*)
21586 lt_prog_compiler_pic_F77='-KPIC'
21587 lt_prog_compiler_static_F77='-Bstatic'
21588 case $cc_basename in
21589 f77* | f90* | f95*)
21590 lt_prog_compiler_wl_F77='-Qoption ld ';;
21592 lt_prog_compiler_wl_F77='-Wl,';;
21593 esac
21596 sunos4*)
21597 lt_prog_compiler_wl_F77='-Qoption ld '
21598 lt_prog_compiler_pic_F77='-PIC'
21599 lt_prog_compiler_static_F77='-Bstatic'
21602 sysv4 | sysv4.2uw2* | sysv4.3*)
21603 lt_prog_compiler_wl_F77='-Wl,'
21604 lt_prog_compiler_pic_F77='-KPIC'
21605 lt_prog_compiler_static_F77='-Bstatic'
21608 sysv4*MP*)
21609 if test -d /usr/nec ;then
21610 lt_prog_compiler_pic_F77='-Kconform_pic'
21611 lt_prog_compiler_static_F77='-Bstatic'
21615 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21616 lt_prog_compiler_wl_F77='-Wl,'
21617 lt_prog_compiler_pic_F77='-KPIC'
21618 lt_prog_compiler_static_F77='-Bstatic'
21621 unicos*)
21622 lt_prog_compiler_wl_F77='-Wl,'
21623 lt_prog_compiler_can_build_shared_F77=no
21626 uts4*)
21627 lt_prog_compiler_pic_F77='-pic'
21628 lt_prog_compiler_static_F77='-Bstatic'
21632 lt_prog_compiler_can_build_shared_F77=no
21634 esac
21637 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21638 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21641 # Check to make sure the PIC flag actually works.
21643 if test -n "$lt_prog_compiler_pic_F77"; then
21645 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21646 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21647 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650 lt_prog_compiler_pic_works_F77=no
21651 ac_outfile=conftest.$ac_objext
21652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21653 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21654 # Insert the option either (1) after the last *FLAGS variable, or
21655 # (2) before a word containing "conftest.", or (3) at the end.
21656 # Note that $ac_compile itself does not contain backslashes and begins
21657 # with a dollar sign (not a hyphen), so the echo should work correctly.
21658 # The option is referenced via a variable to avoid confusing sed.
21659 lt_compile=`echo "$ac_compile" | $SED \
21660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21662 -e 's:$: $lt_compiler_flag:'`
21663 (eval echo "\"\$as_me:21663: $lt_compile\"" >&5)
21664 (eval "$lt_compile" 2>conftest.err)
21665 ac_status=$?
21666 cat conftest.err >&5
21667 echo "$as_me:21667: \$? = $ac_status" >&5
21668 if (exit $ac_status) && test -s "$ac_outfile"; then
21669 # The compiler can only warn and ignore the option if not recognized
21670 # So say no if there are warnings other than the usual output.
21671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21674 lt_prog_compiler_pic_works_F77=yes
21677 $rm conftest*
21680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21681 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21683 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21684 case $lt_prog_compiler_pic_F77 in
21685 "" | " "*) ;;
21686 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21687 esac
21688 else
21689 lt_prog_compiler_pic_F77=
21690 lt_prog_compiler_can_build_shared_F77=no
21694 case $host_os in
21695 # For platforms which do not support PIC, -DPIC is meaningless:
21696 *djgpp*)
21697 lt_prog_compiler_pic_F77=
21700 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21702 esac
21705 # Check to make sure the static flag actually works.
21707 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21708 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21709 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21710 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713 lt_prog_compiler_static_works_F77=no
21714 save_LDFLAGS="$LDFLAGS"
21715 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21716 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21718 # The linker can only warn and ignore the option if not recognized
21719 # So say no if there are warnings
21720 if test -s conftest.err; then
21721 # Append any errors to the config.log.
21722 cat conftest.err 1>&5
21723 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21725 if diff conftest.exp conftest.er2 >/dev/null; then
21726 lt_prog_compiler_static_works_F77=yes
21728 else
21729 lt_prog_compiler_static_works_F77=yes
21732 $rm conftest*
21733 LDFLAGS="$save_LDFLAGS"
21736 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21737 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21739 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21741 else
21742 lt_prog_compiler_static_F77=
21746 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21747 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21748 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751 lt_cv_prog_compiler_c_o_F77=no
21752 $rm -r conftest 2>/dev/null
21753 mkdir conftest
21754 cd conftest
21755 mkdir out
21756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21758 lt_compiler_flag="-o out/conftest2.$ac_objext"
21759 # Insert the option either (1) after the last *FLAGS variable, or
21760 # (2) before a word containing "conftest.", or (3) at the end.
21761 # Note that $ac_compile itself does not contain backslashes and begins
21762 # with a dollar sign (not a hyphen), so the echo should work correctly.
21763 lt_compile=`echo "$ac_compile" | $SED \
21764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21766 -e 's:$: $lt_compiler_flag:'`
21767 (eval echo "\"\$as_me:21767: $lt_compile\"" >&5)
21768 (eval "$lt_compile" 2>out/conftest.err)
21769 ac_status=$?
21770 cat out/conftest.err >&5
21771 echo "$as_me:21771: \$? = $ac_status" >&5
21772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21773 then
21774 # The compiler can only warn and ignore the option if not recognized
21775 # So say no if there are warnings
21776 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21779 lt_cv_prog_compiler_c_o_F77=yes
21782 chmod u+w . 2>&5
21783 $rm conftest*
21784 # SGI C++ compiler will create directory out/ii_files/ for
21785 # template instantiation
21786 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21787 $rm out/* && rmdir out
21788 cd ..
21789 rmdir conftest
21790 $rm conftest*
21793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21794 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21797 hard_links="nottested"
21798 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21799 # do not overwrite the value of need_locks provided by the user
21800 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21801 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21802 hard_links=yes
21803 $rm conftest*
21804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21805 touch conftest.a
21806 ln conftest.a conftest.b 2>&5 || hard_links=no
21807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21808 { echo "$as_me:$LINENO: result: $hard_links" >&5
21809 echo "${ECHO_T}$hard_links" >&6; }
21810 if test "$hard_links" = no; then
21811 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21812 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21813 need_locks=warn
21815 else
21816 need_locks=no
21819 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21820 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21822 runpath_var=
21823 allow_undefined_flag_F77=
21824 enable_shared_with_static_runtimes_F77=no
21825 archive_cmds_F77=
21826 archive_expsym_cmds_F77=
21827 old_archive_From_new_cmds_F77=
21828 old_archive_from_expsyms_cmds_F77=
21829 export_dynamic_flag_spec_F77=
21830 whole_archive_flag_spec_F77=
21831 thread_safe_flag_spec_F77=
21832 hardcode_libdir_flag_spec_F77=
21833 hardcode_libdir_flag_spec_ld_F77=
21834 hardcode_libdir_separator_F77=
21835 hardcode_direct_F77=no
21836 hardcode_minus_L_F77=no
21837 hardcode_shlibpath_var_F77=unsupported
21838 link_all_deplibs_F77=unknown
21839 hardcode_automatic_F77=no
21840 module_cmds_F77=
21841 module_expsym_cmds_F77=
21842 always_export_symbols_F77=no
21843 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21844 # include_expsyms should be a list of space-separated symbols to be *always*
21845 # included in the symbol list
21846 include_expsyms_F77=
21847 # exclude_expsyms can be an extended regexp of symbols to exclude
21848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21850 # as well as any symbol that contains `d'.
21851 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21853 # platforms (ab)use it in PIC code, but their linkers get confused if
21854 # the symbol is explicitly referenced. Since portable code cannot
21855 # rely on this symbol name, it's probably fine to never include it in
21856 # preloaded symbol tables.
21857 extract_expsyms_cmds=
21858 # Just being paranoid about ensuring that cc_basename is set.
21859 for cc_temp in $compiler""; do
21860 case $cc_temp in
21861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21863 \-*) ;;
21864 *) break;;
21865 esac
21866 done
21867 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21869 case $host_os in
21870 cygwin* | mingw* | pw32*)
21871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21872 # When not using gcc, we currently assume that we are using
21873 # Microsoft Visual C++.
21874 if test "$GCC" != yes; then
21875 with_gnu_ld=no
21878 interix*)
21879 # we just hope/assume this is gcc and not c89 (= MSVC++)
21880 with_gnu_ld=yes
21882 openbsd*)
21883 with_gnu_ld=no
21885 esac
21887 ld_shlibs_F77=yes
21888 if test "$with_gnu_ld" = yes; then
21889 # If archive_cmds runs LD, not CC, wlarc should be empty
21890 wlarc='${wl}'
21892 # Set some defaults for GNU ld with shared library support. These
21893 # are reset later if shared libraries are not supported. Putting them
21894 # here allows them to be overridden if necessary.
21895 runpath_var=LD_RUN_PATH
21896 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21897 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21898 # ancient GNU ld didn't support --whole-archive et. al.
21899 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21900 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21901 else
21902 whole_archive_flag_spec_F77=
21904 supports_anon_versioning=no
21905 case `$LD -v 2>/dev/null` in
21906 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21907 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21908 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21909 *\ 2.11.*) ;; # other 2.11 versions
21910 *) supports_anon_versioning=yes ;;
21911 esac
21913 # See if GNU ld supports shared libraries.
21914 case $host_os in
21915 aix3* | aix4* | aix5*)
21916 # On AIX/PPC, the GNU linker is very broken
21917 if test "$host_cpu" != ia64; then
21918 ld_shlibs_F77=no
21919 cat <<EOF 1>&2
21921 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21922 *** to be unable to reliably create shared libraries on AIX.
21923 *** Therefore, libtool is disabling shared libraries support. If you
21924 *** really care for shared libraries, you may want to modify your PATH
21925 *** so that a non-GNU linker is found, and then restart.
21931 amigaos*)
21932 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)'
21933 hardcode_libdir_flag_spec_F77='-L$libdir'
21934 hardcode_minus_L_F77=yes
21936 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21937 # that the semantics of dynamic libraries on AmigaOS, at least up
21938 # to version 4, is to share data among multiple programs linked
21939 # with the same dynamic library. Since this doesn't match the
21940 # behavior of shared libraries on other platforms, we can't use
21941 # them.
21942 ld_shlibs_F77=no
21945 beos*)
21946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21947 allow_undefined_flag_F77=unsupported
21948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21949 # support --undefined. This deserves some investigation. FIXME
21950 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21951 else
21952 ld_shlibs_F77=no
21956 cygwin* | mingw* | pw32*)
21957 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21958 # as there is no search path for DLLs.
21959 hardcode_libdir_flag_spec_F77='-L$libdir'
21960 allow_undefined_flag_F77=unsupported
21961 always_export_symbols_F77=no
21962 enable_shared_with_static_runtimes_F77=yes
21963 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21965 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21966 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21967 # If the export-symbols file already is a .def file (1st line
21968 # is EXPORTS), use it as is; otherwise, prepend...
21969 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21970 cp $export_symbols $output_objdir/$soname.def;
21971 else
21972 echo EXPORTS > $output_objdir/$soname.def;
21973 cat $export_symbols >> $output_objdir/$soname.def;
21975 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21976 else
21977 ld_shlibs_F77=no
21981 interix3*)
21982 hardcode_direct_F77=no
21983 hardcode_shlibpath_var_F77=no
21984 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21985 export_dynamic_flag_spec_F77='${wl}-E'
21986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21987 # Instead, shared libraries are loaded at an image base (0x10000000 by
21988 # default) and relocated if they conflict, which is a slow very memory
21989 # consuming and fragmenting process. To avoid this, we pick a random,
21990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21992 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'
21993 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'
21996 linux*)
21997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21998 tmp_addflag=
21999 case $cc_basename,$host_cpu in
22000 pgcc*) # Portland Group C compiler
22001 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'
22002 tmp_addflag=' $pic_flag'
22004 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22005 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'
22006 tmp_addflag=' $pic_flag -Mnomain' ;;
22007 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22008 tmp_addflag=' -i_dynamic' ;;
22009 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22010 tmp_addflag=' -i_dynamic -nofor_main' ;;
22011 ifc* | ifort*) # Intel Fortran compiler
22012 tmp_addflag=' -nofor_main' ;;
22013 esac
22014 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22016 if test $supports_anon_versioning = yes; then
22017 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22019 $echo "local: *; };" >> $output_objdir/$libname.ver~
22020 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22022 else
22023 ld_shlibs_F77=no
22027 netbsd*)
22028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22029 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22030 wlarc=
22031 else
22032 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22033 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22037 solaris*)
22038 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22039 ld_shlibs_F77=no
22040 cat <<EOF 1>&2
22042 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22043 *** create shared libraries on Solaris systems. Therefore, libtool
22044 *** is disabling shared libraries support. We urge you to upgrade GNU
22045 *** binutils to release 2.9.1 or newer. Another option is to modify
22046 *** your PATH or compiler configuration so that the native linker is
22047 *** used, and then restart.
22050 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22051 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22052 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22053 else
22054 ld_shlibs_F77=no
22058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22059 case `$LD -v 2>&1` in
22060 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22061 ld_shlibs_F77=no
22062 cat <<_LT_EOF 1>&2
22064 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22065 *** reliably create shared libraries on SCO systems. Therefore, libtool
22066 *** is disabling shared libraries support. We urge you to upgrade GNU
22067 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22068 *** your PATH or compiler configuration so that the native linker is
22069 *** used, and then restart.
22071 _LT_EOF
22074 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22075 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22076 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22077 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22078 else
22079 ld_shlibs_F77=no
22082 esac
22085 sunos4*)
22086 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22087 wlarc=
22088 hardcode_direct_F77=yes
22089 hardcode_shlibpath_var_F77=no
22093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22094 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22095 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22096 else
22097 ld_shlibs_F77=no
22100 esac
22102 if test "$ld_shlibs_F77" = no; then
22103 runpath_var=
22104 hardcode_libdir_flag_spec_F77=
22105 export_dynamic_flag_spec_F77=
22106 whole_archive_flag_spec_F77=
22108 else
22109 # PORTME fill in a description of your system's linker (not GNU ld)
22110 case $host_os in
22111 aix3*)
22112 allow_undefined_flag_F77=unsupported
22113 always_export_symbols_F77=yes
22114 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'
22115 # Note: this linker hardcodes the directories in LIBPATH if there
22116 # are no directories specified by -L.
22117 hardcode_minus_L_F77=yes
22118 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22119 # Neither direct hardcoding nor static linking is supported with a
22120 # broken collect2.
22121 hardcode_direct_F77=unsupported
22125 aix4* | aix5*)
22126 if test "$host_cpu" = ia64; then
22127 # On IA64, the linker does run time linking by default, so we don't
22128 # have to do anything special.
22129 aix_use_runtimelinking=no
22130 exp_sym_flag='-Bexport'
22131 no_entry_flag=""
22132 else
22133 # If we're using GNU nm, then we don't want the "-C" option.
22134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22136 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'
22137 else
22138 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'
22140 aix_use_runtimelinking=no
22142 # Test if we are trying to use run time linking or normal
22143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22144 # need to do runtime linking.
22145 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22146 for ld_flag in $LDFLAGS; do
22147 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22148 aix_use_runtimelinking=yes
22149 break
22151 done
22153 esac
22155 exp_sym_flag='-bexport'
22156 no_entry_flag='-bnoentry'
22159 # When large executables or shared objects are built, AIX ld can
22160 # have problems creating the table of contents. If linking a library
22161 # or program results in "error TOC overflow" add -mminimal-toc to
22162 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22163 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22165 archive_cmds_F77=''
22166 hardcode_direct_F77=yes
22167 hardcode_libdir_separator_F77=':'
22168 link_all_deplibs_F77=yes
22170 if test "$GCC" = yes; then
22171 case $host_os in aix4.[012]|aix4.[012].*)
22172 # We only want to do this on AIX 4.2 and lower, the check
22173 # below for broken collect2 doesn't work under 4.3+
22174 collect2name=`${CC} -print-prog-name=collect2`
22175 if test -f "$collect2name" && \
22176 strings "$collect2name" | grep resolve_lib_name >/dev/null
22177 then
22178 # We have reworked collect2
22179 hardcode_direct_F77=yes
22180 else
22181 # We have old collect2
22182 hardcode_direct_F77=unsupported
22183 # It fails to find uninstalled libraries when the uninstalled
22184 # path is not listed in the libpath. Setting hardcode_minus_L
22185 # to unsupported forces relinking
22186 hardcode_minus_L_F77=yes
22187 hardcode_libdir_flag_spec_F77='-L$libdir'
22188 hardcode_libdir_separator_F77=
22191 esac
22192 shared_flag='-shared'
22193 if test "$aix_use_runtimelinking" = yes; then
22194 shared_flag="$shared_flag "'${wl}-G'
22196 else
22197 # not using gcc
22198 if test "$host_cpu" = ia64; then
22199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22200 # chokes on -Wl,-G. The following line is correct:
22201 shared_flag='-G'
22202 else
22203 if test "$aix_use_runtimelinking" = yes; then
22204 shared_flag='${wl}-G'
22205 else
22206 shared_flag='${wl}-bM:SRE'
22211 # It seems that -bexpall does not export symbols beginning with
22212 # underscore (_), so it is better to generate a list of symbols to export.
22213 always_export_symbols_F77=yes
22214 if test "$aix_use_runtimelinking" = yes; then
22215 # Warning - without using the other runtime loading flags (-brtl),
22216 # -berok will link without error, but may produce a broken library.
22217 allow_undefined_flag_F77='-berok'
22218 # Determine the default libpath from the value encoded in an empty executable.
22219 cat >conftest.$ac_ext <<_ACEOF
22220 program main
22223 _ACEOF
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_link") 2>conftest.er1
22232 ac_status=$?
22233 grep -v '^ *+' conftest.er1 >conftest.err
22234 rm -f conftest.er1
22235 cat conftest.err >&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } &&
22238 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22239 { (case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_try") 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; } &&
22248 { ac_try='test -s conftest$ac_exeext'
22249 { (case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_try") 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22261 # Check for a 64-bit object if we didn't find anything.
22262 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; }
22263 }'`; fi
22264 else
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22271 rm -f core conftest.err conftest.$ac_objext \
22272 conftest$ac_exeext conftest.$ac_ext
22273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22275 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22276 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"
22277 else
22278 if test "$host_cpu" = ia64; then
22279 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22280 allow_undefined_flag_F77="-z nodefs"
22281 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"
22282 else
22283 # Determine the default libpath from the value encoded in an empty executable.
22284 cat >conftest.$ac_ext <<_ACEOF
22285 program main
22288 _ACEOF
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (ac_try="$ac_link"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_link") 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
22303 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22304 { (case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22307 esac
22308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_try") 2>&5
22310 ac_status=$?
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; } &&
22313 { ac_try='test -s conftest$ac_exeext'
22314 { (case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_try") 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
22324 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22326 # Check for a 64-bit object if we didn't find anything.
22327 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; }
22328 }'`; fi
22329 else
22330 echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22336 rm -f core conftest.err conftest.$ac_objext \
22337 conftest$ac_exeext conftest.$ac_ext
22338 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22340 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22341 # Warning - without using the other run time loading flags,
22342 # -berok will link without error, but may produce a broken library.
22343 no_undefined_flag_F77=' ${wl}-bernotok'
22344 allow_undefined_flag_F77=' ${wl}-berok'
22345 # Exported symbols can be pulled into shared objects from archives
22346 whole_archive_flag_spec_F77='$convenience'
22347 archive_cmds_need_lc_F77=yes
22348 # This is similar to how AIX traditionally builds its shared libraries.
22349 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'
22354 amigaos*)
22355 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)'
22356 hardcode_libdir_flag_spec_F77='-L$libdir'
22357 hardcode_minus_L_F77=yes
22358 # see comment about different semantics on the GNU ld section
22359 ld_shlibs_F77=no
22362 bsdi[45]*)
22363 export_dynamic_flag_spec_F77=-rdynamic
22366 cygwin* | mingw* | pw32*)
22367 # When not using gcc, we currently assume that we are using
22368 # Microsoft Visual C++.
22369 # hardcode_libdir_flag_spec is actually meaningless, as there is
22370 # no search path for DLLs.
22371 hardcode_libdir_flag_spec_F77=' '
22372 allow_undefined_flag_F77=unsupported
22373 # Tell ltmain to make .lib files, not .a files.
22374 libext=lib
22375 # Tell ltmain to make .dll files, not .so files.
22376 shrext_cmds=".dll"
22377 # FIXME: Setting linknames here is a bad hack.
22378 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22379 # The linker will automatically build a .lib file if we build a DLL.
22380 old_archive_From_new_cmds_F77='true'
22381 # FIXME: Should let the user specify the lib program.
22382 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22383 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22384 enable_shared_with_static_runtimes_F77=yes
22387 darwin* | rhapsody*)
22388 case $host_os in
22389 rhapsody* | darwin1.[012])
22390 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22392 *) # Darwin 1.3 on
22393 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22394 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22395 else
22396 case ${MACOSX_DEPLOYMENT_TARGET} in
22397 10.[012])
22398 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22400 10.*)
22401 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22403 esac
22406 esac
22407 archive_cmds_need_lc_F77=no
22408 hardcode_direct_F77=no
22409 hardcode_automatic_F77=yes
22410 hardcode_shlibpath_var_F77=unsupported
22411 whole_archive_flag_spec_F77=''
22412 link_all_deplibs_F77=yes
22413 if test "$GCC" = yes ; then
22414 output_verbose_link_cmd='echo'
22415 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22416 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22417 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22418 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}'
22419 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}'
22420 else
22421 case $cc_basename in
22422 xlc*)
22423 output_verbose_link_cmd='echo'
22424 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22425 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22427 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}'
22428 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}'
22431 ld_shlibs_F77=no
22433 esac
22437 dgux*)
22438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22439 hardcode_libdir_flag_spec_F77='-L$libdir'
22440 hardcode_shlibpath_var_F77=no
22443 freebsd1*)
22444 ld_shlibs_F77=no
22447 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22448 # support. Future versions do this automatically, but an explicit c++rt0.o
22449 # does not break anything, and helps significantly (at the cost of a little
22450 # extra space).
22451 freebsd2.2*)
22452 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22453 hardcode_libdir_flag_spec_F77='-R$libdir'
22454 hardcode_direct_F77=yes
22455 hardcode_shlibpath_var_F77=no
22458 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22459 freebsd2*)
22460 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22461 hardcode_direct_F77=yes
22462 hardcode_minus_L_F77=yes
22463 hardcode_shlibpath_var_F77=no
22466 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22467 freebsd* | kfreebsd*-gnu | dragonfly*)
22468 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22469 hardcode_libdir_flag_spec_F77='-R$libdir'
22470 hardcode_direct_F77=yes
22471 hardcode_shlibpath_var_F77=no
22474 hpux9*)
22475 if test "$GCC" = yes; then
22476 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'
22477 else
22478 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'
22480 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22481 hardcode_libdir_separator_F77=:
22482 hardcode_direct_F77=yes
22484 # hardcode_minus_L: Not really in the search PATH,
22485 # but as the default location of the library.
22486 hardcode_minus_L_F77=yes
22487 export_dynamic_flag_spec_F77='${wl}-E'
22490 hpux10*)
22491 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22492 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22493 else
22494 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22496 if test "$with_gnu_ld" = no; then
22497 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22498 hardcode_libdir_separator_F77=:
22500 hardcode_direct_F77=yes
22501 export_dynamic_flag_spec_F77='${wl}-E'
22503 # hardcode_minus_L: Not really in the search PATH,
22504 # but as the default location of the library.
22505 hardcode_minus_L_F77=yes
22509 hpux11*)
22510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22511 case $host_cpu in
22512 hppa*64*)
22513 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22515 ia64*)
22516 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22519 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22521 esac
22522 else
22523 case $host_cpu in
22524 hppa*64*)
22525 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22527 ia64*)
22528 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22531 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22533 esac
22535 if test "$with_gnu_ld" = no; then
22536 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22537 hardcode_libdir_separator_F77=:
22539 case $host_cpu in
22540 hppa*64*|ia64*)
22541 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22542 hardcode_direct_F77=no
22543 hardcode_shlibpath_var_F77=no
22546 hardcode_direct_F77=yes
22547 export_dynamic_flag_spec_F77='${wl}-E'
22549 # hardcode_minus_L: Not really in the search PATH,
22550 # but as the default location of the library.
22551 hardcode_minus_L_F77=yes
22553 esac
22557 irix5* | irix6* | nonstopux*)
22558 if test "$GCC" = yes; then
22559 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'
22560 else
22561 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'
22562 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22564 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22565 hardcode_libdir_separator_F77=:
22566 link_all_deplibs_F77=yes
22569 netbsd*)
22570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22571 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22572 else
22573 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22575 hardcode_libdir_flag_spec_F77='-R$libdir'
22576 hardcode_direct_F77=yes
22577 hardcode_shlibpath_var_F77=no
22580 newsos6)
22581 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22582 hardcode_direct_F77=yes
22583 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22584 hardcode_libdir_separator_F77=:
22585 hardcode_shlibpath_var_F77=no
22588 openbsd*)
22589 hardcode_direct_F77=yes
22590 hardcode_shlibpath_var_F77=no
22591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22592 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22593 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22594 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22595 export_dynamic_flag_spec_F77='${wl}-E'
22596 else
22597 case $host_os in
22598 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22599 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22600 hardcode_libdir_flag_spec_F77='-R$libdir'
22603 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22604 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22606 esac
22610 os2*)
22611 hardcode_libdir_flag_spec_F77='-L$libdir'
22612 hardcode_minus_L_F77=yes
22613 allow_undefined_flag_F77=unsupported
22614 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'
22615 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22618 osf3*)
22619 if test "$GCC" = yes; then
22620 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22621 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'
22622 else
22623 allow_undefined_flag_F77=' -expect_unresolved \*'
22624 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'
22626 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22627 hardcode_libdir_separator_F77=:
22630 osf4* | osf5*) # as osf3* with the addition of -msym flag
22631 if test "$GCC" = yes; then
22632 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22633 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'
22634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22635 else
22636 allow_undefined_flag_F77=' -expect_unresolved \*'
22637 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'
22638 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~
22639 $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'
22641 # Both c and cxx compiler support -rpath directly
22642 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22644 hardcode_libdir_separator_F77=:
22647 solaris*)
22648 no_undefined_flag_F77=' -z text'
22649 if test "$GCC" = yes; then
22650 wlarc='${wl}'
22651 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22652 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22653 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22654 else
22655 wlarc=''
22656 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22657 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22660 hardcode_libdir_flag_spec_F77='-R$libdir'
22661 hardcode_shlibpath_var_F77=no
22662 case $host_os in
22663 solaris2.[0-5] | solaris2.[0-5].*) ;;
22665 # The compiler driver will combine linker options so we
22666 # cannot just pass the convience library names through
22667 # without $wl, iff we do not link with $LD.
22668 # Luckily, gcc supports the same syntax we need for Sun Studio.
22669 # Supported since Solaris 2.6 (maybe 2.5.1?)
22670 case $wlarc in
22672 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22674 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' ;;
22675 esac ;;
22676 esac
22677 link_all_deplibs_F77=yes
22680 sunos4*)
22681 if test "x$host_vendor" = xsequent; then
22682 # Use $CC to link under sequent, because it throws in some extra .o
22683 # files that make .init and .fini sections work.
22684 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22685 else
22686 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22688 hardcode_libdir_flag_spec_F77='-L$libdir'
22689 hardcode_direct_F77=yes
22690 hardcode_minus_L_F77=yes
22691 hardcode_shlibpath_var_F77=no
22694 sysv4)
22695 case $host_vendor in
22696 sni)
22697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22698 hardcode_direct_F77=yes # is this really true???
22700 siemens)
22701 ## LD is ld it makes a PLAMLIB
22702 ## CC just makes a GrossModule.
22703 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22704 reload_cmds_F77='$CC -r -o $output$reload_objs'
22705 hardcode_direct_F77=no
22707 motorola)
22708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22709 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22711 esac
22712 runpath_var='LD_RUN_PATH'
22713 hardcode_shlibpath_var_F77=no
22716 sysv4.3*)
22717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22718 hardcode_shlibpath_var_F77=no
22719 export_dynamic_flag_spec_F77='-Bexport'
22722 sysv4*MP*)
22723 if test -d /usr/nec; then
22724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22725 hardcode_shlibpath_var_F77=no
22726 runpath_var=LD_RUN_PATH
22727 hardcode_runpath_var=yes
22728 ld_shlibs_F77=yes
22732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22733 no_undefined_flag_F77='${wl}-z,text'
22734 archive_cmds_need_lc_F77=no
22735 hardcode_shlibpath_var_F77=no
22736 runpath_var='LD_RUN_PATH'
22738 if test "$GCC" = yes; then
22739 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22740 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22741 else
22742 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22743 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22747 sysv5* | sco3.2v5* | sco5v6*)
22748 # Note: We can NOT use -z defs as we might desire, because we do not
22749 # link with -lc, and that would cause any symbols used from libc to
22750 # always be unresolved, which means just about no library would
22751 # ever link correctly. If we're not using GNU ld we use -z text
22752 # though, which does catch some bad symbols but isn't as heavy-handed
22753 # as -z defs.
22754 no_undefined_flag_F77='${wl}-z,text'
22755 allow_undefined_flag_F77='${wl}-z,nodefs'
22756 archive_cmds_need_lc_F77=no
22757 hardcode_shlibpath_var_F77=no
22758 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22759 hardcode_libdir_separator_F77=':'
22760 link_all_deplibs_F77=yes
22761 export_dynamic_flag_spec_F77='${wl}-Bexport'
22762 runpath_var='LD_RUN_PATH'
22764 if test "$GCC" = yes; then
22765 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22766 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22767 else
22768 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22773 uts4*)
22774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22775 hardcode_libdir_flag_spec_F77='-L$libdir'
22776 hardcode_shlibpath_var_F77=no
22780 ld_shlibs_F77=no
22782 esac
22785 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22786 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22787 test "$ld_shlibs_F77" = no && can_build_shared=no
22790 # Do we need to explicitly link libc?
22792 case "x$archive_cmds_need_lc_F77" in
22793 x|xyes)
22794 # Assume -lc should be added
22795 archive_cmds_need_lc_F77=yes
22797 if test "$enable_shared" = yes && test "$GCC" = yes; then
22798 case $archive_cmds_F77 in
22799 *'~'*)
22800 # FIXME: we may have to deal with multi-command sequences.
22802 '$CC '*)
22803 # Test whether the compiler implicitly links with -lc since on some
22804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22805 # to ld, don't add -lc before -lgcc.
22806 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22807 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22808 $rm conftest*
22809 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812 (eval $ac_compile) 2>&5
22813 ac_status=$?
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } 2>conftest.err; then
22816 soname=conftest
22817 lib=conftest
22818 libobjs=conftest.$ac_objext
22819 deplibs=
22820 wl=$lt_prog_compiler_wl_F77
22821 pic_flag=$lt_prog_compiler_pic_F77
22822 compiler_flags=-v
22823 linker_flags=-v
22824 verstring=
22825 output_objdir=.
22826 libname=conftest
22827 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22828 allow_undefined_flag_F77=
22829 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22830 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }
22834 then
22835 archive_cmds_need_lc_F77=no
22836 else
22837 archive_cmds_need_lc_F77=yes
22839 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22840 else
22841 cat conftest.err 1>&5
22843 $rm conftest*
22844 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22845 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22847 esac
22850 esac
22852 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22853 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22854 library_names_spec=
22855 libname_spec='lib$name'
22856 soname_spec=
22857 shrext_cmds=".so"
22858 postinstall_cmds=
22859 postuninstall_cmds=
22860 finish_cmds=
22861 finish_eval=
22862 shlibpath_var=
22863 shlibpath_overrides_runpath=unknown
22864 version_type=none
22865 dynamic_linker="$host_os ld.so"
22866 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22867 if test "$GCC" = yes; then
22868 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22869 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22870 # if the path contains ";" then we assume it to be the separator
22871 # otherwise default to the standard path separator (i.e. ":") - it is
22872 # assumed that no part of a normal pathname contains ";" but that should
22873 # okay in the real world where ";" in dirpaths is itself problematic.
22874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22875 else
22876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22878 else
22879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22881 need_lib_prefix=unknown
22882 hardcode_into_libs=no
22884 # when you set need_version to no, make sure it does not cause -set_version
22885 # flags to be left without arguments
22886 need_version=unknown
22888 case $host_os in
22889 aix3*)
22890 version_type=linux
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22892 shlibpath_var=LIBPATH
22894 # AIX 3 has no versioning support, so we append a major version to the name.
22895 soname_spec='${libname}${release}${shared_ext}$major'
22898 aix4* | aix5*)
22899 version_type=linux
22900 need_lib_prefix=no
22901 need_version=no
22902 hardcode_into_libs=yes
22903 if test "$host_cpu" = ia64; then
22904 # AIX 5 supports IA64
22905 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 else
22908 # With GCC up to 2.95.x, collect2 would create an import file
22909 # for dependence libraries. The import file would start with
22910 # the line `#! .'. This would cause the generated library to
22911 # depend on `.', always an invalid library. This was fixed in
22912 # development snapshots of GCC prior to 3.0.
22913 case $host_os in
22914 aix4 | aix4.[01] | aix4.[01].*)
22915 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22916 echo ' yes '
22917 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22919 else
22920 can_build_shared=no
22923 esac
22924 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22925 # soname into executable. Probably we can add versioning support to
22926 # collect2, so additional links can be useful in future.
22927 if test "$aix_use_runtimelinking" = yes; then
22928 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22929 # instead of lib<name>.a to let people know that these are not
22930 # typical AIX shared libraries.
22931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22932 else
22933 # We preserve .a as extension for shared libraries through AIX4.2
22934 # and later when we are not doing run time linking.
22935 library_names_spec='${libname}${release}.a $libname.a'
22936 soname_spec='${libname}${release}${shared_ext}$major'
22938 shlibpath_var=LIBPATH
22942 amigaos*)
22943 library_names_spec='$libname.ixlibrary $libname.a'
22944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22945 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'
22948 beos*)
22949 library_names_spec='${libname}${shared_ext}'
22950 dynamic_linker="$host_os ld.so"
22951 shlibpath_var=LIBRARY_PATH
22954 bsdi[45]*)
22955 version_type=linux
22956 need_version=no
22957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958 soname_spec='${libname}${release}${shared_ext}$major'
22959 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22960 shlibpath_var=LD_LIBRARY_PATH
22961 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22962 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22963 # the default ld.so.conf also contains /usr/contrib/lib and
22964 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22965 # libtool to hard-code these into programs
22968 cygwin* | mingw* | pw32*)
22969 version_type=windows
22970 shrext_cmds=".dll"
22971 need_version=no
22972 need_lib_prefix=no
22974 case $GCC,$host_os in
22975 yes,cygwin* | yes,mingw* | yes,pw32*)
22976 library_names_spec='$libname.dll.a'
22977 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22978 postinstall_cmds='base_file=`basename \${file}`~
22979 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22980 dldir=$destdir/`dirname \$dlpath`~
22981 test -d \$dldir || mkdir -p \$dldir~
22982 $install_prog $dir/$dlname \$dldir/$dlname~
22983 chmod a+x \$dldir/$dlname'
22984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22985 dlpath=$dir/\$dldll~
22986 $rm \$dlpath'
22987 shlibpath_overrides_runpath=yes
22989 case $host_os in
22990 cygwin*)
22991 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22992 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22993 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22995 mingw*)
22996 # MinGW DLLs use traditional 'lib' prefix
22997 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22999 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23000 # It is most probably a Windows format PATH printed by
23001 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23002 # path with ; separators, and with drive letters. We can handle the
23003 # drive letters (cygwin fileutils understands them), so leave them,
23004 # especially as we might pass files found there to a mingw objdump,
23005 # which wouldn't understand a cygwinified path. Ahh.
23006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23007 else
23008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23011 pw32*)
23012 # pw32 DLLs use 'pw' prefix rather than 'lib'
23013 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23015 esac
23019 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23021 esac
23022 dynamic_linker='Win32 ld.exe'
23023 # FIXME: first we should search . and the directory the executable is in
23024 shlibpath_var=PATH
23027 darwin* | rhapsody*)
23028 dynamic_linker="$host_os dyld"
23029 version_type=darwin
23030 need_lib_prefix=no
23031 need_version=no
23032 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23033 soname_spec='${libname}${release}${major}$shared_ext'
23034 shlibpath_overrides_runpath=yes
23035 shlibpath_var=DYLD_LIBRARY_PATH
23036 shrext_cmds='.dylib'
23037 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23038 if test "$GCC" = yes; then
23039 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"`
23040 else
23041 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23043 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23046 dgux*)
23047 version_type=linux
23048 need_lib_prefix=no
23049 need_version=no
23050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23051 soname_spec='${libname}${release}${shared_ext}$major'
23052 shlibpath_var=LD_LIBRARY_PATH
23055 freebsd1*)
23056 dynamic_linker=no
23059 kfreebsd*-gnu)
23060 version_type=linux
23061 need_lib_prefix=no
23062 need_version=no
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath=no
23067 hardcode_into_libs=yes
23068 dynamic_linker='GNU ld.so'
23071 freebsd* | dragonfly*)
23072 # DragonFly does not have aout. When/if they implement a new
23073 # versioning mechanism, adjust this.
23074 if test -x /usr/bin/objformat; then
23075 objformat=`/usr/bin/objformat`
23076 else
23077 case $host_os in
23078 freebsd[123]*) objformat=aout ;;
23079 *) objformat=elf ;;
23080 esac
23082 version_type=freebsd-$objformat
23083 case $version_type in
23084 freebsd-elf*)
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23086 need_version=no
23087 need_lib_prefix=no
23089 freebsd-*)
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23091 need_version=yes
23093 esac
23094 shlibpath_var=LD_LIBRARY_PATH
23095 case $host_os in
23096 freebsd2*)
23097 shlibpath_overrides_runpath=yes
23099 freebsd3.[01]* | freebsdelf3.[01]*)
23100 shlibpath_overrides_runpath=yes
23101 hardcode_into_libs=yes
23103 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23104 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23105 shlibpath_overrides_runpath=no
23106 hardcode_into_libs=yes
23108 freebsd*) # from 4.6 on
23109 shlibpath_overrides_runpath=yes
23110 hardcode_into_libs=yes
23112 esac
23115 gnu*)
23116 version_type=linux
23117 need_lib_prefix=no
23118 need_version=no
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23120 soname_spec='${libname}${release}${shared_ext}$major'
23121 shlibpath_var=LD_LIBRARY_PATH
23122 hardcode_into_libs=yes
23125 hpux9* | hpux10* | hpux11*)
23126 # Give a soname corresponding to the major version so that dld.sl refuses to
23127 # link against other versions.
23128 version_type=sunos
23129 need_lib_prefix=no
23130 need_version=no
23131 case $host_cpu in
23132 ia64*)
23133 shrext_cmds='.so'
23134 hardcode_into_libs=yes
23135 dynamic_linker="$host_os dld.so"
23136 shlibpath_var=LD_LIBRARY_PATH
23137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23139 soname_spec='${libname}${release}${shared_ext}$major'
23140 if test "X$HPUX_IA64_MODE" = X32; then
23141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23142 else
23143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23147 hppa*64*)
23148 shrext_cmds='.sl'
23149 hardcode_into_libs=yes
23150 dynamic_linker="$host_os dld.sl"
23151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23154 soname_spec='${libname}${release}${shared_ext}$major'
23155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23159 shrext_cmds='.sl'
23160 dynamic_linker="$host_os dld.sl"
23161 shlibpath_var=SHLIB_PATH
23162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23164 soname_spec='${libname}${release}${shared_ext}$major'
23166 esac
23167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23168 postinstall_cmds='chmod 555 $lib'
23171 interix3*)
23172 version_type=linux
23173 need_lib_prefix=no
23174 need_version=no
23175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23176 soname_spec='${libname}${release}${shared_ext}$major'
23177 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23178 shlibpath_var=LD_LIBRARY_PATH
23179 shlibpath_overrides_runpath=no
23180 hardcode_into_libs=yes
23183 irix5* | irix6* | nonstopux*)
23184 case $host_os in
23185 nonstopux*) version_type=nonstopux ;;
23187 if test "$lt_cv_prog_gnu_ld" = yes; then
23188 version_type=linux
23189 else
23190 version_type=irix
23191 fi ;;
23192 esac
23193 need_lib_prefix=no
23194 need_version=no
23195 soname_spec='${libname}${release}${shared_ext}$major'
23196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23197 case $host_os in
23198 irix5* | nonstopux*)
23199 libsuff= shlibsuff=
23202 case $LD in # libtool.m4 will add one of these switches to LD
23203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23204 libsuff= shlibsuff= libmagic=32-bit;;
23205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23206 libsuff=32 shlibsuff=N32 libmagic=N32;;
23207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23209 *) libsuff= shlibsuff= libmagic=never-match;;
23210 esac
23212 esac
23213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23214 shlibpath_overrides_runpath=no
23215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23217 hardcode_into_libs=yes
23220 # No shared lib support for Linux oldld, aout, or coff.
23221 linux*oldld* | linux*aout* | linux*coff*)
23222 dynamic_linker=no
23225 # This must be Linux ELF.
23226 linux*)
23227 version_type=linux
23228 need_lib_prefix=no
23229 need_version=no
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231 soname_spec='${libname}${release}${shared_ext}$major'
23232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23233 shlibpath_var=LD_LIBRARY_PATH
23234 shlibpath_overrides_runpath=no
23235 # This implies no fast_install, which is unacceptable.
23236 # Some rework will be needed to allow for fast_install
23237 # before this can be enabled.
23238 hardcode_into_libs=yes
23240 # Append ld.so.conf contents to the search path
23241 if test -f /etc/ld.so.conf; then
23242 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' ' '`
23243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23246 # We used to test for /lib/ld.so.1 and disable shared libraries on
23247 # powerpc, because MkLinux only supported shared libraries with the
23248 # GNU dynamic linker. Since this was broken with cross compilers,
23249 # most powerpc-linux boxes support dynamic linking these days and
23250 # people can always --disable-shared, the test was removed, and we
23251 # assume the GNU/Linux dynamic linker is in use.
23252 dynamic_linker='GNU/Linux ld.so'
23255 knetbsd*-gnu)
23256 version_type=linux
23257 need_lib_prefix=no
23258 need_version=no
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23260 soname_spec='${libname}${release}${shared_ext}$major'
23261 shlibpath_var=LD_LIBRARY_PATH
23262 shlibpath_overrides_runpath=no
23263 hardcode_into_libs=yes
23264 dynamic_linker='GNU ld.so'
23267 netbsd*)
23268 version_type=sunos
23269 need_lib_prefix=no
23270 need_version=no
23271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23274 dynamic_linker='NetBSD (a.out) ld.so'
23275 else
23276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23277 soname_spec='${libname}${release}${shared_ext}$major'
23278 dynamic_linker='NetBSD ld.elf_so'
23280 shlibpath_var=LD_LIBRARY_PATH
23281 shlibpath_overrides_runpath=yes
23282 hardcode_into_libs=yes
23285 newsos6)
23286 version_type=linux
23287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23288 shlibpath_var=LD_LIBRARY_PATH
23289 shlibpath_overrides_runpath=yes
23292 nto-qnx*)
23293 version_type=linux
23294 need_lib_prefix=no
23295 need_version=no
23296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23297 soname_spec='${libname}${release}${shared_ext}$major'
23298 shlibpath_var=LD_LIBRARY_PATH
23299 shlibpath_overrides_runpath=yes
23302 openbsd*)
23303 version_type=sunos
23304 sys_lib_dlsearch_path_spec="/usr/lib"
23305 need_lib_prefix=no
23306 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23307 case $host_os in
23308 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23309 *) need_version=no ;;
23310 esac
23311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23313 shlibpath_var=LD_LIBRARY_PATH
23314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23315 case $host_os in
23316 openbsd2.[89] | openbsd2.[89].*)
23317 shlibpath_overrides_runpath=no
23320 shlibpath_overrides_runpath=yes
23322 esac
23323 else
23324 shlibpath_overrides_runpath=yes
23328 os2*)
23329 libname_spec='$name'
23330 shrext_cmds=".dll"
23331 need_lib_prefix=no
23332 library_names_spec='$libname${shared_ext} $libname.a'
23333 dynamic_linker='OS/2 ld.exe'
23334 shlibpath_var=LIBPATH
23337 osf3* | osf4* | osf5*)
23338 version_type=osf
23339 need_lib_prefix=no
23340 need_version=no
23341 soname_spec='${libname}${release}${shared_ext}$major'
23342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23343 shlibpath_var=LD_LIBRARY_PATH
23344 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23345 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23348 solaris*)
23349 version_type=linux
23350 need_lib_prefix=no
23351 need_version=no
23352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23353 soname_spec='${libname}${release}${shared_ext}$major'
23354 shlibpath_var=LD_LIBRARY_PATH
23355 shlibpath_overrides_runpath=yes
23356 hardcode_into_libs=yes
23357 # ldd complains unless libraries are executable
23358 postinstall_cmds='chmod +x $lib'
23361 sunos4*)
23362 version_type=sunos
23363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23364 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23365 shlibpath_var=LD_LIBRARY_PATH
23366 shlibpath_overrides_runpath=yes
23367 if test "$with_gnu_ld" = yes; then
23368 need_lib_prefix=no
23370 need_version=yes
23373 sysv4 | sysv4.3*)
23374 version_type=linux
23375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23376 soname_spec='${libname}${release}${shared_ext}$major'
23377 shlibpath_var=LD_LIBRARY_PATH
23378 case $host_vendor in
23379 sni)
23380 shlibpath_overrides_runpath=no
23381 need_lib_prefix=no
23382 export_dynamic_flag_spec='${wl}-Blargedynsym'
23383 runpath_var=LD_RUN_PATH
23385 siemens)
23386 need_lib_prefix=no
23388 motorola)
23389 need_lib_prefix=no
23390 need_version=no
23391 shlibpath_overrides_runpath=no
23392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23394 esac
23397 sysv4*MP*)
23398 if test -d /usr/nec ;then
23399 version_type=linux
23400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23401 soname_spec='$libname${shared_ext}.$major'
23402 shlibpath_var=LD_LIBRARY_PATH
23406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23407 version_type=freebsd-elf
23408 need_lib_prefix=no
23409 need_version=no
23410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23411 soname_spec='${libname}${release}${shared_ext}$major'
23412 shlibpath_var=LD_LIBRARY_PATH
23413 hardcode_into_libs=yes
23414 if test "$with_gnu_ld" = yes; then
23415 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23416 shlibpath_overrides_runpath=no
23417 else
23418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23419 shlibpath_overrides_runpath=yes
23420 case $host_os in
23421 sco3.2v5*)
23422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23424 esac
23426 sys_lib_dlsearch_path_spec='/usr/lib'
23429 uts4*)
23430 version_type=linux
23431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23432 soname_spec='${libname}${release}${shared_ext}$major'
23433 shlibpath_var=LD_LIBRARY_PATH
23437 dynamic_linker=no
23439 esac
23440 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23441 echo "${ECHO_T}$dynamic_linker" >&6; }
23442 test "$dynamic_linker" = no && can_build_shared=no
23444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23445 if test "$GCC" = yes; then
23446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23449 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23451 hardcode_action_F77=
23452 if test -n "$hardcode_libdir_flag_spec_F77" || \
23453 test -n "$runpath_var_F77" || \
23454 test "X$hardcode_automatic_F77" = "Xyes" ; then
23456 # We can hardcode non-existant directories.
23457 if test "$hardcode_direct_F77" != no &&
23458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23459 # have to relink, otherwise we might link with an installed library
23460 # when we should be linking with a yet-to-be-installed one
23461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23462 test "$hardcode_minus_L_F77" != no; then
23463 # Linking always hardcodes the temporary library directory.
23464 hardcode_action_F77=relink
23465 else
23466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23467 hardcode_action_F77=immediate
23469 else
23470 # We cannot hardcode anything, or else we can only hardcode existing
23471 # directories.
23472 hardcode_action_F77=unsupported
23474 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23475 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23477 if test "$hardcode_action_F77" = relink; then
23478 # Fast installation is not supported
23479 enable_fast_install=no
23480 elif test "$shlibpath_overrides_runpath" = yes ||
23481 test "$enable_shared" = no; then
23482 # Fast installation is not necessary
23483 enable_fast_install=needless
23487 # The else clause should only fire when bootstrapping the
23488 # libtool distribution, otherwise you forgot to ship ltmain.sh
23489 # with your package, and you will get complaints that there are
23490 # no rules to generate ltmain.sh.
23491 if test -f "$ltmain"; then
23492 # See if we are running on zsh, and set the options which allow our commands through
23493 # without removal of \ escapes.
23494 if test -n "${ZSH_VERSION+set}" ; then
23495 setopt NO_GLOB_SUBST
23497 # Now quote all the things that may contain metacharacters while being
23498 # careful not to overquote the AC_SUBSTed values. We take copies of the
23499 # variables and quote the copies for generation of the libtool script.
23500 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23501 SED SHELL STRIP \
23502 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23503 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23504 deplibs_check_method reload_flag reload_cmds need_locks \
23505 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23506 lt_cv_sys_global_symbol_to_c_name_address \
23507 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23508 old_postinstall_cmds old_postuninstall_cmds \
23509 compiler_F77 \
23510 CC_F77 \
23511 LD_F77 \
23512 lt_prog_compiler_wl_F77 \
23513 lt_prog_compiler_pic_F77 \
23514 lt_prog_compiler_static_F77 \
23515 lt_prog_compiler_no_builtin_flag_F77 \
23516 export_dynamic_flag_spec_F77 \
23517 thread_safe_flag_spec_F77 \
23518 whole_archive_flag_spec_F77 \
23519 enable_shared_with_static_runtimes_F77 \
23520 old_archive_cmds_F77 \
23521 old_archive_from_new_cmds_F77 \
23522 predep_objects_F77 \
23523 postdep_objects_F77 \
23524 predeps_F77 \
23525 postdeps_F77 \
23526 compiler_lib_search_path_F77 \
23527 archive_cmds_F77 \
23528 archive_expsym_cmds_F77 \
23529 postinstall_cmds_F77 \
23530 postuninstall_cmds_F77 \
23531 old_archive_from_expsyms_cmds_F77 \
23532 allow_undefined_flag_F77 \
23533 no_undefined_flag_F77 \
23534 export_symbols_cmds_F77 \
23535 hardcode_libdir_flag_spec_F77 \
23536 hardcode_libdir_flag_spec_ld_F77 \
23537 hardcode_libdir_separator_F77 \
23538 hardcode_automatic_F77 \
23539 module_cmds_F77 \
23540 module_expsym_cmds_F77 \
23541 lt_cv_prog_compiler_c_o_F77 \
23542 exclude_expsyms_F77 \
23543 include_expsyms_F77; do
23545 case $var in
23546 old_archive_cmds_F77 | \
23547 old_archive_from_new_cmds_F77 | \
23548 archive_cmds_F77 | \
23549 archive_expsym_cmds_F77 | \
23550 module_cmds_F77 | \
23551 module_expsym_cmds_F77 | \
23552 old_archive_from_expsyms_cmds_F77 | \
23553 export_symbols_cmds_F77 | \
23554 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23555 postinstall_cmds | postuninstall_cmds | \
23556 old_postinstall_cmds | old_postuninstall_cmds | \
23557 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23558 # Double-quote double-evaled strings.
23559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23564 esac
23565 done
23567 case $lt_echo in
23568 *'\$0 --fallback-echo"')
23569 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23571 esac
23573 cfgfile="$ofile"
23575 cat <<__EOF__ >> "$cfgfile"
23576 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23580 # Shell to use when invoking shell scripts.
23581 SHELL=$lt_SHELL
23583 # Whether or not to build shared libraries.
23584 build_libtool_libs=$enable_shared
23586 # Whether or not to build static libraries.
23587 build_old_libs=$enable_static
23589 # Whether or not to add -lc for building shared libraries.
23590 build_libtool_need_lc=$archive_cmds_need_lc_F77
23592 # Whether or not to disallow shared libs when runtime libs are static
23593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23595 # Whether or not to optimize for fast installation.
23596 fast_install=$enable_fast_install
23598 # The host system.
23599 host_alias=$host_alias
23600 host=$host
23601 host_os=$host_os
23603 # The build system.
23604 build_alias=$build_alias
23605 build=$build
23606 build_os=$build_os
23608 # An echo program that does not interpret backslashes.
23609 echo=$lt_echo
23611 # The archiver.
23612 AR=$lt_AR
23613 AR_FLAGS=$lt_AR_FLAGS
23615 # A C compiler.
23616 LTCC=$lt_LTCC
23618 # LTCC compiler flags.
23619 LTCFLAGS=$lt_LTCFLAGS
23621 # A language-specific compiler.
23622 CC=$lt_compiler_F77
23624 # Is the compiler the GNU C compiler?
23625 with_gcc=$GCC_F77
23627 # An ERE matcher.
23628 EGREP=$lt_EGREP
23630 # The linker used to build libraries.
23631 LD=$lt_LD_F77
23633 # Whether we need hard or soft links.
23634 LN_S=$lt_LN_S
23636 # A BSD-compatible nm program.
23637 NM=$lt_NM
23639 # A symbol stripping program
23640 STRIP=$lt_STRIP
23642 # Used to examine libraries when file_magic_cmd begins "file"
23643 MAGIC_CMD=$MAGIC_CMD
23645 # Used on cygwin: DLL creation program.
23646 DLLTOOL="$DLLTOOL"
23648 # Used on cygwin: object dumper.
23649 OBJDUMP="$OBJDUMP"
23651 # Used on cygwin: assembler.
23652 AS="$AS"
23654 # The name of the directory that contains temporary libtool files.
23655 objdir=$objdir
23657 # How to create reloadable object files.
23658 reload_flag=$lt_reload_flag
23659 reload_cmds=$lt_reload_cmds
23661 # How to pass a linker flag through the compiler.
23662 wl=$lt_lt_prog_compiler_wl_F77
23664 # Object file suffix (normally "o").
23665 objext="$ac_objext"
23667 # Old archive suffix (normally "a").
23668 libext="$libext"
23670 # Shared library suffix (normally ".so").
23671 shrext_cmds='$shrext_cmds'
23673 # Executable file suffix (normally "").
23674 exeext="$exeext"
23676 # Additional compiler flags for building library objects.
23677 pic_flag=$lt_lt_prog_compiler_pic_F77
23678 pic_mode=$pic_mode
23680 # What is the maximum length of a command?
23681 max_cmd_len=$lt_cv_sys_max_cmd_len
23683 # Does compiler simultaneously support -c and -o options?
23684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23686 # Must we lock files when doing compilation?
23687 need_locks=$lt_need_locks
23689 # Do we need the lib prefix for modules?
23690 need_lib_prefix=$need_lib_prefix
23692 # Do we need a version for libraries?
23693 need_version=$need_version
23695 # Whether dlopen is supported.
23696 dlopen_support=$enable_dlopen
23698 # Whether dlopen of programs is supported.
23699 dlopen_self=$enable_dlopen_self
23701 # Whether dlopen of statically linked programs is supported.
23702 dlopen_self_static=$enable_dlopen_self_static
23704 # Compiler flag to prevent dynamic linking.
23705 link_static_flag=$lt_lt_prog_compiler_static_F77
23707 # Compiler flag to turn off builtin functions.
23708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23710 # Compiler flag to allow reflexive dlopens.
23711 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23713 # Compiler flag to generate shared objects directly from archives.
23714 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23716 # Compiler flag to generate thread-safe objects.
23717 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23719 # Library versioning type.
23720 version_type=$version_type
23722 # Format of library name prefix.
23723 libname_spec=$lt_libname_spec
23725 # List of archive names. First name is the real one, the rest are links.
23726 # The last name is the one that the linker finds with -lNAME.
23727 library_names_spec=$lt_library_names_spec
23729 # The coded name of the library, if different from the real name.
23730 soname_spec=$lt_soname_spec
23732 # Commands used to build and install an old-style archive.
23733 RANLIB=$lt_RANLIB
23734 old_archive_cmds=$lt_old_archive_cmds_F77
23735 old_postinstall_cmds=$lt_old_postinstall_cmds
23736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23738 # Create an old-style archive from a shared archive.
23739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23741 # Create a temporary old-style archive to link instead of a shared archive.
23742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23744 # Commands used to build and install a shared archive.
23745 archive_cmds=$lt_archive_cmds_F77
23746 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23747 postinstall_cmds=$lt_postinstall_cmds
23748 postuninstall_cmds=$lt_postuninstall_cmds
23750 # Commands used to build a loadable module (assumed same as above if empty)
23751 module_cmds=$lt_module_cmds_F77
23752 module_expsym_cmds=$lt_module_expsym_cmds_F77
23754 # Commands to strip libraries.
23755 old_striplib=$lt_old_striplib
23756 striplib=$lt_striplib
23758 # Dependencies to place before the objects being linked to create a
23759 # shared library.
23760 predep_objects=$lt_predep_objects_F77
23762 # Dependencies to place after the objects being linked to create a
23763 # shared library.
23764 postdep_objects=$lt_postdep_objects_F77
23766 # Dependencies to place before the objects being linked to create a
23767 # shared library.
23768 predeps=$lt_predeps_F77
23770 # Dependencies to place after the objects being linked to create a
23771 # shared library.
23772 postdeps=$lt_postdeps_F77
23774 # The library search path used internally by the compiler when linking
23775 # a shared library.
23776 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23778 # Method to check whether dependent libraries are shared objects.
23779 deplibs_check_method=$lt_deplibs_check_method
23781 # Command to use when deplibs_check_method == file_magic.
23782 file_magic_cmd=$lt_file_magic_cmd
23784 # Flag that allows shared libraries with undefined symbols to be built.
23785 allow_undefined_flag=$lt_allow_undefined_flag_F77
23787 # Flag that forces no undefined symbols.
23788 no_undefined_flag=$lt_no_undefined_flag_F77
23790 # Commands used to finish a libtool library installation in a directory.
23791 finish_cmds=$lt_finish_cmds
23793 # Same as above, but a single script fragment to be evaled but not shown.
23794 finish_eval=$lt_finish_eval
23796 # Take the output of nm and produce a listing of raw symbols and C names.
23797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23799 # Transform the output of nm in a proper C declaration
23800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23802 # Transform the output of nm in a C name address pair
23803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23805 # This is the shared library runtime path variable.
23806 runpath_var=$runpath_var
23808 # This is the shared library path variable.
23809 shlibpath_var=$shlibpath_var
23811 # Is shlibpath searched before the hard-coded library search path?
23812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23814 # How to hardcode a shared library path into an executable.
23815 hardcode_action=$hardcode_action_F77
23817 # Whether we should hardcode library paths into libraries.
23818 hardcode_into_libs=$hardcode_into_libs
23820 # Flag to hardcode \$libdir into a binary during linking.
23821 # This must work even if \$libdir does not exist.
23822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23824 # If ld is used when linking, flag to hardcode \$libdir into
23825 # a binary during linking. This must work even if \$libdir does
23826 # not exist.
23827 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23829 # Whether we need a single -rpath flag with a separated argument.
23830 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23832 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23833 # resulting binary.
23834 hardcode_direct=$hardcode_direct_F77
23836 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23837 # resulting binary.
23838 hardcode_minus_L=$hardcode_minus_L_F77
23840 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23841 # the resulting binary.
23842 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23844 # Set to yes if building a shared library automatically hardcodes DIR into the library
23845 # and all subsequent libraries and executables linked against it.
23846 hardcode_automatic=$hardcode_automatic_F77
23848 # Variables whose values should be saved in libtool wrapper scripts and
23849 # restored at relink time.
23850 variables_saved_for_relink="$variables_saved_for_relink"
23852 # Whether libtool must link a program against all its dependency libraries.
23853 link_all_deplibs=$link_all_deplibs_F77
23855 # Compile-time system search path for libraries
23856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23858 # Run-time system search path for libraries
23859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23861 # Fix the shell variable \$srcfile for the compiler.
23862 fix_srcfile_path="$fix_srcfile_path_F77"
23864 # Set to yes if exported symbols are required.
23865 always_export_symbols=$always_export_symbols_F77
23867 # The commands to list exported symbols.
23868 export_symbols_cmds=$lt_export_symbols_cmds_F77
23870 # The commands to extract the exported symbol list from a shared archive.
23871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23873 # Symbols that should not be listed in the preloaded symbols.
23874 exclude_expsyms=$lt_exclude_expsyms_F77
23876 # Symbols that must always be exported.
23877 include_expsyms=$lt_include_expsyms_F77
23879 # ### END LIBTOOL TAG CONFIG: $tagname
23881 __EOF__
23884 else
23885 # If there is no Makefile yet, we rely on a make rule to execute
23886 # `config.status --recheck' to rerun these tests and create the
23887 # libtool script then.
23888 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23889 if test -f "$ltmain_in"; then
23890 test -f Makefile && make "$ltmain"
23895 ac_ext=c
23896 ac_cpp='$CPP $CPPFLAGS'
23897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23901 CC="$lt_save_CC"
23903 else
23904 tagname=""
23908 GCJ)
23909 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23910 ac_ext=c
23911 ac_cpp='$CPP $CPPFLAGS'
23912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23917 # Source file extension for Java test sources.
23918 ac_ext=java
23920 # Object file extension for compiled Java test sources.
23921 objext=o
23922 objext_GCJ=$objext
23924 # Code to be used in simple compile tests
23925 lt_simple_compile_test_code="class foo {}\n"
23927 # Code to be used in simple link tests
23928 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23930 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23932 # If no C compiler was specified, use CC.
23933 LTCC=${LTCC-"$CC"}
23935 # If no C compiler flags were specified, use CFLAGS.
23936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23938 # Allow CC to be a program name with arguments.
23939 compiler=$CC
23942 # save warnings/boilerplate of simple test code
23943 ac_outfile=conftest.$ac_objext
23944 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23946 _lt_compiler_boilerplate=`cat conftest.err`
23947 $rm conftest*
23949 ac_outfile=conftest.$ac_objext
23950 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23952 _lt_linker_boilerplate=`cat conftest.err`
23953 $rm conftest*
23956 # Allow CC to be a program name with arguments.
23957 lt_save_CC="$CC"
23958 CC=${GCJ-"gcj"}
23959 compiler=$CC
23960 compiler_GCJ=$CC
23961 for cc_temp in $compiler""; do
23962 case $cc_temp in
23963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23965 \-*) ;;
23966 *) break;;
23967 esac
23968 done
23969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23972 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23973 archive_cmds_need_lc_GCJ=no
23975 old_archive_cmds_GCJ=$old_archive_cmds
23978 lt_prog_compiler_no_builtin_flag_GCJ=
23980 if test "$GCC" = yes; then
23981 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23984 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23985 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23986 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 else
23989 lt_cv_prog_compiler_rtti_exceptions=no
23990 ac_outfile=conftest.$ac_objext
23991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23992 lt_compiler_flag="-fno-rtti -fno-exceptions"
23993 # Insert the option either (1) after the last *FLAGS variable, or
23994 # (2) before a word containing "conftest.", or (3) at the end.
23995 # Note that $ac_compile itself does not contain backslashes and begins
23996 # with a dollar sign (not a hyphen), so the echo should work correctly.
23997 # The option is referenced via a variable to avoid confusing sed.
23998 lt_compile=`echo "$ac_compile" | $SED \
23999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24001 -e 's:$: $lt_compiler_flag:'`
24002 (eval echo "\"\$as_me:24002: $lt_compile\"" >&5)
24003 (eval "$lt_compile" 2>conftest.err)
24004 ac_status=$?
24005 cat conftest.err >&5
24006 echo "$as_me:24006: \$? = $ac_status" >&5
24007 if (exit $ac_status) && test -s "$ac_outfile"; then
24008 # The compiler can only warn and ignore the option if not recognized
24009 # So say no if there are warnings other than the usual output.
24010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24013 lt_cv_prog_compiler_rtti_exceptions=yes
24016 $rm conftest*
24019 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24020 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24023 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24024 else
24030 lt_prog_compiler_wl_GCJ=
24031 lt_prog_compiler_pic_GCJ=
24032 lt_prog_compiler_static_GCJ=
24034 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24037 if test "$GCC" = yes; then
24038 lt_prog_compiler_wl_GCJ='-Wl,'
24039 lt_prog_compiler_static_GCJ='-static'
24041 case $host_os in
24042 aix*)
24043 # All AIX code is PIC.
24044 if test "$host_cpu" = ia64; then
24045 # AIX 5 now supports IA64 processor
24046 lt_prog_compiler_static_GCJ='-Bstatic'
24050 amigaos*)
24051 # FIXME: we need at least 68020 code to build shared libraries, but
24052 # adding the `-m68020' flag to GCC prevents building anything better,
24053 # like `-m68040'.
24054 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24057 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24058 # PIC is the default for these OSes.
24061 mingw* | pw32* | os2*)
24062 # This hack is so that the source file can tell whether it is being
24063 # built for inclusion in a dll (and should export symbols for example).
24064 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24067 darwin* | rhapsody*)
24068 # PIC is the default on this platform
24069 # Common symbols not allowed in MH_DYLIB files
24070 lt_prog_compiler_pic_GCJ='-fno-common'
24073 interix3*)
24074 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24075 # Instead, we relocate shared libraries at runtime.
24078 msdosdjgpp*)
24079 # Just because we use GCC doesn't mean we suddenly get shared libraries
24080 # on systems that don't support them.
24081 lt_prog_compiler_can_build_shared_GCJ=no
24082 enable_shared=no
24085 sysv4*MP*)
24086 if test -d /usr/nec; then
24087 lt_prog_compiler_pic_GCJ=-Kconform_pic
24091 hpux*)
24092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24093 # not for PA HP-UX.
24094 case $host_cpu in
24095 hppa*64*|ia64*)
24096 # +Z the default
24099 lt_prog_compiler_pic_GCJ='-fPIC'
24101 esac
24105 lt_prog_compiler_pic_GCJ='-fPIC'
24107 esac
24108 else
24109 # PORTME Check for flag to pass linker flags through the system compiler.
24110 case $host_os in
24111 aix*)
24112 lt_prog_compiler_wl_GCJ='-Wl,'
24113 if test "$host_cpu" = ia64; then
24114 # AIX 5 now supports IA64 processor
24115 lt_prog_compiler_static_GCJ='-Bstatic'
24116 else
24117 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24120 darwin*)
24121 # PIC is the default on this platform
24122 # Common symbols not allowed in MH_DYLIB files
24123 case $cc_basename in
24124 xlc*)
24125 lt_prog_compiler_pic_GCJ='-qnocommon'
24126 lt_prog_compiler_wl_GCJ='-Wl,'
24128 esac
24131 mingw* | pw32* | os2*)
24132 # This hack is so that the source file can tell whether it is being
24133 # built for inclusion in a dll (and should export symbols for example).
24134 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24137 hpux9* | hpux10* | hpux11*)
24138 lt_prog_compiler_wl_GCJ='-Wl,'
24139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24140 # not for PA HP-UX.
24141 case $host_cpu in
24142 hppa*64*|ia64*)
24143 # +Z the default
24146 lt_prog_compiler_pic_GCJ='+Z'
24148 esac
24149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24150 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24153 irix5* | irix6* | nonstopux*)
24154 lt_prog_compiler_wl_GCJ='-Wl,'
24155 # PIC (with -KPIC) is the default.
24156 lt_prog_compiler_static_GCJ='-non_shared'
24159 newsos6)
24160 lt_prog_compiler_pic_GCJ='-KPIC'
24161 lt_prog_compiler_static_GCJ='-Bstatic'
24164 linux*)
24165 case $cc_basename in
24166 icc* | ecc*)
24167 lt_prog_compiler_wl_GCJ='-Wl,'
24168 lt_prog_compiler_pic_GCJ='-KPIC'
24169 lt_prog_compiler_static_GCJ='-static'
24171 pgcc* | pgf77* | pgf90* | pgf95*)
24172 # Portland Group compilers (*not* the Pentium gcc compiler,
24173 # which looks to be a dead project)
24174 lt_prog_compiler_wl_GCJ='-Wl,'
24175 lt_prog_compiler_pic_GCJ='-fpic'
24176 lt_prog_compiler_static_GCJ='-Bstatic'
24178 ccc*)
24179 lt_prog_compiler_wl_GCJ='-Wl,'
24180 # All Alpha code is PIC.
24181 lt_prog_compiler_static_GCJ='-non_shared'
24183 esac
24186 osf3* | osf4* | osf5*)
24187 lt_prog_compiler_wl_GCJ='-Wl,'
24188 # All OSF/1 code is PIC.
24189 lt_prog_compiler_static_GCJ='-non_shared'
24192 solaris*)
24193 lt_prog_compiler_pic_GCJ='-KPIC'
24194 lt_prog_compiler_static_GCJ='-Bstatic'
24195 case $cc_basename in
24196 f77* | f90* | f95*)
24197 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24199 lt_prog_compiler_wl_GCJ='-Wl,';;
24200 esac
24203 sunos4*)
24204 lt_prog_compiler_wl_GCJ='-Qoption ld '
24205 lt_prog_compiler_pic_GCJ='-PIC'
24206 lt_prog_compiler_static_GCJ='-Bstatic'
24209 sysv4 | sysv4.2uw2* | sysv4.3*)
24210 lt_prog_compiler_wl_GCJ='-Wl,'
24211 lt_prog_compiler_pic_GCJ='-KPIC'
24212 lt_prog_compiler_static_GCJ='-Bstatic'
24215 sysv4*MP*)
24216 if test -d /usr/nec ;then
24217 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24218 lt_prog_compiler_static_GCJ='-Bstatic'
24222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24223 lt_prog_compiler_wl_GCJ='-Wl,'
24224 lt_prog_compiler_pic_GCJ='-KPIC'
24225 lt_prog_compiler_static_GCJ='-Bstatic'
24228 unicos*)
24229 lt_prog_compiler_wl_GCJ='-Wl,'
24230 lt_prog_compiler_can_build_shared_GCJ=no
24233 uts4*)
24234 lt_prog_compiler_pic_GCJ='-pic'
24235 lt_prog_compiler_static_GCJ='-Bstatic'
24239 lt_prog_compiler_can_build_shared_GCJ=no
24241 esac
24244 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24245 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24248 # Check to make sure the PIC flag actually works.
24250 if test -n "$lt_prog_compiler_pic_GCJ"; then
24252 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24253 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24254 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24255 echo $ECHO_N "(cached) $ECHO_C" >&6
24256 else
24257 lt_prog_compiler_pic_works_GCJ=no
24258 ac_outfile=conftest.$ac_objext
24259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24260 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24261 # Insert the option either (1) after the last *FLAGS variable, or
24262 # (2) before a word containing "conftest.", or (3) at the end.
24263 # Note that $ac_compile itself does not contain backslashes and begins
24264 # with a dollar sign (not a hyphen), so the echo should work correctly.
24265 # The option is referenced via a variable to avoid confusing sed.
24266 lt_compile=`echo "$ac_compile" | $SED \
24267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24269 -e 's:$: $lt_compiler_flag:'`
24270 (eval echo "\"\$as_me:24270: $lt_compile\"" >&5)
24271 (eval "$lt_compile" 2>conftest.err)
24272 ac_status=$?
24273 cat conftest.err >&5
24274 echo "$as_me:24274: \$? = $ac_status" >&5
24275 if (exit $ac_status) && test -s "$ac_outfile"; then
24276 # The compiler can only warn and ignore the option if not recognized
24277 # So say no if there are warnings other than the usual output.
24278 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24281 lt_prog_compiler_pic_works_GCJ=yes
24284 $rm conftest*
24287 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24288 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24290 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24291 case $lt_prog_compiler_pic_GCJ in
24292 "" | " "*) ;;
24293 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24294 esac
24295 else
24296 lt_prog_compiler_pic_GCJ=
24297 lt_prog_compiler_can_build_shared_GCJ=no
24301 case $host_os in
24302 # For platforms which do not support PIC, -DPIC is meaningless:
24303 *djgpp*)
24304 lt_prog_compiler_pic_GCJ=
24307 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24309 esac
24312 # Check to make sure the static flag actually works.
24314 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24315 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24316 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24317 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24319 else
24320 lt_prog_compiler_static_works_GCJ=no
24321 save_LDFLAGS="$LDFLAGS"
24322 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24323 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24325 # The linker can only warn and ignore the option if not recognized
24326 # So say no if there are warnings
24327 if test -s conftest.err; then
24328 # Append any errors to the config.log.
24329 cat conftest.err 1>&5
24330 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24332 if diff conftest.exp conftest.er2 >/dev/null; then
24333 lt_prog_compiler_static_works_GCJ=yes
24335 else
24336 lt_prog_compiler_static_works_GCJ=yes
24339 $rm conftest*
24340 LDFLAGS="$save_LDFLAGS"
24343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24344 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24346 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24348 else
24349 lt_prog_compiler_static_GCJ=
24353 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24355 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358 lt_cv_prog_compiler_c_o_GCJ=no
24359 $rm -r conftest 2>/dev/null
24360 mkdir conftest
24361 cd conftest
24362 mkdir out
24363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24365 lt_compiler_flag="-o out/conftest2.$ac_objext"
24366 # Insert the option either (1) after the last *FLAGS variable, or
24367 # (2) before a word containing "conftest.", or (3) at the end.
24368 # Note that $ac_compile itself does not contain backslashes and begins
24369 # with a dollar sign (not a hyphen), so the echo should work correctly.
24370 lt_compile=`echo "$ac_compile" | $SED \
24371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24373 -e 's:$: $lt_compiler_flag:'`
24374 (eval echo "\"\$as_me:24374: $lt_compile\"" >&5)
24375 (eval "$lt_compile" 2>out/conftest.err)
24376 ac_status=$?
24377 cat out/conftest.err >&5
24378 echo "$as_me:24378: \$? = $ac_status" >&5
24379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24380 then
24381 # The compiler can only warn and ignore the option if not recognized
24382 # So say no if there are warnings
24383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24386 lt_cv_prog_compiler_c_o_GCJ=yes
24389 chmod u+w . 2>&5
24390 $rm conftest*
24391 # SGI C++ compiler will create directory out/ii_files/ for
24392 # template instantiation
24393 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24394 $rm out/* && rmdir out
24395 cd ..
24396 rmdir conftest
24397 $rm conftest*
24400 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24401 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24404 hard_links="nottested"
24405 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24406 # do not overwrite the value of need_locks provided by the user
24407 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24408 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24409 hard_links=yes
24410 $rm conftest*
24411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24412 touch conftest.a
24413 ln conftest.a conftest.b 2>&5 || hard_links=no
24414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24415 { echo "$as_me:$LINENO: result: $hard_links" >&5
24416 echo "${ECHO_T}$hard_links" >&6; }
24417 if test "$hard_links" = no; then
24418 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24419 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24420 need_locks=warn
24422 else
24423 need_locks=no
24426 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24427 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24429 runpath_var=
24430 allow_undefined_flag_GCJ=
24431 enable_shared_with_static_runtimes_GCJ=no
24432 archive_cmds_GCJ=
24433 archive_expsym_cmds_GCJ=
24434 old_archive_From_new_cmds_GCJ=
24435 old_archive_from_expsyms_cmds_GCJ=
24436 export_dynamic_flag_spec_GCJ=
24437 whole_archive_flag_spec_GCJ=
24438 thread_safe_flag_spec_GCJ=
24439 hardcode_libdir_flag_spec_GCJ=
24440 hardcode_libdir_flag_spec_ld_GCJ=
24441 hardcode_libdir_separator_GCJ=
24442 hardcode_direct_GCJ=no
24443 hardcode_minus_L_GCJ=no
24444 hardcode_shlibpath_var_GCJ=unsupported
24445 link_all_deplibs_GCJ=unknown
24446 hardcode_automatic_GCJ=no
24447 module_cmds_GCJ=
24448 module_expsym_cmds_GCJ=
24449 always_export_symbols_GCJ=no
24450 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24451 # include_expsyms should be a list of space-separated symbols to be *always*
24452 # included in the symbol list
24453 include_expsyms_GCJ=
24454 # exclude_expsyms can be an extended regexp of symbols to exclude
24455 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24456 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24457 # as well as any symbol that contains `d'.
24458 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24459 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24460 # platforms (ab)use it in PIC code, but their linkers get confused if
24461 # the symbol is explicitly referenced. Since portable code cannot
24462 # rely on this symbol name, it's probably fine to never include it in
24463 # preloaded symbol tables.
24464 extract_expsyms_cmds=
24465 # Just being paranoid about ensuring that cc_basename is set.
24466 for cc_temp in $compiler""; do
24467 case $cc_temp in
24468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24470 \-*) ;;
24471 *) break;;
24472 esac
24473 done
24474 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24476 case $host_os in
24477 cygwin* | mingw* | pw32*)
24478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24479 # When not using gcc, we currently assume that we are using
24480 # Microsoft Visual C++.
24481 if test "$GCC" != yes; then
24482 with_gnu_ld=no
24485 interix*)
24486 # we just hope/assume this is gcc and not c89 (= MSVC++)
24487 with_gnu_ld=yes
24489 openbsd*)
24490 with_gnu_ld=no
24492 esac
24494 ld_shlibs_GCJ=yes
24495 if test "$with_gnu_ld" = yes; then
24496 # If archive_cmds runs LD, not CC, wlarc should be empty
24497 wlarc='${wl}'
24499 # Set some defaults for GNU ld with shared library support. These
24500 # are reset later if shared libraries are not supported. Putting them
24501 # here allows them to be overridden if necessary.
24502 runpath_var=LD_RUN_PATH
24503 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24504 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24505 # ancient GNU ld didn't support --whole-archive et. al.
24506 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24507 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24508 else
24509 whole_archive_flag_spec_GCJ=
24511 supports_anon_versioning=no
24512 case `$LD -v 2>/dev/null` in
24513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24516 *\ 2.11.*) ;; # other 2.11 versions
24517 *) supports_anon_versioning=yes ;;
24518 esac
24520 # See if GNU ld supports shared libraries.
24521 case $host_os in
24522 aix3* | aix4* | aix5*)
24523 # On AIX/PPC, the GNU linker is very broken
24524 if test "$host_cpu" != ia64; then
24525 ld_shlibs_GCJ=no
24526 cat <<EOF 1>&2
24528 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24529 *** to be unable to reliably create shared libraries on AIX.
24530 *** Therefore, libtool is disabling shared libraries support. If you
24531 *** really care for shared libraries, you may want to modify your PATH
24532 *** so that a non-GNU linker is found, and then restart.
24538 amigaos*)
24539 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)'
24540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24541 hardcode_minus_L_GCJ=yes
24543 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24544 # that the semantics of dynamic libraries on AmigaOS, at least up
24545 # to version 4, is to share data among multiple programs linked
24546 # with the same dynamic library. Since this doesn't match the
24547 # behavior of shared libraries on other platforms, we can't use
24548 # them.
24549 ld_shlibs_GCJ=no
24552 beos*)
24553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24554 allow_undefined_flag_GCJ=unsupported
24555 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24556 # support --undefined. This deserves some investigation. FIXME
24557 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24558 else
24559 ld_shlibs_GCJ=no
24563 cygwin* | mingw* | pw32*)
24564 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24565 # as there is no search path for DLLs.
24566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24567 allow_undefined_flag_GCJ=unsupported
24568 always_export_symbols_GCJ=no
24569 enable_shared_with_static_runtimes_GCJ=yes
24570 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24573 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24574 # If the export-symbols file already is a .def file (1st line
24575 # is EXPORTS), use it as is; otherwise, prepend...
24576 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24577 cp $export_symbols $output_objdir/$soname.def;
24578 else
24579 echo EXPORTS > $output_objdir/$soname.def;
24580 cat $export_symbols >> $output_objdir/$soname.def;
24582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24583 else
24584 ld_shlibs_GCJ=no
24588 interix3*)
24589 hardcode_direct_GCJ=no
24590 hardcode_shlibpath_var_GCJ=no
24591 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24592 export_dynamic_flag_spec_GCJ='${wl}-E'
24593 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24594 # Instead, shared libraries are loaded at an image base (0x10000000 by
24595 # default) and relocated if they conflict, which is a slow very memory
24596 # consuming and fragmenting process. To avoid this, we pick a random,
24597 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24598 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24599 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'
24600 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'
24603 linux*)
24604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24605 tmp_addflag=
24606 case $cc_basename,$host_cpu in
24607 pgcc*) # Portland Group C compiler
24608 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'
24609 tmp_addflag=' $pic_flag'
24611 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24612 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'
24613 tmp_addflag=' $pic_flag -Mnomain' ;;
24614 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24615 tmp_addflag=' -i_dynamic' ;;
24616 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24617 tmp_addflag=' -i_dynamic -nofor_main' ;;
24618 ifc* | ifort*) # Intel Fortran compiler
24619 tmp_addflag=' -nofor_main' ;;
24620 esac
24621 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24623 if test $supports_anon_versioning = yes; then
24624 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24626 $echo "local: *; };" >> $output_objdir/$libname.ver~
24627 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24629 else
24630 ld_shlibs_GCJ=no
24634 netbsd*)
24635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24636 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24637 wlarc=
24638 else
24639 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24640 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24644 solaris*)
24645 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24646 ld_shlibs_GCJ=no
24647 cat <<EOF 1>&2
24649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24650 *** create shared libraries on Solaris systems. Therefore, libtool
24651 *** is disabling shared libraries support. We urge you to upgrade GNU
24652 *** binutils to release 2.9.1 or newer. Another option is to modify
24653 *** your PATH or compiler configuration so that the native linker is
24654 *** used, and then restart.
24657 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24658 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24659 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24660 else
24661 ld_shlibs_GCJ=no
24665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24666 case `$LD -v 2>&1` in
24667 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24668 ld_shlibs_GCJ=no
24669 cat <<_LT_EOF 1>&2
24671 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24672 *** reliably create shared libraries on SCO systems. Therefore, libtool
24673 *** is disabling shared libraries support. We urge you to upgrade GNU
24674 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24675 *** your PATH or compiler configuration so that the native linker is
24676 *** used, and then restart.
24678 _LT_EOF
24681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24682 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24683 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24684 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24685 else
24686 ld_shlibs_GCJ=no
24689 esac
24692 sunos4*)
24693 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24694 wlarc=
24695 hardcode_direct_GCJ=yes
24696 hardcode_shlibpath_var_GCJ=no
24700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24701 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24702 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24703 else
24704 ld_shlibs_GCJ=no
24707 esac
24709 if test "$ld_shlibs_GCJ" = no; then
24710 runpath_var=
24711 hardcode_libdir_flag_spec_GCJ=
24712 export_dynamic_flag_spec_GCJ=
24713 whole_archive_flag_spec_GCJ=
24715 else
24716 # PORTME fill in a description of your system's linker (not GNU ld)
24717 case $host_os in
24718 aix3*)
24719 allow_undefined_flag_GCJ=unsupported
24720 always_export_symbols_GCJ=yes
24721 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'
24722 # Note: this linker hardcodes the directories in LIBPATH if there
24723 # are no directories specified by -L.
24724 hardcode_minus_L_GCJ=yes
24725 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24726 # Neither direct hardcoding nor static linking is supported with a
24727 # broken collect2.
24728 hardcode_direct_GCJ=unsupported
24732 aix4* | aix5*)
24733 if test "$host_cpu" = ia64; then
24734 # On IA64, the linker does run time linking by default, so we don't
24735 # have to do anything special.
24736 aix_use_runtimelinking=no
24737 exp_sym_flag='-Bexport'
24738 no_entry_flag=""
24739 else
24740 # If we're using GNU nm, then we don't want the "-C" option.
24741 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24742 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24743 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'
24744 else
24745 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'
24747 aix_use_runtimelinking=no
24749 # Test if we are trying to use run time linking or normal
24750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24751 # need to do runtime linking.
24752 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24753 for ld_flag in $LDFLAGS; do
24754 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24755 aix_use_runtimelinking=yes
24756 break
24758 done
24760 esac
24762 exp_sym_flag='-bexport'
24763 no_entry_flag='-bnoentry'
24766 # When large executables or shared objects are built, AIX ld can
24767 # have problems creating the table of contents. If linking a library
24768 # or program results in "error TOC overflow" add -mminimal-toc to
24769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24772 archive_cmds_GCJ=''
24773 hardcode_direct_GCJ=yes
24774 hardcode_libdir_separator_GCJ=':'
24775 link_all_deplibs_GCJ=yes
24777 if test "$GCC" = yes; then
24778 case $host_os in aix4.[012]|aix4.[012].*)
24779 # We only want to do this on AIX 4.2 and lower, the check
24780 # below for broken collect2 doesn't work under 4.3+
24781 collect2name=`${CC} -print-prog-name=collect2`
24782 if test -f "$collect2name" && \
24783 strings "$collect2name" | grep resolve_lib_name >/dev/null
24784 then
24785 # We have reworked collect2
24786 hardcode_direct_GCJ=yes
24787 else
24788 # We have old collect2
24789 hardcode_direct_GCJ=unsupported
24790 # It fails to find uninstalled libraries when the uninstalled
24791 # path is not listed in the libpath. Setting hardcode_minus_L
24792 # to unsupported forces relinking
24793 hardcode_minus_L_GCJ=yes
24794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24795 hardcode_libdir_separator_GCJ=
24798 esac
24799 shared_flag='-shared'
24800 if test "$aix_use_runtimelinking" = yes; then
24801 shared_flag="$shared_flag "'${wl}-G'
24803 else
24804 # not using gcc
24805 if test "$host_cpu" = ia64; then
24806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24807 # chokes on -Wl,-G. The following line is correct:
24808 shared_flag='-G'
24809 else
24810 if test "$aix_use_runtimelinking" = yes; then
24811 shared_flag='${wl}-G'
24812 else
24813 shared_flag='${wl}-bM:SRE'
24818 # It seems that -bexpall does not export symbols beginning with
24819 # underscore (_), so it is better to generate a list of symbols to export.
24820 always_export_symbols_GCJ=yes
24821 if test "$aix_use_runtimelinking" = yes; then
24822 # Warning - without using the other runtime loading flags (-brtl),
24823 # -berok will link without error, but may produce a broken library.
24824 allow_undefined_flag_GCJ='-berok'
24825 # Determine the default libpath from the value encoded in an empty executable.
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h. */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24834 main ()
24838 return 0;
24840 _ACEOF
24841 rm -f conftest.$ac_objext conftest$ac_exeext
24842 if { (ac_try="$ac_link"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24846 esac
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_link") 2>conftest.er1
24849 ac_status=$?
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
24855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24856 { (case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24859 esac
24860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861 (eval "$ac_try") 2>&5
24862 ac_status=$?
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; } &&
24865 { ac_try='test -s conftest$ac_exeext'
24866 { (case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24869 esac
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_try") 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24878 # Check for a 64-bit object if we didn't find anything.
24879 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; }
24880 }'`; fi
24881 else
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24888 rm -f core conftest.err conftest.$ac_objext \
24889 conftest$ac_exeext conftest.$ac_ext
24890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24892 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24893 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"
24894 else
24895 if test "$host_cpu" = ia64; then
24896 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24897 allow_undefined_flag_GCJ="-z nodefs"
24898 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"
24899 else
24900 # Determine the default libpath from the value encoded in an empty executable.
24901 cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h. */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24909 main ()
24913 return 0;
24915 _ACEOF
24916 rm -f conftest.$ac_objext conftest$ac_exeext
24917 if { (ac_try="$ac_link"
24918 case "(($ac_try" in
24919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24921 esac
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_link") 2>conftest.er1
24924 ac_status=$?
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24931 { (case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24934 esac
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_try") 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest$ac_exeext'
24941 { (case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24944 esac
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946 (eval "$ac_try") 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; }; then
24951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24953 # Check for a 64-bit object if we didn't find anything.
24954 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; }
24955 }'`; fi
24956 else
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24963 rm -f core conftest.err conftest.$ac_objext \
24964 conftest$ac_exeext conftest.$ac_ext
24965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24967 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24968 # Warning - without using the other run time loading flags,
24969 # -berok will link without error, but may produce a broken library.
24970 no_undefined_flag_GCJ=' ${wl}-bernotok'
24971 allow_undefined_flag_GCJ=' ${wl}-berok'
24972 # Exported symbols can be pulled into shared objects from archives
24973 whole_archive_flag_spec_GCJ='$convenience'
24974 archive_cmds_need_lc_GCJ=yes
24975 # This is similar to how AIX traditionally builds its shared libraries.
24976 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'
24981 amigaos*)
24982 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)'
24983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984 hardcode_minus_L_GCJ=yes
24985 # see comment about different semantics on the GNU ld section
24986 ld_shlibs_GCJ=no
24989 bsdi[45]*)
24990 export_dynamic_flag_spec_GCJ=-rdynamic
24993 cygwin* | mingw* | pw32*)
24994 # When not using gcc, we currently assume that we are using
24995 # Microsoft Visual C++.
24996 # hardcode_libdir_flag_spec is actually meaningless, as there is
24997 # no search path for DLLs.
24998 hardcode_libdir_flag_spec_GCJ=' '
24999 allow_undefined_flag_GCJ=unsupported
25000 # Tell ltmain to make .lib files, not .a files.
25001 libext=lib
25002 # Tell ltmain to make .dll files, not .so files.
25003 shrext_cmds=".dll"
25004 # FIXME: Setting linknames here is a bad hack.
25005 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25006 # The linker will automatically build a .lib file if we build a DLL.
25007 old_archive_From_new_cmds_GCJ='true'
25008 # FIXME: Should let the user specify the lib program.
25009 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25010 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25011 enable_shared_with_static_runtimes_GCJ=yes
25014 darwin* | rhapsody*)
25015 case $host_os in
25016 rhapsody* | darwin1.[012])
25017 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25019 *) # Darwin 1.3 on
25020 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25021 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25022 else
25023 case ${MACOSX_DEPLOYMENT_TARGET} in
25024 10.[012])
25025 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25027 10.*)
25028 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25030 esac
25033 esac
25034 archive_cmds_need_lc_GCJ=no
25035 hardcode_direct_GCJ=no
25036 hardcode_automatic_GCJ=yes
25037 hardcode_shlibpath_var_GCJ=unsupported
25038 whole_archive_flag_spec_GCJ=''
25039 link_all_deplibs_GCJ=yes
25040 if test "$GCC" = yes ; then
25041 output_verbose_link_cmd='echo'
25042 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25043 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25045 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}'
25046 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}'
25047 else
25048 case $cc_basename in
25049 xlc*)
25050 output_verbose_link_cmd='echo'
25051 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25052 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25054 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}'
25055 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}'
25058 ld_shlibs_GCJ=no
25060 esac
25064 dgux*)
25065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25066 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25067 hardcode_shlibpath_var_GCJ=no
25070 freebsd1*)
25071 ld_shlibs_GCJ=no
25074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25075 # support. Future versions do this automatically, but an explicit c++rt0.o
25076 # does not break anything, and helps significantly (at the cost of a little
25077 # extra space).
25078 freebsd2.2*)
25079 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25080 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25081 hardcode_direct_GCJ=yes
25082 hardcode_shlibpath_var_GCJ=no
25085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25086 freebsd2*)
25087 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25088 hardcode_direct_GCJ=yes
25089 hardcode_minus_L_GCJ=yes
25090 hardcode_shlibpath_var_GCJ=no
25093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25094 freebsd* | kfreebsd*-gnu | dragonfly*)
25095 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25096 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25097 hardcode_direct_GCJ=yes
25098 hardcode_shlibpath_var_GCJ=no
25101 hpux9*)
25102 if test "$GCC" = yes; then
25103 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'
25104 else
25105 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'
25107 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25108 hardcode_libdir_separator_GCJ=:
25109 hardcode_direct_GCJ=yes
25111 # hardcode_minus_L: Not really in the search PATH,
25112 # but as the default location of the library.
25113 hardcode_minus_L_GCJ=yes
25114 export_dynamic_flag_spec_GCJ='${wl}-E'
25117 hpux10*)
25118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25119 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25120 else
25121 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25123 if test "$with_gnu_ld" = no; then
25124 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25125 hardcode_libdir_separator_GCJ=:
25127 hardcode_direct_GCJ=yes
25128 export_dynamic_flag_spec_GCJ='${wl}-E'
25130 # hardcode_minus_L: Not really in the search PATH,
25131 # but as the default location of the library.
25132 hardcode_minus_L_GCJ=yes
25136 hpux11*)
25137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25138 case $host_cpu in
25139 hppa*64*)
25140 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25142 ia64*)
25143 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25146 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25148 esac
25149 else
25150 case $host_cpu in
25151 hppa*64*)
25152 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25154 ia64*)
25155 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25158 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25160 esac
25162 if test "$with_gnu_ld" = no; then
25163 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25164 hardcode_libdir_separator_GCJ=:
25166 case $host_cpu in
25167 hppa*64*|ia64*)
25168 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25169 hardcode_direct_GCJ=no
25170 hardcode_shlibpath_var_GCJ=no
25173 hardcode_direct_GCJ=yes
25174 export_dynamic_flag_spec_GCJ='${wl}-E'
25176 # hardcode_minus_L: Not really in the search PATH,
25177 # but as the default location of the library.
25178 hardcode_minus_L_GCJ=yes
25180 esac
25184 irix5* | irix6* | nonstopux*)
25185 if test "$GCC" = yes; then
25186 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'
25187 else
25188 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'
25189 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25191 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25192 hardcode_libdir_separator_GCJ=:
25193 link_all_deplibs_GCJ=yes
25196 netbsd*)
25197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25198 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25199 else
25200 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25202 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25203 hardcode_direct_GCJ=yes
25204 hardcode_shlibpath_var_GCJ=no
25207 newsos6)
25208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25209 hardcode_direct_GCJ=yes
25210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25211 hardcode_libdir_separator_GCJ=:
25212 hardcode_shlibpath_var_GCJ=no
25215 openbsd*)
25216 hardcode_direct_GCJ=yes
25217 hardcode_shlibpath_var_GCJ=no
25218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25219 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25220 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25222 export_dynamic_flag_spec_GCJ='${wl}-E'
25223 else
25224 case $host_os in
25225 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25226 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25227 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25230 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25231 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25233 esac
25237 os2*)
25238 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25239 hardcode_minus_L_GCJ=yes
25240 allow_undefined_flag_GCJ=unsupported
25241 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'
25242 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25245 osf3*)
25246 if test "$GCC" = yes; then
25247 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25248 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'
25249 else
25250 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25251 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'
25253 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25254 hardcode_libdir_separator_GCJ=:
25257 osf4* | osf5*) # as osf3* with the addition of -msym flag
25258 if test "$GCC" = yes; then
25259 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25260 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'
25261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25262 else
25263 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25264 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'
25265 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~
25266 $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'
25268 # Both c and cxx compiler support -rpath directly
25269 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25271 hardcode_libdir_separator_GCJ=:
25274 solaris*)
25275 no_undefined_flag_GCJ=' -z text'
25276 if test "$GCC" = yes; then
25277 wlarc='${wl}'
25278 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25279 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25280 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25281 else
25282 wlarc=''
25283 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25284 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25287 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25288 hardcode_shlibpath_var_GCJ=no
25289 case $host_os in
25290 solaris2.[0-5] | solaris2.[0-5].*) ;;
25292 # The compiler driver will combine linker options so we
25293 # cannot just pass the convience library names through
25294 # without $wl, iff we do not link with $LD.
25295 # Luckily, gcc supports the same syntax we need for Sun Studio.
25296 # Supported since Solaris 2.6 (maybe 2.5.1?)
25297 case $wlarc in
25299 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25301 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' ;;
25302 esac ;;
25303 esac
25304 link_all_deplibs_GCJ=yes
25307 sunos4*)
25308 if test "x$host_vendor" = xsequent; then
25309 # Use $CC to link under sequent, because it throws in some extra .o
25310 # files that make .init and .fini sections work.
25311 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25312 else
25313 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25316 hardcode_direct_GCJ=yes
25317 hardcode_minus_L_GCJ=yes
25318 hardcode_shlibpath_var_GCJ=no
25321 sysv4)
25322 case $host_vendor in
25323 sni)
25324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25325 hardcode_direct_GCJ=yes # is this really true???
25327 siemens)
25328 ## LD is ld it makes a PLAMLIB
25329 ## CC just makes a GrossModule.
25330 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25331 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25332 hardcode_direct_GCJ=no
25334 motorola)
25335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25336 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25338 esac
25339 runpath_var='LD_RUN_PATH'
25340 hardcode_shlibpath_var_GCJ=no
25343 sysv4.3*)
25344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25345 hardcode_shlibpath_var_GCJ=no
25346 export_dynamic_flag_spec_GCJ='-Bexport'
25349 sysv4*MP*)
25350 if test -d /usr/nec; then
25351 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25352 hardcode_shlibpath_var_GCJ=no
25353 runpath_var=LD_RUN_PATH
25354 hardcode_runpath_var=yes
25355 ld_shlibs_GCJ=yes
25359 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25360 no_undefined_flag_GCJ='${wl}-z,text'
25361 archive_cmds_need_lc_GCJ=no
25362 hardcode_shlibpath_var_GCJ=no
25363 runpath_var='LD_RUN_PATH'
25365 if test "$GCC" = yes; then
25366 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25367 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25368 else
25369 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25370 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25374 sysv5* | sco3.2v5* | sco5v6*)
25375 # Note: We can NOT use -z defs as we might desire, because we do not
25376 # link with -lc, and that would cause any symbols used from libc to
25377 # always be unresolved, which means just about no library would
25378 # ever link correctly. If we're not using GNU ld we use -z text
25379 # though, which does catch some bad symbols but isn't as heavy-handed
25380 # as -z defs.
25381 no_undefined_flag_GCJ='${wl}-z,text'
25382 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25383 archive_cmds_need_lc_GCJ=no
25384 hardcode_shlibpath_var_GCJ=no
25385 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25386 hardcode_libdir_separator_GCJ=':'
25387 link_all_deplibs_GCJ=yes
25388 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25389 runpath_var='LD_RUN_PATH'
25391 if test "$GCC" = yes; then
25392 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25393 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25394 else
25395 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25396 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25400 uts4*)
25401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25402 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25403 hardcode_shlibpath_var_GCJ=no
25407 ld_shlibs_GCJ=no
25409 esac
25412 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25413 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25414 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25417 # Do we need to explicitly link libc?
25419 case "x$archive_cmds_need_lc_GCJ" in
25420 x|xyes)
25421 # Assume -lc should be added
25422 archive_cmds_need_lc_GCJ=yes
25424 if test "$enable_shared" = yes && test "$GCC" = yes; then
25425 case $archive_cmds_GCJ in
25426 *'~'*)
25427 # FIXME: we may have to deal with multi-command sequences.
25429 '$CC '*)
25430 # Test whether the compiler implicitly links with -lc since on some
25431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25432 # to ld, don't add -lc before -lgcc.
25433 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25434 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25435 $rm conftest*
25436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25439 (eval $ac_compile) 2>&5
25440 ac_status=$?
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } 2>conftest.err; then
25443 soname=conftest
25444 lib=conftest
25445 libobjs=conftest.$ac_objext
25446 deplibs=
25447 wl=$lt_prog_compiler_wl_GCJ
25448 pic_flag=$lt_prog_compiler_pic_GCJ
25449 compiler_flags=-v
25450 linker_flags=-v
25451 verstring=
25452 output_objdir=.
25453 libname=conftest
25454 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25455 allow_undefined_flag_GCJ=
25456 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25457 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }
25461 then
25462 archive_cmds_need_lc_GCJ=no
25463 else
25464 archive_cmds_need_lc_GCJ=yes
25466 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25467 else
25468 cat conftest.err 1>&5
25470 $rm conftest*
25471 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25472 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25474 esac
25477 esac
25479 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25480 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25481 library_names_spec=
25482 libname_spec='lib$name'
25483 soname_spec=
25484 shrext_cmds=".so"
25485 postinstall_cmds=
25486 postuninstall_cmds=
25487 finish_cmds=
25488 finish_eval=
25489 shlibpath_var=
25490 shlibpath_overrides_runpath=unknown
25491 version_type=none
25492 dynamic_linker="$host_os ld.so"
25493 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25494 if test "$GCC" = yes; then
25495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25496 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25497 # if the path contains ";" then we assume it to be the separator
25498 # otherwise default to the standard path separator (i.e. ":") - it is
25499 # assumed that no part of a normal pathname contains ";" but that should
25500 # okay in the real world where ";" in dirpaths is itself problematic.
25501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25502 else
25503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25505 else
25506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25508 need_lib_prefix=unknown
25509 hardcode_into_libs=no
25511 # when you set need_version to no, make sure it does not cause -set_version
25512 # flags to be left without arguments
25513 need_version=unknown
25515 case $host_os in
25516 aix3*)
25517 version_type=linux
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25519 shlibpath_var=LIBPATH
25521 # AIX 3 has no versioning support, so we append a major version to the name.
25522 soname_spec='${libname}${release}${shared_ext}$major'
25525 aix4* | aix5*)
25526 version_type=linux
25527 need_lib_prefix=no
25528 need_version=no
25529 hardcode_into_libs=yes
25530 if test "$host_cpu" = ia64; then
25531 # AIX 5 supports IA64
25532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 else
25535 # With GCC up to 2.95.x, collect2 would create an import file
25536 # for dependence libraries. The import file would start with
25537 # the line `#! .'. This would cause the generated library to
25538 # depend on `.', always an invalid library. This was fixed in
25539 # development snapshots of GCC prior to 3.0.
25540 case $host_os in
25541 aix4 | aix4.[01] | aix4.[01].*)
25542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25543 echo ' yes '
25544 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25546 else
25547 can_build_shared=no
25550 esac
25551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25552 # soname into executable. Probably we can add versioning support to
25553 # collect2, so additional links can be useful in future.
25554 if test "$aix_use_runtimelinking" = yes; then
25555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25556 # instead of lib<name>.a to let people know that these are not
25557 # typical AIX shared libraries.
25558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25559 else
25560 # We preserve .a as extension for shared libraries through AIX4.2
25561 # and later when we are not doing run time linking.
25562 library_names_spec='${libname}${release}.a $libname.a'
25563 soname_spec='${libname}${release}${shared_ext}$major'
25565 shlibpath_var=LIBPATH
25569 amigaos*)
25570 library_names_spec='$libname.ixlibrary $libname.a'
25571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25572 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'
25575 beos*)
25576 library_names_spec='${libname}${shared_ext}'
25577 dynamic_linker="$host_os ld.so"
25578 shlibpath_var=LIBRARY_PATH
25581 bsdi[45]*)
25582 version_type=linux
25583 need_version=no
25584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25585 soname_spec='${libname}${release}${shared_ext}$major'
25586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25587 shlibpath_var=LD_LIBRARY_PATH
25588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25590 # the default ld.so.conf also contains /usr/contrib/lib and
25591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25592 # libtool to hard-code these into programs
25595 cygwin* | mingw* | pw32*)
25596 version_type=windows
25597 shrext_cmds=".dll"
25598 need_version=no
25599 need_lib_prefix=no
25601 case $GCC,$host_os in
25602 yes,cygwin* | yes,mingw* | yes,pw32*)
25603 library_names_spec='$libname.dll.a'
25604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25605 postinstall_cmds='base_file=`basename \${file}`~
25606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25607 dldir=$destdir/`dirname \$dlpath`~
25608 test -d \$dldir || mkdir -p \$dldir~
25609 $install_prog $dir/$dlname \$dldir/$dlname~
25610 chmod a+x \$dldir/$dlname'
25611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25612 dlpath=$dir/\$dldll~
25613 $rm \$dlpath'
25614 shlibpath_overrides_runpath=yes
25616 case $host_os in
25617 cygwin*)
25618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25622 mingw*)
25623 # MinGW DLLs use traditional 'lib' prefix
25624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25627 # It is most probably a Windows format PATH printed by
25628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25629 # path with ; separators, and with drive letters. We can handle the
25630 # drive letters (cygwin fileutils understands them), so leave them,
25631 # especially as we might pass files found there to a mingw objdump,
25632 # which wouldn't understand a cygwinified path. Ahh.
25633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25634 else
25635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25638 pw32*)
25639 # pw32 DLLs use 'pw' prefix rather than 'lib'
25640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25642 esac
25646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25648 esac
25649 dynamic_linker='Win32 ld.exe'
25650 # FIXME: first we should search . and the directory the executable is in
25651 shlibpath_var=PATH
25654 darwin* | rhapsody*)
25655 dynamic_linker="$host_os dyld"
25656 version_type=darwin
25657 need_lib_prefix=no
25658 need_version=no
25659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25660 soname_spec='${libname}${release}${major}$shared_ext'
25661 shlibpath_overrides_runpath=yes
25662 shlibpath_var=DYLD_LIBRARY_PATH
25663 shrext_cmds='.dylib'
25664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25665 if test "$GCC" = yes; then
25666 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"`
25667 else
25668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25673 dgux*)
25674 version_type=linux
25675 need_lib_prefix=no
25676 need_version=no
25677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25678 soname_spec='${libname}${release}${shared_ext}$major'
25679 shlibpath_var=LD_LIBRARY_PATH
25682 freebsd1*)
25683 dynamic_linker=no
25686 kfreebsd*-gnu)
25687 version_type=linux
25688 need_lib_prefix=no
25689 need_version=no
25690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25691 soname_spec='${libname}${release}${shared_ext}$major'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath=no
25694 hardcode_into_libs=yes
25695 dynamic_linker='GNU ld.so'
25698 freebsd* | dragonfly*)
25699 # DragonFly does not have aout. When/if they implement a new
25700 # versioning mechanism, adjust this.
25701 if test -x /usr/bin/objformat; then
25702 objformat=`/usr/bin/objformat`
25703 else
25704 case $host_os in
25705 freebsd[123]*) objformat=aout ;;
25706 *) objformat=elf ;;
25707 esac
25709 version_type=freebsd-$objformat
25710 case $version_type in
25711 freebsd-elf*)
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25713 need_version=no
25714 need_lib_prefix=no
25716 freebsd-*)
25717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25718 need_version=yes
25720 esac
25721 shlibpath_var=LD_LIBRARY_PATH
25722 case $host_os in
25723 freebsd2*)
25724 shlibpath_overrides_runpath=yes
25726 freebsd3.[01]* | freebsdelf3.[01]*)
25727 shlibpath_overrides_runpath=yes
25728 hardcode_into_libs=yes
25730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25732 shlibpath_overrides_runpath=no
25733 hardcode_into_libs=yes
25735 freebsd*) # from 4.6 on
25736 shlibpath_overrides_runpath=yes
25737 hardcode_into_libs=yes
25739 esac
25742 gnu*)
25743 version_type=linux
25744 need_lib_prefix=no
25745 need_version=no
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25747 soname_spec='${libname}${release}${shared_ext}$major'
25748 shlibpath_var=LD_LIBRARY_PATH
25749 hardcode_into_libs=yes
25752 hpux9* | hpux10* | hpux11*)
25753 # Give a soname corresponding to the major version so that dld.sl refuses to
25754 # link against other versions.
25755 version_type=sunos
25756 need_lib_prefix=no
25757 need_version=no
25758 case $host_cpu in
25759 ia64*)
25760 shrext_cmds='.so'
25761 hardcode_into_libs=yes
25762 dynamic_linker="$host_os dld.so"
25763 shlibpath_var=LD_LIBRARY_PATH
25764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25766 soname_spec='${libname}${release}${shared_ext}$major'
25767 if test "X$HPUX_IA64_MODE" = X32; then
25768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25769 else
25770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25774 hppa*64*)
25775 shrext_cmds='.sl'
25776 hardcode_into_libs=yes
25777 dynamic_linker="$host_os dld.sl"
25778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25781 soname_spec='${libname}${release}${shared_ext}$major'
25782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25786 shrext_cmds='.sl'
25787 dynamic_linker="$host_os dld.sl"
25788 shlibpath_var=SHLIB_PATH
25789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25791 soname_spec='${libname}${release}${shared_ext}$major'
25793 esac
25794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25795 postinstall_cmds='chmod 555 $lib'
25798 interix3*)
25799 version_type=linux
25800 need_lib_prefix=no
25801 need_version=no
25802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25803 soname_spec='${libname}${release}${shared_ext}$major'
25804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 shlibpath_overrides_runpath=no
25807 hardcode_into_libs=yes
25810 irix5* | irix6* | nonstopux*)
25811 case $host_os in
25812 nonstopux*) version_type=nonstopux ;;
25814 if test "$lt_cv_prog_gnu_ld" = yes; then
25815 version_type=linux
25816 else
25817 version_type=irix
25818 fi ;;
25819 esac
25820 need_lib_prefix=no
25821 need_version=no
25822 soname_spec='${libname}${release}${shared_ext}$major'
25823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25824 case $host_os in
25825 irix5* | nonstopux*)
25826 libsuff= shlibsuff=
25829 case $LD in # libtool.m4 will add one of these switches to LD
25830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25831 libsuff= shlibsuff= libmagic=32-bit;;
25832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25833 libsuff=32 shlibsuff=N32 libmagic=N32;;
25834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25836 *) libsuff= shlibsuff= libmagic=never-match;;
25837 esac
25839 esac
25840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25841 shlibpath_overrides_runpath=no
25842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25844 hardcode_into_libs=yes
25847 # No shared lib support for Linux oldld, aout, or coff.
25848 linux*oldld* | linux*aout* | linux*coff*)
25849 dynamic_linker=no
25852 # This must be Linux ELF.
25853 linux*)
25854 version_type=linux
25855 need_lib_prefix=no
25856 need_version=no
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858 soname_spec='${libname}${release}${shared_ext}$major'
25859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25860 shlibpath_var=LD_LIBRARY_PATH
25861 shlibpath_overrides_runpath=no
25862 # This implies no fast_install, which is unacceptable.
25863 # Some rework will be needed to allow for fast_install
25864 # before this can be enabled.
25865 hardcode_into_libs=yes
25867 # Append ld.so.conf contents to the search path
25868 if test -f /etc/ld.so.conf; then
25869 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' ' '`
25870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25873 # We used to test for /lib/ld.so.1 and disable shared libraries on
25874 # powerpc, because MkLinux only supported shared libraries with the
25875 # GNU dynamic linker. Since this was broken with cross compilers,
25876 # most powerpc-linux boxes support dynamic linking these days and
25877 # people can always --disable-shared, the test was removed, and we
25878 # assume the GNU/Linux dynamic linker is in use.
25879 dynamic_linker='GNU/Linux ld.so'
25882 knetbsd*-gnu)
25883 version_type=linux
25884 need_lib_prefix=no
25885 need_version=no
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25887 soname_spec='${libname}${release}${shared_ext}$major'
25888 shlibpath_var=LD_LIBRARY_PATH
25889 shlibpath_overrides_runpath=no
25890 hardcode_into_libs=yes
25891 dynamic_linker='GNU ld.so'
25894 netbsd*)
25895 version_type=sunos
25896 need_lib_prefix=no
25897 need_version=no
25898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25901 dynamic_linker='NetBSD (a.out) ld.so'
25902 else
25903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25904 soname_spec='${libname}${release}${shared_ext}$major'
25905 dynamic_linker='NetBSD ld.elf_so'
25907 shlibpath_var=LD_LIBRARY_PATH
25908 shlibpath_overrides_runpath=yes
25909 hardcode_into_libs=yes
25912 newsos6)
25913 version_type=linux
25914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25915 shlibpath_var=LD_LIBRARY_PATH
25916 shlibpath_overrides_runpath=yes
25919 nto-qnx*)
25920 version_type=linux
25921 need_lib_prefix=no
25922 need_version=no
25923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25924 soname_spec='${libname}${release}${shared_ext}$major'
25925 shlibpath_var=LD_LIBRARY_PATH
25926 shlibpath_overrides_runpath=yes
25929 openbsd*)
25930 version_type=sunos
25931 sys_lib_dlsearch_path_spec="/usr/lib"
25932 need_lib_prefix=no
25933 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25934 case $host_os in
25935 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25936 *) need_version=no ;;
25937 esac
25938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25940 shlibpath_var=LD_LIBRARY_PATH
25941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25942 case $host_os in
25943 openbsd2.[89] | openbsd2.[89].*)
25944 shlibpath_overrides_runpath=no
25947 shlibpath_overrides_runpath=yes
25949 esac
25950 else
25951 shlibpath_overrides_runpath=yes
25955 os2*)
25956 libname_spec='$name'
25957 shrext_cmds=".dll"
25958 need_lib_prefix=no
25959 library_names_spec='$libname${shared_ext} $libname.a'
25960 dynamic_linker='OS/2 ld.exe'
25961 shlibpath_var=LIBPATH
25964 osf3* | osf4* | osf5*)
25965 version_type=osf
25966 need_lib_prefix=no
25967 need_version=no
25968 soname_spec='${libname}${release}${shared_ext}$major'
25969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25970 shlibpath_var=LD_LIBRARY_PATH
25971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25975 solaris*)
25976 version_type=linux
25977 need_lib_prefix=no
25978 need_version=no
25979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25980 soname_spec='${libname}${release}${shared_ext}$major'
25981 shlibpath_var=LD_LIBRARY_PATH
25982 shlibpath_overrides_runpath=yes
25983 hardcode_into_libs=yes
25984 # ldd complains unless libraries are executable
25985 postinstall_cmds='chmod +x $lib'
25988 sunos4*)
25989 version_type=sunos
25990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25992 shlibpath_var=LD_LIBRARY_PATH
25993 shlibpath_overrides_runpath=yes
25994 if test "$with_gnu_ld" = yes; then
25995 need_lib_prefix=no
25997 need_version=yes
26000 sysv4 | sysv4.3*)
26001 version_type=linux
26002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26003 soname_spec='${libname}${release}${shared_ext}$major'
26004 shlibpath_var=LD_LIBRARY_PATH
26005 case $host_vendor in
26006 sni)
26007 shlibpath_overrides_runpath=no
26008 need_lib_prefix=no
26009 export_dynamic_flag_spec='${wl}-Blargedynsym'
26010 runpath_var=LD_RUN_PATH
26012 siemens)
26013 need_lib_prefix=no
26015 motorola)
26016 need_lib_prefix=no
26017 need_version=no
26018 shlibpath_overrides_runpath=no
26019 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26021 esac
26024 sysv4*MP*)
26025 if test -d /usr/nec ;then
26026 version_type=linux
26027 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26028 soname_spec='$libname${shared_ext}.$major'
26029 shlibpath_var=LD_LIBRARY_PATH
26033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26034 version_type=freebsd-elf
26035 need_lib_prefix=no
26036 need_version=no
26037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26038 soname_spec='${libname}${release}${shared_ext}$major'
26039 shlibpath_var=LD_LIBRARY_PATH
26040 hardcode_into_libs=yes
26041 if test "$with_gnu_ld" = yes; then
26042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26043 shlibpath_overrides_runpath=no
26044 else
26045 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26046 shlibpath_overrides_runpath=yes
26047 case $host_os in
26048 sco3.2v5*)
26049 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26051 esac
26053 sys_lib_dlsearch_path_spec='/usr/lib'
26056 uts4*)
26057 version_type=linux
26058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26059 soname_spec='${libname}${release}${shared_ext}$major'
26060 shlibpath_var=LD_LIBRARY_PATH
26064 dynamic_linker=no
26066 esac
26067 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26068 echo "${ECHO_T}$dynamic_linker" >&6; }
26069 test "$dynamic_linker" = no && can_build_shared=no
26071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26072 if test "$GCC" = yes; then
26073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26076 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26078 hardcode_action_GCJ=
26079 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26080 test -n "$runpath_var_GCJ" || \
26081 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26083 # We can hardcode non-existant directories.
26084 if test "$hardcode_direct_GCJ" != no &&
26085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26086 # have to relink, otherwise we might link with an installed library
26087 # when we should be linking with a yet-to-be-installed one
26088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26089 test "$hardcode_minus_L_GCJ" != no; then
26090 # Linking always hardcodes the temporary library directory.
26091 hardcode_action_GCJ=relink
26092 else
26093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26094 hardcode_action_GCJ=immediate
26096 else
26097 # We cannot hardcode anything, or else we can only hardcode existing
26098 # directories.
26099 hardcode_action_GCJ=unsupported
26101 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26102 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26104 if test "$hardcode_action_GCJ" = relink; then
26105 # Fast installation is not supported
26106 enable_fast_install=no
26107 elif test "$shlibpath_overrides_runpath" = yes ||
26108 test "$enable_shared" = no; then
26109 # Fast installation is not necessary
26110 enable_fast_install=needless
26114 # The else clause should only fire when bootstrapping the
26115 # libtool distribution, otherwise you forgot to ship ltmain.sh
26116 # with your package, and you will get complaints that there are
26117 # no rules to generate ltmain.sh.
26118 if test -f "$ltmain"; then
26119 # See if we are running on zsh, and set the options which allow our commands through
26120 # without removal of \ escapes.
26121 if test -n "${ZSH_VERSION+set}" ; then
26122 setopt NO_GLOB_SUBST
26124 # Now quote all the things that may contain metacharacters while being
26125 # careful not to overquote the AC_SUBSTed values. We take copies of the
26126 # variables and quote the copies for generation of the libtool script.
26127 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26128 SED SHELL STRIP \
26129 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26130 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26131 deplibs_check_method reload_flag reload_cmds need_locks \
26132 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26133 lt_cv_sys_global_symbol_to_c_name_address \
26134 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26135 old_postinstall_cmds old_postuninstall_cmds \
26136 compiler_GCJ \
26137 CC_GCJ \
26138 LD_GCJ \
26139 lt_prog_compiler_wl_GCJ \
26140 lt_prog_compiler_pic_GCJ \
26141 lt_prog_compiler_static_GCJ \
26142 lt_prog_compiler_no_builtin_flag_GCJ \
26143 export_dynamic_flag_spec_GCJ \
26144 thread_safe_flag_spec_GCJ \
26145 whole_archive_flag_spec_GCJ \
26146 enable_shared_with_static_runtimes_GCJ \
26147 old_archive_cmds_GCJ \
26148 old_archive_from_new_cmds_GCJ \
26149 predep_objects_GCJ \
26150 postdep_objects_GCJ \
26151 predeps_GCJ \
26152 postdeps_GCJ \
26153 compiler_lib_search_path_GCJ \
26154 archive_cmds_GCJ \
26155 archive_expsym_cmds_GCJ \
26156 postinstall_cmds_GCJ \
26157 postuninstall_cmds_GCJ \
26158 old_archive_from_expsyms_cmds_GCJ \
26159 allow_undefined_flag_GCJ \
26160 no_undefined_flag_GCJ \
26161 export_symbols_cmds_GCJ \
26162 hardcode_libdir_flag_spec_GCJ \
26163 hardcode_libdir_flag_spec_ld_GCJ \
26164 hardcode_libdir_separator_GCJ \
26165 hardcode_automatic_GCJ \
26166 module_cmds_GCJ \
26167 module_expsym_cmds_GCJ \
26168 lt_cv_prog_compiler_c_o_GCJ \
26169 exclude_expsyms_GCJ \
26170 include_expsyms_GCJ; do
26172 case $var in
26173 old_archive_cmds_GCJ | \
26174 old_archive_from_new_cmds_GCJ | \
26175 archive_cmds_GCJ | \
26176 archive_expsym_cmds_GCJ | \
26177 module_cmds_GCJ | \
26178 module_expsym_cmds_GCJ | \
26179 old_archive_from_expsyms_cmds_GCJ | \
26180 export_symbols_cmds_GCJ | \
26181 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26182 postinstall_cmds | postuninstall_cmds | \
26183 old_postinstall_cmds | old_postuninstall_cmds | \
26184 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26185 # Double-quote double-evaled strings.
26186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26191 esac
26192 done
26194 case $lt_echo in
26195 *'\$0 --fallback-echo"')
26196 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26198 esac
26200 cfgfile="$ofile"
26202 cat <<__EOF__ >> "$cfgfile"
26203 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26205 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26207 # Shell to use when invoking shell scripts.
26208 SHELL=$lt_SHELL
26210 # Whether or not to build shared libraries.
26211 build_libtool_libs=$enable_shared
26213 # Whether or not to build static libraries.
26214 build_old_libs=$enable_static
26216 # Whether or not to add -lc for building shared libraries.
26217 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26219 # Whether or not to disallow shared libs when runtime libs are static
26220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26222 # Whether or not to optimize for fast installation.
26223 fast_install=$enable_fast_install
26225 # The host system.
26226 host_alias=$host_alias
26227 host=$host
26228 host_os=$host_os
26230 # The build system.
26231 build_alias=$build_alias
26232 build=$build
26233 build_os=$build_os
26235 # An echo program that does not interpret backslashes.
26236 echo=$lt_echo
26238 # The archiver.
26239 AR=$lt_AR
26240 AR_FLAGS=$lt_AR_FLAGS
26242 # A C compiler.
26243 LTCC=$lt_LTCC
26245 # LTCC compiler flags.
26246 LTCFLAGS=$lt_LTCFLAGS
26248 # A language-specific compiler.
26249 CC=$lt_compiler_GCJ
26251 # Is the compiler the GNU C compiler?
26252 with_gcc=$GCC_GCJ
26254 # An ERE matcher.
26255 EGREP=$lt_EGREP
26257 # The linker used to build libraries.
26258 LD=$lt_LD_GCJ
26260 # Whether we need hard or soft links.
26261 LN_S=$lt_LN_S
26263 # A BSD-compatible nm program.
26264 NM=$lt_NM
26266 # A symbol stripping program
26267 STRIP=$lt_STRIP
26269 # Used to examine libraries when file_magic_cmd begins "file"
26270 MAGIC_CMD=$MAGIC_CMD
26272 # Used on cygwin: DLL creation program.
26273 DLLTOOL="$DLLTOOL"
26275 # Used on cygwin: object dumper.
26276 OBJDUMP="$OBJDUMP"
26278 # Used on cygwin: assembler.
26279 AS="$AS"
26281 # The name of the directory that contains temporary libtool files.
26282 objdir=$objdir
26284 # How to create reloadable object files.
26285 reload_flag=$lt_reload_flag
26286 reload_cmds=$lt_reload_cmds
26288 # How to pass a linker flag through the compiler.
26289 wl=$lt_lt_prog_compiler_wl_GCJ
26291 # Object file suffix (normally "o").
26292 objext="$ac_objext"
26294 # Old archive suffix (normally "a").
26295 libext="$libext"
26297 # Shared library suffix (normally ".so").
26298 shrext_cmds='$shrext_cmds'
26300 # Executable file suffix (normally "").
26301 exeext="$exeext"
26303 # Additional compiler flags for building library objects.
26304 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26305 pic_mode=$pic_mode
26307 # What is the maximum length of a command?
26308 max_cmd_len=$lt_cv_sys_max_cmd_len
26310 # Does compiler simultaneously support -c and -o options?
26311 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26313 # Must we lock files when doing compilation?
26314 need_locks=$lt_need_locks
26316 # Do we need the lib prefix for modules?
26317 need_lib_prefix=$need_lib_prefix
26319 # Do we need a version for libraries?
26320 need_version=$need_version
26322 # Whether dlopen is supported.
26323 dlopen_support=$enable_dlopen
26325 # Whether dlopen of programs is supported.
26326 dlopen_self=$enable_dlopen_self
26328 # Whether dlopen of statically linked programs is supported.
26329 dlopen_self_static=$enable_dlopen_self_static
26331 # Compiler flag to prevent dynamic linking.
26332 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26334 # Compiler flag to turn off builtin functions.
26335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26337 # Compiler flag to allow reflexive dlopens.
26338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26340 # Compiler flag to generate shared objects directly from archives.
26341 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26343 # Compiler flag to generate thread-safe objects.
26344 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26346 # Library versioning type.
26347 version_type=$version_type
26349 # Format of library name prefix.
26350 libname_spec=$lt_libname_spec
26352 # List of archive names. First name is the real one, the rest are links.
26353 # The last name is the one that the linker finds with -lNAME.
26354 library_names_spec=$lt_library_names_spec
26356 # The coded name of the library, if different from the real name.
26357 soname_spec=$lt_soname_spec
26359 # Commands used to build and install an old-style archive.
26360 RANLIB=$lt_RANLIB
26361 old_archive_cmds=$lt_old_archive_cmds_GCJ
26362 old_postinstall_cmds=$lt_old_postinstall_cmds
26363 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26365 # Create an old-style archive from a shared archive.
26366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26368 # Create a temporary old-style archive to link instead of a shared archive.
26369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26371 # Commands used to build and install a shared archive.
26372 archive_cmds=$lt_archive_cmds_GCJ
26373 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26374 postinstall_cmds=$lt_postinstall_cmds
26375 postuninstall_cmds=$lt_postuninstall_cmds
26377 # Commands used to build a loadable module (assumed same as above if empty)
26378 module_cmds=$lt_module_cmds_GCJ
26379 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26381 # Commands to strip libraries.
26382 old_striplib=$lt_old_striplib
26383 striplib=$lt_striplib
26385 # Dependencies to place before the objects being linked to create a
26386 # shared library.
26387 predep_objects=$lt_predep_objects_GCJ
26389 # Dependencies to place after the objects being linked to create a
26390 # shared library.
26391 postdep_objects=$lt_postdep_objects_GCJ
26393 # Dependencies to place before the objects being linked to create a
26394 # shared library.
26395 predeps=$lt_predeps_GCJ
26397 # Dependencies to place after the objects being linked to create a
26398 # shared library.
26399 postdeps=$lt_postdeps_GCJ
26401 # The library search path used internally by the compiler when linking
26402 # a shared library.
26403 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26405 # Method to check whether dependent libraries are shared objects.
26406 deplibs_check_method=$lt_deplibs_check_method
26408 # Command to use when deplibs_check_method == file_magic.
26409 file_magic_cmd=$lt_file_magic_cmd
26411 # Flag that allows shared libraries with undefined symbols to be built.
26412 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26414 # Flag that forces no undefined symbols.
26415 no_undefined_flag=$lt_no_undefined_flag_GCJ
26417 # Commands used to finish a libtool library installation in a directory.
26418 finish_cmds=$lt_finish_cmds
26420 # Same as above, but a single script fragment to be evaled but not shown.
26421 finish_eval=$lt_finish_eval
26423 # Take the output of nm and produce a listing of raw symbols and C names.
26424 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26426 # Transform the output of nm in a proper C declaration
26427 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26429 # Transform the output of nm in a C name address pair
26430 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26432 # This is the shared library runtime path variable.
26433 runpath_var=$runpath_var
26435 # This is the shared library path variable.
26436 shlibpath_var=$shlibpath_var
26438 # Is shlibpath searched before the hard-coded library search path?
26439 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26441 # How to hardcode a shared library path into an executable.
26442 hardcode_action=$hardcode_action_GCJ
26444 # Whether we should hardcode library paths into libraries.
26445 hardcode_into_libs=$hardcode_into_libs
26447 # Flag to hardcode \$libdir into a binary during linking.
26448 # This must work even if \$libdir does not exist.
26449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26451 # If ld is used when linking, flag to hardcode \$libdir into
26452 # a binary during linking. This must work even if \$libdir does
26453 # not exist.
26454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26456 # Whether we need a single -rpath flag with a separated argument.
26457 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26459 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26460 # resulting binary.
26461 hardcode_direct=$hardcode_direct_GCJ
26463 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26464 # resulting binary.
26465 hardcode_minus_L=$hardcode_minus_L_GCJ
26467 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26468 # the resulting binary.
26469 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26471 # Set to yes if building a shared library automatically hardcodes DIR into the library
26472 # and all subsequent libraries and executables linked against it.
26473 hardcode_automatic=$hardcode_automatic_GCJ
26475 # Variables whose values should be saved in libtool wrapper scripts and
26476 # restored at relink time.
26477 variables_saved_for_relink="$variables_saved_for_relink"
26479 # Whether libtool must link a program against all its dependency libraries.
26480 link_all_deplibs=$link_all_deplibs_GCJ
26482 # Compile-time system search path for libraries
26483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26485 # Run-time system search path for libraries
26486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26488 # Fix the shell variable \$srcfile for the compiler.
26489 fix_srcfile_path="$fix_srcfile_path_GCJ"
26491 # Set to yes if exported symbols are required.
26492 always_export_symbols=$always_export_symbols_GCJ
26494 # The commands to list exported symbols.
26495 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26497 # The commands to extract the exported symbol list from a shared archive.
26498 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26500 # Symbols that should not be listed in the preloaded symbols.
26501 exclude_expsyms=$lt_exclude_expsyms_GCJ
26503 # Symbols that must always be exported.
26504 include_expsyms=$lt_include_expsyms_GCJ
26506 # ### END LIBTOOL TAG CONFIG: $tagname
26508 __EOF__
26511 else
26512 # If there is no Makefile yet, we rely on a make rule to execute
26513 # `config.status --recheck' to rerun these tests and create the
26514 # libtool script then.
26515 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26516 if test -f "$ltmain_in"; then
26517 test -f Makefile && make "$ltmain"
26522 ac_ext=c
26523 ac_cpp='$CPP $CPPFLAGS'
26524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26528 CC="$lt_save_CC"
26530 else
26531 tagname=""
26536 ac_ext=c
26537 ac_cpp='$CPP $CPPFLAGS'
26538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26543 # Source file extension for RC test sources.
26544 ac_ext=rc
26546 # Object file extension for compiled RC test sources.
26547 objext=o
26548 objext_RC=$objext
26550 # Code to be used in simple compile tests
26551 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26553 # Code to be used in simple link tests
26554 lt_simple_link_test_code="$lt_simple_compile_test_code"
26556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26558 # If no C compiler was specified, use CC.
26559 LTCC=${LTCC-"$CC"}
26561 # If no C compiler flags were specified, use CFLAGS.
26562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26564 # Allow CC to be a program name with arguments.
26565 compiler=$CC
26568 # save warnings/boilerplate of simple test code
26569 ac_outfile=conftest.$ac_objext
26570 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26572 _lt_compiler_boilerplate=`cat conftest.err`
26573 $rm conftest*
26575 ac_outfile=conftest.$ac_objext
26576 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26578 _lt_linker_boilerplate=`cat conftest.err`
26579 $rm conftest*
26582 # Allow CC to be a program name with arguments.
26583 lt_save_CC="$CC"
26584 CC=${RC-"windres"}
26585 compiler=$CC
26586 compiler_RC=$CC
26587 for cc_temp in $compiler""; do
26588 case $cc_temp in
26589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26591 \-*) ;;
26592 *) break;;
26593 esac
26594 done
26595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26597 lt_cv_prog_compiler_c_o_RC=yes
26599 # The else clause should only fire when bootstrapping the
26600 # libtool distribution, otherwise you forgot to ship ltmain.sh
26601 # with your package, and you will get complaints that there are
26602 # no rules to generate ltmain.sh.
26603 if test -f "$ltmain"; then
26604 # See if we are running on zsh, and set the options which allow our commands through
26605 # without removal of \ escapes.
26606 if test -n "${ZSH_VERSION+set}" ; then
26607 setopt NO_GLOB_SUBST
26609 # Now quote all the things that may contain metacharacters while being
26610 # careful not to overquote the AC_SUBSTed values. We take copies of the
26611 # variables and quote the copies for generation of the libtool script.
26612 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26613 SED SHELL STRIP \
26614 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26615 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26616 deplibs_check_method reload_flag reload_cmds need_locks \
26617 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26618 lt_cv_sys_global_symbol_to_c_name_address \
26619 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26620 old_postinstall_cmds old_postuninstall_cmds \
26621 compiler_RC \
26622 CC_RC \
26623 LD_RC \
26624 lt_prog_compiler_wl_RC \
26625 lt_prog_compiler_pic_RC \
26626 lt_prog_compiler_static_RC \
26627 lt_prog_compiler_no_builtin_flag_RC \
26628 export_dynamic_flag_spec_RC \
26629 thread_safe_flag_spec_RC \
26630 whole_archive_flag_spec_RC \
26631 enable_shared_with_static_runtimes_RC \
26632 old_archive_cmds_RC \
26633 old_archive_from_new_cmds_RC \
26634 predep_objects_RC \
26635 postdep_objects_RC \
26636 predeps_RC \
26637 postdeps_RC \
26638 compiler_lib_search_path_RC \
26639 archive_cmds_RC \
26640 archive_expsym_cmds_RC \
26641 postinstall_cmds_RC \
26642 postuninstall_cmds_RC \
26643 old_archive_from_expsyms_cmds_RC \
26644 allow_undefined_flag_RC \
26645 no_undefined_flag_RC \
26646 export_symbols_cmds_RC \
26647 hardcode_libdir_flag_spec_RC \
26648 hardcode_libdir_flag_spec_ld_RC \
26649 hardcode_libdir_separator_RC \
26650 hardcode_automatic_RC \
26651 module_cmds_RC \
26652 module_expsym_cmds_RC \
26653 lt_cv_prog_compiler_c_o_RC \
26654 exclude_expsyms_RC \
26655 include_expsyms_RC; do
26657 case $var in
26658 old_archive_cmds_RC | \
26659 old_archive_from_new_cmds_RC | \
26660 archive_cmds_RC | \
26661 archive_expsym_cmds_RC | \
26662 module_cmds_RC | \
26663 module_expsym_cmds_RC | \
26664 old_archive_from_expsyms_cmds_RC | \
26665 export_symbols_cmds_RC | \
26666 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26667 postinstall_cmds | postuninstall_cmds | \
26668 old_postinstall_cmds | old_postuninstall_cmds | \
26669 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26670 # Double-quote double-evaled strings.
26671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26676 esac
26677 done
26679 case $lt_echo in
26680 *'\$0 --fallback-echo"')
26681 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26683 esac
26685 cfgfile="$ofile"
26687 cat <<__EOF__ >> "$cfgfile"
26688 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26690 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26692 # Shell to use when invoking shell scripts.
26693 SHELL=$lt_SHELL
26695 # Whether or not to build shared libraries.
26696 build_libtool_libs=$enable_shared
26698 # Whether or not to build static libraries.
26699 build_old_libs=$enable_static
26701 # Whether or not to add -lc for building shared libraries.
26702 build_libtool_need_lc=$archive_cmds_need_lc_RC
26704 # Whether or not to disallow shared libs when runtime libs are static
26705 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26707 # Whether or not to optimize for fast installation.
26708 fast_install=$enable_fast_install
26710 # The host system.
26711 host_alias=$host_alias
26712 host=$host
26713 host_os=$host_os
26715 # The build system.
26716 build_alias=$build_alias
26717 build=$build
26718 build_os=$build_os
26720 # An echo program that does not interpret backslashes.
26721 echo=$lt_echo
26723 # The archiver.
26724 AR=$lt_AR
26725 AR_FLAGS=$lt_AR_FLAGS
26727 # A C compiler.
26728 LTCC=$lt_LTCC
26730 # LTCC compiler flags.
26731 LTCFLAGS=$lt_LTCFLAGS
26733 # A language-specific compiler.
26734 CC=$lt_compiler_RC
26736 # Is the compiler the GNU C compiler?
26737 with_gcc=$GCC_RC
26739 # An ERE matcher.
26740 EGREP=$lt_EGREP
26742 # The linker used to build libraries.
26743 LD=$lt_LD_RC
26745 # Whether we need hard or soft links.
26746 LN_S=$lt_LN_S
26748 # A BSD-compatible nm program.
26749 NM=$lt_NM
26751 # A symbol stripping program
26752 STRIP=$lt_STRIP
26754 # Used to examine libraries when file_magic_cmd begins "file"
26755 MAGIC_CMD=$MAGIC_CMD
26757 # Used on cygwin: DLL creation program.
26758 DLLTOOL="$DLLTOOL"
26760 # Used on cygwin: object dumper.
26761 OBJDUMP="$OBJDUMP"
26763 # Used on cygwin: assembler.
26764 AS="$AS"
26766 # The name of the directory that contains temporary libtool files.
26767 objdir=$objdir
26769 # How to create reloadable object files.
26770 reload_flag=$lt_reload_flag
26771 reload_cmds=$lt_reload_cmds
26773 # How to pass a linker flag through the compiler.
26774 wl=$lt_lt_prog_compiler_wl_RC
26776 # Object file suffix (normally "o").
26777 objext="$ac_objext"
26779 # Old archive suffix (normally "a").
26780 libext="$libext"
26782 # Shared library suffix (normally ".so").
26783 shrext_cmds='$shrext_cmds'
26785 # Executable file suffix (normally "").
26786 exeext="$exeext"
26788 # Additional compiler flags for building library objects.
26789 pic_flag=$lt_lt_prog_compiler_pic_RC
26790 pic_mode=$pic_mode
26792 # What is the maximum length of a command?
26793 max_cmd_len=$lt_cv_sys_max_cmd_len
26795 # Does compiler simultaneously support -c and -o options?
26796 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26798 # Must we lock files when doing compilation?
26799 need_locks=$lt_need_locks
26801 # Do we need the lib prefix for modules?
26802 need_lib_prefix=$need_lib_prefix
26804 # Do we need a version for libraries?
26805 need_version=$need_version
26807 # Whether dlopen is supported.
26808 dlopen_support=$enable_dlopen
26810 # Whether dlopen of programs is supported.
26811 dlopen_self=$enable_dlopen_self
26813 # Whether dlopen of statically linked programs is supported.
26814 dlopen_self_static=$enable_dlopen_self_static
26816 # Compiler flag to prevent dynamic linking.
26817 link_static_flag=$lt_lt_prog_compiler_static_RC
26819 # Compiler flag to turn off builtin functions.
26820 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26822 # Compiler flag to allow reflexive dlopens.
26823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26825 # Compiler flag to generate shared objects directly from archives.
26826 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26828 # Compiler flag to generate thread-safe objects.
26829 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26831 # Library versioning type.
26832 version_type=$version_type
26834 # Format of library name prefix.
26835 libname_spec=$lt_libname_spec
26837 # List of archive names. First name is the real one, the rest are links.
26838 # The last name is the one that the linker finds with -lNAME.
26839 library_names_spec=$lt_library_names_spec
26841 # The coded name of the library, if different from the real name.
26842 soname_spec=$lt_soname_spec
26844 # Commands used to build and install an old-style archive.
26845 RANLIB=$lt_RANLIB
26846 old_archive_cmds=$lt_old_archive_cmds_RC
26847 old_postinstall_cmds=$lt_old_postinstall_cmds
26848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26850 # Create an old-style archive from a shared archive.
26851 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26853 # Create a temporary old-style archive to link instead of a shared archive.
26854 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26856 # Commands used to build and install a shared archive.
26857 archive_cmds=$lt_archive_cmds_RC
26858 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26859 postinstall_cmds=$lt_postinstall_cmds
26860 postuninstall_cmds=$lt_postuninstall_cmds
26862 # Commands used to build a loadable module (assumed same as above if empty)
26863 module_cmds=$lt_module_cmds_RC
26864 module_expsym_cmds=$lt_module_expsym_cmds_RC
26866 # Commands to strip libraries.
26867 old_striplib=$lt_old_striplib
26868 striplib=$lt_striplib
26870 # Dependencies to place before the objects being linked to create a
26871 # shared library.
26872 predep_objects=$lt_predep_objects_RC
26874 # Dependencies to place after the objects being linked to create a
26875 # shared library.
26876 postdep_objects=$lt_postdep_objects_RC
26878 # Dependencies to place before the objects being linked to create a
26879 # shared library.
26880 predeps=$lt_predeps_RC
26882 # Dependencies to place after the objects being linked to create a
26883 # shared library.
26884 postdeps=$lt_postdeps_RC
26886 # The library search path used internally by the compiler when linking
26887 # a shared library.
26888 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26890 # Method to check whether dependent libraries are shared objects.
26891 deplibs_check_method=$lt_deplibs_check_method
26893 # Command to use when deplibs_check_method == file_magic.
26894 file_magic_cmd=$lt_file_magic_cmd
26896 # Flag that allows shared libraries with undefined symbols to be built.
26897 allow_undefined_flag=$lt_allow_undefined_flag_RC
26899 # Flag that forces no undefined symbols.
26900 no_undefined_flag=$lt_no_undefined_flag_RC
26902 # Commands used to finish a libtool library installation in a directory.
26903 finish_cmds=$lt_finish_cmds
26905 # Same as above, but a single script fragment to be evaled but not shown.
26906 finish_eval=$lt_finish_eval
26908 # Take the output of nm and produce a listing of raw symbols and C names.
26909 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26911 # Transform the output of nm in a proper C declaration
26912 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26914 # Transform the output of nm in a C name address pair
26915 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26917 # This is the shared library runtime path variable.
26918 runpath_var=$runpath_var
26920 # This is the shared library path variable.
26921 shlibpath_var=$shlibpath_var
26923 # Is shlibpath searched before the hard-coded library search path?
26924 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26926 # How to hardcode a shared library path into an executable.
26927 hardcode_action=$hardcode_action_RC
26929 # Whether we should hardcode library paths into libraries.
26930 hardcode_into_libs=$hardcode_into_libs
26932 # Flag to hardcode \$libdir into a binary during linking.
26933 # This must work even if \$libdir does not exist.
26934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26936 # If ld is used when linking, flag to hardcode \$libdir into
26937 # a binary during linking. This must work even if \$libdir does
26938 # not exist.
26939 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26941 # Whether we need a single -rpath flag with a separated argument.
26942 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26944 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26945 # resulting binary.
26946 hardcode_direct=$hardcode_direct_RC
26948 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26949 # resulting binary.
26950 hardcode_minus_L=$hardcode_minus_L_RC
26952 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26953 # the resulting binary.
26954 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26956 # Set to yes if building a shared library automatically hardcodes DIR into the library
26957 # and all subsequent libraries and executables linked against it.
26958 hardcode_automatic=$hardcode_automatic_RC
26960 # Variables whose values should be saved in libtool wrapper scripts and
26961 # restored at relink time.
26962 variables_saved_for_relink="$variables_saved_for_relink"
26964 # Whether libtool must link a program against all its dependency libraries.
26965 link_all_deplibs=$link_all_deplibs_RC
26967 # Compile-time system search path for libraries
26968 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26970 # Run-time system search path for libraries
26971 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26973 # Fix the shell variable \$srcfile for the compiler.
26974 fix_srcfile_path="$fix_srcfile_path_RC"
26976 # Set to yes if exported symbols are required.
26977 always_export_symbols=$always_export_symbols_RC
26979 # The commands to list exported symbols.
26980 export_symbols_cmds=$lt_export_symbols_cmds_RC
26982 # The commands to extract the exported symbol list from a shared archive.
26983 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26985 # Symbols that should not be listed in the preloaded symbols.
26986 exclude_expsyms=$lt_exclude_expsyms_RC
26988 # Symbols that must always be exported.
26989 include_expsyms=$lt_include_expsyms_RC
26991 # ### END LIBTOOL TAG CONFIG: $tagname
26993 __EOF__
26996 else
26997 # If there is no Makefile yet, we rely on a make rule to execute
26998 # `config.status --recheck' to rerun these tests and create the
26999 # libtool script then.
27000 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27001 if test -f "$ltmain_in"; then
27002 test -f Makefile && make "$ltmain"
27007 ac_ext=c
27008 ac_cpp='$CPP $CPPFLAGS'
27009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27013 CC="$lt_save_CC"
27018 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27019 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27020 { (exit 1); exit 1; }; }
27022 esac
27024 # Append the new tag name to the list of available tags.
27025 if test -n "$tagname" ; then
27026 available_tags="$available_tags $tagname"
27029 done
27030 IFS="$lt_save_ifs"
27032 # Now substitute the updated list of available tags.
27033 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27034 mv "${ofile}T" "$ofile"
27035 chmod +x "$ofile"
27036 else
27037 rm -f "${ofile}T"
27038 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27039 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27040 { (exit 1); exit 1; }; }
27046 # This can be used to rebuild libtool when needed
27047 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27049 # Always use our own libtool.
27050 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27052 # Prevent multiple expansion
27074 if test "$lt_cv_dlopen_self" = "yes" ; then
27076 cat >>confdefs.h <<\_ACEOF
27077 #define CAN_DLOPEN_SELF 1
27078 _ACEOF
27082 if test "$WITH_LLVMGCCDIR" = "default" ; then
27083 LLVMGCC="llvm-gcc${EXEEXT}"
27084 LLVMGXX="llvm-g++${EXEEXT}"
27085 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27086 set dummy $LLVMGCC; ac_word=$2
27087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27089 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27091 else
27092 case $LLVMGCC in
27093 [\\/]* | ?:[\\/]*)
27094 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27098 for as_dir in $PATH
27100 IFS=$as_save_IFS
27101 test -z "$as_dir" && as_dir=.
27102 for ac_exec_ext in '' $ac_executable_extensions; do
27103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27104 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27106 break 2
27108 done
27109 done
27110 IFS=$as_save_IFS
27113 esac
27115 LLVMGCC=$ac_cv_path_LLVMGCC
27116 if test -n "$LLVMGCC"; then
27117 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27118 echo "${ECHO_T}$LLVMGCC" >&6; }
27119 else
27120 { echo "$as_me:$LINENO: result: no" >&5
27121 echo "${ECHO_T}no" >&6; }
27125 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27126 set dummy $LLVMGXX; ac_word=$2
27127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27129 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27130 echo $ECHO_N "(cached) $ECHO_C" >&6
27131 else
27132 case $LLVMGXX in
27133 [\\/]* | ?:[\\/]*)
27134 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27138 for as_dir in $PATH
27140 IFS=$as_save_IFS
27141 test -z "$as_dir" && as_dir=.
27142 for ac_exec_ext in '' $ac_executable_extensions; do
27143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27144 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27146 break 2
27148 done
27149 done
27150 IFS=$as_save_IFS
27153 esac
27155 LLVMGXX=$ac_cv_path_LLVMGXX
27156 if test -n "$LLVMGXX"; then
27157 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27158 echo "${ECHO_T}$LLVMGXX" >&6; }
27159 else
27160 { echo "$as_me:$LINENO: result: no" >&5
27161 echo "${ECHO_T}no" >&6; }
27165 else
27166 if test -z "$LLVMGCC"; then
27167 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27169 if test -z "$LLVMGXX"; then
27170 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27172 LLVMGCC=$LLVMGCC
27174 LLVMGXX=$LLVMGXX
27178 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27179 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27181 ICC=no
27182 IXX=no
27183 case $CC in
27184 icc*|icpc*)
27185 ICC=yes
27186 IXX=yes
27190 esac
27192 if test "$GCC" != "yes" && test "$ICC" != "yes"
27193 then
27194 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27195 echo "$as_me: error: gcc|icc required but not found" >&2;}
27196 { (exit 1); exit 1; }; }
27199 if test "$GXX" != "yes" && test "$IXX" != "yes"
27200 then
27201 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27202 echo "$as_me: error: g++|icc required but not found" >&2;}
27203 { (exit 1); exit 1; }; }
27206 if test "$GCC" = "yes"
27207 then
27208 cat >conftest.$ac_ext <<_ACEOF
27209 #if !defined(__GNUC__) || __GNUC__ < 3
27210 #error Unsupported GCC version
27211 #endif
27213 _ACEOF
27214 rm -f conftest.$ac_objext
27215 if { (ac_try="$ac_compile"
27216 case "(($ac_try" in
27217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218 *) ac_try_echo=$ac_try;;
27219 esac
27220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221 (eval "$ac_compile") 2>conftest.er1
27222 ac_status=$?
27223 grep -v '^ *+' conftest.er1 >conftest.err
27224 rm -f conftest.er1
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } &&
27228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232 esac
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_try") 2>&5
27235 ac_status=$?
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest.$ac_objext'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242 esac
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
27249 else
27250 echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27253 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27254 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27255 { (exit 1); exit 1; }; }
27258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27261 if test -z "$llvm_cv_gnu_make_command"
27262 then
27263 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27264 echo "$as_me: error: GNU Make required but not found" >&2;}
27265 { (exit 1); exit 1; }; }
27268 { echo "$as_me:$LINENO: result: ok" >&5
27269 echo "${ECHO_T}ok" >&6; }
27273 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27274 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27275 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27277 else
27278 ac_check_lib_save_LIBS=$LIBS
27279 LIBS="-lelf $LIBS"
27280 cat >conftest.$ac_ext <<_ACEOF
27281 /* confdefs.h. */
27282 _ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h. */
27287 /* Override any GCC internal prototype to avoid an error.
27288 Use char because int might match the return type of a GCC
27289 builtin and then its argument prototype would still apply. */
27290 #ifdef __cplusplus
27291 extern "C"
27292 #endif
27293 char elf_begin ();
27295 main ()
27297 return elf_begin ();
27299 return 0;
27301 _ACEOF
27302 rm -f conftest.$ac_objext conftest$ac_exeext
27303 if { (ac_try="$ac_link"
27304 case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27307 esac
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_link") 2>conftest.er1
27310 ac_status=$?
27311 grep -v '^ *+' conftest.er1 >conftest.err
27312 rm -f conftest.er1
27313 cat conftest.err >&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); } &&
27316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27317 { (case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27320 esac
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_try") 2>&5
27323 ac_status=$?
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; } &&
27326 { ac_try='test -s conftest$ac_exeext'
27327 { (case "(($ac_try" in
27328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329 *) ac_try_echo=$ac_try;;
27330 esac
27331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332 (eval "$ac_try") 2>&5
27333 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; }; then
27336 ac_cv_lib_elf_elf_begin=yes
27337 else
27338 echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27341 ac_cv_lib_elf_elf_begin=no
27344 rm -f core conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
27346 LIBS=$ac_check_lib_save_LIBS
27348 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27349 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27350 if test $ac_cv_lib_elf_elf_begin = yes; then
27351 cat >>confdefs.h <<_ACEOF
27352 #define HAVE_LIBELF 1
27353 _ACEOF
27355 LIBS="-lelf $LIBS"
27360 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27361 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27362 if test "${ac_cv_lib_m_sin+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 else
27365 ac_check_lib_save_LIBS=$LIBS
27366 LIBS="-lm $LIBS"
27367 cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h. */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27374 /* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
27377 #ifdef __cplusplus
27378 extern "C"
27379 #endif
27380 char sin ();
27382 main ()
27384 return sin ();
27386 return 0;
27388 _ACEOF
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (ac_try="$ac_link"
27391 case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394 esac
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_link") 2>conftest.er1
27397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
27403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27404 { (case "(($ac_try" in
27405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406 *) ac_try_echo=$ac_try;;
27407 esac
27408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409 (eval "$ac_try") 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
27414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417 esac
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
27423 ac_cv_lib_m_sin=yes
27424 else
27425 echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27428 ac_cv_lib_m_sin=no
27431 rm -f core conftest.err conftest.$ac_objext \
27432 conftest$ac_exeext conftest.$ac_ext
27433 LIBS=$ac_check_lib_save_LIBS
27435 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27436 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27437 if test $ac_cv_lib_m_sin = yes; then
27438 cat >>confdefs.h <<_ACEOF
27439 #define HAVE_LIBM 1
27440 _ACEOF
27442 LIBS="-lm $LIBS"
27446 if test "$llvm_cv_os_type" = "MingW" ; then
27448 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27449 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27450 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27451 echo $ECHO_N "(cached) $ECHO_C" >&6
27452 else
27453 ac_check_lib_save_LIBS=$LIBS
27454 LIBS="-limagehlp $LIBS"
27455 cat >conftest.$ac_ext <<_ACEOF
27456 /* confdefs.h. */
27457 _ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h. */
27464 main ()
27466 return main ();
27468 return 0;
27470 _ACEOF
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27476 esac
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_link") 2>conftest.er1
27479 ac_status=$?
27480 grep -v '^ *+' conftest.er1 >conftest.err
27481 rm -f conftest.er1
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27489 esac
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; } &&
27495 { ac_try='test -s conftest$ac_exeext'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 ac_cv_lib_imagehlp_main=yes
27506 else
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27510 ac_cv_lib_imagehlp_main=no
27513 rm -f core conftest.err conftest.$ac_objext \
27514 conftest$ac_exeext conftest.$ac_ext
27515 LIBS=$ac_check_lib_save_LIBS
27517 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27518 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27519 if test $ac_cv_lib_imagehlp_main = yes; then
27520 cat >>confdefs.h <<_ACEOF
27521 #define HAVE_LIBIMAGEHLP 1
27522 _ACEOF
27524 LIBS="-limagehlp $LIBS"
27529 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27530 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27531 if test "${ac_cv_lib_psapi_main+set}" = set; then
27532 echo $ECHO_N "(cached) $ECHO_C" >&6
27533 else
27534 ac_check_lib_save_LIBS=$LIBS
27535 LIBS="-lpsapi $LIBS"
27536 cat >conftest.$ac_ext <<_ACEOF
27537 /* confdefs.h. */
27538 _ACEOF
27539 cat confdefs.h >>conftest.$ac_ext
27540 cat >>conftest.$ac_ext <<_ACEOF
27541 /* end confdefs.h. */
27545 main ()
27547 return main ();
27549 return 0;
27551 _ACEOF
27552 rm -f conftest.$ac_objext conftest$ac_exeext
27553 if { (ac_try="$ac_link"
27554 case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27557 esac
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_link") 2>conftest.er1
27560 ac_status=$?
27561 grep -v '^ *+' conftest.er1 >conftest.err
27562 rm -f conftest.er1
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567 { (case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27570 esac
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_try") 2>&5
27573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest$ac_exeext'
27577 { (case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 ac_cv_lib_psapi_main=yes
27587 else
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 ac_cv_lib_psapi_main=no
27594 rm -f core conftest.err conftest.$ac_objext \
27595 conftest$ac_exeext conftest.$ac_ext
27596 LIBS=$ac_check_lib_save_LIBS
27598 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27599 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27600 if test $ac_cv_lib_psapi_main = yes; then
27601 cat >>confdefs.h <<_ACEOF
27602 #define HAVE_LIBPSAPI 1
27603 _ACEOF
27605 LIBS="-lpsapi $LIBS"
27611 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27612 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27613 if test "${ac_cv_search_dlopen+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27615 else
27616 ac_func_search_save_LIBS=$LIBS
27617 cat >conftest.$ac_ext <<_ACEOF
27618 /* confdefs.h. */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h. */
27624 /* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
27627 #ifdef __cplusplus
27628 extern "C"
27629 #endif
27630 char dlopen ();
27632 main ()
27634 return dlopen ();
27636 return 0;
27638 _ACEOF
27639 for ac_lib in '' dl; do
27640 if test -z "$ac_lib"; then
27641 ac_res="none required"
27642 else
27643 ac_res=-l$ac_lib
27644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27651 esac
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_link") 2>conftest.er1
27654 ac_status=$?
27655 grep -v '^ *+' conftest.er1 >conftest.err
27656 rm -f conftest.er1
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
27660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27670 { ac_try='test -s conftest$ac_exeext'
27671 { (case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27674 esac
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
27680 ac_cv_search_dlopen=$ac_res
27681 else
27682 echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.$ac_ext >&5
27688 rm -f core conftest.err conftest.$ac_objext \
27689 conftest$ac_exeext
27690 if test "${ac_cv_search_dlopen+set}" = set; then
27691 break
27693 done
27694 if test "${ac_cv_search_dlopen+set}" = set; then
27696 else
27697 ac_cv_search_dlopen=no
27699 rm conftest.$ac_ext
27700 LIBS=$ac_func_search_save_LIBS
27702 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27703 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27704 ac_res=$ac_cv_search_dlopen
27705 if test "$ac_res" != no; then
27706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27708 cat >>confdefs.h <<\_ACEOF
27709 #define HAVE_DLOPEN 1
27710 _ACEOF
27712 else
27713 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27714 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27718 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27719 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27720 if test "${ac_cv_search_mallinfo+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27722 else
27723 ac_func_search_save_LIBS=$LIBS
27724 cat >conftest.$ac_ext <<_ACEOF
27725 /* confdefs.h. */
27726 _ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h. */
27731 /* Override any GCC internal prototype to avoid an error.
27732 Use char because int might match the return type of a GCC
27733 builtin and then its argument prototype would still apply. */
27734 #ifdef __cplusplus
27735 extern "C"
27736 #endif
27737 char mallinfo ();
27739 main ()
27741 return mallinfo ();
27743 return 0;
27745 _ACEOF
27746 for ac_lib in '' malloc; do
27747 if test -z "$ac_lib"; then
27748 ac_res="none required"
27749 else
27750 ac_res=-l$ac_lib
27751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27753 rm -f conftest.$ac_objext conftest$ac_exeext
27754 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27761 ac_status=$?
27762 grep -v '^ *+' conftest.er1 >conftest.err
27763 rm -f conftest.er1
27764 cat conftest.err >&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); } &&
27767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27768 { (case "(($ac_try" in
27769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770 *) ac_try_echo=$ac_try;;
27771 esac
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_try") 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; } &&
27777 { ac_try='test -s conftest$ac_exeext'
27778 { (case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27781 esac
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_try") 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; }; then
27787 ac_cv_search_mallinfo=$ac_res
27788 else
27789 echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27795 rm -f core conftest.err conftest.$ac_objext \
27796 conftest$ac_exeext
27797 if test "${ac_cv_search_mallinfo+set}" = set; then
27798 break
27800 done
27801 if test "${ac_cv_search_mallinfo+set}" = set; then
27803 else
27804 ac_cv_search_mallinfo=no
27806 rm conftest.$ac_ext
27807 LIBS=$ac_func_search_save_LIBS
27809 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27810 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27811 ac_res=$ac_cv_search_mallinfo
27812 if test "$ac_res" != no; then
27813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27815 cat >>confdefs.h <<\_ACEOF
27816 #define HAVE_MALLINFO 1
27817 _ACEOF
27822 if test "$ENABLE_THREADS" -eq 1 ; then
27824 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27825 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27826 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27828 else
27829 ac_check_lib_save_LIBS=$LIBS
27830 LIBS="-lpthread $LIBS"
27831 cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h. */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27838 /* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
27841 #ifdef __cplusplus
27842 extern "C"
27843 #endif
27844 char pthread_mutex_init ();
27846 main ()
27848 return pthread_mutex_init ();
27850 return 0;
27852 _ACEOF
27853 rm -f conftest.$ac_objext conftest$ac_exeext
27854 if { (ac_try="$ac_link"
27855 case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27858 esac
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_link") 2>conftest.er1
27861 ac_status=$?
27862 grep -v '^ *+' conftest.er1 >conftest.err
27863 rm -f conftest.er1
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); } &&
27867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868 { (case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27874 ac_status=$?
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest$ac_exeext'
27878 { (case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27881 esac
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_try") 2>&5
27884 ac_status=$?
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; }; then
27887 ac_cv_lib_pthread_pthread_mutex_init=yes
27888 else
27889 echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27892 ac_cv_lib_pthread_pthread_mutex_init=no
27895 rm -f core conftest.err conftest.$ac_objext \
27896 conftest$ac_exeext conftest.$ac_ext
27897 LIBS=$ac_check_lib_save_LIBS
27899 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27900 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27901 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27902 cat >>confdefs.h <<_ACEOF
27903 #define HAVE_LIBPTHREAD 1
27904 _ACEOF
27906 LIBS="-lpthread $LIBS"
27910 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27911 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27912 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27914 else
27915 ac_func_search_save_LIBS=$LIBS
27916 cat >conftest.$ac_ext <<_ACEOF
27917 /* confdefs.h. */
27918 _ACEOF
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h. */
27923 /* Override any GCC internal prototype to avoid an error.
27924 Use char because int might match the return type of a GCC
27925 builtin and then its argument prototype would still apply. */
27926 #ifdef __cplusplus
27927 extern "C"
27928 #endif
27929 char pthread_mutex_lock ();
27931 main ()
27933 return pthread_mutex_lock ();
27935 return 0;
27937 _ACEOF
27938 for ac_lib in '' pthread; do
27939 if test -z "$ac_lib"; then
27940 ac_res="none required"
27941 else
27942 ac_res=-l$ac_lib
27943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27945 rm -f conftest.$ac_objext conftest$ac_exeext
27946 if { (ac_try="$ac_link"
27947 case "(($ac_try" in
27948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27950 esac
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_link") 2>conftest.er1
27953 ac_status=$?
27954 grep -v '^ *+' conftest.er1 >conftest.err
27955 rm -f conftest.er1
27956 cat conftest.err >&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } &&
27959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27960 { (case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963 esac
27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_try") 2>&5
27966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; } &&
27969 { ac_try='test -s conftest$ac_exeext'
27970 { (case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27973 esac
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_try") 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; }; then
27979 ac_cv_search_pthread_mutex_lock=$ac_res
27980 else
27981 echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27987 rm -f core conftest.err conftest.$ac_objext \
27988 conftest$ac_exeext
27989 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27990 break
27992 done
27993 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27995 else
27996 ac_cv_search_pthread_mutex_lock=no
27998 rm conftest.$ac_ext
27999 LIBS=$ac_func_search_save_LIBS
28001 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28002 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28003 ac_res=$ac_cv_search_pthread_mutex_lock
28004 if test "$ac_res" != no; then
28005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28007 cat >>confdefs.h <<\_ACEOF
28008 #define HAVE_PTHREAD_MUTEX_LOCK 1
28009 _ACEOF
28016 # Check whether --with-udis86 was given.
28017 if test "${with_udis86+set}" = set; then
28018 withval=$with_udis86;
28019 USE_UDIS86=1
28021 case "$withval" in
28022 /usr/lib|yes) ;;
28023 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28024 esac
28026 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28027 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28028 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28030 else
28031 ac_check_lib_save_LIBS=$LIBS
28032 LIBS="-ludis86 $LIBS"
28033 cat >conftest.$ac_ext <<_ACEOF
28034 /* confdefs.h. */
28035 _ACEOF
28036 cat confdefs.h >>conftest.$ac_ext
28037 cat >>conftest.$ac_ext <<_ACEOF
28038 /* end confdefs.h. */
28040 /* Override any GCC internal prototype to avoid an error.
28041 Use char because int might match the return type of a GCC
28042 builtin and then its argument prototype would still apply. */
28043 #ifdef __cplusplus
28044 extern "C"
28045 #endif
28046 char ud_init ();
28048 main ()
28050 return ud_init ();
28052 return 0;
28054 _ACEOF
28055 rm -f conftest.$ac_objext conftest$ac_exeext
28056 if { (ac_try="$ac_link"
28057 case "(($ac_try" in
28058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28060 esac
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_link") 2>conftest.er1
28063 ac_status=$?
28064 grep -v '^ *+' conftest.er1 >conftest.err
28065 rm -f conftest.er1
28066 cat conftest.err >&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); } &&
28069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28070 { (case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28073 esac
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_try") 2>&5
28076 ac_status=$?
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; } &&
28079 { ac_try='test -s conftest$ac_exeext'
28080 { (case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28083 esac
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_try") 2>&5
28086 ac_status=$?
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; }; then
28089 ac_cv_lib_udis86_ud_init=yes
28090 else
28091 echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28094 ac_cv_lib_udis86_ud_init=no
28097 rm -f core conftest.err conftest.$ac_objext \
28098 conftest$ac_exeext conftest.$ac_ext
28099 LIBS=$ac_check_lib_save_LIBS
28101 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28102 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28103 if test $ac_cv_lib_udis86_ud_init = yes; then
28104 cat >>confdefs.h <<_ACEOF
28105 #define HAVE_LIBUDIS86 1
28106 _ACEOF
28108 LIBS="-ludis86 $LIBS"
28110 else
28112 echo "Error! You need to have libudis86 around."
28113 exit -1
28118 else
28119 USE_UDIS86=0
28124 cat >>confdefs.h <<_ACEOF
28125 #define USE_UDIS86 $USE_UDIS86
28126 _ACEOF
28135 ac_header_dirent=no
28136 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28137 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28138 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28139 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28142 else
28143 cat >conftest.$ac_ext <<_ACEOF
28144 /* confdefs.h. */
28145 _ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h. */
28149 #include <sys/types.h>
28150 #include <$ac_hdr>
28153 main ()
28155 if ((DIR *) 0)
28156 return 0;
28158 return 0;
28160 _ACEOF
28161 rm -f conftest.$ac_objext
28162 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28169 ac_status=$?
28170 grep -v '^ *+' conftest.er1 >conftest.err
28171 rm -f conftest.er1
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } &&
28175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179 esac
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest.$ac_objext'
28186 { (case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28189 esac
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_try") 2>&5
28192 ac_status=$?
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; }; then
28195 eval "$as_ac_Header=yes"
28196 else
28197 echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28200 eval "$as_ac_Header=no"
28203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28205 ac_res=`eval echo '${'$as_ac_Header'}'`
28206 { echo "$as_me:$LINENO: result: $ac_res" >&5
28207 echo "${ECHO_T}$ac_res" >&6; }
28208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28209 cat >>confdefs.h <<_ACEOF
28210 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28211 _ACEOF
28213 ac_header_dirent=$ac_hdr; break
28216 done
28217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28218 if test $ac_header_dirent = dirent.h; then
28219 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28220 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28221 if test "${ac_cv_search_opendir+set}" = set; then
28222 echo $ECHO_N "(cached) $ECHO_C" >&6
28223 else
28224 ac_func_search_save_LIBS=$LIBS
28225 cat >conftest.$ac_ext <<_ACEOF
28226 /* confdefs.h. */
28227 _ACEOF
28228 cat confdefs.h >>conftest.$ac_ext
28229 cat >>conftest.$ac_ext <<_ACEOF
28230 /* end confdefs.h. */
28232 /* Override any GCC internal prototype to avoid an error.
28233 Use char because int might match the return type of a GCC
28234 builtin and then its argument prototype would still apply. */
28235 #ifdef __cplusplus
28236 extern "C"
28237 #endif
28238 char opendir ();
28240 main ()
28242 return opendir ();
28244 return 0;
28246 _ACEOF
28247 for ac_lib in '' dir; do
28248 if test -z "$ac_lib"; then
28249 ac_res="none required"
28250 else
28251 ac_res=-l$ac_lib
28252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28254 rm -f conftest.$ac_objext conftest$ac_exeext
28255 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28262 ac_status=$?
28263 grep -v '^ *+' conftest.er1 >conftest.err
28264 rm -f conftest.er1
28265 cat conftest.err >&5
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); } &&
28268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28269 { (case "(($ac_try" in
28270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28271 *) ac_try_echo=$ac_try;;
28272 esac
28273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28274 (eval "$ac_try") 2>&5
28275 ac_status=$?
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); }; } &&
28278 { ac_try='test -s conftest$ac_exeext'
28279 { (case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28282 esac
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_try") 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
28288 ac_cv_search_opendir=$ac_res
28289 else
28290 echo "$as_me: failed program was:" >&5
28291 sed 's/^/| /' conftest.$ac_ext >&5
28296 rm -f core conftest.err conftest.$ac_objext \
28297 conftest$ac_exeext
28298 if test "${ac_cv_search_opendir+set}" = set; then
28299 break
28301 done
28302 if test "${ac_cv_search_opendir+set}" = set; then
28304 else
28305 ac_cv_search_opendir=no
28307 rm conftest.$ac_ext
28308 LIBS=$ac_func_search_save_LIBS
28310 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28311 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28312 ac_res=$ac_cv_search_opendir
28313 if test "$ac_res" != no; then
28314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28318 else
28319 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28321 if test "${ac_cv_search_opendir+set}" = set; then
28322 echo $ECHO_N "(cached) $ECHO_C" >&6
28323 else
28324 ac_func_search_save_LIBS=$LIBS
28325 cat >conftest.$ac_ext <<_ACEOF
28326 /* confdefs.h. */
28327 _ACEOF
28328 cat confdefs.h >>conftest.$ac_ext
28329 cat >>conftest.$ac_ext <<_ACEOF
28330 /* end confdefs.h. */
28332 /* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
28335 #ifdef __cplusplus
28336 extern "C"
28337 #endif
28338 char opendir ();
28340 main ()
28342 return opendir ();
28344 return 0;
28346 _ACEOF
28347 for ac_lib in '' x; do
28348 if test -z "$ac_lib"; then
28349 ac_res="none required"
28350 else
28351 ac_res=-l$ac_lib
28352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28354 rm -f conftest.$ac_objext conftest$ac_exeext
28355 if { (ac_try="$ac_link"
28356 case "(($ac_try" in
28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28359 esac
28360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28361 (eval "$ac_link") 2>conftest.er1
28362 ac_status=$?
28363 grep -v '^ *+' conftest.er1 >conftest.err
28364 rm -f conftest.er1
28365 cat conftest.err >&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } &&
28368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28378 { ac_try='test -s conftest$ac_exeext'
28379 { (case "(($ac_try" in
28380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381 *) ac_try_echo=$ac_try;;
28382 esac
28383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28384 (eval "$ac_try") 2>&5
28385 ac_status=$?
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
28388 ac_cv_search_opendir=$ac_res
28389 else
28390 echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28396 rm -f core conftest.err conftest.$ac_objext \
28397 conftest$ac_exeext
28398 if test "${ac_cv_search_opendir+set}" = set; then
28399 break
28401 done
28402 if test "${ac_cv_search_opendir+set}" = set; then
28404 else
28405 ac_cv_search_opendir=no
28407 rm conftest.$ac_ext
28408 LIBS=$ac_func_search_save_LIBS
28410 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28411 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28412 ac_res=$ac_cv_search_opendir
28413 if test "$ac_res" != no; then
28414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28420 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28421 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28422 if test "${ac_cv_header_mmap_anon+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28424 else
28425 ac_ext=c
28426 ac_cpp='$CPP $CPPFLAGS'
28427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28431 cat >conftest.$ac_ext <<_ACEOF
28432 /* confdefs.h. */
28433 _ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h. */
28437 #include <sys/mman.h>
28438 #include <unistd.h>
28439 #include <fcntl.h>
28441 main ()
28443 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28445 return 0;
28447 _ACEOF
28448 rm -f conftest.$ac_objext
28449 if { (ac_try="$ac_compile"
28450 case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28453 esac
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455 (eval "$ac_compile") 2>conftest.er1
28456 ac_status=$?
28457 grep -v '^ *+' conftest.er1 >conftest.err
28458 rm -f conftest.er1
28459 cat conftest.err >&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } &&
28462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28463 { (case "(($ac_try" in
28464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465 *) ac_try_echo=$ac_try;;
28466 esac
28467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 (eval "$ac_try") 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; } &&
28472 { ac_try='test -s conftest.$ac_objext'
28473 { (case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28476 esac
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_try") 2>&5
28479 ac_status=$?
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; }; then
28482 ac_cv_header_mmap_anon=yes
28483 else
28484 echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.$ac_ext >&5
28487 ac_cv_header_mmap_anon=no
28490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28491 ac_ext=c
28492 ac_cpp='$CPP $CPPFLAGS'
28493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28499 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28500 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28501 if test "$ac_cv_header_mmap_anon" = yes; then
28503 cat >>confdefs.h <<\_ACEOF
28504 #define HAVE_MMAP_ANONYMOUS 1
28505 _ACEOF
28509 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28510 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28511 if test "${ac_cv_header_stat_broken+set}" = set; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28513 else
28514 cat >conftest.$ac_ext <<_ACEOF
28515 /* confdefs.h. */
28516 _ACEOF
28517 cat confdefs.h >>conftest.$ac_ext
28518 cat >>conftest.$ac_ext <<_ACEOF
28519 /* end confdefs.h. */
28520 #include <sys/types.h>
28521 #include <sys/stat.h>
28523 #if defined S_ISBLK && defined S_IFDIR
28524 # if S_ISBLK (S_IFDIR)
28525 You lose.
28526 # endif
28527 #endif
28529 #if defined S_ISBLK && defined S_IFCHR
28530 # if S_ISBLK (S_IFCHR)
28531 You lose.
28532 # endif
28533 #endif
28535 #if defined S_ISLNK && defined S_IFREG
28536 # if S_ISLNK (S_IFREG)
28537 You lose.
28538 # endif
28539 #endif
28541 #if defined S_ISSOCK && defined S_IFREG
28542 # if S_ISSOCK (S_IFREG)
28543 You lose.
28544 # endif
28545 #endif
28547 _ACEOF
28548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28549 $EGREP "You lose" >/dev/null 2>&1; then
28550 ac_cv_header_stat_broken=yes
28551 else
28552 ac_cv_header_stat_broken=no
28554 rm -f conftest*
28557 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28558 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28559 if test $ac_cv_header_stat_broken = yes; then
28561 cat >>confdefs.h <<\_ACEOF
28562 #define STAT_MACROS_BROKEN 1
28563 _ACEOF
28567 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28569 if test "${ac_cv_header_stdc+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28571 else
28572 cat >conftest.$ac_ext <<_ACEOF
28573 /* confdefs.h. */
28574 _ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h. */
28578 #include <stdlib.h>
28579 #include <stdarg.h>
28580 #include <string.h>
28581 #include <float.h>
28584 main ()
28588 return 0;
28590 _ACEOF
28591 rm -f conftest.$ac_objext
28592 if { (ac_try="$ac_compile"
28593 case "(($ac_try" in
28594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28595 *) ac_try_echo=$ac_try;;
28596 esac
28597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28598 (eval "$ac_compile") 2>conftest.er1
28599 ac_status=$?
28600 grep -v '^ *+' conftest.er1 >conftest.err
28601 rm -f conftest.er1
28602 cat conftest.err >&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } &&
28605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28606 { (case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609 esac
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_try") 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try='test -s conftest.$ac_objext'
28616 { (case "(($ac_try" in
28617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618 *) ac_try_echo=$ac_try;;
28619 esac
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621 (eval "$ac_try") 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; }; then
28625 ac_cv_header_stdc=yes
28626 else
28627 echo "$as_me: failed program was:" >&5
28628 sed 's/^/| /' conftest.$ac_ext >&5
28630 ac_cv_header_stdc=no
28633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28635 if test $ac_cv_header_stdc = yes; then
28636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28637 cat >conftest.$ac_ext <<_ACEOF
28638 /* confdefs.h. */
28639 _ACEOF
28640 cat confdefs.h >>conftest.$ac_ext
28641 cat >>conftest.$ac_ext <<_ACEOF
28642 /* end confdefs.h. */
28643 #include <string.h>
28645 _ACEOF
28646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28647 $EGREP "memchr" >/dev/null 2>&1; then
28649 else
28650 ac_cv_header_stdc=no
28652 rm -f conftest*
28656 if test $ac_cv_header_stdc = yes; then
28657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28658 cat >conftest.$ac_ext <<_ACEOF
28659 /* confdefs.h. */
28660 _ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h. */
28664 #include <stdlib.h>
28666 _ACEOF
28667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28668 $EGREP "free" >/dev/null 2>&1; then
28670 else
28671 ac_cv_header_stdc=no
28673 rm -f conftest*
28677 if test $ac_cv_header_stdc = yes; then
28678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28679 if test "$cross_compiling" = yes; then
28681 else
28682 cat >conftest.$ac_ext <<_ACEOF
28683 /* confdefs.h. */
28684 _ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h. */
28688 #include <ctype.h>
28689 #include <stdlib.h>
28690 #if ((' ' & 0x0FF) == 0x020)
28691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28693 #else
28694 # define ISLOWER(c) \
28695 (('a' <= (c) && (c) <= 'i') \
28696 || ('j' <= (c) && (c) <= 'r') \
28697 || ('s' <= (c) && (c) <= 'z'))
28698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28699 #endif
28701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28703 main ()
28705 int i;
28706 for (i = 0; i < 256; i++)
28707 if (XOR (islower (i), ISLOWER (i))
28708 || toupper (i) != TOUPPER (i))
28709 return 2;
28710 return 0;
28712 _ACEOF
28713 rm -f conftest$ac_exeext
28714 if { (ac_try="$ac_link"
28715 case "(($ac_try" in
28716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717 *) ac_try_echo=$ac_try;;
28718 esac
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_link") 2>&5
28721 ac_status=$?
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28724 { (case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28727 esac
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_try") 2>&5
28730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28734 else
28735 echo "$as_me: program exited with status $ac_status" >&5
28736 echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28739 ( exit $ac_status )
28740 ac_cv_header_stdc=no
28742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28748 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28749 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28750 if test $ac_cv_header_stdc = yes; then
28752 cat >>confdefs.h <<\_ACEOF
28753 #define STDC_HEADERS 1
28754 _ACEOF
28758 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28759 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28760 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28761 echo $ECHO_N "(cached) $ECHO_C" >&6
28762 else
28763 cat >conftest.$ac_ext <<_ACEOF
28764 /* confdefs.h. */
28765 _ACEOF
28766 cat confdefs.h >>conftest.$ac_ext
28767 cat >>conftest.$ac_ext <<_ACEOF
28768 /* end confdefs.h. */
28769 #include <sys/types.h>
28770 #include <sys/wait.h>
28771 #ifndef WEXITSTATUS
28772 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28773 #endif
28774 #ifndef WIFEXITED
28775 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28776 #endif
28779 main ()
28781 int s;
28782 wait (&s);
28783 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28785 return 0;
28787 _ACEOF
28788 rm -f conftest.$ac_objext
28789 if { (ac_try="$ac_compile"
28790 case "(($ac_try" in
28791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28792 *) ac_try_echo=$ac_try;;
28793 esac
28794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28795 (eval "$ac_compile") 2>conftest.er1
28796 ac_status=$?
28797 grep -v '^ *+' conftest.er1 >conftest.err
28798 rm -f conftest.er1
28799 cat conftest.err >&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
28802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28803 { (case "(($ac_try" in
28804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28805 *) ac_try_echo=$ac_try;;
28806 esac
28807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28808 (eval "$ac_try") 2>&5
28809 ac_status=$?
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); }; } &&
28812 { ac_try='test -s conftest.$ac_objext'
28813 { (case "(($ac_try" in
28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815 *) ac_try_echo=$ac_try;;
28816 esac
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_try") 2>&5
28819 ac_status=$?
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; }; then
28822 ac_cv_header_sys_wait_h=yes
28823 else
28824 echo "$as_me: failed program was:" >&5
28825 sed 's/^/| /' conftest.$ac_ext >&5
28827 ac_cv_header_sys_wait_h=no
28830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28832 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28833 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28834 if test $ac_cv_header_sys_wait_h = yes; then
28836 cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_SYS_WAIT_H 1
28838 _ACEOF
28842 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28843 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28844 if test "${ac_cv_header_time+set}" = set; then
28845 echo $ECHO_N "(cached) $ECHO_C" >&6
28846 else
28847 cat >conftest.$ac_ext <<_ACEOF
28848 /* confdefs.h. */
28849 _ACEOF
28850 cat confdefs.h >>conftest.$ac_ext
28851 cat >>conftest.$ac_ext <<_ACEOF
28852 /* end confdefs.h. */
28853 #include <sys/types.h>
28854 #include <sys/time.h>
28855 #include <time.h>
28858 main ()
28860 if ((struct tm *) 0)
28861 return 0;
28863 return 0;
28865 _ACEOF
28866 rm -f conftest.$ac_objext
28867 if { (ac_try="$ac_compile"
28868 case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28871 esac
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_compile") 2>conftest.er1
28874 ac_status=$?
28875 grep -v '^ *+' conftest.er1 >conftest.err
28876 rm -f conftest.er1
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } &&
28880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28881 { (case "(($ac_try" in
28882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883 *) ac_try_echo=$ac_try;;
28884 esac
28885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_try") 2>&5
28887 ac_status=$?
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; } &&
28890 { ac_try='test -s conftest.$ac_objext'
28891 { (case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28894 esac
28895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_try") 2>&5
28897 ac_status=$?
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; }; then
28900 ac_cv_header_time=yes
28901 else
28902 echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28905 ac_cv_header_time=no
28908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28910 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28911 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28912 if test $ac_cv_header_time = yes; then
28914 cat >>confdefs.h <<\_ACEOF
28915 #define TIME_WITH_SYS_TIME 1
28916 _ACEOF
28927 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28934 echo $ECHO_N "(cached) $ECHO_C" >&6
28936 ac_res=`eval echo '${'$as_ac_Header'}'`
28937 { echo "$as_me:$LINENO: result: $ac_res" >&5
28938 echo "${ECHO_T}$ac_res" >&6; }
28939 else
28940 # Is the header compilable?
28941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28943 cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h. */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 $ac_includes_default
28950 #include <$ac_header>
28951 _ACEOF
28952 rm -f conftest.$ac_objext
28953 if { (ac_try="$ac_compile"
28954 case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_compile") 2>conftest.er1
28960 ac_status=$?
28961 grep -v '^ *+' conftest.er1 >conftest.err
28962 rm -f conftest.er1
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } &&
28966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28967 { (case "(($ac_try" in
28968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969 *) ac_try_echo=$ac_try;;
28970 esac
28971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972 (eval "$ac_try") 2>&5
28973 ac_status=$?
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); }; } &&
28976 { ac_try='test -s conftest.$ac_objext'
28977 { (case "(($ac_try" in
28978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28979 *) ac_try_echo=$ac_try;;
28980 esac
28981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28982 (eval "$ac_try") 2>&5
28983 ac_status=$?
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; }; then
28986 ac_header_compiler=yes
28987 else
28988 echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28991 ac_header_compiler=no
28994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28996 echo "${ECHO_T}$ac_header_compiler" >&6; }
28998 # Is the header present?
28999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29001 cat >conftest.$ac_ext <<_ACEOF
29002 /* confdefs.h. */
29003 _ACEOF
29004 cat confdefs.h >>conftest.$ac_ext
29005 cat >>conftest.$ac_ext <<_ACEOF
29006 /* end confdefs.h. */
29007 #include <$ac_header>
29008 _ACEOF
29009 if { (ac_try="$ac_cpp conftest.$ac_ext"
29010 case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29013 esac
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29016 ac_status=$?
29017 grep -v '^ *+' conftest.er1 >conftest.err
29018 rm -f conftest.er1
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } >/dev/null; then
29022 if test -s conftest.err; then
29023 ac_cpp_err=$ac_c_preproc_warn_flag
29024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29025 else
29026 ac_cpp_err=
29028 else
29029 ac_cpp_err=yes
29031 if test -z "$ac_cpp_err"; then
29032 ac_header_preproc=yes
29033 else
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29037 ac_header_preproc=no
29040 rm -f conftest.err conftest.$ac_ext
29041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29042 echo "${ECHO_T}$ac_header_preproc" >&6; }
29044 # So? What about this header?
29045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29046 yes:no: )
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29051 ac_header_preproc=yes
29053 no:yes:* )
29054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29066 ( cat <<\_ASBOX
29067 ## ----------------------------------- ##
29068 ## Report this to llvmbugs@cs.uiuc.edu ##
29069 ## ----------------------------------- ##
29070 _ASBOX
29071 ) | sed "s/^/$as_me: WARNING: /" >&2
29073 esac
29074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 else
29079 eval "$as_ac_Header=\$ac_header_preproc"
29081 ac_res=`eval echo '${'$as_ac_Header'}'`
29082 { echo "$as_me:$LINENO: result: $ac_res" >&5
29083 echo "${ECHO_T}$ac_res" >&6; }
29086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29087 cat >>confdefs.h <<_ACEOF
29088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29089 _ACEOF
29093 done
29101 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29110 ac_res=`eval echo '${'$as_ac_Header'}'`
29111 { echo "$as_me:$LINENO: result: $ac_res" >&5
29112 echo "${ECHO_T}$ac_res" >&6; }
29113 else
29114 # Is the header compilable?
29115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29117 cat >conftest.$ac_ext <<_ACEOF
29118 /* confdefs.h. */
29119 _ACEOF
29120 cat confdefs.h >>conftest.$ac_ext
29121 cat >>conftest.$ac_ext <<_ACEOF
29122 /* end confdefs.h. */
29123 $ac_includes_default
29124 #include <$ac_header>
29125 _ACEOF
29126 rm -f conftest.$ac_objext
29127 if { (ac_try="$ac_compile"
29128 case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29131 esac
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_compile") 2>conftest.er1
29134 ac_status=$?
29135 grep -v '^ *+' conftest.er1 >conftest.err
29136 rm -f conftest.er1
29137 cat conftest.err >&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); } &&
29140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29141 { (case "(($ac_try" in
29142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29143 *) ac_try_echo=$ac_try;;
29144 esac
29145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29146 (eval "$ac_try") 2>&5
29147 ac_status=$?
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); }; } &&
29150 { ac_try='test -s conftest.$ac_objext'
29151 { (case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29154 esac
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_try") 2>&5
29157 ac_status=$?
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; }; then
29160 ac_header_compiler=yes
29161 else
29162 echo "$as_me: failed program was:" >&5
29163 sed 's/^/| /' conftest.$ac_ext >&5
29165 ac_header_compiler=no
29168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29170 echo "${ECHO_T}$ac_header_compiler" >&6; }
29172 # Is the header present?
29173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29175 cat >conftest.$ac_ext <<_ACEOF
29176 /* confdefs.h. */
29177 _ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h. */
29181 #include <$ac_header>
29182 _ACEOF
29183 if { (ac_try="$ac_cpp conftest.$ac_ext"
29184 case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29187 esac
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29190 ac_status=$?
29191 grep -v '^ *+' conftest.er1 >conftest.err
29192 rm -f conftest.er1
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } >/dev/null; then
29196 if test -s conftest.err; then
29197 ac_cpp_err=$ac_c_preproc_warn_flag
29198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29199 else
29200 ac_cpp_err=
29202 else
29203 ac_cpp_err=yes
29205 if test -z "$ac_cpp_err"; then
29206 ac_header_preproc=yes
29207 else
29208 echo "$as_me: failed program was:" >&5
29209 sed 's/^/| /' conftest.$ac_ext >&5
29211 ac_header_preproc=no
29214 rm -f conftest.err conftest.$ac_ext
29215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29216 echo "${ECHO_T}$ac_header_preproc" >&6; }
29218 # So? What about this header?
29219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29220 yes:no: )
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29225 ac_header_preproc=yes
29227 no:yes:* )
29228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29240 ( cat <<\_ASBOX
29241 ## ----------------------------------- ##
29242 ## Report this to llvmbugs@cs.uiuc.edu ##
29243 ## ----------------------------------- ##
29244 _ASBOX
29245 ) | sed "s/^/$as_me: WARNING: /" >&2
29247 esac
29248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29252 else
29253 eval "$as_ac_Header=\$ac_header_preproc"
29255 ac_res=`eval echo '${'$as_ac_Header'}'`
29256 { echo "$as_me:$LINENO: result: $ac_res" >&5
29257 echo "${ECHO_T}$ac_res" >&6; }
29260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29261 cat >>confdefs.h <<_ACEOF
29262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29263 _ACEOF
29267 done
29270 for ac_header in windows.h
29272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 ac_res=`eval echo '${'$as_ac_Header'}'`
29280 { echo "$as_me:$LINENO: result: $ac_res" >&5
29281 echo "${ECHO_T}$ac_res" >&6; }
29282 else
29283 # Is the header compilable?
29284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29286 cat >conftest.$ac_ext <<_ACEOF
29287 /* confdefs.h. */
29288 _ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h. */
29292 $ac_includes_default
29293 #include <$ac_header>
29294 _ACEOF
29295 rm -f conftest.$ac_objext
29296 if { (ac_try="$ac_compile"
29297 case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29300 esac
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_compile") 2>conftest.er1
29303 ac_status=$?
29304 grep -v '^ *+' conftest.er1 >conftest.err
29305 rm -f conftest.er1
29306 cat conftest.err >&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } &&
29309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29310 { (case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29313 esac
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29316 ac_status=$?
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; } &&
29319 { ac_try='test -s conftest.$ac_objext'
29320 { (case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_try") 2>&5
29326 ac_status=$?
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; }; then
29329 ac_header_compiler=yes
29330 else
29331 echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29334 ac_header_compiler=no
29337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29339 echo "${ECHO_T}$ac_header_compiler" >&6; }
29341 # Is the header present?
29342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29344 cat >conftest.$ac_ext <<_ACEOF
29345 /* confdefs.h. */
29346 _ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h. */
29350 #include <$ac_header>
29351 _ACEOF
29352 if { (ac_try="$ac_cpp conftest.$ac_ext"
29353 case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29356 esac
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29359 ac_status=$?
29360 grep -v '^ *+' conftest.er1 >conftest.err
29361 rm -f conftest.er1
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } >/dev/null; then
29365 if test -s conftest.err; then
29366 ac_cpp_err=$ac_c_preproc_warn_flag
29367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29368 else
29369 ac_cpp_err=
29371 else
29372 ac_cpp_err=yes
29374 if test -z "$ac_cpp_err"; then
29375 ac_header_preproc=yes
29376 else
29377 echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29380 ac_header_preproc=no
29383 rm -f conftest.err conftest.$ac_ext
29384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385 echo "${ECHO_T}$ac_header_preproc" >&6; }
29387 # So? What about this header?
29388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29389 yes:no: )
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394 ac_header_preproc=yes
29396 no:yes:* )
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29409 ( cat <<\_ASBOX
29410 ## ----------------------------------- ##
29411 ## Report this to llvmbugs@cs.uiuc.edu ##
29412 ## ----------------------------------- ##
29413 _ASBOX
29414 ) | sed "s/^/$as_me: WARNING: /" >&2
29416 esac
29417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422 eval "$as_ac_Header=\$ac_header_preproc"
29424 ac_res=`eval echo '${'$as_ac_Header'}'`
29425 { echo "$as_me:$LINENO: result: $ac_res" >&5
29426 echo "${ECHO_T}$ac_res" >&6; }
29429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29430 cat >>confdefs.h <<_ACEOF
29431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29432 _ACEOF
29436 done
29442 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 ac_res=`eval echo '${'$as_ac_Header'}'`
29452 { echo "$as_me:$LINENO: result: $ac_res" >&5
29453 echo "${ECHO_T}$ac_res" >&6; }
29454 else
29455 # Is the header compilable?
29456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29458 cat >conftest.$ac_ext <<_ACEOF
29459 /* confdefs.h. */
29460 _ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h. */
29464 $ac_includes_default
29465 #include <$ac_header>
29466 _ACEOF
29467 rm -f conftest.$ac_objext
29468 if { (ac_try="$ac_compile"
29469 case "(($ac_try" in
29470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29471 *) ac_try_echo=$ac_try;;
29472 esac
29473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29474 (eval "$ac_compile") 2>conftest.er1
29475 ac_status=$?
29476 grep -v '^ *+' conftest.er1 >conftest.err
29477 rm -f conftest.er1
29478 cat conftest.err >&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); } &&
29481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29482 { (case "(($ac_try" in
29483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484 *) ac_try_echo=$ac_try;;
29485 esac
29486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487 (eval "$ac_try") 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; } &&
29491 { ac_try='test -s conftest.$ac_objext'
29492 { (case "(($ac_try" in
29493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494 *) ac_try_echo=$ac_try;;
29495 esac
29496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497 (eval "$ac_try") 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_header_compiler=yes
29502 else
29503 echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.$ac_ext >&5
29506 ac_header_compiler=no
29509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29511 echo "${ECHO_T}$ac_header_compiler" >&6; }
29513 # Is the header present?
29514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29516 cat >conftest.$ac_ext <<_ACEOF
29517 /* confdefs.h. */
29518 _ACEOF
29519 cat confdefs.h >>conftest.$ac_ext
29520 cat >>conftest.$ac_ext <<_ACEOF
29521 /* end confdefs.h. */
29522 #include <$ac_header>
29523 _ACEOF
29524 if { (ac_try="$ac_cpp conftest.$ac_ext"
29525 case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29528 esac
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29531 ac_status=$?
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } >/dev/null; then
29537 if test -s conftest.err; then
29538 ac_cpp_err=$ac_c_preproc_warn_flag
29539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29540 else
29541 ac_cpp_err=
29543 else
29544 ac_cpp_err=yes
29546 if test -z "$ac_cpp_err"; then
29547 ac_header_preproc=yes
29548 else
29549 echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29552 ac_header_preproc=no
29555 rm -f conftest.err conftest.$ac_ext
29556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29557 echo "${ECHO_T}$ac_header_preproc" >&6; }
29559 # So? What about this header?
29560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29561 yes:no: )
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29566 ac_header_preproc=yes
29568 no:yes:* )
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29581 ( cat <<\_ASBOX
29582 ## ----------------------------------- ##
29583 ## Report this to llvmbugs@cs.uiuc.edu ##
29584 ## ----------------------------------- ##
29585 _ASBOX
29586 ) | sed "s/^/$as_me: WARNING: /" >&2
29588 esac
29589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29593 else
29594 eval "$as_ac_Header=\$ac_header_preproc"
29596 ac_res=`eval echo '${'$as_ac_Header'}'`
29597 { echo "$as_me:$LINENO: result: $ac_res" >&5
29598 echo "${ECHO_T}$ac_res" >&6; }
29601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29602 cat >>confdefs.h <<_ACEOF
29603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29604 _ACEOF
29608 done
29613 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29620 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 ac_res=`eval echo '${'$as_ac_Header'}'`
29623 { echo "$as_me:$LINENO: result: $ac_res" >&5
29624 echo "${ECHO_T}$ac_res" >&6; }
29625 else
29626 # Is the header compilable?
29627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29629 cat >conftest.$ac_ext <<_ACEOF
29630 /* confdefs.h. */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29635 $ac_includes_default
29636 #include <$ac_header>
29637 _ACEOF
29638 rm -f conftest.$ac_objext
29639 if { (ac_try="$ac_compile"
29640 case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643 esac
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_compile") 2>conftest.er1
29646 ac_status=$?
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
29652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29653 { (case "(($ac_try" in
29654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655 *) ac_try_echo=$ac_try;;
29656 esac
29657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_try") 2>&5
29659 ac_status=$?
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); }; } &&
29662 { ac_try='test -s conftest.$ac_objext'
29663 { (case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_try") 2>&5
29669 ac_status=$?
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); }; }; then
29672 ac_header_compiler=yes
29673 else
29674 echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29677 ac_header_compiler=no
29680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29682 echo "${ECHO_T}$ac_header_compiler" >&6; }
29684 # Is the header present?
29685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29687 cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h. */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29693 #include <$ac_header>
29694 _ACEOF
29695 if { (ac_try="$ac_cpp conftest.$ac_ext"
29696 case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29699 esac
29700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29702 ac_status=$?
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } >/dev/null; then
29708 if test -s conftest.err; then
29709 ac_cpp_err=$ac_c_preproc_warn_flag
29710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29711 else
29712 ac_cpp_err=
29714 else
29715 ac_cpp_err=yes
29717 if test -z "$ac_cpp_err"; then
29718 ac_header_preproc=yes
29719 else
29720 echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29723 ac_header_preproc=no
29726 rm -f conftest.err conftest.$ac_ext
29727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29728 echo "${ECHO_T}$ac_header_preproc" >&6; }
29730 # So? What about this header?
29731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29732 yes:no: )
29733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29737 ac_header_preproc=yes
29739 no:yes:* )
29740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29752 ( cat <<\_ASBOX
29753 ## ----------------------------------- ##
29754 ## Report this to llvmbugs@cs.uiuc.edu ##
29755 ## ----------------------------------- ##
29756 _ASBOX
29757 ) | sed "s/^/$as_me: WARNING: /" >&2
29759 esac
29760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29764 else
29765 eval "$as_ac_Header=\$ac_header_preproc"
29767 ac_res=`eval echo '${'$as_ac_Header'}'`
29768 { echo "$as_me:$LINENO: result: $ac_res" >&5
29769 echo "${ECHO_T}$ac_res" >&6; }
29772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29773 cat >>confdefs.h <<_ACEOF
29774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29775 _ACEOF
29779 done
29781 if test "$ENABLE_THREADS" -eq 1 ; then
29783 for ac_header in pthread.h
29785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29792 ac_res=`eval echo '${'$as_ac_Header'}'`
29793 { echo "$as_me:$LINENO: result: $ac_res" >&5
29794 echo "${ECHO_T}$ac_res" >&6; }
29795 else
29796 # Is the header compilable?
29797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29799 cat >conftest.$ac_ext <<_ACEOF
29800 /* confdefs.h. */
29801 _ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h. */
29805 $ac_includes_default
29806 #include <$ac_header>
29807 _ACEOF
29808 rm -f conftest.$ac_objext
29809 if { (ac_try="$ac_compile"
29810 case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29813 esac
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_compile") 2>conftest.er1
29816 ac_status=$?
29817 grep -v '^ *+' conftest.er1 >conftest.err
29818 rm -f conftest.er1
29819 cat conftest.err >&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); } &&
29822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29823 { (case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29826 esac
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_try") 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; } &&
29832 { ac_try='test -s conftest.$ac_objext'
29833 { (case "(($ac_try" in
29834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835 *) ac_try_echo=$ac_try;;
29836 esac
29837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838 (eval "$ac_try") 2>&5
29839 ac_status=$?
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; }; then
29842 ac_header_compiler=yes
29843 else
29844 echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.$ac_ext >&5
29847 ac_header_compiler=no
29850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29852 echo "${ECHO_T}$ac_header_compiler" >&6; }
29854 # Is the header present?
29855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29857 cat >conftest.$ac_ext <<_ACEOF
29858 /* confdefs.h. */
29859 _ACEOF
29860 cat confdefs.h >>conftest.$ac_ext
29861 cat >>conftest.$ac_ext <<_ACEOF
29862 /* end confdefs.h. */
29863 #include <$ac_header>
29864 _ACEOF
29865 if { (ac_try="$ac_cpp conftest.$ac_ext"
29866 case "(($ac_try" in
29867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868 *) ac_try_echo=$ac_try;;
29869 esac
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29872 ac_status=$?
29873 grep -v '^ *+' conftest.er1 >conftest.err
29874 rm -f conftest.er1
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } >/dev/null; then
29878 if test -s conftest.err; then
29879 ac_cpp_err=$ac_c_preproc_warn_flag
29880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29881 else
29882 ac_cpp_err=
29884 else
29885 ac_cpp_err=yes
29887 if test -z "$ac_cpp_err"; then
29888 ac_header_preproc=yes
29889 else
29890 echo "$as_me: failed program was:" >&5
29891 sed 's/^/| /' conftest.$ac_ext >&5
29893 ac_header_preproc=no
29896 rm -f conftest.err conftest.$ac_ext
29897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29898 echo "${ECHO_T}$ac_header_preproc" >&6; }
29900 # So? What about this header?
29901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29902 yes:no: )
29903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29907 ac_header_preproc=yes
29909 no:yes:* )
29910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29922 ( cat <<\_ASBOX
29923 ## ----------------------------------- ##
29924 ## Report this to llvmbugs@cs.uiuc.edu ##
29925 ## ----------------------------------- ##
29926 _ASBOX
29927 ) | sed "s/^/$as_me: WARNING: /" >&2
29929 esac
29930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
29934 else
29935 eval "$as_ac_Header=\$ac_header_preproc"
29937 ac_res=`eval echo '${'$as_ac_Header'}'`
29938 { echo "$as_me:$LINENO: result: $ac_res" >&5
29939 echo "${ECHO_T}$ac_res" >&6; }
29942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29943 cat >>confdefs.h <<_ACEOF
29944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29945 _ACEOF
29946 HAVE_PTHREAD=1
29948 else
29949 HAVE_PTHREAD=0
29953 done
29955 else
29956 HAVE_PTHREAD=0
29962 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29963 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29964 if test "${ac_cv_huge_val_sanity+set}" = set; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29966 else
29968 ac_ext=cpp
29969 ac_cpp='$CXXCPP $CPPFLAGS'
29970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29974 CXXFLAGS=-pedantic
29975 if test "$cross_compiling" = yes; then
29976 ac_cv_huge_val_sanity=yes
29977 else
29978 cat >conftest.$ac_ext <<_ACEOF
29979 /* confdefs.h. */
29980 _ACEOF
29981 cat confdefs.h >>conftest.$ac_ext
29982 cat >>conftest.$ac_ext <<_ACEOF
29983 /* end confdefs.h. */
29984 #include <math.h>
29986 main ()
29988 double x = HUGE_VAL; return x != x;
29990 return 0;
29992 _ACEOF
29993 rm -f conftest$ac_exeext
29994 if { (ac_try="$ac_link"
29995 case "(($ac_try" in
29996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997 *) ac_try_echo=$ac_try;;
29998 esac
29999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000 (eval "$ac_link") 2>&5
30001 ac_status=$?
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30004 { (case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30007 esac
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_try") 2>&5
30010 ac_status=$?
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; }; then
30013 ac_cv_huge_val_sanity=yes
30014 else
30015 echo "$as_me: program exited with status $ac_status" >&5
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30019 ( exit $ac_status )
30020 ac_cv_huge_val_sanity=no
30022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30026 ac_ext=c
30027 ac_cpp='$CPP $CPPFLAGS'
30028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30034 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30035 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30036 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30039 { echo "$as_me:$LINENO: checking for pid_t" >&5
30040 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30041 if test "${ac_cv_type_pid_t+set}" = set; then
30042 echo $ECHO_N "(cached) $ECHO_C" >&6
30043 else
30044 cat >conftest.$ac_ext <<_ACEOF
30045 /* confdefs.h. */
30046 _ACEOF
30047 cat confdefs.h >>conftest.$ac_ext
30048 cat >>conftest.$ac_ext <<_ACEOF
30049 /* end confdefs.h. */
30050 $ac_includes_default
30051 typedef pid_t ac__type_new_;
30053 main ()
30055 if ((ac__type_new_ *) 0)
30056 return 0;
30057 if (sizeof (ac__type_new_))
30058 return 0;
30060 return 0;
30062 _ACEOF
30063 rm -f conftest.$ac_objext
30064 if { (ac_try="$ac_compile"
30065 case "(($ac_try" in
30066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30067 *) ac_try_echo=$ac_try;;
30068 esac
30069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070 (eval "$ac_compile") 2>conftest.er1
30071 ac_status=$?
30072 grep -v '^ *+' conftest.er1 >conftest.err
30073 rm -f conftest.er1
30074 cat conftest.err >&5
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); } &&
30077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30078 { (case "(($ac_try" in
30079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080 *) ac_try_echo=$ac_try;;
30081 esac
30082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083 (eval "$ac_try") 2>&5
30084 ac_status=$?
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; } &&
30087 { ac_try='test -s conftest.$ac_objext'
30088 { (case "(($ac_try" in
30089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090 *) ac_try_echo=$ac_try;;
30091 esac
30092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_try") 2>&5
30094 ac_status=$?
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; }; then
30097 ac_cv_type_pid_t=yes
30098 else
30099 echo "$as_me: failed program was:" >&5
30100 sed 's/^/| /' conftest.$ac_ext >&5
30102 ac_cv_type_pid_t=no
30105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30107 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30108 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30109 if test $ac_cv_type_pid_t = yes; then
30111 else
30113 cat >>confdefs.h <<_ACEOF
30114 #define pid_t int
30115 _ACEOF
30119 { echo "$as_me:$LINENO: checking for size_t" >&5
30120 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30121 if test "${ac_cv_type_size_t+set}" = set; then
30122 echo $ECHO_N "(cached) $ECHO_C" >&6
30123 else
30124 cat >conftest.$ac_ext <<_ACEOF
30125 /* confdefs.h. */
30126 _ACEOF
30127 cat confdefs.h >>conftest.$ac_ext
30128 cat >>conftest.$ac_ext <<_ACEOF
30129 /* end confdefs.h. */
30130 $ac_includes_default
30131 typedef size_t ac__type_new_;
30133 main ()
30135 if ((ac__type_new_ *) 0)
30136 return 0;
30137 if (sizeof (ac__type_new_))
30138 return 0;
30140 return 0;
30142 _ACEOF
30143 rm -f conftest.$ac_objext
30144 if { (ac_try="$ac_compile"
30145 case "(($ac_try" in
30146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30147 *) ac_try_echo=$ac_try;;
30148 esac
30149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30150 (eval "$ac_compile") 2>conftest.er1
30151 ac_status=$?
30152 grep -v '^ *+' conftest.er1 >conftest.err
30153 rm -f conftest.er1
30154 cat conftest.err >&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); } &&
30157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30158 { (case "(($ac_try" in
30159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160 *) ac_try_echo=$ac_try;;
30161 esac
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163 (eval "$ac_try") 2>&5
30164 ac_status=$?
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); }; } &&
30167 { ac_try='test -s conftest.$ac_objext'
30168 { (case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_try") 2>&5
30174 ac_status=$?
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
30177 ac_cv_type_size_t=yes
30178 else
30179 echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30182 ac_cv_type_size_t=no
30185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30187 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30188 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30189 if test $ac_cv_type_size_t = yes; then
30191 else
30193 cat >>confdefs.h <<_ACEOF
30194 #define size_t unsigned int
30195 _ACEOF
30199 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30200 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30201 if test "${ac_cv_type_signal+set}" = set; then
30202 echo $ECHO_N "(cached) $ECHO_C" >&6
30203 else
30204 cat >conftest.$ac_ext <<_ACEOF
30205 /* confdefs.h. */
30206 _ACEOF
30207 cat confdefs.h >>conftest.$ac_ext
30208 cat >>conftest.$ac_ext <<_ACEOF
30209 /* end confdefs.h. */
30210 #include <sys/types.h>
30211 #include <signal.h>
30214 main ()
30216 return *(signal (0, 0)) (0) == 1;
30218 return 0;
30220 _ACEOF
30221 rm -f conftest.$ac_objext
30222 if { (ac_try="$ac_compile"
30223 case "(($ac_try" in
30224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225 *) ac_try_echo=$ac_try;;
30226 esac
30227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228 (eval "$ac_compile") 2>conftest.er1
30229 ac_status=$?
30230 grep -v '^ *+' conftest.er1 >conftest.err
30231 rm -f conftest.er1
30232 cat conftest.err >&5
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); } &&
30235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30236 { (case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30239 esac
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_try") 2>&5
30242 ac_status=$?
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; } &&
30245 { ac_try='test -s conftest.$ac_objext'
30246 { (case "(($ac_try" in
30247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248 *) ac_try_echo=$ac_try;;
30249 esac
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251 (eval "$ac_try") 2>&5
30252 ac_status=$?
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; }; then
30255 ac_cv_type_signal=int
30256 else
30257 echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30260 ac_cv_type_signal=void
30263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30265 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30266 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30268 cat >>confdefs.h <<_ACEOF
30269 #define RETSIGTYPE $ac_cv_type_signal
30270 _ACEOF
30273 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30274 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30275 if test "${ac_cv_struct_tm+set}" = set; then
30276 echo $ECHO_N "(cached) $ECHO_C" >&6
30277 else
30278 cat >conftest.$ac_ext <<_ACEOF
30279 /* confdefs.h. */
30280 _ACEOF
30281 cat confdefs.h >>conftest.$ac_ext
30282 cat >>conftest.$ac_ext <<_ACEOF
30283 /* end confdefs.h. */
30284 #include <sys/types.h>
30285 #include <time.h>
30288 main ()
30290 struct tm *tp; tp->tm_sec;
30292 return 0;
30294 _ACEOF
30295 rm -f conftest.$ac_objext
30296 if { (ac_try="$ac_compile"
30297 case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30300 esac
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_compile") 2>conftest.er1
30303 ac_status=$?
30304 grep -v '^ *+' conftest.er1 >conftest.err
30305 rm -f conftest.er1
30306 cat conftest.err >&5
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); } &&
30309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30310 { (case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30313 esac
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_try") 2>&5
30316 ac_status=$?
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); }; } &&
30319 { ac_try='test -s conftest.$ac_objext'
30320 { (case "(($ac_try" in
30321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322 *) ac_try_echo=$ac_try;;
30323 esac
30324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325 (eval "$ac_try") 2>&5
30326 ac_status=$?
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; }; then
30329 ac_cv_struct_tm=time.h
30330 else
30331 echo "$as_me: failed program was:" >&5
30332 sed 's/^/| /' conftest.$ac_ext >&5
30334 ac_cv_struct_tm=sys/time.h
30337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30339 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30340 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30341 if test $ac_cv_struct_tm = sys/time.h; then
30343 cat >>confdefs.h <<\_ACEOF
30344 #define TM_IN_SYS_TIME 1
30345 _ACEOF
30349 { echo "$as_me:$LINENO: checking for int64_t" >&5
30350 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30351 if test "${ac_cv_type_int64_t+set}" = set; then
30352 echo $ECHO_N "(cached) $ECHO_C" >&6
30353 else
30354 cat >conftest.$ac_ext <<_ACEOF
30355 /* confdefs.h. */
30356 _ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h. */
30360 $ac_includes_default
30361 typedef int64_t ac__type_new_;
30363 main ()
30365 if ((ac__type_new_ *) 0)
30366 return 0;
30367 if (sizeof (ac__type_new_))
30368 return 0;
30370 return 0;
30372 _ACEOF
30373 rm -f conftest.$ac_objext
30374 if { (ac_try="$ac_compile"
30375 case "(($ac_try" in
30376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377 *) ac_try_echo=$ac_try;;
30378 esac
30379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_compile") 2>conftest.er1
30381 ac_status=$?
30382 grep -v '^ *+' conftest.er1 >conftest.err
30383 rm -f conftest.er1
30384 cat conftest.err >&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); } &&
30387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30388 { (case "(($ac_try" in
30389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390 *) ac_try_echo=$ac_try;;
30391 esac
30392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393 (eval "$ac_try") 2>&5
30394 ac_status=$?
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); }; } &&
30397 { ac_try='test -s conftest.$ac_objext'
30398 { (case "(($ac_try" in
30399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400 *) ac_try_echo=$ac_try;;
30401 esac
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403 (eval "$ac_try") 2>&5
30404 ac_status=$?
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); }; }; then
30407 ac_cv_type_int64_t=yes
30408 else
30409 echo "$as_me: failed program was:" >&5
30410 sed 's/^/| /' conftest.$ac_ext >&5
30412 ac_cv_type_int64_t=no
30415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30417 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30418 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30419 if test $ac_cv_type_int64_t = yes; then
30421 cat >>confdefs.h <<_ACEOF
30422 #define HAVE_INT64_T 1
30423 _ACEOF
30426 else
30427 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30428 echo "$as_me: error: Type int64_t required but not found" >&2;}
30429 { (exit 1); exit 1; }; }
30432 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30433 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30434 if test "${ac_cv_type_uint64_t+set}" = set; then
30435 echo $ECHO_N "(cached) $ECHO_C" >&6
30436 else
30437 cat >conftest.$ac_ext <<_ACEOF
30438 /* confdefs.h. */
30439 _ACEOF
30440 cat confdefs.h >>conftest.$ac_ext
30441 cat >>conftest.$ac_ext <<_ACEOF
30442 /* end confdefs.h. */
30443 $ac_includes_default
30444 typedef uint64_t ac__type_new_;
30446 main ()
30448 if ((ac__type_new_ *) 0)
30449 return 0;
30450 if (sizeof (ac__type_new_))
30451 return 0;
30453 return 0;
30455 _ACEOF
30456 rm -f conftest.$ac_objext
30457 if { (ac_try="$ac_compile"
30458 case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30461 esac
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_compile") 2>conftest.er1
30464 ac_status=$?
30465 grep -v '^ *+' conftest.er1 >conftest.err
30466 rm -f conftest.er1
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
30470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30471 { (case "(($ac_try" in
30472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473 *) ac_try_echo=$ac_try;;
30474 esac
30475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476 (eval "$ac_try") 2>&5
30477 ac_status=$?
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; } &&
30480 { ac_try='test -s conftest.$ac_objext'
30481 { (case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30484 esac
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30487 ac_status=$?
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; }; then
30490 ac_cv_type_uint64_t=yes
30491 else
30492 echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30495 ac_cv_type_uint64_t=no
30498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30500 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30501 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30502 if test $ac_cv_type_uint64_t = yes; then
30504 cat >>confdefs.h <<_ACEOF
30505 #define HAVE_UINT64_T 1
30506 _ACEOF
30509 else
30510 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30511 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30512 if test "${ac_cv_type_u_int64_t+set}" = set; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30514 else
30515 cat >conftest.$ac_ext <<_ACEOF
30516 /* confdefs.h. */
30517 _ACEOF
30518 cat confdefs.h >>conftest.$ac_ext
30519 cat >>conftest.$ac_ext <<_ACEOF
30520 /* end confdefs.h. */
30521 $ac_includes_default
30522 typedef u_int64_t ac__type_new_;
30524 main ()
30526 if ((ac__type_new_ *) 0)
30527 return 0;
30528 if (sizeof (ac__type_new_))
30529 return 0;
30531 return 0;
30533 _ACEOF
30534 rm -f conftest.$ac_objext
30535 if { (ac_try="$ac_compile"
30536 case "(($ac_try" in
30537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538 *) ac_try_echo=$ac_try;;
30539 esac
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_compile") 2>conftest.er1
30542 ac_status=$?
30543 grep -v '^ *+' conftest.er1 >conftest.err
30544 rm -f conftest.er1
30545 cat conftest.err >&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); } &&
30548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30549 { (case "(($ac_try" in
30550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30552 esac
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_try") 2>&5
30555 ac_status=$?
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; } &&
30558 { ac_try='test -s conftest.$ac_objext'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30562 esac
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30568 ac_cv_type_u_int64_t=yes
30569 else
30570 echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.$ac_ext >&5
30573 ac_cv_type_u_int64_t=no
30576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30578 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30579 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30580 if test $ac_cv_type_u_int64_t = yes; then
30582 cat >>confdefs.h <<_ACEOF
30583 #define HAVE_U_INT64_T 1
30584 _ACEOF
30587 else
30588 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30589 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30590 { (exit 1); exit 1; }; }
30604 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30610 echo $ECHO_N "(cached) $ECHO_C" >&6
30611 else
30612 cat >conftest.$ac_ext <<_ACEOF
30613 /* confdefs.h. */
30614 _ACEOF
30615 cat confdefs.h >>conftest.$ac_ext
30616 cat >>conftest.$ac_ext <<_ACEOF
30617 /* end confdefs.h. */
30618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30620 #define $ac_func innocuous_$ac_func
30622 /* System header to define __stub macros and hopefully few prototypes,
30623 which can conflict with char $ac_func (); below.
30624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30625 <limits.h> exists even on freestanding compilers. */
30627 #ifdef __STDC__
30628 # include <limits.h>
30629 #else
30630 # include <assert.h>
30631 #endif
30633 #undef $ac_func
30635 /* Override any GCC internal prototype to avoid an error.
30636 Use char because int might match the return type of a GCC
30637 builtin and then its argument prototype would still apply. */
30638 #ifdef __cplusplus
30639 extern "C"
30640 #endif
30641 char $ac_func ();
30642 /* The GNU C library defines this for functions which it implements
30643 to always fail with ENOSYS. Some functions are actually named
30644 something starting with __ and the normal name is an alias. */
30645 #if defined __stub_$ac_func || defined __stub___$ac_func
30646 choke me
30647 #endif
30650 main ()
30652 return $ac_func ();
30654 return 0;
30656 _ACEOF
30657 rm -f conftest.$ac_objext conftest$ac_exeext
30658 if { (ac_try="$ac_link"
30659 case "(($ac_try" in
30660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661 *) ac_try_echo=$ac_try;;
30662 esac
30663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30664 (eval "$ac_link") 2>conftest.er1
30665 ac_status=$?
30666 grep -v '^ *+' conftest.er1 >conftest.err
30667 rm -f conftest.er1
30668 cat conftest.err >&5
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); } &&
30671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30672 { (case "(($ac_try" in
30673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674 *) ac_try_echo=$ac_try;;
30675 esac
30676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677 (eval "$ac_try") 2>&5
30678 ac_status=$?
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; } &&
30681 { ac_try='test -s conftest$ac_exeext'
30682 { (case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30685 esac
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_try") 2>&5
30688 ac_status=$?
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; }; then
30691 eval "$as_ac_var=yes"
30692 else
30693 echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30696 eval "$as_ac_var=no"
30699 rm -f core conftest.err conftest.$ac_objext \
30700 conftest$ac_exeext conftest.$ac_ext
30702 ac_res=`eval echo '${'$as_ac_var'}'`
30703 { echo "$as_me:$LINENO: result: $ac_res" >&5
30704 echo "${ECHO_T}$ac_res" >&6; }
30705 if test `eval echo '${'$as_ac_var'}'` = yes; then
30706 cat >>confdefs.h <<_ACEOF
30707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30708 _ACEOF
30711 done
30717 for ac_func in powf fmodf strtof round
30719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30723 echo $ECHO_N "(cached) $ECHO_C" >&6
30724 else
30725 cat >conftest.$ac_ext <<_ACEOF
30726 /* confdefs.h. */
30727 _ACEOF
30728 cat confdefs.h >>conftest.$ac_ext
30729 cat >>conftest.$ac_ext <<_ACEOF
30730 /* end confdefs.h. */
30731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30733 #define $ac_func innocuous_$ac_func
30735 /* System header to define __stub macros and hopefully few prototypes,
30736 which can conflict with char $ac_func (); below.
30737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30738 <limits.h> exists even on freestanding compilers. */
30740 #ifdef __STDC__
30741 # include <limits.h>
30742 #else
30743 # include <assert.h>
30744 #endif
30746 #undef $ac_func
30748 /* Override any GCC internal prototype to avoid an error.
30749 Use char because int might match the return type of a GCC
30750 builtin and then its argument prototype would still apply. */
30751 #ifdef __cplusplus
30752 extern "C"
30753 #endif
30754 char $ac_func ();
30755 /* The GNU C library defines this for functions which it implements
30756 to always fail with ENOSYS. Some functions are actually named
30757 something starting with __ and the normal name is an alias. */
30758 #if defined __stub_$ac_func || defined __stub___$ac_func
30759 choke me
30760 #endif
30763 main ()
30765 return $ac_func ();
30767 return 0;
30769 _ACEOF
30770 rm -f conftest.$ac_objext conftest$ac_exeext
30771 if { (ac_try="$ac_link"
30772 case "(($ac_try" in
30773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30774 *) ac_try_echo=$ac_try;;
30775 esac
30776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30777 (eval "$ac_link") 2>conftest.er1
30778 ac_status=$?
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } &&
30784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30785 { (case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30788 esac
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
30791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; } &&
30794 { ac_try='test -s conftest$ac_exeext'
30795 { (case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798 esac
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_try") 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 eval "$as_ac_var=yes"
30805 else
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.$ac_ext >&5
30809 eval "$as_ac_var=no"
30812 rm -f core conftest.err conftest.$ac_objext \
30813 conftest$ac_exeext conftest.$ac_ext
30815 ac_res=`eval echo '${'$as_ac_var'}'`
30816 { echo "$as_me:$LINENO: result: $ac_res" >&5
30817 echo "${ECHO_T}$ac_res" >&6; }
30818 if test `eval echo '${'$as_ac_var'}'` = yes; then
30819 cat >>confdefs.h <<_ACEOF
30820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30821 _ACEOF
30824 done
30831 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30837 echo $ECHO_N "(cached) $ECHO_C" >&6
30838 else
30839 cat >conftest.$ac_ext <<_ACEOF
30840 /* confdefs.h. */
30841 _ACEOF
30842 cat confdefs.h >>conftest.$ac_ext
30843 cat >>conftest.$ac_ext <<_ACEOF
30844 /* end confdefs.h. */
30845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30847 #define $ac_func innocuous_$ac_func
30849 /* System header to define __stub macros and hopefully few prototypes,
30850 which can conflict with char $ac_func (); below.
30851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30852 <limits.h> exists even on freestanding compilers. */
30854 #ifdef __STDC__
30855 # include <limits.h>
30856 #else
30857 # include <assert.h>
30858 #endif
30860 #undef $ac_func
30862 /* Override any GCC internal prototype to avoid an error.
30863 Use char because int might match the return type of a GCC
30864 builtin and then its argument prototype would still apply. */
30865 #ifdef __cplusplus
30866 extern "C"
30867 #endif
30868 char $ac_func ();
30869 /* The GNU C library defines this for functions which it implements
30870 to always fail with ENOSYS. Some functions are actually named
30871 something starting with __ and the normal name is an alias. */
30872 #if defined __stub_$ac_func || defined __stub___$ac_func
30873 choke me
30874 #endif
30877 main ()
30879 return $ac_func ();
30881 return 0;
30883 _ACEOF
30884 rm -f conftest.$ac_objext conftest$ac_exeext
30885 if { (ac_try="$ac_link"
30886 case "(($ac_try" in
30887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30888 *) ac_try_echo=$ac_try;;
30889 esac
30890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30891 (eval "$ac_link") 2>conftest.er1
30892 ac_status=$?
30893 grep -v '^ *+' conftest.er1 >conftest.err
30894 rm -f conftest.er1
30895 cat conftest.err >&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); } &&
30898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30899 { (case "(($ac_try" in
30900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901 *) ac_try_echo=$ac_try;;
30902 esac
30903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904 (eval "$ac_try") 2>&5
30905 ac_status=$?
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; } &&
30908 { ac_try='test -s conftest$ac_exeext'
30909 { (case "(($ac_try" in
30910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30911 *) ac_try_echo=$ac_try;;
30912 esac
30913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30914 (eval "$ac_try") 2>&5
30915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; }; then
30918 eval "$as_ac_var=yes"
30919 else
30920 echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30923 eval "$as_ac_var=no"
30926 rm -f core conftest.err conftest.$ac_objext \
30927 conftest$ac_exeext conftest.$ac_ext
30929 ac_res=`eval echo '${'$as_ac_var'}'`
30930 { echo "$as_me:$LINENO: result: $ac_res" >&5
30931 echo "${ECHO_T}$ac_res" >&6; }
30932 if test `eval echo '${'$as_ac_var'}'` = yes; then
30933 cat >>confdefs.h <<_ACEOF
30934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30935 _ACEOF
30938 done
30943 for ac_func in isatty mkdtemp mkstemp
30945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30949 echo $ECHO_N "(cached) $ECHO_C" >&6
30950 else
30951 cat >conftest.$ac_ext <<_ACEOF
30952 /* confdefs.h. */
30953 _ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h. */
30957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30959 #define $ac_func innocuous_$ac_func
30961 /* System header to define __stub macros and hopefully few prototypes,
30962 which can conflict with char $ac_func (); below.
30963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30964 <limits.h> exists even on freestanding compilers. */
30966 #ifdef __STDC__
30967 # include <limits.h>
30968 #else
30969 # include <assert.h>
30970 #endif
30972 #undef $ac_func
30974 /* Override any GCC internal prototype to avoid an error.
30975 Use char because int might match the return type of a GCC
30976 builtin and then its argument prototype would still apply. */
30977 #ifdef __cplusplus
30978 extern "C"
30979 #endif
30980 char $ac_func ();
30981 /* The GNU C library defines this for functions which it implements
30982 to always fail with ENOSYS. Some functions are actually named
30983 something starting with __ and the normal name is an alias. */
30984 #if defined __stub_$ac_func || defined __stub___$ac_func
30985 choke me
30986 #endif
30989 main ()
30991 return $ac_func ();
30993 return 0;
30995 _ACEOF
30996 rm -f conftest.$ac_objext conftest$ac_exeext
30997 if { (ac_try="$ac_link"
30998 case "(($ac_try" in
30999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000 *) ac_try_echo=$ac_try;;
31001 esac
31002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003 (eval "$ac_link") 2>conftest.er1
31004 ac_status=$?
31005 grep -v '^ *+' conftest.er1 >conftest.err
31006 rm -f conftest.er1
31007 cat conftest.err >&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } &&
31010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31011 { (case "(($ac_try" in
31012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31013 *) ac_try_echo=$ac_try;;
31014 esac
31015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016 (eval "$ac_try") 2>&5
31017 ac_status=$?
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; } &&
31020 { ac_try='test -s conftest$ac_exeext'
31021 { (case "(($ac_try" in
31022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023 *) ac_try_echo=$ac_try;;
31024 esac
31025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31026 (eval "$ac_try") 2>&5
31027 ac_status=$?
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; }; then
31030 eval "$as_ac_var=yes"
31031 else
31032 echo "$as_me: failed program was:" >&5
31033 sed 's/^/| /' conftest.$ac_ext >&5
31035 eval "$as_ac_var=no"
31038 rm -f core conftest.err conftest.$ac_objext \
31039 conftest$ac_exeext conftest.$ac_ext
31041 ac_res=`eval echo '${'$as_ac_var'}'`
31042 { echo "$as_me:$LINENO: result: $ac_res" >&5
31043 echo "${ECHO_T}$ac_res" >&6; }
31044 if test `eval echo '${'$as_ac_var'}'` = yes; then
31045 cat >>confdefs.h <<_ACEOF
31046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31047 _ACEOF
31050 done
31059 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066 else
31067 cat >conftest.$ac_ext <<_ACEOF
31068 /* confdefs.h. */
31069 _ACEOF
31070 cat confdefs.h >>conftest.$ac_ext
31071 cat >>conftest.$ac_ext <<_ACEOF
31072 /* end confdefs.h. */
31073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31075 #define $ac_func innocuous_$ac_func
31077 /* System header to define __stub macros and hopefully few prototypes,
31078 which can conflict with char $ac_func (); below.
31079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31080 <limits.h> exists even on freestanding compilers. */
31082 #ifdef __STDC__
31083 # include <limits.h>
31084 #else
31085 # include <assert.h>
31086 #endif
31088 #undef $ac_func
31090 /* Override any GCC internal prototype to avoid an error.
31091 Use char because int might match the return type of a GCC
31092 builtin and then its argument prototype would still apply. */
31093 #ifdef __cplusplus
31094 extern "C"
31095 #endif
31096 char $ac_func ();
31097 /* The GNU C library defines this for functions which it implements
31098 to always fail with ENOSYS. Some functions are actually named
31099 something starting with __ and the normal name is an alias. */
31100 #if defined __stub_$ac_func || defined __stub___$ac_func
31101 choke me
31102 #endif
31105 main ()
31107 return $ac_func ();
31109 return 0;
31111 _ACEOF
31112 rm -f conftest.$ac_objext conftest$ac_exeext
31113 if { (ac_try="$ac_link"
31114 case "(($ac_try" in
31115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116 *) ac_try_echo=$ac_try;;
31117 esac
31118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119 (eval "$ac_link") 2>conftest.er1
31120 ac_status=$?
31121 grep -v '^ *+' conftest.er1 >conftest.err
31122 rm -f conftest.er1
31123 cat conftest.err >&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); } &&
31126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31130 esac
31131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; } &&
31136 { ac_try='test -s conftest$ac_exeext'
31137 { (case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31140 esac
31141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_try") 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31146 eval "$as_ac_var=yes"
31147 else
31148 echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31151 eval "$as_ac_var=no"
31154 rm -f core conftest.err conftest.$ac_objext \
31155 conftest$ac_exeext conftest.$ac_ext
31157 ac_res=`eval echo '${'$as_ac_var'}'`
31158 { echo "$as_me:$LINENO: result: $ac_res" >&5
31159 echo "${ECHO_T}$ac_res" >&6; }
31160 if test `eval echo '${'$as_ac_var'}'` = yes; then
31161 cat >>confdefs.h <<_ACEOF
31162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31163 _ACEOF
31166 done
31172 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31178 echo $ECHO_N "(cached) $ECHO_C" >&6
31179 else
31180 cat >conftest.$ac_ext <<_ACEOF
31181 /* confdefs.h. */
31182 _ACEOF
31183 cat confdefs.h >>conftest.$ac_ext
31184 cat >>conftest.$ac_ext <<_ACEOF
31185 /* end confdefs.h. */
31186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31188 #define $ac_func innocuous_$ac_func
31190 /* System header to define __stub macros and hopefully few prototypes,
31191 which can conflict with char $ac_func (); below.
31192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31193 <limits.h> exists even on freestanding compilers. */
31195 #ifdef __STDC__
31196 # include <limits.h>
31197 #else
31198 # include <assert.h>
31199 #endif
31201 #undef $ac_func
31203 /* Override any GCC internal prototype to avoid an error.
31204 Use char because int might match the return type of a GCC
31205 builtin and then its argument prototype would still apply. */
31206 #ifdef __cplusplus
31207 extern "C"
31208 #endif
31209 char $ac_func ();
31210 /* The GNU C library defines this for functions which it implements
31211 to always fail with ENOSYS. Some functions are actually named
31212 something starting with __ and the normal name is an alias. */
31213 #if defined __stub_$ac_func || defined __stub___$ac_func
31214 choke me
31215 #endif
31218 main ()
31220 return $ac_func ();
31222 return 0;
31224 _ACEOF
31225 rm -f conftest.$ac_objext conftest$ac_exeext
31226 if { (ac_try="$ac_link"
31227 case "(($ac_try" in
31228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229 *) ac_try_echo=$ac_try;;
31230 esac
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_link") 2>conftest.er1
31233 ac_status=$?
31234 grep -v '^ *+' conftest.er1 >conftest.err
31235 rm -f conftest.er1
31236 cat conftest.err >&5
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); } &&
31239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31240 { (case "(($ac_try" in
31241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31242 *) ac_try_echo=$ac_try;;
31243 esac
31244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31245 (eval "$ac_try") 2>&5
31246 ac_status=$?
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; } &&
31249 { ac_try='test -s conftest$ac_exeext'
31250 { (case "(($ac_try" in
31251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252 *) ac_try_echo=$ac_try;;
31253 esac
31254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_try") 2>&5
31256 ac_status=$?
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); }; }; then
31259 eval "$as_ac_var=yes"
31260 else
31261 echo "$as_me: failed program was:" >&5
31262 sed 's/^/| /' conftest.$ac_ext >&5
31264 eval "$as_ac_var=no"
31267 rm -f core conftest.err conftest.$ac_objext \
31268 conftest$ac_exeext conftest.$ac_ext
31270 ac_res=`eval echo '${'$as_ac_var'}'`
31271 { echo "$as_me:$LINENO: result: $ac_res" >&5
31272 echo "${ECHO_T}$ac_res" >&6; }
31273 if test `eval echo '${'$as_ac_var'}'` = yes; then
31274 cat >>confdefs.h <<_ACEOF
31275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31276 _ACEOF
31279 done
31285 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31291 echo $ECHO_N "(cached) $ECHO_C" >&6
31292 else
31293 cat >conftest.$ac_ext <<_ACEOF
31294 /* confdefs.h. */
31295 _ACEOF
31296 cat confdefs.h >>conftest.$ac_ext
31297 cat >>conftest.$ac_ext <<_ACEOF
31298 /* end confdefs.h. */
31299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31301 #define $ac_func innocuous_$ac_func
31303 /* System header to define __stub macros and hopefully few prototypes,
31304 which can conflict with char $ac_func (); below.
31305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31306 <limits.h> exists even on freestanding compilers. */
31308 #ifdef __STDC__
31309 # include <limits.h>
31310 #else
31311 # include <assert.h>
31312 #endif
31314 #undef $ac_func
31316 /* Override any GCC internal prototype to avoid an error.
31317 Use char because int might match the return type of a GCC
31318 builtin and then its argument prototype would still apply. */
31319 #ifdef __cplusplus
31320 extern "C"
31321 #endif
31322 char $ac_func ();
31323 /* The GNU C library defines this for functions which it implements
31324 to always fail with ENOSYS. Some functions are actually named
31325 something starting with __ and the normal name is an alias. */
31326 #if defined __stub_$ac_func || defined __stub___$ac_func
31327 choke me
31328 #endif
31331 main ()
31333 return $ac_func ();
31335 return 0;
31337 _ACEOF
31338 rm -f conftest.$ac_objext conftest$ac_exeext
31339 if { (ac_try="$ac_link"
31340 case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31343 esac
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_link") 2>conftest.er1
31346 ac_status=$?
31347 grep -v '^ *+' conftest.er1 >conftest.err
31348 rm -f conftest.er1
31349 cat conftest.err >&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); } &&
31352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31353 { (case "(($ac_try" in
31354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355 *) ac_try_echo=$ac_try;;
31356 esac
31357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_try") 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; } &&
31362 { ac_try='test -s conftest$ac_exeext'
31363 { (case "(($ac_try" in
31364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31365 *) ac_try_echo=$ac_try;;
31366 esac
31367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31368 (eval "$ac_try") 2>&5
31369 ac_status=$?
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); }; }; then
31372 eval "$as_ac_var=yes"
31373 else
31374 echo "$as_me: failed program was:" >&5
31375 sed 's/^/| /' conftest.$ac_ext >&5
31377 eval "$as_ac_var=no"
31380 rm -f core conftest.err conftest.$ac_objext \
31381 conftest$ac_exeext conftest.$ac_ext
31383 ac_res=`eval echo '${'$as_ac_var'}'`
31384 { echo "$as_me:$LINENO: result: $ac_res" >&5
31385 echo "${ECHO_T}$ac_res" >&6; }
31386 if test `eval echo '${'$as_ac_var'}'` = yes; then
31387 cat >>confdefs.h <<_ACEOF
31388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31389 _ACEOF
31392 done
31394 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31395 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31396 if test "${llvm_cv_c_printf_a+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31398 else
31399 ac_ext=c
31400 ac_cpp='$CPP $CPPFLAGS'
31401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31405 if test "$cross_compiling" = yes; then
31406 llvmac_cv_c_printf_a=no
31407 else
31408 cat >conftest.$ac_ext <<_ACEOF
31410 /* confdefs.h. */
31411 _ACEOF
31412 cat confdefs.h >>conftest.$ac_ext
31413 cat >>conftest.$ac_ext <<_ACEOF
31414 /* end confdefs.h. */
31416 #include <stdio.h>
31417 #include <stdlib.h>
31420 main ()
31423 volatile double A, B;
31424 char Buffer[100];
31425 A = 1;
31426 A /= 10.0;
31427 sprintf(Buffer, "%a", A);
31428 B = atof(Buffer);
31429 if (A != B)
31430 return (1);
31431 if (A != 0x1.999999999999ap-4)
31432 return (1);
31433 return (0);
31435 return 0;
31437 _ACEOF
31438 rm -f conftest$ac_exeext
31439 if { (ac_try="$ac_link"
31440 case "(($ac_try" in
31441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442 *) ac_try_echo=$ac_try;;
31443 esac
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_link") 2>&5
31446 ac_status=$?
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31449 { (case "(($ac_try" in
31450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451 *) ac_try_echo=$ac_try;;
31452 esac
31453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454 (eval "$ac_try") 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; }; then
31458 llvm_cv_c_printf_a=yes
31459 else
31460 echo "$as_me: program exited with status $ac_status" >&5
31461 echo "$as_me: failed program was:" >&5
31462 sed 's/^/| /' conftest.$ac_ext >&5
31464 ( exit $ac_status )
31465 llvmac_cv_c_printf_a=no
31467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31471 ac_ext=c
31472 ac_cpp='$CPP $CPPFLAGS'
31473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31478 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31479 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31480 if test "$llvm_cv_c_printf_a" = "yes"; then
31482 cat >>confdefs.h <<\_ACEOF
31483 #define HAVE_PRINTF_A 1
31484 _ACEOF
31488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31489 # for constant arguments. Useless!
31490 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31491 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31492 if test "${ac_cv_working_alloca_h+set}" = set; then
31493 echo $ECHO_N "(cached) $ECHO_C" >&6
31494 else
31495 cat >conftest.$ac_ext <<_ACEOF
31496 /* confdefs.h. */
31497 _ACEOF
31498 cat confdefs.h >>conftest.$ac_ext
31499 cat >>conftest.$ac_ext <<_ACEOF
31500 /* end confdefs.h. */
31501 #include <alloca.h>
31503 main ()
31505 char *p = (char *) alloca (2 * sizeof (int));
31506 if (p) return 0;
31508 return 0;
31510 _ACEOF
31511 rm -f conftest.$ac_objext conftest$ac_exeext
31512 if { (ac_try="$ac_link"
31513 case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_link") 2>conftest.er1
31519 ac_status=$?
31520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529 esac
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest$ac_exeext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_working_alloca_h=yes
31546 else
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_cv_working_alloca_h=no
31553 rm -f core conftest.err conftest.$ac_objext \
31554 conftest$ac_exeext conftest.$ac_ext
31556 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31557 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31558 if test $ac_cv_working_alloca_h = yes; then
31560 cat >>confdefs.h <<\_ACEOF
31561 #define HAVE_ALLOCA_H 1
31562 _ACEOF
31566 { echo "$as_me:$LINENO: checking for alloca" >&5
31567 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31568 if test "${ac_cv_func_alloca_works+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31570 else
31571 cat >conftest.$ac_ext <<_ACEOF
31572 /* confdefs.h. */
31573 _ACEOF
31574 cat confdefs.h >>conftest.$ac_ext
31575 cat >>conftest.$ac_ext <<_ACEOF
31576 /* end confdefs.h. */
31577 #ifdef __GNUC__
31578 # define alloca __builtin_alloca
31579 #else
31580 # ifdef _MSC_VER
31581 # include <malloc.h>
31582 # define alloca _alloca
31583 # else
31584 # if HAVE_ALLOCA_H
31585 # include <alloca.h>
31586 # else
31587 # ifdef _AIX
31588 #pragma alloca
31589 # else
31590 # ifndef alloca /* predefined by HP cc +Olibcalls */
31591 char *alloca ();
31592 # endif
31593 # endif
31594 # endif
31595 # endif
31596 #endif
31599 main ()
31601 char *p = (char *) alloca (1);
31602 if (p) return 0;
31604 return 0;
31606 _ACEOF
31607 rm -f conftest.$ac_objext conftest$ac_exeext
31608 if { (ac_try="$ac_link"
31609 case "(($ac_try" in
31610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31611 *) ac_try_echo=$ac_try;;
31612 esac
31613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614 (eval "$ac_link") 2>conftest.er1
31615 ac_status=$?
31616 grep -v '^ *+' conftest.er1 >conftest.err
31617 rm -f conftest.er1
31618 cat conftest.err >&5
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); } &&
31621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31622 { (case "(($ac_try" in
31623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31624 *) ac_try_echo=$ac_try;;
31625 esac
31626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31627 (eval "$ac_try") 2>&5
31628 ac_status=$?
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; } &&
31631 { ac_try='test -s conftest$ac_exeext'
31632 { (case "(($ac_try" in
31633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634 *) ac_try_echo=$ac_try;;
31635 esac
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637 (eval "$ac_try") 2>&5
31638 ac_status=$?
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31641 ac_cv_func_alloca_works=yes
31642 else
31643 echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.$ac_ext >&5
31646 ac_cv_func_alloca_works=no
31649 rm -f core conftest.err conftest.$ac_objext \
31650 conftest$ac_exeext conftest.$ac_ext
31652 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31653 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31655 if test $ac_cv_func_alloca_works = yes; then
31657 cat >>confdefs.h <<\_ACEOF
31658 #define HAVE_ALLOCA 1
31659 _ACEOF
31661 else
31662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31663 # that cause trouble. Some versions do not even contain alloca or
31664 # contain a buggy version. If you still want to use their alloca,
31665 # use ar to extract alloca.o from them instead of compiling alloca.c.
31667 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31669 cat >>confdefs.h <<\_ACEOF
31670 #define C_ALLOCA 1
31671 _ACEOF
31674 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31675 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31676 if test "${ac_cv_os_cray+set}" = set; then
31677 echo $ECHO_N "(cached) $ECHO_C" >&6
31678 else
31679 cat >conftest.$ac_ext <<_ACEOF
31680 /* confdefs.h. */
31681 _ACEOF
31682 cat confdefs.h >>conftest.$ac_ext
31683 cat >>conftest.$ac_ext <<_ACEOF
31684 /* end confdefs.h. */
31685 #if defined CRAY && ! defined CRAY2
31686 webecray
31687 #else
31688 wenotbecray
31689 #endif
31691 _ACEOF
31692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31693 $EGREP "webecray" >/dev/null 2>&1; then
31694 ac_cv_os_cray=yes
31695 else
31696 ac_cv_os_cray=no
31698 rm -f conftest*
31701 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31702 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31703 if test $ac_cv_os_cray = yes; then
31704 for ac_func in _getb67 GETB67 getb67; do
31705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31709 echo $ECHO_N "(cached) $ECHO_C" >&6
31710 else
31711 cat >conftest.$ac_ext <<_ACEOF
31712 /* confdefs.h. */
31713 _ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h. */
31717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31719 #define $ac_func innocuous_$ac_func
31721 /* System header to define __stub macros and hopefully few prototypes,
31722 which can conflict with char $ac_func (); below.
31723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31724 <limits.h> exists even on freestanding compilers. */
31726 #ifdef __STDC__
31727 # include <limits.h>
31728 #else
31729 # include <assert.h>
31730 #endif
31732 #undef $ac_func
31734 /* Override any GCC internal prototype to avoid an error.
31735 Use char because int might match the return type of a GCC
31736 builtin and then its argument prototype would still apply. */
31737 #ifdef __cplusplus
31738 extern "C"
31739 #endif
31740 char $ac_func ();
31741 /* The GNU C library defines this for functions which it implements
31742 to always fail with ENOSYS. Some functions are actually named
31743 something starting with __ and the normal name is an alias. */
31744 #if defined __stub_$ac_func || defined __stub___$ac_func
31745 choke me
31746 #endif
31749 main ()
31751 return $ac_func ();
31753 return 0;
31755 _ACEOF
31756 rm -f conftest.$ac_objext conftest$ac_exeext
31757 if { (ac_try="$ac_link"
31758 case "(($ac_try" in
31759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760 *) ac_try_echo=$ac_try;;
31761 esac
31762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763 (eval "$ac_link") 2>conftest.er1
31764 ac_status=$?
31765 grep -v '^ *+' conftest.er1 >conftest.err
31766 rm -f conftest.er1
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } &&
31770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31771 { (case "(($ac_try" in
31772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773 *) ac_try_echo=$ac_try;;
31774 esac
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776 (eval "$ac_try") 2>&5
31777 ac_status=$?
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); }; } &&
31780 { ac_try='test -s conftest$ac_exeext'
31781 { (case "(($ac_try" in
31782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783 *) ac_try_echo=$ac_try;;
31784 esac
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786 (eval "$ac_try") 2>&5
31787 ac_status=$?
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; }; then
31790 eval "$as_ac_var=yes"
31791 else
31792 echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31795 eval "$as_ac_var=no"
31798 rm -f core conftest.err conftest.$ac_objext \
31799 conftest$ac_exeext conftest.$ac_ext
31801 ac_res=`eval echo '${'$as_ac_var'}'`
31802 { echo "$as_me:$LINENO: result: $ac_res" >&5
31803 echo "${ECHO_T}$ac_res" >&6; }
31804 if test `eval echo '${'$as_ac_var'}'` = yes; then
31806 cat >>confdefs.h <<_ACEOF
31807 #define CRAY_STACKSEG_END $ac_func
31808 _ACEOF
31810 break
31813 done
31816 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31817 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31818 if test "${ac_cv_c_stack_direction+set}" = set; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31820 else
31821 if test "$cross_compiling" = yes; then
31822 ac_cv_c_stack_direction=0
31823 else
31824 cat >conftest.$ac_ext <<_ACEOF
31825 /* confdefs.h. */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31830 $ac_includes_default
31832 find_stack_direction ()
31834 static char *addr = 0;
31835 auto char dummy;
31836 if (addr == 0)
31838 addr = &dummy;
31839 return find_stack_direction ();
31841 else
31842 return (&dummy > addr) ? 1 : -1;
31846 main ()
31848 return find_stack_direction () < 0;
31850 _ACEOF
31851 rm -f conftest$ac_exeext
31852 if { (ac_try="$ac_link"
31853 case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31856 esac
31857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858 (eval "$ac_link") 2>&5
31859 ac_status=$?
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31862 { (case "(($ac_try" in
31863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31864 *) ac_try_echo=$ac_try;;
31865 esac
31866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31867 (eval "$ac_try") 2>&5
31868 ac_status=$?
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); }; }; then
31871 ac_cv_c_stack_direction=1
31872 else
31873 echo "$as_me: program exited with status $ac_status" >&5
31874 echo "$as_me: failed program was:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31877 ( exit $ac_status )
31878 ac_cv_c_stack_direction=-1
31880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31885 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31886 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31888 cat >>confdefs.h <<_ACEOF
31889 #define STACK_DIRECTION $ac_cv_c_stack_direction
31890 _ACEOF
31896 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31897 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31898 if test "${ac_cv_func_rand48+set}" = set; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31900 else
31901 ac_ext=cpp
31902 ac_cpp='$CXXCPP $CPPFLAGS'
31903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31907 cat >conftest.$ac_ext <<_ACEOF
31908 /* confdefs.h. */
31909 _ACEOF
31910 cat confdefs.h >>conftest.$ac_ext
31911 cat >>conftest.$ac_ext <<_ACEOF
31912 /* end confdefs.h. */
31913 #include <stdlib.h>
31915 main ()
31917 srand48(0);lrand48();drand48();
31919 return 0;
31921 _ACEOF
31922 rm -f conftest.$ac_objext
31923 if { (ac_try="$ac_compile"
31924 case "(($ac_try" in
31925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926 *) ac_try_echo=$ac_try;;
31927 esac
31928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929 (eval "$ac_compile") 2>conftest.er1
31930 ac_status=$?
31931 grep -v '^ *+' conftest.er1 >conftest.err
31932 rm -f conftest.er1
31933 cat conftest.err >&5
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); } &&
31936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31937 { (case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31940 esac
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_try") 2>&5
31943 ac_status=$?
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; } &&
31946 { ac_try='test -s conftest.$ac_objext'
31947 { (case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31950 esac
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_try") 2>&5
31953 ac_status=$?
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); }; }; then
31956 ac_cv_func_rand48=yes
31957 else
31958 echo "$as_me: failed program was:" >&5
31959 sed 's/^/| /' conftest.$ac_ext >&5
31961 ac_cv_func_rand48=no
31964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31965 ac_ext=c
31966 ac_cpp='$CPP $CPPFLAGS'
31967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31972 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31973 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31975 if test "$ac_cv_func_rand48" = "yes" ; then
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_RAND48 1
31979 _ACEOF
31984 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31985 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31986 if test "${ac_cv_cxx_namespaces+set}" = set; then
31987 echo $ECHO_N "(cached) $ECHO_C" >&6
31988 else
31989 ac_ext=cpp
31990 ac_cpp='$CXXCPP $CPPFLAGS'
31991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31995 cat >conftest.$ac_ext <<_ACEOF
31996 /* confdefs.h. */
31997 _ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32001 namespace Outer { namespace Inner { int i = 0; }}
32003 main ()
32005 using namespace Outer::Inner; return i;
32007 return 0;
32009 _ACEOF
32010 rm -f conftest.$ac_objext
32011 if { (ac_try="$ac_compile"
32012 case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32015 esac
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_compile") 2>conftest.er1
32018 ac_status=$?
32019 grep -v '^ *+' conftest.er1 >conftest.err
32020 rm -f conftest.er1
32021 cat conftest.err >&5
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); } &&
32024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32025 { (case "(($ac_try" in
32026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32027 *) ac_try_echo=$ac_try;;
32028 esac
32029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32030 (eval "$ac_try") 2>&5
32031 ac_status=$?
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); }; } &&
32034 { ac_try='test -s conftest.$ac_objext'
32035 { (case "(($ac_try" in
32036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037 *) ac_try_echo=$ac_try;;
32038 esac
32039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040 (eval "$ac_try") 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; }; then
32044 ac_cv_cxx_namespaces=yes
32045 else
32046 echo "$as_me: failed program was:" >&5
32047 sed 's/^/| /' conftest.$ac_ext >&5
32049 ac_cv_cxx_namespaces=no
32052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32053 ac_ext=c
32054 ac_cpp='$CPP $CPPFLAGS'
32055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32061 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32062 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32063 if test "$ac_cv_cxx_namespaces" = yes; then
32065 cat >>confdefs.h <<\_ACEOF
32066 #define HAVE_NAMESPACES
32067 _ACEOF
32071 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32072 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32073 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32074 echo $ECHO_N "(cached) $ECHO_C" >&6
32075 else
32077 ac_ext=cpp
32078 ac_cpp='$CXXCPP $CPPFLAGS'
32079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32083 cat >conftest.$ac_ext <<_ACEOF
32084 /* confdefs.h. */
32085 _ACEOF
32086 cat confdefs.h >>conftest.$ac_ext
32087 cat >>conftest.$ac_ext <<_ACEOF
32088 /* end confdefs.h. */
32089 #include <ext/hash_map>
32090 #ifdef HAVE_NAMESPACES
32091 using namespace std;
32092 #endif
32094 main ()
32096 hash_map<int, int> t;
32098 return 0;
32100 _ACEOF
32101 rm -f conftest.$ac_objext
32102 if { (ac_try="$ac_compile"
32103 case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32106 esac
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_compile") 2>conftest.er1
32109 ac_status=$?
32110 grep -v '^ *+' conftest.er1 >conftest.err
32111 rm -f conftest.er1
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); } &&
32115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116 { (case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32119 esac
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_try") 2>&5
32122 ac_status=$?
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest.$ac_objext'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32129 esac
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32132 ac_status=$?
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; }; then
32135 ac_cv_cxx_have_std_ext_hash_map=yes
32136 else
32137 echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32140 ac_cv_cxx_have_std_ext_hash_map=no
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144 ac_ext=c
32145 ac_cpp='$CPP $CPPFLAGS'
32146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32151 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32152 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32153 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32154 then
32156 cat >>confdefs.h <<\_ACEOF
32157 #define HAVE_STD_EXT_HASH_MAP 1
32158 _ACEOF
32160 else
32162 cat >>confdefs.h <<\_ACEOF
32163 #define HAVE_STD_EXT_HASH_MAP 0
32164 _ACEOF
32168 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32169 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32170 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32171 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 else
32174 ac_ext=cpp
32175 ac_cpp='$CXXCPP $CPPFLAGS'
32176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32180 cat >conftest.$ac_ext <<_ACEOF
32181 /* confdefs.h. */
32182 _ACEOF
32183 cat confdefs.h >>conftest.$ac_ext
32184 cat >>conftest.$ac_ext <<_ACEOF
32185 /* end confdefs.h. */
32186 #include <ext/hash_map>
32187 #ifdef HAVE_NAMESPACES
32188 using namespace __gnu_cxx;
32189 #endif
32191 main ()
32193 hash_map<int,int> t;
32195 return 0;
32197 _ACEOF
32198 rm -f conftest.$ac_objext
32199 if { (ac_try="$ac_compile"
32200 case "(($ac_try" in
32201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202 *) ac_try_echo=$ac_try;;
32203 esac
32204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205 (eval "$ac_compile") 2>conftest.er1
32206 ac_status=$?
32207 grep -v '^ *+' conftest.er1 >conftest.err
32208 rm -f conftest.er1
32209 cat conftest.err >&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); } &&
32212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32216 esac
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32219 ac_status=$?
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; } &&
32222 { ac_try='test -s conftest.$ac_objext'
32223 { (case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32226 esac
32227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_try") 2>&5
32229 ac_status=$?
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; }; then
32232 ac_cv_cxx_have_gnu_ext_hash_map=yes
32233 else
32234 echo "$as_me: failed program was:" >&5
32235 sed 's/^/| /' conftest.$ac_ext >&5
32237 ac_cv_cxx_have_gnu_ext_hash_map=no
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32241 ac_ext=c
32242 ac_cpp='$CPP $CPPFLAGS'
32243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32248 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32249 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32250 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32251 then
32253 cat >>confdefs.h <<\_ACEOF
32254 #define HAVE_GNU_EXT_HASH_MAP 1
32255 _ACEOF
32257 else
32259 cat >>confdefs.h <<\_ACEOF
32260 #define HAVE_GNU_EXT_HASH_MAP 0
32261 _ACEOF
32265 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32266 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32267 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32269 else
32271 ac_ext=cpp
32272 ac_cpp='$CXXCPP $CPPFLAGS'
32273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32277 cat >conftest.$ac_ext <<_ACEOF
32278 /* confdefs.h. */
32279 _ACEOF
32280 cat confdefs.h >>conftest.$ac_ext
32281 cat >>conftest.$ac_ext <<_ACEOF
32282 /* end confdefs.h. */
32283 #include <hash_map>
32285 main ()
32287 hash_map<int,int> t;
32289 return 0;
32291 _ACEOF
32292 rm -f conftest.$ac_objext
32293 if { (ac_try="$ac_compile"
32294 case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32297 esac
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_compile") 2>conftest.er1
32300 ac_status=$?
32301 grep -v '^ *+' conftest.er1 >conftest.err
32302 rm -f conftest.er1
32303 cat conftest.err >&5
32304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305 (exit $ac_status); } &&
32306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32307 { (case "(($ac_try" in
32308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309 *) ac_try_echo=$ac_try;;
32310 esac
32311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312 (eval "$ac_try") 2>&5
32313 ac_status=$?
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); }; } &&
32316 { ac_try='test -s conftest.$ac_objext'
32317 { (case "(($ac_try" in
32318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319 *) ac_try_echo=$ac_try;;
32320 esac
32321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32322 (eval "$ac_try") 2>&5
32323 ac_status=$?
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; }; then
32326 ac_cv_cxx_have_global_hash_map=yes
32327 else
32328 echo "$as_me: failed program was:" >&5
32329 sed 's/^/| /' conftest.$ac_ext >&5
32331 ac_cv_cxx_have_global_hash_map=no
32334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32335 ac_ext=c
32336 ac_cpp='$CPP $CPPFLAGS'
32337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32342 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32343 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32344 if test "$ac_cv_cxx_have_global_hash_map" = yes
32345 then
32347 cat >>confdefs.h <<\_ACEOF
32348 #define HAVE_GLOBAL_HASH_MAP 1
32349 _ACEOF
32351 else
32353 cat >>confdefs.h <<\_ACEOF
32354 #define HAVE_GLOBAL_HASH_MAP 0
32355 _ACEOF
32359 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32360 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32361 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32362 echo $ECHO_N "(cached) $ECHO_C" >&6
32363 else
32365 ac_ext=cpp
32366 ac_cpp='$CXXCPP $CPPFLAGS'
32367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32371 cat >conftest.$ac_ext <<_ACEOF
32372 /* confdefs.h. */
32373 _ACEOF
32374 cat confdefs.h >>conftest.$ac_ext
32375 cat >>conftest.$ac_ext <<_ACEOF
32376 /* end confdefs.h. */
32377 #include <ext/hash_set>
32378 #ifdef HAVE_NAMESPACES
32379 using namespace std;
32380 #endif
32382 main ()
32384 hash_set<int> t;
32386 return 0;
32388 _ACEOF
32389 rm -f conftest.$ac_objext
32390 if { (ac_try="$ac_compile"
32391 case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_compile") 2>conftest.er1
32397 ac_status=$?
32398 grep -v '^ *+' conftest.er1 >conftest.err
32399 rm -f conftest.er1
32400 cat conftest.err >&5
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); } &&
32403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32404 { (case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32407 esac
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_try") 2>&5
32410 ac_status=$?
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try='test -s conftest.$ac_objext'
32414 { (case "(($ac_try" in
32415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416 *) ac_try_echo=$ac_try;;
32417 esac
32418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419 (eval "$ac_try") 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 ac_cv_cxx_have_std_ext_hash_set=yes
32424 else
32425 echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32428 ac_cv_cxx_have_std_ext_hash_set=no
32431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32432 ac_ext=c
32433 ac_cpp='$CPP $CPPFLAGS'
32434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32439 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32440 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32441 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32442 then
32444 cat >>confdefs.h <<\_ACEOF
32445 #define HAVE_STD_EXT_HASH_SET 1
32446 _ACEOF
32448 else
32450 cat >>confdefs.h <<\_ACEOF
32451 #define HAVE_STD_EXT_HASH_SET 0
32452 _ACEOF
32456 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32457 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32458 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32459 echo $ECHO_N "(cached) $ECHO_C" >&6
32460 else
32462 ac_ext=cpp
32463 ac_cpp='$CXXCPP $CPPFLAGS'
32464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468 cat >conftest.$ac_ext <<_ACEOF
32469 /* confdefs.h. */
32470 _ACEOF
32471 cat confdefs.h >>conftest.$ac_ext
32472 cat >>conftest.$ac_ext <<_ACEOF
32473 /* end confdefs.h. */
32474 #include <ext/hash_set>
32475 #ifdef HAVE_NAMESPACES
32476 using namespace __gnu_cxx;
32477 #endif
32479 main ()
32481 hash_set<int> t;
32483 return 0;
32485 _ACEOF
32486 rm -f conftest.$ac_objext
32487 if { (ac_try="$ac_compile"
32488 case "(($ac_try" in
32489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490 *) ac_try_echo=$ac_try;;
32491 esac
32492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493 (eval "$ac_compile") 2>conftest.er1
32494 ac_status=$?
32495 grep -v '^ *+' conftest.er1 >conftest.err
32496 rm -f conftest.er1
32497 cat conftest.err >&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); } &&
32500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32504 esac
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32507 ac_status=$?
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32514 esac
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_try") 2>&5
32517 ac_status=$?
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
32520 ac_cv_cxx_have_gnu_ext_hash_set=yes
32521 else
32522 echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32525 ac_cv_cxx_have_gnu_ext_hash_set=no
32528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32529 ac_ext=c
32530 ac_cpp='$CPP $CPPFLAGS'
32531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32536 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32537 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32538 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32539 then
32541 cat >>confdefs.h <<\_ACEOF
32542 #define HAVE_GNU_EXT_HASH_SET 1
32543 _ACEOF
32545 else
32547 cat >>confdefs.h <<\_ACEOF
32548 #define HAVE_GNU_EXT_HASH_SET 0
32549 _ACEOF
32553 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32554 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32555 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32556 echo $ECHO_N "(cached) $ECHO_C" >&6
32557 else
32559 ac_ext=cpp
32560 ac_cpp='$CXXCPP $CPPFLAGS'
32561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565 cat >conftest.$ac_ext <<_ACEOF
32566 /* confdefs.h. */
32567 _ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h. */
32571 #include <hash_set>
32573 main ()
32575 hash_set<int> t; return 0;
32577 return 0;
32579 _ACEOF
32580 rm -f conftest.$ac_objext
32581 if { (ac_try="$ac_compile"
32582 case "(($ac_try" in
32583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584 *) ac_try_echo=$ac_try;;
32585 esac
32586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587 (eval "$ac_compile") 2>conftest.er1
32588 ac_status=$?
32589 grep -v '^ *+' conftest.er1 >conftest.err
32590 rm -f conftest.er1
32591 cat conftest.err >&5
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } &&
32594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32595 { (case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32598 esac
32599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_try") 2>&5
32601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest.$ac_objext'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
32614 ac_cv_cxx_have_global_hash_set=yes
32615 else
32616 echo "$as_me: failed program was:" >&5
32617 sed 's/^/| /' conftest.$ac_ext >&5
32619 ac_cv_cxx_have_global_hash_set=no
32622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32623 ac_ext=c
32624 ac_cpp='$CPP $CPPFLAGS'
32625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32630 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32631 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32632 if test "$ac_cv_cxx_have_global_hash_set" = yes
32633 then
32635 cat >>confdefs.h <<\_ACEOF
32636 #define HAVE_GLOBAL_HASH_SET 1
32637 _ACEOF
32639 else
32641 cat >>confdefs.h <<\_ACEOF
32642 #define HAVE_GLOBAL_HASH_SET 0
32643 _ACEOF
32647 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32648 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32649 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32650 echo $ECHO_N "(cached) $ECHO_C" >&6
32651 else
32653 ac_ext=cpp
32654 ac_cpp='$CXXCPP $CPPFLAGS'
32655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32659 cat >conftest.$ac_ext <<_ACEOF
32660 /* confdefs.h. */
32661 _ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h. */
32665 #include <iterator>
32666 #ifdef HAVE_NAMESPACES
32667 using namespace std;
32668 #endif
32670 main ()
32672 iterator<int,int,int> t; return 0;
32674 return 0;
32676 _ACEOF
32677 rm -f conftest.$ac_objext
32678 if { (ac_try="$ac_compile"
32679 case "(($ac_try" in
32680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681 *) ac_try_echo=$ac_try;;
32682 esac
32683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684 (eval "$ac_compile") 2>conftest.er1
32685 ac_status=$?
32686 grep -v '^ *+' conftest.er1 >conftest.err
32687 rm -f conftest.er1
32688 cat conftest.err >&5
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); } &&
32691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32692 { (case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32695 esac
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_try") 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try='test -s conftest.$ac_objext'
32702 { (case "(($ac_try" in
32703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704 *) ac_try_echo=$ac_try;;
32705 esac
32706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32707 (eval "$ac_try") 2>&5
32708 ac_status=$?
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; }; then
32711 ac_cv_cxx_have_std_iterator=yes
32712 else
32713 echo "$as_me: failed program was:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32716 ac_cv_cxx_have_std_iterator=no
32719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32720 ac_ext=c
32721 ac_cpp='$CPP $CPPFLAGS'
32722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32728 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32729 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32730 if test "$ac_cv_cxx_have_std_iterator" = yes
32731 then
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_STD_ITERATOR 1
32735 _ACEOF
32737 else
32739 cat >>confdefs.h <<\_ACEOF
32740 #define HAVE_STD_ITERATOR 0
32741 _ACEOF
32745 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32746 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32747 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32749 else
32751 ac_ext=cpp
32752 ac_cpp='$CXXCPP $CPPFLAGS'
32753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32757 cat >conftest.$ac_ext <<_ACEOF
32758 /* confdefs.h. */
32759 _ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32763 #include <iterator>
32764 #ifdef HAVE_NAMESPACES
32765 using namespace std;
32766 #endif
32768 main ()
32770 bidirectional_iterator<int,int> t; return 0;
32772 return 0;
32774 _ACEOF
32775 rm -f conftest.$ac_objext
32776 if { (ac_try="$ac_compile"
32777 case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
32783 ac_status=$?
32784 grep -v '^ *+' conftest.er1 >conftest.err
32785 rm -f conftest.er1
32786 cat conftest.err >&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793 esac
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32803 esac
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_cv_cxx_have_bi_iterator=yes
32810 else
32811 echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32814 ac_cv_cxx_have_bi_iterator=no
32817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818 ac_ext=c
32819 ac_cpp='$CPP $CPPFLAGS'
32820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32826 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32827 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32828 if test "$ac_cv_cxx_have_bi_iterator" = yes
32829 then
32831 cat >>confdefs.h <<\_ACEOF
32832 #define HAVE_BI_ITERATOR 1
32833 _ACEOF
32835 else
32837 cat >>confdefs.h <<\_ACEOF
32838 #define HAVE_BI_ITERATOR 0
32839 _ACEOF
32843 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32844 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32845 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32846 echo $ECHO_N "(cached) $ECHO_C" >&6
32847 else
32849 ac_ext=cpp
32850 ac_cpp='$CXXCPP $CPPFLAGS'
32851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32855 cat >conftest.$ac_ext <<_ACEOF
32856 /* confdefs.h. */
32857 _ACEOF
32858 cat confdefs.h >>conftest.$ac_ext
32859 cat >>conftest.$ac_ext <<_ACEOF
32860 /* end confdefs.h. */
32861 #include <iterator>
32862 #ifdef HAVE_NAMESPACES
32863 using namespace std;
32864 #endif
32866 main ()
32868 forward_iterator<int,int> t; return 0;
32870 return 0;
32872 _ACEOF
32873 rm -f conftest.$ac_objext
32874 if { (ac_try="$ac_compile"
32875 case "(($ac_try" in
32876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877 *) ac_try_echo=$ac_try;;
32878 esac
32879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880 (eval "$ac_compile") 2>conftest.er1
32881 ac_status=$?
32882 grep -v '^ *+' conftest.er1 >conftest.err
32883 rm -f conftest.er1
32884 cat conftest.err >&5
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); } &&
32887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32888 { (case "(($ac_try" in
32889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890 *) ac_try_echo=$ac_try;;
32891 esac
32892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32893 (eval "$ac_try") 2>&5
32894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; } &&
32897 { ac_try='test -s conftest.$ac_objext'
32898 { (case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32901 esac
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_try") 2>&5
32904 ac_status=$?
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; }; then
32907 ac_cv_cxx_have_fwd_iterator=yes
32908 else
32909 echo "$as_me: failed program was:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32912 ac_cv_cxx_have_fwd_iterator=no
32915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32916 ac_ext=c
32917 ac_cpp='$CPP $CPPFLAGS'
32918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32924 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32925 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32926 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32927 then
32929 cat >>confdefs.h <<\_ACEOF
32930 #define HAVE_FWD_ITERATOR 1
32931 _ACEOF
32933 else
32935 cat >>confdefs.h <<\_ACEOF
32936 #define HAVE_FWD_ITERATOR 0
32937 _ACEOF
32942 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32943 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32944 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32945 echo $ECHO_N "(cached) $ECHO_C" >&6
32946 else
32947 ac_ext=cpp
32948 ac_cpp='$CXXCPP $CPPFLAGS'
32949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32953 cat >conftest.$ac_ext <<_ACEOF
32954 /* confdefs.h. */
32955 _ACEOF
32956 cat confdefs.h >>conftest.$ac_ext
32957 cat >>conftest.$ac_ext <<_ACEOF
32958 /* end confdefs.h. */
32959 #include <math.h>
32961 main ()
32963 float f; isnan(f);
32965 return 0;
32967 _ACEOF
32968 rm -f conftest.$ac_objext
32969 if { (ac_try="$ac_compile"
32970 case "(($ac_try" in
32971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972 *) ac_try_echo=$ac_try;;
32973 esac
32974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32975 (eval "$ac_compile") 2>conftest.er1
32976 ac_status=$?
32977 grep -v '^ *+' conftest.er1 >conftest.err
32978 rm -f conftest.er1
32979 cat conftest.err >&5
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); } &&
32982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32986 esac
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; } &&
32992 { ac_try='test -s conftest.$ac_objext'
32993 { (case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32996 esac
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_try") 2>&5
32999 ac_status=$?
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; }; then
33002 ac_cv_func_isnan_in_math_h=yes
33003 else
33004 echo "$as_me: failed program was:" >&5
33005 sed 's/^/| /' conftest.$ac_ext >&5
33007 ac_cv_func_isnan_in_math_h=no
33010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33011 ac_ext=c
33012 ac_cpp='$CPP $CPPFLAGS'
33013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33018 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33019 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33022 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33024 cat >>confdefs.h <<\_ACEOF
33025 #define HAVE_ISNAN_IN_MATH_H 1
33026 _ACEOF
33030 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33031 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33032 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33033 echo $ECHO_N "(cached) $ECHO_C" >&6
33034 else
33035 ac_ext=cpp
33036 ac_cpp='$CXXCPP $CPPFLAGS'
33037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33041 cat >conftest.$ac_ext <<_ACEOF
33042 /* confdefs.h. */
33043 _ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h. */
33047 #include <cmath>
33049 main ()
33051 float f; isnan(f);
33053 return 0;
33055 _ACEOF
33056 rm -f conftest.$ac_objext
33057 if { (ac_try="$ac_compile"
33058 case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33061 esac
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_compile") 2>conftest.er1
33064 ac_status=$?
33065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } &&
33070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33074 esac
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33077 ac_status=$?
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; } &&
33080 { ac_try='test -s conftest.$ac_objext'
33081 { (case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33084 esac
33085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_try") 2>&5
33087 ac_status=$?
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; }; then
33090 ac_cv_func_isnan_in_cmath=yes
33091 else
33092 echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33095 ac_cv_func_isnan_in_cmath=no
33098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33099 ac_ext=c
33100 ac_cpp='$CPP $CPPFLAGS'
33101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33106 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33107 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33109 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33111 cat >>confdefs.h <<\_ACEOF
33112 #define HAVE_ISNAN_IN_CMATH 1
33113 _ACEOF
33117 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33118 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33119 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33121 else
33122 ac_ext=cpp
33123 ac_cpp='$CXXCPP $CPPFLAGS'
33124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33128 cat >conftest.$ac_ext <<_ACEOF
33129 /* confdefs.h. */
33130 _ACEOF
33131 cat confdefs.h >>conftest.$ac_ext
33132 cat >>conftest.$ac_ext <<_ACEOF
33133 /* end confdefs.h. */
33134 #include <cmath>
33136 main ()
33138 float f; std::isnan(f);
33140 return 0;
33142 _ACEOF
33143 rm -f conftest.$ac_objext
33144 if { (ac_try="$ac_compile"
33145 case "(($ac_try" in
33146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147 *) ac_try_echo=$ac_try;;
33148 esac
33149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150 (eval "$ac_compile") 2>conftest.er1
33151 ac_status=$?
33152 grep -v '^ *+' conftest.er1 >conftest.err
33153 rm -f conftest.er1
33154 cat conftest.err >&5
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } &&
33157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161 esac
33162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33164 ac_status=$?
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; } &&
33167 { ac_try='test -s conftest.$ac_objext'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; }; then
33177 ac_cv_func_std_isnan_in_cmath=yes
33178 else
33179 echo "$as_me: failed program was:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33182 ac_cv_func_std_isnan_in_cmath=no
33185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33186 ac_ext=c
33187 ac_cpp='$CPP $CPPFLAGS'
33188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33193 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33194 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33196 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33198 cat >>confdefs.h <<\_ACEOF
33199 #define HAVE_STD_ISNAN_IN_CMATH 1
33200 _ACEOF
33205 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33206 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33207 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33208 echo $ECHO_N "(cached) $ECHO_C" >&6
33209 else
33210 ac_ext=cpp
33211 ac_cpp='$CXXCPP $CPPFLAGS'
33212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33216 cat >conftest.$ac_ext <<_ACEOF
33217 /* confdefs.h. */
33218 _ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h. */
33222 #include <math.h>
33224 main ()
33226 float f; isinf(f);
33228 return 0;
33230 _ACEOF
33231 rm -f conftest.$ac_objext
33232 if { (ac_try="$ac_compile"
33233 case "(($ac_try" in
33234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235 *) ac_try_echo=$ac_try;;
33236 esac
33237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33238 (eval "$ac_compile") 2>conftest.er1
33239 ac_status=$?
33240 grep -v '^ *+' conftest.er1 >conftest.err
33241 rm -f conftest.er1
33242 cat conftest.err >&5
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } &&
33245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33246 { (case "(($ac_try" in
33247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33248 *) ac_try_echo=$ac_try;;
33249 esac
33250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33251 (eval "$ac_try") 2>&5
33252 ac_status=$?
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); }; } &&
33255 { ac_try='test -s conftest.$ac_objext'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33259 esac
33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; }; then
33265 ac_cv_func_isinf_in_math_h=yes
33266 else
33267 echo "$as_me: failed program was:" >&5
33268 sed 's/^/| /' conftest.$ac_ext >&5
33270 ac_cv_func_isinf_in_math_h=no
33273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33274 ac_ext=c
33275 ac_cpp='$CPP $CPPFLAGS'
33276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33281 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33282 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33284 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33286 cat >>confdefs.h <<\_ACEOF
33287 #define HAVE_ISINF_IN_MATH_H 1
33288 _ACEOF
33292 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33293 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33294 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 else
33297 ac_ext=cpp
33298 ac_cpp='$CXXCPP $CPPFLAGS'
33299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33303 cat >conftest.$ac_ext <<_ACEOF
33304 /* confdefs.h. */
33305 _ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h. */
33309 #include <cmath>
33311 main ()
33313 float f; isinf(f);
33315 return 0;
33317 _ACEOF
33318 rm -f conftest.$ac_objext
33319 if { (ac_try="$ac_compile"
33320 case "(($ac_try" in
33321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33322 *) ac_try_echo=$ac_try;;
33323 esac
33324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33325 (eval "$ac_compile") 2>conftest.er1
33326 ac_status=$?
33327 grep -v '^ *+' conftest.er1 >conftest.err
33328 rm -f conftest.er1
33329 cat conftest.err >&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); } &&
33332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33333 { (case "(($ac_try" in
33334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33335 *) ac_try_echo=$ac_try;;
33336 esac
33337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33338 (eval "$ac_try") 2>&5
33339 ac_status=$?
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); }; } &&
33342 { ac_try='test -s conftest.$ac_objext'
33343 { (case "(($ac_try" in
33344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345 *) ac_try_echo=$ac_try;;
33346 esac
33347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33348 (eval "$ac_try") 2>&5
33349 ac_status=$?
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; }; then
33352 ac_cv_func_isinf_in_cmath=yes
33353 else
33354 echo "$as_me: failed program was:" >&5
33355 sed 's/^/| /' conftest.$ac_ext >&5
33357 ac_cv_func_isinf_in_cmath=no
33360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33361 ac_ext=c
33362 ac_cpp='$CPP $CPPFLAGS'
33363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33368 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33369 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33371 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33373 cat >>confdefs.h <<\_ACEOF
33374 #define HAVE_ISINF_IN_CMATH 1
33375 _ACEOF
33379 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33380 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33381 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33382 echo $ECHO_N "(cached) $ECHO_C" >&6
33383 else
33384 ac_ext=cpp
33385 ac_cpp='$CXXCPP $CPPFLAGS'
33386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33390 cat >conftest.$ac_ext <<_ACEOF
33391 /* confdefs.h. */
33392 _ACEOF
33393 cat confdefs.h >>conftest.$ac_ext
33394 cat >>conftest.$ac_ext <<_ACEOF
33395 /* end confdefs.h. */
33396 #include <cmath>
33398 main ()
33400 float f; std::isinf(f)}
33402 return 0;
33404 _ACEOF
33405 rm -f conftest.$ac_objext
33406 if { (ac_try="$ac_compile"
33407 case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33410 esac
33411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_compile") 2>conftest.er1
33413 ac_status=$?
33414 grep -v '^ *+' conftest.er1 >conftest.err
33415 rm -f conftest.er1
33416 cat conftest.err >&5
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); } &&
33419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33420 { (case "(($ac_try" in
33421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422 *) ac_try_echo=$ac_try;;
33423 esac
33424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33425 (eval "$ac_try") 2>&5
33426 ac_status=$?
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); }; } &&
33429 { ac_try='test -s conftest.$ac_objext'
33430 { (case "(($ac_try" in
33431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33432 *) ac_try_echo=$ac_try;;
33433 esac
33434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33435 (eval "$ac_try") 2>&5
33436 ac_status=$?
33437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438 (exit $ac_status); }; }; then
33439 ac_cv_func_std_isinf_in_cmath=yes
33440 else
33441 echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33444 ac_cv_func_std_isinf_in_cmath=no
33447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33448 ac_ext=c
33449 ac_cpp='$CPP $CPPFLAGS'
33450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33455 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33456 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33458 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33460 cat >>confdefs.h <<\_ACEOF
33461 #define HAVE_STD_ISINF_IN_CMATH 1
33462 _ACEOF
33466 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33467 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33468 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33469 echo $ECHO_N "(cached) $ECHO_C" >&6
33470 else
33471 ac_ext=cpp
33472 ac_cpp='$CXXCPP $CPPFLAGS'
33473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33477 cat >conftest.$ac_ext <<_ACEOF
33478 /* confdefs.h. */
33479 _ACEOF
33480 cat confdefs.h >>conftest.$ac_ext
33481 cat >>conftest.$ac_ext <<_ACEOF
33482 /* end confdefs.h. */
33483 #include <ieeefp.h>
33485 main ()
33487 float f; finite(f);
33489 return 0;
33491 _ACEOF
33492 rm -f conftest.$ac_objext
33493 if { (ac_try="$ac_compile"
33494 case "(($ac_try" in
33495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33496 *) ac_try_echo=$ac_try;;
33497 esac
33498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33499 (eval "$ac_compile") 2>conftest.er1
33500 ac_status=$?
33501 grep -v '^ *+' conftest.er1 >conftest.err
33502 rm -f conftest.er1
33503 cat conftest.err >&5
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); } &&
33506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33507 { (case "(($ac_try" in
33508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33509 *) ac_try_echo=$ac_try;;
33510 esac
33511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33512 (eval "$ac_try") 2>&5
33513 ac_status=$?
33514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515 (exit $ac_status); }; } &&
33516 { ac_try='test -s conftest.$ac_objext'
33517 { (case "(($ac_try" in
33518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33519 *) ac_try_echo=$ac_try;;
33520 esac
33521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33522 (eval "$ac_try") 2>&5
33523 ac_status=$?
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); }; }; then
33526 ac_cv_func_finite_in_ieeefp_h=yes
33527 else
33528 echo "$as_me: failed program was:" >&5
33529 sed 's/^/| /' conftest.$ac_ext >&5
33531 ac_cv_func_finite_in_ieeefp_h=no
33534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33535 ac_ext=c
33536 ac_cpp='$CPP $CPPFLAGS'
33537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33542 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33543 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33545 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33547 cat >>confdefs.h <<\_ACEOF
33548 #define HAVE_FINITE_IN_IEEEFP_H 1
33549 _ACEOF
33555 if test "$llvm_cv_platform_type" = "Unix" ; then
33558 for ac_header in stdlib.h unistd.h
33560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33565 echo $ECHO_N "(cached) $ECHO_C" >&6
33567 ac_res=`eval echo '${'$as_ac_Header'}'`
33568 { echo "$as_me:$LINENO: result: $ac_res" >&5
33569 echo "${ECHO_T}$ac_res" >&6; }
33570 else
33571 # Is the header compilable?
33572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33574 cat >conftest.$ac_ext <<_ACEOF
33575 /* confdefs.h. */
33576 _ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h. */
33580 $ac_includes_default
33581 #include <$ac_header>
33582 _ACEOF
33583 rm -f conftest.$ac_objext
33584 if { (ac_try="$ac_compile"
33585 case "(($ac_try" in
33586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33587 *) ac_try_echo=$ac_try;;
33588 esac
33589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33590 (eval "$ac_compile") 2>conftest.er1
33591 ac_status=$?
33592 grep -v '^ *+' conftest.er1 >conftest.err
33593 rm -f conftest.er1
33594 cat conftest.err >&5
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); } &&
33597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33598 { (case "(($ac_try" in
33599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33600 *) ac_try_echo=$ac_try;;
33601 esac
33602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33603 (eval "$ac_try") 2>&5
33604 ac_status=$?
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); }; } &&
33607 { ac_try='test -s conftest.$ac_objext'
33608 { (case "(($ac_try" in
33609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610 *) ac_try_echo=$ac_try;;
33611 esac
33612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33613 (eval "$ac_try") 2>&5
33614 ac_status=$?
33615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616 (exit $ac_status); }; }; then
33617 ac_header_compiler=yes
33618 else
33619 echo "$as_me: failed program was:" >&5
33620 sed 's/^/| /' conftest.$ac_ext >&5
33622 ac_header_compiler=no
33625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33627 echo "${ECHO_T}$ac_header_compiler" >&6; }
33629 # Is the header present?
33630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33632 cat >conftest.$ac_ext <<_ACEOF
33633 /* confdefs.h. */
33634 _ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h. */
33638 #include <$ac_header>
33639 _ACEOF
33640 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
33653 if test -s conftest.err; then
33654 ac_cpp_err=$ac_c_preproc_warn_flag
33655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33656 else
33657 ac_cpp_err=
33659 else
33660 ac_cpp_err=yes
33662 if test -z "$ac_cpp_err"; then
33663 ac_header_preproc=yes
33664 else
33665 echo "$as_me: failed program was:" >&5
33666 sed 's/^/| /' conftest.$ac_ext >&5
33668 ac_header_preproc=no
33671 rm -f conftest.err conftest.$ac_ext
33672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33673 echo "${ECHO_T}$ac_header_preproc" >&6; }
33675 # So? What about this header?
33676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33677 yes:no: )
33678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33682 ac_header_preproc=yes
33684 no:yes:* )
33685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33697 ( cat <<\_ASBOX
33698 ## ----------------------------------- ##
33699 ## Report this to llvmbugs@cs.uiuc.edu ##
33700 ## ----------------------------------- ##
33701 _ASBOX
33702 ) | sed "s/^/$as_me: WARNING: /" >&2
33704 esac
33705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33708 echo $ECHO_N "(cached) $ECHO_C" >&6
33709 else
33710 eval "$as_ac_Header=\$ac_header_preproc"
33712 ac_res=`eval echo '${'$as_ac_Header'}'`
33713 { echo "$as_me:$LINENO: result: $ac_res" >&5
33714 echo "${ECHO_T}$ac_res" >&6; }
33717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33718 cat >>confdefs.h <<_ACEOF
33719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33720 _ACEOF
33724 done
33727 for ac_func in getpagesize
33729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33733 echo $ECHO_N "(cached) $ECHO_C" >&6
33734 else
33735 cat >conftest.$ac_ext <<_ACEOF
33736 /* confdefs.h. */
33737 _ACEOF
33738 cat confdefs.h >>conftest.$ac_ext
33739 cat >>conftest.$ac_ext <<_ACEOF
33740 /* end confdefs.h. */
33741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33743 #define $ac_func innocuous_$ac_func
33745 /* System header to define __stub macros and hopefully few prototypes,
33746 which can conflict with char $ac_func (); below.
33747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33748 <limits.h> exists even on freestanding compilers. */
33750 #ifdef __STDC__
33751 # include <limits.h>
33752 #else
33753 # include <assert.h>
33754 #endif
33756 #undef $ac_func
33758 /* Override any GCC internal prototype to avoid an error.
33759 Use char because int might match the return type of a GCC
33760 builtin and then its argument prototype would still apply. */
33761 #ifdef __cplusplus
33762 extern "C"
33763 #endif
33764 char $ac_func ();
33765 /* The GNU C library defines this for functions which it implements
33766 to always fail with ENOSYS. Some functions are actually named
33767 something starting with __ and the normal name is an alias. */
33768 #if defined __stub_$ac_func || defined __stub___$ac_func
33769 choke me
33770 #endif
33773 main ()
33775 return $ac_func ();
33777 return 0;
33779 _ACEOF
33780 rm -f conftest.$ac_objext conftest$ac_exeext
33781 if { (ac_try="$ac_link"
33782 case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33785 esac
33786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_link") 2>conftest.er1
33788 ac_status=$?
33789 grep -v '^ *+' conftest.er1 >conftest.err
33790 rm -f conftest.er1
33791 cat conftest.err >&5
33792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793 (exit $ac_status); } &&
33794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33795 { (case "(($ac_try" in
33796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33797 *) ac_try_echo=$ac_try;;
33798 esac
33799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33800 (eval "$ac_try") 2>&5
33801 ac_status=$?
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); }; } &&
33804 { ac_try='test -s conftest$ac_exeext'
33805 { (case "(($ac_try" in
33806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33807 *) ac_try_echo=$ac_try;;
33808 esac
33809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33810 (eval "$ac_try") 2>&5
33811 ac_status=$?
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; }; then
33814 eval "$as_ac_var=yes"
33815 else
33816 echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33819 eval "$as_ac_var=no"
33822 rm -f core conftest.err conftest.$ac_objext \
33823 conftest$ac_exeext conftest.$ac_ext
33825 ac_res=`eval echo '${'$as_ac_var'}'`
33826 { echo "$as_me:$LINENO: result: $ac_res" >&5
33827 echo "${ECHO_T}$ac_res" >&6; }
33828 if test `eval echo '${'$as_ac_var'}'` = yes; then
33829 cat >>confdefs.h <<_ACEOF
33830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33831 _ACEOF
33834 done
33836 { echo "$as_me:$LINENO: checking for working mmap" >&5
33837 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33838 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33840 else
33841 if test "$cross_compiling" = yes; then
33842 ac_cv_func_mmap_fixed_mapped=no
33843 else
33844 cat >conftest.$ac_ext <<_ACEOF
33845 /* confdefs.h. */
33846 _ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h. */
33850 $ac_includes_default
33851 /* malloc might have been renamed as rpl_malloc. */
33852 #undef malloc
33854 /* Thanks to Mike Haertel and Jim Avera for this test.
33855 Here is a matrix of mmap possibilities:
33856 mmap private not fixed
33857 mmap private fixed at somewhere currently unmapped
33858 mmap private fixed at somewhere already mapped
33859 mmap shared not fixed
33860 mmap shared fixed at somewhere currently unmapped
33861 mmap shared fixed at somewhere already mapped
33862 For private mappings, we should verify that changes cannot be read()
33863 back from the file, nor mmap's back from the file at a different
33864 address. (There have been systems where private was not correctly
33865 implemented like the infamous i386 svr4.0, and systems where the
33866 VM page cache was not coherent with the file system buffer cache
33867 like early versions of FreeBSD and possibly contemporary NetBSD.)
33868 For shared mappings, we should conversely verify that changes get
33869 propagated back to all the places they're supposed to be.
33871 Grep wants private fixed already mapped.
33872 The main things grep needs to know about mmap are:
33873 * does it exist and is it safe to write into the mmap'd area
33874 * how to use it (BSD variants) */
33876 #include <fcntl.h>
33877 #include <sys/mman.h>
33879 #if !STDC_HEADERS && !HAVE_STDLIB_H
33880 char *malloc ();
33881 #endif
33883 /* This mess was copied from the GNU getpagesize.h. */
33884 #if !HAVE_GETPAGESIZE
33885 /* Assume that all systems that can run configure have sys/param.h. */
33886 # if !HAVE_SYS_PARAM_H
33887 # define HAVE_SYS_PARAM_H 1
33888 # endif
33890 # ifdef _SC_PAGESIZE
33891 # define getpagesize() sysconf(_SC_PAGESIZE)
33892 # else /* no _SC_PAGESIZE */
33893 # if HAVE_SYS_PARAM_H
33894 # include <sys/param.h>
33895 # ifdef EXEC_PAGESIZE
33896 # define getpagesize() EXEC_PAGESIZE
33897 # else /* no EXEC_PAGESIZE */
33898 # ifdef NBPG
33899 # define getpagesize() NBPG * CLSIZE
33900 # ifndef CLSIZE
33901 # define CLSIZE 1
33902 # endif /* no CLSIZE */
33903 # else /* no NBPG */
33904 # ifdef NBPC
33905 # define getpagesize() NBPC
33906 # else /* no NBPC */
33907 # ifdef PAGESIZE
33908 # define getpagesize() PAGESIZE
33909 # endif /* PAGESIZE */
33910 # endif /* no NBPC */
33911 # endif /* no NBPG */
33912 # endif /* no EXEC_PAGESIZE */
33913 # else /* no HAVE_SYS_PARAM_H */
33914 # define getpagesize() 8192 /* punt totally */
33915 # endif /* no HAVE_SYS_PARAM_H */
33916 # endif /* no _SC_PAGESIZE */
33918 #endif /* no HAVE_GETPAGESIZE */
33921 main ()
33923 char *data, *data2, *data3;
33924 int i, pagesize;
33925 int fd;
33927 pagesize = getpagesize ();
33929 /* First, make a file with some known garbage in it. */
33930 data = (char *) malloc (pagesize);
33931 if (!data)
33932 return 1;
33933 for (i = 0; i < pagesize; ++i)
33934 *(data + i) = rand ();
33935 umask (0);
33936 fd = creat ("conftest.mmap", 0600);
33937 if (fd < 0)
33938 return 1;
33939 if (write (fd, data, pagesize) != pagesize)
33940 return 1;
33941 close (fd);
33943 /* Next, try to mmap the file at a fixed address which already has
33944 something else allocated at it. If we can, also make sure that
33945 we see the same garbage. */
33946 fd = open ("conftest.mmap", O_RDWR);
33947 if (fd < 0)
33948 return 1;
33949 data2 = (char *) malloc (2 * pagesize);
33950 if (!data2)
33951 return 1;
33952 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33953 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33954 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33955 return 1;
33956 for (i = 0; i < pagesize; ++i)
33957 if (*(data + i) != *(data2 + i))
33958 return 1;
33960 /* Finally, make sure that changes to the mapped area do not
33961 percolate back to the file as seen by read(). (This is a bug on
33962 some variants of i386 svr4.0.) */
33963 for (i = 0; i < pagesize; ++i)
33964 *(data2 + i) = *(data2 + i) + 1;
33965 data3 = (char *) malloc (pagesize);
33966 if (!data3)
33967 return 1;
33968 if (read (fd, data3, pagesize) != pagesize)
33969 return 1;
33970 for (i = 0; i < pagesize; ++i)
33971 if (*(data + i) != *(data3 + i))
33972 return 1;
33973 close (fd);
33974 return 0;
33976 _ACEOF
33977 rm -f conftest$ac_exeext
33978 if { (ac_try="$ac_link"
33979 case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33982 esac
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_link") 2>&5
33985 ac_status=$?
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33988 { (case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33991 esac
33992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993 (eval "$ac_try") 2>&5
33994 ac_status=$?
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; }; then
33997 ac_cv_func_mmap_fixed_mapped=yes
33998 else
33999 echo "$as_me: program exited with status $ac_status" >&5
34000 echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34003 ( exit $ac_status )
34004 ac_cv_func_mmap_fixed_mapped=no
34006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34011 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34012 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34013 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34015 cat >>confdefs.h <<\_ACEOF
34016 #define HAVE_MMAP 1
34017 _ACEOF
34020 rm -f conftest.mmap
34022 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34023 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34024 if test "${ac_cv_func_mmap_file+set}" = set; then
34025 echo $ECHO_N "(cached) $ECHO_C" >&6
34026 else
34027 ac_ext=c
34028 ac_cpp='$CPP $CPPFLAGS'
34029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34033 if test "$cross_compiling" = yes; then
34034 ac_cv_func_mmap_file=no
34035 else
34036 cat >conftest.$ac_ext <<_ACEOF
34038 /* confdefs.h. */
34039 _ACEOF
34040 cat confdefs.h >>conftest.$ac_ext
34041 cat >>conftest.$ac_ext <<_ACEOF
34042 /* end confdefs.h. */
34044 #include <sys/types.h>
34045 #include <sys/mman.h>
34046 #include <fcntl.h>
34049 main ()
34052 int fd;
34053 fd = creat ("foo",0777);
34054 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34055 unlink ("foo");
34056 return (fd != (int) MAP_FAILED);
34058 return 0;
34060 _ACEOF
34061 rm -f conftest$ac_exeext
34062 if { (ac_try="$ac_link"
34063 case "(($ac_try" in
34064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065 *) ac_try_echo=$ac_try;;
34066 esac
34067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068 (eval "$ac_link") 2>&5
34069 ac_status=$?
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34072 { (case "(($ac_try" in
34073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074 *) ac_try_echo=$ac_try;;
34075 esac
34076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077 (eval "$ac_try") 2>&5
34078 ac_status=$?
34079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080 (exit $ac_status); }; }; then
34081 ac_cv_func_mmap_file=yes
34082 else
34083 echo "$as_me: program exited with status $ac_status" >&5
34084 echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34087 ( exit $ac_status )
34088 ac_cv_func_mmap_file=no
34090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34094 ac_ext=c
34095 ac_cpp='$CPP $CPPFLAGS'
34096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34102 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34103 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34104 if test "$ac_cv_func_mmap_file" = yes; then
34106 cat >>confdefs.h <<\_ACEOF
34107 #define HAVE_MMAP_FILE
34108 _ACEOF
34110 MMAP_FILE=yes
34114 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34115 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34116 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34118 else
34119 if test "$llvm_cv_os_type" = "Interix" ; then
34120 ac_cv_need_dev_zero_for_mmap=yes
34121 else
34122 ac_cv_need_dev_zero_for_mmap=no
34126 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34127 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34128 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34130 cat >>confdefs.h <<\_ACEOF
34131 #define NEED_DEV_ZERO_FOR_MMAP 1
34132 _ACEOF
34136 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34137 then
34138 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34139 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34141 if test "$ac_cv_func_mmap_file" = "no"
34142 then
34143 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34144 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34150 for ac_func in __dso_handle
34152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34157 else
34158 cat >conftest.$ac_ext <<_ACEOF
34159 /* confdefs.h. */
34160 _ACEOF
34161 cat confdefs.h >>conftest.$ac_ext
34162 cat >>conftest.$ac_ext <<_ACEOF
34163 /* end confdefs.h. */
34164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34166 #define $ac_func innocuous_$ac_func
34168 /* System header to define __stub macros and hopefully few prototypes,
34169 which can conflict with char $ac_func (); below.
34170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34171 <limits.h> exists even on freestanding compilers. */
34173 #ifdef __STDC__
34174 # include <limits.h>
34175 #else
34176 # include <assert.h>
34177 #endif
34179 #undef $ac_func
34181 /* Override any GCC internal prototype to avoid an error.
34182 Use char because int might match the return type of a GCC
34183 builtin and then its argument prototype would still apply. */
34184 #ifdef __cplusplus
34185 extern "C"
34186 #endif
34187 char $ac_func ();
34188 /* The GNU C library defines this for functions which it implements
34189 to always fail with ENOSYS. Some functions are actually named
34190 something starting with __ and the normal name is an alias. */
34191 #if defined __stub_$ac_func || defined __stub___$ac_func
34192 choke me
34193 #endif
34196 main ()
34198 return $ac_func ();
34200 return 0;
34202 _ACEOF
34203 rm -f conftest.$ac_objext conftest$ac_exeext
34204 if { (ac_try="$ac_link"
34205 case "(($ac_try" in
34206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34207 *) ac_try_echo=$ac_try;;
34208 esac
34209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34210 (eval "$ac_link") 2>conftest.er1
34211 ac_status=$?
34212 grep -v '^ *+' conftest.er1 >conftest.err
34213 rm -f conftest.er1
34214 cat conftest.err >&5
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); } &&
34217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34218 { (case "(($ac_try" in
34219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220 *) ac_try_echo=$ac_try;;
34221 esac
34222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34223 (eval "$ac_try") 2>&5
34224 ac_status=$?
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); }; } &&
34227 { ac_try='test -s conftest$ac_exeext'
34228 { (case "(($ac_try" in
34229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34230 *) ac_try_echo=$ac_try;;
34231 esac
34232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34233 (eval "$ac_try") 2>&5
34234 ac_status=$?
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; }; then
34237 eval "$as_ac_var=yes"
34238 else
34239 echo "$as_me: failed program was:" >&5
34240 sed 's/^/| /' conftest.$ac_ext >&5
34242 eval "$as_ac_var=no"
34245 rm -f core conftest.err conftest.$ac_objext \
34246 conftest$ac_exeext conftest.$ac_ext
34248 ac_res=`eval echo '${'$as_ac_var'}'`
34249 { echo "$as_me:$LINENO: result: $ac_res" >&5
34250 echo "${ECHO_T}$ac_res" >&6; }
34251 if test `eval echo '${'$as_ac_var'}'` = yes; then
34252 cat >>confdefs.h <<_ACEOF
34253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34254 _ACEOF
34257 done
34260 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34261 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34262 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34263 echo $ECHO_N "(cached) $ECHO_C" >&6
34264 else
34265 llvm_cv_llvmgcc_sanity="no"
34266 if test -x "$LLVMGCC" ; then
34267 cp /dev/null conftest.c
34268 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34269 grep 'target datalayout =' > /dev/null 2>&1
34270 if test $? -eq 0 ; then
34271 llvm_cv_llvmgcc_sanity="yes"
34273 rm conftest.c
34276 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34277 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34279 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34280 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34281 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34282 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34283 LLVMCC1=$llvmcc1path
34285 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34286 LLVMCC1PLUS=$llvmcc1pluspath
34288 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34289 LLVMGCCDIR=$llvmgccdir
34291 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34292 LLVMGCCLIBEXEC=$llvmgcclibexec
34294 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34295 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34296 LLVMGCC_VERSION=$llvmgccversion
34298 LLVMGCC_MAJVERS=$llvmgccmajvers
34300 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34301 LLVMGCC_LANGS=$llvmgcclangs
34303 { echo "$as_me:$LINENO: result: ok" >&5
34304 echo "${ECHO_T}ok" >&6; }
34307 SHLIBEXT=$libltdl_cv_shlibext
34310 # Translate the various configuration directories and other basic
34311 # information into substitutions that will end up in Makefile.config.in
34312 # that these configured values can be used by the makefiles
34313 if test "${prefix}" = "NONE" ; then
34314 prefix="/usr/local"
34316 eval LLVM_PREFIX="${prefix}";
34317 eval LLVM_BINDIR="${prefix}/bin";
34318 eval LLVM_LIBDIR="${prefix}/lib";
34319 eval LLVM_DATADIR="${prefix}/share/llvm";
34320 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34321 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34322 eval LLVM_INCLUDEDIR="${prefix}/include";
34323 eval LLVM_INFODIR="${prefix}/info";
34324 eval LLVM_MANDIR="${prefix}/man";
34325 LLVM_CONFIGTIME=`date`
34337 # Place the various directores into the config.h file as #defines so that we
34338 # can know about the installation paths within LLVM.
34340 cat >>confdefs.h <<_ACEOF
34341 #define LLVM_PREFIX "$LLVM_PREFIX"
34342 _ACEOF
34345 cat >>confdefs.h <<_ACEOF
34346 #define LLVM_BINDIR "$LLVM_BINDIR"
34347 _ACEOF
34350 cat >>confdefs.h <<_ACEOF
34351 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34352 _ACEOF
34355 cat >>confdefs.h <<_ACEOF
34356 #define LLVM_DATADIR "$LLVM_DATADIR"
34357 _ACEOF
34360 cat >>confdefs.h <<_ACEOF
34361 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34362 _ACEOF
34365 cat >>confdefs.h <<_ACEOF
34366 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34367 _ACEOF
34370 cat >>confdefs.h <<_ACEOF
34371 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34372 _ACEOF
34375 cat >>confdefs.h <<_ACEOF
34376 #define LLVM_INFODIR "$LLVM_INFODIR"
34377 _ACEOF
34380 cat >>confdefs.h <<_ACEOF
34381 #define LLVM_MANDIR "$LLVM_MANDIR"
34382 _ACEOF
34385 cat >>confdefs.h <<_ACEOF
34386 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34387 _ACEOF
34390 cat >>confdefs.h <<_ACEOF
34391 #define LLVM_HOSTTRIPLE "$host"
34392 _ACEOF
34395 # Determine which bindings to build.
34396 if test "$BINDINGS_TO_BUILD" = auto ; then
34397 BINDINGS_TO_BUILD=""
34398 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34399 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34402 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34405 # This isn't really configurey, but it avoids having to repeat the list in
34406 # other files.
34407 ALL_BINDINGS=ocaml
34410 # Do any work necessary to ensure that bindings have what they need.
34411 binding_prereqs_failed=0
34412 for a_binding in $BINDINGS_TO_BUILD ; do
34413 case "$a_binding" in
34414 ocaml)
34415 if test "x$OCAMLC" = x ; then
34416 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34417 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34418 binding_prereqs_failed=1
34420 if test "x$OCAMLDEP" = x ; then
34421 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34422 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34423 binding_prereqs_failed=1
34425 if test "x$OCAMLOPT" = x ; then
34426 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34427 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34429 if test "x$with_ocaml_libdir" != xauto ; then
34430 OCAML_LIBDIR=$with_ocaml_libdir
34432 else
34433 ocaml_stdlib="`"$OCAMLC" -where`"
34434 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34435 then
34436 # ocaml stdlib is beneath our prefix; use stdlib
34437 OCAML_LIBDIR=$ocaml_stdlib
34439 else
34440 # ocaml stdlib is outside our prefix; use libdir/ocaml
34441 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34446 esac
34447 done
34448 if test "$binding_prereqs_failed" = 1 ; then
34449 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34450 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34451 { (exit 1); exit 1; }; }
34454 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34455 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34456 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34457 echo $ECHO_N "(cached) $ECHO_C" >&6
34458 else
34459 ac_ext=cpp
34460 ac_cpp='$CXXCPP $CPPFLAGS'
34461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34465 oldcxxflags="$CXXFLAGS"
34466 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34467 cat >conftest.$ac_ext <<_ACEOF
34468 /* confdefs.h. */
34469 _ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h. */
34475 main ()
34479 return 0;
34481 _ACEOF
34482 rm -f conftest.$ac_objext
34483 if { (ac_try="$ac_compile"
34484 case "(($ac_try" in
34485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486 *) ac_try_echo=$ac_try;;
34487 esac
34488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34489 (eval "$ac_compile") 2>conftest.er1
34490 ac_status=$?
34491 grep -v '^ *+' conftest.er1 >conftest.err
34492 rm -f conftest.er1
34493 cat conftest.err >&5
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495 (exit $ac_status); } &&
34496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34497 { (case "(($ac_try" in
34498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34499 *) ac_try_echo=$ac_try;;
34500 esac
34501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34502 (eval "$ac_try") 2>&5
34503 ac_status=$?
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); }; } &&
34506 { ac_try='test -s conftest.$ac_objext'
34507 { (case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34510 esac
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512 (eval "$ac_try") 2>&5
34513 ac_status=$?
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; }; then
34516 llvm_cv_cxx_visibility_inlines_hidden=yes
34517 else
34518 echo "$as_me: failed program was:" >&5
34519 sed 's/^/| /' conftest.$ac_ext >&5
34521 llvm_cv_cxx_visibility_inlines_hidden=no
34524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34525 CXXFLAGS="$oldcxxflags"
34526 ac_ext=c
34527 ac_cpp='$CPP $CPPFLAGS'
34528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34534 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34535 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34536 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34537 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34539 else
34540 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34546 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34548 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34550 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34552 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34554 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34557 ac_config_files="$ac_config_files Makefile.config"
34560 ac_config_files="$ac_config_files llvm.spec"
34563 ac_config_files="$ac_config_files docs/doxygen.cfg"
34566 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34569 ac_config_commands="$ac_config_commands setup"
34571 ac_config_commands="$ac_config_commands Makefile"
34574 ac_config_commands="$ac_config_commands Makefile.common"
34577 ac_config_commands="$ac_config_commands examples/Makefile"
34580 ac_config_commands="$ac_config_commands lib/Makefile"
34583 ac_config_commands="$ac_config_commands runtime/Makefile"
34586 ac_config_commands="$ac_config_commands test/Makefile"
34589 ac_config_commands="$ac_config_commands test/Makefile.tests"
34592 ac_config_commands="$ac_config_commands unittests/Makefile"
34595 ac_config_commands="$ac_config_commands tools/Makefile"
34598 ac_config_commands="$ac_config_commands utils/Makefile"
34601 ac_config_commands="$ac_config_commands projects/Makefile"
34604 ac_config_commands="$ac_config_commands bindings/Makefile"
34607 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34611 cat >confcache <<\_ACEOF
34612 # This file is a shell script that caches the results of configure
34613 # tests run on this system so they can be shared between configure
34614 # scripts and configure runs, see configure's option --config-cache.
34615 # It is not useful on other systems. If it contains results you don't
34616 # want to keep, you may remove or edit it.
34618 # config.status only pays attention to the cache file if you give it
34619 # the --recheck option to rerun configure.
34621 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34622 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34623 # following values.
34625 _ACEOF
34627 # The following way of writing the cache mishandles newlines in values,
34628 # but we know of no workaround that is simple, portable, and efficient.
34629 # So, we kill variables containing newlines.
34630 # Ultrix sh set writes to stderr and can't be redirected directly,
34631 # and sets the high bit in the cache file unless we assign to the vars.
34633 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34634 eval ac_val=\$$ac_var
34635 case $ac_val in #(
34636 *${as_nl}*)
34637 case $ac_var in #(
34638 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34639 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34640 esac
34641 case $ac_var in #(
34642 _ | IFS | as_nl) ;; #(
34643 *) $as_unset $ac_var ;;
34644 esac ;;
34645 esac
34646 done
34648 (set) 2>&1 |
34649 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34650 *${as_nl}ac_space=\ *)
34651 # `set' does not quote correctly, so add quotes (double-quote
34652 # substitution turns \\\\ into \\, and sed turns \\ into \).
34653 sed -n \
34654 "s/'/'\\\\''/g;
34655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34656 ;; #(
34658 # `set' quotes correctly as required by POSIX, so do not add quotes.
34659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34661 esac |
34662 sort
34664 sed '
34665 /^ac_cv_env_/b end
34666 t clear
34667 :clear
34668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34669 t end
34670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34671 :end' >>confcache
34672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34673 if test -w "$cache_file"; then
34674 test "x$cache_file" != "x/dev/null" &&
34675 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34676 echo "$as_me: updating cache $cache_file" >&6;}
34677 cat confcache >$cache_file
34678 else
34679 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34680 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34683 rm -f confcache
34685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34686 # Let make expand exec_prefix.
34687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34689 DEFS=-DHAVE_CONFIG_H
34691 ac_libobjs=
34692 ac_ltlibobjs=
34693 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34694 # 1. Remove the extension, and $U if already installed.
34695 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34696 ac_i=`echo "$ac_i" | sed "$ac_script"`
34697 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34698 # will be set to the directory where LIBOBJS objects are built.
34699 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34700 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34701 done
34702 LIBOBJS=$ac_libobjs
34704 LTLIBOBJS=$ac_ltlibobjs
34707 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34708 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34709 Usually this means the macro was only invoked conditionally." >&5
34710 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34711 Usually this means the macro was only invoked conditionally." >&2;}
34712 { (exit 1); exit 1; }; }
34714 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34715 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34716 Usually this means the macro was only invoked conditionally." >&5
34717 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34718 Usually this means the macro was only invoked conditionally." >&2;}
34719 { (exit 1); exit 1; }; }
34722 : ${CONFIG_STATUS=./config.status}
34723 ac_clean_files_save=$ac_clean_files
34724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34725 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34726 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34727 cat >$CONFIG_STATUS <<_ACEOF
34728 #! $SHELL
34729 # Generated by $as_me.
34730 # Run this file to recreate the current configuration.
34731 # Compiler output produced by configure, useful for debugging
34732 # configure, is in config.log if it exists.
34734 debug=false
34735 ac_cs_recheck=false
34736 ac_cs_silent=false
34737 SHELL=\${CONFIG_SHELL-$SHELL}
34738 _ACEOF
34740 cat >>$CONFIG_STATUS <<\_ACEOF
34741 ## --------------------- ##
34742 ## M4sh Initialization. ##
34743 ## --------------------- ##
34745 # Be Bourne compatible
34746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34747 emulate sh
34748 NULLCMD=:
34749 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34750 # is contrary to our usage. Disable this feature.
34751 alias -g '${1+"$@"}'='"$@"'
34752 setopt NO_GLOB_SUBST
34753 else
34754 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34756 BIN_SH=xpg4; export BIN_SH # for Tru64
34757 DUALCASE=1; export DUALCASE # for MKS sh
34760 # PATH needs CR
34761 # Avoid depending upon Character Ranges.
34762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34765 as_cr_digits='0123456789'
34766 as_cr_alnum=$as_cr_Letters$as_cr_digits
34768 # The user is always right.
34769 if test "${PATH_SEPARATOR+set}" != set; then
34770 echo "#! /bin/sh" >conf$$.sh
34771 echo "exit 0" >>conf$$.sh
34772 chmod +x conf$$.sh
34773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34774 PATH_SEPARATOR=';'
34775 else
34776 PATH_SEPARATOR=:
34778 rm -f conf$$.sh
34781 # Support unset when possible.
34782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34783 as_unset=unset
34784 else
34785 as_unset=false
34789 # IFS
34790 # We need space, tab and new line, in precisely that order. Quoting is
34791 # there to prevent editors from complaining about space-tab.
34792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34793 # splitting by setting IFS to empty value.)
34794 as_nl='
34796 IFS=" "" $as_nl"
34798 # Find who we are. Look in the path if we contain no directory separator.
34799 case $0 in
34800 *[\\/]* ) as_myself=$0 ;;
34801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34802 for as_dir in $PATH
34804 IFS=$as_save_IFS
34805 test -z "$as_dir" && as_dir=.
34806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34807 done
34808 IFS=$as_save_IFS
34811 esac
34812 # We did not find ourselves, most probably we were run as `sh COMMAND'
34813 # in which case we are not to be found in the path.
34814 if test "x$as_myself" = x; then
34815 as_myself=$0
34817 if test ! -f "$as_myself"; then
34818 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34819 { (exit 1); exit 1; }
34822 # Work around bugs in pre-3.0 UWIN ksh.
34823 for as_var in ENV MAIL MAILPATH
34824 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34825 done
34826 PS1='$ '
34827 PS2='> '
34828 PS4='+ '
34830 # NLS nuisances.
34831 for as_var in \
34832 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34833 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34834 LC_TELEPHONE LC_TIME
34836 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34837 eval $as_var=C; export $as_var
34838 else
34839 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34841 done
34843 # Required to use basename.
34844 if expr a : '\(a\)' >/dev/null 2>&1 &&
34845 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34846 as_expr=expr
34847 else
34848 as_expr=false
34851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34852 as_basename=basename
34853 else
34854 as_basename=false
34858 # Name of the executable.
34859 as_me=`$as_basename -- "$0" ||
34860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34861 X"$0" : 'X\(//\)$' \| \
34862 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34863 echo X/"$0" |
34864 sed '/^.*\/\([^/][^/]*\)\/*$/{
34865 s//\1/
34868 /^X\/\(\/\/\)$/{
34869 s//\1/
34872 /^X\/\(\/\).*/{
34873 s//\1/
34876 s/.*/./; q'`
34878 # CDPATH.
34879 $as_unset CDPATH
34883 as_lineno_1=$LINENO
34884 as_lineno_2=$LINENO
34885 test "x$as_lineno_1" != "x$as_lineno_2" &&
34886 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34888 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34889 # uniformly replaced by the line number. The first 'sed' inserts a
34890 # line-number line after each line using $LINENO; the second 'sed'
34891 # does the real work. The second script uses 'N' to pair each
34892 # line-number line with the line containing $LINENO, and appends
34893 # trailing '-' during substitution so that $LINENO is not a special
34894 # case at line end.
34895 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34896 # scripts with optimization help from Paolo Bonzini. Blame Lee
34897 # E. McMahon (1931-1989) for sed's syntax. :-)
34898 sed -n '
34900 /[$]LINENO/=
34901 ' <$as_myself |
34902 sed '
34903 s/[$]LINENO.*/&-/
34904 t lineno
34906 :lineno
34908 :loop
34909 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34910 t loop
34911 s/-\n.*//
34912 ' >$as_me.lineno &&
34913 chmod +x "$as_me.lineno" ||
34914 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34915 { (exit 1); exit 1; }; }
34917 # Don't try to exec as it changes $[0], causing all sort of problems
34918 # (the dirname of $[0] is not the place where we might find the
34919 # original and so on. Autoconf is especially sensitive to this).
34920 . "./$as_me.lineno"
34921 # Exit status is that of the last command.
34922 exit
34926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34927 as_dirname=dirname
34928 else
34929 as_dirname=false
34932 ECHO_C= ECHO_N= ECHO_T=
34933 case `echo -n x` in
34934 -n*)
34935 case `echo 'x\c'` in
34936 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34937 *) ECHO_C='\c';;
34938 esac;;
34940 ECHO_N='-n';;
34941 esac
34943 if expr a : '\(a\)' >/dev/null 2>&1 &&
34944 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34945 as_expr=expr
34946 else
34947 as_expr=false
34950 rm -f conf$$ conf$$.exe conf$$.file
34951 if test -d conf$$.dir; then
34952 rm -f conf$$.dir/conf$$.file
34953 else
34954 rm -f conf$$.dir
34955 mkdir conf$$.dir
34957 echo >conf$$.file
34958 if ln -s conf$$.file conf$$ 2>/dev/null; then
34959 as_ln_s='ln -s'
34960 # ... but there are two gotchas:
34961 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34962 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34963 # In both cases, we have to default to `cp -p'.
34964 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34965 as_ln_s='cp -p'
34966 elif ln conf$$.file conf$$ 2>/dev/null; then
34967 as_ln_s=ln
34968 else
34969 as_ln_s='cp -p'
34971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34972 rmdir conf$$.dir 2>/dev/null
34974 if mkdir -p . 2>/dev/null; then
34975 as_mkdir_p=:
34976 else
34977 test -d ./-p && rmdir ./-p
34978 as_mkdir_p=false
34981 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34982 # systems may use methods other than mode bits to determine executability.
34983 cat >conf$$.file <<_ASEOF
34984 #! /bin/sh
34985 exit 0
34986 _ASEOF
34987 chmod +x conf$$.file
34988 if test -x conf$$.file >/dev/null 2>&1; then
34989 as_executable_p="test -x"
34990 else
34991 as_executable_p=:
34993 rm -f conf$$.file
34995 # Sed expression to map a string onto a valid CPP name.
34996 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34998 # Sed expression to map a string onto a valid variable name.
34999 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35002 exec 6>&1
35004 # Save the log message, to keep $[0] and so on meaningful, and to
35005 # report actual input values of CONFIG_FILES etc. instead of their
35006 # values after options handling.
35007 ac_log="
35008 This file was extended by llvm $as_me 2.6svn, which was
35009 generated by GNU Autoconf 2.60. Invocation command line was
35011 CONFIG_FILES = $CONFIG_FILES
35012 CONFIG_HEADERS = $CONFIG_HEADERS
35013 CONFIG_LINKS = $CONFIG_LINKS
35014 CONFIG_COMMANDS = $CONFIG_COMMANDS
35015 $ $0 $@
35017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35020 _ACEOF
35022 cat >>$CONFIG_STATUS <<_ACEOF
35023 # Files that config.status was made for.
35024 config_files="$ac_config_files"
35025 config_headers="$ac_config_headers"
35026 config_commands="$ac_config_commands"
35028 _ACEOF
35030 cat >>$CONFIG_STATUS <<\_ACEOF
35031 ac_cs_usage="\
35032 \`$as_me' instantiates files from templates according to the
35033 current configuration.
35035 Usage: $0 [OPTIONS] [FILE]...
35037 -h, --help print this help, then exit
35038 -V, --version print version number, then exit
35039 -q, --quiet do not print progress messages
35040 -d, --debug don't remove temporary files
35041 --recheck update $as_me by reconfiguring in the same conditions
35042 --file=FILE[:TEMPLATE]
35043 instantiate the configuration file FILE
35044 --header=FILE[:TEMPLATE]
35045 instantiate the configuration header FILE
35047 Configuration files:
35048 $config_files
35050 Configuration headers:
35051 $config_headers
35053 Configuration commands:
35054 $config_commands
35056 Report bugs to <bug-autoconf@gnu.org>."
35058 _ACEOF
35059 cat >>$CONFIG_STATUS <<_ACEOF
35060 ac_cs_version="\\
35061 llvm config.status 2.6svn
35062 configured by $0, generated by GNU Autoconf 2.60,
35063 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35065 Copyright (C) 2006 Free Software Foundation, Inc.
35066 This config.status script is free software; the Free Software Foundation
35067 gives unlimited permission to copy, distribute and modify it."
35069 ac_pwd='$ac_pwd'
35070 srcdir='$srcdir'
35071 INSTALL='$INSTALL'
35072 _ACEOF
35074 cat >>$CONFIG_STATUS <<\_ACEOF
35075 # If no file are specified by the user, then we need to provide default
35076 # value. By we need to know if files were specified by the user.
35077 ac_need_defaults=:
35078 while test $# != 0
35080 case $1 in
35081 --*=*)
35082 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35083 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35084 ac_shift=:
35087 ac_option=$1
35088 ac_optarg=$2
35089 ac_shift=shift
35091 esac
35093 case $ac_option in
35094 # Handling of the options.
35095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35096 ac_cs_recheck=: ;;
35097 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35098 echo "$ac_cs_version"; exit ;;
35099 --debug | --debu | --deb | --de | --d | -d )
35100 debug=: ;;
35101 --file | --fil | --fi | --f )
35102 $ac_shift
35103 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35104 ac_need_defaults=false;;
35105 --header | --heade | --head | --hea )
35106 $ac_shift
35107 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35108 ac_need_defaults=false;;
35109 --he | --h)
35110 # Conflict between --help and --header
35111 { echo "$as_me: error: ambiguous option: $1
35112 Try \`$0 --help' for more information." >&2
35113 { (exit 1); exit 1; }; };;
35114 --help | --hel | -h )
35115 echo "$ac_cs_usage"; exit ;;
35116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35117 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35118 ac_cs_silent=: ;;
35120 # This is an error.
35121 -*) { echo "$as_me: error: unrecognized option: $1
35122 Try \`$0 --help' for more information." >&2
35123 { (exit 1); exit 1; }; } ;;
35125 *) ac_config_targets="$ac_config_targets $1"
35126 ac_need_defaults=false ;;
35128 esac
35129 shift
35130 done
35132 ac_configure_extra_args=
35134 if $ac_cs_silent; then
35135 exec 6>/dev/null
35136 ac_configure_extra_args="$ac_configure_extra_args --silent"
35139 _ACEOF
35140 cat >>$CONFIG_STATUS <<_ACEOF
35141 if \$ac_cs_recheck; then
35142 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35143 CONFIG_SHELL=$SHELL
35144 export CONFIG_SHELL
35145 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35148 _ACEOF
35149 cat >>$CONFIG_STATUS <<\_ACEOF
35150 exec 5>>config.log
35152 echo
35153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35154 ## Running $as_me. ##
35155 _ASBOX
35156 echo "$ac_log"
35157 } >&5
35159 _ACEOF
35160 cat >>$CONFIG_STATUS <<_ACEOF
35162 # INIT-COMMANDS
35164 llvm_src="${srcdir}"
35166 _ACEOF
35168 cat >>$CONFIG_STATUS <<\_ACEOF
35170 # Handling of arguments.
35171 for ac_config_target in $ac_config_targets
35173 case $ac_config_target in
35174 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35175 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35176 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35177 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35178 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35179 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35180 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35181 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35182 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35183 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35184 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35185 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35186 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35187 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35188 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35189 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35190 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35191 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35192 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35193 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35194 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35195 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35196 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35200 { (exit 1); exit 1; }; };;
35201 esac
35202 done
35205 # If the user did not use the arguments to specify the items to instantiate,
35206 # then the envvar interface is used. Set only those that are not.
35207 # We use the long form for the default assignment because of an extremely
35208 # bizarre bug on SunOS 4.1.3.
35209 if $ac_need_defaults; then
35210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35215 # Have a temporary directory for convenience. Make it in the build tree
35216 # simply because there is no reason against having it here, and in addition,
35217 # creating and moving files from /tmp can sometimes cause problems.
35218 # Hook for its removal unless debugging.
35219 # Note that there is a small window in which the directory will not be cleaned:
35220 # after its creation but before its name has been assigned to `$tmp'.
35221 $debug ||
35223 tmp=
35224 trap 'exit_status=$?
35225 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35227 trap '{ (exit 1); exit 1; }' 1 2 13 15
35229 # Create a (secure) tmp directory for tmp files.
35232 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35233 test -n "$tmp" && test -d "$tmp"
35234 } ||
35236 tmp=./conf$$-$RANDOM
35237 (umask 077 && mkdir "$tmp")
35238 } ||
35240 echo "$me: cannot create a temporary directory in ." >&2
35241 { (exit 1); exit 1; }
35245 # Set up the sed scripts for CONFIG_FILES section.
35248 # No need to generate the scripts if there are no CONFIG_FILES.
35249 # This happens for instance when ./config.status config.h
35250 if test -n "$CONFIG_FILES"; then
35252 _ACEOF
35256 ac_delim='%!_!# '
35257 for ac_last_try in false false false false false :; do
35258 cat >conf$$subs.sed <<_ACEOF
35259 SHELL!$SHELL$ac_delim
35260 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35261 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35262 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35263 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35264 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35265 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35266 exec_prefix!$exec_prefix$ac_delim
35267 prefix!$prefix$ac_delim
35268 program_transform_name!$program_transform_name$ac_delim
35269 bindir!$bindir$ac_delim
35270 sbindir!$sbindir$ac_delim
35271 libexecdir!$libexecdir$ac_delim
35272 datarootdir!$datarootdir$ac_delim
35273 datadir!$datadir$ac_delim
35274 sysconfdir!$sysconfdir$ac_delim
35275 sharedstatedir!$sharedstatedir$ac_delim
35276 localstatedir!$localstatedir$ac_delim
35277 includedir!$includedir$ac_delim
35278 oldincludedir!$oldincludedir$ac_delim
35279 docdir!$docdir$ac_delim
35280 infodir!$infodir$ac_delim
35281 htmldir!$htmldir$ac_delim
35282 dvidir!$dvidir$ac_delim
35283 pdfdir!$pdfdir$ac_delim
35284 psdir!$psdir$ac_delim
35285 libdir!$libdir$ac_delim
35286 localedir!$localedir$ac_delim
35287 mandir!$mandir$ac_delim
35288 DEFS!$DEFS$ac_delim
35289 ECHO_C!$ECHO_C$ac_delim
35290 ECHO_N!$ECHO_N$ac_delim
35291 ECHO_T!$ECHO_T$ac_delim
35292 LIBS!$LIBS$ac_delim
35293 build_alias!$build_alias$ac_delim
35294 host_alias!$host_alias$ac_delim
35295 target_alias!$target_alias$ac_delim
35296 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35297 subdirs!$subdirs$ac_delim
35298 build!$build$ac_delim
35299 build_cpu!$build_cpu$ac_delim
35300 build_vendor!$build_vendor$ac_delim
35301 build_os!$build_os$ac_delim
35302 host!$host$ac_delim
35303 host_cpu!$host_cpu$ac_delim
35304 host_vendor!$host_vendor$ac_delim
35305 host_os!$host_os$ac_delim
35306 target!$target$ac_delim
35307 target_cpu!$target_cpu$ac_delim
35308 target_vendor!$target_vendor$ac_delim
35309 target_os!$target_os$ac_delim
35310 OS!$OS$ac_delim
35311 LINKALL!$LINKALL$ac_delim
35312 NOLINKALL!$NOLINKALL$ac_delim
35313 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35314 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35315 ARCH!$ARCH$ac_delim
35316 ENDIAN!$ENDIAN$ac_delim
35317 CC!$CC$ac_delim
35318 CFLAGS!$CFLAGS$ac_delim
35319 LDFLAGS!$LDFLAGS$ac_delim
35320 CPPFLAGS!$CPPFLAGS$ac_delim
35321 ac_ct_CC!$ac_ct_CC$ac_delim
35322 EXEEXT!$EXEEXT$ac_delim
35323 OBJEXT!$OBJEXT$ac_delim
35324 CPP!$CPP$ac_delim
35325 GREP!$GREP$ac_delim
35326 EGREP!$EGREP$ac_delim
35327 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35328 BUILD_CC!$BUILD_CC$ac_delim
35329 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35330 BUILD_CXX!$BUILD_CXX$ac_delim
35331 CVSBUILD!$CVSBUILD$ac_delim
35332 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35333 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35334 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35335 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35336 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35337 JIT!$JIT$ac_delim
35338 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35339 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35340 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35341 ENABLE_PIC!$ENABLE_PIC$ac_delim
35342 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35343 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35344 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35345 CXX!$CXX$ac_delim
35346 CXXFLAGS!$CXXFLAGS$ac_delim
35347 ac_ct_CXX!$ac_ct_CXX$ac_delim
35348 LEX!$LEX$ac_delim
35349 LEXLIB!$LEXLIB$ac_delim
35350 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35351 FLEX!$FLEX$ac_delim
35352 YACC!$YACC$ac_delim
35353 YFLAGS!$YFLAGS$ac_delim
35354 BISON!$BISON$ac_delim
35355 NM!$NM$ac_delim
35356 _ACEOF
35358 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35359 break
35360 elif $ac_last_try; then
35361 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35362 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35363 { (exit 1); exit 1; }; }
35364 else
35365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35367 done
35369 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35370 if test -n "$ac_eof"; then
35371 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35372 ac_eof=`expr $ac_eof + 1`
35375 cat >>$CONFIG_STATUS <<_ACEOF
35376 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35378 _ACEOF
35379 sed '
35380 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35381 s/^/s,@/; s/!/@,|#_!!_#|/
35384 s/'"$ac_delim"'$/,g/; t
35385 s/$/\\/; p
35386 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35387 ' >>$CONFIG_STATUS <conf$$subs.sed
35388 rm -f conf$$subs.sed
35389 cat >>$CONFIG_STATUS <<_ACEOF
35390 CEOF$ac_eof
35391 _ACEOF
35394 ac_delim='%!_!# '
35395 for ac_last_try in false false false false false :; do
35396 cat >conf$$subs.sed <<_ACEOF
35397 ifGNUmake!$ifGNUmake$ac_delim
35398 LN_S!$LN_S$ac_delim
35399 CMP!$CMP$ac_delim
35400 CP!$CP$ac_delim
35401 DATE!$DATE$ac_delim
35402 FIND!$FIND$ac_delim
35403 MKDIR!$MKDIR$ac_delim
35404 MV!$MV$ac_delim
35405 RANLIB!$RANLIB$ac_delim
35406 RM!$RM$ac_delim
35407 SED!$SED$ac_delim
35408 TAR!$TAR$ac_delim
35409 BINPWD!$BINPWD$ac_delim
35410 GRAPHVIZ!$GRAPHVIZ$ac_delim
35411 DOT!$DOT$ac_delim
35412 GV!$GV$ac_delim
35413 DOTTY!$DOTTY$ac_delim
35414 PERL!$PERL$ac_delim
35415 HAVE_PERL!$HAVE_PERL$ac_delim
35416 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35417 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35418 INSTALL_DATA!$INSTALL_DATA$ac_delim
35419 BZIP2!$BZIP2$ac_delim
35420 DOXYGEN!$DOXYGEN$ac_delim
35421 GROFF!$GROFF$ac_delim
35422 GZIP!$GZIP$ac_delim
35423 POD2HTML!$POD2HTML$ac_delim
35424 POD2MAN!$POD2MAN$ac_delim
35425 RUNTEST!$RUNTEST$ac_delim
35426 TCLSH!$TCLSH$ac_delim
35427 ZIP!$ZIP$ac_delim
35428 OCAMLC!$OCAMLC$ac_delim
35429 OCAMLOPT!$OCAMLOPT$ac_delim
35430 OCAMLDEP!$OCAMLDEP$ac_delim
35431 OCAMLDOC!$OCAMLDOC$ac_delim
35432 GAS!$GAS$ac_delim
35433 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35434 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35435 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35436 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35437 LIBADD_DL!$LIBADD_DL$ac_delim
35438 ECHO!$ECHO$ac_delim
35439 AR!$AR$ac_delim
35440 STRIP!$STRIP$ac_delim
35441 CXXCPP!$CXXCPP$ac_delim
35442 F77!$F77$ac_delim
35443 FFLAGS!$FFLAGS$ac_delim
35444 ac_ct_F77!$ac_ct_F77$ac_delim
35445 LIBTOOL!$LIBTOOL$ac_delim
35446 LLVMGCC!$LLVMGCC$ac_delim
35447 LLVMGXX!$LLVMGXX$ac_delim
35448 USE_UDIS86!$USE_UDIS86$ac_delim
35449 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35450 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35451 ALLOCA!$ALLOCA$ac_delim
35452 MMAP_FILE!$MMAP_FILE$ac_delim
35453 LLVMCC1!$LLVMCC1$ac_delim
35454 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35455 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35456 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35457 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35458 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35459 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35460 SHLIBEXT!$SHLIBEXT$ac_delim
35461 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35462 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35463 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35464 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35465 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35466 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35467 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35468 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35469 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35470 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35471 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35472 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35473 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35474 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35475 LIBOBJS!$LIBOBJS$ac_delim
35476 LTLIBOBJS!$LTLIBOBJS$ac_delim
35477 _ACEOF
35479 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
35480 break
35481 elif $ac_last_try; then
35482 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35483 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35484 { (exit 1); exit 1; }; }
35485 else
35486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35488 done
35490 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35491 if test -n "$ac_eof"; then
35492 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35493 ac_eof=`expr $ac_eof + 1`
35496 cat >>$CONFIG_STATUS <<_ACEOF
35497 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35499 _ACEOF
35500 sed '
35501 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35502 s/^/s,@/; s/!/@,|#_!!_#|/
35505 s/'"$ac_delim"'$/,g/; t
35506 s/$/\\/; p
35507 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35508 ' >>$CONFIG_STATUS <conf$$subs.sed
35509 rm -f conf$$subs.sed
35510 cat >>$CONFIG_STATUS <<_ACEOF
35511 :end
35512 s/|#_!!_#|//g
35513 CEOF$ac_eof
35514 _ACEOF
35517 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35518 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35519 # trailing colons and then remove the whole line if VPATH becomes empty
35520 # (actually we leave an empty line to preserve line numbers).
35521 if test "x$srcdir" = x.; then
35522 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35523 s/:*\$(srcdir):*/:/
35524 s/:*\${srcdir}:*/:/
35525 s/:*@srcdir@:*/:/
35526 s/^\([^=]*=[ ]*\):*/\1/
35527 s/:*$//
35528 s/^[^=]*=[ ]*$//
35532 cat >>$CONFIG_STATUS <<\_ACEOF
35533 fi # test -n "$CONFIG_FILES"
35536 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35538 case $ac_tag in
35539 :[FHLC]) ac_mode=$ac_tag; continue;;
35540 esac
35541 case $ac_mode$ac_tag in
35542 :[FHL]*:*);;
35543 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35544 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35545 { (exit 1); exit 1; }; };;
35546 :[FH]-) ac_tag=-:-;;
35547 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35548 esac
35549 ac_save_IFS=$IFS
35550 IFS=:
35551 set x $ac_tag
35552 IFS=$ac_save_IFS
35553 shift
35554 ac_file=$1
35555 shift
35557 case $ac_mode in
35558 :L) ac_source=$1;;
35559 :[FH])
35560 ac_file_inputs=
35561 for ac_f
35563 case $ac_f in
35564 -) ac_f="$tmp/stdin";;
35565 *) # Look for the file first in the build tree, then in the source tree
35566 # (if the path is not absolute). The absolute path cannot be DOS-style,
35567 # because $ac_f cannot contain `:'.
35568 test -f "$ac_f" ||
35569 case $ac_f in
35570 [\\/$]*) false;;
35571 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35572 esac ||
35573 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35574 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35575 { (exit 1); exit 1; }; };;
35576 esac
35577 ac_file_inputs="$ac_file_inputs $ac_f"
35578 done
35580 # Let's still pretend it is `configure' which instantiates (i.e., don't
35581 # use $as_me), people would be surprised to read:
35582 # /* config.h. Generated by config.status. */
35583 configure_input="Generated from "`IFS=:
35584 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35585 if test x"$ac_file" != x-; then
35586 configure_input="$ac_file. $configure_input"
35587 { echo "$as_me:$LINENO: creating $ac_file" >&5
35588 echo "$as_me: creating $ac_file" >&6;}
35591 case $ac_tag in
35592 *:-:* | *:-) cat >"$tmp/stdin";;
35593 esac
35595 esac
35597 ac_dir=`$as_dirname -- "$ac_file" ||
35598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35599 X"$ac_file" : 'X\(//\)[^/]' \| \
35600 X"$ac_file" : 'X\(//\)$' \| \
35601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35602 echo X"$ac_file" |
35603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35604 s//\1/
35607 /^X\(\/\/\)[^/].*/{
35608 s//\1/
35611 /^X\(\/\/\)$/{
35612 s//\1/
35615 /^X\(\/\).*/{
35616 s//\1/
35619 s/.*/./; q'`
35620 { as_dir="$ac_dir"
35621 case $as_dir in #(
35622 -*) as_dir=./$as_dir;;
35623 esac
35624 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35625 as_dirs=
35626 while :; do
35627 case $as_dir in #(
35628 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35629 *) as_qdir=$as_dir;;
35630 esac
35631 as_dirs="'$as_qdir' $as_dirs"
35632 as_dir=`$as_dirname -- "$as_dir" ||
35633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35634 X"$as_dir" : 'X\(//\)[^/]' \| \
35635 X"$as_dir" : 'X\(//\)$' \| \
35636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35637 echo X"$as_dir" |
35638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35639 s//\1/
35642 /^X\(\/\/\)[^/].*/{
35643 s//\1/
35646 /^X\(\/\/\)$/{
35647 s//\1/
35650 /^X\(\/\).*/{
35651 s//\1/
35654 s/.*/./; q'`
35655 test -d "$as_dir" && break
35656 done
35657 test -z "$as_dirs" || eval "mkdir $as_dirs"
35658 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35659 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35660 { (exit 1); exit 1; }; }; }
35661 ac_builddir=.
35663 case "$ac_dir" in
35664 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35666 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35667 # A ".." for each directory in $ac_dir_suffix.
35668 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35669 case $ac_top_builddir_sub in
35670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35672 esac ;;
35673 esac
35674 ac_abs_top_builddir=$ac_pwd
35675 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35676 # for backward compatibility:
35677 ac_top_builddir=$ac_top_build_prefix
35679 case $srcdir in
35680 .) # We are building in place.
35681 ac_srcdir=.
35682 ac_top_srcdir=$ac_top_builddir_sub
35683 ac_abs_top_srcdir=$ac_pwd ;;
35684 [\\/]* | ?:[\\/]* ) # Absolute name.
35685 ac_srcdir=$srcdir$ac_dir_suffix;
35686 ac_top_srcdir=$srcdir
35687 ac_abs_top_srcdir=$srcdir ;;
35688 *) # Relative name.
35689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35690 ac_top_srcdir=$ac_top_build_prefix$srcdir
35691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35692 esac
35693 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35696 case $ac_mode in
35699 # CONFIG_FILE
35702 case $INSTALL in
35703 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35704 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35705 esac
35706 _ACEOF
35708 cat >>$CONFIG_STATUS <<\_ACEOF
35709 # If the template does not know about datarootdir, expand it.
35710 # FIXME: This hack should be removed a few years after 2.60.
35711 ac_datarootdir_hack=; ac_datarootdir_seen=
35713 case `sed -n '/datarootdir/ {
35717 /@datadir@/p
35718 /@docdir@/p
35719 /@infodir@/p
35720 /@localedir@/p
35721 /@mandir@/p
35722 ' $ac_file_inputs` in
35723 *datarootdir*) ac_datarootdir_seen=yes;;
35724 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35725 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35726 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35727 _ACEOF
35728 cat >>$CONFIG_STATUS <<_ACEOF
35729 ac_datarootdir_hack='
35730 s&@datadir@&$datadir&g
35731 s&@docdir@&$docdir&g
35732 s&@infodir@&$infodir&g
35733 s&@localedir@&$localedir&g
35734 s&@mandir@&$mandir&g
35735 s&\\\${datarootdir}&$datarootdir&g' ;;
35736 esac
35737 _ACEOF
35739 # Neutralize VPATH when `$srcdir' = `.'.
35740 # Shell code in configure.ac might set extrasub.
35741 # FIXME: do we really want to maintain this feature?
35742 cat >>$CONFIG_STATUS <<_ACEOF
35743 sed "$ac_vpsub
35744 $extrasub
35745 _ACEOF
35746 cat >>$CONFIG_STATUS <<\_ACEOF
35748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35749 s&@configure_input@&$configure_input&;t t
35750 s&@top_builddir@&$ac_top_builddir_sub&;t t
35751 s&@srcdir@&$ac_srcdir&;t t
35752 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35753 s&@top_srcdir@&$ac_top_srcdir&;t t
35754 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35755 s&@builddir@&$ac_builddir&;t t
35756 s&@abs_builddir@&$ac_abs_builddir&;t t
35757 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35758 s&@INSTALL@&$ac_INSTALL&;t t
35759 $ac_datarootdir_hack
35760 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35763 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35765 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35766 which seems to be undefined. Please make sure it is defined." >&5
35767 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35768 which seems to be undefined. Please make sure it is defined." >&2;}
35770 rm -f "$tmp/stdin"
35771 case $ac_file in
35772 -) cat "$tmp/out"; rm -f "$tmp/out";;
35773 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35774 esac
35778 # CONFIG_HEADER
35780 _ACEOF
35782 # Transform confdefs.h into a sed script `conftest.defines', that
35783 # substitutes the proper values into config.h.in to produce config.h.
35784 rm -f conftest.defines conftest.tail
35785 # First, append a space to every undef/define line, to ease matching.
35786 echo 's/$/ /' >conftest.defines
35787 # Then, protect against being on the right side of a sed subst, or in
35788 # an unquoted here document, in config.status. If some macros were
35789 # called several times there might be several #defines for the same
35790 # symbol, which is useless. But do not sort them, since the last
35791 # AC_DEFINE must be honored.
35792 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35793 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35794 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35795 # PARAMS is the parameter list in the macro definition--in most cases, it's
35796 # just an empty string.
35797 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35798 ac_dB='\\)[ (].*,\\1define\\2'
35799 ac_dC=' '
35800 ac_dD=' ,'
35802 uniq confdefs.h |
35803 sed -n '
35804 t rset
35805 :rset
35806 s/^[ ]*#[ ]*define[ ][ ]*//
35807 t ok
35810 s/[\\&,]/\\&/g
35811 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35812 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35813 ' >>conftest.defines
35815 # Remove the space that was appended to ease matching.
35816 # Then replace #undef with comments. This is necessary, for
35817 # example, in the case of _POSIX_SOURCE, which is predefined and required
35818 # on some systems where configure will not decide to define it.
35819 # (The regexp can be short, since the line contains either #define or #undef.)
35820 echo 's/ $//
35821 s,^[ #]*u.*,/* & */,' >>conftest.defines
35823 # Break up conftest.defines:
35824 ac_max_sed_lines=50
35826 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35827 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35828 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35829 # et cetera.
35830 ac_in='$ac_file_inputs'
35831 ac_out='"$tmp/out1"'
35832 ac_nxt='"$tmp/out2"'
35834 while :
35836 # Write a here document:
35837 cat >>$CONFIG_STATUS <<_ACEOF
35838 # First, check the format of the line:
35839 cat >"\$tmp/defines.sed" <<\\CEOF
35840 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35841 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35843 :def
35844 _ACEOF
35845 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35846 echo 'CEOF
35847 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35848 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35849 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35850 grep . conftest.tail >/dev/null || break
35851 rm -f conftest.defines
35852 mv conftest.tail conftest.defines
35853 done
35854 rm -f conftest.defines conftest.tail
35856 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35857 cat >>$CONFIG_STATUS <<\_ACEOF
35858 if test x"$ac_file" != x-; then
35859 echo "/* $configure_input */" >"$tmp/config.h"
35860 cat "$ac_result" >>"$tmp/config.h"
35861 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35862 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35863 echo "$as_me: $ac_file is unchanged" >&6;}
35864 else
35865 rm -f $ac_file
35866 mv "$tmp/config.h" $ac_file
35868 else
35869 echo "/* $configure_input */"
35870 cat "$ac_result"
35872 rm -f "$tmp/out12"
35875 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35876 echo "$as_me: executing $ac_file commands" >&6;}
35878 esac
35881 case $ac_file$ac_mode in
35882 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35884 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35886 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35888 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35890 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35891 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35892 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35893 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35894 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35895 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35896 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35897 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35898 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35899 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35900 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35901 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35902 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35903 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35904 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35905 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35906 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35907 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35909 esac
35910 done # for ac_tag
35913 { (exit 0); exit 0; }
35914 _ACEOF
35915 chmod +x $CONFIG_STATUS
35916 ac_clean_files=$ac_clean_files_save
35919 # configure is writing to config.log, and then calls config.status.
35920 # config.status does its own redirection, appending to config.log.
35921 # Unfortunately, on DOS this fails, as config.log is still kept open
35922 # by configure, so config.status won't be able to write to it; its
35923 # output is simply discarded. So we exec the FD to /dev/null,
35924 # effectively closing config.log, so it can be properly (re)opened and
35925 # appended to by config.status. When coming back to configure, we
35926 # need to make the FD available again.
35927 if test "$no_create" != yes; then
35928 ac_cs_success=:
35929 ac_config_status_args=
35930 test "$silent" = yes &&
35931 ac_config_status_args="$ac_config_status_args --quiet"
35932 exec 5>/dev/null
35933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35934 exec 5>>config.log
35935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35936 # would make configure fail if this is the last instruction.
35937 $ac_cs_success || { (exit 1); exit 1; }
35941 # CONFIG_SUBDIRS section.
35943 if test "$no_recursion" != yes; then
35945 # Remove --cache-file and --srcdir arguments so they do not pile up.
35946 ac_sub_configure_args=
35947 ac_prev=
35948 eval "set x $ac_configure_args"
35949 shift
35950 for ac_arg
35952 if test -n "$ac_prev"; then
35953 ac_prev=
35954 continue
35956 case $ac_arg in
35957 -cache-file | --cache-file | --cache-fil | --cache-fi \
35958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35959 ac_prev=cache_file ;;
35960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35962 | --c=*)
35964 --config-cache | -C)
35966 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35967 ac_prev=srcdir ;;
35968 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35971 ac_prev=prefix ;;
35972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35975 case $ac_arg in
35976 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35977 esac
35978 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35979 esac
35980 done
35982 # Always prepend --prefix to ensure using the same prefix
35983 # in subdir configurations.
35984 ac_arg="--prefix=$prefix"
35985 case $ac_arg in
35986 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35987 esac
35988 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35990 ac_popdir=`pwd`
35991 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35993 # Do not complain, so a configure script can configure whichever
35994 # parts of a large source tree are present.
35995 test -d "$srcdir/$ac_dir" || continue
35997 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35998 echo "$as_me:$LINENO: $ac_msg" >&5
35999 echo "$ac_msg" >&6
36000 { as_dir="$ac_dir"
36001 case $as_dir in #(
36002 -*) as_dir=./$as_dir;;
36003 esac
36004 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36005 as_dirs=
36006 while :; do
36007 case $as_dir in #(
36008 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36009 *) as_qdir=$as_dir;;
36010 esac
36011 as_dirs="'$as_qdir' $as_dirs"
36012 as_dir=`$as_dirname -- "$as_dir" ||
36013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36014 X"$as_dir" : 'X\(//\)[^/]' \| \
36015 X"$as_dir" : 'X\(//\)$' \| \
36016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36017 echo X"$as_dir" |
36018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36019 s//\1/
36022 /^X\(\/\/\)[^/].*/{
36023 s//\1/
36026 /^X\(\/\/\)$/{
36027 s//\1/
36030 /^X\(\/\).*/{
36031 s//\1/
36034 s/.*/./; q'`
36035 test -d "$as_dir" && break
36036 done
36037 test -z "$as_dirs" || eval "mkdir $as_dirs"
36038 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36039 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36040 { (exit 1); exit 1; }; }; }
36041 ac_builddir=.
36043 case "$ac_dir" in
36044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36047 # A ".." for each directory in $ac_dir_suffix.
36048 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36049 case $ac_top_builddir_sub in
36050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36052 esac ;;
36053 esac
36054 ac_abs_top_builddir=$ac_pwd
36055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36056 # for backward compatibility:
36057 ac_top_builddir=$ac_top_build_prefix
36059 case $srcdir in
36060 .) # We are building in place.
36061 ac_srcdir=.
36062 ac_top_srcdir=$ac_top_builddir_sub
36063 ac_abs_top_srcdir=$ac_pwd ;;
36064 [\\/]* | ?:[\\/]* ) # Absolute name.
36065 ac_srcdir=$srcdir$ac_dir_suffix;
36066 ac_top_srcdir=$srcdir
36067 ac_abs_top_srcdir=$srcdir ;;
36068 *) # Relative name.
36069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36070 ac_top_srcdir=$ac_top_build_prefix$srcdir
36071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36072 esac
36073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36076 cd "$ac_dir"
36078 # Check for guested configure; otherwise get Cygnus style configure.
36079 if test -f "$ac_srcdir/configure.gnu"; then
36080 ac_sub_configure=$ac_srcdir/configure.gnu
36081 elif test -f "$ac_srcdir/configure"; then
36082 ac_sub_configure=$ac_srcdir/configure
36083 elif test -f "$ac_srcdir/configure.in"; then
36084 # This should be Cygnus configure.
36085 ac_sub_configure=$ac_aux_dir/configure
36086 else
36087 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36088 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36089 ac_sub_configure=
36092 # The recursion is here.
36093 if test -n "$ac_sub_configure"; then
36094 # Make the cache file name correct relative to the subdirectory.
36095 case $cache_file in
36096 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36097 *) # Relative name.
36098 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36099 esac
36101 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36102 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36103 # The eval makes quoting arguments work.
36104 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36105 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36106 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36107 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36108 { (exit 1); exit 1; }; }
36111 cd "$ac_popdir"
36112 done