Oy! When reverting r68073, I added in experimental code. Sorry...
[llvm/msp430.git] / configure
blob60ee5c30c36763ed86a5c2d150389b22f07c1339
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
845 BINUTILS_INCDIR
847 CXXFLAGS
848 ac_ct_CXX
850 ifGNUmake
851 LN_S
854 DATE
855 FIND
856 MKDIR
858 RANLIB
862 BINPWD
863 GRAPHVIZ
866 DOTTY
867 PERL
868 HAVE_PERL
869 INSTALL_PROGRAM
870 INSTALL_SCRIPT
871 INSTALL_DATA
872 BZIP2
873 DOXYGEN
874 GROFF
875 GZIP
876 POD2HTML
877 POD2MAN
878 RUNTEST
879 TCLSH
881 OCAMLC
882 OCAMLOPT
883 OCAMLDEP
884 OCAMLDOC
886 INSTALL_LTDL_TRUE
887 INSTALL_LTDL_FALSE
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
890 LIBADD_DL
891 ECHO
893 STRIP
894 CXXCPP
896 FFLAGS
897 ac_ct_F77
898 LIBTOOL
899 LLVMGCC
900 LLVMGXX
901 USE_UDIS86
902 HAVE_PTHREAD
903 HAVE_FFI
904 HUGE_VAL_SANITY
905 ALLOCA
906 MMAP_FILE
907 LLVMCC1
908 LLVMCC1PLUS
909 LLVMGCCDIR
910 LLVMGCCLIBEXEC
911 LLVMGCC_VERSION
912 LLVMGCC_MAJVERS
913 LLVMGCC_LANGS
914 SHLIBEXT
915 LLVM_PREFIX
916 LLVM_BINDIR
917 LLVM_LIBDIR
918 LLVM_DATADIR
919 LLVM_DOCSDIR
920 LLVM_ETCDIR
921 LLVM_INCLUDEDIR
922 LLVM_INFODIR
923 LLVM_MANDIR
924 LLVM_CONFIGTIME
925 BINDINGS_TO_BUILD
926 ALL_BINDINGS
927 OCAML_LIBDIR
928 ENABLE_VISIBILITY_INLINES_HIDDEN
929 RPATH
930 RDYNAMIC
931 LIBOBJS
932 LTLIBOBJS'
933 ac_subst_files=''
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
938 CFLAGS
939 LDFLAGS
940 CPPFLAGS
943 CXXFLAGS
945 CXXCPP
947 FFLAGS'
948 ac_subdirs_all='projects/sample
949 projects/privbracket
950 projects/llvm-stacker
951 projects/llvm-test
952 projects/test-suite
953 projects/llvm-reopt
954 projects/llvm-gcc
955 projects/llvm-java
956 projects/llvm-tv
957 projects/llvm-poolalloc
958 projects/poolalloc
959 projects/llvm-kernel'
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1027 ac_dashdash=yes ;;
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068 eval enable_$ac_feature=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087 eval enable_$ac_feature=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package| sed 's/-/_/g'`
1284 eval with_$ac_package=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/-/_/g'`
1293 eval with_$ac_package=no ;;
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 esac
1336 done
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1344 # Be sure to have absolute directory names.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1357 done
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402 echo X"$0" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1411 /^X\(\/\/\)$/{
1412 s//\1/
1415 /^X\(\/\).*/{
1416 s//\1/
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1424 else
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1436 pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
1461 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1470 Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514 _ACEOF
1516 cat <<\_ACEOF
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522 _ACEOF
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1528 esac
1529 cat <<\_ACEOF
1531 Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-optimized
1535 --enable-assertions
1536 --enable-expensive-checks
1538 --enable-debug-runtime
1539 --enable-jit Enable Just In Time Compiling (default is YES)
1540 --enable-doxygen Build doxygen documentation (default is NO)
1541 --enable-threads Use threads if available (default is YES)
1542 --enable-pic Build LLVM with Position Independent Code (default
1543 is YES)
1544 --enable-targets Build specific host targets:
1545 all,host-only,{target-name} (default=all)
1546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 %a (default is YES)
1548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
1550 --enable-ltdl-install install libltdl
1551 --enable-shared[=PKGS] build shared libraries
1552 [default=yes]
1553 --enable-static[=PKGS] build static libraries
1554 [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation
1557 [default=yes]
1558 --disable-libtool-lock avoid locking (might break parallel builds)
1560 Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 searches PATH)
1565 --with-llvmgcc Specify location of llvm-gcc driver (default
1566 searches PATH)
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1568 searches PATH)
1569 --with-extra-options Specify addtional options to compile LLVM with
1570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1571 is stdlib)
1572 --with-binutils-include Specify path to binutils/include/ containing
1573 plugin-api.h file for gold plugin.
1574 --with-tclinclude directory where tcl headers are
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-tags[=TAGS] include additional configurations [automatic]
1579 --with-udis86=<path> Use udis86 external x86 disassembler library
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 CXXCPP C++ preprocessor
1592 F77 Fortran 77 compiler command
1593 FFLAGS Fortran 77 compiler flags
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1598 Report bugs to <llvmbugs@cs.uiuc.edu>.
1599 _ACEOF
1600 ac_status=$?
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" || continue
1607 ac_builddir=.
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1625 case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 llvm configure 2.6svn
1660 generated by GNU Autoconf 2.60
1662 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1667 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1668 _ACEOF
1669 exit
1671 cat >config.log <<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1675 It was created by llvm $as_me 2.6svn, which was
1676 generated by GNU Autoconf 2.60. Invocation command line was
1678 $ $0 $@
1680 _ACEOF
1681 exec 5>>config.log
1683 cat <<_ASUNAME
1684 ## --------- ##
1685 ## Platform. ##
1686 ## --------- ##
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1705 _ASUNAME
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 echo "PATH: $as_dir"
1713 done
1714 IFS=$as_save_IFS
1716 } >&5
1718 cat >&5 <<_ACEOF
1721 ## ----------- ##
1722 ## Core tests. ##
1723 ## ----------- ##
1725 _ACEOF
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1733 ac_configure_args=
1734 ac_configure_args0=
1735 ac_configure_args1=
1736 ac_must_keep_next=false
1737 for ac_pass in 1 2
1739 for ac_arg
1741 case $ac_arg in
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1745 continue ;;
1746 *\'*)
1747 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 esac
1749 case $ac_pass in
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
1754 ac_must_keep_next=false # Got value, back to normal.
1755 else
1756 case $ac_arg in
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 esac
1765 -* ) ac_must_keep_next=true ;;
1766 esac
1768 ac_configure_args="$ac_configure_args '$ac_arg'"
1770 esac
1771 done
1772 done
1773 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log. We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1784 echo
1786 cat <<\_ASBOX
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1790 _ASBOX
1791 echo
1792 # The following way of writing the cache mishandles newlines in values,
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in #(
1797 *${as_nl}*)
1798 case $ac_var in #(
1799 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 esac
1802 case $ac_var in #(
1803 _ | IFS | as_nl) ;; #(
1804 *) $as_unset $ac_var ;;
1805 esac ;;
1806 esac
1807 done
1808 (set) 2>&1 |
1809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
1811 sed -n \
1812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 ;; #(
1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 esac |
1819 sort
1821 echo
1823 cat <<\_ASBOX
1824 ## ----------------- ##
1825 ## Output variables. ##
1826 ## ----------------- ##
1827 _ASBOX
1828 echo
1829 for ac_var in $ac_subst_vars
1831 eval ac_val=\$$ac_var
1832 case $ac_val in
1833 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 esac
1835 echo "$ac_var='\''$ac_val'\''"
1836 done | sort
1837 echo
1839 if test -n "$ac_subst_files"; then
1840 cat <<\_ASBOX
1841 ## ------------------- ##
1842 ## File substitutions. ##
1843 ## ------------------- ##
1844 _ASBOX
1845 echo
1846 for ac_var in $ac_subst_files
1848 eval ac_val=\$$ac_var
1849 case $ac_val in
1850 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 esac
1852 echo "$ac_var='\''$ac_val'\''"
1853 done | sort
1854 echo
1857 if test -s confdefs.h; then
1858 cat <<\_ASBOX
1859 ## ----------- ##
1860 ## confdefs.h. ##
1861 ## ----------- ##
1862 _ASBOX
1863 echo
1864 cat confdefs.h
1865 echo
1867 test "$ac_signal" != 0 &&
1868 echo "$as_me: caught signal $ac_signal"
1869 echo "$as_me: exit $exit_status"
1870 } >&5
1871 rm -f core *.core core.conftest.* &&
1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1873 exit $exit_status
1875 for ac_signal in 1 2 13 15; do
1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877 done
1878 ac_signal=0
1880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1881 rm -f -r conftest* confdefs.h
1883 # Predefined preprocessor variables.
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_NAME "$PACKAGE_NAME"
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1897 _ACEOF
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_STRING "$PACKAGE_STRING"
1902 _ACEOF
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907 _ACEOF
1910 # Let the site file select an alternate cache file if it wants to.
1911 # Prefer explicitly selected file to automatically selected ones.
1912 if test -n "$CONFIG_SITE"; then
1913 set x "$CONFIG_SITE"
1914 elif test "x$prefix" != xNONE; then
1915 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916 else
1917 set x "$ac_default_prefix/share/config.site" \
1918 "$ac_default_prefix/etc/config.site"
1920 shift
1921 for ac_site_file
1923 if test -r "$ac_site_file"; then
1924 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925 echo "$as_me: loading site script $ac_site_file" >&6;}
1926 sed 's/^/| /' "$ac_site_file" >&5
1927 . "$ac_site_file"
1929 done
1931 if test -r "$cache_file"; then
1932 # Some versions of bash will fail to source /dev/null (special
1933 # files actually), so we avoid doing that.
1934 if test -f "$cache_file"; then
1935 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936 echo "$as_me: loading cache $cache_file" >&6;}
1937 case $cache_file in
1938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939 *) . "./$cache_file";;
1940 esac
1942 else
1943 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944 echo "$as_me: creating cache $cache_file" >&6;}
1945 >$cache_file
1948 # Check that the precious variables saved in the cache have kept the same
1949 # value.
1950 ac_cache_corrupted=false
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
1954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1957 set,)
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1961 ,set)
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,);;
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1969 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1970 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1971 echo "$as_me: former value: $ac_old_val" >&2;}
1972 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1973 echo "$as_me: current value: $ac_new_val" >&2;}
1974 ac_cache_corrupted=:
1975 fi;;
1976 esac
1977 # Pass precious variables to config.status.
1978 if test "$ac_new_set" = set; then
1979 case $ac_new_val in
1980 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 *) ac_arg=$ac_var=$ac_new_val ;;
1982 esac
1983 case " $ac_configure_args " in
1984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1985 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986 esac
1988 done
1989 if $ac_cache_corrupted; then
1990 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994 { (exit 1); exit 1; }; }
2021 ac_ext=c
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2037 ac_aux_dir=
2038 for ac_dir in autoconf "$srcdir"/autoconf; do
2039 if test -f "$ac_dir/install-sh"; then
2040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/install-sh -c"
2042 break
2043 elif test -f "$ac_dir/install.sh"; then
2044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install.sh -c"
2046 break
2047 elif test -f "$ac_dir/shtool"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/shtool install -c"
2050 break
2052 done
2053 if test -z "$ac_aux_dir"; then
2054 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2055 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2056 { (exit 1); exit 1; }; }
2059 # These three variables are undocumented and unsupported,
2060 # and are intended to be withdrawn in a future Autoconf release.
2061 # They can cause serious problems if a builder's source tree is in a directory
2062 # whose full name contains unusual characters.
2063 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2064 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2065 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2069 if test ${srcdir} != "." ; then
2070 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2071 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2072 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2073 { (exit 1); exit 1; }; }
2077 for i in `ls ${srcdir}/projects`
2079 if test -d ${srcdir}/projects/${i} ; then
2080 case ${i} in
2081 CVS) ;;
2082 sample) subdirs="$subdirs projects/sample"
2084 privbracket) subdirs="$subdirs projects/privbracket"
2086 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2088 # llvm-test is the old name of the test-suite, kept here for backwards
2089 # compatibility
2090 llvm-test) subdirs="$subdirs projects/llvm-test"
2092 test-suite) subdirs="$subdirs projects/test-suite"
2094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2098 llvm-java) subdirs="$subdirs projects/llvm-java"
2100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2104 poolalloc) subdirs="$subdirs projects/poolalloc"
2106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2112 esac
2114 done
2117 # Make sure we can run config.sub.
2118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: checking build system type" >&5
2124 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 ac_build_alias=$build_alias
2129 test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131 test "x$ac_build_alias" = x &&
2132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
2135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138 { (exit 1); exit 1; }; }
2141 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142 echo "${ECHO_T}$ac_cv_build" >&6; }
2143 case $ac_cv_build in
2144 *-*-*) ;;
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146 echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2148 esac
2149 build=$ac_cv_build
2150 ac_save_IFS=$IFS; IFS='-'
2151 set x $ac_cv_build
2152 shift
2153 build_cpu=$1
2154 build_vendor=$2
2155 shift; shift
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2158 build_os=$*
2159 IFS=$ac_save_IFS
2160 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2163 { echo "$as_me:$LINENO: checking host system type" >&5
2164 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165 if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2170 else
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174 { (exit 1); exit 1; }; }
2178 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179 echo "${ECHO_T}$ac_cv_host" >&6; }
2180 case $ac_cv_host in
2181 *-*-*) ;;
2182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183 echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2185 esac
2186 host=$ac_cv_host
2187 ac_save_IFS=$IFS; IFS='-'
2188 set x $ac_cv_host
2189 shift
2190 host_cpu=$1
2191 host_vendor=$2
2192 shift; shift
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2195 host_os=$*
2196 IFS=$ac_save_IFS
2197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200 { echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2207 else
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2215 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6; }
2217 case $ac_cv_target in
2218 *-*-*) ;;
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220 echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2222 esac
2223 target=$ac_cv_target
2224 ac_save_IFS=$IFS; IFS='-'
2225 set x $ac_cv_target
2226 shift
2227 target_cpu=$1
2228 target_vendor=$2
2229 shift; shift
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2232 target_os=$*
2233 IFS=$ac_save_IFS
2234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2237 # The aliases save the names the user supplied, while $host etc.
2238 # will get canonicalized.
2239 test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2241 NONENONEs,x,x, &&
2242 program_prefix=${target_alias}-
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246 if test "${llvm_cv_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 case $host in
2250 *-*-aix*)
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-irix*)
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-cygwin*)
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-darwin*)
2266 llvm_cv_link_all_option="-Wl,-all_load"
2267 llvm_cv_no_link_all_option="-Wl,-noall_load"
2268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-freebsd*)
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
2275 *-*-openbsd*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-netbsd*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-dragonfly*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="DragonFly"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-hpux*)
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="HP-UX"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-interix*)
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="Interix"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-linux*)
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="Linux"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-solaris*)
2306 llvm_cv_link_all_option="-Wl,-z,allextract"
2307 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2308 llvm_cv_os_type="SunOS"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-win32*)
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="Win32"
2314 llvm_cv_platform_type="Win32" ;;
2315 *-*-mingw*)
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="MingW"
2319 llvm_cv_platform_type="Win32" ;;
2321 llvm_cv_link_all_option=""
2322 llvm_cv_no_link_all_option=""
2323 llvm_cv_os_type="Unknown"
2324 llvm_cv_platform_type="Unknown" ;;
2325 esac
2327 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2330 if test "$llvm_cv_os_type" = "Unknown" ; then
2331 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2333 { (exit 1); exit 1; }; }
2336 OS=$llvm_cv_os_type
2339 LINKALL=$llvm_cv_link_all_option
2341 NOLINKALL=$llvm_cv_no_link_all_option
2344 case $llvm_cv_platform_type in
2345 Unix)
2347 cat >>confdefs.h <<\_ACEOF
2348 #define LLVM_ON_UNIX 1
2349 _ACEOF
2351 LLVM_ON_UNIX=1
2353 LLVM_ON_WIN32=0
2356 Win32)
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_WIN32 1
2360 _ACEOF
2362 LLVM_ON_UNIX=0
2364 LLVM_ON_WIN32=1
2367 esac
2369 { echo "$as_me:$LINENO: checking target architecture" >&5
2370 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2371 if test "${llvm_cv_target_arch+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 case $target in
2375 i?86-*) llvm_cv_target_arch="x86" ;;
2376 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2377 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2378 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2379 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2380 ia64-*) llvm_cv_target_arch="IA64" ;;
2381 arm-*) llvm_cv_target_arch="ARM" ;;
2382 mips-*) llvm_cv_target_arch="Mips" ;;
2383 pic16-*) llvm_cv_target_arch="PIC16" ;;
2384 xcore-*) llvm_cv_target_arch="XCore" ;;
2385 *) llvm_cv_target_arch="Unknown" ;;
2386 esac
2388 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2389 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2391 if test "$llvm_cv_target_arch" = "Unknown" ; then
2392 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2393 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2396 ARCH=$llvm_cv_target_arch
2399 ac_ext=c
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2426 done
2427 done
2428 IFS=$as_save_IFS
2432 CC=$ac_cv_prog_CC
2433 if test -n "$CC"; then
2434 { echo "$as_me:$LINENO: result: $CC" >&5
2435 echo "${ECHO_T}$CC" >&6; }
2436 else
2437 { echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6; }
2443 if test -z "$ac_cv_prog_CC"; then
2444 ac_ct_CC=$CC
2445 # Extract the first word of "gcc", so it can be a program name with args.
2446 set dummy gcc; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_ac_ct_CC="gcc"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2466 done
2467 done
2468 IFS=$as_save_IFS
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6; }
2476 else
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2481 if test "x$ac_ct_CC" = x; then
2482 CC=""
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet. If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&5
2489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2490 whose name does not start with the host triplet. If you think this
2491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2492 ac_tool_warned=yes ;;
2493 esac
2494 CC=$ac_ct_CC
2496 else
2497 CC="$ac_cv_prog_CC"
2500 if test -z "$CC"; then
2501 if test -n "$ac_tool_prefix"; then
2502 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2503 set dummy ${ac_tool_prefix}cc; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_CC="${ac_tool_prefix}cc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2523 done
2524 done
2525 IFS=$as_save_IFS
2529 CC=$ac_cv_prog_CC
2530 if test -n "$CC"; then
2531 { echo "$as_me:$LINENO: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6; }
2533 else
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2541 if test -z "$CC"; then
2542 # Extract the first word of "cc", so it can be a program name with args.
2543 set dummy cc; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 ac_prog_rejected=no
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2561 ac_prog_rejected=yes
2562 continue
2564 ac_cv_prog_CC="cc"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2568 done
2569 done
2570 IFS=$as_save_IFS
2572 if test $ac_prog_rejected = yes; then
2573 # We found a bogon in the path, so make sure we never use it.
2574 set dummy $ac_cv_prog_CC
2575 shift
2576 if test $# != 0; then
2577 # We chose a different compiler from the bogus one.
2578 # However, it has the same basename, so the bogon will be chosen
2579 # first if we set CC to just the basename; use the full file name.
2580 shift
2581 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 CC=$ac_cv_prog_CC
2587 if test -n "$CC"; then
2588 { echo "$as_me:$LINENO: result: $CC" >&5
2589 echo "${ECHO_T}$CC" >&6; }
2590 else
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2597 if test -z "$CC"; then
2598 if test -n "$ac_tool_prefix"; then
2599 for ac_prog in cl.exe
2601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2624 IFS=$as_save_IFS
2628 CC=$ac_cv_prog_CC
2629 if test -n "$CC"; then
2630 { echo "$as_me:$LINENO: result: $CC" >&5
2631 echo "${ECHO_T}$CC" >&6; }
2632 else
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2638 test -n "$CC" && break
2639 done
2641 if test -z "$CC"; then
2642 ac_ct_CC=$CC
2643 for ac_prog in cl.exe
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652 if test -n "$ac_ct_CC"; then
2653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_ac_ct_CC="$ac_prog"
2663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2666 done
2667 done
2668 IFS=$as_save_IFS
2672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2673 if test -n "$ac_ct_CC"; then
2674 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2675 echo "${ECHO_T}$ac_ct_CC" >&6; }
2676 else
2677 { echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6; }
2682 test -n "$ac_ct_CC" && break
2683 done
2685 if test "x$ac_ct_CC" = x; then
2686 CC=""
2687 else
2688 case $cross_compiling:$ac_tool_warned in
2689 yes:)
2690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet. If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&5
2693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2694 whose name does not start with the host triplet. If you think this
2695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2696 ac_tool_warned=yes ;;
2697 esac
2698 CC=$ac_ct_CC
2705 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." >&5
2707 echo "$as_me: error: no acceptable C compiler found in \$PATH
2708 See \`config.log' for more details." >&2;}
2709 { (exit 1); exit 1; }; }
2711 # Provide some information about the compiler.
2712 echo "$as_me:$LINENO: checking for C compiler version" >&5
2713 ac_compiler=`set X $ac_compile; echo $2`
2714 { (ac_try="$ac_compiler --version >&5"
2715 case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler --version >&5") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2724 { (ac_try="$ac_compiler -v >&5"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler -v >&5") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2734 { (ac_try="$ac_compiler -V >&5"
2735 case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compiler -V >&5") 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2745 cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h. */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2753 main ()
2757 return 0;
2759 _ACEOF
2760 ac_clean_files_save=$ac_clean_files
2761 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2762 # Try to create an executable without -o first, disregard a.out.
2763 # It will help us diagnose broken compilers, and finding out an intuition
2764 # of exeext.
2765 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2766 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2767 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2769 # List of possible output files, starting from the most likely.
2770 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2771 # only as a last resort. b.out is created by i960 compilers.
2772 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2774 # The IRIX 6 linker writes into existing files which may not be
2775 # executable, retaining their permissions. Remove them first so a
2776 # subsequent execution test works.
2777 ac_rmfiles=
2778 for ac_file in $ac_files
2780 case $ac_file in
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2782 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2783 esac
2784 done
2785 rm -f $ac_rmfiles
2787 if { (ac_try="$ac_link_default"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_link_default") 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; then
2797 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2798 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2799 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2800 # so that the user can short-circuit this test for compilers unknown to
2801 # Autoconf.
2802 for ac_file in $ac_files
2804 test -f "$ac_file" || continue
2805 case $ac_file in
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2808 [ab].out )
2809 # We found the default executable, but exeext='' is most
2810 # certainly right.
2811 break;;
2812 *.* )
2813 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2814 then :; else
2815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2817 # We set ac_cv_exeext here because the later test for it is not
2818 # safe: cross compilers may not add the suffix if given an `-o'
2819 # argument, so we may need to know it at that point already.
2820 # Even if this section looks crufty: it has the advantage of
2821 # actually working.
2822 break;;
2824 break;;
2825 esac
2826 done
2827 test "$ac_cv_exeext" = no && ac_cv_exeext=
2829 else
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2834 See \`config.log' for more details." >&5
2835 echo "$as_me: error: C compiler cannot create executables
2836 See \`config.log' for more details." >&2;}
2837 { (exit 77); exit 77; }; }
2840 ac_exeext=$ac_cv_exeext
2841 { echo "$as_me:$LINENO: result: $ac_file" >&5
2842 echo "${ECHO_T}$ac_file" >&6; }
2844 # Check that the compiler produces executables we can run. If not, either
2845 # the compiler is broken, or we cross compile.
2846 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2847 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2849 # If not cross compiling, check that we can run a simple program.
2850 if test "$cross_compiling" != yes; then
2851 if { ac_try='./$ac_file'
2852 { (case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_try") 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2861 cross_compiling=no
2862 else
2863 if test "$cross_compiling" = maybe; then
2864 cross_compiling=yes
2865 else
2866 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2867 If you meant to cross compile, use \`--host'.
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot run C compiled programs.
2870 If you meant to cross compile, use \`--host'.
2871 See \`config.log' for more details." >&2;}
2872 { (exit 1); exit 1; }; }
2876 { echo "$as_me:$LINENO: result: yes" >&5
2877 echo "${ECHO_T}yes" >&6; }
2879 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2880 ac_clean_files=$ac_clean_files_save
2881 # Check that the compiler produces executables we can run. If not, either
2882 # the compiler is broken, or we cross compile.
2883 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2884 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2885 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2886 echo "${ECHO_T}$cross_compiling" >&6; }
2888 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2889 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2890 if { (ac_try="$ac_link"
2891 case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_link") 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; then
2900 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2901 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2902 # work properly (i.e., refer to `conftest.exe'), while it won't with
2903 # `rm'.
2904 for ac_file in conftest.exe conftest conftest.*; do
2905 test -f "$ac_file" || continue
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2908 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2909 break;;
2910 * ) break;;
2911 esac
2912 done
2913 else
2914 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2917 See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
2921 rm -f conftest$ac_cv_exeext
2922 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2923 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2925 rm -f conftest.$ac_ext
2926 EXEEXT=$ac_cv_exeext
2927 ac_exeext=$EXEEXT
2928 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2929 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2930 if test "${ac_cv_objext+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2941 main ()
2945 return 0;
2947 _ACEOF
2948 rm -f conftest.o conftest.obj
2949 if { (ac_try="$ac_compile"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compile") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; then
2959 for ac_file in conftest.o conftest.obj conftest.*; do
2960 test -f "$ac_file" || continue;
2961 case $ac_file in
2962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2964 break;;
2965 esac
2966 done
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2978 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2980 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2981 echo "${ECHO_T}$ac_cv_objext" >&6; }
2982 OBJEXT=$ac_cv_objext
2983 ac_objext=$OBJEXT
2984 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2985 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2986 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h. */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2997 main ()
2999 #ifndef __GNUC__
3000 choke me
3001 #endif
3004 return 0;
3006 _ACEOF
3007 rm -f conftest.$ac_objext
3008 if { (ac_try="$ac_compile"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compile") 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3022 { (case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_try") 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; } &&
3031 { ac_try='test -s conftest.$ac_objext'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 ac_compiler_gnu=yes
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 ac_compiler_gnu=no
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3053 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3055 GCC=`test $ac_compiler_gnu = yes && echo yes`
3056 ac_test_CFLAGS=${CFLAGS+set}
3057 ac_save_CFLAGS=$CFLAGS
3058 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3059 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_cc_g+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 ac_save_c_werror_flag=$ac_c_werror_flag
3064 ac_c_werror_flag=yes
3065 ac_cv_prog_cc_g=no
3066 CFLAGS="-g"
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3075 main ()
3079 return 0;
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 ac_cv_prog_cc_g=yes
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 CFLAGS=""
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3130 main ()
3134 return 0;
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } &&
3151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3172 else
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 ac_c_werror_flag=$ac_save_c_werror_flag
3177 CFLAGS="-g"
3178 cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h. */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3186 main ()
3190 return 0;
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_try") 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; }; then
3227 ac_cv_prog_cc_g=yes
3228 else
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_c_werror_flag=$ac_save_c_werror_flag
3244 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3245 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3246 if test "$ac_test_CFLAGS" = set; then
3247 CFLAGS=$ac_save_CFLAGS
3248 elif test $ac_cv_prog_cc_g = yes; then
3249 if test "$GCC" = yes; then
3250 CFLAGS="-g -O2"
3251 else
3252 CFLAGS="-g"
3254 else
3255 if test "$GCC" = yes; then
3256 CFLAGS="-O2"
3257 else
3258 CFLAGS=
3261 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3262 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3263 if test "${ac_cv_prog_cc_c89+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 ac_cv_prog_cc_c89=no
3267 ac_save_CC=$CC
3268 cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h. */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3274 #include <stdarg.h>
3275 #include <stdio.h>
3276 #include <sys/types.h>
3277 #include <sys/stat.h>
3278 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3279 struct buf { int x; };
3280 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3281 static char *e (p, i)
3282 char **p;
3283 int i;
3285 return p[i];
3287 static char *f (char * (*g) (char **, int), char **p, ...)
3289 char *s;
3290 va_list v;
3291 va_start (v,p);
3292 s = g (p, va_arg (v,int));
3293 va_end (v);
3294 return s;
3297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3298 function prototypes and stuff, but not '\xHH' hex character constants.
3299 These don't provoke an error unfortunately, instead are silently treated
3300 as 'x'. The following induces an error, until -std is added to get
3301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3302 array size at least. It's necessary to write '\x00'==0 to get something
3303 that's true only with -std. */
3304 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3307 inside strings and character constants. */
3308 #define FOO(x) 'x'
3309 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3311 int test (int i, double x);
3312 struct s1 {int (*f) (int a);};
3313 struct s2 {int (*f) (double a);};
3314 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3315 int argc;
3316 char **argv;
3318 main ()
3320 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 return 0;
3324 _ACEOF
3325 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3326 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3328 CC="$ac_save_CC $ac_arg"
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3344 { (case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_try") 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_try") 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_prog_cc_c89=$ac_arg
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3371 rm -f core conftest.err conftest.$ac_objext
3372 test "x$ac_cv_prog_cc_c89" != "xno" && break
3373 done
3374 rm -f conftest.$ac_ext
3375 CC=$ac_save_CC
3378 # AC_CACHE_VAL
3379 case "x$ac_cv_prog_cc_c89" in
3381 { echo "$as_me:$LINENO: result: none needed" >&5
3382 echo "${ECHO_T}none needed" >&6; } ;;
3383 xno)
3384 { echo "$as_me:$LINENO: result: unsupported" >&5
3385 echo "${ECHO_T}unsupported" >&6; } ;;
3387 CC="$CC $ac_cv_prog_cc_c89"
3388 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3389 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3390 esac
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3406 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3407 # On Suns, sometimes $CPP names a directory.
3408 if test -n "$CPP" && test -d "$CPP"; then
3409 CPP=
3411 if test -z "$CPP"; then
3412 if test "${ac_cv_prog_CPP+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 # Double quotes because CPP needs to be expanded
3416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3418 ac_preproc_ok=false
3419 for ac_c_preproc_warn_flag in '' yes
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 #ifdef __STDC__
3434 # include <limits.h>
3435 #else
3436 # include <assert.h>
3437 #endif
3438 Syntax error
3439 _ACEOF
3440 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 else
3457 ac_cpp_err=
3459 else
3460 ac_cpp_err=yes
3462 if test -z "$ac_cpp_err"; then
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Broken: fails on valid input.
3469 continue
3472 rm -f conftest.err conftest.$ac_ext
3474 # OK, works on sane cases. Now check whether nonexistent headers
3475 # can be detected and how.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #include <ac_nonexistent.h>
3483 _ACEOF
3484 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } >/dev/null; then
3497 if test -s conftest.err; then
3498 ac_cpp_err=$ac_c_preproc_warn_flag
3499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500 else
3501 ac_cpp_err=
3503 else
3504 ac_cpp_err=yes
3506 if test -z "$ac_cpp_err"; then
3507 # Broken: success on invalid input.
3508 continue
3509 else
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 # Passes both tests.
3514 ac_preproc_ok=:
3515 break
3518 rm -f conftest.err conftest.$ac_ext
3520 done
3521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522 rm -f conftest.err conftest.$ac_ext
3523 if $ac_preproc_ok; then
3524 break
3527 done
3528 ac_cv_prog_CPP=$CPP
3531 CPP=$ac_cv_prog_CPP
3532 else
3533 ac_cv_prog_CPP=$CPP
3535 { echo "$as_me:$LINENO: result: $CPP" >&5
3536 echo "${ECHO_T}$CPP" >&6; }
3537 ac_preproc_ok=false
3538 for ac_c_preproc_warn_flag in '' yes
3540 # Use a header file that comes with gcc, so configuring glibc
3541 # with a fresh cross-compiler works.
3542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3543 # <limits.h> exists even on freestanding compilers.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #ifdef __STDC__
3553 # include <limits.h>
3554 #else
3555 # include <assert.h>
3556 #endif
3557 Syntax error
3558 _ACEOF
3559 if { (ac_try="$ac_cpp conftest.$ac_ext"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566 ac_status=$?
3567 grep -v '^ *+' conftest.er1 >conftest.err
3568 rm -f conftest.er1
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } >/dev/null; then
3572 if test -s conftest.err; then
3573 ac_cpp_err=$ac_c_preproc_warn_flag
3574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3575 else
3576 ac_cpp_err=
3578 else
3579 ac_cpp_err=yes
3581 if test -z "$ac_cpp_err"; then
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 # Broken: fails on valid input.
3588 continue
3591 rm -f conftest.err conftest.$ac_ext
3593 # OK, works on sane cases. Now check whether nonexistent headers
3594 # can be detected and how.
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3602 _ACEOF
3603 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev/null; then
3616 if test -s conftest.err; then
3617 ac_cpp_err=$ac_c_preproc_warn_flag
3618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3619 else
3620 ac_cpp_err=
3622 else
3623 ac_cpp_err=yes
3625 if test -z "$ac_cpp_err"; then
3626 # Broken: success on invalid input.
3627 continue
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 # Passes both tests.
3633 ac_preproc_ok=:
3634 break
3637 rm -f conftest.err conftest.$ac_ext
3639 done
3640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641 rm -f conftest.err conftest.$ac_ext
3642 if $ac_preproc_ok; then
3644 else
3645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&5
3647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3648 See \`config.log' for more details." >&2;}
3649 { (exit 1); exit 1; }; }
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3660 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3661 if test "${ac_cv_path_GREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 # Extract the first word of "grep ggrep" to use in msg output
3665 if test -z "$GREP"; then
3666 set dummy grep ggrep; ac_prog_name=$2
3667 if test "${ac_cv_path_GREP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 ac_path_GREP_found=false
3671 # Loop through the user's path and test for each of PROGNAME-LIST
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_prog in grep ggrep; do
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3680 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3681 # Check for GNU ac_path_GREP and select it if it is found.
3682 # Check for GNU $ac_path_GREP
3683 case `"$ac_path_GREP" --version 2>&1` in
3684 *GNU*)
3685 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3687 ac_count=0
3688 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 while :
3691 cat "conftest.in" "conftest.in" >"conftest.tmp"
3692 mv "conftest.tmp" "conftest.in"
3693 cp "conftest.in" "conftest.nl"
3694 echo 'GREP' >> "conftest.nl"
3695 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3697 ac_count=`expr $ac_count + 1`
3698 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3699 # Best one so far, save it but keep looking for a better one
3700 ac_cv_path_GREP="$ac_path_GREP"
3701 ac_path_GREP_max=$ac_count
3703 # 10*(2^10) chars as input seems more than enough
3704 test $ac_count -gt 10 && break
3705 done
3706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707 esac
3710 $ac_path_GREP_found && break 3
3711 done
3712 done
3714 done
3715 IFS=$as_save_IFS
3720 GREP="$ac_cv_path_GREP"
3721 if test -z "$GREP"; then
3722 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3723 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3724 { (exit 1); exit 1; }; }
3727 else
3728 ac_cv_path_GREP=$GREP
3733 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3734 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3735 GREP="$ac_cv_path_GREP"
3738 { echo "$as_me:$LINENO: checking for egrep" >&5
3739 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3740 if test "${ac_cv_path_EGREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3744 then ac_cv_path_EGREP="$GREP -E"
3745 else
3746 # Extract the first word of "egrep" to use in msg output
3747 if test -z "$EGREP"; then
3748 set dummy egrep; ac_prog_name=$2
3749 if test "${ac_cv_path_EGREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 ac_path_EGREP_found=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in egrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3763 # Check for GNU ac_path_EGREP and select it if it is found.
3764 # Check for GNU $ac_path_EGREP
3765 case `"$ac_path_EGREP" --version 2>&1` in
3766 *GNU*)
3767 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3769 ac_count=0
3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 while :
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 echo 'EGREP' >> "conftest.nl"
3777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 ac_count=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_EGREP="$ac_path_EGREP"
3783 ac_path_EGREP_max=$ac_count
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3787 done
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789 esac
3792 $ac_path_EGREP_found && break 3
3793 done
3794 done
3796 done
3797 IFS=$as_save_IFS
3802 EGREP="$ac_cv_path_EGREP"
3803 if test -z "$EGREP"; then
3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806 { (exit 1); exit 1; }; }
3809 else
3810 ac_cv_path_EGREP=$EGREP
3816 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3817 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3818 EGREP="$ac_cv_path_EGREP"
3821 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3823 if test "${ac_cv_header_stdc+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 #include <stdlib.h>
3833 #include <stdarg.h>
3834 #include <string.h>
3835 #include <float.h>
3838 main ()
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (ac_try="$ac_compile"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_compile") 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3860 { (case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_try") 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_try") 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_header_stdc=yes
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_cv_header_stdc=no
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 if test $ac_cv_header_stdc = yes; then
3890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 #include <string.h>
3899 _ACEOF
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901 $EGREP "memchr" >/dev/null 2>&1; then
3903 else
3904 ac_cv_header_stdc=no
3906 rm -f conftest*
3910 if test $ac_cv_header_stdc = yes; then
3911 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <stdlib.h>
3920 _ACEOF
3921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922 $EGREP "free" >/dev/null 2>&1; then
3924 else
3925 ac_cv_header_stdc=no
3927 rm -f conftest*
3931 if test $ac_cv_header_stdc = yes; then
3932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3933 if test "$cross_compiling" = yes; then
3935 else
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 #include <ctype.h>
3943 #include <stdlib.h>
3944 #if ((' ' & 0x0FF) == 0x020)
3945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3947 #else
3948 # define ISLOWER(c) \
3949 (('a' <= (c) && (c) <= 'i') \
3950 || ('j' <= (c) && (c) <= 'r') \
3951 || ('s' <= (c) && (c) <= 'z'))
3952 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3953 #endif
3955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3957 main ()
3959 int i;
3960 for (i = 0; i < 256; i++)
3961 if (XOR (islower (i), ISLOWER (i))
3962 || toupper (i) != TOUPPER (i))
3963 return 2;
3964 return 0;
3966 _ACEOF
3967 rm -f conftest$ac_exeext
3968 if { (ac_try="$ac_link"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_link") 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3978 { (case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_try") 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3988 else
3989 echo "$as_me: program exited with status $ac_status" >&5
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 ( exit $ac_status )
3994 ac_cv_header_stdc=no
3996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4002 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4003 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4004 if test $ac_cv_header_stdc = yes; then
4006 cat >>confdefs.h <<\_ACEOF
4007 #define STDC_HEADERS 1
4008 _ACEOF
4012 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4022 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4023 inttypes.h stdint.h unistd.h
4025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 cat >conftest.$ac_ext <<_ACEOF
4032 /* confdefs.h. */
4033 _ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4037 $ac_includes_default
4039 #include <$ac_header>
4040 _ACEOF
4041 rm -f conftest.$ac_objext
4042 if { (ac_try="$ac_compile"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_compile") 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_try") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4075 eval "$as_ac_Header=yes"
4076 else
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4080 eval "$as_ac_Header=no"
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_res=`eval echo '${'$as_ac_Header'}'`
4086 { echo "$as_me:$LINENO: result: $ac_res" >&5
4087 echo "${ECHO_T}$ac_res" >&6; }
4088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4089 cat >>confdefs.h <<_ACEOF
4090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091 _ACEOF
4095 done
4098 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4099 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4100 if test "${ac_cv_c_bigendian+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 # See if sys/param.h defines the BYTE_ORDER macro.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <sys/types.h>
4111 #include <sys/param.h>
4114 main ()
4116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4117 bogus endian macros
4118 #endif
4121 return 0;
4123 _ACEOF
4124 rm -f conftest.$ac_objext
4125 if { (ac_try="$ac_compile"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_compile") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } &&
4138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 # It does; now see whether it defined to BIG_ENDIAN or not.
4159 cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165 #include <sys/types.h>
4166 #include <sys/param.h>
4169 main ()
4171 #if BYTE_ORDER != BIG_ENDIAN
4172 not big endian
4173 #endif
4176 return 0;
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_compile") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } &&
4193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_try") 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_cv_c_bigendian=yes
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 ac_cv_c_bigendian=no
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 # It does not; compile a test program.
4227 if test "$cross_compiling" = yes; then
4228 # try to guess the endianness by grepping values into an object file
4229 ac_cv_c_bigendian=unknown
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4237 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4238 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4239 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4240 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4241 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4243 main ()
4245 _ascii (); _ebcdic ();
4247 return 0;
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (ac_try="$ac_compile"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_compile") 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4285 ac_cv_c_bigendian=yes
4287 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4288 if test "$ac_cv_c_bigendian" = unknown; then
4289 ac_cv_c_bigendian=no
4290 else
4291 # finding both strings is unlikely to happen, but who knows?
4292 ac_cv_c_bigendian=unknown
4295 else
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 else
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 $ac_includes_default
4312 main ()
4315 /* Are we little or big endian? From Harbison&Steele. */
4316 union
4318 long int l;
4319 char c[sizeof (long int)];
4320 } u;
4321 u.l = 1;
4322 return u.c[sizeof (long int) - 1] == 1;
4325 return 0;
4327 _ACEOF
4328 rm -f conftest$ac_exeext
4329 if { (ac_try="$ac_link"
4330 case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_link") 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339 { (case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_try") 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_c_bigendian=no
4349 else
4350 echo "$as_me: program exited with status $ac_status" >&5
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 ( exit $ac_status )
4355 ac_cv_c_bigendian=yes
4357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4366 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4367 case $ac_cv_c_bigendian in
4368 yes)
4369 ENDIAN=big
4372 ENDIAN=little
4375 { { echo "$as_me:$LINENO: error: unknown endianness
4376 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4377 echo "$as_me: error: unknown endianness
4378 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4379 { (exit 1); exit 1; }; } ;;
4380 esac
4383 if test "$cross_compiling" = yes; then
4384 LLVM_CROSS_COMPILING=1
4387 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4388 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4389 if test "${ac_cv_build_exeext+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4393 ac_cv_build_exeext=.exe
4394 else
4395 ac_build_prefix=${build_alias}-
4397 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4398 set dummy ${ac_build_prefix}gcc; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if test -n "$BUILD_CC"; then
4405 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4418 done
4419 done
4420 IFS=$as_save_IFS
4424 BUILD_CC=$ac_cv_prog_BUILD_CC
4425 if test -n "$BUILD_CC"; then
4426 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4427 echo "${ECHO_T}$BUILD_CC" >&6; }
4428 else
4429 { echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6; }
4434 if test -z "$BUILD_CC"; then
4435 # Extract the first word of "gcc", so it can be a program name with args.
4436 set dummy gcc; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 if test -n "$BUILD_CC"; then
4443 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_BUILD_CC="gcc"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4456 done
4457 done
4458 IFS=$as_save_IFS
4462 BUILD_CC=$ac_cv_prog_BUILD_CC
4463 if test -n "$BUILD_CC"; then
4464 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4465 echo "${ECHO_T}$BUILD_CC" >&6; }
4466 else
4467 { echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6; }
4472 if test -z "$BUILD_CC"; then
4473 # Extract the first word of "cc", so it can be a program name with args.
4474 set dummy cc; ac_word=$2
4475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4477 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 if test -n "$BUILD_CC"; then
4481 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4482 else
4483 ac_prog_rejected=no
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4492 ac_prog_rejected=yes
4493 continue
4495 ac_cv_prog_BUILD_CC="cc"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4499 done
4500 done
4501 IFS=$as_save_IFS
4503 if test $ac_prog_rejected = yes; then
4504 # We found a bogon in the path, so make sure we never use it.
4505 set dummy $ac_cv_prog_BUILD_CC
4506 shift
4507 if test $# != 0; then
4508 # We chose a different compiler from the bogus one.
4509 # However, it has the same basename, so the bogon will be chosen
4510 # first if we set BUILD_CC to just the basename; use the full file name.
4511 shift
4512 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4517 BUILD_CC=$ac_cv_prog_BUILD_CC
4518 if test -n "$BUILD_CC"; then
4519 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4520 echo "${ECHO_T}$BUILD_CC" >&6; }
4521 else
4522 { echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6; }
4529 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4530 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4531 { (exit 1); exit 1; }; }
4532 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4533 rm -f conftest*
4534 echo 'int main () { return 0; }' > conftest.$ac_ext
4535 ac_cv_build_exeext=
4536 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4537 (eval $ac_build_link) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; then
4541 for file in conftest.*; do
4542 case $file in
4543 *.c | *.o | *.obj | *.dSYM) ;;
4544 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4545 esac
4546 done
4547 else
4548 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4549 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4550 { (exit 1); exit 1; }; }
4552 rm -f conftest*
4553 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4557 BUILD_EXEEXT=""
4558 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4559 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4560 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4561 ac_build_exeext=$BUILD_EXEEXT
4563 ac_build_prefix=${build_alias}-
4564 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4565 set dummy ${ac_build_prefix}g++; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if test -n "$BUILD_CXX"; then
4572 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4587 IFS=$as_save_IFS
4591 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4592 if test -n "$BUILD_CXX"; then
4593 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4594 echo "${ECHO_T}$BUILD_CXX" >&6; }
4595 else
4596 { echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6; }
4601 if test -z "$BUILD_CXX"; then
4602 # Extract the first word of "g++", so it can be a program name with args.
4603 set dummy g++; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 if test -n "$BUILD_CXX"; then
4610 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_BUILD_CXX="g++"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4630 if test -n "$BUILD_CXX"; then
4631 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4632 echo "${ECHO_T}$BUILD_CXX" >&6; }
4633 else
4634 { echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6; }
4639 if test -z "$BUILD_CXX"; then
4640 # Extract the first word of "c++", so it can be a program name with args.
4641 set dummy c++; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 if test -n "$BUILD_CXX"; then
4648 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4649 else
4650 ac_prog_rejected=no
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4659 ac_prog_rejected=yes
4660 continue
4662 ac_cv_prog_BUILD_CXX="c++"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4670 if test $ac_prog_rejected = yes; then
4671 # We found a bogon in the path, so make sure we never use it.
4672 set dummy $ac_cv_prog_BUILD_CXX
4673 shift
4674 if test $# != 0; then
4675 # We chose a different compiler from the bogus one.
4676 # However, it has the same basename, so the bogon will be chosen
4677 # first if we set BUILD_CXX to just the basename; use the full file name.
4678 shift
4679 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4684 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4685 if test -n "$BUILD_CXX"; then
4686 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4687 echo "${ECHO_T}$BUILD_CXX" >&6; }
4688 else
4689 { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4696 else
4697 LLVM_CROSS_COMPILING=0
4701 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4702 cvsbuild="yes"
4703 optimize="no"
4704 CVSBUILD=CVSBUILD=1
4706 else
4707 cvsbuild="no"
4708 optimize="yes"
4712 # Check whether --enable-optimized was given.
4713 if test "${enable_optimized+set}" = set; then
4714 enableval=$enable_optimized;
4715 else
4716 enableval=$optimize
4719 if test ${enableval} = "no" ; then
4720 ENABLE_OPTIMIZED=
4722 else
4723 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4727 # Check whether --enable-assertions was given.
4728 if test "${enable_assertions+set}" = set; then
4729 enableval=$enable_assertions;
4730 else
4731 enableval="yes"
4734 if test ${enableval} = "yes" ; then
4735 DISABLE_ASSERTIONS=
4737 else
4738 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4742 # Check whether --enable-expensive-checks was given.
4743 if test "${enable_expensive_checks+set}" = set; then
4744 enableval=$enable_expensive_checks;
4745 else
4746 enableval="no"
4749 if test ${enableval} = "yes" ; then
4750 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4752 EXPENSIVE_CHECKS=yes
4754 else
4755 ENABLE_EXPENSIVE_CHECKS=
4757 EXPENSIVE_CHECKS=no
4761 # Check whether --enable-debug-runtime was given.
4762 if test "${enable_debug_runtime+set}" = set; then
4763 enableval=$enable_debug_runtime;
4764 else
4765 enableval=no
4768 if test ${enableval} = "no" ; then
4769 DEBUG_RUNTIME=
4771 else
4772 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4776 # Check whether --enable-jit was given.
4777 if test "${enable_jit+set}" = set; then
4778 enableval=$enable_jit;
4779 else
4780 enableval=default
4783 if test ${enableval} = "no"
4784 then
4785 JIT=
4787 else
4788 case "$llvm_cv_target_arch" in
4789 x86) TARGET_HAS_JIT=1
4791 Sparc) TARGET_HAS_JIT=0
4793 PowerPC) TARGET_HAS_JIT=1
4795 x86_64) TARGET_HAS_JIT=1
4797 Alpha) TARGET_HAS_JIT=1
4799 IA64) TARGET_HAS_JIT=0
4801 ARM) TARGET_HAS_JIT=0
4803 Mips) TARGET_HAS_JIT=0
4805 PIC16) TARGET_HAS_JIT=0
4807 XCore) TARGET_HAS_JIT=0
4809 *) TARGET_HAS_JIT=0
4811 esac
4814 # Check whether --enable-doxygen was given.
4815 if test "${enable_doxygen+set}" = set; then
4816 enableval=$enable_doxygen;
4817 else
4818 enableval=default
4821 case "$enableval" in
4822 yes) ENABLE_DOXYGEN=1
4824 no) ENABLE_DOXYGEN=0
4826 default) ENABLE_DOXYGEN=0
4828 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4829 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4830 { (exit 1); exit 1; }; } ;;
4831 esac
4833 # Check whether --enable-threads was given.
4834 if test "${enable_threads+set}" = set; then
4835 enableval=$enable_threads;
4836 else
4837 enableval=default
4840 case "$enableval" in
4841 yes) ENABLE_THREADS=1
4843 no) ENABLE_THREADS=0
4845 default) ENABLE_THREADS=1
4847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4848 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4849 { (exit 1); exit 1; }; } ;;
4850 esac
4852 cat >>confdefs.h <<_ACEOF
4853 #define ENABLE_THREADS $ENABLE_THREADS
4854 _ACEOF
4857 # Check whether --enable-pic was given.
4858 if test "${enable_pic+set}" = set; then
4859 enableval=$enable_pic;
4860 else
4861 enableval=default
4864 case "$enableval" in
4865 yes) ENABLE_PIC=1
4867 no) ENABLE_PIC=0
4869 default) ENABLE_PIC=1
4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4872 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
4874 esac
4876 cat >>confdefs.h <<_ACEOF
4877 #define ENABLE_PIC $ENABLE_PIC
4878 _ACEOF
4881 TARGETS_TO_BUILD=""
4882 # Check whether --enable-targets was given.
4883 if test "${enable_targets+set}" = set; then
4884 enableval=$enable_targets;
4885 else
4886 enableval=all
4889 case "$enableval" in
4890 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4891 host-only)
4892 case "$llvm_cv_target_arch" in
4893 x86) TARGETS_TO_BUILD="X86" ;;
4894 x86_64) TARGETS_TO_BUILD="X86" ;;
4895 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4896 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4897 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4898 IA64) TARGETS_TO_BUILD="IA64" ;;
4899 ARM) TARGETS_TO_BUILD="ARM" ;;
4900 Mips) TARGETS_TO_BUILD="Mips" ;;
4901 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4902 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4903 XCore) TARGETS_TO_BUILD="XCore" ;;
4904 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4905 echo "$as_me: error: Can not set target to build" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4907 esac
4909 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4910 case "$a_target" in
4911 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4913 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4914 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4915 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4916 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4917 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4918 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4919 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4920 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4921 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4922 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4923 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4924 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4925 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4926 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4927 { (exit 1); exit 1; }; } ;;
4928 esac
4929 done
4931 esac
4932 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4935 # Check whether --enable-cbe-printf-a was given.
4936 if test "${enable_cbe_printf_a+set}" = set; then
4937 enableval=$enable_cbe_printf_a;
4938 else
4939 enableval=default
4942 case "$enableval" in
4943 yes) ENABLE_CBE_PRINTF_A=1
4945 no) ENABLE_CBE_PRINTF_A=0
4947 default) ENABLE_CBE_PRINTF_A=1
4949 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4950 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4951 { (exit 1); exit 1; }; } ;;
4952 esac
4954 cat >>confdefs.h <<_ACEOF
4955 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4956 _ACEOF
4960 # Check whether --with-llvmgccdir was given.
4961 if test "${with_llvmgccdir+set}" = set; then
4962 withval=$with_llvmgccdir;
4963 else
4964 withval=default
4967 case "$withval" in
4968 default) WITH_LLVMGCCDIR=default ;;
4969 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4970 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4971 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4972 { (exit 1); exit 1; }; } ;;
4973 esac
4976 # Check whether --with-llvmgcc was given.
4977 if test "${with_llvmgcc+set}" = set; then
4978 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4979 WITH_LLVMGCCDIR=""
4984 # Check whether --with-llvmgxx was given.
4985 if test "${with_llvmgxx+set}" = set; then
4986 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4987 WITH_LLVMGCCDIR=""
4991 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4992 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4993 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4994 { (exit 1); exit 1; }; };
4997 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4998 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4999 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5000 { (exit 1); exit 1; }; };
5004 # Check whether --with-extra-options was given.
5005 if test "${with_extra_options+set}" = set; then
5006 withval=$with_extra_options;
5007 else
5008 withval=default
5011 case "$withval" in
5012 default) EXTRA_OPTIONS= ;;
5013 *) EXTRA_OPTIONS=$withval ;;
5014 esac
5015 EXTRA_OPTIONS=$EXTRA_OPTIONS
5018 # Check whether --enable-bindings was given.
5019 if test "${enable_bindings+set}" = set; then
5020 enableval=$enable_bindings;
5021 else
5022 enableval=default
5025 BINDINGS_TO_BUILD=""
5026 case "$enableval" in
5027 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5028 all ) BINDINGS_TO_BUILD="ocaml" ;;
5029 none | no) BINDINGS_TO_BUILD="" ;;
5030 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5031 case "$a_binding" in
5032 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5033 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5034 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5035 { (exit 1); exit 1; }; } ;;
5036 esac
5037 done
5039 esac
5042 # Check whether --with-ocaml-libdir was given.
5043 if test "${with_ocaml_libdir+set}" = set; then
5044 withval=$with_ocaml_libdir;
5045 else
5046 withval=auto
5049 case "$withval" in
5050 auto) with_ocaml_libdir="$withval" ;;
5051 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5052 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5053 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5054 { (exit 1); exit 1; }; } ;;
5055 esac
5058 # Check whether --with-binutils-include was given.
5059 if test "${with_binutils_include+set}" = set; then
5060 withval=$with_binutils_include;
5061 else
5062 withval=default
5065 case "$withval" in
5066 default) WITH_BINUTILS_INCDIR=default ;;
5067 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5068 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5069 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5071 esac
5072 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5073 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5075 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5076 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5077 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5078 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5079 { (exit 1); exit 1; }; };
5084 ac_ext=c
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5090 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5091 # On Suns, sometimes $CPP names a directory.
5092 if test -n "$CPP" && test -d "$CPP"; then
5093 CPP=
5095 if test -z "$CPP"; then
5096 if test "${ac_cv_prog_CPP+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099 # Double quotes because CPP needs to be expanded
5100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5102 ac_preproc_ok=false
5103 for ac_c_preproc_warn_flag in '' yes
5105 # Use a header file that comes with gcc, so configuring glibc
5106 # with a fresh cross-compiler works.
5107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108 # <limits.h> exists even on freestanding compilers.
5109 # On the NeXT, cc -E runs the code through the compiler's parser,
5110 # not just through cpp. "Syntax error" is here to catch this case.
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 #ifdef __STDC__
5118 # include <limits.h>
5119 #else
5120 # include <assert.h>
5121 #endif
5122 Syntax error
5123 _ACEOF
5124 if { (ac_try="$ac_cpp conftest.$ac_ext"
5125 case "(($ac_try" in
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5128 esac
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_c_preproc_warn_flag
5139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5140 else
5141 ac_cpp_err=
5143 else
5144 ac_cpp_err=yes
5146 if test -z "$ac_cpp_err"; then
5148 else
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 # Broken: fails on valid input.
5153 continue
5156 rm -f conftest.err conftest.$ac_ext
5158 # OK, works on sane cases. Now check whether nonexistent headers
5159 # can be detected and how.
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 #include <ac_nonexistent.h>
5167 _ACEOF
5168 if { (ac_try="$ac_cpp conftest.$ac_ext"
5169 case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5172 esac
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } >/dev/null; then
5181 if test -s conftest.err; then
5182 ac_cpp_err=$ac_c_preproc_warn_flag
5183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5184 else
5185 ac_cpp_err=
5187 else
5188 ac_cpp_err=yes
5190 if test -z "$ac_cpp_err"; then
5191 # Broken: success on invalid input.
5192 continue
5193 else
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 # Passes both tests.
5198 ac_preproc_ok=:
5199 break
5202 rm -f conftest.err conftest.$ac_ext
5204 done
5205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5206 rm -f conftest.err conftest.$ac_ext
5207 if $ac_preproc_ok; then
5208 break
5211 done
5212 ac_cv_prog_CPP=$CPP
5215 CPP=$ac_cv_prog_CPP
5216 else
5217 ac_cv_prog_CPP=$CPP
5219 { echo "$as_me:$LINENO: result: $CPP" >&5
5220 echo "${ECHO_T}$CPP" >&6; }
5221 ac_preproc_ok=false
5222 for ac_c_preproc_warn_flag in '' yes
5224 # Use a header file that comes with gcc, so configuring glibc
5225 # with a fresh cross-compiler works.
5226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 # <limits.h> exists even on freestanding compilers.
5228 # On the NeXT, cc -E runs the code through the compiler's parser,
5229 # not just through cpp. "Syntax error" is here to catch this case.
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #ifdef __STDC__
5237 # include <limits.h>
5238 #else
5239 # include <assert.h>
5240 #endif
5241 Syntax error
5242 _ACEOF
5243 if { (ac_try="$ac_cpp conftest.$ac_ext"
5244 case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247 esac
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } >/dev/null; then
5256 if test -s conftest.err; then
5257 ac_cpp_err=$ac_c_preproc_warn_flag
5258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5259 else
5260 ac_cpp_err=
5262 else
5263 ac_cpp_err=yes
5265 if test -z "$ac_cpp_err"; then
5267 else
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5271 # Broken: fails on valid input.
5272 continue
5275 rm -f conftest.err conftest.$ac_ext
5277 # OK, works on sane cases. Now check whether nonexistent headers
5278 # can be detected and how.
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <ac_nonexistent.h>
5286 _ACEOF
5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null; then
5300 if test -s conftest.err; then
5301 ac_cpp_err=$ac_c_preproc_warn_flag
5302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5303 else
5304 ac_cpp_err=
5306 else
5307 ac_cpp_err=yes
5309 if test -z "$ac_cpp_err"; then
5310 # Broken: success on invalid input.
5311 continue
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 # Passes both tests.
5317 ac_preproc_ok=:
5318 break
5321 rm -f conftest.err conftest.$ac_ext
5323 done
5324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5325 rm -f conftest.err conftest.$ac_ext
5326 if $ac_preproc_ok; then
5328 else
5329 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5330 See \`config.log' for more details." >&5
5331 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5332 See \`config.log' for more details." >&2;}
5333 { (exit 1); exit 1; }; }
5336 ac_ext=c
5337 ac_cpp='$CPP $CPPFLAGS'
5338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342 ac_ext=c
5343 ac_cpp='$CPP $CPPFLAGS'
5344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347 if test -n "$ac_tool_prefix"; then
5348 for ac_prog in gcc
5350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5354 if test "${ac_cv_prog_CC+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357 if test -n "$CC"; then
5358 ac_cv_prog_CC="$CC" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5371 done
5372 done
5373 IFS=$as_save_IFS
5377 CC=$ac_cv_prog_CC
5378 if test -n "$CC"; then
5379 { echo "$as_me:$LINENO: result: $CC" >&5
5380 echo "${ECHO_T}$CC" >&6; }
5381 else
5382 { echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6; }
5387 test -n "$CC" && break
5388 done
5390 if test -z "$CC"; then
5391 ac_ct_CC=$CC
5392 for ac_prog in gcc
5394 # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 if test -n "$ac_ct_CC"; then
5402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_ac_ct_CC="$ac_prog"
5412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5417 IFS=$as_save_IFS
5421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5422 if test -n "$ac_ct_CC"; then
5423 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5424 echo "${ECHO_T}$ac_ct_CC" >&6; }
5425 else
5426 { echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6; }
5431 test -n "$ac_ct_CC" && break
5432 done
5434 if test "x$ac_ct_CC" = x; then
5435 CC=""
5436 else
5437 case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5440 whose name does not start with the host triplet. If you think this
5441 configuration is useful to you, please write to autoconf@gnu.org." >&5
5442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5445 ac_tool_warned=yes ;;
5446 esac
5447 CC=$ac_ct_CC
5452 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5453 See \`config.log' for more details." >&5
5454 echo "$as_me: error: no acceptable C compiler found in \$PATH
5455 See \`config.log' for more details." >&2;}
5456 { (exit 1); exit 1; }; }
5458 # Provide some information about the compiler.
5459 echo "$as_me:$LINENO: checking for C compiler version" >&5
5460 ac_compiler=`set X $ac_compile; echo $2`
5461 { (ac_try="$ac_compiler --version >&5"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compiler --version >&5") 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }
5471 { (ac_try="$ac_compiler -v >&5"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compiler -v >&5") 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }
5481 { (ac_try="$ac_compiler -V >&5"
5482 case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compiler -V >&5") 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }
5492 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5493 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5494 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5505 main ()
5507 #ifndef __GNUC__
5508 choke me
5509 #endif
5512 return 0;
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (ac_try="$ac_compile"
5517 case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_compile") 2>conftest.er1
5523 ac_status=$?
5524 grep -v '^ *+' conftest.er1 >conftest.err
5525 rm -f conftest.er1
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } &&
5529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5530 { (case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_try") 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_try") 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_compiler_gnu=yes
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 ac_compiler_gnu=no
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5561 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5562 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5563 GCC=`test $ac_compiler_gnu = yes && echo yes`
5564 ac_test_CFLAGS=${CFLAGS+set}
5565 ac_save_CFLAGS=$CFLAGS
5566 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5567 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5568 if test "${ac_cv_prog_cc_g+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 ac_save_c_werror_flag=$ac_c_werror_flag
5572 ac_c_werror_flag=yes
5573 ac_cv_prog_cc_g=no
5574 CFLAGS="-g"
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5583 main ()
5587 return 0;
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5592 case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5598 ac_status=$?
5599 grep -v '^ *+' conftest.er1 >conftest.err
5600 rm -f conftest.er1
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try='test -s conftest.$ac_objext'
5615 { (case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_prog_cc_g=yes
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 CFLAGS=""
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5638 main ()
5642 return 0;
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5647 case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_compile") 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5660 { (case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_c_werror_flag=$ac_save_c_werror_flag
5685 CFLAGS="-g"
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5694 main ()
5698 return 0;
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (ac_try="$ac_compile"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compile") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_try") 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_try") 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5735 ac_cv_prog_cc_g=yes
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 ac_c_werror_flag=$ac_save_c_werror_flag
5752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5753 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5754 if test "$ac_test_CFLAGS" = set; then
5755 CFLAGS=$ac_save_CFLAGS
5756 elif test $ac_cv_prog_cc_g = yes; then
5757 if test "$GCC" = yes; then
5758 CFLAGS="-g -O2"
5759 else
5760 CFLAGS="-g"
5762 else
5763 if test "$GCC" = yes; then
5764 CFLAGS="-O2"
5765 else
5766 CFLAGS=
5769 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5770 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5771 if test "${ac_cv_prog_cc_c89+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774 ac_cv_prog_cc_c89=no
5775 ac_save_CC=$CC
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #include <stdarg.h>
5783 #include <stdio.h>
5784 #include <sys/types.h>
5785 #include <sys/stat.h>
5786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5787 struct buf { int x; };
5788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5789 static char *e (p, i)
5790 char **p;
5791 int i;
5793 return p[i];
5795 static char *f (char * (*g) (char **, int), char **p, ...)
5797 char *s;
5798 va_list v;
5799 va_start (v,p);
5800 s = g (p, va_arg (v,int));
5801 va_end (v);
5802 return s;
5805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5806 function prototypes and stuff, but not '\xHH' hex character constants.
5807 These don't provoke an error unfortunately, instead are silently treated
5808 as 'x'. The following induces an error, until -std is added to get
5809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5810 array size at least. It's necessary to write '\x00'==0 to get something
5811 that's true only with -std. */
5812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5815 inside strings and character constants. */
5816 #define FOO(x) 'x'
5817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5819 int test (int i, double x);
5820 struct s1 {int (*f) (int a);};
5821 struct s2 {int (*f) (double a);};
5822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5823 int argc;
5824 char **argv;
5826 main ()
5828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5830 return 0;
5832 _ACEOF
5833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5836 CC="$ac_save_CC $ac_arg"
5837 rm -f conftest.$ac_objext
5838 if { (ac_try="$ac_compile"
5839 case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_compile") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5852 { (case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_try") 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; } &&
5861 { ac_try='test -s conftest.$ac_objext'
5862 { (case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_try") 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 ac_cv_prog_cc_c89=$ac_arg
5872 else
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5879 rm -f core conftest.err conftest.$ac_objext
5880 test "x$ac_cv_prog_cc_c89" != "xno" && break
5881 done
5882 rm -f conftest.$ac_ext
5883 CC=$ac_save_CC
5886 # AC_CACHE_VAL
5887 case "x$ac_cv_prog_cc_c89" in
5889 { echo "$as_me:$LINENO: result: none needed" >&5
5890 echo "${ECHO_T}none needed" >&6; } ;;
5891 xno)
5892 { echo "$as_me:$LINENO: result: unsupported" >&5
5893 echo "${ECHO_T}unsupported" >&6; } ;;
5895 CC="$CC $ac_cv_prog_cc_c89"
5896 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5897 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5898 esac
5901 ac_ext=c
5902 ac_cpp='$CPP $CPPFLAGS'
5903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907 ac_ext=cpp
5908 ac_cpp='$CXXCPP $CPPFLAGS'
5909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5912 if test -z "$CXX"; then
5913 if test -n "$CCC"; then
5914 CXX=$CCC
5915 else
5916 if test -n "$ac_tool_prefix"; then
5917 for ac_prog in g++
5919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_prog_CXX+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 if test -n "$CXX"; then
5927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5940 done
5941 done
5942 IFS=$as_save_IFS
5946 CXX=$ac_cv_prog_CXX
5947 if test -n "$CXX"; then
5948 { echo "$as_me:$LINENO: result: $CXX" >&5
5949 echo "${ECHO_T}$CXX" >&6; }
5950 else
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 test -n "$CXX" && break
5957 done
5959 if test -z "$CXX"; then
5960 ac_ct_CXX=$CXX
5961 for ac_prog in g++
5963 # Extract the first word of "$ac_prog", so it can be a program name with args.
5964 set dummy $ac_prog; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 if test -n "$ac_ct_CXX"; then
5971 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_prog_ac_ct_CXX="$ac_prog"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5984 done
5985 done
5986 IFS=$as_save_IFS
5990 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5991 if test -n "$ac_ct_CXX"; then
5992 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5993 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5994 else
5995 { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
6000 test -n "$ac_ct_CXX" && break
6001 done
6003 if test "x$ac_ct_CXX" = x; then
6004 CXX="g++"
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007 yes:)
6008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6009 whose name does not start with the host triplet. If you think this
6010 configuration is useful to you, please write to autoconf@gnu.org." >&5
6011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6012 whose name does not start with the host triplet. If you think this
6013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6014 ac_tool_warned=yes ;;
6015 esac
6016 CXX=$ac_ct_CXX
6022 # Provide some information about the compiler.
6023 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6024 ac_compiler=`set X $ac_compile; echo $2`
6025 { (ac_try="$ac_compiler --version >&5"
6026 case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_compiler --version >&5") 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }
6035 { (ac_try="$ac_compiler -v >&5"
6036 case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039 esac
6040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_compiler -v >&5") 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }
6045 { (ac_try="$ac_compiler -V >&5"
6046 case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compiler -V >&5") 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }
6056 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6057 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6058 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6069 main ()
6071 #ifndef __GNUC__
6072 choke me
6073 #endif
6076 return 0;
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (ac_try="$ac_compile"
6081 case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084 esac
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6094 { (case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_try") 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; } &&
6103 { ac_try='test -s conftest.$ac_objext'
6104 { (case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_try") 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_compiler_gnu=yes
6114 else
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 ac_compiler_gnu=no
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6125 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6126 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6127 GXX=`test $ac_compiler_gnu = yes && echo yes`
6128 ac_test_CXXFLAGS=${CXXFLAGS+set}
6129 ac_save_CXXFLAGS=$CXXFLAGS
6130 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6131 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6132 if test "${ac_cv_prog_cxx_g+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6136 ac_cxx_werror_flag=yes
6137 ac_cv_prog_cxx_g=no
6138 CXXFLAGS="-g"
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6147 main ()
6151 return 0;
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (ac_try="$ac_compile"
6156 case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest.$ac_objext'
6179 { (case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6182 esac
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_try") 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_prog_cxx_g=yes
6189 else
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 CXXFLAGS=""
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6202 main ()
6206 return 0;
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (ac_try="$ac_compile"
6211 case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_compile") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6224 { (case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227 esac
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_try") 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6249 CXXFLAGS="-g"
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6258 main ()
6262 return 0;
6264 _ACEOF
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6267 case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compile") 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6280 { (case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283 esac
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_try") 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6293 esac
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_try") 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_prog_cxx_g=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6317 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6318 if test "$ac_test_CXXFLAGS" = set; then
6319 CXXFLAGS=$ac_save_CXXFLAGS
6320 elif test $ac_cv_prog_cxx_g = yes; then
6321 if test "$GXX" = yes; then
6322 CXXFLAGS="-g -O2"
6323 else
6324 CXXFLAGS="-g"
6326 else
6327 if test "$GXX" = yes; then
6328 CXXFLAGS="-O2"
6329 else
6330 CXXFLAGS=
6333 ac_ext=c
6334 ac_cpp='$CPP $CPPFLAGS'
6335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6341 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6342 if test "${lt_cv_path_NM+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 if test -n "$NM"; then
6346 # Let the user override the test.
6347 lt_cv_path_NM="$NM"
6348 else
6349 lt_nm_to_check="${ac_tool_prefix}nm"
6350 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6351 lt_nm_to_check="$lt_nm_to_check nm"
6353 for lt_tmp_nm in $lt_nm_to_check; do
6354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6355 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6356 IFS="$lt_save_ifs"
6357 test -z "$ac_dir" && ac_dir=.
6358 tmp_nm="$ac_dir/$lt_tmp_nm"
6359 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6360 # Check to see if the nm accepts a BSD-compat flag.
6361 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6362 # nm: unknown option "B" ignored
6363 # Tru64's nm complains that /dev/null is an invalid object file
6364 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6365 */dev/null* | *'Invalid file or object type'*)
6366 lt_cv_path_NM="$tmp_nm -B"
6367 break
6370 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6371 */dev/null*)
6372 lt_cv_path_NM="$tmp_nm -p"
6373 break
6376 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6377 continue # so that we can try to find one that supports BSD flags
6379 esac
6381 esac
6383 done
6384 IFS="$lt_save_ifs"
6385 done
6386 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6389 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6390 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6391 NM="$lt_cv_path_NM"
6395 { echo "$as_me:$LINENO: checking for GNU make" >&5
6396 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6397 if test "${llvm_cv_gnu_make_command+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 llvm_cv_gnu_make_command=''
6401 for a in "$MAKE" make gmake gnumake ; do
6402 if test -z "$a" ; then continue ; fi ;
6403 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6404 then
6405 llvm_cv_gnu_make_command=$a ;
6406 break;
6408 done
6410 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6411 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6412 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6413 ifGNUmake='' ;
6414 else
6415 ifGNUmake='#' ;
6416 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6417 echo "${ECHO_T}\"Not found\"" >&6; };
6421 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6422 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6423 LN_S=$as_ln_s
6424 if test "$LN_S" = "ln -s"; then
6425 { echo "$as_me:$LINENO: result: yes" >&5
6426 echo "${ECHO_T}yes" >&6; }
6427 else
6428 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6429 echo "${ECHO_T}no, using $LN_S" >&6; }
6432 # Extract the first word of "cmp", so it can be a program name with args.
6433 set dummy cmp; ac_word=$2
6434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436 if test "${ac_cv_path_CMP+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 case $CMP in
6440 [\\/]* | ?:[\\/]*)
6441 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6455 done
6456 done
6457 IFS=$as_save_IFS
6459 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6461 esac
6463 CMP=$ac_cv_path_CMP
6464 if test -n "$CMP"; then
6465 { echo "$as_me:$LINENO: result: $CMP" >&5
6466 echo "${ECHO_T}$CMP" >&6; }
6467 else
6468 { echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6; }
6473 # Extract the first word of "cp", so it can be a program name with args.
6474 set dummy cp; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_path_CP+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 case $CP in
6481 [\\/]* | ?:[\\/]*)
6482 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6498 IFS=$as_save_IFS
6500 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6502 esac
6504 CP=$ac_cv_path_CP
6505 if test -n "$CP"; then
6506 { echo "$as_me:$LINENO: result: $CP" >&5
6507 echo "${ECHO_T}$CP" >&6; }
6508 else
6509 { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6514 # Extract the first word of "date", so it can be a program name with args.
6515 set dummy date; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_path_DATE+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 case $DATE in
6522 [\\/]* | ?:[\\/]*)
6523 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6537 done
6538 done
6539 IFS=$as_save_IFS
6541 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6543 esac
6545 DATE=$ac_cv_path_DATE
6546 if test -n "$DATE"; then
6547 { echo "$as_me:$LINENO: result: $DATE" >&5
6548 echo "${ECHO_T}$DATE" >&6; }
6549 else
6550 { echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6; }
6555 # Extract the first word of "find", so it can be a program name with args.
6556 set dummy find; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_path_FIND+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 case $FIND in
6563 [\\/]* | ?:[\\/]*)
6564 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6578 done
6579 done
6580 IFS=$as_save_IFS
6582 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6584 esac
6586 FIND=$ac_cv_path_FIND
6587 if test -n "$FIND"; then
6588 { echo "$as_me:$LINENO: result: $FIND" >&5
6589 echo "${ECHO_T}$FIND" >&6; }
6590 else
6591 { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6596 # Extract the first word of "grep", so it can be a program name with args.
6597 set dummy grep; ac_word=$2
6598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600 if test "${ac_cv_path_GREP+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603 case $GREP in
6604 [\\/]* | ?:[\\/]*)
6605 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6619 done
6620 done
6621 IFS=$as_save_IFS
6623 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6625 esac
6627 GREP=$ac_cv_path_GREP
6628 if test -n "$GREP"; then
6629 { echo "$as_me:$LINENO: result: $GREP" >&5
6630 echo "${ECHO_T}$GREP" >&6; }
6631 else
6632 { echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6; }
6637 # Extract the first word of "mkdir", so it can be a program name with args.
6638 set dummy mkdir; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_path_MKDIR+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 case $MKDIR in
6645 [\\/]* | ?:[\\/]*)
6646 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6660 done
6661 done
6662 IFS=$as_save_IFS
6664 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6666 esac
6668 MKDIR=$ac_cv_path_MKDIR
6669 if test -n "$MKDIR"; then
6670 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6671 echo "${ECHO_T}$MKDIR" >&6; }
6672 else
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6678 # Extract the first word of "mv", so it can be a program name with args.
6679 set dummy mv; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_path_MV+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 case $MV in
6686 [\\/]* | ?:[\\/]*)
6687 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6705 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6707 esac
6709 MV=$ac_cv_path_MV
6710 if test -n "$MV"; then
6711 { echo "$as_me:$LINENO: result: $MV" >&5
6712 echo "${ECHO_T}$MV" >&6; }
6713 else
6714 { echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6; }
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_RANLIB+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 if test -n "$RANLIB"; then
6728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6741 done
6742 done
6743 IFS=$as_save_IFS
6747 RANLIB=$ac_cv_prog_RANLIB
6748 if test -n "$RANLIB"; then
6749 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6750 echo "${ECHO_T}$RANLIB" >&6; }
6751 else
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6758 if test -z "$ac_cv_prog_RANLIB"; then
6759 ac_ct_RANLIB=$RANLIB
6760 # Extract the first word of "ranlib", so it can be a program name with args.
6761 set dummy ranlib; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 if test -n "$ac_ct_RANLIB"; then
6768 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_RANLIB="ranlib"
6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6781 done
6782 done
6783 IFS=$as_save_IFS
6787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6788 if test -n "$ac_ct_RANLIB"; then
6789 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6790 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6791 else
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6796 if test "x$ac_ct_RANLIB" = x; then
6797 RANLIB=":"
6798 else
6799 case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet. If you think this
6803 configuration is useful to you, please write to autoconf@gnu.org." >&5
6804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet. If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809 RANLIB=$ac_ct_RANLIB
6811 else
6812 RANLIB="$ac_cv_prog_RANLIB"
6815 # Extract the first word of "rm", so it can be a program name with args.
6816 set dummy rm; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_path_RM+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 case $RM in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6838 done
6839 done
6840 IFS=$as_save_IFS
6842 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6844 esac
6846 RM=$ac_cv_path_RM
6847 if test -n "$RM"; then
6848 { echo "$as_me:$LINENO: result: $RM" >&5
6849 echo "${ECHO_T}$RM" >&6; }
6850 else
6851 { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6856 # Extract the first word of "sed", so it can be a program name with args.
6857 set dummy sed; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_path_SED+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 case $SED in
6864 [\\/]* | ?:[\\/]*)
6865 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6879 done
6880 done
6881 IFS=$as_save_IFS
6883 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6885 esac
6887 SED=$ac_cv_path_SED
6888 if test -n "$SED"; then
6889 { echo "$as_me:$LINENO: result: $SED" >&5
6890 echo "${ECHO_T}$SED" >&6; }
6891 else
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6897 # Extract the first word of "tar", so it can be a program name with args.
6898 set dummy tar; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_path_TAR+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904 case $TAR in
6905 [\\/]* | ?:[\\/]*)
6906 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6920 done
6921 done
6922 IFS=$as_save_IFS
6924 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6926 esac
6928 TAR=$ac_cv_path_TAR
6929 if test -n "$TAR"; then
6930 { echo "$as_me:$LINENO: result: $TAR" >&5
6931 echo "${ECHO_T}$TAR" >&6; }
6932 else
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6938 # Extract the first word of "pwd", so it can be a program name with args.
6939 set dummy pwd; ac_word=$2
6940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942 if test "${ac_cv_path_BINPWD+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 case $BINPWD in
6946 [\\/]* | ?:[\\/]*)
6947 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6961 done
6962 done
6963 IFS=$as_save_IFS
6965 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6967 esac
6969 BINPWD=$ac_cv_path_BINPWD
6970 if test -n "$BINPWD"; then
6971 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6972 echo "${ECHO_T}$BINPWD" >&6; }
6973 else
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6980 # Extract the first word of "Graphviz", so it can be a program name with args.
6981 set dummy Graphviz; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 case $GRAPHVIZ in
6988 [\\/]* | ?:[\\/]*)
6989 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7003 done
7004 done
7005 IFS=$as_save_IFS
7007 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7009 esac
7011 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7012 if test -n "$GRAPHVIZ"; then
7013 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7014 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7015 else
7016 { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7021 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_GRAPHVIZ 1
7025 _ACEOF
7027 if test "$llvm_cv_os_type" = "MingW" ; then
7028 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7031 cat >>confdefs.h <<_ACEOF
7032 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7033 _ACEOF
7036 # Extract the first word of "dot", so it can be a program name with args.
7037 set dummy dot; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_DOT+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043 case $DOT in
7044 [\\/]* | ?:[\\/]*)
7045 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7063 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7065 esac
7067 DOT=$ac_cv_path_DOT
7068 if test -n "$DOT"; then
7069 { echo "$as_me:$LINENO: result: $DOT" >&5
7070 echo "${ECHO_T}$DOT" >&6; }
7071 else
7072 { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7077 if test "$DOT" != "echo dot" ; then
7079 cat >>confdefs.h <<\_ACEOF
7080 #define HAVE_DOT 1
7081 _ACEOF
7083 if test "$llvm_cv_os_type" = "MingW" ; then
7084 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7087 cat >>confdefs.h <<_ACEOF
7088 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7089 _ACEOF
7092 for ac_prog in gv gsview32
7094 # Extract the first word of "$ac_prog", so it can be a program name with args.
7095 set dummy $ac_prog; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_path_GV+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 case $GV in
7102 [\\/]* | ?:[\\/]*)
7103 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7117 done
7118 done
7119 IFS=$as_save_IFS
7122 esac
7124 GV=$ac_cv_path_GV
7125 if test -n "$GV"; then
7126 { echo "$as_me:$LINENO: result: $GV" >&5
7127 echo "${ECHO_T}$GV" >&6; }
7128 else
7129 { echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6; }
7134 test -n "$GV" && break
7135 done
7136 test -n "$GV" || GV="echo gv"
7138 if test "$GV" != "echo gv" ; then
7140 cat >>confdefs.h <<\_ACEOF
7141 #define HAVE_GV 1
7142 _ACEOF
7144 if test "$llvm_cv_os_type" = "MingW" ; then
7145 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7148 cat >>confdefs.h <<_ACEOF
7149 #define LLVM_PATH_GV "$GV${EXEEXT}"
7150 _ACEOF
7153 # Extract the first word of "dotty", so it can be a program name with args.
7154 set dummy dotty; ac_word=$2
7155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157 if test "${ac_cv_path_DOTTY+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 case $DOTTY in
7161 [\\/]* | ?:[\\/]*)
7162 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7176 done
7177 done
7178 IFS=$as_save_IFS
7180 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7182 esac
7184 DOTTY=$ac_cv_path_DOTTY
7185 if test -n "$DOTTY"; then
7186 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7187 echo "${ECHO_T}$DOTTY" >&6; }
7188 else
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7194 if test "$DOTTY" != "echo dotty" ; then
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_DOTTY 1
7198 _ACEOF
7200 if test "$llvm_cv_os_type" = "MingW" ; then
7201 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7204 cat >>confdefs.h <<_ACEOF
7205 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7206 _ACEOF
7211 # Extract the first word of "perl", so it can be a program name with args.
7212 set dummy perl; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_PERL+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218 case $PERL in
7219 [\\/]* | ?:[\\/]*)
7220 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7234 done
7235 done
7236 IFS=$as_save_IFS
7238 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7240 esac
7242 PERL=$ac_cv_path_PERL
7243 if test -n "$PERL"; then
7244 { echo "$as_me:$LINENO: result: $PERL" >&5
7245 echo "${ECHO_T}$PERL" >&6; }
7246 else
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7252 if test "$PERL" != "none"; then
7253 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7254 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7255 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7256 { echo "$as_me:$LINENO: result: yes" >&5
7257 echo "${ECHO_T}yes" >&6; }
7258 else
7259 PERL=none
7260 { echo "$as_me:$LINENO: result: not found" >&5
7261 echo "${ECHO_T}not found" >&6; }
7266 if test x"$PERL" = xnone; then
7267 HAVE_PERL=0
7269 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7270 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7271 { (exit 1); exit 1; }; }
7272 else
7273 HAVE_PERL=1
7277 # Find a good install program. We prefer a C program (faster),
7278 # so one script is as good as another. But avoid the broken or
7279 # incompatible versions:
7280 # SysV /etc/install, /usr/sbin/install
7281 # SunOS /usr/etc/install
7282 # IRIX /sbin/install
7283 # AIX /bin/install
7284 # AmigaOS /C/install, which installs bootblocks on floppy discs
7285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7288 # OS/2's system install, which has a completely different semantic
7289 # ./install, which can be erroneously created by make from ./install.sh.
7290 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7291 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7292 if test -z "$INSTALL"; then
7293 if test "${ac_cv_path_install+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 # Account for people who put trailing slashes in PATH elements.
7302 case $as_dir/ in
7303 ./ | .// | /cC/* | \
7304 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7305 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7306 /usr/ucb/* ) ;;
7308 # OSF1 and SCO ODT 3.0 have their own names for install.
7309 # Don't use installbsd from OSF since it installs stuff as root
7310 # by default.
7311 for ac_prog in ginstall scoinst install; do
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7314 if test $ac_prog = install &&
7315 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7316 # AIX install. It has an incompatible calling convention.
7318 elif test $ac_prog = install &&
7319 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7320 # program-specific install script used by HP pwplus--don't use.
7322 else
7323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7324 break 3
7327 done
7328 done
7330 esac
7331 done
7332 IFS=$as_save_IFS
7336 if test "${ac_cv_path_install+set}" = set; then
7337 INSTALL=$ac_cv_path_install
7338 else
7339 # As a last resort, use the slow shell script. Don't cache a
7340 # value for INSTALL within a source directory, because that will
7341 # break other packages using the cache if that directory is
7342 # removed, or if the value is a relative name.
7343 INSTALL=$ac_install_sh
7346 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7347 echo "${ECHO_T}$INSTALL" >&6; }
7349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7350 # It thinks the first close brace ends the variable substitution.
7351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7358 # Extract the first word of "bzip2", so it can be a program name with args.
7359 set dummy bzip2; ac_word=$2
7360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7362 if test "${ac_cv_path_BZIP2+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 case $BZIP2 in
7366 [\\/]* | ?:[\\/]*)
7367 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7383 IFS=$as_save_IFS
7386 esac
7388 BZIP2=$ac_cv_path_BZIP2
7389 if test -n "$BZIP2"; then
7390 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7391 echo "${ECHO_T}$BZIP2" >&6; }
7392 else
7393 { echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6; }
7398 # Extract the first word of "doxygen", so it can be a program name with args.
7399 set dummy doxygen; ac_word=$2
7400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 case $DOXYGEN in
7406 [\\/]* | ?:[\\/]*)
7407 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7421 done
7422 done
7423 IFS=$as_save_IFS
7426 esac
7428 DOXYGEN=$ac_cv_path_DOXYGEN
7429 if test -n "$DOXYGEN"; then
7430 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7431 echo "${ECHO_T}$DOXYGEN" >&6; }
7432 else
7433 { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7438 # Extract the first word of "groff", so it can be a program name with args.
7439 set dummy groff; ac_word=$2
7440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7442 if test "${ac_cv_path_GROFF+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 case $GROFF in
7446 [\\/]* | ?:[\\/]*)
7447 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7461 done
7462 done
7463 IFS=$as_save_IFS
7466 esac
7468 GROFF=$ac_cv_path_GROFF
7469 if test -n "$GROFF"; then
7470 { echo "$as_me:$LINENO: result: $GROFF" >&5
7471 echo "${ECHO_T}$GROFF" >&6; }
7472 else
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7478 # Extract the first word of "gzip", so it can be a program name with args.
7479 set dummy gzip; ac_word=$2
7480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482 if test "${ac_cv_path_GZIP+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 case $GZIP in
7486 [\\/]* | ?:[\\/]*)
7487 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7501 done
7502 done
7503 IFS=$as_save_IFS
7506 esac
7508 GZIP=$ac_cv_path_GZIP
7509 if test -n "$GZIP"; then
7510 { echo "$as_me:$LINENO: result: $GZIP" >&5
7511 echo "${ECHO_T}$GZIP" >&6; }
7512 else
7513 { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7518 # Extract the first word of "pod2html", so it can be a program name with args.
7519 set dummy pod2html; ac_word=$2
7520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522 if test "${ac_cv_path_POD2HTML+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 case $POD2HTML in
7526 [\\/]* | ?:[\\/]*)
7527 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7541 done
7542 done
7543 IFS=$as_save_IFS
7546 esac
7548 POD2HTML=$ac_cv_path_POD2HTML
7549 if test -n "$POD2HTML"; then
7550 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7551 echo "${ECHO_T}$POD2HTML" >&6; }
7552 else
7553 { echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6; }
7558 # Extract the first word of "pod2man", so it can be a program name with args.
7559 set dummy pod2man; ac_word=$2
7560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562 if test "${ac_cv_path_POD2MAN+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 case $POD2MAN in
7566 [\\/]* | ?:[\\/]*)
7567 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7581 done
7582 done
7583 IFS=$as_save_IFS
7586 esac
7588 POD2MAN=$ac_cv_path_POD2MAN
7589 if test -n "$POD2MAN"; then
7590 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7591 echo "${ECHO_T}$POD2MAN" >&6; }
7592 else
7593 { echo "$as_me:$LINENO: result: no" >&5
7594 echo "${ECHO_T}no" >&6; }
7598 # Extract the first word of "runtest", so it can be a program name with args.
7599 set dummy runtest; ac_word=$2
7600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602 if test "${ac_cv_path_RUNTEST+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605 case $RUNTEST in
7606 [\\/]* | ?:[\\/]*)
7607 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7623 IFS=$as_save_IFS
7626 esac
7628 RUNTEST=$ac_cv_path_RUNTEST
7629 if test -n "$RUNTEST"; then
7630 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7631 echo "${ECHO_T}$RUNTEST" >&6; }
7632 else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7639 no_itcl=true
7640 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7641 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7643 # Check whether --with-tclinclude was given.
7644 if test "${with_tclinclude+set}" = set; then
7645 withval=$with_tclinclude; with_tclinclude=${withval}
7646 else
7647 with_tclinclude=''
7650 if test "${ac_cv_path_tclsh+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7654 if test x"${with_tclinclude}" != x ; then
7655 if test -f ${with_tclinclude}/tclsh ; then
7656 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7657 elif test -f ${with_tclinclude}/src/tclsh ; then
7658 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7659 else
7660 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7661 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7662 { (exit 1); exit 1; }; }
7666 if test x"${ac_cv_path_tclsh}" = x ; then
7667 { echo "$as_me:$LINENO: result: none" >&5
7668 echo "${ECHO_T}none" >&6; }
7669 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
7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_TCLSH+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678 case $TCLSH in
7679 [\\/]* | ?:[\\/]*)
7680 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7694 done
7695 done
7696 IFS=$as_save_IFS
7699 esac
7701 TCLSH=$ac_cv_path_TCLSH
7702 if test -n "$TCLSH"; then
7703 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7704 echo "${ECHO_T}$TCLSH" >&6; }
7705 else
7706 { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7711 test -n "$TCLSH" && break
7712 done
7714 if test x"${TCLSH}" = x ; then
7715 ac_cv_path_tclsh='';
7716 else
7717 ac_cv_path_tclsh="${TCLSH}";
7719 else
7720 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7721 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7722 TCLSH="${ac_cv_path_tclsh}"
7728 # Extract the first word of "zip", so it can be a program name with args.
7729 set dummy zip; ac_word=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_path_ZIP+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 case $ZIP in
7736 [\\/]* | ?:[\\/]*)
7737 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7751 done
7752 done
7753 IFS=$as_save_IFS
7756 esac
7758 ZIP=$ac_cv_path_ZIP
7759 if test -n "$ZIP"; then
7760 { echo "$as_me:$LINENO: result: $ZIP" >&5
7761 echo "${ECHO_T}$ZIP" >&6; }
7762 else
7763 { echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6; }
7768 for ac_prog in ocamlc
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_OCAMLC+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777 case $OCAMLC in
7778 [\\/]* | ?:[\\/]*)
7779 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7793 done
7794 done
7795 IFS=$as_save_IFS
7798 esac
7800 OCAMLC=$ac_cv_path_OCAMLC
7801 if test -n "$OCAMLC"; then
7802 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7803 echo "${ECHO_T}$OCAMLC" >&6; }
7804 else
7805 { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7810 test -n "$OCAMLC" && break
7811 done
7813 for ac_prog in ocamlopt
7815 # Extract the first word of "$ac_prog", so it can be a program name with args.
7816 set dummy $ac_prog; ac_word=$2
7817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7819 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822 case $OCAMLOPT in
7823 [\\/]* | ?:[\\/]*)
7824 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7843 esac
7845 OCAMLOPT=$ac_cv_path_OCAMLOPT
7846 if test -n "$OCAMLOPT"; then
7847 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7848 echo "${ECHO_T}$OCAMLOPT" >&6; }
7849 else
7850 { echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6; }
7855 test -n "$OCAMLOPT" && break
7856 done
7858 for ac_prog in ocamldep
7860 # Extract the first word of "$ac_prog", so it can be a program name with args.
7861 set dummy $ac_prog; ac_word=$2
7862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867 case $OCAMLDEP in
7868 [\\/]* | ?:[\\/]*)
7869 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7883 done
7884 done
7885 IFS=$as_save_IFS
7888 esac
7890 OCAMLDEP=$ac_cv_path_OCAMLDEP
7891 if test -n "$OCAMLDEP"; then
7892 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7893 echo "${ECHO_T}$OCAMLDEP" >&6; }
7894 else
7895 { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7900 test -n "$OCAMLDEP" && break
7901 done
7903 for ac_prog in ocamldoc
7905 # Extract the first word of "$ac_prog", so it can be a program name with args.
7906 set dummy $ac_prog; ac_word=$2
7907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912 case $OCAMLDOC in
7913 [\\/]* | ?:[\\/]*)
7914 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7924 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7928 done
7929 done
7930 IFS=$as_save_IFS
7933 esac
7935 OCAMLDOC=$ac_cv_path_OCAMLDOC
7936 if test -n "$OCAMLDOC"; then
7937 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7938 echo "${ECHO_T}$OCAMLDOC" >&6; }
7939 else
7940 { echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6; }
7945 test -n "$OCAMLDOC" && break
7946 done
7948 for ac_prog in gas as
7950 # Extract the first word of "$ac_prog", so it can be a program name with args.
7951 set dummy $ac_prog; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_path_GAS+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 case $GAS in
7958 [\\/]* | ?:[\\/]*)
7959 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7973 done
7974 done
7975 IFS=$as_save_IFS
7978 esac
7980 GAS=$ac_cv_path_GAS
7981 if test -n "$GAS"; then
7982 { echo "$as_me:$LINENO: result: $GAS" >&5
7983 echo "${ECHO_T}$GAS" >&6; }
7984 else
7985 { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7990 test -n "$GAS" && break
7991 done
7994 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7995 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7996 if test "${llvm_cv_link_use_r+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999 ac_ext=c
8000 ac_cpp='$CPP $CPPFLAGS'
8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005 oldcflags="$CFLAGS"
8006 CFLAGS="$CFLAGS -Wl,-R."
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8015 main ()
8017 int main() { return 0; }
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (ac_try="$ac_link"
8024 case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_link") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 llvm_cv_link_use_r=yes
8057 else
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 llvm_cv_link_use_r=no
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 CFLAGS="$oldcflags"
8067 ac_ext=c
8068 ac_cpp='$CPP $CPPFLAGS'
8069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8075 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8076 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8077 if test "$llvm_cv_link_use_r" = yes ; then
8079 cat >>confdefs.h <<\_ACEOF
8080 #define HAVE_LINK_R 1
8081 _ACEOF
8086 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8087 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8088 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091 ac_ext=c
8092 ac_cpp='$CPP $CPPFLAGS'
8093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097 oldcflags="$CFLAGS"
8098 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h. */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8107 main ()
8109 int main() { return 0; }
8111 return 0;
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (ac_try="$ac_link"
8116 case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_link") 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 llvm_cv_link_use_export_dynamic=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 llvm_cv_link_use_export_dynamic=no
8156 rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 CFLAGS="$oldcflags"
8159 ac_ext=c
8160 ac_cpp='$CPP $CPPFLAGS'
8161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8167 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8168 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8169 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8171 cat >>confdefs.h <<\_ACEOF
8172 #define HAVE_LINK_EXPORT_DYNAMIC 1
8173 _ACEOF
8180 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8181 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8182 if test "${ac_cv_c_const+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8193 main ()
8195 /* FIXME: Include the comments suggested by Paul. */
8196 #ifndef __cplusplus
8197 /* Ultrix mips cc rejects this. */
8198 typedef int charset[2];
8199 const charset x;
8200 /* SunOS 4.1.1 cc rejects this. */
8201 char const *const *ccp;
8202 char **p;
8203 /* NEC SVR4.0.2 mips cc rejects this. */
8204 struct point {int x, y;};
8205 static struct point const zero = {0,0};
8206 /* AIX XL C 1.02.0.0 rejects this.
8207 It does not let you subtract one const X* pointer from another in
8208 an arm of an if-expression whose if-part is not a constant
8209 expression */
8210 const char *g = "string";
8211 ccp = &g + (g ? g-g : 0);
8212 /* HPUX 7.0 cc rejects these. */
8213 ++ccp;
8214 p = (char**) ccp;
8215 ccp = (char const *const *) p;
8216 { /* SCO 3.2v4 cc rejects this. */
8217 char *t;
8218 char const *s = 0 ? (char *) 0 : (char const *) 0;
8220 *t++ = 0;
8221 if (s) return 0;
8223 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8224 int x[] = {25, 17};
8225 const int *foo = &x[0];
8226 ++foo;
8228 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8229 typedef const int *iptr;
8230 iptr p = 0;
8231 ++p;
8233 { /* AIX XL C 1.02.0.0 rejects this saying
8234 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8235 struct s { int j; const int *ap[3]; };
8236 struct s *b; b->j = 5;
8238 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8239 const int foo = 10;
8240 if (!foo) return 0;
8242 return !x[0] && !zero.x;
8243 #endif
8246 return 0;
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (ac_try="$ac_compile"
8251 case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_try") 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_try") 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_c_const=yes
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_c_const=no
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8294 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8295 if test $ac_cv_c_const = no; then
8297 cat >>confdefs.h <<\_ACEOF
8298 #define const
8299 _ACEOF
8308 ac_header_dirent=no
8309 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8310 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8311 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8312 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h. */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <sys/types.h>
8323 #include <$ac_hdr>
8326 main ()
8328 if ((DIR *) 0)
8329 return 0;
8331 return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8336 case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339 esac
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_try") 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest.$ac_objext'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 eval "$as_ac_Header=yes"
8369 else
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 eval "$as_ac_Header=no"
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 ac_res=`eval echo '${'$as_ac_Header'}'`
8379 { echo "$as_me:$LINENO: result: $ac_res" >&5
8380 echo "${ECHO_T}$ac_res" >&6; }
8381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8382 cat >>confdefs.h <<_ACEOF
8383 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8384 _ACEOF
8386 ac_header_dirent=$ac_hdr; break
8389 done
8390 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8391 if test $ac_header_dirent = dirent.h; then
8392 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8393 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8394 if test "${ac_cv_search_opendir+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 ac_func_search_save_LIBS=$LIBS
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8405 /* Override any GCC internal prototype to avoid an error.
8406 Use char because int might match the return type of a GCC
8407 builtin and then its argument prototype would still apply. */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 char opendir ();
8413 main ()
8415 return opendir ();
8417 return 0;
8419 _ACEOF
8420 for ac_lib in '' dir; do
8421 if test -z "$ac_lib"; then
8422 ac_res="none required"
8423 else
8424 ac_res=-l$ac_lib
8425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (ac_try="$ac_link"
8429 case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_link") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442 { (case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_try") 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest$ac_exeext'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_search_opendir=$ac_res
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext
8471 if test "${ac_cv_search_opendir+set}" = set; then
8472 break
8474 done
8475 if test "${ac_cv_search_opendir+set}" = set; then
8477 else
8478 ac_cv_search_opendir=no
8480 rm conftest.$ac_ext
8481 LIBS=$ac_func_search_save_LIBS
8483 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8484 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8485 ac_res=$ac_cv_search_opendir
8486 if test "$ac_res" != no; then
8487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8491 else
8492 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8493 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8494 if test "${ac_cv_search_opendir+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497 ac_func_search_save_LIBS=$LIBS
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h. */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8505 /* Override any GCC internal prototype to avoid an error.
8506 Use char because int might match the return type of a GCC
8507 builtin and then its argument prototype would still apply. */
8508 #ifdef __cplusplus
8509 extern "C"
8510 #endif
8511 char opendir ();
8513 main ()
8515 return opendir ();
8517 return 0;
8519 _ACEOF
8520 for ac_lib in '' x; do
8521 if test -z "$ac_lib"; then
8522 ac_res="none required"
8523 else
8524 ac_res=-l$ac_lib
8525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (ac_try="$ac_link"
8529 case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532 esac
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_link") 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542 { (case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_try") 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8561 ac_cv_search_opendir=$ac_res
8562 else
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext
8571 if test "${ac_cv_search_opendir+set}" = set; then
8572 break
8574 done
8575 if test "${ac_cv_search_opendir+set}" = set; then
8577 else
8578 ac_cv_search_opendir=no
8580 rm conftest.$ac_ext
8581 LIBS=$ac_func_search_save_LIBS
8583 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8584 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8585 ac_res=$ac_cv_search_opendir
8586 if test "$ac_res" != no; then
8587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8594 for ac_header in dlfcn.h
8596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 ac_res=`eval echo '${'$as_ac_Header'}'`
8604 { echo "$as_me:$LINENO: result: $ac_res" >&5
8605 echo "${ECHO_T}$ac_res" >&6; }
8606 else
8607 # Is the header compilable?
8608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #include <$ac_header>
8618 _ACEOF
8619 rm -f conftest.$ac_objext
8620 if { (ac_try="$ac_compile"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634 { (case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_try") 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest.$ac_objext'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647 esac
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_header_compiler=yes
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_header_compiler=no
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663 echo "${ECHO_T}$ac_header_compiler" >&6; }
8665 # Is the header present?
8666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <$ac_header>
8675 _ACEOF
8676 if { (ac_try="$ac_cpp conftest.$ac_ext"
8677 case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680 esac
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } >/dev/null; then
8689 if test -s conftest.err; then
8690 ac_cpp_err=$ac_c_preproc_warn_flag
8691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8692 else
8693 ac_cpp_err=
8695 else
8696 ac_cpp_err=yes
8698 if test -z "$ac_cpp_err"; then
8699 ac_header_preproc=yes
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_header_preproc=no
8707 rm -f conftest.err conftest.$ac_ext
8708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8709 echo "${ECHO_T}$ac_header_preproc" >&6; }
8711 # So? What about this header?
8712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713 yes:no: )
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8718 ac_header_preproc=yes
8720 no:yes:* )
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8733 ( cat <<\_ASBOX
8734 ## ----------------------------------- ##
8735 ## Report this to llvmbugs@cs.uiuc.edu ##
8736 ## ----------------------------------- ##
8737 _ASBOX
8738 ) | sed "s/^/$as_me: WARNING: /" >&2
8740 esac
8741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 eval "$as_ac_Header=\$ac_header_preproc"
8748 ac_res=`eval echo '${'$as_ac_Header'}'`
8749 { echo "$as_me:$LINENO: result: $ac_res" >&5
8750 echo "${ECHO_T}$ac_res" >&6; }
8753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8754 cat >>confdefs.h <<_ACEOF
8755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8756 _ACEOF
8760 done
8762 # Check whether --enable-ltdl-install was given.
8763 if test "${enable_ltdl_install+set}" = set; then
8764 enableval=$enable_ltdl_install;
8770 if test x"${enable_ltdl_install-no}" != xno; then
8771 INSTALL_LTDL_TRUE=
8772 INSTALL_LTDL_FALSE='#'
8773 else
8774 INSTALL_LTDL_TRUE='#'
8775 INSTALL_LTDL_FALSE=
8780 if test x"${enable_ltdl_convenience-no}" != xno; then
8781 CONVENIENCE_LTDL_TRUE=
8782 CONVENIENCE_LTDL_FALSE='#'
8783 else
8784 CONVENIENCE_LTDL_TRUE='#'
8785 CONVENIENCE_LTDL_FALSE=
8789 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8790 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8791 library_names_spec=
8792 libname_spec='lib$name'
8793 soname_spec=
8794 shrext_cmds=".so"
8795 postinstall_cmds=
8796 postuninstall_cmds=
8797 finish_cmds=
8798 finish_eval=
8799 shlibpath_var=
8800 shlibpath_overrides_runpath=unknown
8801 version_type=none
8802 dynamic_linker="$host_os ld.so"
8803 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8804 if test "$GCC" = yes; then
8805 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8806 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8807 # if the path contains ";" then we assume it to be the separator
8808 # otherwise default to the standard path separator (i.e. ":") - it is
8809 # assumed that no part of a normal pathname contains ";" but that should
8810 # okay in the real world where ";" in dirpaths is itself problematic.
8811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8812 else
8813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8815 else
8816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8818 need_lib_prefix=unknown
8819 hardcode_into_libs=no
8821 # when you set need_version to no, make sure it does not cause -set_version
8822 # flags to be left without arguments
8823 need_version=unknown
8825 case $host_os in
8826 aix3*)
8827 version_type=linux
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8829 shlibpath_var=LIBPATH
8831 # AIX 3 has no versioning support, so we append a major version to the name.
8832 soname_spec='${libname}${release}${shared_ext}$major'
8835 aix4* | aix5*)
8836 version_type=linux
8837 need_lib_prefix=no
8838 need_version=no
8839 hardcode_into_libs=yes
8840 if test "$host_cpu" = ia64; then
8841 # AIX 5 supports IA64
8842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 else
8845 # With GCC up to 2.95.x, collect2 would create an import file
8846 # for dependence libraries. The import file would start with
8847 # the line `#! .'. This would cause the generated library to
8848 # depend on `.', always an invalid library. This was fixed in
8849 # development snapshots of GCC prior to 3.0.
8850 case $host_os in
8851 aix4 | aix4.[01] | aix4.[01].*)
8852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8853 echo ' yes '
8854 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8856 else
8857 can_build_shared=no
8860 esac
8861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8862 # soname into executable. Probably we can add versioning support to
8863 # collect2, so additional links can be useful in future.
8864 if test "$aix_use_runtimelinking" = yes; then
8865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8866 # instead of lib<name>.a to let people know that these are not
8867 # typical AIX shared libraries.
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869 else
8870 # We preserve .a as extension for shared libraries through AIX4.2
8871 # and later when we are not doing run time linking.
8872 library_names_spec='${libname}${release}.a $libname.a'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8875 shlibpath_var=LIBPATH
8879 amigaos*)
8880 library_names_spec='$libname.ixlibrary $libname.a'
8881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8882 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'
8885 beos*)
8886 library_names_spec='${libname}${shared_ext}'
8887 dynamic_linker="$host_os ld.so"
8888 shlibpath_var=LIBRARY_PATH
8891 bsdi[45]*)
8892 version_type=linux
8893 need_version=no
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8900 # the default ld.so.conf also contains /usr/contrib/lib and
8901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8902 # libtool to hard-code these into programs
8905 cygwin* | mingw* | pw32*)
8906 version_type=windows
8907 shrext_cmds=".dll"
8908 need_version=no
8909 need_lib_prefix=no
8911 case $GCC,$host_os in
8912 yes,cygwin* | yes,mingw* | yes,pw32*)
8913 library_names_spec='$libname.dll.a'
8914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8915 postinstall_cmds='base_file=`basename \${file}`~
8916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8917 dldir=$destdir/`dirname \$dlpath`~
8918 test -d \$dldir || mkdir -p \$dldir~
8919 $install_prog $dir/$dlname \$dldir/$dlname~
8920 chmod a+x \$dldir/$dlname'
8921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8922 dlpath=$dir/\$dldll~
8923 $rm \$dlpath'
8924 shlibpath_overrides_runpath=yes
8926 case $host_os in
8927 cygwin*)
8928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8930 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8932 mingw*)
8933 # MinGW DLLs use traditional 'lib' prefix
8934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8936 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8937 # It is most probably a Windows format PATH printed by
8938 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8939 # path with ; separators, and with drive letters. We can handle the
8940 # drive letters (cygwin fileutils understands them), so leave them,
8941 # especially as we might pass files found there to a mingw objdump,
8942 # which wouldn't understand a cygwinified path. Ahh.
8943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8944 else
8945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8948 pw32*)
8949 # pw32 DLLs use 'pw' prefix rather than 'lib'
8950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8952 esac
8956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8958 esac
8959 dynamic_linker='Win32 ld.exe'
8960 # FIXME: first we should search . and the directory the executable is in
8961 shlibpath_var=PATH
8964 darwin* | rhapsody*)
8965 dynamic_linker="$host_os dyld"
8966 version_type=darwin
8967 need_lib_prefix=no
8968 need_version=no
8969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8970 soname_spec='${libname}${release}${major}$shared_ext'
8971 shlibpath_overrides_runpath=yes
8972 shlibpath_var=DYLD_LIBRARY_PATH
8973 shrext_cmds='.dylib'
8974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8975 if test "$GCC" = yes; then
8976 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"`
8977 else
8978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8983 dgux*)
8984 version_type=linux
8985 need_lib_prefix=no
8986 need_version=no
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 shlibpath_var=LD_LIBRARY_PATH
8992 freebsd1*)
8993 dynamic_linker=no
8996 kfreebsd*-gnu)
8997 version_type=linux
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=no
9004 hardcode_into_libs=yes
9005 dynamic_linker='GNU ld.so'
9008 freebsd* | dragonfly*)
9009 # DragonFly does not have aout. When/if they implement a new
9010 # versioning mechanism, adjust this.
9011 if test -x /usr/bin/objformat; then
9012 objformat=`/usr/bin/objformat`
9013 else
9014 case $host_os in
9015 freebsd[123]*) objformat=aout ;;
9016 *) objformat=elf ;;
9017 esac
9019 version_type=freebsd-$objformat
9020 case $version_type in
9021 freebsd-elf*)
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9023 need_version=no
9024 need_lib_prefix=no
9026 freebsd-*)
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9028 need_version=yes
9030 esac
9031 shlibpath_var=LD_LIBRARY_PATH
9032 case $host_os in
9033 freebsd2*)
9034 shlibpath_overrides_runpath=yes
9036 freebsd3.[01]* | freebsdelf3.[01]*)
9037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9045 freebsd*) # from 4.6 on
9046 shlibpath_overrides_runpath=yes
9047 hardcode_into_libs=yes
9049 esac
9052 gnu*)
9053 version_type=linux
9054 need_lib_prefix=no
9055 need_version=no
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 hardcode_into_libs=yes
9062 hpux9* | hpux10* | hpux11*)
9063 # Give a soname corresponding to the major version so that dld.sl refuses to
9064 # link against other versions.
9065 version_type=sunos
9066 need_lib_prefix=no
9067 need_version=no
9068 case $host_cpu in
9069 ia64*)
9070 shrext_cmds='.so'
9071 hardcode_into_libs=yes
9072 dynamic_linker="$host_os dld.so"
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 if test "X$HPUX_IA64_MODE" = X32; then
9078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9079 else
9080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9084 hppa*64*)
9085 shrext_cmds='.sl'
9086 hardcode_into_libs=yes
9087 dynamic_linker="$host_os dld.sl"
9088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9096 shrext_cmds='.sl'
9097 dynamic_linker="$host_os dld.sl"
9098 shlibpath_var=SHLIB_PATH
9099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9103 esac
9104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9105 postinstall_cmds='chmod 555 $lib'
9108 interix3*)
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 hardcode_into_libs=yes
9120 irix5* | irix6* | nonstopux*)
9121 case $host_os in
9122 nonstopux*) version_type=nonstopux ;;
9124 if test "$lt_cv_prog_gnu_ld" = yes; then
9125 version_type=linux
9126 else
9127 version_type=irix
9128 fi ;;
9129 esac
9130 need_lib_prefix=no
9131 need_version=no
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9134 case $host_os in
9135 irix5* | nonstopux*)
9136 libsuff= shlibsuff=
9139 case $LD in # libtool.m4 will add one of these switches to LD
9140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9141 libsuff= shlibsuff= libmagic=32-bit;;
9142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9143 libsuff=32 shlibsuff=N32 libmagic=N32;;
9144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9146 *) libsuff= shlibsuff= libmagic=never-match;;
9147 esac
9149 esac
9150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9151 shlibpath_overrides_runpath=no
9152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9154 hardcode_into_libs=yes
9157 # No shared lib support for Linux oldld, aout, or coff.
9158 linux*oldld* | linux*aout* | linux*coff*)
9159 dynamic_linker=no
9162 # This must be Linux ELF.
9163 linux*)
9164 version_type=linux
9165 need_lib_prefix=no
9166 need_version=no
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=no
9172 # This implies no fast_install, which is unacceptable.
9173 # Some rework will be needed to allow for fast_install
9174 # before this can be enabled.
9175 hardcode_into_libs=yes
9177 # Append ld.so.conf contents to the search path
9178 if test -f /etc/ld.so.conf; then
9179 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' ' '`
9180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9183 # We used to test for /lib/ld.so.1 and disable shared libraries on
9184 # powerpc, because MkLinux only supported shared libraries with the
9185 # GNU dynamic linker. Since this was broken with cross compilers,
9186 # most powerpc-linux boxes support dynamic linking these days and
9187 # people can always --disable-shared, the test was removed, and we
9188 # assume the GNU/Linux dynamic linker is in use.
9189 dynamic_linker='GNU/Linux ld.so'
9192 knetbsd*-gnu)
9193 version_type=linux
9194 need_lib_prefix=no
9195 need_version=no
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=no
9200 hardcode_into_libs=yes
9201 dynamic_linker='GNU ld.so'
9204 netbsd*)
9205 version_type=sunos
9206 need_lib_prefix=no
9207 need_version=no
9208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9211 dynamic_linker='NetBSD (a.out) ld.so'
9212 else
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 dynamic_linker='NetBSD ld.elf_so'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 hardcode_into_libs=yes
9222 newsos6)
9223 version_type=linux
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes
9229 nto-qnx*)
9230 version_type=linux
9231 need_lib_prefix=no
9232 need_version=no
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=yes
9239 openbsd*)
9240 version_type=sunos
9241 sys_lib_dlsearch_path_spec="/usr/lib"
9242 need_lib_prefix=no
9243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9244 case $host_os in
9245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9246 *) need_version=no ;;
9247 esac
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252 case $host_os in
9253 openbsd2.[89] | openbsd2.[89].*)
9254 shlibpath_overrides_runpath=no
9257 shlibpath_overrides_runpath=yes
9259 esac
9260 else
9261 shlibpath_overrides_runpath=yes
9265 os2*)
9266 libname_spec='$name'
9267 shrext_cmds=".dll"
9268 need_lib_prefix=no
9269 library_names_spec='$libname${shared_ext} $libname.a'
9270 dynamic_linker='OS/2 ld.exe'
9271 shlibpath_var=LIBPATH
9274 osf3* | osf4* | osf5*)
9275 version_type=osf
9276 need_lib_prefix=no
9277 need_version=no
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 shlibpath_var=LD_LIBRARY_PATH
9281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9285 solaris*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes
9293 hardcode_into_libs=yes
9294 # ldd complains unless libraries are executable
9295 postinstall_cmds='chmod +x $lib'
9298 sunos4*)
9299 version_type=sunos
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 if test "$with_gnu_ld" = yes; then
9305 need_lib_prefix=no
9307 need_version=yes
9310 sysv4 | sysv4.3*)
9311 version_type=linux
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 case $host_vendor in
9316 sni)
9317 shlibpath_overrides_runpath=no
9318 need_lib_prefix=no
9319 export_dynamic_flag_spec='${wl}-Blargedynsym'
9320 runpath_var=LD_RUN_PATH
9322 siemens)
9323 need_lib_prefix=no
9325 motorola)
9326 need_lib_prefix=no
9327 need_version=no
9328 shlibpath_overrides_runpath=no
9329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9331 esac
9334 sysv4*MP*)
9335 if test -d /usr/nec ;then
9336 version_type=linux
9337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9338 soname_spec='$libname${shared_ext}.$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9344 version_type=freebsd-elf
9345 need_lib_prefix=no
9346 need_version=no
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 hardcode_into_libs=yes
9351 if test "$with_gnu_ld" = yes; then
9352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9353 shlibpath_overrides_runpath=no
9354 else
9355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9356 shlibpath_overrides_runpath=yes
9357 case $host_os in
9358 sco3.2v5*)
9359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9361 esac
9363 sys_lib_dlsearch_path_spec='/usr/lib'
9366 uts4*)
9367 version_type=linux
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9374 dynamic_linker=no
9376 esac
9377 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9378 echo "${ECHO_T}$dynamic_linker" >&6; }
9379 test "$dynamic_linker" = no && can_build_shared=no
9381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9382 if test "$GCC" = yes; then
9383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9387 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9388 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9389 if test "${libltdl_cv_shlibext+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9393 module=yes
9394 eval libltdl_cv_shlibext=$shrext_cmds
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9398 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9399 if test -n "$libltdl_cv_shlibext"; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9403 _ACEOF
9408 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9409 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9410 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 libltdl_cv_shlibpath_var="$shlibpath_var"
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9416 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9417 if test -n "$libltdl_cv_shlibpath_var"; then
9419 cat >>confdefs.h <<_ACEOF
9420 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9421 _ACEOF
9426 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9427 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9428 if test "${libltdl_cv_sys_search_path+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9433 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9434 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9435 if test -n "$libltdl_cv_sys_search_path"; then
9436 sys_search_path=
9437 for dir in $libltdl_cv_sys_search_path; do
9438 if test -z "$sys_search_path"; then
9439 sys_search_path="$dir"
9440 else
9441 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9443 done
9445 cat >>confdefs.h <<_ACEOF
9446 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9447 _ACEOF
9451 { echo "$as_me:$LINENO: checking for objdir" >&5
9452 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9453 if test "${libltdl_cv_objdir+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456 libltdl_cv_objdir="$objdir"
9457 if test -n "$objdir"; then
9459 else
9460 rm -f .libs 2>/dev/null
9461 mkdir .libs 2>/dev/null
9462 if test -d .libs; then
9463 libltdl_cv_objdir=.libs
9464 else
9465 # MS-DOS does not allow filenames that begin with a dot.
9466 libltdl_cv_objdir=_libs
9468 rmdir .libs 2>/dev/null
9472 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9473 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9475 cat >>confdefs.h <<_ACEOF
9476 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9477 _ACEOF
9484 # Check for command to grab the raw symbol name followed by C symbol from nm.
9485 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9486 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9487 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9491 # These are sane defaults that work on at least a few old systems.
9492 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9494 # Character class describing NM global symbol codes.
9495 symcode='[BCDEGRST]'
9497 # Regexp to match symbols that can be accessed directly from C.
9498 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9500 # Transform an extracted symbol line into a proper C declaration
9501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9503 # Transform an extracted symbol line into symbol name and symbol address
9504 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'"
9506 # Define system-specific variables.
9507 case $host_os in
9508 aix*)
9509 symcode='[BCDT]'
9511 cygwin* | mingw* | pw32*)
9512 symcode='[ABCDGISTW]'
9514 hpux*) # Its linker distinguishes data from code symbols
9515 if test "$host_cpu" = ia64; then
9516 symcode='[ABCDEGRST]'
9518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9519 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'"
9521 linux*)
9522 if test "$host_cpu" = ia64; then
9523 symcode='[ABCDGIRSTW]'
9524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9525 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'"
9528 irix* | nonstopux*)
9529 symcode='[BCDEGRST]'
9531 osf*)
9532 symcode='[BCDEGQRST]'
9534 solaris*)
9535 symcode='[BDRT]'
9537 sco3.2v5*)
9538 symcode='[DT]'
9540 sysv4.2uw2*)
9541 symcode='[DT]'
9543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9544 symcode='[ABDT]'
9546 sysv4)
9547 symcode='[DFNSTU]'
9549 esac
9551 # Handle CRLF in mingw tool chain
9552 opt_cr=
9553 case $build_os in
9554 mingw*)
9555 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9557 esac
9559 # If we're using GNU nm, then use its standard symbol codes.
9560 case `$NM -V 2>&1` in
9561 *GNU* | *'with BFD'*)
9562 symcode='[ABCDGIRSTW]' ;;
9563 esac
9565 # Try without a prefix undercore, then with it.
9566 for ac_symprfx in "" "_"; do
9568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9569 symxfrm="\\1 $ac_symprfx\\2 \\2"
9571 # Write the raw and C identifiers.
9572 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9574 # Check to see that the pipe works correctly.
9575 pipe_works=no
9577 rm -f conftest*
9578 cat > conftest.$ac_ext <<EOF
9579 #ifdef __cplusplus
9580 extern "C" {
9581 #endif
9582 char nm_test_var;
9583 void nm_test_func(){}
9584 #ifdef __cplusplus
9586 #endif
9587 int main(){nm_test_var='a';nm_test_func();return(0);}
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; then
9595 # Now try to grab the symbols.
9596 nlist=conftest.nm
9597 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9598 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && test -s "$nlist"; then
9602 # Try sorting and uniquifying the output.
9603 if sort "$nlist" | uniq > "$nlist"T; then
9604 mv -f "$nlist"T "$nlist"
9605 else
9606 rm -f "$nlist"T
9609 # Make sure that we snagged all the symbols we need.
9610 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9611 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9612 cat <<EOF > conftest.$ac_ext
9613 #ifdef __cplusplus
9614 extern "C" {
9615 #endif
9618 # Now generate the symbol file.
9619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9621 cat <<EOF >> conftest.$ac_ext
9622 #if defined (__STDC__) && __STDC__
9623 # define lt_ptr_t void *
9624 #else
9625 # define lt_ptr_t char *
9626 # define const
9627 #endif
9629 /* The mapping between symbol names and symbols. */
9630 const struct {
9631 const char *name;
9632 lt_ptr_t address;
9634 lt_preloaded_symbols[] =
9637 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9638 cat <<\EOF >> conftest.$ac_ext
9639 {0, (lt_ptr_t) 0}
9642 #ifdef __cplusplus
9644 #endif
9646 # Now try linking the two files.
9647 mv conftest.$ac_objext conftstm.$ac_objext
9648 lt_save_LIBS="$LIBS"
9649 lt_save_CFLAGS="$CFLAGS"
9650 LIBS="conftstm.$ac_objext"
9651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653 (eval $ac_link) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9657 pipe_works=yes
9659 LIBS="$lt_save_LIBS"
9660 CFLAGS="$lt_save_CFLAGS"
9661 else
9662 echo "cannot find nm_test_func in $nlist" >&5
9664 else
9665 echo "cannot find nm_test_var in $nlist" >&5
9667 else
9668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9670 else
9671 echo "$progname: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9674 rm -f conftest* conftst*
9676 # Do not use the global_symbol_pipe unless it works.
9677 if test "$pipe_works" = yes; then
9678 break
9679 else
9680 lt_cv_sys_global_symbol_pipe=
9682 done
9686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9687 lt_cv_sys_global_symbol_to_cdecl=
9689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9690 { echo "$as_me:$LINENO: result: failed" >&5
9691 echo "${ECHO_T}failed" >&6; }
9692 else
9693 { echo "$as_me:$LINENO: result: ok" >&5
9694 echo "${ECHO_T}ok" >&6; }
9698 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9699 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9700 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9704 libltdl_cv_preloaded_symbols=yes
9705 else
9706 libltdl_cv_preloaded_symbols=no
9710 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9711 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9712 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9714 cat >>confdefs.h <<\_ACEOF
9715 #define HAVE_PRELOADED_SYMBOLS 1
9716 _ACEOF
9720 LIBADD_DL=
9722 ac_ext=c
9723 ac_cpp='$CPP $CPPFLAGS'
9724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9729 { echo "$as_me:$LINENO: checking for shl_load" >&5
9730 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9731 if test "${ac_cv_func_shl_load+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9742 #define shl_load innocuous_shl_load
9744 /* System header to define __stub macros and hopefully few prototypes,
9745 which can conflict with char shl_load (); below.
9746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9747 <limits.h> exists even on freestanding compilers. */
9749 #ifdef __STDC__
9750 # include <limits.h>
9751 #else
9752 # include <assert.h>
9753 #endif
9755 #undef shl_load
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char shl_load ();
9764 /* The GNU C library defines this for functions which it implements
9765 to always fail with ENOSYS. Some functions are actually named
9766 something starting with __ and the normal name is an alias. */
9767 #if defined __stub_shl_load || defined __stub___shl_load
9768 choke me
9769 #endif
9772 main ()
9774 return shl_load ();
9776 return 0;
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (ac_try="$ac_link"
9781 case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
9813 ac_cv_func_shl_load=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 ac_cv_func_shl_load=no
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9824 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9825 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9826 if test $ac_cv_func_shl_load = yes; then
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_SHL_LOAD 1
9830 _ACEOF
9832 else
9833 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838 ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-ldld $LIBS"
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char shl_load ();
9855 main ()
9857 return shl_load ();
9859 return 0;
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9864 case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_lib_dld_shl_load=yes
9897 else
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9901 ac_cv_lib_dld_shl_load=no
9904 rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9909 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9910 if test $ac_cv_lib_dld_shl_load = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_SHL_LOAD 1
9914 _ACEOF
9916 LIBADD_DL="$LIBADD_DL -ldld"
9917 else
9918 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9919 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 ac_check_lib_save_LIBS=$LIBS
9924 LIBS="-ldl $LIBS"
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char dlopen ();
9940 main ()
9942 return dlopen ();
9944 return 0;
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9949 case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_lib_dl_dlopen=yes
9982 else
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_cv_lib_dl_dlopen=no
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9994 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9995 if test $ac_cv_lib_dl_dlopen = yes; then
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_LIBDL 1
9999 _ACEOF
10001 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10002 else
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 #if HAVE_DLFCN_H
10010 # include <dlfcn.h>
10011 #endif
10014 main ()
10016 dlopen(0, 0);
10018 return 0;
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (ac_try="$ac_link"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest$ac_exeext'
10046 { (case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_try") 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10056 cat >>confdefs.h <<\_ACEOF
10057 #define HAVE_LIBDL 1
10058 _ACEOF
10059 libltdl_cv_func_dlopen="yes"
10060 else
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10065 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10066 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 ac_check_lib_save_LIBS=$LIBS
10070 LIBS="-lsvld $LIBS"
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char dlopen ();
10086 main ()
10088 return dlopen ();
10090 return 0;
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (ac_try="$ac_link"
10095 case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_link") 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108 { (case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_try") 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_lib_svld_dlopen=yes
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_cv_lib_svld_dlopen=no
10135 rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10139 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10140 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10141 if test $ac_cv_lib_svld_dlopen = yes; then
10143 cat >>confdefs.h <<\_ACEOF
10144 #define HAVE_LIBDL 1
10145 _ACEOF
10147 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10148 else
10149 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10150 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10151 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154 ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-ldld $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 char dld_link ();
10171 main ()
10173 return dld_link ();
10175 return 0;
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (ac_try="$ac_link"
10180 case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193 { (case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_try") 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_lib_dld_dld_link=yes
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_lib_dld_dld_link=no
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10226 if test $ac_cv_lib_dld_dld_link = yes; then
10228 cat >>confdefs.h <<\_ACEOF
10229 #define HAVE_DLD 1
10230 _ACEOF
10232 LIBADD_DL="$LIBADD_DL -ldld"
10233 else
10234 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10235 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10236 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h. */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10247 #define _dyld_func_lookup innocuous__dyld_func_lookup
10249 /* System header to define __stub macros and hopefully few prototypes,
10250 which can conflict with char _dyld_func_lookup (); below.
10251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10252 <limits.h> exists even on freestanding compilers. */
10254 #ifdef __STDC__
10255 # include <limits.h>
10256 #else
10257 # include <assert.h>
10258 #endif
10260 #undef _dyld_func_lookup
10262 /* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
10265 #ifdef __cplusplus
10266 extern "C"
10267 #endif
10268 char _dyld_func_lookup ();
10269 /* The GNU C library defines this for functions which it implements
10270 to always fail with ENOSYS. Some functions are actually named
10271 something starting with __ and the normal name is an alias. */
10272 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10273 choke me
10274 #endif
10277 main ()
10279 return _dyld_func_lookup ();
10281 return 0;
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (ac_try="$ac_link"
10286 case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_link") 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10299 { (case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_try") 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_func__dyld_func_lookup=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_cv_func__dyld_func_lookup=no
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10329 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10330 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10331 if test $ac_cv_func__dyld_func_lookup = yes; then
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_DYLD 1
10335 _ACEOF
10348 rm -f core conftest.err conftest.$ac_objext \
10349 conftest$ac_exeext conftest.$ac_ext
10360 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10361 then
10362 lt_save_LIBS="$LIBS"
10363 LIBS="$LIBS $LIBADD_DL"
10365 for ac_func in dlerror
10367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10381 #define $ac_func innocuous_$ac_func
10383 /* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char $ac_func (); below.
10385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386 <limits.h> exists even on freestanding compilers. */
10388 #ifdef __STDC__
10389 # include <limits.h>
10390 #else
10391 # include <assert.h>
10392 #endif
10394 #undef $ac_func
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char $ac_func ();
10403 /* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406 #if defined __stub_$ac_func || defined __stub___$ac_func
10407 choke me
10408 #endif
10411 main ()
10413 return $ac_func ();
10415 return 0;
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433 { (case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_try") 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446 esac
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_try") 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 eval "$as_ac_var=yes"
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 eval "$as_ac_var=no"
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10463 ac_res=`eval echo '${'$as_ac_var'}'`
10464 { echo "$as_me:$LINENO: result: $ac_res" >&5
10465 echo "${ECHO_T}$ac_res" >&6; }
10466 if test `eval echo '${'$as_ac_var'}'` = yes; then
10467 cat >>confdefs.h <<_ACEOF
10468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10469 _ACEOF
10472 done
10474 LIBS="$lt_save_LIBS"
10476 ac_ext=c
10477 ac_cpp='$CPP $CPPFLAGS'
10478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10484 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10485 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10486 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 ac_cv_sys_symbol_underscore=no
10490 cat > conftest.$ac_ext <<EOF
10491 void nm_test_func(){}
10492 int main(){nm_test_func;return 0;}
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; then
10499 # Now try to grab the symbols.
10500 ac_nlist=conftest.nm
10501 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10502 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } && test -s "$ac_nlist"; then
10506 # See whether the symbols have a leading underscore.
10507 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10508 ac_cv_sys_symbol_underscore=yes
10509 else
10510 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10512 else
10513 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10516 else
10517 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10519 else
10520 echo "configure: failed program was:" >&5
10521 cat conftest.c >&5
10523 rm -rf conftest*
10526 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10527 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10530 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10531 if test x"$libltdl_cv_func_dlopen" = xyes ||
10532 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10533 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10534 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10535 if test "${libltdl_cv_need_uscore+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 libltdl_cv_need_uscore=unknown
10539 save_LIBS="$LIBS"
10540 LIBS="$LIBS $LIBADD_DL"
10541 if test "$cross_compiling" = yes; then :
10542 libltdl_cv_need_uscore=cross
10543 else
10544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10545 lt_status=$lt_dlunknown
10546 cat > conftest.$ac_ext <<EOF
10547 #line 10547 "configure"
10548 #include "confdefs.h"
10550 #if HAVE_DLFCN_H
10551 #include <dlfcn.h>
10552 #endif
10554 #include <stdio.h>
10556 #ifdef RTLD_GLOBAL
10557 # define LT_DLGLOBAL RTLD_GLOBAL
10558 #else
10559 # ifdef DL_GLOBAL
10560 # define LT_DLGLOBAL DL_GLOBAL
10561 # else
10562 # define LT_DLGLOBAL 0
10563 # endif
10564 #endif
10566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10567 find out it does not work in some platform. */
10568 #ifndef LT_DLLAZY_OR_NOW
10569 # ifdef RTLD_LAZY
10570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10571 # else
10572 # ifdef DL_LAZY
10573 # define LT_DLLAZY_OR_NOW DL_LAZY
10574 # else
10575 # ifdef RTLD_NOW
10576 # define LT_DLLAZY_OR_NOW RTLD_NOW
10577 # else
10578 # ifdef DL_NOW
10579 # define LT_DLLAZY_OR_NOW DL_NOW
10580 # else
10581 # define LT_DLLAZY_OR_NOW 0
10582 # endif
10583 # endif
10584 # endif
10585 # endif
10586 #endif
10588 #ifdef __cplusplus
10589 extern "C" void exit (int);
10590 #endif
10592 void fnord() { int i=42;}
10593 int main ()
10595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10596 int status = $lt_dlunknown;
10598 if (self)
10600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10602 /* dlclose (self); */
10604 else
10605 puts (dlerror ());
10607 exit (status);
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10615 (./conftest; exit; ) >&5 2>/dev/null
10616 lt_status=$?
10617 case x$lt_status in
10618 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10619 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10620 x$lt_dlunknown|x*) ;;
10621 esac
10622 else :
10623 # compilation failed
10627 rm -fr conftest*
10629 LIBS="$save_LIBS"
10632 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10633 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10637 if test x"$libltdl_cv_need_uscore" = xyes; then
10639 cat >>confdefs.h <<\_ACEOF
10640 #define NEED_USCORE 1
10641 _ACEOF
10646 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10647 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10648 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651 # PORTME does your system automatically load deplibs for dlopen?
10652 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10653 # For now, we just catch OSes we know something about -- in the
10654 # future, we'll try test this programmatically.
10655 libltdl_cv_sys_dlopen_deplibs=unknown
10656 case "$host_os" in
10657 aix3*|aix4.1.*|aix4.2.*)
10658 # Unknown whether this is true for these versions of AIX, but
10659 # we want this `case' here to explicitly catch those versions.
10660 libltdl_cv_sys_dlopen_deplibs=unknown
10662 aix[45]*)
10663 libltdl_cv_sys_dlopen_deplibs=yes
10665 darwin*)
10666 # Assuming the user has installed a libdl from somewhere, this is true
10667 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10668 libltdl_cv_sys_dlopen_deplibs=yes
10670 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10671 # GNU and its variants, using gnu ld.so (Glibc)
10672 libltdl_cv_sys_dlopen_deplibs=yes
10674 hpux10*|hpux11*)
10675 libltdl_cv_sys_dlopen_deplibs=yes
10677 interix*)
10678 libltdl_cv_sys_dlopen_deplibs=yes
10680 irix[12345]*|irix6.[01]*)
10681 # Catch all versions of IRIX before 6.2, and indicate that we don't
10682 # know how it worked for any of those versions.
10683 libltdl_cv_sys_dlopen_deplibs=unknown
10685 irix*)
10686 # The case above catches anything before 6.2, and it's known that
10687 # at 6.2 and later dlopen does load deplibs.
10688 libltdl_cv_sys_dlopen_deplibs=yes
10690 netbsd*)
10691 libltdl_cv_sys_dlopen_deplibs=yes
10693 openbsd*)
10694 libltdl_cv_sys_dlopen_deplibs=yes
10696 osf[1234]*)
10697 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10698 # it did *not* use an RPATH in a shared library to find objects the
10699 # library depends on, so we explictly say `no'.
10700 libltdl_cv_sys_dlopen_deplibs=no
10702 osf5.0|osf5.0a|osf5.1)
10703 # dlopen *does* load deplibs and with the right loader patch applied
10704 # it even uses RPATH in a shared library to search for shared objects
10705 # that the library depends on, but there's no easy way to know if that
10706 # patch is installed. Since this is the case, all we can really
10707 # say is unknown -- it depends on the patch being installed. If
10708 # it is, this changes to `yes'. Without it, it would be `no'.
10709 libltdl_cv_sys_dlopen_deplibs=unknown
10711 osf*)
10712 # the two cases above should catch all versions of osf <= 5.1. Read
10713 # the comments above for what we know about them.
10714 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10715 # is used to find them so we can finally say `yes'.
10716 libltdl_cv_sys_dlopen_deplibs=yes
10718 solaris*)
10719 libltdl_cv_sys_dlopen_deplibs=yes
10721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10722 libltdl_cv_sys_dlopen_deplibs=yes
10724 esac
10727 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10728 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10729 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10731 cat >>confdefs.h <<\_ACEOF
10732 #define LTDL_DLOPEN_DEPLIBS 1
10733 _ACEOF
10738 for ac_header in argz.h
10740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 ac_res=`eval echo '${'$as_ac_Header'}'`
10748 { echo "$as_me:$LINENO: result: $ac_res" >&5
10749 echo "${ECHO_T}$ac_res" >&6; }
10750 else
10751 # Is the header compilable?
10752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 $ac_includes_default
10761 #include <$ac_header>
10762 _ACEOF
10763 rm -f conftest.$ac_objext
10764 if { (ac_try="$ac_compile"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_compile") 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10778 { (case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_try") 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 ac_header_compiler=yes
10798 else
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_header_compiler=no
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10807 echo "${ECHO_T}$ac_header_compiler" >&6; }
10809 # Is the header present?
10810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <$ac_header>
10819 _ACEOF
10820 if { (ac_try="$ac_cpp conftest.$ac_ext"
10821 case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } >/dev/null; then
10833 if test -s conftest.err; then
10834 ac_cpp_err=$ac_c_preproc_warn_flag
10835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10836 else
10837 ac_cpp_err=
10839 else
10840 ac_cpp_err=yes
10842 if test -z "$ac_cpp_err"; then
10843 ac_header_preproc=yes
10844 else
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 ac_header_preproc=no
10851 rm -f conftest.err conftest.$ac_ext
10852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853 echo "${ECHO_T}$ac_header_preproc" >&6; }
10855 # So? What about this header?
10856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10857 yes:no: )
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10862 ac_header_preproc=yes
10864 no:yes:* )
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10877 ( cat <<\_ASBOX
10878 ## ----------------------------------- ##
10879 ## Report this to llvmbugs@cs.uiuc.edu ##
10880 ## ----------------------------------- ##
10881 _ASBOX
10882 ) | sed "s/^/$as_me: WARNING: /" >&2
10884 esac
10885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890 eval "$as_ac_Header=\$ac_header_preproc"
10892 ac_res=`eval echo '${'$as_ac_Header'}'`
10893 { echo "$as_me:$LINENO: result: $ac_res" >&5
10894 echo "${ECHO_T}$ac_res" >&6; }
10897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10900 _ACEOF
10904 done
10907 { echo "$as_me:$LINENO: checking for error_t" >&5
10908 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10909 if test "${ac_cv_type_error_t+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912 cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h. */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 #if HAVE_ARGZ_H
10919 # include <argz.h>
10920 #endif
10922 typedef error_t ac__type_new_;
10924 main ()
10926 if ((ac__type_new_ *) 0)
10927 return 0;
10928 if (sizeof (ac__type_new_))
10929 return 0;
10931 return 0;
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_compile") 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 ac_cv_type_error_t=yes
10969 else
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ac_cv_type_error_t=no
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10979 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10980 if test $ac_cv_type_error_t = yes; then
10982 cat >>confdefs.h <<_ACEOF
10983 #define HAVE_ERROR_T 1
10984 _ACEOF
10987 else
10989 cat >>confdefs.h <<\_ACEOF
10990 #define error_t int
10991 _ACEOF
11001 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009 cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h. */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11017 #define $ac_func innocuous_$ac_func
11019 /* System header to define __stub macros and hopefully few prototypes,
11020 which can conflict with char $ac_func (); below.
11021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022 <limits.h> exists even on freestanding compilers. */
11024 #ifdef __STDC__
11025 # include <limits.h>
11026 #else
11027 # include <assert.h>
11028 #endif
11030 #undef $ac_func
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char $ac_func ();
11039 /* The GNU C library defines this for functions which it implements
11040 to always fail with ENOSYS. Some functions are actually named
11041 something starting with __ and the normal name is an alias. */
11042 #if defined __stub_$ac_func || defined __stub___$ac_func
11043 choke me
11044 #endif
11047 main ()
11049 return $ac_func ();
11051 return 0;
11053 _ACEOF
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (ac_try="$ac_link"
11056 case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059 esac
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_link") 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11069 { (case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_try") 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; } &&
11078 { ac_try='test -s conftest$ac_exeext'
11079 { (case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_try") 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 eval "$as_ac_var=yes"
11089 else
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11093 eval "$as_ac_var=no"
11096 rm -f core conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11099 ac_res=`eval echo '${'$as_ac_var'}'`
11100 { echo "$as_me:$LINENO: result: $ac_res" >&5
11101 echo "${ECHO_T}$ac_res" >&6; }
11102 if test `eval echo '${'$as_ac_var'}'` = yes; then
11103 cat >>confdefs.h <<_ACEOF
11104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11105 _ACEOF
11108 done
11137 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11138 stdio.h unistd.h
11140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 ac_res=`eval echo '${'$as_ac_Header'}'`
11148 { echo "$as_me:$LINENO: result: $ac_res" >&5
11149 echo "${ECHO_T}$ac_res" >&6; }
11150 else
11151 # Is the header compilable?
11152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 $ac_includes_default
11161 #include <$ac_header>
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_compile") 2>conftest.er1
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_header_compiler=yes
11198 else
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_header_compiler=no
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11207 echo "${ECHO_T}$ac_header_compiler" >&6; }
11209 # Is the header present?
11210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 #include <$ac_header>
11219 _ACEOF
11220 if { (ac_try="$ac_cpp conftest.$ac_ext"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } >/dev/null; then
11233 if test -s conftest.err; then
11234 ac_cpp_err=$ac_c_preproc_warn_flag
11235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11236 else
11237 ac_cpp_err=
11239 else
11240 ac_cpp_err=yes
11242 if test -z "$ac_cpp_err"; then
11243 ac_header_preproc=yes
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_header_preproc=no
11251 rm -f conftest.err conftest.$ac_ext
11252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11253 echo "${ECHO_T}$ac_header_preproc" >&6; }
11255 # So? What about this header?
11256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11257 yes:no: )
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11262 ac_header_preproc=yes
11264 no:yes:* )
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11277 ( cat <<\_ASBOX
11278 ## ----------------------------------- ##
11279 ## Report this to llvmbugs@cs.uiuc.edu ##
11280 ## ----------------------------------- ##
11281 _ASBOX
11282 ) | sed "s/^/$as_me: WARNING: /" >&2
11284 esac
11285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 eval "$as_ac_Header=\$ac_header_preproc"
11292 ac_res=`eval echo '${'$as_ac_Header'}'`
11293 { echo "$as_me:$LINENO: result: $ac_res" >&5
11294 echo "${ECHO_T}$ac_res" >&6; }
11297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300 _ACEOF
11304 done
11310 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321 echo "${ECHO_T}$ac_res" >&6; }
11322 else
11323 # Is the header compilable?
11324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h. */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11333 #include <$ac_header>
11334 _ACEOF
11335 rm -f conftest.$ac_objext
11336 if { (ac_try="$ac_compile"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11340 esac
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
11343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_header_compiler=yes
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11391 _ACEOF
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408 else
11409 ac_cpp_err=
11411 else
11412 ac_cpp_err=yes
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11416 else
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_preproc=no
11423 rm -f conftest.err conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 echo "${ECHO_T}$ac_header_preproc" >&6; }
11427 # So? What about this header?
11428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429 yes:no: )
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11436 no:yes:* )
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449 ( cat <<\_ASBOX
11450 ## ----------------------------------- ##
11451 ## Report this to llvmbugs@cs.uiuc.edu ##
11452 ## ----------------------------------- ##
11453 _ASBOX
11454 ) | sed "s/^/$as_me: WARNING: /" >&2
11456 esac
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 eval "$as_ac_Header=\$ac_header_preproc"
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472 _ACEOF
11476 done
11480 for ac_header in string.h strings.h
11482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 ac_res=`eval echo '${'$as_ac_Header'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 else
11493 # Is the header compilable?
11494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 $ac_includes_default
11503 #include <$ac_header>
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (ac_try="$ac_compile"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_compile") 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533 esac
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_try") 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 ac_header_compiler=yes
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_header_compiler=no
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11549 echo "${ECHO_T}$ac_header_compiler" >&6; }
11551 # Is the header present?
11552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h. */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 #include <$ac_header>
11561 _ACEOF
11562 if { (ac_try="$ac_cpp conftest.$ac_ext"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null; then
11575 if test -s conftest.err; then
11576 ac_cpp_err=$ac_c_preproc_warn_flag
11577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578 else
11579 ac_cpp_err=
11581 else
11582 ac_cpp_err=yes
11584 if test -z "$ac_cpp_err"; then
11585 ac_header_preproc=yes
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ac_header_preproc=no
11593 rm -f conftest.err conftest.$ac_ext
11594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11595 echo "${ECHO_T}$ac_header_preproc" >&6; }
11597 # So? What about this header?
11598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11599 yes:no: )
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11604 ac_header_preproc=yes
11606 no:yes:* )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11619 ( cat <<\_ASBOX
11620 ## ----------------------------------- ##
11621 ## Report this to llvmbugs@cs.uiuc.edu ##
11622 ## ----------------------------------- ##
11623 _ASBOX
11624 ) | sed "s/^/$as_me: WARNING: /" >&2
11626 esac
11627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632 eval "$as_ac_Header=\$ac_header_preproc"
11634 ac_res=`eval echo '${'$as_ac_Header'}'`
11635 { echo "$as_me:$LINENO: result: $ac_res" >&5
11636 echo "${ECHO_T}$ac_res" >&6; }
11639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642 _ACEOF
11643 break
11646 done
11651 for ac_func in strchr index
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667 #define $ac_func innocuous_$ac_func
11669 /* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11674 #ifdef __STDC__
11675 # include <limits.h>
11676 #else
11677 # include <assert.h>
11678 #endif
11680 #undef $ac_func
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char $ac_func ();
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 choke me
11694 #endif
11697 main ()
11699 return $ac_func ();
11701 return 0;
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 eval "$as_ac_var=yes"
11739 else
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 eval "$as_ac_var=no"
11746 rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11749 ac_res=`eval echo '${'$as_ac_var'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 _ACEOF
11756 break
11758 done
11762 for ac_func in strrchr rindex
11764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11778 #define $ac_func innocuous_$ac_func
11780 /* System header to define __stub macros and hopefully few prototypes,
11781 which can conflict with char $ac_func (); below.
11782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 <limits.h> exists even on freestanding compilers. */
11785 #ifdef __STDC__
11786 # include <limits.h>
11787 #else
11788 # include <assert.h>
11789 #endif
11791 #undef $ac_func
11793 /* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11796 #ifdef __cplusplus
11797 extern "C"
11798 #endif
11799 char $ac_func ();
11800 /* The GNU C library defines this for functions which it implements
11801 to always fail with ENOSYS. Some functions are actually named
11802 something starting with __ and the normal name is an alias. */
11803 #if defined __stub_$ac_func || defined __stub___$ac_func
11804 choke me
11805 #endif
11808 main ()
11810 return $ac_func ();
11812 return 0;
11814 _ACEOF
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (ac_try="$ac_link"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_link") 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843 esac
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 eval "$as_ac_var=yes"
11850 else
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 eval "$as_ac_var=no"
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11860 ac_res=`eval echo '${'$as_ac_var'}'`
11861 { echo "$as_me:$LINENO: result: $ac_res" >&5
11862 echo "${ECHO_T}$ac_res" >&6; }
11863 if test `eval echo '${'$as_ac_var'}'` = yes; then
11864 cat >>confdefs.h <<_ACEOF
11865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866 _ACEOF
11867 break
11869 done
11873 for ac_func in memcpy bcopy
11875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11896 #ifdef __STDC__
11897 # include <limits.h>
11898 #else
11899 # include <assert.h>
11900 #endif
11902 #undef $ac_func
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char $ac_func ();
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11915 choke me
11916 #endif
11919 main ()
11921 return $ac_func ();
11923 return 0;
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944 esac
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_try") 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_try") 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 eval "$as_ac_var=yes"
11961 else
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 eval "$as_ac_var=no"
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11971 ac_res=`eval echo '${'$as_ac_var'}'`
11972 { echo "$as_me:$LINENO: result: $ac_res" >&5
11973 echo "${ECHO_T}$ac_res" >&6; }
11974 if test `eval echo '${'$as_ac_var'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977 _ACEOF
11978 break
11980 done
11984 for ac_func in memmove strcmp
11986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12000 #define $ac_func innocuous_$ac_func
12002 /* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func (); below.
12004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 <limits.h> exists even on freestanding compilers. */
12007 #ifdef __STDC__
12008 # include <limits.h>
12009 #else
12010 # include <assert.h>
12011 #endif
12013 #undef $ac_func
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 char $ac_func ();
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined __stub_$ac_func || defined __stub___$ac_func
12026 choke me
12027 #endif
12030 main ()
12032 return $ac_func ();
12034 return 0;
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065 esac
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 eval "$as_ac_var=yes"
12072 else
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 eval "$as_ac_var=no"
12079 rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12082 ac_res=`eval echo '${'$as_ac_var'}'`
12083 { echo "$as_me:$LINENO: result: $ac_res" >&5
12084 echo "${ECHO_T}$ac_res" >&6; }
12085 if test `eval echo '${'$as_ac_var'}'` = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12088 _ACEOF
12091 done
12096 for ac_func in closedir opendir readdir
12098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12112 #define $ac_func innocuous_$ac_func
12114 /* System header to define __stub macros and hopefully few prototypes,
12115 which can conflict with char $ac_func (); below.
12116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117 <limits.h> exists even on freestanding compilers. */
12119 #ifdef __STDC__
12120 # include <limits.h>
12121 #else
12122 # include <assert.h>
12123 #endif
12125 #undef $ac_func
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12130 #ifdef __cplusplus
12131 extern "C"
12132 #endif
12133 char $ac_func ();
12134 /* The GNU C library defines this for functions which it implements
12135 to always fail with ENOSYS. Some functions are actually named
12136 something starting with __ and the normal name is an alias. */
12137 #if defined __stub_$ac_func || defined __stub___$ac_func
12138 choke me
12139 #endif
12142 main ()
12144 return $ac_func ();
12146 return 0;
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 eval "$as_ac_var=yes"
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12191 rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12194 ac_res=`eval echo '${'$as_ac_var'}'`
12195 { echo "$as_me:$LINENO: result: $ac_res" >&5
12196 echo "${ECHO_T}$ac_res" >&6; }
12197 if test `eval echo '${'$as_ac_var'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200 _ACEOF
12203 done
12206 # Check whether --enable-shared was given.
12207 if test "${enable_shared+set}" = set; then
12208 enableval=$enable_shared; p=${PACKAGE-default}
12209 case $enableval in
12210 yes) enable_shared=yes ;;
12211 no) enable_shared=no ;;
12213 enable_shared=no
12214 # Look at the argument we got. We use all the common list separators.
12215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12216 for pkg in $enableval; do
12217 IFS="$lt_save_ifs"
12218 if test "X$pkg" = "X$p"; then
12219 enable_shared=yes
12221 done
12222 IFS="$lt_save_ifs"
12224 esac
12225 else
12226 enable_shared=yes
12230 # Check whether --enable-static was given.
12231 if test "${enable_static+set}" = set; then
12232 enableval=$enable_static; p=${PACKAGE-default}
12233 case $enableval in
12234 yes) enable_static=yes ;;
12235 no) enable_static=no ;;
12237 enable_static=no
12238 # Look at the argument we got. We use all the common list separators.
12239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12240 for pkg in $enableval; do
12241 IFS="$lt_save_ifs"
12242 if test "X$pkg" = "X$p"; then
12243 enable_static=yes
12245 done
12246 IFS="$lt_save_ifs"
12248 esac
12249 else
12250 enable_static=yes
12254 # Check whether --enable-fast-install was given.
12255 if test "${enable_fast_install+set}" = set; then
12256 enableval=$enable_fast_install; p=${PACKAGE-default}
12257 case $enableval in
12258 yes) enable_fast_install=yes ;;
12259 no) enable_fast_install=no ;;
12261 enable_fast_install=no
12262 # Look at the argument we got. We use all the common list separators.
12263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12264 for pkg in $enableval; do
12265 IFS="$lt_save_ifs"
12266 if test "X$pkg" = "X$p"; then
12267 enable_fast_install=yes
12269 done
12270 IFS="$lt_save_ifs"
12272 esac
12273 else
12274 enable_fast_install=yes
12278 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12279 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12280 if test "${lt_cv_path_SED+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 # Loop through the user's path and test for sed and gsed.
12284 # Then use that list of sed's as ones to test for truncation.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for lt_ac_prog in sed gsed; do
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12293 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12295 done
12296 done
12297 done
12298 lt_ac_max=0
12299 lt_ac_count=0
12300 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12301 # along with /bin/sed that truncates output.
12302 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12303 test ! -f $lt_ac_sed && continue
12304 cat /dev/null > conftest.in
12305 lt_ac_count=0
12306 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12307 # Check for GNU sed and select it if it is found.
12308 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12309 lt_cv_path_SED=$lt_ac_sed
12310 break
12312 while true; do
12313 cat conftest.in conftest.in >conftest.tmp
12314 mv conftest.tmp conftest.in
12315 cp conftest.in conftest.nl
12316 echo >>conftest.nl
12317 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12318 cmp -s conftest.out conftest.nl || break
12319 # 10000 chars as input seems more than enough
12320 test $lt_ac_count -gt 10 && break
12321 lt_ac_count=`expr $lt_ac_count + 1`
12322 if test $lt_ac_count -gt $lt_ac_max; then
12323 lt_ac_max=$lt_ac_count
12324 lt_cv_path_SED=$lt_ac_sed
12326 done
12327 done
12331 SED=$lt_cv_path_SED
12332 { echo "$as_me:$LINENO: result: $SED" >&5
12333 echo "${ECHO_T}$SED" >&6; }
12336 # Check whether --with-gnu-ld was given.
12337 if test "${with_gnu_ld+set}" = set; then
12338 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12339 else
12340 with_gnu_ld=no
12343 ac_prog=ld
12344 if test "$GCC" = yes; then
12345 # Check if gcc -print-prog-name=ld gives a path.
12346 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12347 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12348 case $host in
12349 *-*-mingw*)
12350 # gcc leaves a trailing carriage return which upsets mingw
12351 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12353 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12354 esac
12355 case $ac_prog in
12356 # Accept absolute paths.
12357 [\\/]* | ?:[\\/]*)
12358 re_direlt='/[^/][^/]*/\.\./'
12359 # Canonicalize the pathname of ld
12360 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12361 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12362 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12363 done
12364 test -z "$LD" && LD="$ac_prog"
12367 # If it fails, then pretend we aren't using GCC.
12368 ac_prog=ld
12371 # If it is relative, then search for the first ld in PATH.
12372 with_gnu_ld=unknown
12374 esac
12375 elif test "$with_gnu_ld" = yes; then
12376 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12377 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12378 else
12379 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12380 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12382 if test "${lt_cv_path_LD+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 if test -z "$LD"; then
12386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12387 for ac_dir in $PATH; do
12388 IFS="$lt_save_ifs"
12389 test -z "$ac_dir" && ac_dir=.
12390 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12391 lt_cv_path_LD="$ac_dir/$ac_prog"
12392 # Check to see if the program is GNU ld. I'd rather use --version,
12393 # but apparently some variants of GNU ld only accept -v.
12394 # Break only if it was the GNU/non-GNU ld that we prefer.
12395 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12396 *GNU* | *'with BFD'*)
12397 test "$with_gnu_ld" != no && break
12400 test "$with_gnu_ld" != yes && break
12402 esac
12404 done
12405 IFS="$lt_save_ifs"
12406 else
12407 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12411 LD="$lt_cv_path_LD"
12412 if test -n "$LD"; then
12413 { echo "$as_me:$LINENO: result: $LD" >&5
12414 echo "${ECHO_T}$LD" >&6; }
12415 else
12416 { echo "$as_me:$LINENO: result: no" >&5
12417 echo "${ECHO_T}no" >&6; }
12419 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12420 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12421 { (exit 1); exit 1; }; }
12422 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12423 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12424 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12428 case `$LD -v 2>&1 </dev/null` in
12429 *GNU* | *'with BFD'*)
12430 lt_cv_prog_gnu_ld=yes
12433 lt_cv_prog_gnu_ld=no
12435 esac
12437 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12438 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12439 with_gnu_ld=$lt_cv_prog_gnu_ld
12442 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12443 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12444 if test "${lt_cv_ld_reload_flag+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447 lt_cv_ld_reload_flag='-r'
12449 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12450 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12451 reload_flag=$lt_cv_ld_reload_flag
12452 case $reload_flag in
12453 "" | " "*) ;;
12454 *) reload_flag=" $reload_flag" ;;
12455 esac
12456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12457 case $host_os in
12458 darwin*)
12459 if test "$GCC" = yes; then
12460 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12461 else
12462 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12465 esac
12467 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12468 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12469 if test "${lt_cv_deplibs_check_method+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472 lt_cv_file_magic_cmd='$MAGIC_CMD'
12473 lt_cv_file_magic_test_file=
12474 lt_cv_deplibs_check_method='unknown'
12475 # Need to set the preceding variable on all platforms that support
12476 # interlibrary dependencies.
12477 # 'none' -- dependencies not supported.
12478 # `unknown' -- same as none, but documents that we really don't know.
12479 # 'pass_all' -- all dependencies passed with no checks.
12480 # 'test_compile' -- check by making test program.
12481 # 'file_magic [[regex]]' -- check by looking for files in library path
12482 # which responds to the $file_magic_cmd with a given extended regex.
12483 # If you have `file' or equivalent on your system and you're not sure
12484 # whether `pass_all' will *always* work, you probably want this one.
12486 case $host_os in
12487 aix4* | aix5*)
12488 lt_cv_deplibs_check_method=pass_all
12491 beos*)
12492 lt_cv_deplibs_check_method=pass_all
12495 bsdi[45]*)
12496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12497 lt_cv_file_magic_cmd='/usr/bin/file -L'
12498 lt_cv_file_magic_test_file=/shlib/libc.so
12501 cygwin*)
12502 # func_win32_libid is a shell function defined in ltmain.sh
12503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12504 lt_cv_file_magic_cmd='func_win32_libid'
12507 mingw* | pw32*)
12508 # Base MSYS/MinGW do not provide the 'file' command needed by
12509 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12510 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12511 lt_cv_file_magic_cmd='$OBJDUMP -f'
12514 darwin* | rhapsody*)
12515 lt_cv_deplibs_check_method=pass_all
12518 freebsd* | kfreebsd*-gnu | dragonfly*)
12519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12520 case $host_cpu in
12521 i*86 )
12522 # Not sure whether the presence of OpenBSD here was a mistake.
12523 # Let's accept both of them until this is cleared up.
12524 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12525 lt_cv_file_magic_cmd=/usr/bin/file
12526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12528 esac
12529 else
12530 lt_cv_deplibs_check_method=pass_all
12534 gnu*)
12535 lt_cv_deplibs_check_method=pass_all
12538 hpux10.20* | hpux11*)
12539 lt_cv_file_magic_cmd=/usr/bin/file
12540 case $host_cpu in
12541 ia64*)
12542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12543 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12545 hppa*64*)
12546 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]'
12547 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12551 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12553 esac
12556 interix3*)
12557 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12561 irix5* | irix6* | nonstopux*)
12562 case $LD in
12563 *-32|*"-32 ") libmagic=32-bit;;
12564 *-n32|*"-n32 ") libmagic=N32;;
12565 *-64|*"-64 ") libmagic=64-bit;;
12566 *) libmagic=never-match;;
12567 esac
12568 lt_cv_deplibs_check_method=pass_all
12571 # This must be Linux ELF.
12572 linux*)
12573 lt_cv_deplibs_check_method=pass_all
12576 netbsd*)
12577 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12579 else
12580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12584 newos6*)
12585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12586 lt_cv_file_magic_cmd=/usr/bin/file
12587 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12590 nto-qnx*)
12591 lt_cv_deplibs_check_method=unknown
12594 openbsd*)
12595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12597 else
12598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12602 osf3* | osf4* | osf5*)
12603 lt_cv_deplibs_check_method=pass_all
12606 solaris*)
12607 lt_cv_deplibs_check_method=pass_all
12610 sysv4 | sysv4.3*)
12611 case $host_vendor in
12612 motorola)
12613 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]'
12614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12616 ncr)
12617 lt_cv_deplibs_check_method=pass_all
12619 sequent)
12620 lt_cv_file_magic_cmd='/bin/file'
12621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12623 sni)
12624 lt_cv_file_magic_cmd='/bin/file'
12625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12626 lt_cv_file_magic_test_file=/lib/libc.so
12628 siemens)
12629 lt_cv_deplibs_check_method=pass_all
12632 lt_cv_deplibs_check_method=pass_all
12634 esac
12637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12638 lt_cv_deplibs_check_method=pass_all
12640 esac
12643 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12645 file_magic_cmd=$lt_cv_file_magic_cmd
12646 deplibs_check_method=$lt_cv_deplibs_check_method
12647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12651 # If no C compiler was specified, use CC.
12652 LTCC=${LTCC-"$CC"}
12654 # If no C compiler flags were specified, use CFLAGS.
12655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12657 # Allow CC to be a program name with arguments.
12658 compiler=$CC
12660 # Check whether --enable-libtool-lock was given.
12661 if test "${enable_libtool_lock+set}" = set; then
12662 enableval=$enable_libtool_lock;
12665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12667 # Some flags need to be propagated to the compiler or linker for good
12668 # libtool support.
12669 case $host in
12670 ia64-*-hpux*)
12671 # Find out which ABI we are using.
12672 echo 'int i;' > conftest.$ac_ext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12674 (eval $ac_compile) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; then
12678 case `/usr/bin/file conftest.$ac_objext` in
12679 *ELF-32*)
12680 HPUX_IA64_MODE="32"
12682 *ELF-64*)
12683 HPUX_IA64_MODE="64"
12685 esac
12687 rm -rf conftest*
12689 *-*-irix6*)
12690 # Find out which ABI we are using.
12691 echo '#line 12691 "configure"' > conftest.$ac_ext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; then
12697 if test "$lt_cv_prog_gnu_ld" = yes; then
12698 case `/usr/bin/file conftest.$ac_objext` in
12699 *32-bit*)
12700 LD="${LD-ld} -melf32bsmip"
12702 *N32*)
12703 LD="${LD-ld} -melf32bmipn32"
12705 *64-bit*)
12706 LD="${LD-ld} -melf64bmip"
12708 esac
12709 else
12710 case `/usr/bin/file conftest.$ac_objext` in
12711 *32-bit*)
12712 LD="${LD-ld} -32"
12714 *N32*)
12715 LD="${LD-ld} -n32"
12717 *64-bit*)
12718 LD="${LD-ld} -64"
12720 esac
12723 rm -rf conftest*
12726 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12727 # Find out which ABI we are using.
12728 echo 'int i;' > conftest.$ac_ext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; then
12734 case `/usr/bin/file conftest.o` in
12735 *32-bit*)
12736 case $host in
12737 x86_64-*linux*)
12738 LD="${LD-ld} -m elf_i386"
12740 ppc64-*linux*|powerpc64-*linux*)
12741 LD="${LD-ld} -m elf32ppclinux"
12743 s390x-*linux*)
12744 LD="${LD-ld} -m elf_s390"
12746 sparc64-*linux*)
12747 LD="${LD-ld} -m elf32_sparc"
12749 esac
12751 *64-bit*)
12752 case $host in
12753 x86_64-*linux*)
12754 LD="${LD-ld} -m elf_x86_64"
12756 ppc*-*linux*|powerpc*-*linux*)
12757 LD="${LD-ld} -m elf64ppc"
12759 s390*-*linux*)
12760 LD="${LD-ld} -m elf64_s390"
12762 sparc*-*linux*)
12763 LD="${LD-ld} -m elf64_sparc"
12765 esac
12767 esac
12769 rm -rf conftest*
12772 *-*-sco3.2v5*)
12773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12774 SAVE_CFLAGS="$CFLAGS"
12775 CFLAGS="$CFLAGS -belf"
12776 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12777 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12778 if test "${lt_cv_cc_needs_belf+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 ac_ext=c
12782 ac_cpp='$CPP $CPPFLAGS'
12783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12795 main ()
12799 return 0;
12801 _ACEOF
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (ac_try="$ac_link"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_link") 2>conftest.er1
12810 ac_status=$?
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12817 { (case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_try") 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } &&
12826 { ac_try='test -s conftest$ac_exeext'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 lt_cv_cc_needs_belf=yes
12837 else
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 lt_cv_cc_needs_belf=no
12844 rm -f core conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846 ac_ext=c
12847 ac_cpp='$CPP $CPPFLAGS'
12848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12853 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12854 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12855 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12856 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12857 CFLAGS="$SAVE_CFLAGS"
12860 sparc*-*solaris*)
12861 # Find out which ABI we are using.
12862 echo 'int i;' > conftest.$ac_ext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; then
12868 case `/usr/bin/file conftest.o` in
12869 *64-bit*)
12870 case $lt_cv_prog_gnu_ld in
12871 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12872 *) LD="${LD-ld} -64" ;;
12873 esac
12875 esac
12877 rm -rf conftest*
12881 esac
12883 need_locks="$enable_libtool_lock"
12888 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12889 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12890 (test "X$CXX" != "Xg++"))) ; then
12891 ac_ext=cpp
12892 ac_cpp='$CXXCPP $CPPFLAGS'
12893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12896 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12897 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12898 if test -z "$CXXCPP"; then
12899 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902 # Double quotes because CXXCPP needs to be expanded
12903 for CXXCPP in "$CXX -E" "/lib/cpp"
12905 ac_preproc_ok=false
12906 for ac_cxx_preproc_warn_flag in '' yes
12908 # Use a header file that comes with gcc, so configuring glibc
12909 # with a fresh cross-compiler works.
12910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 # <limits.h> exists even on freestanding compilers.
12912 # On the NeXT, cc -E runs the code through the compiler's parser,
12913 # not just through cpp. "Syntax error" is here to catch this case.
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #ifdef __STDC__
12921 # include <limits.h>
12922 #else
12923 # include <assert.h>
12924 #endif
12925 Syntax error
12926 _ACEOF
12927 if { (ac_try="$ac_cpp conftest.$ac_ext"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12934 ac_status=$?
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } >/dev/null; then
12940 if test -s conftest.err; then
12941 ac_cpp_err=$ac_cxx_preproc_warn_flag
12942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12943 else
12944 ac_cpp_err=
12946 else
12947 ac_cpp_err=yes
12949 if test -z "$ac_cpp_err"; then
12951 else
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 # Broken: fails on valid input.
12956 continue
12959 rm -f conftest.err conftest.$ac_ext
12961 # OK, works on sane cases. Now check whether nonexistent headers
12962 # can be detected and how.
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 #include <ac_nonexistent.h>
12970 _ACEOF
12971 if { (ac_try="$ac_cpp conftest.$ac_ext"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } >/dev/null; then
12984 if test -s conftest.err; then
12985 ac_cpp_err=$ac_cxx_preproc_warn_flag
12986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12987 else
12988 ac_cpp_err=
12990 else
12991 ac_cpp_err=yes
12993 if test -z "$ac_cpp_err"; then
12994 # Broken: success on invalid input.
12995 continue
12996 else
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13000 # Passes both tests.
13001 ac_preproc_ok=:
13002 break
13005 rm -f conftest.err conftest.$ac_ext
13007 done
13008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13009 rm -f conftest.err conftest.$ac_ext
13010 if $ac_preproc_ok; then
13011 break
13014 done
13015 ac_cv_prog_CXXCPP=$CXXCPP
13018 CXXCPP=$ac_cv_prog_CXXCPP
13019 else
13020 ac_cv_prog_CXXCPP=$CXXCPP
13022 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13023 echo "${ECHO_T}$CXXCPP" >&6; }
13024 ac_preproc_ok=false
13025 for ac_cxx_preproc_warn_flag in '' yes
13027 # Use a header file that comes with gcc, so configuring glibc
13028 # with a fresh cross-compiler works.
13029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13030 # <limits.h> exists even on freestanding compilers.
13031 # On the NeXT, cc -E runs the code through the compiler's parser,
13032 # not just through cpp. "Syntax error" is here to catch this case.
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 #ifdef __STDC__
13040 # include <limits.h>
13041 #else
13042 # include <assert.h>
13043 #endif
13044 Syntax error
13045 _ACEOF
13046 if { (ac_try="$ac_cpp conftest.$ac_ext"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } >/dev/null; then
13059 if test -s conftest.err; then
13060 ac_cpp_err=$ac_cxx_preproc_warn_flag
13061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13062 else
13063 ac_cpp_err=
13065 else
13066 ac_cpp_err=yes
13068 if test -z "$ac_cpp_err"; then
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 # Broken: fails on valid input.
13075 continue
13078 rm -f conftest.err conftest.$ac_ext
13080 # OK, works on sane cases. Now check whether nonexistent headers
13081 # can be detected and how.
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h. */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 #include <ac_nonexistent.h>
13089 _ACEOF
13090 if { (ac_try="$ac_cpp conftest.$ac_ext"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } >/dev/null; then
13103 if test -s conftest.err; then
13104 ac_cpp_err=$ac_cxx_preproc_warn_flag
13105 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13106 else
13107 ac_cpp_err=
13109 else
13110 ac_cpp_err=yes
13112 if test -z "$ac_cpp_err"; then
13113 # Broken: success on invalid input.
13114 continue
13115 else
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13119 # Passes both tests.
13120 ac_preproc_ok=:
13121 break
13124 rm -f conftest.err conftest.$ac_ext
13126 done
13127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13128 rm -f conftest.err conftest.$ac_ext
13129 if $ac_preproc_ok; then
13131 else
13132 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13133 See \`config.log' for more details." >&5
13134 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13135 See \`config.log' for more details." >&2;}
13136 { (exit 1); exit 1; }; }
13139 ac_ext=cpp
13140 ac_cpp='$CXXCPP $CPPFLAGS'
13141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13148 ac_ext=f
13149 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13150 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13152 if test -n "$ac_tool_prefix"; then
13153 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
13155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13159 if test "${ac_cv_prog_F77+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 if test -n "$F77"; then
13163 ac_cv_prog_F77="$F77" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13176 done
13177 done
13178 IFS=$as_save_IFS
13182 F77=$ac_cv_prog_F77
13183 if test -n "$F77"; then
13184 { echo "$as_me:$LINENO: result: $F77" >&5
13185 echo "${ECHO_T}$F77" >&6; }
13186 else
13187 { echo "$as_me:$LINENO: result: no" >&5
13188 echo "${ECHO_T}no" >&6; }
13192 test -n "$F77" && break
13193 done
13195 if test -z "$F77"; then
13196 ac_ct_F77=$F77
13197 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
13199 # Extract the first word of "$ac_prog", so it can be a program name with args.
13200 set dummy $ac_prog; ac_word=$2
13201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13203 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206 if test -n "$ac_ct_F77"; then
13207 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13208 else
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13212 IFS=$as_save_IFS
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13216 ac_cv_prog_ac_ct_F77="$ac_prog"
13217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13218 break 2
13220 done
13221 done
13222 IFS=$as_save_IFS
13226 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13227 if test -n "$ac_ct_F77"; then
13228 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13229 echo "${ECHO_T}$ac_ct_F77" >&6; }
13230 else
13231 { echo "$as_me:$LINENO: result: no" >&5
13232 echo "${ECHO_T}no" >&6; }
13236 test -n "$ac_ct_F77" && break
13237 done
13239 if test "x$ac_ct_F77" = x; then
13240 F77=""
13241 else
13242 case $cross_compiling:$ac_tool_warned in
13243 yes:)
13244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13245 whose name does not start with the host triplet. If you think this
13246 configuration is useful to you, please write to autoconf@gnu.org." >&5
13247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13248 whose name does not start with the host triplet. If you think this
13249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13250 ac_tool_warned=yes ;;
13251 esac
13252 F77=$ac_ct_F77
13257 # Provide some information about the compiler.
13258 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13259 ac_compiler=`set X $ac_compile; echo $2`
13260 { (ac_try="$ac_compiler --version >&5"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compiler --version >&5") 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }
13270 { (ac_try="$ac_compiler -v >&5"
13271 case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274 esac
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_compiler -v >&5") 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }
13280 { (ac_try="$ac_compiler -V >&5"
13281 case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13284 esac
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_compiler -V >&5") 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }
13290 rm -f a.out
13292 # If we don't use `.F' as extension, the preprocessor is not run on the
13293 # input file. (Note that this only needs to work for GNU compilers.)
13294 ac_save_ext=$ac_ext
13295 ac_ext=F
13296 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13297 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13298 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301 cat >conftest.$ac_ext <<_ACEOF
13302 program main
13303 #ifndef __GNUC__
13304 choke me
13305 #endif
13308 _ACEOF
13309 rm -f conftest.$ac_objext
13310 if { (ac_try="$ac_compile"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_compile") 2>conftest.er1
13317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest.$ac_objext'
13334 { (case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_try") 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }; then
13343 ac_compiler_gnu=yes
13344 else
13345 echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 ac_compiler_gnu=no
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13355 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13356 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13357 ac_ext=$ac_save_ext
13358 ac_test_FFLAGS=${FFLAGS+set}
13359 ac_save_FFLAGS=$FFLAGS
13360 FFLAGS=
13361 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13362 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13363 if test "${ac_cv_prog_f77_g+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366 FFLAGS=-g
13367 cat >conftest.$ac_ext <<_ACEOF
13368 program main
13371 _ACEOF
13372 rm -f conftest.$ac_objext
13373 if { (ac_try="$ac_compile"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_compile") 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13387 { (case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13390 esac
13391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_try") 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest.$ac_objext'
13397 { (case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_try") 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_cv_prog_f77_g=yes
13407 else
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 ac_cv_prog_f77_g=no
13414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13418 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13419 if test "$ac_test_FFLAGS" = set; then
13420 FFLAGS=$ac_save_FFLAGS
13421 elif test $ac_cv_prog_f77_g = yes; then
13422 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13423 FFLAGS="-g -O2"
13424 else
13425 FFLAGS="-g"
13427 else
13428 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13429 FFLAGS="-O2"
13430 else
13431 FFLAGS=
13435 G77=`test $ac_compiler_gnu = yes && echo yes`
13436 ac_ext=c
13437 ac_cpp='$CPP $CPPFLAGS'
13438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13444 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13446 # find the maximum length of command line arguments
13447 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13448 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13449 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13453 teststring="ABCD"
13455 case $build_os in
13456 msdosdjgpp*)
13457 # On DJGPP, this test can blow up pretty badly due to problems in libc
13458 # (any single argument exceeding 2000 bytes causes a buffer overrun
13459 # during glob expansion). Even if it were fixed, the result of this
13460 # check would be larger than it should be.
13461 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13464 gnu*)
13465 # Under GNU Hurd, this test is not required because there is
13466 # no limit to the length of command line arguments.
13467 # Libtool will interpret -1 as no limit whatsoever
13468 lt_cv_sys_max_cmd_len=-1;
13471 cygwin* | mingw*)
13472 # On Win9x/ME, this test blows up -- it succeeds, but takes
13473 # about 5 minutes as the teststring grows exponentially.
13474 # Worse, since 9x/ME are not pre-emptively multitasking,
13475 # you end up with a "frozen" computer, even though with patience
13476 # the test eventually succeeds (with a max line length of 256k).
13477 # Instead, let's just punt: use the minimum linelength reported by
13478 # all of the supported platforms: 8192 (on NT/2K/XP).
13479 lt_cv_sys_max_cmd_len=8192;
13482 amigaos*)
13483 # On AmigaOS with pdksh, this test takes hours, literally.
13484 # So we just punt and use a minimum line length of 8192.
13485 lt_cv_sys_max_cmd_len=8192;
13488 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13489 # This has been around since 386BSD, at least. Likely further.
13490 if test -x /sbin/sysctl; then
13491 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13492 elif test -x /usr/sbin/sysctl; then
13493 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13494 else
13495 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13497 # And add a safety zone
13498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13502 interix*)
13503 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13504 lt_cv_sys_max_cmd_len=196608
13507 osf*)
13508 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13509 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13510 # nice to cause kernel panics so lets avoid the loop below.
13511 # First set a reasonable default.
13512 lt_cv_sys_max_cmd_len=16384
13514 if test -x /sbin/sysconfig; then
13515 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13516 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13517 esac
13520 sco3.2v5*)
13521 lt_cv_sys_max_cmd_len=102400
13523 sysv5* | sco5v6* | sysv4.2uw2*)
13524 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13525 if test -n "$kargmax"; then
13526 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13527 else
13528 lt_cv_sys_max_cmd_len=32768
13532 # If test is not a shell built-in, we'll probably end up computing a
13533 # maximum length that is only half of the actual maximum length, but
13534 # we can't tell.
13535 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13536 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13537 = "XX$teststring") >/dev/null 2>&1 &&
13538 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13539 lt_cv_sys_max_cmd_len=$new_result &&
13540 test $i != 17 # 1/2 MB should be enough
13542 i=`expr $i + 1`
13543 teststring=$teststring$teststring
13544 done
13545 teststring=
13546 # Add a significant safety factor because C++ compilers can tack on massive
13547 # amounts of additional arguments before passing them to the linker.
13548 # It appears as though 1/2 is a usable value.
13549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13551 esac
13555 if test -n $lt_cv_sys_max_cmd_len ; then
13556 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13557 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13558 else
13559 { echo "$as_me:$LINENO: result: none" >&5
13560 echo "${ECHO_T}none" >&6; }
13566 # Check for command to grab the raw symbol name followed by C symbol from nm.
13567 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13568 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13569 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13573 # These are sane defaults that work on at least a few old systems.
13574 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13576 # Character class describing NM global symbol codes.
13577 symcode='[BCDEGRST]'
13579 # Regexp to match symbols that can be accessed directly from C.
13580 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13582 # Transform an extracted symbol line into a proper C declaration
13583 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13585 # Transform an extracted symbol line into symbol name and symbol address
13586 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'"
13588 # Define system-specific variables.
13589 case $host_os in
13590 aix*)
13591 symcode='[BCDT]'
13593 cygwin* | mingw* | pw32*)
13594 symcode='[ABCDGISTW]'
13596 hpux*) # Its linker distinguishes data from code symbols
13597 if test "$host_cpu" = ia64; then
13598 symcode='[ABCDEGRST]'
13600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13601 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'"
13603 linux*)
13604 if test "$host_cpu" = ia64; then
13605 symcode='[ABCDGIRSTW]'
13606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13607 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'"
13610 irix* | nonstopux*)
13611 symcode='[BCDEGRST]'
13613 osf*)
13614 symcode='[BCDEGQRST]'
13616 solaris*)
13617 symcode='[BDRT]'
13619 sco3.2v5*)
13620 symcode='[DT]'
13622 sysv4.2uw2*)
13623 symcode='[DT]'
13625 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13626 symcode='[ABDT]'
13628 sysv4)
13629 symcode='[DFNSTU]'
13631 esac
13633 # Handle CRLF in mingw tool chain
13634 opt_cr=
13635 case $build_os in
13636 mingw*)
13637 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13639 esac
13641 # If we're using GNU nm, then use its standard symbol codes.
13642 case `$NM -V 2>&1` in
13643 *GNU* | *'with BFD'*)
13644 symcode='[ABCDGIRSTW]' ;;
13645 esac
13647 # Try without a prefix undercore, then with it.
13648 for ac_symprfx in "" "_"; do
13650 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13651 symxfrm="\\1 $ac_symprfx\\2 \\2"
13653 # Write the raw and C identifiers.
13654 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13656 # Check to see that the pipe works correctly.
13657 pipe_works=no
13659 rm -f conftest*
13660 cat > conftest.$ac_ext <<EOF
13661 #ifdef __cplusplus
13662 extern "C" {
13663 #endif
13664 char nm_test_var;
13665 void nm_test_func(){}
13666 #ifdef __cplusplus
13668 #endif
13669 int main(){nm_test_var='a';nm_test_func();return(0);}
13672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13673 (eval $ac_compile) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; then
13677 # Now try to grab the symbols.
13678 nlist=conftest.nm
13679 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13680 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } && test -s "$nlist"; then
13684 # Try sorting and uniquifying the output.
13685 if sort "$nlist" | uniq > "$nlist"T; then
13686 mv -f "$nlist"T "$nlist"
13687 else
13688 rm -f "$nlist"T
13691 # Make sure that we snagged all the symbols we need.
13692 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13693 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13694 cat <<EOF > conftest.$ac_ext
13695 #ifdef __cplusplus
13696 extern "C" {
13697 #endif
13700 # Now generate the symbol file.
13701 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13703 cat <<EOF >> conftest.$ac_ext
13704 #if defined (__STDC__) && __STDC__
13705 # define lt_ptr_t void *
13706 #else
13707 # define lt_ptr_t char *
13708 # define const
13709 #endif
13711 /* The mapping between symbol names and symbols. */
13712 const struct {
13713 const char *name;
13714 lt_ptr_t address;
13716 lt_preloaded_symbols[] =
13719 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13720 cat <<\EOF >> conftest.$ac_ext
13721 {0, (lt_ptr_t) 0}
13724 #ifdef __cplusplus
13726 #endif
13728 # Now try linking the two files.
13729 mv conftest.$ac_objext conftstm.$ac_objext
13730 lt_save_LIBS="$LIBS"
13731 lt_save_CFLAGS="$CFLAGS"
13732 LIBS="conftstm.$ac_objext"
13733 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735 (eval $ac_link) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13739 pipe_works=yes
13741 LIBS="$lt_save_LIBS"
13742 CFLAGS="$lt_save_CFLAGS"
13743 else
13744 echo "cannot find nm_test_func in $nlist" >&5
13746 else
13747 echo "cannot find nm_test_var in $nlist" >&5
13749 else
13750 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13752 else
13753 echo "$progname: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13756 rm -f conftest* conftst*
13758 # Do not use the global_symbol_pipe unless it works.
13759 if test "$pipe_works" = yes; then
13760 break
13761 else
13762 lt_cv_sys_global_symbol_pipe=
13764 done
13768 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13769 lt_cv_sys_global_symbol_to_cdecl=
13771 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13772 { echo "$as_me:$LINENO: result: failed" >&5
13773 echo "${ECHO_T}failed" >&6; }
13774 else
13775 { echo "$as_me:$LINENO: result: ok" >&5
13776 echo "${ECHO_T}ok" >&6; }
13779 { echo "$as_me:$LINENO: checking for objdir" >&5
13780 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13781 if test "${lt_cv_objdir+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784 rm -f .libs 2>/dev/null
13785 mkdir .libs 2>/dev/null
13786 if test -d .libs; then
13787 lt_cv_objdir=.libs
13788 else
13789 # MS-DOS does not allow filenames that begin with a dot.
13790 lt_cv_objdir=_libs
13792 rmdir .libs 2>/dev/null
13794 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13795 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13796 objdir=$lt_cv_objdir
13802 case $host_os in
13803 aix3*)
13804 # AIX sometimes has problems with the GCC collect2 program. For some
13805 # reason, if we set the COLLECT_NAMES environment variable, the problems
13806 # vanish in a puff of smoke.
13807 if test "X${COLLECT_NAMES+set}" != Xset; then
13808 COLLECT_NAMES=
13809 export COLLECT_NAMES
13812 esac
13814 # Sed substitution that helps us do robust quoting. It backslashifies
13815 # metacharacters that are still active within double-quoted strings.
13816 Xsed='sed -e 1s/^X//'
13817 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13819 # Same as above, but do not quote variable references.
13820 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13822 # Sed substitution to delay expansion of an escaped shell variable in a
13823 # double_quote_subst'ed string.
13824 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13826 # Sed substitution to avoid accidental globbing in evaled expressions
13827 no_glob_subst='s/\*/\\\*/g'
13829 # Constants:
13830 rm="rm -f"
13832 # Global variables:
13833 default_ofile=mklib
13834 can_build_shared=yes
13836 # All known linkers require a `.a' archive for static linking (except MSVC,
13837 # which needs '.lib').
13838 libext=a
13839 ltmain="$ac_aux_dir/ltmain.sh"
13840 ofile="$default_ofile"
13841 with_gnu_ld="$lt_cv_prog_gnu_ld"
13843 if test -n "$ac_tool_prefix"; then
13844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13845 set dummy ${ac_tool_prefix}ar; ac_word=$2
13846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13848 if test "${ac_cv_prog_AR+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851 if test -n "$AR"; then
13852 ac_cv_prog_AR="$AR" # Let the user override the test.
13853 else
13854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855 for as_dir in $PATH
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13861 ac_cv_prog_AR="${ac_tool_prefix}ar"
13862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13865 done
13866 done
13867 IFS=$as_save_IFS
13871 AR=$ac_cv_prog_AR
13872 if test -n "$AR"; then
13873 { echo "$as_me:$LINENO: result: $AR" >&5
13874 echo "${ECHO_T}$AR" >&6; }
13875 else
13876 { echo "$as_me:$LINENO: result: no" >&5
13877 echo "${ECHO_T}no" >&6; }
13882 if test -z "$ac_cv_prog_AR"; then
13883 ac_ct_AR=$AR
13884 # Extract the first word of "ar", so it can be a program name with args.
13885 set dummy ar; ac_word=$2
13886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13888 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 if test -n "$ac_ct_AR"; then
13892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13893 else
13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $PATH
13897 IFS=$as_save_IFS
13898 test -z "$as_dir" && as_dir=.
13899 for ac_exec_ext in '' $ac_executable_extensions; do
13900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13901 ac_cv_prog_ac_ct_AR="ar"
13902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13903 break 2
13905 done
13906 done
13907 IFS=$as_save_IFS
13911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13912 if test -n "$ac_ct_AR"; then
13913 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13914 echo "${ECHO_T}$ac_ct_AR" >&6; }
13915 else
13916 { echo "$as_me:$LINENO: result: no" >&5
13917 echo "${ECHO_T}no" >&6; }
13920 if test "x$ac_ct_AR" = x; then
13921 AR="false"
13922 else
13923 case $cross_compiling:$ac_tool_warned in
13924 yes:)
13925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13926 whose name does not start with the host triplet. If you think this
13927 configuration is useful to you, please write to autoconf@gnu.org." >&5
13928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13929 whose name does not start with the host triplet. If you think this
13930 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13931 ac_tool_warned=yes ;;
13932 esac
13933 AR=$ac_ct_AR
13935 else
13936 AR="$ac_cv_prog_AR"
13939 if test -n "$ac_tool_prefix"; then
13940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13941 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13944 if test "${ac_cv_prog_RANLIB+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947 if test -n "$RANLIB"; then
13948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13949 else
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13953 IFS=$as_save_IFS
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 break 2
13961 done
13962 done
13963 IFS=$as_save_IFS
13967 RANLIB=$ac_cv_prog_RANLIB
13968 if test -n "$RANLIB"; then
13969 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13970 echo "${ECHO_T}$RANLIB" >&6; }
13971 else
13972 { echo "$as_me:$LINENO: result: no" >&5
13973 echo "${ECHO_T}no" >&6; }
13978 if test -z "$ac_cv_prog_RANLIB"; then
13979 ac_ct_RANLIB=$RANLIB
13980 # Extract the first word of "ranlib", so it can be a program name with args.
13981 set dummy ranlib; ac_word=$2
13982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987 if test -n "$ac_ct_RANLIB"; then
13988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13989 else
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13993 IFS=$as_save_IFS
13994 test -z "$as_dir" && as_dir=.
13995 for ac_exec_ext in '' $ac_executable_extensions; do
13996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13997 ac_cv_prog_ac_ct_RANLIB="ranlib"
13998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 break 2
14001 done
14002 done
14003 IFS=$as_save_IFS
14007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14008 if test -n "$ac_ct_RANLIB"; then
14009 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14010 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14011 else
14012 { echo "$as_me:$LINENO: result: no" >&5
14013 echo "${ECHO_T}no" >&6; }
14016 if test "x$ac_ct_RANLIB" = x; then
14017 RANLIB=":"
14018 else
14019 case $cross_compiling:$ac_tool_warned in
14020 yes:)
14021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14022 whose name does not start with the host triplet. If you think this
14023 configuration is useful to you, please write to autoconf@gnu.org." >&5
14024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14025 whose name does not start with the host triplet. If you think this
14026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14027 ac_tool_warned=yes ;;
14028 esac
14029 RANLIB=$ac_ct_RANLIB
14031 else
14032 RANLIB="$ac_cv_prog_RANLIB"
14035 if test -n "$ac_tool_prefix"; then
14036 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14037 set dummy ${ac_tool_prefix}strip; ac_word=$2
14038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14040 if test "${ac_cv_prog_STRIP+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043 if test -n "$STRIP"; then
14044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14045 else
14046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047 for as_dir in $PATH
14049 IFS=$as_save_IFS
14050 test -z "$as_dir" && as_dir=.
14051 for ac_exec_ext in '' $ac_executable_extensions; do
14052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14053 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14055 break 2
14057 done
14058 done
14059 IFS=$as_save_IFS
14063 STRIP=$ac_cv_prog_STRIP
14064 if test -n "$STRIP"; then
14065 { echo "$as_me:$LINENO: result: $STRIP" >&5
14066 echo "${ECHO_T}$STRIP" >&6; }
14067 else
14068 { echo "$as_me:$LINENO: result: no" >&5
14069 echo "${ECHO_T}no" >&6; }
14074 if test -z "$ac_cv_prog_STRIP"; then
14075 ac_ct_STRIP=$STRIP
14076 # Extract the first word of "strip", so it can be a program name with args.
14077 set dummy strip; ac_word=$2
14078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14080 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083 if test -n "$ac_ct_STRIP"; then
14084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14085 else
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14089 IFS=$as_save_IFS
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14093 ac_cv_prog_ac_ct_STRIP="strip"
14094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14095 break 2
14097 done
14098 done
14099 IFS=$as_save_IFS
14103 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14104 if test -n "$ac_ct_STRIP"; then
14105 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14106 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14107 else
14108 { echo "$as_me:$LINENO: result: no" >&5
14109 echo "${ECHO_T}no" >&6; }
14112 if test "x$ac_ct_STRIP" = x; then
14113 STRIP=":"
14114 else
14115 case $cross_compiling:$ac_tool_warned in
14116 yes:)
14117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14118 whose name does not start with the host triplet. If you think this
14119 configuration is useful to you, please write to autoconf@gnu.org." >&5
14120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14121 whose name does not start with the host triplet. If you think this
14122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14123 ac_tool_warned=yes ;;
14124 esac
14125 STRIP=$ac_ct_STRIP
14127 else
14128 STRIP="$ac_cv_prog_STRIP"
14132 old_CC="$CC"
14133 old_CFLAGS="$CFLAGS"
14135 # Set sane defaults for various variables
14136 test -z "$AR" && AR=ar
14137 test -z "$AR_FLAGS" && AR_FLAGS=cru
14138 test -z "$AS" && AS=as
14139 test -z "$CC" && CC=cc
14140 test -z "$LTCC" && LTCC=$CC
14141 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14142 test -z "$DLLTOOL" && DLLTOOL=dlltool
14143 test -z "$LD" && LD=ld
14144 test -z "$LN_S" && LN_S="ln -s"
14145 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14146 test -z "$NM" && NM=nm
14147 test -z "$SED" && SED=sed
14148 test -z "$OBJDUMP" && OBJDUMP=objdump
14149 test -z "$RANLIB" && RANLIB=:
14150 test -z "$STRIP" && STRIP=:
14151 test -z "$ac_objext" && ac_objext=o
14153 # Determine commands to create old-style static archives.
14154 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14155 old_postinstall_cmds='chmod 644 $oldlib'
14156 old_postuninstall_cmds=
14158 if test -n "$RANLIB"; then
14159 case $host_os in
14160 openbsd*)
14161 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14164 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14166 esac
14167 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14170 for cc_temp in $compiler""; do
14171 case $cc_temp in
14172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14174 \-*) ;;
14175 *) break;;
14176 esac
14177 done
14178 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14181 # Only perform the check for file, if the check method requires it
14182 case $deplibs_check_method in
14183 file_magic*)
14184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14185 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14186 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14187 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 else
14190 case $MAGIC_CMD in
14191 [\\/*] | ?:[\\/]*)
14192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14195 lt_save_MAGIC_CMD="$MAGIC_CMD"
14196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14198 for ac_dir in $ac_dummy; do
14199 IFS="$lt_save_ifs"
14200 test -z "$ac_dir" && ac_dir=.
14201 if test -f $ac_dir/${ac_tool_prefix}file; then
14202 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14203 if test -n "$file_magic_test_file"; then
14204 case $deplibs_check_method in
14205 "file_magic "*)
14206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14209 $EGREP "$file_magic_regex" > /dev/null; then
14211 else
14212 cat <<EOF 1>&2
14214 *** Warning: the command libtool uses to detect shared libraries,
14215 *** $file_magic_cmd, produces output that libtool cannot recognize.
14216 *** The result is that libtool may fail to recognize shared libraries
14217 *** as such. This will affect the creation of libtool libraries that
14218 *** depend on shared libraries, but programs linked with such libtool
14219 *** libraries will work regardless of this problem. Nevertheless, you
14220 *** may want to report the problem to your system manager and/or to
14221 *** bug-libtool@gnu.org
14224 fi ;;
14225 esac
14227 break
14229 done
14230 IFS="$lt_save_ifs"
14231 MAGIC_CMD="$lt_save_MAGIC_CMD"
14233 esac
14236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14237 if test -n "$MAGIC_CMD"; then
14238 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14239 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14240 else
14241 { echo "$as_me:$LINENO: result: no" >&5
14242 echo "${ECHO_T}no" >&6; }
14245 if test -z "$lt_cv_path_MAGIC_CMD"; then
14246 if test -n "$ac_tool_prefix"; then
14247 { echo "$as_me:$LINENO: checking for file" >&5
14248 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14249 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252 case $MAGIC_CMD in
14253 [\\/*] | ?:[\\/]*)
14254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14257 lt_save_MAGIC_CMD="$MAGIC_CMD"
14258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14260 for ac_dir in $ac_dummy; do
14261 IFS="$lt_save_ifs"
14262 test -z "$ac_dir" && ac_dir=.
14263 if test -f $ac_dir/file; then
14264 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14265 if test -n "$file_magic_test_file"; then
14266 case $deplibs_check_method in
14267 "file_magic "*)
14268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14271 $EGREP "$file_magic_regex" > /dev/null; then
14273 else
14274 cat <<EOF 1>&2
14276 *** Warning: the command libtool uses to detect shared libraries,
14277 *** $file_magic_cmd, produces output that libtool cannot recognize.
14278 *** The result is that libtool may fail to recognize shared libraries
14279 *** as such. This will affect the creation of libtool libraries that
14280 *** depend on shared libraries, but programs linked with such libtool
14281 *** libraries will work regardless of this problem. Nevertheless, you
14282 *** may want to report the problem to your system manager and/or to
14283 *** bug-libtool@gnu.org
14286 fi ;;
14287 esac
14289 break
14291 done
14292 IFS="$lt_save_ifs"
14293 MAGIC_CMD="$lt_save_MAGIC_CMD"
14295 esac
14298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14299 if test -n "$MAGIC_CMD"; then
14300 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14301 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14302 else
14303 { echo "$as_me:$LINENO: result: no" >&5
14304 echo "${ECHO_T}no" >&6; }
14307 else
14308 MAGIC_CMD=:
14314 esac
14316 enable_dlopen=yes
14317 enable_win32_dll=no
14319 # Check whether --enable-libtool-lock was given.
14320 if test "${enable_libtool_lock+set}" = set; then
14321 enableval=$enable_libtool_lock;
14324 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14327 # Check whether --with-pic was given.
14328 if test "${with_pic+set}" = set; then
14329 withval=$with_pic; pic_mode="$withval"
14330 else
14331 pic_mode=default
14334 test -z "$pic_mode" && pic_mode=default
14336 # Use C for the default configuration in the libtool script
14337 tagname=
14338 lt_save_CC="$CC"
14339 ac_ext=c
14340 ac_cpp='$CPP $CPPFLAGS'
14341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14346 # Source file extension for C test sources.
14347 ac_ext=c
14349 # Object file extension for compiled C test sources.
14350 objext=o
14351 objext=$objext
14353 # Code to be used in simple compile tests
14354 lt_simple_compile_test_code="int some_variable = 0;\n"
14356 # Code to be used in simple link tests
14357 lt_simple_link_test_code='int main(){return(0);}\n'
14360 # If no C compiler was specified, use CC.
14361 LTCC=${LTCC-"$CC"}
14363 # If no C compiler flags were specified, use CFLAGS.
14364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14366 # Allow CC to be a program name with arguments.
14367 compiler=$CC
14370 # save warnings/boilerplate of simple test code
14371 ac_outfile=conftest.$ac_objext
14372 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14374 _lt_compiler_boilerplate=`cat conftest.err`
14375 $rm conftest*
14377 ac_outfile=conftest.$ac_objext
14378 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14380 _lt_linker_boilerplate=`cat conftest.err`
14381 $rm conftest*
14385 lt_prog_compiler_no_builtin_flag=
14387 if test "$GCC" = yes; then
14388 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14391 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14392 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14393 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 else
14396 lt_cv_prog_compiler_rtti_exceptions=no
14397 ac_outfile=conftest.$ac_objext
14398 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14399 lt_compiler_flag="-fno-rtti -fno-exceptions"
14400 # Insert the option either (1) after the last *FLAGS variable, or
14401 # (2) before a word containing "conftest.", or (3) at the end.
14402 # Note that $ac_compile itself does not contain backslashes and begins
14403 # with a dollar sign (not a hyphen), so the echo should work correctly.
14404 # The option is referenced via a variable to avoid confusing sed.
14405 lt_compile=`echo "$ac_compile" | $SED \
14406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14408 -e 's:$: $lt_compiler_flag:'`
14409 (eval echo "\"\$as_me:14409: $lt_compile\"" >&5)
14410 (eval "$lt_compile" 2>conftest.err)
14411 ac_status=$?
14412 cat conftest.err >&5
14413 echo "$as_me:14413: \$? = $ac_status" >&5
14414 if (exit $ac_status) && test -s "$ac_outfile"; then
14415 # The compiler can only warn and ignore the option if not recognized
14416 # So say no if there are warnings other than the usual output.
14417 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14420 lt_cv_prog_compiler_rtti_exceptions=yes
14423 $rm conftest*
14426 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14427 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14429 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14430 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14431 else
14437 lt_prog_compiler_wl=
14438 lt_prog_compiler_pic=
14439 lt_prog_compiler_static=
14441 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14442 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14444 if test "$GCC" = yes; then
14445 lt_prog_compiler_wl='-Wl,'
14446 lt_prog_compiler_static='-static'
14448 case $host_os in
14449 aix*)
14450 # All AIX code is PIC.
14451 if test "$host_cpu" = ia64; then
14452 # AIX 5 now supports IA64 processor
14453 lt_prog_compiler_static='-Bstatic'
14457 amigaos*)
14458 # FIXME: we need at least 68020 code to build shared libraries, but
14459 # adding the `-m68020' flag to GCC prevents building anything better,
14460 # like `-m68040'.
14461 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14464 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14465 # PIC is the default for these OSes.
14468 mingw* | pw32* | os2*)
14469 # This hack is so that the source file can tell whether it is being
14470 # built for inclusion in a dll (and should export symbols for example).
14471 lt_prog_compiler_pic='-DDLL_EXPORT'
14474 darwin* | rhapsody*)
14475 # PIC is the default on this platform
14476 # Common symbols not allowed in MH_DYLIB files
14477 lt_prog_compiler_pic='-fno-common'
14480 interix3*)
14481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14482 # Instead, we relocate shared libraries at runtime.
14485 msdosdjgpp*)
14486 # Just because we use GCC doesn't mean we suddenly get shared libraries
14487 # on systems that don't support them.
14488 lt_prog_compiler_can_build_shared=no
14489 enable_shared=no
14492 sysv4*MP*)
14493 if test -d /usr/nec; then
14494 lt_prog_compiler_pic=-Kconform_pic
14498 hpux*)
14499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14500 # not for PA HP-UX.
14501 case $host_cpu in
14502 hppa*64*|ia64*)
14503 # +Z the default
14506 lt_prog_compiler_pic='-fPIC'
14508 esac
14512 lt_prog_compiler_pic='-fPIC'
14514 esac
14515 else
14516 # PORTME Check for flag to pass linker flags through the system compiler.
14517 case $host_os in
14518 aix*)
14519 lt_prog_compiler_wl='-Wl,'
14520 if test "$host_cpu" = ia64; then
14521 # AIX 5 now supports IA64 processor
14522 lt_prog_compiler_static='-Bstatic'
14523 else
14524 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14527 darwin*)
14528 # PIC is the default on this platform
14529 # Common symbols not allowed in MH_DYLIB files
14530 case $cc_basename in
14531 xlc*)
14532 lt_prog_compiler_pic='-qnocommon'
14533 lt_prog_compiler_wl='-Wl,'
14535 esac
14538 mingw* | pw32* | os2*)
14539 # This hack is so that the source file can tell whether it is being
14540 # built for inclusion in a dll (and should export symbols for example).
14541 lt_prog_compiler_pic='-DDLL_EXPORT'
14544 hpux9* | hpux10* | hpux11*)
14545 lt_prog_compiler_wl='-Wl,'
14546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14547 # not for PA HP-UX.
14548 case $host_cpu in
14549 hppa*64*|ia64*)
14550 # +Z the default
14553 lt_prog_compiler_pic='+Z'
14555 esac
14556 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14557 lt_prog_compiler_static='${wl}-a ${wl}archive'
14560 irix5* | irix6* | nonstopux*)
14561 lt_prog_compiler_wl='-Wl,'
14562 # PIC (with -KPIC) is the default.
14563 lt_prog_compiler_static='-non_shared'
14566 newsos6)
14567 lt_prog_compiler_pic='-KPIC'
14568 lt_prog_compiler_static='-Bstatic'
14571 linux*)
14572 case $cc_basename in
14573 icc* | ecc*)
14574 lt_prog_compiler_wl='-Wl,'
14575 lt_prog_compiler_pic='-KPIC'
14576 lt_prog_compiler_static='-static'
14578 pgcc* | pgf77* | pgf90* | pgf95*)
14579 # Portland Group compilers (*not* the Pentium gcc compiler,
14580 # which looks to be a dead project)
14581 lt_prog_compiler_wl='-Wl,'
14582 lt_prog_compiler_pic='-fpic'
14583 lt_prog_compiler_static='-Bstatic'
14585 ccc*)
14586 lt_prog_compiler_wl='-Wl,'
14587 # All Alpha code is PIC.
14588 lt_prog_compiler_static='-non_shared'
14590 esac
14593 osf3* | osf4* | osf5*)
14594 lt_prog_compiler_wl='-Wl,'
14595 # All OSF/1 code is PIC.
14596 lt_prog_compiler_static='-non_shared'
14599 solaris*)
14600 lt_prog_compiler_pic='-KPIC'
14601 lt_prog_compiler_static='-Bstatic'
14602 case $cc_basename in
14603 f77* | f90* | f95*)
14604 lt_prog_compiler_wl='-Qoption ld ';;
14606 lt_prog_compiler_wl='-Wl,';;
14607 esac
14610 sunos4*)
14611 lt_prog_compiler_wl='-Qoption ld '
14612 lt_prog_compiler_pic='-PIC'
14613 lt_prog_compiler_static='-Bstatic'
14616 sysv4 | sysv4.2uw2* | sysv4.3*)
14617 lt_prog_compiler_wl='-Wl,'
14618 lt_prog_compiler_pic='-KPIC'
14619 lt_prog_compiler_static='-Bstatic'
14622 sysv4*MP*)
14623 if test -d /usr/nec ;then
14624 lt_prog_compiler_pic='-Kconform_pic'
14625 lt_prog_compiler_static='-Bstatic'
14629 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14630 lt_prog_compiler_wl='-Wl,'
14631 lt_prog_compiler_pic='-KPIC'
14632 lt_prog_compiler_static='-Bstatic'
14635 unicos*)
14636 lt_prog_compiler_wl='-Wl,'
14637 lt_prog_compiler_can_build_shared=no
14640 uts4*)
14641 lt_prog_compiler_pic='-pic'
14642 lt_prog_compiler_static='-Bstatic'
14646 lt_prog_compiler_can_build_shared=no
14648 esac
14651 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14652 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14655 # Check to make sure the PIC flag actually works.
14657 if test -n "$lt_prog_compiler_pic"; then
14659 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14660 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14661 if test "${lt_prog_compiler_pic_works+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664 lt_prog_compiler_pic_works=no
14665 ac_outfile=conftest.$ac_objext
14666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14667 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14668 # Insert the option either (1) after the last *FLAGS variable, or
14669 # (2) before a word containing "conftest.", or (3) at the end.
14670 # Note that $ac_compile itself does not contain backslashes and begins
14671 # with a dollar sign (not a hyphen), so the echo should work correctly.
14672 # The option is referenced via a variable to avoid confusing sed.
14673 lt_compile=`echo "$ac_compile" | $SED \
14674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14676 -e 's:$: $lt_compiler_flag:'`
14677 (eval echo "\"\$as_me:14677: $lt_compile\"" >&5)
14678 (eval "$lt_compile" 2>conftest.err)
14679 ac_status=$?
14680 cat conftest.err >&5
14681 echo "$as_me:14681: \$? = $ac_status" >&5
14682 if (exit $ac_status) && test -s "$ac_outfile"; then
14683 # The compiler can only warn and ignore the option if not recognized
14684 # So say no if there are warnings other than the usual output.
14685 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14688 lt_prog_compiler_pic_works=yes
14691 $rm conftest*
14694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14695 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14697 if test x"$lt_prog_compiler_pic_works" = xyes; then
14698 case $lt_prog_compiler_pic in
14699 "" | " "*) ;;
14700 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14701 esac
14702 else
14703 lt_prog_compiler_pic=
14704 lt_prog_compiler_can_build_shared=no
14708 case $host_os in
14709 # For platforms which do not support PIC, -DPIC is meaningless:
14710 *djgpp*)
14711 lt_prog_compiler_pic=
14714 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14716 esac
14719 # Check to make sure the static flag actually works.
14721 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14722 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14723 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14724 if test "${lt_prog_compiler_static_works+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727 lt_prog_compiler_static_works=no
14728 save_LDFLAGS="$LDFLAGS"
14729 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14730 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14732 # The linker can only warn and ignore the option if not recognized
14733 # So say no if there are warnings
14734 if test -s conftest.err; then
14735 # Append any errors to the config.log.
14736 cat conftest.err 1>&5
14737 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14739 if diff conftest.exp conftest.er2 >/dev/null; then
14740 lt_prog_compiler_static_works=yes
14742 else
14743 lt_prog_compiler_static_works=yes
14746 $rm conftest*
14747 LDFLAGS="$save_LDFLAGS"
14750 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14751 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14753 if test x"$lt_prog_compiler_static_works" = xyes; then
14755 else
14756 lt_prog_compiler_static=
14760 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14761 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14762 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 lt_cv_prog_compiler_c_o=no
14766 $rm -r conftest 2>/dev/null
14767 mkdir conftest
14768 cd conftest
14769 mkdir out
14770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14772 lt_compiler_flag="-o out/conftest2.$ac_objext"
14773 # Insert the option either (1) after the last *FLAGS variable, or
14774 # (2) before a word containing "conftest.", or (3) at the end.
14775 # Note that $ac_compile itself does not contain backslashes and begins
14776 # with a dollar sign (not a hyphen), so the echo should work correctly.
14777 lt_compile=`echo "$ac_compile" | $SED \
14778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14780 -e 's:$: $lt_compiler_flag:'`
14781 (eval echo "\"\$as_me:14781: $lt_compile\"" >&5)
14782 (eval "$lt_compile" 2>out/conftest.err)
14783 ac_status=$?
14784 cat out/conftest.err >&5
14785 echo "$as_me:14785: \$? = $ac_status" >&5
14786 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14787 then
14788 # The compiler can only warn and ignore the option if not recognized
14789 # So say no if there are warnings
14790 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14791 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14792 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14793 lt_cv_prog_compiler_c_o=yes
14796 chmod u+w . 2>&5
14797 $rm conftest*
14798 # SGI C++ compiler will create directory out/ii_files/ for
14799 # template instantiation
14800 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14801 $rm out/* && rmdir out
14802 cd ..
14803 rmdir conftest
14804 $rm conftest*
14807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14808 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14811 hard_links="nottested"
14812 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14813 # do not overwrite the value of need_locks provided by the user
14814 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14815 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14816 hard_links=yes
14817 $rm conftest*
14818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819 touch conftest.a
14820 ln conftest.a conftest.b 2>&5 || hard_links=no
14821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822 { echo "$as_me:$LINENO: result: $hard_links" >&5
14823 echo "${ECHO_T}$hard_links" >&6; }
14824 if test "$hard_links" = no; then
14825 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14827 need_locks=warn
14829 else
14830 need_locks=no
14833 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14834 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14836 runpath_var=
14837 allow_undefined_flag=
14838 enable_shared_with_static_runtimes=no
14839 archive_cmds=
14840 archive_expsym_cmds=
14841 old_archive_From_new_cmds=
14842 old_archive_from_expsyms_cmds=
14843 export_dynamic_flag_spec=
14844 whole_archive_flag_spec=
14845 thread_safe_flag_spec=
14846 hardcode_libdir_flag_spec=
14847 hardcode_libdir_flag_spec_ld=
14848 hardcode_libdir_separator=
14849 hardcode_direct=no
14850 hardcode_minus_L=no
14851 hardcode_shlibpath_var=unsupported
14852 link_all_deplibs=unknown
14853 hardcode_automatic=no
14854 module_cmds=
14855 module_expsym_cmds=
14856 always_export_symbols=no
14857 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14858 # include_expsyms should be a list of space-separated symbols to be *always*
14859 # included in the symbol list
14860 include_expsyms=
14861 # exclude_expsyms can be an extended regexp of symbols to exclude
14862 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14864 # as well as any symbol that contains `d'.
14865 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14867 # platforms (ab)use it in PIC code, but their linkers get confused if
14868 # the symbol is explicitly referenced. Since portable code cannot
14869 # rely on this symbol name, it's probably fine to never include it in
14870 # preloaded symbol tables.
14871 extract_expsyms_cmds=
14872 # Just being paranoid about ensuring that cc_basename is set.
14873 for cc_temp in $compiler""; do
14874 case $cc_temp in
14875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14877 \-*) ;;
14878 *) break;;
14879 esac
14880 done
14881 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14883 case $host_os in
14884 cygwin* | mingw* | pw32*)
14885 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14886 # When not using gcc, we currently assume that we are using
14887 # Microsoft Visual C++.
14888 if test "$GCC" != yes; then
14889 with_gnu_ld=no
14892 interix*)
14893 # we just hope/assume this is gcc and not c89 (= MSVC++)
14894 with_gnu_ld=yes
14896 openbsd*)
14897 with_gnu_ld=no
14899 esac
14901 ld_shlibs=yes
14902 if test "$with_gnu_ld" = yes; then
14903 # If archive_cmds runs LD, not CC, wlarc should be empty
14904 wlarc='${wl}'
14906 # Set some defaults for GNU ld with shared library support. These
14907 # are reset later if shared libraries are not supported. Putting them
14908 # here allows them to be overridden if necessary.
14909 runpath_var=LD_RUN_PATH
14910 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14911 export_dynamic_flag_spec='${wl}--export-dynamic'
14912 # ancient GNU ld didn't support --whole-archive et. al.
14913 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14914 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14915 else
14916 whole_archive_flag_spec=
14918 supports_anon_versioning=no
14919 case `$LD -v 2>/dev/null` in
14920 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14921 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14922 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14923 *\ 2.11.*) ;; # other 2.11 versions
14924 *) supports_anon_versioning=yes ;;
14925 esac
14927 # See if GNU ld supports shared libraries.
14928 case $host_os in
14929 aix3* | aix4* | aix5*)
14930 # On AIX/PPC, the GNU linker is very broken
14931 if test "$host_cpu" != ia64; then
14932 ld_shlibs=no
14933 cat <<EOF 1>&2
14935 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14936 *** to be unable to reliably create shared libraries on AIX.
14937 *** Therefore, libtool is disabling shared libraries support. If you
14938 *** really care for shared libraries, you may want to modify your PATH
14939 *** so that a non-GNU linker is found, and then restart.
14945 amigaos*)
14946 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)'
14947 hardcode_libdir_flag_spec='-L$libdir'
14948 hardcode_minus_L=yes
14950 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14951 # that the semantics of dynamic libraries on AmigaOS, at least up
14952 # to version 4, is to share data among multiple programs linked
14953 # with the same dynamic library. Since this doesn't match the
14954 # behavior of shared libraries on other platforms, we can't use
14955 # them.
14956 ld_shlibs=no
14959 beos*)
14960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961 allow_undefined_flag=unsupported
14962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14963 # support --undefined. This deserves some investigation. FIXME
14964 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965 else
14966 ld_shlibs=no
14970 cygwin* | mingw* | pw32*)
14971 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14972 # as there is no search path for DLLs.
14973 hardcode_libdir_flag_spec='-L$libdir'
14974 allow_undefined_flag=unsupported
14975 always_export_symbols=no
14976 enable_shared_with_static_runtimes=yes
14977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14979 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14981 # If the export-symbols file already is a .def file (1st line
14982 # is EXPORTS), use it as is; otherwise, prepend...
14983 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14984 cp $export_symbols $output_objdir/$soname.def;
14985 else
14986 echo EXPORTS > $output_objdir/$soname.def;
14987 cat $export_symbols >> $output_objdir/$soname.def;
14989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14990 else
14991 ld_shlibs=no
14995 interix3*)
14996 hardcode_direct=no
14997 hardcode_shlibpath_var=no
14998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14999 export_dynamic_flag_spec='${wl}-E'
15000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15001 # Instead, shared libraries are loaded at an image base (0x10000000 by
15002 # default) and relocated if they conflict, which is a slow very memory
15003 # consuming and fragmenting process. To avoid this, we pick a random,
15004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15007 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'
15010 linux*)
15011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012 tmp_addflag=
15013 case $cc_basename,$host_cpu in
15014 pgcc*) # Portland Group C compiler
15015 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'
15016 tmp_addflag=' $pic_flag'
15018 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15019 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'
15020 tmp_addflag=' $pic_flag -Mnomain' ;;
15021 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15022 tmp_addflag=' -i_dynamic' ;;
15023 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15024 tmp_addflag=' -i_dynamic -nofor_main' ;;
15025 ifc* | ifort*) # Intel Fortran compiler
15026 tmp_addflag=' -nofor_main' ;;
15027 esac
15028 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030 if test $supports_anon_versioning = yes; then
15031 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15032 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15033 $echo "local: *; };" >> $output_objdir/$libname.ver~
15034 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15036 else
15037 ld_shlibs=no
15041 netbsd*)
15042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15043 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15044 wlarc=
15045 else
15046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15051 solaris*)
15052 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15053 ld_shlibs=no
15054 cat <<EOF 1>&2
15056 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15057 *** create shared libraries on Solaris systems. Therefore, libtool
15058 *** is disabling shared libraries support. We urge you to upgrade GNU
15059 *** binutils to release 2.9.1 or newer. Another option is to modify
15060 *** your PATH or compiler configuration so that the native linker is
15061 *** used, and then restart.
15064 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15067 else
15068 ld_shlibs=no
15072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15073 case `$LD -v 2>&1` in
15074 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15075 ld_shlibs=no
15076 cat <<_LT_EOF 1>&2
15078 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15079 *** reliably create shared libraries on SCO systems. Therefore, libtool
15080 *** is disabling shared libraries support. We urge you to upgrade GNU
15081 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15082 *** your PATH or compiler configuration so that the native linker is
15083 *** used, and then restart.
15085 _LT_EOF
15088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15089 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15092 else
15093 ld_shlibs=no
15096 esac
15099 sunos4*)
15100 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15101 wlarc=
15102 hardcode_direct=yes
15103 hardcode_shlibpath_var=no
15107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15110 else
15111 ld_shlibs=no
15114 esac
15116 if test "$ld_shlibs" = no; then
15117 runpath_var=
15118 hardcode_libdir_flag_spec=
15119 export_dynamic_flag_spec=
15120 whole_archive_flag_spec=
15122 else
15123 # PORTME fill in a description of your system's linker (not GNU ld)
15124 case $host_os in
15125 aix3*)
15126 allow_undefined_flag=unsupported
15127 always_export_symbols=yes
15128 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'
15129 # Note: this linker hardcodes the directories in LIBPATH if there
15130 # are no directories specified by -L.
15131 hardcode_minus_L=yes
15132 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15133 # Neither direct hardcoding nor static linking is supported with a
15134 # broken collect2.
15135 hardcode_direct=unsupported
15139 aix4* | aix5*)
15140 if test "$host_cpu" = ia64; then
15141 # On IA64, the linker does run time linking by default, so we don't
15142 # have to do anything special.
15143 aix_use_runtimelinking=no
15144 exp_sym_flag='-Bexport'
15145 no_entry_flag=""
15146 else
15147 # If we're using GNU nm, then we don't want the "-C" option.
15148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15149 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15150 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'
15151 else
15152 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'
15154 aix_use_runtimelinking=no
15156 # Test if we are trying to use run time linking or normal
15157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15158 # need to do runtime linking.
15159 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15160 for ld_flag in $LDFLAGS; do
15161 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15162 aix_use_runtimelinking=yes
15163 break
15165 done
15167 esac
15169 exp_sym_flag='-bexport'
15170 no_entry_flag='-bnoentry'
15173 # When large executables or shared objects are built, AIX ld can
15174 # have problems creating the table of contents. If linking a library
15175 # or program results in "error TOC overflow" add -mminimal-toc to
15176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15179 archive_cmds=''
15180 hardcode_direct=yes
15181 hardcode_libdir_separator=':'
15182 link_all_deplibs=yes
15184 if test "$GCC" = yes; then
15185 case $host_os in aix4.[012]|aix4.[012].*)
15186 # We only want to do this on AIX 4.2 and lower, the check
15187 # below for broken collect2 doesn't work under 4.3+
15188 collect2name=`${CC} -print-prog-name=collect2`
15189 if test -f "$collect2name" && \
15190 strings "$collect2name" | grep resolve_lib_name >/dev/null
15191 then
15192 # We have reworked collect2
15193 hardcode_direct=yes
15194 else
15195 # We have old collect2
15196 hardcode_direct=unsupported
15197 # It fails to find uninstalled libraries when the uninstalled
15198 # path is not listed in the libpath. Setting hardcode_minus_L
15199 # to unsupported forces relinking
15200 hardcode_minus_L=yes
15201 hardcode_libdir_flag_spec='-L$libdir'
15202 hardcode_libdir_separator=
15205 esac
15206 shared_flag='-shared'
15207 if test "$aix_use_runtimelinking" = yes; then
15208 shared_flag="$shared_flag "'${wl}-G'
15210 else
15211 # not using gcc
15212 if test "$host_cpu" = ia64; then
15213 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15214 # chokes on -Wl,-G. The following line is correct:
15215 shared_flag='-G'
15216 else
15217 if test "$aix_use_runtimelinking" = yes; then
15218 shared_flag='${wl}-G'
15219 else
15220 shared_flag='${wl}-bM:SRE'
15225 # It seems that -bexpall does not export symbols beginning with
15226 # underscore (_), so it is better to generate a list of symbols to export.
15227 always_export_symbols=yes
15228 if test "$aix_use_runtimelinking" = yes; then
15229 # Warning - without using the other runtime loading flags (-brtl),
15230 # -berok will link without error, but may produce a broken library.
15231 allow_undefined_flag='-berok'
15232 # Determine the default libpath from the value encoded in an empty executable.
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h. */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15241 main ()
15245 return 0;
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest$ac_exeext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15285 # Check for a 64-bit object if we didn't find anything.
15286 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; }
15287 }'`; fi
15288 else
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15295 rm -f core conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15299 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15300 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"
15301 else
15302 if test "$host_cpu" = ia64; then
15303 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15304 allow_undefined_flag="-z nodefs"
15305 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"
15306 else
15307 # Determine the default libpath from the value encoded in an empty executable.
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h. */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15316 main ()
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext conftest$ac_exeext
15324 if { (ac_try="$ac_link"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_link") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341 esac
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest$ac_exeext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15360 # Check for a 64-bit object if we didn't find anything.
15361 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; }
15362 }'`; fi
15363 else
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15370 rm -f core conftest.err conftest.$ac_objext \
15371 conftest$ac_exeext conftest.$ac_ext
15372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15374 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15375 # Warning - without using the other run time loading flags,
15376 # -berok will link without error, but may produce a broken library.
15377 no_undefined_flag=' ${wl}-bernotok'
15378 allow_undefined_flag=' ${wl}-berok'
15379 # Exported symbols can be pulled into shared objects from archives
15380 whole_archive_flag_spec='$convenience'
15381 archive_cmds_need_lc=yes
15382 # This is similar to how AIX traditionally builds its shared libraries.
15383 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'
15388 amigaos*)
15389 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)'
15390 hardcode_libdir_flag_spec='-L$libdir'
15391 hardcode_minus_L=yes
15392 # see comment about different semantics on the GNU ld section
15393 ld_shlibs=no
15396 bsdi[45]*)
15397 export_dynamic_flag_spec=-rdynamic
15400 cygwin* | mingw* | pw32*)
15401 # When not using gcc, we currently assume that we are using
15402 # Microsoft Visual C++.
15403 # hardcode_libdir_flag_spec is actually meaningless, as there is
15404 # no search path for DLLs.
15405 hardcode_libdir_flag_spec=' '
15406 allow_undefined_flag=unsupported
15407 # Tell ltmain to make .lib files, not .a files.
15408 libext=lib
15409 # Tell ltmain to make .dll files, not .so files.
15410 shrext_cmds=".dll"
15411 # FIXME: Setting linknames here is a bad hack.
15412 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15413 # The linker will automatically build a .lib file if we build a DLL.
15414 old_archive_From_new_cmds='true'
15415 # FIXME: Should let the user specify the lib program.
15416 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15417 fix_srcfile_path='`cygpath -w "$srcfile"`'
15418 enable_shared_with_static_runtimes=yes
15421 darwin* | rhapsody*)
15422 case $host_os in
15423 rhapsody* | darwin1.[012])
15424 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15426 *) # Darwin 1.3 on
15427 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15428 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15429 else
15430 case ${MACOSX_DEPLOYMENT_TARGET} in
15431 10.[012])
15432 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15434 10.*)
15435 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15437 esac
15440 esac
15441 archive_cmds_need_lc=no
15442 hardcode_direct=no
15443 hardcode_automatic=yes
15444 hardcode_shlibpath_var=unsupported
15445 whole_archive_flag_spec=''
15446 link_all_deplibs=yes
15447 if test "$GCC" = yes ; then
15448 output_verbose_link_cmd='echo'
15449 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15450 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15451 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15452 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}'
15453 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}'
15454 else
15455 case $cc_basename in
15456 xlc*)
15457 output_verbose_link_cmd='echo'
15458 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15459 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15460 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15461 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}'
15462 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}'
15465 ld_shlibs=no
15467 esac
15471 dgux*)
15472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473 hardcode_libdir_flag_spec='-L$libdir'
15474 hardcode_shlibpath_var=no
15477 freebsd1*)
15478 ld_shlibs=no
15481 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15482 # support. Future versions do this automatically, but an explicit c++rt0.o
15483 # does not break anything, and helps significantly (at the cost of a little
15484 # extra space).
15485 freebsd2.2*)
15486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15487 hardcode_libdir_flag_spec='-R$libdir'
15488 hardcode_direct=yes
15489 hardcode_shlibpath_var=no
15492 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15493 freebsd2*)
15494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15495 hardcode_direct=yes
15496 hardcode_minus_L=yes
15497 hardcode_shlibpath_var=no
15500 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15501 freebsd* | kfreebsd*-gnu | dragonfly*)
15502 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15503 hardcode_libdir_flag_spec='-R$libdir'
15504 hardcode_direct=yes
15505 hardcode_shlibpath_var=no
15508 hpux9*)
15509 if test "$GCC" = yes; then
15510 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'
15511 else
15512 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'
15514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15515 hardcode_libdir_separator=:
15516 hardcode_direct=yes
15518 # hardcode_minus_L: Not really in the search PATH,
15519 # but as the default location of the library.
15520 hardcode_minus_L=yes
15521 export_dynamic_flag_spec='${wl}-E'
15524 hpux10*)
15525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15527 else
15528 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15530 if test "$with_gnu_ld" = no; then
15531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15532 hardcode_libdir_separator=:
15534 hardcode_direct=yes
15535 export_dynamic_flag_spec='${wl}-E'
15537 # hardcode_minus_L: Not really in the search PATH,
15538 # but as the default location of the library.
15539 hardcode_minus_L=yes
15543 hpux11*)
15544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15545 case $host_cpu in
15546 hppa*64*)
15547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549 ia64*)
15550 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15555 esac
15556 else
15557 case $host_cpu in
15558 hppa*64*)
15559 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 ia64*)
15562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15565 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15567 esac
15569 if test "$with_gnu_ld" = no; then
15570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15571 hardcode_libdir_separator=:
15573 case $host_cpu in
15574 hppa*64*|ia64*)
15575 hardcode_libdir_flag_spec_ld='+b $libdir'
15576 hardcode_direct=no
15577 hardcode_shlibpath_var=no
15580 hardcode_direct=yes
15581 export_dynamic_flag_spec='${wl}-E'
15583 # hardcode_minus_L: Not really in the search PATH,
15584 # but as the default location of the library.
15585 hardcode_minus_L=yes
15587 esac
15591 irix5* | irix6* | nonstopux*)
15592 if test "$GCC" = yes; then
15593 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'
15594 else
15595 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'
15596 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15599 hardcode_libdir_separator=:
15600 link_all_deplibs=yes
15603 netbsd*)
15604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15606 else
15607 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15609 hardcode_libdir_flag_spec='-R$libdir'
15610 hardcode_direct=yes
15611 hardcode_shlibpath_var=no
15614 newsos6)
15615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_direct=yes
15617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15618 hardcode_libdir_separator=:
15619 hardcode_shlibpath_var=no
15622 openbsd*)
15623 hardcode_direct=yes
15624 hardcode_shlibpath_var=no
15625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15627 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15629 export_dynamic_flag_spec='${wl}-E'
15630 else
15631 case $host_os in
15632 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15634 hardcode_libdir_flag_spec='-R$libdir'
15637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15640 esac
15644 os2*)
15645 hardcode_libdir_flag_spec='-L$libdir'
15646 hardcode_minus_L=yes
15647 allow_undefined_flag=unsupported
15648 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'
15649 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15652 osf3*)
15653 if test "$GCC" = yes; then
15654 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15655 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'
15656 else
15657 allow_undefined_flag=' -expect_unresolved \*'
15658 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'
15660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15661 hardcode_libdir_separator=:
15664 osf4* | osf5*) # as osf3* with the addition of -msym flag
15665 if test "$GCC" = yes; then
15666 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15667 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'
15668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15669 else
15670 allow_undefined_flag=' -expect_unresolved \*'
15671 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'
15672 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15673 $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'
15675 # Both c and cxx compiler support -rpath directly
15676 hardcode_libdir_flag_spec='-rpath $libdir'
15678 hardcode_libdir_separator=:
15681 solaris*)
15682 no_undefined_flag=' -z text'
15683 if test "$GCC" = yes; then
15684 wlarc='${wl}'
15685 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15686 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15687 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15688 else
15689 wlarc=''
15690 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15692 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15694 hardcode_libdir_flag_spec='-R$libdir'
15695 hardcode_shlibpath_var=no
15696 case $host_os in
15697 solaris2.[0-5] | solaris2.[0-5].*) ;;
15699 # The compiler driver will combine linker options so we
15700 # cannot just pass the convience library names through
15701 # without $wl, iff we do not link with $LD.
15702 # Luckily, gcc supports the same syntax we need for Sun Studio.
15703 # Supported since Solaris 2.6 (maybe 2.5.1?)
15704 case $wlarc in
15706 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15708 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' ;;
15709 esac ;;
15710 esac
15711 link_all_deplibs=yes
15714 sunos4*)
15715 if test "x$host_vendor" = xsequent; then
15716 # Use $CC to link under sequent, because it throws in some extra .o
15717 # files that make .init and .fini sections work.
15718 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15719 else
15720 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15722 hardcode_libdir_flag_spec='-L$libdir'
15723 hardcode_direct=yes
15724 hardcode_minus_L=yes
15725 hardcode_shlibpath_var=no
15728 sysv4)
15729 case $host_vendor in
15730 sni)
15731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15732 hardcode_direct=yes # is this really true???
15734 siemens)
15735 ## LD is ld it makes a PLAMLIB
15736 ## CC just makes a GrossModule.
15737 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15738 reload_cmds='$CC -r -o $output$reload_objs'
15739 hardcode_direct=no
15741 motorola)
15742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15745 esac
15746 runpath_var='LD_RUN_PATH'
15747 hardcode_shlibpath_var=no
15750 sysv4.3*)
15751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_shlibpath_var=no
15753 export_dynamic_flag_spec='-Bexport'
15756 sysv4*MP*)
15757 if test -d /usr/nec; then
15758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_shlibpath_var=no
15760 runpath_var=LD_RUN_PATH
15761 hardcode_runpath_var=yes
15762 ld_shlibs=yes
15766 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15767 no_undefined_flag='${wl}-z,text'
15768 archive_cmds_need_lc=no
15769 hardcode_shlibpath_var=no
15770 runpath_var='LD_RUN_PATH'
15772 if test "$GCC" = yes; then
15773 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15774 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 else
15776 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15781 sysv5* | sco3.2v5* | sco5v6*)
15782 # Note: We can NOT use -z defs as we might desire, because we do not
15783 # link with -lc, and that would cause any symbols used from libc to
15784 # always be unresolved, which means just about no library would
15785 # ever link correctly. If we're not using GNU ld we use -z text
15786 # though, which does catch some bad symbols but isn't as heavy-handed
15787 # as -z defs.
15788 no_undefined_flag='${wl}-z,text'
15789 allow_undefined_flag='${wl}-z,nodefs'
15790 archive_cmds_need_lc=no
15791 hardcode_shlibpath_var=no
15792 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15793 hardcode_libdir_separator=':'
15794 link_all_deplibs=yes
15795 export_dynamic_flag_spec='${wl}-Bexport'
15796 runpath_var='LD_RUN_PATH'
15798 if test "$GCC" = yes; then
15799 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15801 else
15802 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15807 uts4*)
15808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_libdir_flag_spec='-L$libdir'
15810 hardcode_shlibpath_var=no
15814 ld_shlibs=no
15816 esac
15819 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15820 echo "${ECHO_T}$ld_shlibs" >&6; }
15821 test "$ld_shlibs" = no && can_build_shared=no
15824 # Do we need to explicitly link libc?
15826 case "x$archive_cmds_need_lc" in
15827 x|xyes)
15828 # Assume -lc should be added
15829 archive_cmds_need_lc=yes
15831 if test "$enable_shared" = yes && test "$GCC" = yes; then
15832 case $archive_cmds in
15833 *'~'*)
15834 # FIXME: we may have to deal with multi-command sequences.
15836 '$CC '*)
15837 # Test whether the compiler implicitly links with -lc since on some
15838 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15839 # to ld, don't add -lc before -lgcc.
15840 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15841 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15842 $rm conftest*
15843 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } 2>conftest.err; then
15850 soname=conftest
15851 lib=conftest
15852 libobjs=conftest.$ac_objext
15853 deplibs=
15854 wl=$lt_prog_compiler_wl
15855 pic_flag=$lt_prog_compiler_pic
15856 compiler_flags=-v
15857 linker_flags=-v
15858 verstring=
15859 output_objdir=.
15860 libname=conftest
15861 lt_save_allow_undefined_flag=$allow_undefined_flag
15862 allow_undefined_flag=
15863 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15864 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }
15868 then
15869 archive_cmds_need_lc=no
15870 else
15871 archive_cmds_need_lc=yes
15873 allow_undefined_flag=$lt_save_allow_undefined_flag
15874 else
15875 cat conftest.err 1>&5
15877 $rm conftest*
15878 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15879 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15881 esac
15884 esac
15886 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15887 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15888 library_names_spec=
15889 libname_spec='lib$name'
15890 soname_spec=
15891 shrext_cmds=".so"
15892 postinstall_cmds=
15893 postuninstall_cmds=
15894 finish_cmds=
15895 finish_eval=
15896 shlibpath_var=
15897 shlibpath_overrides_runpath=unknown
15898 version_type=none
15899 dynamic_linker="$host_os ld.so"
15900 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15901 if test "$GCC" = yes; then
15902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15903 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15904 # if the path contains ";" then we assume it to be the separator
15905 # otherwise default to the standard path separator (i.e. ":") - it is
15906 # assumed that no part of a normal pathname contains ";" but that should
15907 # okay in the real world where ";" in dirpaths is itself problematic.
15908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15909 else
15910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15912 else
15913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15915 need_lib_prefix=unknown
15916 hardcode_into_libs=no
15918 # when you set need_version to no, make sure it does not cause -set_version
15919 # flags to be left without arguments
15920 need_version=unknown
15922 case $host_os in
15923 aix3*)
15924 version_type=linux
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15926 shlibpath_var=LIBPATH
15928 # AIX 3 has no versioning support, so we append a major version to the name.
15929 soname_spec='${libname}${release}${shared_ext}$major'
15932 aix4* | aix5*)
15933 version_type=linux
15934 need_lib_prefix=no
15935 need_version=no
15936 hardcode_into_libs=yes
15937 if test "$host_cpu" = ia64; then
15938 # AIX 5 supports IA64
15939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15940 shlibpath_var=LD_LIBRARY_PATH
15941 else
15942 # With GCC up to 2.95.x, collect2 would create an import file
15943 # for dependence libraries. The import file would start with
15944 # the line `#! .'. This would cause the generated library to
15945 # depend on `.', always an invalid library. This was fixed in
15946 # development snapshots of GCC prior to 3.0.
15947 case $host_os in
15948 aix4 | aix4.[01] | aix4.[01].*)
15949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15950 echo ' yes '
15951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15953 else
15954 can_build_shared=no
15957 esac
15958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15959 # soname into executable. Probably we can add versioning support to
15960 # collect2, so additional links can be useful in future.
15961 if test "$aix_use_runtimelinking" = yes; then
15962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15963 # instead of lib<name>.a to let people know that these are not
15964 # typical AIX shared libraries.
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966 else
15967 # We preserve .a as extension for shared libraries through AIX4.2
15968 # and later when we are not doing run time linking.
15969 library_names_spec='${libname}${release}.a $libname.a'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15972 shlibpath_var=LIBPATH
15976 amigaos*)
15977 library_names_spec='$libname.ixlibrary $libname.a'
15978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15979 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'
15982 beos*)
15983 library_names_spec='${libname}${shared_ext}'
15984 dynamic_linker="$host_os ld.so"
15985 shlibpath_var=LIBRARY_PATH
15988 bsdi[45]*)
15989 version_type=linux
15990 need_version=no
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15997 # the default ld.so.conf also contains /usr/contrib/lib and
15998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15999 # libtool to hard-code these into programs
16002 cygwin* | mingw* | pw32*)
16003 version_type=windows
16004 shrext_cmds=".dll"
16005 need_version=no
16006 need_lib_prefix=no
16008 case $GCC,$host_os in
16009 yes,cygwin* | yes,mingw* | yes,pw32*)
16010 library_names_spec='$libname.dll.a'
16011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16012 postinstall_cmds='base_file=`basename \${file}`~
16013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16014 dldir=$destdir/`dirname \$dlpath`~
16015 test -d \$dldir || mkdir -p \$dldir~
16016 $install_prog $dir/$dlname \$dldir/$dlname~
16017 chmod a+x \$dldir/$dlname'
16018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16019 dlpath=$dir/\$dldll~
16020 $rm \$dlpath'
16021 shlibpath_overrides_runpath=yes
16023 case $host_os in
16024 cygwin*)
16025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16029 mingw*)
16030 # MinGW DLLs use traditional 'lib' prefix
16031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16034 # It is most probably a Windows format PATH printed by
16035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16036 # path with ; separators, and with drive letters. We can handle the
16037 # drive letters (cygwin fileutils understands them), so leave them,
16038 # especially as we might pass files found there to a mingw objdump,
16039 # which wouldn't understand a cygwinified path. Ahh.
16040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16041 else
16042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16045 pw32*)
16046 # pw32 DLLs use 'pw' prefix rather than 'lib'
16047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16049 esac
16053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16055 esac
16056 dynamic_linker='Win32 ld.exe'
16057 # FIXME: first we should search . and the directory the executable is in
16058 shlibpath_var=PATH
16061 darwin* | rhapsody*)
16062 dynamic_linker="$host_os dyld"
16063 version_type=darwin
16064 need_lib_prefix=no
16065 need_version=no
16066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16067 soname_spec='${libname}${release}${major}$shared_ext'
16068 shlibpath_overrides_runpath=yes
16069 shlibpath_var=DYLD_LIBRARY_PATH
16070 shrext_cmds='.dylib'
16071 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16072 if test "$GCC" = yes; then
16073 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"`
16074 else
16075 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16080 dgux*)
16081 version_type=linux
16082 need_lib_prefix=no
16083 need_version=no
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
16089 freebsd1*)
16090 dynamic_linker=no
16093 kfreebsd*-gnu)
16094 version_type=linux
16095 need_lib_prefix=no
16096 need_version=no
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 shlibpath_overrides_runpath=no
16101 hardcode_into_libs=yes
16102 dynamic_linker='GNU ld.so'
16105 freebsd* | dragonfly*)
16106 # DragonFly does not have aout. When/if they implement a new
16107 # versioning mechanism, adjust this.
16108 if test -x /usr/bin/objformat; then
16109 objformat=`/usr/bin/objformat`
16110 else
16111 case $host_os in
16112 freebsd[123]*) objformat=aout ;;
16113 *) objformat=elf ;;
16114 esac
16116 version_type=freebsd-$objformat
16117 case $version_type in
16118 freebsd-elf*)
16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16120 need_version=no
16121 need_lib_prefix=no
16123 freebsd-*)
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16125 need_version=yes
16127 esac
16128 shlibpath_var=LD_LIBRARY_PATH
16129 case $host_os in
16130 freebsd2*)
16131 shlibpath_overrides_runpath=yes
16133 freebsd3.[01]* | freebsdelf3.[01]*)
16134 shlibpath_overrides_runpath=yes
16135 hardcode_into_libs=yes
16137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16139 shlibpath_overrides_runpath=no
16140 hardcode_into_libs=yes
16142 freebsd*) # from 4.6 on
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16146 esac
16149 gnu*)
16150 version_type=linux
16151 need_lib_prefix=no
16152 need_version=no
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 shlibpath_var=LD_LIBRARY_PATH
16156 hardcode_into_libs=yes
16159 hpux9* | hpux10* | hpux11*)
16160 # Give a soname corresponding to the major version so that dld.sl refuses to
16161 # link against other versions.
16162 version_type=sunos
16163 need_lib_prefix=no
16164 need_version=no
16165 case $host_cpu in
16166 ia64*)
16167 shrext_cmds='.so'
16168 hardcode_into_libs=yes
16169 dynamic_linker="$host_os dld.so"
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173 soname_spec='${libname}${release}${shared_ext}$major'
16174 if test "X$HPUX_IA64_MODE" = X32; then
16175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16176 else
16177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16181 hppa*64*)
16182 shrext_cmds='.sl'
16183 hardcode_into_libs=yes
16184 dynamic_linker="$host_os dld.sl"
16185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16193 shrext_cmds='.sl'
16194 dynamic_linker="$host_os dld.sl"
16195 shlibpath_var=SHLIB_PATH
16196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16200 esac
16201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16202 postinstall_cmds='chmod 555 $lib'
16205 interix3*)
16206 version_type=linux
16207 need_lib_prefix=no
16208 need_version=no
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16217 irix5* | irix6* | nonstopux*)
16218 case $host_os in
16219 nonstopux*) version_type=nonstopux ;;
16221 if test "$lt_cv_prog_gnu_ld" = yes; then
16222 version_type=linux
16223 else
16224 version_type=irix
16225 fi ;;
16226 esac
16227 need_lib_prefix=no
16228 need_version=no
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16231 case $host_os in
16232 irix5* | nonstopux*)
16233 libsuff= shlibsuff=
16236 case $LD in # libtool.m4 will add one of these switches to LD
16237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16238 libsuff= shlibsuff= libmagic=32-bit;;
16239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16240 libsuff=32 shlibsuff=N32 libmagic=N32;;
16241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16243 *) libsuff= shlibsuff= libmagic=never-match;;
16244 esac
16246 esac
16247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16248 shlibpath_overrides_runpath=no
16249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16251 hardcode_into_libs=yes
16254 # No shared lib support for Linux oldld, aout, or coff.
16255 linux*oldld* | linux*aout* | linux*coff*)
16256 dynamic_linker=no
16259 # This must be Linux ELF.
16260 linux*)
16261 version_type=linux
16262 need_lib_prefix=no
16263 need_version=no
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16267 shlibpath_var=LD_LIBRARY_PATH
16268 shlibpath_overrides_runpath=no
16269 # This implies no fast_install, which is unacceptable.
16270 # Some rework will be needed to allow for fast_install
16271 # before this can be enabled.
16272 hardcode_into_libs=yes
16274 # Append ld.so.conf contents to the search path
16275 if test -f /etc/ld.so.conf; then
16276 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' ' '`
16277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16280 # We used to test for /lib/ld.so.1 and disable shared libraries on
16281 # powerpc, because MkLinux only supported shared libraries with the
16282 # GNU dynamic linker. Since this was broken with cross compilers,
16283 # most powerpc-linux boxes support dynamic linking these days and
16284 # people can always --disable-shared, the test was removed, and we
16285 # assume the GNU/Linux dynamic linker is in use.
16286 dynamic_linker='GNU/Linux ld.so'
16289 knetbsd*-gnu)
16290 version_type=linux
16291 need_lib_prefix=no
16292 need_version=no
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=no
16297 hardcode_into_libs=yes
16298 dynamic_linker='GNU ld.so'
16301 netbsd*)
16302 version_type=sunos
16303 need_lib_prefix=no
16304 need_version=no
16305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16308 dynamic_linker='NetBSD (a.out) ld.so'
16309 else
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 dynamic_linker='NetBSD ld.elf_so'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=yes
16316 hardcode_into_libs=yes
16319 newsos6)
16320 version_type=linux
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 shlibpath_overrides_runpath=yes
16326 nto-qnx*)
16327 version_type=linux
16328 need_lib_prefix=no
16329 need_version=no
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=yes
16336 openbsd*)
16337 version_type=sunos
16338 sys_lib_dlsearch_path_spec="/usr/lib"
16339 need_lib_prefix=no
16340 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16341 case $host_os in
16342 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16343 *) need_version=no ;;
16344 esac
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16349 case $host_os in
16350 openbsd2.[89] | openbsd2.[89].*)
16351 shlibpath_overrides_runpath=no
16354 shlibpath_overrides_runpath=yes
16356 esac
16357 else
16358 shlibpath_overrides_runpath=yes
16362 os2*)
16363 libname_spec='$name'
16364 shrext_cmds=".dll"
16365 need_lib_prefix=no
16366 library_names_spec='$libname${shared_ext} $libname.a'
16367 dynamic_linker='OS/2 ld.exe'
16368 shlibpath_var=LIBPATH
16371 osf3* | osf4* | osf5*)
16372 version_type=osf
16373 need_lib_prefix=no
16374 need_version=no
16375 soname_spec='${libname}${release}${shared_ext}$major'
16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377 shlibpath_var=LD_LIBRARY_PATH
16378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16382 solaris*)
16383 version_type=linux
16384 need_lib_prefix=no
16385 need_version=no
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 hardcode_into_libs=yes
16391 # ldd complains unless libraries are executable
16392 postinstall_cmds='chmod +x $lib'
16395 sunos4*)
16396 version_type=sunos
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=yes
16401 if test "$with_gnu_ld" = yes; then
16402 need_lib_prefix=no
16404 need_version=yes
16407 sysv4 | sysv4.3*)
16408 version_type=linux
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 case $host_vendor in
16413 sni)
16414 shlibpath_overrides_runpath=no
16415 need_lib_prefix=no
16416 export_dynamic_flag_spec='${wl}-Blargedynsym'
16417 runpath_var=LD_RUN_PATH
16419 siemens)
16420 need_lib_prefix=no
16422 motorola)
16423 need_lib_prefix=no
16424 need_version=no
16425 shlibpath_overrides_runpath=no
16426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16428 esac
16431 sysv4*MP*)
16432 if test -d /usr/nec ;then
16433 version_type=linux
16434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16435 soname_spec='$libname${shared_ext}.$major'
16436 shlibpath_var=LD_LIBRARY_PATH
16440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16441 version_type=freebsd-elf
16442 need_lib_prefix=no
16443 need_version=no
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 hardcode_into_libs=yes
16448 if test "$with_gnu_ld" = yes; then
16449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16450 shlibpath_overrides_runpath=no
16451 else
16452 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16453 shlibpath_overrides_runpath=yes
16454 case $host_os in
16455 sco3.2v5*)
16456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16458 esac
16460 sys_lib_dlsearch_path_spec='/usr/lib'
16463 uts4*)
16464 version_type=linux
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 soname_spec='${libname}${release}${shared_ext}$major'
16467 shlibpath_var=LD_LIBRARY_PATH
16471 dynamic_linker=no
16473 esac
16474 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16475 echo "${ECHO_T}$dynamic_linker" >&6; }
16476 test "$dynamic_linker" = no && can_build_shared=no
16478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16479 if test "$GCC" = yes; then
16480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16483 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16484 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16485 hardcode_action=
16486 if test -n "$hardcode_libdir_flag_spec" || \
16487 test -n "$runpath_var" || \
16488 test "X$hardcode_automatic" = "Xyes" ; then
16490 # We can hardcode non-existant directories.
16491 if test "$hardcode_direct" != no &&
16492 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16493 # have to relink, otherwise we might link with an installed library
16494 # when we should be linking with a yet-to-be-installed one
16495 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16496 test "$hardcode_minus_L" != no; then
16497 # Linking always hardcodes the temporary library directory.
16498 hardcode_action=relink
16499 else
16500 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16501 hardcode_action=immediate
16503 else
16504 # We cannot hardcode anything, or else we can only hardcode existing
16505 # directories.
16506 hardcode_action=unsupported
16508 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16509 echo "${ECHO_T}$hardcode_action" >&6; }
16511 if test "$hardcode_action" = relink; then
16512 # Fast installation is not supported
16513 enable_fast_install=no
16514 elif test "$shlibpath_overrides_runpath" = yes ||
16515 test "$enable_shared" = no; then
16516 # Fast installation is not necessary
16517 enable_fast_install=needless
16520 striplib=
16521 old_striplib=
16522 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16523 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16524 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16525 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16526 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16527 { echo "$as_me:$LINENO: result: yes" >&5
16528 echo "${ECHO_T}yes" >&6; }
16529 else
16530 # FIXME - insert some real tests, host_os isn't really good enough
16531 case $host_os in
16532 darwin*)
16533 if test -n "$STRIP" ; then
16534 striplib="$STRIP -x"
16535 { echo "$as_me:$LINENO: result: yes" >&5
16536 echo "${ECHO_T}yes" >&6; }
16537 else
16538 { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16543 { echo "$as_me:$LINENO: result: no" >&5
16544 echo "${ECHO_T}no" >&6; }
16546 esac
16549 if test "x$enable_dlopen" != xyes; then
16550 enable_dlopen=unknown
16551 enable_dlopen_self=unknown
16552 enable_dlopen_self_static=unknown
16553 else
16554 lt_cv_dlopen=no
16555 lt_cv_dlopen_libs=
16557 case $host_os in
16558 beos*)
16559 lt_cv_dlopen="load_add_on"
16560 lt_cv_dlopen_libs=
16561 lt_cv_dlopen_self=yes
16564 mingw* | pw32*)
16565 lt_cv_dlopen="LoadLibrary"
16566 lt_cv_dlopen_libs=
16569 cygwin*)
16570 lt_cv_dlopen="dlopen"
16571 lt_cv_dlopen_libs=
16574 darwin*)
16575 # if libdl is installed we need to link against it
16576 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16577 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16578 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581 ac_check_lib_save_LIBS=$LIBS
16582 LIBS="-ldl $LIBS"
16583 cat >conftest.$ac_ext <<_ACEOF
16584 /* confdefs.h. */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16590 /* Override any GCC internal prototype to avoid an error.
16591 Use char because int might match the return type of a GCC
16592 builtin and then its argument prototype would still apply. */
16593 #ifdef __cplusplus
16594 extern "C"
16595 #endif
16596 char dlopen ();
16598 main ()
16600 return dlopen ();
16602 return 0;
16604 _ACEOF
16605 rm -f conftest.$ac_objext conftest$ac_exeext
16606 if { (ac_try="$ac_link"
16607 case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_link") 2>conftest.er1
16613 ac_status=$?
16614 grep -v '^ *+' conftest.er1 >conftest.err
16615 rm -f conftest.er1
16616 cat conftest.err >&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16620 { (case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_try") 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest$ac_exeext'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_lib_dl_dlopen=yes
16640 else
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ac_cv_lib_dl_dlopen=no
16647 rm -f core conftest.err conftest.$ac_objext \
16648 conftest$ac_exeext conftest.$ac_ext
16649 LIBS=$ac_check_lib_save_LIBS
16651 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16652 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16653 if test $ac_cv_lib_dl_dlopen = yes; then
16654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16655 else
16657 lt_cv_dlopen="dyld"
16658 lt_cv_dlopen_libs=
16659 lt_cv_dlopen_self=yes
16666 { echo "$as_me:$LINENO: checking for shl_load" >&5
16667 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16668 if test "${ac_cv_func_shl_load+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671 cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h. */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16679 #define shl_load innocuous_shl_load
16681 /* System header to define __stub macros and hopefully few prototypes,
16682 which can conflict with char shl_load (); below.
16683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16684 <limits.h> exists even on freestanding compilers. */
16686 #ifdef __STDC__
16687 # include <limits.h>
16688 #else
16689 # include <assert.h>
16690 #endif
16692 #undef shl_load
16694 /* Override any GCC internal prototype to avoid an error.
16695 Use char because int might match the return type of a GCC
16696 builtin and then its argument prototype would still apply. */
16697 #ifdef __cplusplus
16698 extern "C"
16699 #endif
16700 char shl_load ();
16701 /* The GNU C library defines this for functions which it implements
16702 to always fail with ENOSYS. Some functions are actually named
16703 something starting with __ and the normal name is an alias. */
16704 #if defined __stub_shl_load || defined __stub___shl_load
16705 choke me
16706 #endif
16709 main ()
16711 return shl_load ();
16713 return 0;
16715 _ACEOF
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (ac_try="$ac_link"
16718 case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16721 esac
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_link") 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16731 { (case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_try") 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest$ac_exeext'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_cv_func_shl_load=yes
16751 else
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_cv_func_shl_load=no
16758 rm -f core conftest.err conftest.$ac_objext \
16759 conftest$ac_exeext conftest.$ac_ext
16761 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16762 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16763 if test $ac_cv_func_shl_load = yes; then
16764 lt_cv_dlopen="shl_load"
16765 else
16766 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16767 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16768 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771 ac_check_lib_save_LIBS=$LIBS
16772 LIBS="-ldld $LIBS"
16773 cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h. */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 char shl_load ();
16788 main ()
16790 return shl_load ();
16792 return 0;
16794 _ACEOF
16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (ac_try="$ac_link"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_link") 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest$ac_exeext'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_cv_lib_dld_shl_load=yes
16830 else
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_cv_lib_dld_shl_load=no
16837 rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16839 LIBS=$ac_check_lib_save_LIBS
16841 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16842 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16843 if test $ac_cv_lib_dld_shl_load = yes; then
16844 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16845 else
16846 { echo "$as_me:$LINENO: checking for dlopen" >&5
16847 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16848 if test "${ac_cv_func_dlopen+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h. */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16859 #define dlopen innocuous_dlopen
16861 /* System header to define __stub macros and hopefully few prototypes,
16862 which can conflict with char dlopen (); below.
16863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16864 <limits.h> exists even on freestanding compilers. */
16866 #ifdef __STDC__
16867 # include <limits.h>
16868 #else
16869 # include <assert.h>
16870 #endif
16872 #undef dlopen
16874 /* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16877 #ifdef __cplusplus
16878 extern "C"
16879 #endif
16880 char dlopen ();
16881 /* The GNU C library defines this for functions which it implements
16882 to always fail with ENOSYS. Some functions are actually named
16883 something starting with __ and the normal name is an alias. */
16884 #if defined __stub_dlopen || defined __stub___dlopen
16885 choke me
16886 #endif
16889 main ()
16891 return dlopen ();
16893 return 0;
16895 _ACEOF
16896 rm -f conftest.$ac_objext conftest$ac_exeext
16897 if { (ac_try="$ac_link"
16898 case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_link") 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914 esac
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest$ac_exeext'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_func_dlopen=yes
16931 else
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ac_cv_func_dlopen=no
16938 rm -f core conftest.err conftest.$ac_objext \
16939 conftest$ac_exeext conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16942 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16943 if test $ac_cv_func_dlopen = yes; then
16944 lt_cv_dlopen="dlopen"
16945 else
16946 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16947 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951 ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-ldl $LIBS"
16953 cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h. */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16960 /* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
16963 #ifdef __cplusplus
16964 extern "C"
16965 #endif
16966 char dlopen ();
16968 main ()
16970 return dlopen ();
16972 return 0;
16974 _ACEOF
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (ac_try="$ac_link"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_link") 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003 esac
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_cv_lib_dl_dlopen=yes
17010 else
17011 echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17014 ac_cv_lib_dl_dlopen=no
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17019 LIBS=$ac_check_lib_save_LIBS
17021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17022 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17023 if test $ac_cv_lib_dl_dlopen = yes; then
17024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17025 else
17026 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17027 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031 ac_check_lib_save_LIBS=$LIBS
17032 LIBS="-lsvld $LIBS"
17033 cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h. */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17040 /* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
17043 #ifdef __cplusplus
17044 extern "C"
17045 #endif
17046 char dlopen ();
17048 main ()
17050 return dlopen ();
17052 return 0;
17054 _ACEOF
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (ac_try="$ac_link"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_link") 2>conftest.er1
17063 ac_status=$?
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } &&
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_cv_lib_svld_dlopen=yes
17090 else
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_cv_lib_svld_dlopen=no
17097 rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17101 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17102 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17103 if test $ac_cv_lib_svld_dlopen = yes; then
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17105 else
17106 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17107 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17108 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111 ac_check_lib_save_LIBS=$LIBS
17112 LIBS="-ldld $LIBS"
17113 cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17120 /* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17123 #ifdef __cplusplus
17124 extern "C"
17125 #endif
17126 char dld_link ();
17128 main ()
17130 return dld_link ();
17132 return 0;
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_lib_dld_dld_link=yes
17170 else
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_cv_lib_dld_dld_link=no
17177 rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179 LIBS=$ac_check_lib_save_LIBS
17181 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17182 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17183 if test $ac_cv_lib_dld_dld_link = yes; then
17184 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17203 esac
17205 if test "x$lt_cv_dlopen" != xno; then
17206 enable_dlopen=yes
17207 else
17208 enable_dlopen=no
17211 case $lt_cv_dlopen in
17212 dlopen)
17213 save_CPPFLAGS="$CPPFLAGS"
17214 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17216 save_LDFLAGS="$LDFLAGS"
17217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17219 save_LIBS="$LIBS"
17220 LIBS="$lt_cv_dlopen_libs $LIBS"
17222 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17223 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17224 if test "${lt_cv_dlopen_self+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227 if test "$cross_compiling" = yes; then :
17228 lt_cv_dlopen_self=cross
17229 else
17230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17231 lt_status=$lt_dlunknown
17232 cat > conftest.$ac_ext <<EOF
17233 #line 17233 "configure"
17234 #include "confdefs.h"
17236 #if HAVE_DLFCN_H
17237 #include <dlfcn.h>
17238 #endif
17240 #include <stdio.h>
17242 #ifdef RTLD_GLOBAL
17243 # define LT_DLGLOBAL RTLD_GLOBAL
17244 #else
17245 # ifdef DL_GLOBAL
17246 # define LT_DLGLOBAL DL_GLOBAL
17247 # else
17248 # define LT_DLGLOBAL 0
17249 # endif
17250 #endif
17252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17253 find out it does not work in some platform. */
17254 #ifndef LT_DLLAZY_OR_NOW
17255 # ifdef RTLD_LAZY
17256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17257 # else
17258 # ifdef DL_LAZY
17259 # define LT_DLLAZY_OR_NOW DL_LAZY
17260 # else
17261 # ifdef RTLD_NOW
17262 # define LT_DLLAZY_OR_NOW RTLD_NOW
17263 # else
17264 # ifdef DL_NOW
17265 # define LT_DLLAZY_OR_NOW DL_NOW
17266 # else
17267 # define LT_DLLAZY_OR_NOW 0
17268 # endif
17269 # endif
17270 # endif
17271 # endif
17272 #endif
17274 #ifdef __cplusplus
17275 extern "C" void exit (int);
17276 #endif
17278 void fnord() { int i=42;}
17279 int main ()
17281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17282 int status = $lt_dlunknown;
17284 if (self)
17286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17287 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17288 /* dlclose (self); */
17290 else
17291 puts (dlerror ());
17293 exit (status);
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297 (eval $ac_link) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17301 (./conftest; exit; ) >&5 2>/dev/null
17302 lt_status=$?
17303 case x$lt_status in
17304 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17305 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17306 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17307 esac
17308 else :
17309 # compilation failed
17310 lt_cv_dlopen_self=no
17313 rm -fr conftest*
17317 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17318 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17320 if test "x$lt_cv_dlopen_self" = xyes; then
17321 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17322 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17323 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17324 if test "${lt_cv_dlopen_self_static+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327 if test "$cross_compiling" = yes; then :
17328 lt_cv_dlopen_self_static=cross
17329 else
17330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17331 lt_status=$lt_dlunknown
17332 cat > conftest.$ac_ext <<EOF
17333 #line 17333 "configure"
17334 #include "confdefs.h"
17336 #if HAVE_DLFCN_H
17337 #include <dlfcn.h>
17338 #endif
17340 #include <stdio.h>
17342 #ifdef RTLD_GLOBAL
17343 # define LT_DLGLOBAL RTLD_GLOBAL
17344 #else
17345 # ifdef DL_GLOBAL
17346 # define LT_DLGLOBAL DL_GLOBAL
17347 # else
17348 # define LT_DLGLOBAL 0
17349 # endif
17350 #endif
17352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17353 find out it does not work in some platform. */
17354 #ifndef LT_DLLAZY_OR_NOW
17355 # ifdef RTLD_LAZY
17356 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17357 # else
17358 # ifdef DL_LAZY
17359 # define LT_DLLAZY_OR_NOW DL_LAZY
17360 # else
17361 # ifdef RTLD_NOW
17362 # define LT_DLLAZY_OR_NOW RTLD_NOW
17363 # else
17364 # ifdef DL_NOW
17365 # define LT_DLLAZY_OR_NOW DL_NOW
17366 # else
17367 # define LT_DLLAZY_OR_NOW 0
17368 # endif
17369 # endif
17370 # endif
17371 # endif
17372 #endif
17374 #ifdef __cplusplus
17375 extern "C" void exit (int);
17376 #endif
17378 void fnord() { int i=42;}
17379 int main ()
17381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17382 int status = $lt_dlunknown;
17384 if (self)
17386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17387 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17388 /* dlclose (self); */
17390 else
17391 puts (dlerror ());
17393 exit (status);
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397 (eval $ac_link) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17401 (./conftest; exit; ) >&5 2>/dev/null
17402 lt_status=$?
17403 case x$lt_status in
17404 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17405 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17406 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17407 esac
17408 else :
17409 # compilation failed
17410 lt_cv_dlopen_self_static=no
17413 rm -fr conftest*
17417 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17418 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17421 CPPFLAGS="$save_CPPFLAGS"
17422 LDFLAGS="$save_LDFLAGS"
17423 LIBS="$save_LIBS"
17425 esac
17427 case $lt_cv_dlopen_self in
17428 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17429 *) enable_dlopen_self=unknown ;;
17430 esac
17432 case $lt_cv_dlopen_self_static in
17433 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17434 *) enable_dlopen_self_static=unknown ;;
17435 esac
17439 # Report which library types will actually be built
17440 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17441 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17442 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17443 echo "${ECHO_T}$can_build_shared" >&6; }
17445 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17446 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17447 test "$can_build_shared" = "no" && enable_shared=no
17449 # On AIX, shared libraries and static libraries use the same namespace, and
17450 # are all built from PIC.
17451 case $host_os in
17452 aix3*)
17453 test "$enable_shared" = yes && enable_static=no
17454 if test -n "$RANLIB"; then
17455 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17456 postinstall_cmds='$RANLIB $lib'
17460 aix4* | aix5*)
17461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17462 test "$enable_shared" = yes && enable_static=no
17465 esac
17466 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17467 echo "${ECHO_T}$enable_shared" >&6; }
17469 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17470 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17471 # Make sure either enable_shared or enable_static is yes.
17472 test "$enable_shared" = yes || enable_static=yes
17473 { echo "$as_me:$LINENO: result: $enable_static" >&5
17474 echo "${ECHO_T}$enable_static" >&6; }
17476 # The else clause should only fire when bootstrapping the
17477 # libtool distribution, otherwise you forgot to ship ltmain.sh
17478 # with your package, and you will get complaints that there are
17479 # no rules to generate ltmain.sh.
17480 if test -f "$ltmain"; then
17481 # See if we are running on zsh, and set the options which allow our commands through
17482 # without removal of \ escapes.
17483 if test -n "${ZSH_VERSION+set}" ; then
17484 setopt NO_GLOB_SUBST
17486 # Now quote all the things that may contain metacharacters while being
17487 # careful not to overquote the AC_SUBSTed values. We take copies of the
17488 # variables and quote the copies for generation of the libtool script.
17489 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17490 SED SHELL STRIP \
17491 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17492 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17493 deplibs_check_method reload_flag reload_cmds need_locks \
17494 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17495 lt_cv_sys_global_symbol_to_c_name_address \
17496 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17497 old_postinstall_cmds old_postuninstall_cmds \
17498 compiler \
17499 CC \
17500 LD \
17501 lt_prog_compiler_wl \
17502 lt_prog_compiler_pic \
17503 lt_prog_compiler_static \
17504 lt_prog_compiler_no_builtin_flag \
17505 export_dynamic_flag_spec \
17506 thread_safe_flag_spec \
17507 whole_archive_flag_spec \
17508 enable_shared_with_static_runtimes \
17509 old_archive_cmds \
17510 old_archive_from_new_cmds \
17511 predep_objects \
17512 postdep_objects \
17513 predeps \
17514 postdeps \
17515 compiler_lib_search_path \
17516 archive_cmds \
17517 archive_expsym_cmds \
17518 postinstall_cmds \
17519 postuninstall_cmds \
17520 old_archive_from_expsyms_cmds \
17521 allow_undefined_flag \
17522 no_undefined_flag \
17523 export_symbols_cmds \
17524 hardcode_libdir_flag_spec \
17525 hardcode_libdir_flag_spec_ld \
17526 hardcode_libdir_separator \
17527 hardcode_automatic \
17528 module_cmds \
17529 module_expsym_cmds \
17530 lt_cv_prog_compiler_c_o \
17531 exclude_expsyms \
17532 include_expsyms; do
17534 case $var in
17535 old_archive_cmds | \
17536 old_archive_from_new_cmds | \
17537 archive_cmds | \
17538 archive_expsym_cmds | \
17539 module_cmds | \
17540 module_expsym_cmds | \
17541 old_archive_from_expsyms_cmds | \
17542 export_symbols_cmds | \
17543 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17544 postinstall_cmds | postuninstall_cmds | \
17545 old_postinstall_cmds | old_postuninstall_cmds | \
17546 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17547 # Double-quote double-evaled strings.
17548 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17551 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17553 esac
17554 done
17556 case $lt_echo in
17557 *'\$0 --fallback-echo"')
17558 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17560 esac
17562 cfgfile="${ofile}T"
17563 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17564 $rm -f "$cfgfile"
17565 { echo "$as_me:$LINENO: creating $ofile" >&5
17566 echo "$as_me: creating $ofile" >&6;}
17568 cat <<__EOF__ >> "$cfgfile"
17569 #! $SHELL
17571 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17572 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17573 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17575 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17576 # Free Software Foundation, Inc.
17578 # This file is part of GNU Libtool:
17579 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17581 # This program is free software; you can redistribute it and/or modify
17582 # it under the terms of the GNU General Public License as published by
17583 # the Free Software Foundation; either version 2 of the License, or
17584 # (at your option) any later version.
17586 # This program is distributed in the hope that it will be useful, but
17587 # WITHOUT ANY WARRANTY; without even the implied warranty of
17588 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17589 # General Public License for more details.
17591 # You should have received a copy of the GNU General Public License
17592 # along with this program; if not, write to the Free Software
17593 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17595 # As a special exception to the GNU General Public License, if you
17596 # distribute this file as part of a program that contains a
17597 # configuration script generated by Autoconf, you may include it under
17598 # the same distribution terms that you use for the rest of that program.
17600 # A sed program that does not truncate output.
17601 SED=$lt_SED
17603 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17604 Xsed="$SED -e 1s/^X//"
17606 # The HP-UX ksh and POSIX shell print the target directory to stdout
17607 # if CDPATH is set.
17608 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17610 # The names of the tagged configurations supported by this script.
17611 available_tags=
17613 # ### BEGIN LIBTOOL CONFIG
17615 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17617 # Shell to use when invoking shell scripts.
17618 SHELL=$lt_SHELL
17620 # Whether or not to build shared libraries.
17621 build_libtool_libs=$enable_shared
17623 # Whether or not to build static libraries.
17624 build_old_libs=$enable_static
17626 # Whether or not to add -lc for building shared libraries.
17627 build_libtool_need_lc=$archive_cmds_need_lc
17629 # Whether or not to disallow shared libs when runtime libs are static
17630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17632 # Whether or not to optimize for fast installation.
17633 fast_install=$enable_fast_install
17635 # The host system.
17636 host_alias=$host_alias
17637 host=$host
17638 host_os=$host_os
17640 # The build system.
17641 build_alias=$build_alias
17642 build=$build
17643 build_os=$build_os
17645 # An echo program that does not interpret backslashes.
17646 echo=$lt_echo
17648 # The archiver.
17649 AR=$lt_AR
17650 AR_FLAGS=$lt_AR_FLAGS
17652 # A C compiler.
17653 LTCC=$lt_LTCC
17655 # LTCC compiler flags.
17656 LTCFLAGS=$lt_LTCFLAGS
17658 # A language-specific compiler.
17659 CC=$lt_compiler
17661 # Is the compiler the GNU C compiler?
17662 with_gcc=$GCC
17664 # An ERE matcher.
17665 EGREP=$lt_EGREP
17667 # The linker used to build libraries.
17668 LD=$lt_LD
17670 # Whether we need hard or soft links.
17671 LN_S=$lt_LN_S
17673 # A BSD-compatible nm program.
17674 NM=$lt_NM
17676 # A symbol stripping program
17677 STRIP=$lt_STRIP
17679 # Used to examine libraries when file_magic_cmd begins "file"
17680 MAGIC_CMD=$MAGIC_CMD
17682 # Used on cygwin: DLL creation program.
17683 DLLTOOL="$DLLTOOL"
17685 # Used on cygwin: object dumper.
17686 OBJDUMP="$OBJDUMP"
17688 # Used on cygwin: assembler.
17689 AS="$AS"
17691 # The name of the directory that contains temporary libtool files.
17692 objdir=$objdir
17694 # How to create reloadable object files.
17695 reload_flag=$lt_reload_flag
17696 reload_cmds=$lt_reload_cmds
17698 # How to pass a linker flag through the compiler.
17699 wl=$lt_lt_prog_compiler_wl
17701 # Object file suffix (normally "o").
17702 objext="$ac_objext"
17704 # Old archive suffix (normally "a").
17705 libext="$libext"
17707 # Shared library suffix (normally ".so").
17708 shrext_cmds='$shrext_cmds'
17710 # Executable file suffix (normally "").
17711 exeext="$exeext"
17713 # Additional compiler flags for building library objects.
17714 pic_flag=$lt_lt_prog_compiler_pic
17715 pic_mode=$pic_mode
17717 # What is the maximum length of a command?
17718 max_cmd_len=$lt_cv_sys_max_cmd_len
17720 # Does compiler simultaneously support -c and -o options?
17721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17723 # Must we lock files when doing compilation?
17724 need_locks=$lt_need_locks
17726 # Do we need the lib prefix for modules?
17727 need_lib_prefix=$need_lib_prefix
17729 # Do we need a version for libraries?
17730 need_version=$need_version
17732 # Whether dlopen is supported.
17733 dlopen_support=$enable_dlopen
17735 # Whether dlopen of programs is supported.
17736 dlopen_self=$enable_dlopen_self
17738 # Whether dlopen of statically linked programs is supported.
17739 dlopen_self_static=$enable_dlopen_self_static
17741 # Compiler flag to prevent dynamic linking.
17742 link_static_flag=$lt_lt_prog_compiler_static
17744 # Compiler flag to turn off builtin functions.
17745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17747 # Compiler flag to allow reflexive dlopens.
17748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17750 # Compiler flag to generate shared objects directly from archives.
17751 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17753 # Compiler flag to generate thread-safe objects.
17754 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17756 # Library versioning type.
17757 version_type=$version_type
17759 # Format of library name prefix.
17760 libname_spec=$lt_libname_spec
17762 # List of archive names. First name is the real one, the rest are links.
17763 # The last name is the one that the linker finds with -lNAME.
17764 library_names_spec=$lt_library_names_spec
17766 # The coded name of the library, if different from the real name.
17767 soname_spec=$lt_soname_spec
17769 # Commands used to build and install an old-style archive.
17770 RANLIB=$lt_RANLIB
17771 old_archive_cmds=$lt_old_archive_cmds
17772 old_postinstall_cmds=$lt_old_postinstall_cmds
17773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17775 # Create an old-style archive from a shared archive.
17776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17778 # Create a temporary old-style archive to link instead of a shared archive.
17779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17781 # Commands used to build and install a shared archive.
17782 archive_cmds=$lt_archive_cmds
17783 archive_expsym_cmds=$lt_archive_expsym_cmds
17784 postinstall_cmds=$lt_postinstall_cmds
17785 postuninstall_cmds=$lt_postuninstall_cmds
17787 # Commands used to build a loadable module (assumed same as above if empty)
17788 module_cmds=$lt_module_cmds
17789 module_expsym_cmds=$lt_module_expsym_cmds
17791 # Commands to strip libraries.
17792 old_striplib=$lt_old_striplib
17793 striplib=$lt_striplib
17795 # Dependencies to place before the objects being linked to create a
17796 # shared library.
17797 predep_objects=$lt_predep_objects
17799 # Dependencies to place after the objects being linked to create a
17800 # shared library.
17801 postdep_objects=$lt_postdep_objects
17803 # Dependencies to place before the objects being linked to create a
17804 # shared library.
17805 predeps=$lt_predeps
17807 # Dependencies to place after the objects being linked to create a
17808 # shared library.
17809 postdeps=$lt_postdeps
17811 # The library search path used internally by the compiler when linking
17812 # a shared library.
17813 compiler_lib_search_path=$lt_compiler_lib_search_path
17815 # Method to check whether dependent libraries are shared objects.
17816 deplibs_check_method=$lt_deplibs_check_method
17818 # Command to use when deplibs_check_method == file_magic.
17819 file_magic_cmd=$lt_file_magic_cmd
17821 # Flag that allows shared libraries with undefined symbols to be built.
17822 allow_undefined_flag=$lt_allow_undefined_flag
17824 # Flag that forces no undefined symbols.
17825 no_undefined_flag=$lt_no_undefined_flag
17827 # Commands used to finish a libtool library installation in a directory.
17828 finish_cmds=$lt_finish_cmds
17830 # Same as above, but a single script fragment to be evaled but not shown.
17831 finish_eval=$lt_finish_eval
17833 # Take the output of nm and produce a listing of raw symbols and C names.
17834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17836 # Transform the output of nm in a proper C declaration
17837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17839 # Transform the output of nm in a C name address pair
17840 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17842 # This is the shared library runtime path variable.
17843 runpath_var=$runpath_var
17845 # This is the shared library path variable.
17846 shlibpath_var=$shlibpath_var
17848 # Is shlibpath searched before the hard-coded library search path?
17849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17851 # How to hardcode a shared library path into an executable.
17852 hardcode_action=$hardcode_action
17854 # Whether we should hardcode library paths into libraries.
17855 hardcode_into_libs=$hardcode_into_libs
17857 # Flag to hardcode \$libdir into a binary during linking.
17858 # This must work even if \$libdir does not exist.
17859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17861 # If ld is used when linking, flag to hardcode \$libdir into
17862 # a binary during linking. This must work even if \$libdir does
17863 # not exist.
17864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17866 # Whether we need a single -rpath flag with a separated argument.
17867 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17869 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17870 # resulting binary.
17871 hardcode_direct=$hardcode_direct
17873 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17874 # resulting binary.
17875 hardcode_minus_L=$hardcode_minus_L
17877 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17878 # the resulting binary.
17879 hardcode_shlibpath_var=$hardcode_shlibpath_var
17881 # Set to yes if building a shared library automatically hardcodes DIR into the library
17882 # and all subsequent libraries and executables linked against it.
17883 hardcode_automatic=$hardcode_automatic
17885 # Variables whose values should be saved in libtool wrapper scripts and
17886 # restored at relink time.
17887 variables_saved_for_relink="$variables_saved_for_relink"
17889 # Whether libtool must link a program against all its dependency libraries.
17890 link_all_deplibs=$link_all_deplibs
17892 # Compile-time system search path for libraries
17893 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17895 # Run-time system search path for libraries
17896 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17898 # Fix the shell variable \$srcfile for the compiler.
17899 fix_srcfile_path="$fix_srcfile_path"
17901 # Set to yes if exported symbols are required.
17902 always_export_symbols=$always_export_symbols
17904 # The commands to list exported symbols.
17905 export_symbols_cmds=$lt_export_symbols_cmds
17907 # The commands to extract the exported symbol list from a shared archive.
17908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17910 # Symbols that should not be listed in the preloaded symbols.
17911 exclude_expsyms=$lt_exclude_expsyms
17913 # Symbols that must always be exported.
17914 include_expsyms=$lt_include_expsyms
17916 # ### END LIBTOOL CONFIG
17918 __EOF__
17921 case $host_os in
17922 aix3*)
17923 cat <<\EOF >> "$cfgfile"
17925 # AIX sometimes has problems with the GCC collect2 program. For some
17926 # reason, if we set the COLLECT_NAMES environment variable, the problems
17927 # vanish in a puff of smoke.
17928 if test "X${COLLECT_NAMES+set}" != Xset; then
17929 COLLECT_NAMES=
17930 export COLLECT_NAMES
17934 esac
17936 # We use sed instead of cat because bash on DJGPP gets confused if
17937 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17938 # text mode, it properly converts lines to CR/LF. This bash problem
17939 # is reportedly fixed, but why not run on old versions too?
17940 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17942 mv -f "$cfgfile" "$ofile" || \
17943 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17944 chmod +x "$ofile"
17946 else
17947 # If there is no Makefile yet, we rely on a make rule to execute
17948 # `config.status --recheck' to rerun these tests and create the
17949 # libtool script then.
17950 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17951 if test -f "$ltmain_in"; then
17952 test -f Makefile && make "$ltmain"
17957 ac_ext=c
17958 ac_cpp='$CPP $CPPFLAGS'
17959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17963 CC="$lt_save_CC"
17966 # Check whether --with-tags was given.
17967 if test "${with_tags+set}" = set; then
17968 withval=$with_tags; tagnames="$withval"
17972 if test -f "$ltmain" && test -n "$tagnames"; then
17973 if test ! -f "${ofile}"; then
17974 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17975 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17978 if test -z "$LTCC"; then
17979 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17980 if test -z "$LTCC"; then
17981 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17982 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17983 else
17984 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17985 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17988 if test -z "$LTCFLAGS"; then
17989 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17992 # Extract list of available tagged configurations in $ofile.
17993 # Note that this assumes the entire list is on one line.
17994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17997 for tagname in $tagnames; do
17998 IFS="$lt_save_ifs"
17999 # Check whether tagname contains only valid characters
18000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18001 "") ;;
18002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18003 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18004 { (exit 1); exit 1; }; }
18006 esac
18008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18009 then
18010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18011 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18012 { (exit 1); exit 1; }; }
18015 # Update the list of available tags.
18016 if test -n "$tagname"; then
18017 echo appending configuration tag \"$tagname\" to $ofile
18019 case $tagname in
18020 CXX)
18021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18023 (test "X$CXX" != "Xg++"))) ; then
18024 ac_ext=cpp
18025 ac_cpp='$CXXCPP $CPPFLAGS'
18026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18033 archive_cmds_need_lc_CXX=no
18034 allow_undefined_flag_CXX=
18035 always_export_symbols_CXX=no
18036 archive_expsym_cmds_CXX=
18037 export_dynamic_flag_spec_CXX=
18038 hardcode_direct_CXX=no
18039 hardcode_libdir_flag_spec_CXX=
18040 hardcode_libdir_flag_spec_ld_CXX=
18041 hardcode_libdir_separator_CXX=
18042 hardcode_minus_L_CXX=no
18043 hardcode_shlibpath_var_CXX=unsupported
18044 hardcode_automatic_CXX=no
18045 module_cmds_CXX=
18046 module_expsym_cmds_CXX=
18047 link_all_deplibs_CXX=unknown
18048 old_archive_cmds_CXX=$old_archive_cmds
18049 no_undefined_flag_CXX=
18050 whole_archive_flag_spec_CXX=
18051 enable_shared_with_static_runtimes_CXX=no
18053 # Dependencies to place before and after the object being linked:
18054 predep_objects_CXX=
18055 postdep_objects_CXX=
18056 predeps_CXX=
18057 postdeps_CXX=
18058 compiler_lib_search_path_CXX=
18060 # Source file extension for C++ test sources.
18061 ac_ext=cpp
18063 # Object file extension for compiled C++ test sources.
18064 objext=o
18065 objext_CXX=$objext
18067 # Code to be used in simple compile tests
18068 lt_simple_compile_test_code="int some_variable = 0;\n"
18070 # Code to be used in simple link tests
18071 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18073 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18075 # If no C compiler was specified, use CC.
18076 LTCC=${LTCC-"$CC"}
18078 # If no C compiler flags were specified, use CFLAGS.
18079 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18081 # Allow CC to be a program name with arguments.
18082 compiler=$CC
18085 # save warnings/boilerplate of simple test code
18086 ac_outfile=conftest.$ac_objext
18087 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18088 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18089 _lt_compiler_boilerplate=`cat conftest.err`
18090 $rm conftest*
18092 ac_outfile=conftest.$ac_objext
18093 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18094 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18095 _lt_linker_boilerplate=`cat conftest.err`
18096 $rm conftest*
18099 # Allow CC to be a program name with arguments.
18100 lt_save_CC=$CC
18101 lt_save_LD=$LD
18102 lt_save_GCC=$GCC
18103 GCC=$GXX
18104 lt_save_with_gnu_ld=$with_gnu_ld
18105 lt_save_path_LD=$lt_cv_path_LD
18106 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18107 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18108 else
18109 $as_unset lt_cv_prog_gnu_ld
18111 if test -n "${lt_cv_path_LDCXX+set}"; then
18112 lt_cv_path_LD=$lt_cv_path_LDCXX
18113 else
18114 $as_unset lt_cv_path_LD
18116 test -z "${LDCXX+set}" || LD=$LDCXX
18117 CC=${CXX-"c++"}
18118 compiler=$CC
18119 compiler_CXX=$CC
18120 for cc_temp in $compiler""; do
18121 case $cc_temp in
18122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18124 \-*) ;;
18125 *) break;;
18126 esac
18127 done
18128 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18131 # We don't want -fno-exception wen compiling C++ code, so set the
18132 # no_builtin_flag separately
18133 if test "$GXX" = yes; then
18134 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18135 else
18136 lt_prog_compiler_no_builtin_flag_CXX=
18139 if test "$GXX" = yes; then
18140 # Set up default GNU C++ configuration
18143 # Check whether --with-gnu-ld was given.
18144 if test "${with_gnu_ld+set}" = set; then
18145 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18146 else
18147 with_gnu_ld=no
18150 ac_prog=ld
18151 if test "$GCC" = yes; then
18152 # Check if gcc -print-prog-name=ld gives a path.
18153 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18154 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18155 case $host in
18156 *-*-mingw*)
18157 # gcc leaves a trailing carriage return which upsets mingw
18158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18161 esac
18162 case $ac_prog in
18163 # Accept absolute paths.
18164 [\\/]* | ?:[\\/]*)
18165 re_direlt='/[^/][^/]*/\.\./'
18166 # Canonicalize the pathname of ld
18167 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18169 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18170 done
18171 test -z "$LD" && LD="$ac_prog"
18174 # If it fails, then pretend we aren't using GCC.
18175 ac_prog=ld
18178 # If it is relative, then search for the first ld in PATH.
18179 with_gnu_ld=unknown
18181 esac
18182 elif test "$with_gnu_ld" = yes; then
18183 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18185 else
18186 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18189 if test "${lt_cv_path_LD+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18192 if test -z "$LD"; then
18193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18194 for ac_dir in $PATH; do
18195 IFS="$lt_save_ifs"
18196 test -z "$ac_dir" && ac_dir=.
18197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18198 lt_cv_path_LD="$ac_dir/$ac_prog"
18199 # Check to see if the program is GNU ld. I'd rather use --version,
18200 # but apparently some variants of GNU ld only accept -v.
18201 # Break only if it was the GNU/non-GNU ld that we prefer.
18202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18203 *GNU* | *'with BFD'*)
18204 test "$with_gnu_ld" != no && break
18207 test "$with_gnu_ld" != yes && break
18209 esac
18211 done
18212 IFS="$lt_save_ifs"
18213 else
18214 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18218 LD="$lt_cv_path_LD"
18219 if test -n "$LD"; then
18220 { echo "$as_me:$LINENO: result: $LD" >&5
18221 echo "${ECHO_T}$LD" >&6; }
18222 else
18223 { echo "$as_me:$LINENO: result: no" >&5
18224 echo "${ECHO_T}no" >&6; }
18226 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18227 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18228 { (exit 1); exit 1; }; }
18229 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18230 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18231 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 else
18234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18235 case `$LD -v 2>&1 </dev/null` in
18236 *GNU* | *'with BFD'*)
18237 lt_cv_prog_gnu_ld=yes
18240 lt_cv_prog_gnu_ld=no
18242 esac
18244 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18245 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18246 with_gnu_ld=$lt_cv_prog_gnu_ld
18250 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18251 # archiving commands below assume that GNU ld is being used.
18252 if test "$with_gnu_ld" = yes; then
18253 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18254 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'
18256 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18259 # If archive_cmds runs LD, not CC, wlarc should be empty
18260 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18261 # investigate it a little bit more. (MM)
18262 wlarc='${wl}'
18264 # ancient GNU ld didn't support --whole-archive et. al.
18265 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18266 grep 'no-whole-archive' > /dev/null; then
18267 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18268 else
18269 whole_archive_flag_spec_CXX=
18271 else
18272 with_gnu_ld=no
18273 wlarc=
18275 # A generic and very simple default shared library creation
18276 # command for GNU C++ for the case where it uses the native
18277 # linker, instead of GNU ld. If possible, this setting should
18278 # overridden to take advantage of the native linker features on
18279 # the platform it is being used on.
18280 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18283 # Commands to make compiler produce verbose output that lists
18284 # what "hidden" libraries, object files and flags are used when
18285 # linking a shared library.
18286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18288 else
18289 GXX=no
18290 with_gnu_ld=no
18291 wlarc=
18294 # PORTME: fill in a description of your system's C++ link characteristics
18295 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18297 ld_shlibs_CXX=yes
18298 case $host_os in
18299 aix3*)
18300 # FIXME: insert proper C++ library support
18301 ld_shlibs_CXX=no
18303 aix4* | aix5*)
18304 if test "$host_cpu" = ia64; then
18305 # On IA64, the linker does run time linking by default, so we don't
18306 # have to do anything special.
18307 aix_use_runtimelinking=no
18308 exp_sym_flag='-Bexport'
18309 no_entry_flag=""
18310 else
18311 aix_use_runtimelinking=no
18313 # Test if we are trying to use run time linking or normal
18314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18315 # need to do runtime linking.
18316 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18317 for ld_flag in $LDFLAGS; do
18318 case $ld_flag in
18319 *-brtl*)
18320 aix_use_runtimelinking=yes
18321 break
18323 esac
18324 done
18326 esac
18328 exp_sym_flag='-bexport'
18329 no_entry_flag='-bnoentry'
18332 # When large executables or shared objects are built, AIX ld can
18333 # have problems creating the table of contents. If linking a library
18334 # or program results in "error TOC overflow" add -mminimal-toc to
18335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18338 archive_cmds_CXX=''
18339 hardcode_direct_CXX=yes
18340 hardcode_libdir_separator_CXX=':'
18341 link_all_deplibs_CXX=yes
18343 if test "$GXX" = yes; then
18344 case $host_os in aix4.[012]|aix4.[012].*)
18345 # We only want to do this on AIX 4.2 and lower, the check
18346 # below for broken collect2 doesn't work under 4.3+
18347 collect2name=`${CC} -print-prog-name=collect2`
18348 if test -f "$collect2name" && \
18349 strings "$collect2name" | grep resolve_lib_name >/dev/null
18350 then
18351 # We have reworked collect2
18352 hardcode_direct_CXX=yes
18353 else
18354 # We have old collect2
18355 hardcode_direct_CXX=unsupported
18356 # It fails to find uninstalled libraries when the uninstalled
18357 # path is not listed in the libpath. Setting hardcode_minus_L
18358 # to unsupported forces relinking
18359 hardcode_minus_L_CXX=yes
18360 hardcode_libdir_flag_spec_CXX='-L$libdir'
18361 hardcode_libdir_separator_CXX=
18364 esac
18365 shared_flag='-shared'
18366 if test "$aix_use_runtimelinking" = yes; then
18367 shared_flag="$shared_flag "'${wl}-G'
18369 else
18370 # not using gcc
18371 if test "$host_cpu" = ia64; then
18372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18373 # chokes on -Wl,-G. The following line is correct:
18374 shared_flag='-G'
18375 else
18376 if test "$aix_use_runtimelinking" = yes; then
18377 shared_flag='${wl}-G'
18378 else
18379 shared_flag='${wl}-bM:SRE'
18384 # It seems that -bexpall does not export symbols beginning with
18385 # underscore (_), so it is better to generate a list of symbols to export.
18386 always_export_symbols_CXX=yes
18387 if test "$aix_use_runtimelinking" = yes; then
18388 # Warning - without using the other runtime loading flags (-brtl),
18389 # -berok will link without error, but may produce a broken library.
18390 allow_undefined_flag_CXX='-berok'
18391 # Determine the default libpath from the value encoded in an empty executable.
18392 cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h. */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18400 main ()
18404 return 0;
18406 _ACEOF
18407 rm -f conftest.$ac_objext conftest$ac_exeext
18408 if { (ac_try="$ac_link"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_link") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } &&
18421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18422 { (case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18425 esac
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_try") 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; } &&
18431 { ac_try='test -s conftest$ac_exeext'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18444 # Check for a 64-bit object if we didn't find anything.
18445 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; }
18446 }'`; fi
18447 else
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18454 rm -f core conftest.err conftest.$ac_objext \
18455 conftest$ac_exeext conftest.$ac_ext
18456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18458 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18460 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"
18461 else
18462 if test "$host_cpu" = ia64; then
18463 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18464 allow_undefined_flag_CXX="-z nodefs"
18465 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"
18466 else
18467 # Determine the default libpath from the value encoded in an empty executable.
18468 cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h. */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18476 main ()
18480 return 0;
18482 _ACEOF
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_link") 2>conftest.er1
18491 ac_status=$?
18492 grep -v '^ *+' conftest.er1 >conftest.err
18493 rm -f conftest.er1
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18520 # Check for a 64-bit object if we didn't find anything.
18521 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; }
18522 }'`; fi
18523 else
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18530 rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
18532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18534 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18535 # Warning - without using the other run time loading flags,
18536 # -berok will link without error, but may produce a broken library.
18537 no_undefined_flag_CXX=' ${wl}-bernotok'
18538 allow_undefined_flag_CXX=' ${wl}-berok'
18539 # Exported symbols can be pulled into shared objects from archives
18540 whole_archive_flag_spec_CXX='$convenience'
18541 archive_cmds_need_lc_CXX=yes
18542 # This is similar to how AIX traditionally builds its shared libraries.
18543 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'
18548 beos*)
18549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18550 allow_undefined_flag_CXX=unsupported
18551 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18552 # support --undefined. This deserves some investigation. FIXME
18553 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554 else
18555 ld_shlibs_CXX=no
18559 chorus*)
18560 case $cc_basename in
18562 # FIXME: insert proper C++ library support
18563 ld_shlibs_CXX=no
18565 esac
18568 cygwin* | mingw* | pw32*)
18569 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18570 # as there is no search path for DLLs.
18571 hardcode_libdir_flag_spec_CXX='-L$libdir'
18572 allow_undefined_flag_CXX=unsupported
18573 always_export_symbols_CXX=no
18574 enable_shared_with_static_runtimes_CXX=yes
18576 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18577 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'
18578 # If the export-symbols file already is a .def file (1st line
18579 # is EXPORTS), use it as is; otherwise, prepend...
18580 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18581 cp $export_symbols $output_objdir/$soname.def;
18582 else
18583 echo EXPORTS > $output_objdir/$soname.def;
18584 cat $export_symbols >> $output_objdir/$soname.def;
18586 $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'
18587 else
18588 ld_shlibs_CXX=no
18591 darwin* | rhapsody*)
18592 case $host_os in
18593 rhapsody* | darwin1.[012])
18594 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18596 *) # Darwin 1.3 on
18597 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18598 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18599 else
18600 case ${MACOSX_DEPLOYMENT_TARGET} in
18601 10.[012])
18602 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18604 10.*)
18605 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18607 esac
18610 esac
18611 archive_cmds_need_lc_CXX=no
18612 hardcode_direct_CXX=no
18613 hardcode_automatic_CXX=yes
18614 hardcode_shlibpath_var_CXX=unsupported
18615 whole_archive_flag_spec_CXX=''
18616 link_all_deplibs_CXX=yes
18618 if test "$GXX" = yes ; then
18619 lt_int_apple_cc_single_mod=no
18620 output_verbose_link_cmd='echo'
18621 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18622 lt_int_apple_cc_single_mod=yes
18624 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18625 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18626 else
18627 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'
18629 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18630 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18631 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18632 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}'
18633 else
18634 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}'
18636 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}'
18637 else
18638 case $cc_basename in
18639 xlc*)
18640 output_verbose_link_cmd='echo'
18641 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'
18642 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18644 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}'
18645 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}'
18648 ld_shlibs_CXX=no
18650 esac
18654 dgux*)
18655 case $cc_basename in
18656 ec++*)
18657 # FIXME: insert proper C++ library support
18658 ld_shlibs_CXX=no
18660 ghcx*)
18661 # Green Hills C++ Compiler
18662 # FIXME: insert proper C++ library support
18663 ld_shlibs_CXX=no
18666 # FIXME: insert proper C++ library support
18667 ld_shlibs_CXX=no
18669 esac
18671 freebsd[12]*)
18672 # C++ shared libraries reported to be fairly broken before switch to ELF
18673 ld_shlibs_CXX=no
18675 freebsd-elf*)
18676 archive_cmds_need_lc_CXX=no
18678 freebsd* | kfreebsd*-gnu | dragonfly*)
18679 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18680 # conventions
18681 ld_shlibs_CXX=yes
18683 gnu*)
18685 hpux9*)
18686 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18687 hardcode_libdir_separator_CXX=:
18688 export_dynamic_flag_spec_CXX='${wl}-E'
18689 hardcode_direct_CXX=yes
18690 hardcode_minus_L_CXX=yes # Not in the search PATH,
18691 # but as the default
18692 # location of the library.
18694 case $cc_basename in
18695 CC*)
18696 # FIXME: insert proper C++ library support
18697 ld_shlibs_CXX=no
18699 aCC*)
18700 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'
18701 # Commands to make compiler produce verbose output that lists
18702 # what "hidden" libraries, object files and flags are used when
18703 # linking a shared library.
18705 # There doesn't appear to be a way to prevent this compiler from
18706 # explicitly linking system object files so we need to strip them
18707 # from the output so that they don't get included in the library
18708 # dependencies.
18709 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'
18712 if test "$GXX" = yes; then
18713 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'
18714 else
18715 # FIXME: insert proper C++ library support
18716 ld_shlibs_CXX=no
18719 esac
18721 hpux10*|hpux11*)
18722 if test $with_gnu_ld = no; then
18723 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18724 hardcode_libdir_separator_CXX=:
18726 case $host_cpu in
18727 hppa*64*|ia64*)
18728 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18731 export_dynamic_flag_spec_CXX='${wl}-E'
18733 esac
18735 case $host_cpu in
18736 hppa*64*|ia64*)
18737 hardcode_direct_CXX=no
18738 hardcode_shlibpath_var_CXX=no
18741 hardcode_direct_CXX=yes
18742 hardcode_minus_L_CXX=yes # Not in the search PATH,
18743 # but as the default
18744 # location of the library.
18746 esac
18748 case $cc_basename in
18749 CC*)
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18753 aCC*)
18754 case $host_cpu in
18755 hppa*64*)
18756 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18758 ia64*)
18759 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18762 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18764 esac
18765 # Commands to make compiler produce verbose output that lists
18766 # what "hidden" libraries, object files and flags are used when
18767 # linking a shared library.
18769 # There doesn't appear to be a way to prevent this compiler from
18770 # explicitly linking system object files so we need to strip them
18771 # from the output so that they don't get included in the library
18772 # dependencies.
18773 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'
18776 if test "$GXX" = yes; then
18777 if test $with_gnu_ld = no; then
18778 case $host_cpu in
18779 hppa*64*)
18780 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18782 ia64*)
18783 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18786 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'
18788 esac
18790 else
18791 # FIXME: insert proper C++ library support
18792 ld_shlibs_CXX=no
18795 esac
18797 interix3*)
18798 hardcode_direct_CXX=no
18799 hardcode_shlibpath_var_CXX=no
18800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18801 export_dynamic_flag_spec_CXX='${wl}-E'
18802 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18803 # Instead, shared libraries are loaded at an image base (0x10000000 by
18804 # default) and relocated if they conflict, which is a slow very memory
18805 # consuming and fragmenting process. To avoid this, we pick a random,
18806 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18807 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18808 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'
18809 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'
18811 irix5* | irix6*)
18812 case $cc_basename in
18813 CC*)
18814 # SGI C++
18815 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'
18817 # Archives containing C++ object files must be created using
18818 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18819 # necessary to make sure instantiated templates are included
18820 # in the archive.
18821 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18824 if test "$GXX" = yes; then
18825 if test "$with_gnu_ld" = no; then
18826 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'
18827 else
18828 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'
18831 link_all_deplibs_CXX=yes
18833 esac
18834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18835 hardcode_libdir_separator_CXX=:
18837 linux*)
18838 case $cc_basename in
18839 KCC*)
18840 # Kuck and Associates, Inc. (KAI) C++ Compiler
18842 # KCC will only create a shared library if the output file
18843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18844 # to its proper name (with version) after linking.
18845 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'
18846 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'
18847 # Commands to make compiler produce verbose output that lists
18848 # what "hidden" libraries, object files and flags are used when
18849 # linking a shared library.
18851 # There doesn't appear to be a way to prevent this compiler from
18852 # explicitly linking system object files so we need to strip them
18853 # from the output so that they don't get included in the library
18854 # dependencies.
18855 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'
18857 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18858 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18860 # Archives containing C++ object files must be created using
18861 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18862 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18864 icpc*)
18865 # Intel C++
18866 with_gnu_ld=yes
18867 # version 8.0 and above of icpc choke on multiply defined symbols
18868 # if we add $predep_objects and $postdep_objects, however 7.1 and
18869 # earlier do not add the objects themselves.
18870 case `$CC -V 2>&1` in
18871 *"Version 7."*)
18872 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18873 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'
18875 *) # Version 8.0 or newer
18876 tmp_idyn=
18877 case $host_cpu in
18878 ia64*) tmp_idyn=' -i_dynamic';;
18879 esac
18880 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18881 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'
18883 esac
18884 archive_cmds_need_lc_CXX=no
18885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18887 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18889 pgCC*)
18890 # Portland Group C++ compiler
18891 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18892 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'
18894 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18895 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18896 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'
18898 cxx*)
18899 # Compaq C++
18900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18901 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'
18903 runpath_var=LD_RUN_PATH
18904 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18905 hardcode_libdir_separator_CXX=:
18907 # Commands to make compiler produce verbose output that lists
18908 # what "hidden" libraries, object files and flags are used when
18909 # linking a shared library.
18911 # There doesn't appear to be a way to prevent this compiler from
18912 # explicitly linking system object files so we need to strip them
18913 # from the output so that they don't get included in the library
18914 # dependencies.
18915 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'
18917 esac
18919 lynxos*)
18920 # FIXME: insert proper C++ library support
18921 ld_shlibs_CXX=no
18923 m88k*)
18924 # FIXME: insert proper C++ library support
18925 ld_shlibs_CXX=no
18927 mvs*)
18928 case $cc_basename in
18929 cxx*)
18930 # FIXME: insert proper C++ library support
18931 ld_shlibs_CXX=no
18934 # FIXME: insert proper C++ library support
18935 ld_shlibs_CXX=no
18937 esac
18939 netbsd*)
18940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18941 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18942 wlarc=
18943 hardcode_libdir_flag_spec_CXX='-R$libdir'
18944 hardcode_direct_CXX=yes
18945 hardcode_shlibpath_var_CXX=no
18947 # Workaround some broken pre-1.5 toolchains
18948 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18950 openbsd2*)
18951 # C++ shared libraries are fairly broken
18952 ld_shlibs_CXX=no
18954 openbsd*)
18955 hardcode_direct_CXX=yes
18956 hardcode_shlibpath_var_CXX=no
18957 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18960 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18961 export_dynamic_flag_spec_CXX='${wl}-E'
18962 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18964 output_verbose_link_cmd='echo'
18966 osf3*)
18967 case $cc_basename in
18968 KCC*)
18969 # Kuck and Associates, Inc. (KAI) C++ Compiler
18971 # KCC will only create a shared library if the output file
18972 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18973 # to its proper name (with version) after linking.
18974 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'
18976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18977 hardcode_libdir_separator_CXX=:
18979 # Archives containing C++ object files must be created using
18980 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18981 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18984 RCC*)
18985 # Rational C++ 2.4.1
18986 # FIXME: insert proper C++ library support
18987 ld_shlibs_CXX=no
18989 cxx*)
18990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18991 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'
18993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18994 hardcode_libdir_separator_CXX=:
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
19000 # There doesn't appear to be a way to prevent this compiler from
19001 # explicitly linking system object files so we need to strip them
19002 # from the output so that they don't get included in the library
19003 # dependencies.
19004 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'
19007 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19008 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19009 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'
19011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19012 hardcode_libdir_separator_CXX=:
19014 # Commands to make compiler produce verbose output that lists
19015 # what "hidden" libraries, object files and flags are used when
19016 # linking a shared library.
19017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19019 else
19020 # FIXME: insert proper C++ library support
19021 ld_shlibs_CXX=no
19024 esac
19026 osf4* | osf5*)
19027 case $cc_basename in
19028 KCC*)
19029 # Kuck and Associates, Inc. (KAI) C++ Compiler
19031 # KCC will only create a shared library if the output file
19032 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19033 # to its proper name (with version) after linking.
19034 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'
19036 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19037 hardcode_libdir_separator_CXX=:
19039 # Archives containing C++ object files must be created using
19040 # the KAI C++ compiler.
19041 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19043 RCC*)
19044 # Rational C++ 2.4.1
19045 # FIXME: insert proper C++ library support
19046 ld_shlibs_CXX=no
19048 cxx*)
19049 allow_undefined_flag_CXX=' -expect_unresolved \*'
19050 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'
19051 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19052 echo "-hidden">> $lib.exp~
19053 $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~
19054 $rm $lib.exp'
19056 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19057 hardcode_libdir_separator_CXX=:
19059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19063 # There doesn't appear to be a way to prevent this compiler from
19064 # explicitly linking system object files so we need to strip them
19065 # from the output so that they don't get included in the library
19066 # dependencies.
19067 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'
19070 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19071 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19072 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'
19074 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19075 hardcode_libdir_separator_CXX=:
19077 # Commands to make compiler produce verbose output that lists
19078 # what "hidden" libraries, object files and flags are used when
19079 # linking a shared library.
19080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19082 else
19083 # FIXME: insert proper C++ library support
19084 ld_shlibs_CXX=no
19087 esac
19089 psos*)
19090 # FIXME: insert proper C++ library support
19091 ld_shlibs_CXX=no
19093 sunos4*)
19094 case $cc_basename in
19095 CC*)
19096 # Sun C++ 4.x
19097 # FIXME: insert proper C++ library support
19098 ld_shlibs_CXX=no
19100 lcc*)
19101 # Lucid
19102 # FIXME: insert proper C++ library support
19103 ld_shlibs_CXX=no
19106 # FIXME: insert proper C++ library support
19107 ld_shlibs_CXX=no
19109 esac
19111 solaris*)
19112 case $cc_basename in
19113 CC*)
19114 # Sun C++ 4.2, 5.x and Centerline C++
19115 archive_cmds_need_lc_CXX=yes
19116 no_undefined_flag_CXX=' -zdefs'
19117 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19118 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19119 $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'
19121 hardcode_libdir_flag_spec_CXX='-R$libdir'
19122 hardcode_shlibpath_var_CXX=no
19123 case $host_os in
19124 solaris2.[0-5] | solaris2.[0-5].*) ;;
19126 # The C++ compiler is used as linker so we must use $wl
19127 # flag to pass the commands to the underlying system
19128 # linker. We must also pass each convience library through
19129 # to the system linker between allextract/defaultextract.
19130 # The C++ compiler will combine linker options so we
19131 # cannot just pass the convience library names through
19132 # without $wl.
19133 # Supported since Solaris 2.6 (maybe 2.5.1?)
19134 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'
19136 esac
19137 link_all_deplibs_CXX=yes
19139 output_verbose_link_cmd='echo'
19141 # Archives containing C++ object files must be created using
19142 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19143 # necessary to make sure instantiated templates are included
19144 # in the archive.
19145 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19147 gcx*)
19148 # Green Hills C++ Compiler
19149 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19151 # The C++ compiler must be used to create the archive.
19152 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19155 # GNU C++ compiler with Solaris linker
19156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19157 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19158 if $CC --version | grep -v '^2\.7' > /dev/null; then
19159 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19160 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19161 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19163 # Commands to make compiler produce verbose output that lists
19164 # what "hidden" libraries, object files and flags are used when
19165 # linking a shared library.
19166 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19167 else
19168 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19169 # platform.
19170 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19171 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19172 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19174 # Commands to make compiler produce verbose output that lists
19175 # what "hidden" libraries, object files and flags are used when
19176 # linking a shared library.
19177 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19180 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19183 esac
19185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19186 no_undefined_flag_CXX='${wl}-z,text'
19187 archive_cmds_need_lc_CXX=no
19188 hardcode_shlibpath_var_CXX=no
19189 runpath_var='LD_RUN_PATH'
19191 case $cc_basename in
19192 CC*)
19193 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19194 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19197 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19198 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19200 esac
19202 sysv5* | sco3.2v5* | sco5v6*)
19203 # Note: We can NOT use -z defs as we might desire, because we do not
19204 # link with -lc, and that would cause any symbols used from libc to
19205 # always be unresolved, which means just about no library would
19206 # ever link correctly. If we're not using GNU ld we use -z text
19207 # though, which does catch some bad symbols but isn't as heavy-handed
19208 # as -z defs.
19209 # For security reasons, it is highly recommended that you always
19210 # use absolute paths for naming shared libraries, and exclude the
19211 # DT_RUNPATH tag from executables and libraries. But doing so
19212 # requires that you compile everything twice, which is a pain.
19213 # So that behaviour is only enabled if SCOABSPATH is set to a
19214 # non-empty value in the environment. Most likely only useful for
19215 # creating official distributions of packages.
19216 # This is a hack until libtool officially supports absolute path
19217 # names for shared libraries.
19218 no_undefined_flag_CXX='${wl}-z,text'
19219 allow_undefined_flag_CXX='${wl}-z,nodefs'
19220 archive_cmds_need_lc_CXX=no
19221 hardcode_shlibpath_var_CXX=no
19222 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19223 hardcode_libdir_separator_CXX=':'
19224 link_all_deplibs_CXX=yes
19225 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19226 runpath_var='LD_RUN_PATH'
19228 case $cc_basename in
19229 CC*)
19230 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19231 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19237 esac
19239 tandem*)
19240 case $cc_basename in
19241 NCC*)
19242 # NonStop-UX NCC 3.20
19243 # FIXME: insert proper C++ library support
19244 ld_shlibs_CXX=no
19247 # FIXME: insert proper C++ library support
19248 ld_shlibs_CXX=no
19250 esac
19252 vxworks*)
19253 # FIXME: insert proper C++ library support
19254 ld_shlibs_CXX=no
19257 # FIXME: insert proper C++ library support
19258 ld_shlibs_CXX=no
19260 esac
19261 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19262 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19263 test "$ld_shlibs_CXX" = no && can_build_shared=no
19265 GCC_CXX="$GXX"
19266 LD_CXX="$LD"
19269 cat > conftest.$ac_ext <<EOF
19270 class Foo
19272 public:
19273 Foo (void) { a = 0; }
19274 private:
19275 int a;
19279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19280 (eval $ac_compile) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; then
19284 # Parse the compiler output and extract the necessary
19285 # objects, libraries and library flags.
19287 # Sentinel used to keep track of whether or not we are before
19288 # the conftest object file.
19289 pre_test_object_deps_done=no
19291 # The `*' in the case matches for architectures that use `case' in
19292 # $output_verbose_cmd can trigger glob expansion during the loop
19293 # eval without this substitution.
19294 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19296 for p in `eval $output_verbose_link_cmd`; do
19297 case $p in
19299 -L* | -R* | -l*)
19300 # Some compilers place space between "-{L,R}" and the path.
19301 # Remove the space.
19302 if test $p = "-L" \
19303 || test $p = "-R"; then
19304 prev=$p
19305 continue
19306 else
19307 prev=
19310 if test "$pre_test_object_deps_done" = no; then
19311 case $p in
19312 -L* | -R*)
19313 # Internal compiler library paths should come after those
19314 # provided the user. The postdeps already come after the
19315 # user supplied libs so there is no need to process them.
19316 if test -z "$compiler_lib_search_path_CXX"; then
19317 compiler_lib_search_path_CXX="${prev}${p}"
19318 else
19319 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19322 # The "-l" case would never come before the object being
19323 # linked, so don't bother handling this case.
19324 esac
19325 else
19326 if test -z "$postdeps_CXX"; then
19327 postdeps_CXX="${prev}${p}"
19328 else
19329 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19334 *.$objext)
19335 # This assumes that the test object file only shows up
19336 # once in the compiler output.
19337 if test "$p" = "conftest.$objext"; then
19338 pre_test_object_deps_done=yes
19339 continue
19342 if test "$pre_test_object_deps_done" = no; then
19343 if test -z "$predep_objects_CXX"; then
19344 predep_objects_CXX="$p"
19345 else
19346 predep_objects_CXX="$predep_objects_CXX $p"
19348 else
19349 if test -z "$postdep_objects_CXX"; then
19350 postdep_objects_CXX="$p"
19351 else
19352 postdep_objects_CXX="$postdep_objects_CXX $p"
19357 *) ;; # Ignore the rest.
19359 esac
19360 done
19362 # Clean up.
19363 rm -f a.out a.exe
19364 else
19365 echo "libtool.m4: error: problem compiling CXX test program"
19368 $rm -f confest.$objext
19370 # PORTME: override above test on systems where it is broken
19371 case $host_os in
19372 interix3*)
19373 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19374 # hack all around it, let's just trust "g++" to DTRT.
19375 predep_objects_CXX=
19376 postdep_objects_CXX=
19377 postdeps_CXX=
19380 solaris*)
19381 case $cc_basename in
19382 CC*)
19383 # Adding this requires a known-good setup of shared libraries for
19384 # Sun compiler versions before 5.6, else PIC objects from an old
19385 # archive will be linked into the output, leading to subtle bugs.
19386 postdeps_CXX='-lCstd -lCrun'
19388 esac
19390 esac
19393 case " $postdeps_CXX " in
19394 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19395 esac
19397 lt_prog_compiler_wl_CXX=
19398 lt_prog_compiler_pic_CXX=
19399 lt_prog_compiler_static_CXX=
19401 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19402 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19404 # C++ specific cases for pic, static, wl, etc.
19405 if test "$GXX" = yes; then
19406 lt_prog_compiler_wl_CXX='-Wl,'
19407 lt_prog_compiler_static_CXX='-static'
19409 case $host_os in
19410 aix*)
19411 # All AIX code is PIC.
19412 if test "$host_cpu" = ia64; then
19413 # AIX 5 now supports IA64 processor
19414 lt_prog_compiler_static_CXX='-Bstatic'
19417 amigaos*)
19418 # FIXME: we need at least 68020 code to build shared libraries, but
19419 # adding the `-m68020' flag to GCC prevents building anything better,
19420 # like `-m68040'.
19421 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19423 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19424 # PIC is the default for these OSes.
19426 mingw* | os2* | pw32*)
19427 # This hack is so that the source file can tell whether it is being
19428 # built for inclusion in a dll (and should export symbols for example).
19429 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19431 darwin* | rhapsody*)
19432 # PIC is the default on this platform
19433 # Common symbols not allowed in MH_DYLIB files
19434 lt_prog_compiler_pic_CXX='-fno-common'
19436 *djgpp*)
19437 # DJGPP does not support shared libraries at all
19438 lt_prog_compiler_pic_CXX=
19440 interix3*)
19441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19442 # Instead, we relocate shared libraries at runtime.
19444 sysv4*MP*)
19445 if test -d /usr/nec; then
19446 lt_prog_compiler_pic_CXX=-Kconform_pic
19449 hpux*)
19450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19451 # not for PA HP-UX.
19452 case $host_cpu in
19453 hppa*64*|ia64*)
19456 lt_prog_compiler_pic_CXX='-fPIC'
19458 esac
19461 lt_prog_compiler_pic_CXX='-fPIC'
19463 esac
19464 else
19465 case $host_os in
19466 aix4* | aix5*)
19467 # All AIX code is PIC.
19468 if test "$host_cpu" = ia64; then
19469 # AIX 5 now supports IA64 processor
19470 lt_prog_compiler_static_CXX='-Bstatic'
19471 else
19472 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19475 chorus*)
19476 case $cc_basename in
19477 cxch68*)
19478 # Green Hills C++ Compiler
19479 # _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"
19481 esac
19483 darwin*)
19484 # PIC is the default on this platform
19485 # Common symbols not allowed in MH_DYLIB files
19486 case $cc_basename in
19487 xlc*)
19488 lt_prog_compiler_pic_CXX='-qnocommon'
19489 lt_prog_compiler_wl_CXX='-Wl,'
19491 esac
19493 dgux*)
19494 case $cc_basename in
19495 ec++*)
19496 lt_prog_compiler_pic_CXX='-KPIC'
19498 ghcx*)
19499 # Green Hills C++ Compiler
19500 lt_prog_compiler_pic_CXX='-pic'
19504 esac
19506 freebsd* | kfreebsd*-gnu | dragonfly*)
19507 # FreeBSD uses GNU C++
19509 hpux9* | hpux10* | hpux11*)
19510 case $cc_basename in
19511 CC*)
19512 lt_prog_compiler_wl_CXX='-Wl,'
19513 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19514 if test "$host_cpu" != ia64; then
19515 lt_prog_compiler_pic_CXX='+Z'
19518 aCC*)
19519 lt_prog_compiler_wl_CXX='-Wl,'
19520 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19521 case $host_cpu in
19522 hppa*64*|ia64*)
19523 # +Z the default
19526 lt_prog_compiler_pic_CXX='+Z'
19528 esac
19532 esac
19534 interix*)
19535 # This is c89, which is MS Visual C++ (no shared libs)
19536 # Anyone wants to do a port?
19538 irix5* | irix6* | nonstopux*)
19539 case $cc_basename in
19540 CC*)
19541 lt_prog_compiler_wl_CXX='-Wl,'
19542 lt_prog_compiler_static_CXX='-non_shared'
19543 # CC pic flag -KPIC is the default.
19547 esac
19549 linux*)
19550 case $cc_basename in
19551 KCC*)
19552 # KAI C++ Compiler
19553 lt_prog_compiler_wl_CXX='--backend -Wl,'
19554 lt_prog_compiler_pic_CXX='-fPIC'
19556 icpc* | ecpc*)
19557 # Intel C++
19558 lt_prog_compiler_wl_CXX='-Wl,'
19559 lt_prog_compiler_pic_CXX='-KPIC'
19560 lt_prog_compiler_static_CXX='-static'
19562 pgCC*)
19563 # Portland Group C++ compiler.
19564 lt_prog_compiler_wl_CXX='-Wl,'
19565 lt_prog_compiler_pic_CXX='-fpic'
19566 lt_prog_compiler_static_CXX='-Bstatic'
19568 cxx*)
19569 # Compaq C++
19570 # Make sure the PIC flag is empty. It appears that all Alpha
19571 # Linux and Compaq Tru64 Unix objects are PIC.
19572 lt_prog_compiler_pic_CXX=
19573 lt_prog_compiler_static_CXX='-non_shared'
19577 esac
19579 lynxos*)
19581 m88k*)
19583 mvs*)
19584 case $cc_basename in
19585 cxx*)
19586 lt_prog_compiler_pic_CXX='-W c,exportall'
19590 esac
19592 netbsd*)
19594 osf3* | osf4* | osf5*)
19595 case $cc_basename in
19596 KCC*)
19597 lt_prog_compiler_wl_CXX='--backend -Wl,'
19599 RCC*)
19600 # Rational C++ 2.4.1
19601 lt_prog_compiler_pic_CXX='-pic'
19603 cxx*)
19604 # Digital/Compaq C++
19605 lt_prog_compiler_wl_CXX='-Wl,'
19606 # Make sure the PIC flag is empty. It appears that all Alpha
19607 # Linux and Compaq Tru64 Unix objects are PIC.
19608 lt_prog_compiler_pic_CXX=
19609 lt_prog_compiler_static_CXX='-non_shared'
19613 esac
19615 psos*)
19617 solaris*)
19618 case $cc_basename in
19619 CC*)
19620 # Sun C++ 4.2, 5.x and Centerline C++
19621 lt_prog_compiler_pic_CXX='-KPIC'
19622 lt_prog_compiler_static_CXX='-Bstatic'
19623 lt_prog_compiler_wl_CXX='-Qoption ld '
19625 gcx*)
19626 # Green Hills C++ Compiler
19627 lt_prog_compiler_pic_CXX='-PIC'
19631 esac
19633 sunos4*)
19634 case $cc_basename in
19635 CC*)
19636 # Sun C++ 4.x
19637 lt_prog_compiler_pic_CXX='-pic'
19638 lt_prog_compiler_static_CXX='-Bstatic'
19640 lcc*)
19641 # Lucid
19642 lt_prog_compiler_pic_CXX='-pic'
19646 esac
19648 tandem*)
19649 case $cc_basename in
19650 NCC*)
19651 # NonStop-UX NCC 3.20
19652 lt_prog_compiler_pic_CXX='-KPIC'
19656 esac
19658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19659 case $cc_basename in
19660 CC*)
19661 lt_prog_compiler_wl_CXX='-Wl,'
19662 lt_prog_compiler_pic_CXX='-KPIC'
19663 lt_prog_compiler_static_CXX='-Bstatic'
19665 esac
19667 vxworks*)
19670 lt_prog_compiler_can_build_shared_CXX=no
19672 esac
19675 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19676 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19679 # Check to make sure the PIC flag actually works.
19681 if test -n "$lt_prog_compiler_pic_CXX"; then
19683 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19684 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19685 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688 lt_prog_compiler_pic_works_CXX=no
19689 ac_outfile=conftest.$ac_objext
19690 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19691 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19692 # Insert the option either (1) after the last *FLAGS variable, or
19693 # (2) before a word containing "conftest.", or (3) at the end.
19694 # Note that $ac_compile itself does not contain backslashes and begins
19695 # with a dollar sign (not a hyphen), so the echo should work correctly.
19696 # The option is referenced via a variable to avoid confusing sed.
19697 lt_compile=`echo "$ac_compile" | $SED \
19698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19700 -e 's:$: $lt_compiler_flag:'`
19701 (eval echo "\"\$as_me:19701: $lt_compile\"" >&5)
19702 (eval "$lt_compile" 2>conftest.err)
19703 ac_status=$?
19704 cat conftest.err >&5
19705 echo "$as_me:19705: \$? = $ac_status" >&5
19706 if (exit $ac_status) && test -s "$ac_outfile"; then
19707 # The compiler can only warn and ignore the option if not recognized
19708 # So say no if there are warnings other than the usual output.
19709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19712 lt_prog_compiler_pic_works_CXX=yes
19715 $rm conftest*
19718 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19719 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19721 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19722 case $lt_prog_compiler_pic_CXX in
19723 "" | " "*) ;;
19724 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19725 esac
19726 else
19727 lt_prog_compiler_pic_CXX=
19728 lt_prog_compiler_can_build_shared_CXX=no
19732 case $host_os in
19733 # For platforms which do not support PIC, -DPIC is meaningless:
19734 *djgpp*)
19735 lt_prog_compiler_pic_CXX=
19738 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19740 esac
19743 # Check to make sure the static flag actually works.
19745 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19746 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19747 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19748 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751 lt_prog_compiler_static_works_CXX=no
19752 save_LDFLAGS="$LDFLAGS"
19753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19754 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19756 # The linker can only warn and ignore the option if not recognized
19757 # So say no if there are warnings
19758 if test -s conftest.err; then
19759 # Append any errors to the config.log.
19760 cat conftest.err 1>&5
19761 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19763 if diff conftest.exp conftest.er2 >/dev/null; then
19764 lt_prog_compiler_static_works_CXX=yes
19766 else
19767 lt_prog_compiler_static_works_CXX=yes
19770 $rm conftest*
19771 LDFLAGS="$save_LDFLAGS"
19774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19775 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19777 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19779 else
19780 lt_prog_compiler_static_CXX=
19784 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19785 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19786 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 lt_cv_prog_compiler_c_o_CXX=no
19790 $rm -r conftest 2>/dev/null
19791 mkdir conftest
19792 cd conftest
19793 mkdir out
19794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19796 lt_compiler_flag="-o out/conftest2.$ac_objext"
19797 # Insert the option either (1) after the last *FLAGS variable, or
19798 # (2) before a word containing "conftest.", or (3) at the end.
19799 # Note that $ac_compile itself does not contain backslashes and begins
19800 # with a dollar sign (not a hyphen), so the echo should work correctly.
19801 lt_compile=`echo "$ac_compile" | $SED \
19802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19804 -e 's:$: $lt_compiler_flag:'`
19805 (eval echo "\"\$as_me:19805: $lt_compile\"" >&5)
19806 (eval "$lt_compile" 2>out/conftest.err)
19807 ac_status=$?
19808 cat out/conftest.err >&5
19809 echo "$as_me:19809: \$? = $ac_status" >&5
19810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19811 then
19812 # The compiler can only warn and ignore the option if not recognized
19813 # So say no if there are warnings
19814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19817 lt_cv_prog_compiler_c_o_CXX=yes
19820 chmod u+w . 2>&5
19821 $rm conftest*
19822 # SGI C++ compiler will create directory out/ii_files/ for
19823 # template instantiation
19824 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19825 $rm out/* && rmdir out
19826 cd ..
19827 rmdir conftest
19828 $rm conftest*
19831 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19832 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19835 hard_links="nottested"
19836 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19837 # do not overwrite the value of need_locks provided by the user
19838 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19839 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19840 hard_links=yes
19841 $rm conftest*
19842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19843 touch conftest.a
19844 ln conftest.a conftest.b 2>&5 || hard_links=no
19845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19846 { echo "$as_me:$LINENO: result: $hard_links" >&5
19847 echo "${ECHO_T}$hard_links" >&6; }
19848 if test "$hard_links" = no; then
19849 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19850 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19851 need_locks=warn
19853 else
19854 need_locks=no
19857 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19860 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19861 case $host_os in
19862 aix4* | aix5*)
19863 # If we're using GNU nm, then we don't want the "-C" option.
19864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19866 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'
19867 else
19868 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'
19871 pw32*)
19872 export_symbols_cmds_CXX="$ltdll_cmds"
19874 cygwin* | mingw*)
19875 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'
19878 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19880 esac
19882 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19883 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19884 test "$ld_shlibs_CXX" = no && can_build_shared=no
19887 # Do we need to explicitly link libc?
19889 case "x$archive_cmds_need_lc_CXX" in
19890 x|xyes)
19891 # Assume -lc should be added
19892 archive_cmds_need_lc_CXX=yes
19894 if test "$enable_shared" = yes && test "$GCC" = yes; then
19895 case $archive_cmds_CXX in
19896 *'~'*)
19897 # FIXME: we may have to deal with multi-command sequences.
19899 '$CC '*)
19900 # Test whether the compiler implicitly links with -lc since on some
19901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19902 # to ld, don't add -lc before -lgcc.
19903 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19904 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19905 $rm conftest*
19906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909 (eval $ac_compile) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } 2>conftest.err; then
19913 soname=conftest
19914 lib=conftest
19915 libobjs=conftest.$ac_objext
19916 deplibs=
19917 wl=$lt_prog_compiler_wl_CXX
19918 pic_flag=$lt_prog_compiler_pic_CXX
19919 compiler_flags=-v
19920 linker_flags=-v
19921 verstring=
19922 output_objdir=.
19923 libname=conftest
19924 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19925 allow_undefined_flag_CXX=
19926 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19927 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }
19931 then
19932 archive_cmds_need_lc_CXX=no
19933 else
19934 archive_cmds_need_lc_CXX=yes
19936 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19937 else
19938 cat conftest.err 1>&5
19940 $rm conftest*
19941 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19942 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19944 esac
19947 esac
19949 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19950 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19951 library_names_spec=
19952 libname_spec='lib$name'
19953 soname_spec=
19954 shrext_cmds=".so"
19955 postinstall_cmds=
19956 postuninstall_cmds=
19957 finish_cmds=
19958 finish_eval=
19959 shlibpath_var=
19960 shlibpath_overrides_runpath=unknown
19961 version_type=none
19962 dynamic_linker="$host_os ld.so"
19963 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19964 if test "$GCC" = yes; then
19965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19966 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19967 # if the path contains ";" then we assume it to be the separator
19968 # otherwise default to the standard path separator (i.e. ":") - it is
19969 # assumed that no part of a normal pathname contains ";" but that should
19970 # okay in the real world where ";" in dirpaths is itself problematic.
19971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19972 else
19973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19975 else
19976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19978 need_lib_prefix=unknown
19979 hardcode_into_libs=no
19981 # when you set need_version to no, make sure it does not cause -set_version
19982 # flags to be left without arguments
19983 need_version=unknown
19985 case $host_os in
19986 aix3*)
19987 version_type=linux
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19989 shlibpath_var=LIBPATH
19991 # AIX 3 has no versioning support, so we append a major version to the name.
19992 soname_spec='${libname}${release}${shared_ext}$major'
19995 aix4* | aix5*)
19996 version_type=linux
19997 need_lib_prefix=no
19998 need_version=no
19999 hardcode_into_libs=yes
20000 if test "$host_cpu" = ia64; then
20001 # AIX 5 supports IA64
20002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20003 shlibpath_var=LD_LIBRARY_PATH
20004 else
20005 # With GCC up to 2.95.x, collect2 would create an import file
20006 # for dependence libraries. The import file would start with
20007 # the line `#! .'. This would cause the generated library to
20008 # depend on `.', always an invalid library. This was fixed in
20009 # development snapshots of GCC prior to 3.0.
20010 case $host_os in
20011 aix4 | aix4.[01] | aix4.[01].*)
20012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20013 echo ' yes '
20014 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20016 else
20017 can_build_shared=no
20020 esac
20021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20022 # soname into executable. Probably we can add versioning support to
20023 # collect2, so additional links can be useful in future.
20024 if test "$aix_use_runtimelinking" = yes; then
20025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20026 # instead of lib<name>.a to let people know that these are not
20027 # typical AIX shared libraries.
20028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20029 else
20030 # We preserve .a as extension for shared libraries through AIX4.2
20031 # and later when we are not doing run time linking.
20032 library_names_spec='${libname}${release}.a $libname.a'
20033 soname_spec='${libname}${release}${shared_ext}$major'
20035 shlibpath_var=LIBPATH
20039 amigaos*)
20040 library_names_spec='$libname.ixlibrary $libname.a'
20041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20042 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'
20045 beos*)
20046 library_names_spec='${libname}${shared_ext}'
20047 dynamic_linker="$host_os ld.so"
20048 shlibpath_var=LIBRARY_PATH
20051 bsdi[45]*)
20052 version_type=linux
20053 need_version=no
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20055 soname_spec='${libname}${release}${shared_ext}$major'
20056 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20057 shlibpath_var=LD_LIBRARY_PATH
20058 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20059 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20060 # the default ld.so.conf also contains /usr/contrib/lib and
20061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20062 # libtool to hard-code these into programs
20065 cygwin* | mingw* | pw32*)
20066 version_type=windows
20067 shrext_cmds=".dll"
20068 need_version=no
20069 need_lib_prefix=no
20071 case $GCC,$host_os in
20072 yes,cygwin* | yes,mingw* | yes,pw32*)
20073 library_names_spec='$libname.dll.a'
20074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20075 postinstall_cmds='base_file=`basename \${file}`~
20076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20077 dldir=$destdir/`dirname \$dlpath`~
20078 test -d \$dldir || mkdir -p \$dldir~
20079 $install_prog $dir/$dlname \$dldir/$dlname~
20080 chmod a+x \$dldir/$dlname'
20081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20082 dlpath=$dir/\$dldll~
20083 $rm \$dlpath'
20084 shlibpath_overrides_runpath=yes
20086 case $host_os in
20087 cygwin*)
20088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20089 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20090 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20092 mingw*)
20093 # MinGW DLLs use traditional 'lib' prefix
20094 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20095 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20096 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20097 # It is most probably a Windows format PATH printed by
20098 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20099 # path with ; separators, and with drive letters. We can handle the
20100 # drive letters (cygwin fileutils understands them), so leave them,
20101 # especially as we might pass files found there to a mingw objdump,
20102 # which wouldn't understand a cygwinified path. Ahh.
20103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20104 else
20105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20108 pw32*)
20109 # pw32 DLLs use 'pw' prefix rather than 'lib'
20110 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20112 esac
20116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20118 esac
20119 dynamic_linker='Win32 ld.exe'
20120 # FIXME: first we should search . and the directory the executable is in
20121 shlibpath_var=PATH
20124 darwin* | rhapsody*)
20125 dynamic_linker="$host_os dyld"
20126 version_type=darwin
20127 need_lib_prefix=no
20128 need_version=no
20129 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20130 soname_spec='${libname}${release}${major}$shared_ext'
20131 shlibpath_overrides_runpath=yes
20132 shlibpath_var=DYLD_LIBRARY_PATH
20133 shrext_cmds='.dylib'
20134 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20135 if test "$GCC" = yes; then
20136 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"`
20137 else
20138 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20143 dgux*)
20144 version_type=linux
20145 need_lib_prefix=no
20146 need_version=no
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20148 soname_spec='${libname}${release}${shared_ext}$major'
20149 shlibpath_var=LD_LIBRARY_PATH
20152 freebsd1*)
20153 dynamic_linker=no
20156 kfreebsd*-gnu)
20157 version_type=linux
20158 need_lib_prefix=no
20159 need_version=no
20160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20161 soname_spec='${libname}${release}${shared_ext}$major'
20162 shlibpath_var=LD_LIBRARY_PATH
20163 shlibpath_overrides_runpath=no
20164 hardcode_into_libs=yes
20165 dynamic_linker='GNU ld.so'
20168 freebsd* | dragonfly*)
20169 # DragonFly does not have aout. When/if they implement a new
20170 # versioning mechanism, adjust this.
20171 if test -x /usr/bin/objformat; then
20172 objformat=`/usr/bin/objformat`
20173 else
20174 case $host_os in
20175 freebsd[123]*) objformat=aout ;;
20176 *) objformat=elf ;;
20177 esac
20179 version_type=freebsd-$objformat
20180 case $version_type in
20181 freebsd-elf*)
20182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20183 need_version=no
20184 need_lib_prefix=no
20186 freebsd-*)
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20188 need_version=yes
20190 esac
20191 shlibpath_var=LD_LIBRARY_PATH
20192 case $host_os in
20193 freebsd2*)
20194 shlibpath_overrides_runpath=yes
20196 freebsd3.[01]* | freebsdelf3.[01]*)
20197 shlibpath_overrides_runpath=yes
20198 hardcode_into_libs=yes
20200 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20201 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20202 shlibpath_overrides_runpath=no
20203 hardcode_into_libs=yes
20205 freebsd*) # from 4.6 on
20206 shlibpath_overrides_runpath=yes
20207 hardcode_into_libs=yes
20209 esac
20212 gnu*)
20213 version_type=linux
20214 need_lib_prefix=no
20215 need_version=no
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20217 soname_spec='${libname}${release}${shared_ext}$major'
20218 shlibpath_var=LD_LIBRARY_PATH
20219 hardcode_into_libs=yes
20222 hpux9* | hpux10* | hpux11*)
20223 # Give a soname corresponding to the major version so that dld.sl refuses to
20224 # link against other versions.
20225 version_type=sunos
20226 need_lib_prefix=no
20227 need_version=no
20228 case $host_cpu in
20229 ia64*)
20230 shrext_cmds='.so'
20231 hardcode_into_libs=yes
20232 dynamic_linker="$host_os dld.so"
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236 soname_spec='${libname}${release}${shared_ext}$major'
20237 if test "X$HPUX_IA64_MODE" = X32; then
20238 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20239 else
20240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20244 hppa*64*)
20245 shrext_cmds='.sl'
20246 hardcode_into_libs=yes
20247 dynamic_linker="$host_os dld.sl"
20248 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20256 shrext_cmds='.sl'
20257 dynamic_linker="$host_os dld.sl"
20258 shlibpath_var=SHLIB_PATH
20259 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 soname_spec='${libname}${release}${shared_ext}$major'
20263 esac
20264 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20265 postinstall_cmds='chmod 555 $lib'
20268 interix3*)
20269 version_type=linux
20270 need_lib_prefix=no
20271 need_version=no
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20273 soname_spec='${libname}${release}${shared_ext}$major'
20274 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20275 shlibpath_var=LD_LIBRARY_PATH
20276 shlibpath_overrides_runpath=no
20277 hardcode_into_libs=yes
20280 irix5* | irix6* | nonstopux*)
20281 case $host_os in
20282 nonstopux*) version_type=nonstopux ;;
20284 if test "$lt_cv_prog_gnu_ld" = yes; then
20285 version_type=linux
20286 else
20287 version_type=irix
20288 fi ;;
20289 esac
20290 need_lib_prefix=no
20291 need_version=no
20292 soname_spec='${libname}${release}${shared_ext}$major'
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20294 case $host_os in
20295 irix5* | nonstopux*)
20296 libsuff= shlibsuff=
20299 case $LD in # libtool.m4 will add one of these switches to LD
20300 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20301 libsuff= shlibsuff= libmagic=32-bit;;
20302 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20303 libsuff=32 shlibsuff=N32 libmagic=N32;;
20304 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20305 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20306 *) libsuff= shlibsuff= libmagic=never-match;;
20307 esac
20309 esac
20310 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20311 shlibpath_overrides_runpath=no
20312 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20313 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20314 hardcode_into_libs=yes
20317 # No shared lib support for Linux oldld, aout, or coff.
20318 linux*oldld* | linux*aout* | linux*coff*)
20319 dynamic_linker=no
20322 # This must be Linux ELF.
20323 linux*)
20324 version_type=linux
20325 need_lib_prefix=no
20326 need_version=no
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20330 shlibpath_var=LD_LIBRARY_PATH
20331 shlibpath_overrides_runpath=no
20332 # This implies no fast_install, which is unacceptable.
20333 # Some rework will be needed to allow for fast_install
20334 # before this can be enabled.
20335 hardcode_into_libs=yes
20337 # Append ld.so.conf contents to the search path
20338 if test -f /etc/ld.so.conf; then
20339 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' ' '`
20340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20343 # We used to test for /lib/ld.so.1 and disable shared libraries on
20344 # powerpc, because MkLinux only supported shared libraries with the
20345 # GNU dynamic linker. Since this was broken with cross compilers,
20346 # most powerpc-linux boxes support dynamic linking these days and
20347 # people can always --disable-shared, the test was removed, and we
20348 # assume the GNU/Linux dynamic linker is in use.
20349 dynamic_linker='GNU/Linux ld.so'
20352 knetbsd*-gnu)
20353 version_type=linux
20354 need_lib_prefix=no
20355 need_version=no
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=no
20360 hardcode_into_libs=yes
20361 dynamic_linker='GNU ld.so'
20364 netbsd*)
20365 version_type=sunos
20366 need_lib_prefix=no
20367 need_version=no
20368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20371 dynamic_linker='NetBSD (a.out) ld.so'
20372 else
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20374 soname_spec='${libname}${release}${shared_ext}$major'
20375 dynamic_linker='NetBSD ld.elf_so'
20377 shlibpath_var=LD_LIBRARY_PATH
20378 shlibpath_overrides_runpath=yes
20379 hardcode_into_libs=yes
20382 newsos6)
20383 version_type=linux
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20385 shlibpath_var=LD_LIBRARY_PATH
20386 shlibpath_overrides_runpath=yes
20389 nto-qnx*)
20390 version_type=linux
20391 need_lib_prefix=no
20392 need_version=no
20393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=yes
20399 openbsd*)
20400 version_type=sunos
20401 sys_lib_dlsearch_path_spec="/usr/lib"
20402 need_lib_prefix=no
20403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20404 case $host_os in
20405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20406 *) need_version=no ;;
20407 esac
20408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20412 case $host_os in
20413 openbsd2.[89] | openbsd2.[89].*)
20414 shlibpath_overrides_runpath=no
20417 shlibpath_overrides_runpath=yes
20419 esac
20420 else
20421 shlibpath_overrides_runpath=yes
20425 os2*)
20426 libname_spec='$name'
20427 shrext_cmds=".dll"
20428 need_lib_prefix=no
20429 library_names_spec='$libname${shared_ext} $libname.a'
20430 dynamic_linker='OS/2 ld.exe'
20431 shlibpath_var=LIBPATH
20434 osf3* | osf4* | osf5*)
20435 version_type=osf
20436 need_lib_prefix=no
20437 need_version=no
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20445 solaris*)
20446 version_type=linux
20447 need_lib_prefix=no
20448 need_version=no
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 shlibpath_overrides_runpath=yes
20453 hardcode_into_libs=yes
20454 # ldd complains unless libraries are executable
20455 postinstall_cmds='chmod +x $lib'
20458 sunos4*)
20459 version_type=sunos
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20462 shlibpath_var=LD_LIBRARY_PATH
20463 shlibpath_overrides_runpath=yes
20464 if test "$with_gnu_ld" = yes; then
20465 need_lib_prefix=no
20467 need_version=yes
20470 sysv4 | sysv4.3*)
20471 version_type=linux
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 soname_spec='${libname}${release}${shared_ext}$major'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 case $host_vendor in
20476 sni)
20477 shlibpath_overrides_runpath=no
20478 need_lib_prefix=no
20479 export_dynamic_flag_spec='${wl}-Blargedynsym'
20480 runpath_var=LD_RUN_PATH
20482 siemens)
20483 need_lib_prefix=no
20485 motorola)
20486 need_lib_prefix=no
20487 need_version=no
20488 shlibpath_overrides_runpath=no
20489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20491 esac
20494 sysv4*MP*)
20495 if test -d /usr/nec ;then
20496 version_type=linux
20497 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20498 soname_spec='$libname${shared_ext}.$major'
20499 shlibpath_var=LD_LIBRARY_PATH
20503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20504 version_type=freebsd-elf
20505 need_lib_prefix=no
20506 need_version=no
20507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20508 soname_spec='${libname}${release}${shared_ext}$major'
20509 shlibpath_var=LD_LIBRARY_PATH
20510 hardcode_into_libs=yes
20511 if test "$with_gnu_ld" = yes; then
20512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20513 shlibpath_overrides_runpath=no
20514 else
20515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20516 shlibpath_overrides_runpath=yes
20517 case $host_os in
20518 sco3.2v5*)
20519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20521 esac
20523 sys_lib_dlsearch_path_spec='/usr/lib'
20526 uts4*)
20527 version_type=linux
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 soname_spec='${libname}${release}${shared_ext}$major'
20530 shlibpath_var=LD_LIBRARY_PATH
20534 dynamic_linker=no
20536 esac
20537 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20538 echo "${ECHO_T}$dynamic_linker" >&6; }
20539 test "$dynamic_linker" = no && can_build_shared=no
20541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20542 if test "$GCC" = yes; then
20543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20546 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20547 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20548 hardcode_action_CXX=
20549 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20550 test -n "$runpath_var_CXX" || \
20551 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20553 # We can hardcode non-existant directories.
20554 if test "$hardcode_direct_CXX" != no &&
20555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20556 # have to relink, otherwise we might link with an installed library
20557 # when we should be linking with a yet-to-be-installed one
20558 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20559 test "$hardcode_minus_L_CXX" != no; then
20560 # Linking always hardcodes the temporary library directory.
20561 hardcode_action_CXX=relink
20562 else
20563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20564 hardcode_action_CXX=immediate
20566 else
20567 # We cannot hardcode anything, or else we can only hardcode existing
20568 # directories.
20569 hardcode_action_CXX=unsupported
20571 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20572 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20574 if test "$hardcode_action_CXX" = relink; then
20575 # Fast installation is not supported
20576 enable_fast_install=no
20577 elif test "$shlibpath_overrides_runpath" = yes ||
20578 test "$enable_shared" = no; then
20579 # Fast installation is not necessary
20580 enable_fast_install=needless
20584 # The else clause should only fire when bootstrapping the
20585 # libtool distribution, otherwise you forgot to ship ltmain.sh
20586 # with your package, and you will get complaints that there are
20587 # no rules to generate ltmain.sh.
20588 if test -f "$ltmain"; then
20589 # See if we are running on zsh, and set the options which allow our commands through
20590 # without removal of \ escapes.
20591 if test -n "${ZSH_VERSION+set}" ; then
20592 setopt NO_GLOB_SUBST
20594 # Now quote all the things that may contain metacharacters while being
20595 # careful not to overquote the AC_SUBSTed values. We take copies of the
20596 # variables and quote the copies for generation of the libtool script.
20597 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20598 SED SHELL STRIP \
20599 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20600 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20601 deplibs_check_method reload_flag reload_cmds need_locks \
20602 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20603 lt_cv_sys_global_symbol_to_c_name_address \
20604 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20605 old_postinstall_cmds old_postuninstall_cmds \
20606 compiler_CXX \
20607 CC_CXX \
20608 LD_CXX \
20609 lt_prog_compiler_wl_CXX \
20610 lt_prog_compiler_pic_CXX \
20611 lt_prog_compiler_static_CXX \
20612 lt_prog_compiler_no_builtin_flag_CXX \
20613 export_dynamic_flag_spec_CXX \
20614 thread_safe_flag_spec_CXX \
20615 whole_archive_flag_spec_CXX \
20616 enable_shared_with_static_runtimes_CXX \
20617 old_archive_cmds_CXX \
20618 old_archive_from_new_cmds_CXX \
20619 predep_objects_CXX \
20620 postdep_objects_CXX \
20621 predeps_CXX \
20622 postdeps_CXX \
20623 compiler_lib_search_path_CXX \
20624 archive_cmds_CXX \
20625 archive_expsym_cmds_CXX \
20626 postinstall_cmds_CXX \
20627 postuninstall_cmds_CXX \
20628 old_archive_from_expsyms_cmds_CXX \
20629 allow_undefined_flag_CXX \
20630 no_undefined_flag_CXX \
20631 export_symbols_cmds_CXX \
20632 hardcode_libdir_flag_spec_CXX \
20633 hardcode_libdir_flag_spec_ld_CXX \
20634 hardcode_libdir_separator_CXX \
20635 hardcode_automatic_CXX \
20636 module_cmds_CXX \
20637 module_expsym_cmds_CXX \
20638 lt_cv_prog_compiler_c_o_CXX \
20639 exclude_expsyms_CXX \
20640 include_expsyms_CXX; do
20642 case $var in
20643 old_archive_cmds_CXX | \
20644 old_archive_from_new_cmds_CXX | \
20645 archive_cmds_CXX | \
20646 archive_expsym_cmds_CXX | \
20647 module_cmds_CXX | \
20648 module_expsym_cmds_CXX | \
20649 old_archive_from_expsyms_cmds_CXX | \
20650 export_symbols_cmds_CXX | \
20651 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20652 postinstall_cmds | postuninstall_cmds | \
20653 old_postinstall_cmds | old_postuninstall_cmds | \
20654 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20655 # Double-quote double-evaled strings.
20656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20661 esac
20662 done
20664 case $lt_echo in
20665 *'\$0 --fallback-echo"')
20666 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20668 esac
20670 cfgfile="$ofile"
20672 cat <<__EOF__ >> "$cfgfile"
20673 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20675 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20677 # Shell to use when invoking shell scripts.
20678 SHELL=$lt_SHELL
20680 # Whether or not to build shared libraries.
20681 build_libtool_libs=$enable_shared
20683 # Whether or not to build static libraries.
20684 build_old_libs=$enable_static
20686 # Whether or not to add -lc for building shared libraries.
20687 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20689 # Whether or not to disallow shared libs when runtime libs are static
20690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20692 # Whether or not to optimize for fast installation.
20693 fast_install=$enable_fast_install
20695 # The host system.
20696 host_alias=$host_alias
20697 host=$host
20698 host_os=$host_os
20700 # The build system.
20701 build_alias=$build_alias
20702 build=$build
20703 build_os=$build_os
20705 # An echo program that does not interpret backslashes.
20706 echo=$lt_echo
20708 # The archiver.
20709 AR=$lt_AR
20710 AR_FLAGS=$lt_AR_FLAGS
20712 # A C compiler.
20713 LTCC=$lt_LTCC
20715 # LTCC compiler flags.
20716 LTCFLAGS=$lt_LTCFLAGS
20718 # A language-specific compiler.
20719 CC=$lt_compiler_CXX
20721 # Is the compiler the GNU C compiler?
20722 with_gcc=$GCC_CXX
20724 # An ERE matcher.
20725 EGREP=$lt_EGREP
20727 # The linker used to build libraries.
20728 LD=$lt_LD_CXX
20730 # Whether we need hard or soft links.
20731 LN_S=$lt_LN_S
20733 # A BSD-compatible nm program.
20734 NM=$lt_NM
20736 # A symbol stripping program
20737 STRIP=$lt_STRIP
20739 # Used to examine libraries when file_magic_cmd begins "file"
20740 MAGIC_CMD=$MAGIC_CMD
20742 # Used on cygwin: DLL creation program.
20743 DLLTOOL="$DLLTOOL"
20745 # Used on cygwin: object dumper.
20746 OBJDUMP="$OBJDUMP"
20748 # Used on cygwin: assembler.
20749 AS="$AS"
20751 # The name of the directory that contains temporary libtool files.
20752 objdir=$objdir
20754 # How to create reloadable object files.
20755 reload_flag=$lt_reload_flag
20756 reload_cmds=$lt_reload_cmds
20758 # How to pass a linker flag through the compiler.
20759 wl=$lt_lt_prog_compiler_wl_CXX
20761 # Object file suffix (normally "o").
20762 objext="$ac_objext"
20764 # Old archive suffix (normally "a").
20765 libext="$libext"
20767 # Shared library suffix (normally ".so").
20768 shrext_cmds='$shrext_cmds'
20770 # Executable file suffix (normally "").
20771 exeext="$exeext"
20773 # Additional compiler flags for building library objects.
20774 pic_flag=$lt_lt_prog_compiler_pic_CXX
20775 pic_mode=$pic_mode
20777 # What is the maximum length of a command?
20778 max_cmd_len=$lt_cv_sys_max_cmd_len
20780 # Does compiler simultaneously support -c and -o options?
20781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20783 # Must we lock files when doing compilation?
20784 need_locks=$lt_need_locks
20786 # Do we need the lib prefix for modules?
20787 need_lib_prefix=$need_lib_prefix
20789 # Do we need a version for libraries?
20790 need_version=$need_version
20792 # Whether dlopen is supported.
20793 dlopen_support=$enable_dlopen
20795 # Whether dlopen of programs is supported.
20796 dlopen_self=$enable_dlopen_self
20798 # Whether dlopen of statically linked programs is supported.
20799 dlopen_self_static=$enable_dlopen_self_static
20801 # Compiler flag to prevent dynamic linking.
20802 link_static_flag=$lt_lt_prog_compiler_static_CXX
20804 # Compiler flag to turn off builtin functions.
20805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20807 # Compiler flag to allow reflexive dlopens.
20808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20810 # Compiler flag to generate shared objects directly from archives.
20811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20813 # Compiler flag to generate thread-safe objects.
20814 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20816 # Library versioning type.
20817 version_type=$version_type
20819 # Format of library name prefix.
20820 libname_spec=$lt_libname_spec
20822 # List of archive names. First name is the real one, the rest are links.
20823 # The last name is the one that the linker finds with -lNAME.
20824 library_names_spec=$lt_library_names_spec
20826 # The coded name of the library, if different from the real name.
20827 soname_spec=$lt_soname_spec
20829 # Commands used to build and install an old-style archive.
20830 RANLIB=$lt_RANLIB
20831 old_archive_cmds=$lt_old_archive_cmds_CXX
20832 old_postinstall_cmds=$lt_old_postinstall_cmds
20833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20835 # Create an old-style archive from a shared archive.
20836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20838 # Create a temporary old-style archive to link instead of a shared archive.
20839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20841 # Commands used to build and install a shared archive.
20842 archive_cmds=$lt_archive_cmds_CXX
20843 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20844 postinstall_cmds=$lt_postinstall_cmds
20845 postuninstall_cmds=$lt_postuninstall_cmds
20847 # Commands used to build a loadable module (assumed same as above if empty)
20848 module_cmds=$lt_module_cmds_CXX
20849 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20851 # Commands to strip libraries.
20852 old_striplib=$lt_old_striplib
20853 striplib=$lt_striplib
20855 # Dependencies to place before the objects being linked to create a
20856 # shared library.
20857 predep_objects=$lt_predep_objects_CXX
20859 # Dependencies to place after the objects being linked to create a
20860 # shared library.
20861 postdep_objects=$lt_postdep_objects_CXX
20863 # Dependencies to place before the objects being linked to create a
20864 # shared library.
20865 predeps=$lt_predeps_CXX
20867 # Dependencies to place after the objects being linked to create a
20868 # shared library.
20869 postdeps=$lt_postdeps_CXX
20871 # The library search path used internally by the compiler when linking
20872 # a shared library.
20873 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20875 # Method to check whether dependent libraries are shared objects.
20876 deplibs_check_method=$lt_deplibs_check_method
20878 # Command to use when deplibs_check_method == file_magic.
20879 file_magic_cmd=$lt_file_magic_cmd
20881 # Flag that allows shared libraries with undefined symbols to be built.
20882 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20884 # Flag that forces no undefined symbols.
20885 no_undefined_flag=$lt_no_undefined_flag_CXX
20887 # Commands used to finish a libtool library installation in a directory.
20888 finish_cmds=$lt_finish_cmds
20890 # Same as above, but a single script fragment to be evaled but not shown.
20891 finish_eval=$lt_finish_eval
20893 # Take the output of nm and produce a listing of raw symbols and C names.
20894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20896 # Transform the output of nm in a proper C declaration
20897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20899 # Transform the output of nm in a C name address pair
20900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20902 # This is the shared library runtime path variable.
20903 runpath_var=$runpath_var
20905 # This is the shared library path variable.
20906 shlibpath_var=$shlibpath_var
20908 # Is shlibpath searched before the hard-coded library search path?
20909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20911 # How to hardcode a shared library path into an executable.
20912 hardcode_action=$hardcode_action_CXX
20914 # Whether we should hardcode library paths into libraries.
20915 hardcode_into_libs=$hardcode_into_libs
20917 # Flag to hardcode \$libdir into a binary during linking.
20918 # This must work even if \$libdir does not exist.
20919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20921 # If ld is used when linking, flag to hardcode \$libdir into
20922 # a binary during linking. This must work even if \$libdir does
20923 # not exist.
20924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20926 # Whether we need a single -rpath flag with a separated argument.
20927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20930 # resulting binary.
20931 hardcode_direct=$hardcode_direct_CXX
20933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20934 # resulting binary.
20935 hardcode_minus_L=$hardcode_minus_L_CXX
20937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20938 # the resulting binary.
20939 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20941 # Set to yes if building a shared library automatically hardcodes DIR into the library
20942 # and all subsequent libraries and executables linked against it.
20943 hardcode_automatic=$hardcode_automatic_CXX
20945 # Variables whose values should be saved in libtool wrapper scripts and
20946 # restored at relink time.
20947 variables_saved_for_relink="$variables_saved_for_relink"
20949 # Whether libtool must link a program against all its dependency libraries.
20950 link_all_deplibs=$link_all_deplibs_CXX
20952 # Compile-time system search path for libraries
20953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20955 # Run-time system search path for libraries
20956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20958 # Fix the shell variable \$srcfile for the compiler.
20959 fix_srcfile_path="$fix_srcfile_path_CXX"
20961 # Set to yes if exported symbols are required.
20962 always_export_symbols=$always_export_symbols_CXX
20964 # The commands to list exported symbols.
20965 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20967 # The commands to extract the exported symbol list from a shared archive.
20968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20970 # Symbols that should not be listed in the preloaded symbols.
20971 exclude_expsyms=$lt_exclude_expsyms_CXX
20973 # Symbols that must always be exported.
20974 include_expsyms=$lt_include_expsyms_CXX
20976 # ### END LIBTOOL TAG CONFIG: $tagname
20978 __EOF__
20981 else
20982 # If there is no Makefile yet, we rely on a make rule to execute
20983 # `config.status --recheck' to rerun these tests and create the
20984 # libtool script then.
20985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20986 if test -f "$ltmain_in"; then
20987 test -f Makefile && make "$ltmain"
20992 ac_ext=c
20993 ac_cpp='$CPP $CPPFLAGS'
20994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20998 CC=$lt_save_CC
20999 LDCXX=$LD
21000 LD=$lt_save_LD
21001 GCC=$lt_save_GCC
21002 with_gnu_ldcxx=$with_gnu_ld
21003 with_gnu_ld=$lt_save_with_gnu_ld
21004 lt_cv_path_LDCXX=$lt_cv_path_LD
21005 lt_cv_path_LD=$lt_save_path_LD
21006 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21007 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21009 else
21010 tagname=""
21014 F77)
21015 if test -n "$F77" && test "X$F77" != "Xno"; then
21017 ac_ext=f
21018 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21019 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21023 archive_cmds_need_lc_F77=no
21024 allow_undefined_flag_F77=
21025 always_export_symbols_F77=no
21026 archive_expsym_cmds_F77=
21027 export_dynamic_flag_spec_F77=
21028 hardcode_direct_F77=no
21029 hardcode_libdir_flag_spec_F77=
21030 hardcode_libdir_flag_spec_ld_F77=
21031 hardcode_libdir_separator_F77=
21032 hardcode_minus_L_F77=no
21033 hardcode_automatic_F77=no
21034 module_cmds_F77=
21035 module_expsym_cmds_F77=
21036 link_all_deplibs_F77=unknown
21037 old_archive_cmds_F77=$old_archive_cmds
21038 no_undefined_flag_F77=
21039 whole_archive_flag_spec_F77=
21040 enable_shared_with_static_runtimes_F77=no
21042 # Source file extension for f77 test sources.
21043 ac_ext=f
21045 # Object file extension for compiled f77 test sources.
21046 objext=o
21047 objext_F77=$objext
21049 # Code to be used in simple compile tests
21050 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21052 # Code to be used in simple link tests
21053 lt_simple_link_test_code=" program t\n end\n"
21055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21057 # If no C compiler was specified, use CC.
21058 LTCC=${LTCC-"$CC"}
21060 # If no C compiler flags were specified, use CFLAGS.
21061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21063 # Allow CC to be a program name with arguments.
21064 compiler=$CC
21067 # save warnings/boilerplate of simple test code
21068 ac_outfile=conftest.$ac_objext
21069 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21071 _lt_compiler_boilerplate=`cat conftest.err`
21072 $rm conftest*
21074 ac_outfile=conftest.$ac_objext
21075 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21077 _lt_linker_boilerplate=`cat conftest.err`
21078 $rm conftest*
21081 # Allow CC to be a program name with arguments.
21082 lt_save_CC="$CC"
21083 CC=${F77-"f77"}
21084 compiler=$CC
21085 compiler_F77=$CC
21086 for cc_temp in $compiler""; do
21087 case $cc_temp in
21088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21090 \-*) ;;
21091 *) break;;
21092 esac
21093 done
21094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21097 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21098 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21099 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21100 echo "${ECHO_T}$can_build_shared" >&6; }
21102 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21103 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21104 test "$can_build_shared" = "no" && enable_shared=no
21106 # On AIX, shared libraries and static libraries use the same namespace, and
21107 # are all built from PIC.
21108 case $host_os in
21109 aix3*)
21110 test "$enable_shared" = yes && enable_static=no
21111 if test -n "$RANLIB"; then
21112 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21113 postinstall_cmds='$RANLIB $lib'
21116 aix4* | aix5*)
21117 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21118 test "$enable_shared" = yes && enable_static=no
21121 esac
21122 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21123 echo "${ECHO_T}$enable_shared" >&6; }
21125 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21126 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21127 # Make sure either enable_shared or enable_static is yes.
21128 test "$enable_shared" = yes || enable_static=yes
21129 { echo "$as_me:$LINENO: result: $enable_static" >&5
21130 echo "${ECHO_T}$enable_static" >&6; }
21132 GCC_F77="$G77"
21133 LD_F77="$LD"
21135 lt_prog_compiler_wl_F77=
21136 lt_prog_compiler_pic_F77=
21137 lt_prog_compiler_static_F77=
21139 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21140 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21142 if test "$GCC" = yes; then
21143 lt_prog_compiler_wl_F77='-Wl,'
21144 lt_prog_compiler_static_F77='-static'
21146 case $host_os in
21147 aix*)
21148 # All AIX code is PIC.
21149 if test "$host_cpu" = ia64; then
21150 # AIX 5 now supports IA64 processor
21151 lt_prog_compiler_static_F77='-Bstatic'
21155 amigaos*)
21156 # FIXME: we need at least 68020 code to build shared libraries, but
21157 # adding the `-m68020' flag to GCC prevents building anything better,
21158 # like `-m68040'.
21159 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21163 # PIC is the default for these OSes.
21166 mingw* | pw32* | os2*)
21167 # This hack is so that the source file can tell whether it is being
21168 # built for inclusion in a dll (and should export symbols for example).
21169 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21172 darwin* | rhapsody*)
21173 # PIC is the default on this platform
21174 # Common symbols not allowed in MH_DYLIB files
21175 lt_prog_compiler_pic_F77='-fno-common'
21178 interix3*)
21179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21180 # Instead, we relocate shared libraries at runtime.
21183 msdosdjgpp*)
21184 # Just because we use GCC doesn't mean we suddenly get shared libraries
21185 # on systems that don't support them.
21186 lt_prog_compiler_can_build_shared_F77=no
21187 enable_shared=no
21190 sysv4*MP*)
21191 if test -d /usr/nec; then
21192 lt_prog_compiler_pic_F77=-Kconform_pic
21196 hpux*)
21197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21198 # not for PA HP-UX.
21199 case $host_cpu in
21200 hppa*64*|ia64*)
21201 # +Z the default
21204 lt_prog_compiler_pic_F77='-fPIC'
21206 esac
21210 lt_prog_compiler_pic_F77='-fPIC'
21212 esac
21213 else
21214 # PORTME Check for flag to pass linker flags through the system compiler.
21215 case $host_os in
21216 aix*)
21217 lt_prog_compiler_wl_F77='-Wl,'
21218 if test "$host_cpu" = ia64; then
21219 # AIX 5 now supports IA64 processor
21220 lt_prog_compiler_static_F77='-Bstatic'
21221 else
21222 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21225 darwin*)
21226 # PIC is the default on this platform
21227 # Common symbols not allowed in MH_DYLIB files
21228 case $cc_basename in
21229 xlc*)
21230 lt_prog_compiler_pic_F77='-qnocommon'
21231 lt_prog_compiler_wl_F77='-Wl,'
21233 esac
21236 mingw* | pw32* | os2*)
21237 # This hack is so that the source file can tell whether it is being
21238 # built for inclusion in a dll (and should export symbols for example).
21239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21242 hpux9* | hpux10* | hpux11*)
21243 lt_prog_compiler_wl_F77='-Wl,'
21244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21245 # not for PA HP-UX.
21246 case $host_cpu in
21247 hppa*64*|ia64*)
21248 # +Z the default
21251 lt_prog_compiler_pic_F77='+Z'
21253 esac
21254 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21255 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21258 irix5* | irix6* | nonstopux*)
21259 lt_prog_compiler_wl_F77='-Wl,'
21260 # PIC (with -KPIC) is the default.
21261 lt_prog_compiler_static_F77='-non_shared'
21264 newsos6)
21265 lt_prog_compiler_pic_F77='-KPIC'
21266 lt_prog_compiler_static_F77='-Bstatic'
21269 linux*)
21270 case $cc_basename in
21271 icc* | ecc*)
21272 lt_prog_compiler_wl_F77='-Wl,'
21273 lt_prog_compiler_pic_F77='-KPIC'
21274 lt_prog_compiler_static_F77='-static'
21276 pgcc* | pgf77* | pgf90* | pgf95*)
21277 # Portland Group compilers (*not* the Pentium gcc compiler,
21278 # which looks to be a dead project)
21279 lt_prog_compiler_wl_F77='-Wl,'
21280 lt_prog_compiler_pic_F77='-fpic'
21281 lt_prog_compiler_static_F77='-Bstatic'
21283 ccc*)
21284 lt_prog_compiler_wl_F77='-Wl,'
21285 # All Alpha code is PIC.
21286 lt_prog_compiler_static_F77='-non_shared'
21288 esac
21291 osf3* | osf4* | osf5*)
21292 lt_prog_compiler_wl_F77='-Wl,'
21293 # All OSF/1 code is PIC.
21294 lt_prog_compiler_static_F77='-non_shared'
21297 solaris*)
21298 lt_prog_compiler_pic_F77='-KPIC'
21299 lt_prog_compiler_static_F77='-Bstatic'
21300 case $cc_basename in
21301 f77* | f90* | f95*)
21302 lt_prog_compiler_wl_F77='-Qoption ld ';;
21304 lt_prog_compiler_wl_F77='-Wl,';;
21305 esac
21308 sunos4*)
21309 lt_prog_compiler_wl_F77='-Qoption ld '
21310 lt_prog_compiler_pic_F77='-PIC'
21311 lt_prog_compiler_static_F77='-Bstatic'
21314 sysv4 | sysv4.2uw2* | sysv4.3*)
21315 lt_prog_compiler_wl_F77='-Wl,'
21316 lt_prog_compiler_pic_F77='-KPIC'
21317 lt_prog_compiler_static_F77='-Bstatic'
21320 sysv4*MP*)
21321 if test -d /usr/nec ;then
21322 lt_prog_compiler_pic_F77='-Kconform_pic'
21323 lt_prog_compiler_static_F77='-Bstatic'
21327 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21328 lt_prog_compiler_wl_F77='-Wl,'
21329 lt_prog_compiler_pic_F77='-KPIC'
21330 lt_prog_compiler_static_F77='-Bstatic'
21333 unicos*)
21334 lt_prog_compiler_wl_F77='-Wl,'
21335 lt_prog_compiler_can_build_shared_F77=no
21338 uts4*)
21339 lt_prog_compiler_pic_F77='-pic'
21340 lt_prog_compiler_static_F77='-Bstatic'
21344 lt_prog_compiler_can_build_shared_F77=no
21346 esac
21349 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21350 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21353 # Check to make sure the PIC flag actually works.
21355 if test -n "$lt_prog_compiler_pic_F77"; then
21357 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21358 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21359 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362 lt_prog_compiler_pic_works_F77=no
21363 ac_outfile=conftest.$ac_objext
21364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21365 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21366 # Insert the option either (1) after the last *FLAGS variable, or
21367 # (2) before a word containing "conftest.", or (3) at the end.
21368 # Note that $ac_compile itself does not contain backslashes and begins
21369 # with a dollar sign (not a hyphen), so the echo should work correctly.
21370 # The option is referenced via a variable to avoid confusing sed.
21371 lt_compile=`echo "$ac_compile" | $SED \
21372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21374 -e 's:$: $lt_compiler_flag:'`
21375 (eval echo "\"\$as_me:21375: $lt_compile\"" >&5)
21376 (eval "$lt_compile" 2>conftest.err)
21377 ac_status=$?
21378 cat conftest.err >&5
21379 echo "$as_me:21379: \$? = $ac_status" >&5
21380 if (exit $ac_status) && test -s "$ac_outfile"; then
21381 # The compiler can only warn and ignore the option if not recognized
21382 # So say no if there are warnings other than the usual output.
21383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21386 lt_prog_compiler_pic_works_F77=yes
21389 $rm conftest*
21392 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21393 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21395 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21396 case $lt_prog_compiler_pic_F77 in
21397 "" | " "*) ;;
21398 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21399 esac
21400 else
21401 lt_prog_compiler_pic_F77=
21402 lt_prog_compiler_can_build_shared_F77=no
21406 case $host_os in
21407 # For platforms which do not support PIC, -DPIC is meaningless:
21408 *djgpp*)
21409 lt_prog_compiler_pic_F77=
21412 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21414 esac
21417 # Check to make sure the static flag actually works.
21419 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21420 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21421 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21422 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425 lt_prog_compiler_static_works_F77=no
21426 save_LDFLAGS="$LDFLAGS"
21427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21428 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21430 # The linker can only warn and ignore the option if not recognized
21431 # So say no if there are warnings
21432 if test -s conftest.err; then
21433 # Append any errors to the config.log.
21434 cat conftest.err 1>&5
21435 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21437 if diff conftest.exp conftest.er2 >/dev/null; then
21438 lt_prog_compiler_static_works_F77=yes
21440 else
21441 lt_prog_compiler_static_works_F77=yes
21444 $rm conftest*
21445 LDFLAGS="$save_LDFLAGS"
21448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21449 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21451 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21453 else
21454 lt_prog_compiler_static_F77=
21458 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21459 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21460 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 else
21463 lt_cv_prog_compiler_c_o_F77=no
21464 $rm -r conftest 2>/dev/null
21465 mkdir conftest
21466 cd conftest
21467 mkdir out
21468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21470 lt_compiler_flag="-o out/conftest2.$ac_objext"
21471 # Insert the option either (1) after the last *FLAGS variable, or
21472 # (2) before a word containing "conftest.", or (3) at the end.
21473 # Note that $ac_compile itself does not contain backslashes and begins
21474 # with a dollar sign (not a hyphen), so the echo should work correctly.
21475 lt_compile=`echo "$ac_compile" | $SED \
21476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21478 -e 's:$: $lt_compiler_flag:'`
21479 (eval echo "\"\$as_me:21479: $lt_compile\"" >&5)
21480 (eval "$lt_compile" 2>out/conftest.err)
21481 ac_status=$?
21482 cat out/conftest.err >&5
21483 echo "$as_me:21483: \$? = $ac_status" >&5
21484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21485 then
21486 # The compiler can only warn and ignore the option if not recognized
21487 # So say no if there are warnings
21488 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21491 lt_cv_prog_compiler_c_o_F77=yes
21494 chmod u+w . 2>&5
21495 $rm conftest*
21496 # SGI C++ compiler will create directory out/ii_files/ for
21497 # template instantiation
21498 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21499 $rm out/* && rmdir out
21500 cd ..
21501 rmdir conftest
21502 $rm conftest*
21505 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21506 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21509 hard_links="nottested"
21510 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21511 # do not overwrite the value of need_locks provided by the user
21512 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21513 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21514 hard_links=yes
21515 $rm conftest*
21516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21517 touch conftest.a
21518 ln conftest.a conftest.b 2>&5 || hard_links=no
21519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21520 { echo "$as_me:$LINENO: result: $hard_links" >&5
21521 echo "${ECHO_T}$hard_links" >&6; }
21522 if test "$hard_links" = no; then
21523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21524 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21525 need_locks=warn
21527 else
21528 need_locks=no
21531 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21532 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21534 runpath_var=
21535 allow_undefined_flag_F77=
21536 enable_shared_with_static_runtimes_F77=no
21537 archive_cmds_F77=
21538 archive_expsym_cmds_F77=
21539 old_archive_From_new_cmds_F77=
21540 old_archive_from_expsyms_cmds_F77=
21541 export_dynamic_flag_spec_F77=
21542 whole_archive_flag_spec_F77=
21543 thread_safe_flag_spec_F77=
21544 hardcode_libdir_flag_spec_F77=
21545 hardcode_libdir_flag_spec_ld_F77=
21546 hardcode_libdir_separator_F77=
21547 hardcode_direct_F77=no
21548 hardcode_minus_L_F77=no
21549 hardcode_shlibpath_var_F77=unsupported
21550 link_all_deplibs_F77=unknown
21551 hardcode_automatic_F77=no
21552 module_cmds_F77=
21553 module_expsym_cmds_F77=
21554 always_export_symbols_F77=no
21555 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21556 # include_expsyms should be a list of space-separated symbols to be *always*
21557 # included in the symbol list
21558 include_expsyms_F77=
21559 # exclude_expsyms can be an extended regexp of symbols to exclude
21560 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21561 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21562 # as well as any symbol that contains `d'.
21563 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21565 # platforms (ab)use it in PIC code, but their linkers get confused if
21566 # the symbol is explicitly referenced. Since portable code cannot
21567 # rely on this symbol name, it's probably fine to never include it in
21568 # preloaded symbol tables.
21569 extract_expsyms_cmds=
21570 # Just being paranoid about ensuring that cc_basename is set.
21571 for cc_temp in $compiler""; do
21572 case $cc_temp in
21573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21575 \-*) ;;
21576 *) break;;
21577 esac
21578 done
21579 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21581 case $host_os in
21582 cygwin* | mingw* | pw32*)
21583 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21584 # When not using gcc, we currently assume that we are using
21585 # Microsoft Visual C++.
21586 if test "$GCC" != yes; then
21587 with_gnu_ld=no
21590 interix*)
21591 # we just hope/assume this is gcc and not c89 (= MSVC++)
21592 with_gnu_ld=yes
21594 openbsd*)
21595 with_gnu_ld=no
21597 esac
21599 ld_shlibs_F77=yes
21600 if test "$with_gnu_ld" = yes; then
21601 # If archive_cmds runs LD, not CC, wlarc should be empty
21602 wlarc='${wl}'
21604 # Set some defaults for GNU ld with shared library support. These
21605 # are reset later if shared libraries are not supported. Putting them
21606 # here allows them to be overridden if necessary.
21607 runpath_var=LD_RUN_PATH
21608 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21609 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21610 # ancient GNU ld didn't support --whole-archive et. al.
21611 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21612 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21613 else
21614 whole_archive_flag_spec_F77=
21616 supports_anon_versioning=no
21617 case `$LD -v 2>/dev/null` in
21618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21621 *\ 2.11.*) ;; # other 2.11 versions
21622 *) supports_anon_versioning=yes ;;
21623 esac
21625 # See if GNU ld supports shared libraries.
21626 case $host_os in
21627 aix3* | aix4* | aix5*)
21628 # On AIX/PPC, the GNU linker is very broken
21629 if test "$host_cpu" != ia64; then
21630 ld_shlibs_F77=no
21631 cat <<EOF 1>&2
21633 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21634 *** to be unable to reliably create shared libraries on AIX.
21635 *** Therefore, libtool is disabling shared libraries support. If you
21636 *** really care for shared libraries, you may want to modify your PATH
21637 *** so that a non-GNU linker is found, and then restart.
21643 amigaos*)
21644 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)'
21645 hardcode_libdir_flag_spec_F77='-L$libdir'
21646 hardcode_minus_L_F77=yes
21648 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21649 # that the semantics of dynamic libraries on AmigaOS, at least up
21650 # to version 4, is to share data among multiple programs linked
21651 # with the same dynamic library. Since this doesn't match the
21652 # behavior of shared libraries on other platforms, we can't use
21653 # them.
21654 ld_shlibs_F77=no
21657 beos*)
21658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21659 allow_undefined_flag_F77=unsupported
21660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21661 # support --undefined. This deserves some investigation. FIXME
21662 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21663 else
21664 ld_shlibs_F77=no
21668 cygwin* | mingw* | pw32*)
21669 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21670 # as there is no search path for DLLs.
21671 hardcode_libdir_flag_spec_F77='-L$libdir'
21672 allow_undefined_flag_F77=unsupported
21673 always_export_symbols_F77=no
21674 enable_shared_with_static_runtimes_F77=yes
21675 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21677 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21678 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21679 # If the export-symbols file already is a .def file (1st line
21680 # is EXPORTS), use it as is; otherwise, prepend...
21681 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21682 cp $export_symbols $output_objdir/$soname.def;
21683 else
21684 echo EXPORTS > $output_objdir/$soname.def;
21685 cat $export_symbols >> $output_objdir/$soname.def;
21687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21688 else
21689 ld_shlibs_F77=no
21693 interix3*)
21694 hardcode_direct_F77=no
21695 hardcode_shlibpath_var_F77=no
21696 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21697 export_dynamic_flag_spec_F77='${wl}-E'
21698 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21699 # Instead, shared libraries are loaded at an image base (0x10000000 by
21700 # default) and relocated if they conflict, which is a slow very memory
21701 # consuming and fragmenting process. To avoid this, we pick a random,
21702 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21703 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21704 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'
21705 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'
21708 linux*)
21709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21710 tmp_addflag=
21711 case $cc_basename,$host_cpu in
21712 pgcc*) # Portland Group C compiler
21713 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'
21714 tmp_addflag=' $pic_flag'
21716 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21717 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'
21718 tmp_addflag=' $pic_flag -Mnomain' ;;
21719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21720 tmp_addflag=' -i_dynamic' ;;
21721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21722 tmp_addflag=' -i_dynamic -nofor_main' ;;
21723 ifc* | ifort*) # Intel Fortran compiler
21724 tmp_addflag=' -nofor_main' ;;
21725 esac
21726 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21728 if test $supports_anon_versioning = yes; then
21729 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21731 $echo "local: *; };" >> $output_objdir/$libname.ver~
21732 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21734 else
21735 ld_shlibs_F77=no
21739 netbsd*)
21740 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21741 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21742 wlarc=
21743 else
21744 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21745 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21749 solaris*)
21750 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21751 ld_shlibs_F77=no
21752 cat <<EOF 1>&2
21754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21755 *** create shared libraries on Solaris systems. Therefore, libtool
21756 *** is disabling shared libraries support. We urge you to upgrade GNU
21757 *** binutils to release 2.9.1 or newer. Another option is to modify
21758 *** your PATH or compiler configuration so that the native linker is
21759 *** used, and then restart.
21762 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21763 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21764 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21765 else
21766 ld_shlibs_F77=no
21770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21771 case `$LD -v 2>&1` in
21772 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21773 ld_shlibs_F77=no
21774 cat <<_LT_EOF 1>&2
21776 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21777 *** reliably create shared libraries on SCO systems. Therefore, libtool
21778 *** is disabling shared libraries support. We urge you to upgrade GNU
21779 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21780 *** your PATH or compiler configuration so that the native linker is
21781 *** used, and then restart.
21783 _LT_EOF
21786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21787 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21788 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21789 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21790 else
21791 ld_shlibs_F77=no
21794 esac
21797 sunos4*)
21798 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21799 wlarc=
21800 hardcode_direct_F77=yes
21801 hardcode_shlibpath_var_F77=no
21805 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21806 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21807 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21808 else
21809 ld_shlibs_F77=no
21812 esac
21814 if test "$ld_shlibs_F77" = no; then
21815 runpath_var=
21816 hardcode_libdir_flag_spec_F77=
21817 export_dynamic_flag_spec_F77=
21818 whole_archive_flag_spec_F77=
21820 else
21821 # PORTME fill in a description of your system's linker (not GNU ld)
21822 case $host_os in
21823 aix3*)
21824 allow_undefined_flag_F77=unsupported
21825 always_export_symbols_F77=yes
21826 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'
21827 # Note: this linker hardcodes the directories in LIBPATH if there
21828 # are no directories specified by -L.
21829 hardcode_minus_L_F77=yes
21830 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21831 # Neither direct hardcoding nor static linking is supported with a
21832 # broken collect2.
21833 hardcode_direct_F77=unsupported
21837 aix4* | aix5*)
21838 if test "$host_cpu" = ia64; then
21839 # On IA64, the linker does run time linking by default, so we don't
21840 # have to do anything special.
21841 aix_use_runtimelinking=no
21842 exp_sym_flag='-Bexport'
21843 no_entry_flag=""
21844 else
21845 # If we're using GNU nm, then we don't want the "-C" option.
21846 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21847 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21848 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'
21849 else
21850 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'
21852 aix_use_runtimelinking=no
21854 # Test if we are trying to use run time linking or normal
21855 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21856 # need to do runtime linking.
21857 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21858 for ld_flag in $LDFLAGS; do
21859 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21860 aix_use_runtimelinking=yes
21861 break
21863 done
21865 esac
21867 exp_sym_flag='-bexport'
21868 no_entry_flag='-bnoentry'
21871 # When large executables or shared objects are built, AIX ld can
21872 # have problems creating the table of contents. If linking a library
21873 # or program results in "error TOC overflow" add -mminimal-toc to
21874 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21875 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21877 archive_cmds_F77=''
21878 hardcode_direct_F77=yes
21879 hardcode_libdir_separator_F77=':'
21880 link_all_deplibs_F77=yes
21882 if test "$GCC" = yes; then
21883 case $host_os in aix4.[012]|aix4.[012].*)
21884 # We only want to do this on AIX 4.2 and lower, the check
21885 # below for broken collect2 doesn't work under 4.3+
21886 collect2name=`${CC} -print-prog-name=collect2`
21887 if test -f "$collect2name" && \
21888 strings "$collect2name" | grep resolve_lib_name >/dev/null
21889 then
21890 # We have reworked collect2
21891 hardcode_direct_F77=yes
21892 else
21893 # We have old collect2
21894 hardcode_direct_F77=unsupported
21895 # It fails to find uninstalled libraries when the uninstalled
21896 # path is not listed in the libpath. Setting hardcode_minus_L
21897 # to unsupported forces relinking
21898 hardcode_minus_L_F77=yes
21899 hardcode_libdir_flag_spec_F77='-L$libdir'
21900 hardcode_libdir_separator_F77=
21903 esac
21904 shared_flag='-shared'
21905 if test "$aix_use_runtimelinking" = yes; then
21906 shared_flag="$shared_flag "'${wl}-G'
21908 else
21909 # not using gcc
21910 if test "$host_cpu" = ia64; then
21911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21912 # chokes on -Wl,-G. The following line is correct:
21913 shared_flag='-G'
21914 else
21915 if test "$aix_use_runtimelinking" = yes; then
21916 shared_flag='${wl}-G'
21917 else
21918 shared_flag='${wl}-bM:SRE'
21923 # It seems that -bexpall does not export symbols beginning with
21924 # underscore (_), so it is better to generate a list of symbols to export.
21925 always_export_symbols_F77=yes
21926 if test "$aix_use_runtimelinking" = yes; then
21927 # Warning - without using the other runtime loading flags (-brtl),
21928 # -berok will link without error, but may produce a broken library.
21929 allow_undefined_flag_F77='-berok'
21930 # Determine the default libpath from the value encoded in an empty executable.
21931 cat >conftest.$ac_ext <<_ACEOF
21932 program main
21935 _ACEOF
21936 rm -f conftest.$ac_objext conftest$ac_exeext
21937 if { (ac_try="$ac_link"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21941 esac
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_link") 2>conftest.er1
21944 ac_status=$?
21945 grep -v '^ *+' conftest.er1 >conftest.err
21946 rm -f conftest.er1
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } &&
21950 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21951 { (case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954 esac
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_try") 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; } &&
21960 { ac_try='test -s conftest$ac_exeext'
21961 { (case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_try") 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21973 # Check for a 64-bit object if we didn't find anything.
21974 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; }
21975 }'`; fi
21976 else
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21983 rm -f core conftest.err conftest.$ac_objext \
21984 conftest$ac_exeext conftest.$ac_ext
21985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21987 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21988 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"
21989 else
21990 if test "$host_cpu" = ia64; then
21991 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21992 allow_undefined_flag_F77="-z nodefs"
21993 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"
21994 else
21995 # Determine the default libpath from the value encoded in an empty executable.
21996 cat >conftest.$ac_ext <<_ACEOF
21997 program main
22000 _ACEOF
22001 rm -f conftest.$ac_objext conftest$ac_exeext
22002 if { (ac_try="$ac_link"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_link") 2>conftest.er1
22009 ac_status=$?
22010 grep -v '^ *+' conftest.er1 >conftest.err
22011 rm -f conftest.er1
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } &&
22015 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22016 { (case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_try") 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try='test -s conftest$ac_exeext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22029 esac
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22038 # Check for a 64-bit object if we didn't find anything.
22039 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; }
22040 }'`; fi
22041 else
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22048 rm -f core conftest.err conftest.$ac_objext \
22049 conftest$ac_exeext conftest.$ac_ext
22050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22052 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22053 # Warning - without using the other run time loading flags,
22054 # -berok will link without error, but may produce a broken library.
22055 no_undefined_flag_F77=' ${wl}-bernotok'
22056 allow_undefined_flag_F77=' ${wl}-berok'
22057 # Exported symbols can be pulled into shared objects from archives
22058 whole_archive_flag_spec_F77='$convenience'
22059 archive_cmds_need_lc_F77=yes
22060 # This is similar to how AIX traditionally builds its shared libraries.
22061 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'
22066 amigaos*)
22067 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)'
22068 hardcode_libdir_flag_spec_F77='-L$libdir'
22069 hardcode_minus_L_F77=yes
22070 # see comment about different semantics on the GNU ld section
22071 ld_shlibs_F77=no
22074 bsdi[45]*)
22075 export_dynamic_flag_spec_F77=-rdynamic
22078 cygwin* | mingw* | pw32*)
22079 # When not using gcc, we currently assume that we are using
22080 # Microsoft Visual C++.
22081 # hardcode_libdir_flag_spec is actually meaningless, as there is
22082 # no search path for DLLs.
22083 hardcode_libdir_flag_spec_F77=' '
22084 allow_undefined_flag_F77=unsupported
22085 # Tell ltmain to make .lib files, not .a files.
22086 libext=lib
22087 # Tell ltmain to make .dll files, not .so files.
22088 shrext_cmds=".dll"
22089 # FIXME: Setting linknames here is a bad hack.
22090 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22091 # The linker will automatically build a .lib file if we build a DLL.
22092 old_archive_From_new_cmds_F77='true'
22093 # FIXME: Should let the user specify the lib program.
22094 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22095 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22096 enable_shared_with_static_runtimes_F77=yes
22099 darwin* | rhapsody*)
22100 case $host_os in
22101 rhapsody* | darwin1.[012])
22102 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22104 *) # Darwin 1.3 on
22105 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22106 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22107 else
22108 case ${MACOSX_DEPLOYMENT_TARGET} in
22109 10.[012])
22110 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22112 10.*)
22113 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22115 esac
22118 esac
22119 archive_cmds_need_lc_F77=no
22120 hardcode_direct_F77=no
22121 hardcode_automatic_F77=yes
22122 hardcode_shlibpath_var_F77=unsupported
22123 whole_archive_flag_spec_F77=''
22124 link_all_deplibs_F77=yes
22125 if test "$GCC" = yes ; then
22126 output_verbose_link_cmd='echo'
22127 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22128 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22130 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}'
22131 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}'
22132 else
22133 case $cc_basename in
22134 xlc*)
22135 output_verbose_link_cmd='echo'
22136 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22137 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22139 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}'
22140 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}'
22143 ld_shlibs_F77=no
22145 esac
22149 dgux*)
22150 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151 hardcode_libdir_flag_spec_F77='-L$libdir'
22152 hardcode_shlibpath_var_F77=no
22155 freebsd1*)
22156 ld_shlibs_F77=no
22159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22160 # support. Future versions do this automatically, but an explicit c++rt0.o
22161 # does not break anything, and helps significantly (at the cost of a little
22162 # extra space).
22163 freebsd2.2*)
22164 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22165 hardcode_libdir_flag_spec_F77='-R$libdir'
22166 hardcode_direct_F77=yes
22167 hardcode_shlibpath_var_F77=no
22170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22171 freebsd2*)
22172 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22173 hardcode_direct_F77=yes
22174 hardcode_minus_L_F77=yes
22175 hardcode_shlibpath_var_F77=no
22178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22179 freebsd* | kfreebsd*-gnu | dragonfly*)
22180 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22181 hardcode_libdir_flag_spec_F77='-R$libdir'
22182 hardcode_direct_F77=yes
22183 hardcode_shlibpath_var_F77=no
22186 hpux9*)
22187 if test "$GCC" = yes; then
22188 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'
22189 else
22190 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'
22192 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22193 hardcode_libdir_separator_F77=:
22194 hardcode_direct_F77=yes
22196 # hardcode_minus_L: Not really in the search PATH,
22197 # but as the default location of the library.
22198 hardcode_minus_L_F77=yes
22199 export_dynamic_flag_spec_F77='${wl}-E'
22202 hpux10*)
22203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22204 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22205 else
22206 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22208 if test "$with_gnu_ld" = no; then
22209 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22210 hardcode_libdir_separator_F77=:
22212 hardcode_direct_F77=yes
22213 export_dynamic_flag_spec_F77='${wl}-E'
22215 # hardcode_minus_L: Not really in the search PATH,
22216 # but as the default location of the library.
22217 hardcode_minus_L_F77=yes
22221 hpux11*)
22222 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22223 case $host_cpu in
22224 hppa*64*)
22225 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22227 ia64*)
22228 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22231 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22233 esac
22234 else
22235 case $host_cpu in
22236 hppa*64*)
22237 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22239 ia64*)
22240 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22243 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22245 esac
22247 if test "$with_gnu_ld" = no; then
22248 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22249 hardcode_libdir_separator_F77=:
22251 case $host_cpu in
22252 hppa*64*|ia64*)
22253 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22254 hardcode_direct_F77=no
22255 hardcode_shlibpath_var_F77=no
22258 hardcode_direct_F77=yes
22259 export_dynamic_flag_spec_F77='${wl}-E'
22261 # hardcode_minus_L: Not really in the search PATH,
22262 # but as the default location of the library.
22263 hardcode_minus_L_F77=yes
22265 esac
22269 irix5* | irix6* | nonstopux*)
22270 if test "$GCC" = yes; then
22271 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'
22272 else
22273 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'
22274 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22276 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22277 hardcode_libdir_separator_F77=:
22278 link_all_deplibs_F77=yes
22281 netbsd*)
22282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22283 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22284 else
22285 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22287 hardcode_libdir_flag_spec_F77='-R$libdir'
22288 hardcode_direct_F77=yes
22289 hardcode_shlibpath_var_F77=no
22292 newsos6)
22293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22294 hardcode_direct_F77=yes
22295 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22296 hardcode_libdir_separator_F77=:
22297 hardcode_shlibpath_var_F77=no
22300 openbsd*)
22301 hardcode_direct_F77=yes
22302 hardcode_shlibpath_var_F77=no
22303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22304 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22305 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22306 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22307 export_dynamic_flag_spec_F77='${wl}-E'
22308 else
22309 case $host_os in
22310 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22311 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22312 hardcode_libdir_flag_spec_F77='-R$libdir'
22315 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22316 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22318 esac
22322 os2*)
22323 hardcode_libdir_flag_spec_F77='-L$libdir'
22324 hardcode_minus_L_F77=yes
22325 allow_undefined_flag_F77=unsupported
22326 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'
22327 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22330 osf3*)
22331 if test "$GCC" = yes; then
22332 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22333 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'
22334 else
22335 allow_undefined_flag_F77=' -expect_unresolved \*'
22336 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'
22338 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22339 hardcode_libdir_separator_F77=:
22342 osf4* | osf5*) # as osf3* with the addition of -msym flag
22343 if test "$GCC" = yes; then
22344 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22345 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'
22346 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22347 else
22348 allow_undefined_flag_F77=' -expect_unresolved \*'
22349 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'
22350 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~
22351 $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'
22353 # Both c and cxx compiler support -rpath directly
22354 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22356 hardcode_libdir_separator_F77=:
22359 solaris*)
22360 no_undefined_flag_F77=' -z text'
22361 if test "$GCC" = yes; then
22362 wlarc='${wl}'
22363 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22364 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22365 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22366 else
22367 wlarc=''
22368 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22369 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22370 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22372 hardcode_libdir_flag_spec_F77='-R$libdir'
22373 hardcode_shlibpath_var_F77=no
22374 case $host_os in
22375 solaris2.[0-5] | solaris2.[0-5].*) ;;
22377 # The compiler driver will combine linker options so we
22378 # cannot just pass the convience library names through
22379 # without $wl, iff we do not link with $LD.
22380 # Luckily, gcc supports the same syntax we need for Sun Studio.
22381 # Supported since Solaris 2.6 (maybe 2.5.1?)
22382 case $wlarc in
22384 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22386 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' ;;
22387 esac ;;
22388 esac
22389 link_all_deplibs_F77=yes
22392 sunos4*)
22393 if test "x$host_vendor" = xsequent; then
22394 # Use $CC to link under sequent, because it throws in some extra .o
22395 # files that make .init and .fini sections work.
22396 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22397 else
22398 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22400 hardcode_libdir_flag_spec_F77='-L$libdir'
22401 hardcode_direct_F77=yes
22402 hardcode_minus_L_F77=yes
22403 hardcode_shlibpath_var_F77=no
22406 sysv4)
22407 case $host_vendor in
22408 sni)
22409 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22410 hardcode_direct_F77=yes # is this really true???
22412 siemens)
22413 ## LD is ld it makes a PLAMLIB
22414 ## CC just makes a GrossModule.
22415 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22416 reload_cmds_F77='$CC -r -o $output$reload_objs'
22417 hardcode_direct_F77=no
22419 motorola)
22420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22423 esac
22424 runpath_var='LD_RUN_PATH'
22425 hardcode_shlibpath_var_F77=no
22428 sysv4.3*)
22429 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22430 hardcode_shlibpath_var_F77=no
22431 export_dynamic_flag_spec_F77='-Bexport'
22434 sysv4*MP*)
22435 if test -d /usr/nec; then
22436 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22437 hardcode_shlibpath_var_F77=no
22438 runpath_var=LD_RUN_PATH
22439 hardcode_runpath_var=yes
22440 ld_shlibs_F77=yes
22444 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22445 no_undefined_flag_F77='${wl}-z,text'
22446 archive_cmds_need_lc_F77=no
22447 hardcode_shlibpath_var_F77=no
22448 runpath_var='LD_RUN_PATH'
22450 if test "$GCC" = yes; then
22451 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22452 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22453 else
22454 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22455 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22459 sysv5* | sco3.2v5* | sco5v6*)
22460 # Note: We can NOT use -z defs as we might desire, because we do not
22461 # link with -lc, and that would cause any symbols used from libc to
22462 # always be unresolved, which means just about no library would
22463 # ever link correctly. If we're not using GNU ld we use -z text
22464 # though, which does catch some bad symbols but isn't as heavy-handed
22465 # as -z defs.
22466 no_undefined_flag_F77='${wl}-z,text'
22467 allow_undefined_flag_F77='${wl}-z,nodefs'
22468 archive_cmds_need_lc_F77=no
22469 hardcode_shlibpath_var_F77=no
22470 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22471 hardcode_libdir_separator_F77=':'
22472 link_all_deplibs_F77=yes
22473 export_dynamic_flag_spec_F77='${wl}-Bexport'
22474 runpath_var='LD_RUN_PATH'
22476 if test "$GCC" = yes; then
22477 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22478 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22479 else
22480 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22481 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22485 uts4*)
22486 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22487 hardcode_libdir_flag_spec_F77='-L$libdir'
22488 hardcode_shlibpath_var_F77=no
22492 ld_shlibs_F77=no
22494 esac
22497 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22498 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22499 test "$ld_shlibs_F77" = no && can_build_shared=no
22502 # Do we need to explicitly link libc?
22504 case "x$archive_cmds_need_lc_F77" in
22505 x|xyes)
22506 # Assume -lc should be added
22507 archive_cmds_need_lc_F77=yes
22509 if test "$enable_shared" = yes && test "$GCC" = yes; then
22510 case $archive_cmds_F77 in
22511 *'~'*)
22512 # FIXME: we may have to deal with multi-command sequences.
22514 '$CC '*)
22515 # Test whether the compiler implicitly links with -lc since on some
22516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22517 # to ld, don't add -lc before -lgcc.
22518 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22519 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22520 $rm conftest*
22521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524 (eval $ac_compile) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } 2>conftest.err; then
22528 soname=conftest
22529 lib=conftest
22530 libobjs=conftest.$ac_objext
22531 deplibs=
22532 wl=$lt_prog_compiler_wl_F77
22533 pic_flag=$lt_prog_compiler_pic_F77
22534 compiler_flags=-v
22535 linker_flags=-v
22536 verstring=
22537 output_objdir=.
22538 libname=conftest
22539 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22540 allow_undefined_flag_F77=
22541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22542 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }
22546 then
22547 archive_cmds_need_lc_F77=no
22548 else
22549 archive_cmds_need_lc_F77=yes
22551 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22552 else
22553 cat conftest.err 1>&5
22555 $rm conftest*
22556 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22557 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22559 esac
22562 esac
22564 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22565 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22566 library_names_spec=
22567 libname_spec='lib$name'
22568 soname_spec=
22569 shrext_cmds=".so"
22570 postinstall_cmds=
22571 postuninstall_cmds=
22572 finish_cmds=
22573 finish_eval=
22574 shlibpath_var=
22575 shlibpath_overrides_runpath=unknown
22576 version_type=none
22577 dynamic_linker="$host_os ld.so"
22578 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22579 if test "$GCC" = yes; then
22580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22581 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22582 # if the path contains ";" then we assume it to be the separator
22583 # otherwise default to the standard path separator (i.e. ":") - it is
22584 # assumed that no part of a normal pathname contains ";" but that should
22585 # okay in the real world where ";" in dirpaths is itself problematic.
22586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22587 else
22588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22590 else
22591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22593 need_lib_prefix=unknown
22594 hardcode_into_libs=no
22596 # when you set need_version to no, make sure it does not cause -set_version
22597 # flags to be left without arguments
22598 need_version=unknown
22600 case $host_os in
22601 aix3*)
22602 version_type=linux
22603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22604 shlibpath_var=LIBPATH
22606 # AIX 3 has no versioning support, so we append a major version to the name.
22607 soname_spec='${libname}${release}${shared_ext}$major'
22610 aix4* | aix5*)
22611 version_type=linux
22612 need_lib_prefix=no
22613 need_version=no
22614 hardcode_into_libs=yes
22615 if test "$host_cpu" = ia64; then
22616 # AIX 5 supports IA64
22617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22618 shlibpath_var=LD_LIBRARY_PATH
22619 else
22620 # With GCC up to 2.95.x, collect2 would create an import file
22621 # for dependence libraries. The import file would start with
22622 # the line `#! .'. This would cause the generated library to
22623 # depend on `.', always an invalid library. This was fixed in
22624 # development snapshots of GCC prior to 3.0.
22625 case $host_os in
22626 aix4 | aix4.[01] | aix4.[01].*)
22627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22628 echo ' yes '
22629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22631 else
22632 can_build_shared=no
22635 esac
22636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22637 # soname into executable. Probably we can add versioning support to
22638 # collect2, so additional links can be useful in future.
22639 if test "$aix_use_runtimelinking" = yes; then
22640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22641 # instead of lib<name>.a to let people know that these are not
22642 # typical AIX shared libraries.
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22644 else
22645 # We preserve .a as extension for shared libraries through AIX4.2
22646 # and later when we are not doing run time linking.
22647 library_names_spec='${libname}${release}.a $libname.a'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22650 shlibpath_var=LIBPATH
22654 amigaos*)
22655 library_names_spec='$libname.ixlibrary $libname.a'
22656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22657 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'
22660 beos*)
22661 library_names_spec='${libname}${shared_ext}'
22662 dynamic_linker="$host_os ld.so"
22663 shlibpath_var=LIBRARY_PATH
22666 bsdi[45]*)
22667 version_type=linux
22668 need_version=no
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22675 # the default ld.so.conf also contains /usr/contrib/lib and
22676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22677 # libtool to hard-code these into programs
22680 cygwin* | mingw* | pw32*)
22681 version_type=windows
22682 shrext_cmds=".dll"
22683 need_version=no
22684 need_lib_prefix=no
22686 case $GCC,$host_os in
22687 yes,cygwin* | yes,mingw* | yes,pw32*)
22688 library_names_spec='$libname.dll.a'
22689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22690 postinstall_cmds='base_file=`basename \${file}`~
22691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22692 dldir=$destdir/`dirname \$dlpath`~
22693 test -d \$dldir || mkdir -p \$dldir~
22694 $install_prog $dir/$dlname \$dldir/$dlname~
22695 chmod a+x \$dldir/$dlname'
22696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22697 dlpath=$dir/\$dldll~
22698 $rm \$dlpath'
22699 shlibpath_overrides_runpath=yes
22701 case $host_os in
22702 cygwin*)
22703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22705 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22707 mingw*)
22708 # MinGW DLLs use traditional 'lib' prefix
22709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22711 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22712 # It is most probably a Windows format PATH printed by
22713 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22714 # path with ; separators, and with drive letters. We can handle the
22715 # drive letters (cygwin fileutils understands them), so leave them,
22716 # especially as we might pass files found there to a mingw objdump,
22717 # which wouldn't understand a cygwinified path. Ahh.
22718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22719 else
22720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22723 pw32*)
22724 # pw32 DLLs use 'pw' prefix rather than 'lib'
22725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22727 esac
22731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22733 esac
22734 dynamic_linker='Win32 ld.exe'
22735 # FIXME: first we should search . and the directory the executable is in
22736 shlibpath_var=PATH
22739 darwin* | rhapsody*)
22740 dynamic_linker="$host_os dyld"
22741 version_type=darwin
22742 need_lib_prefix=no
22743 need_version=no
22744 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22745 soname_spec='${libname}${release}${major}$shared_ext'
22746 shlibpath_overrides_runpath=yes
22747 shlibpath_var=DYLD_LIBRARY_PATH
22748 shrext_cmds='.dylib'
22749 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22750 if test "$GCC" = yes; then
22751 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"`
22752 else
22753 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22758 dgux*)
22759 version_type=linux
22760 need_lib_prefix=no
22761 need_version=no
22762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22763 soname_spec='${libname}${release}${shared_ext}$major'
22764 shlibpath_var=LD_LIBRARY_PATH
22767 freebsd1*)
22768 dynamic_linker=no
22771 kfreebsd*-gnu)
22772 version_type=linux
22773 need_lib_prefix=no
22774 need_version=no
22775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22776 soname_spec='${libname}${release}${shared_ext}$major'
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=no
22779 hardcode_into_libs=yes
22780 dynamic_linker='GNU ld.so'
22783 freebsd* | dragonfly*)
22784 # DragonFly does not have aout. When/if they implement a new
22785 # versioning mechanism, adjust this.
22786 if test -x /usr/bin/objformat; then
22787 objformat=`/usr/bin/objformat`
22788 else
22789 case $host_os in
22790 freebsd[123]*) objformat=aout ;;
22791 *) objformat=elf ;;
22792 esac
22794 version_type=freebsd-$objformat
22795 case $version_type in
22796 freebsd-elf*)
22797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22798 need_version=no
22799 need_lib_prefix=no
22801 freebsd-*)
22802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22803 need_version=yes
22805 esac
22806 shlibpath_var=LD_LIBRARY_PATH
22807 case $host_os in
22808 freebsd2*)
22809 shlibpath_overrides_runpath=yes
22811 freebsd3.[01]* | freebsdelf3.[01]*)
22812 shlibpath_overrides_runpath=yes
22813 hardcode_into_libs=yes
22815 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22816 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22817 shlibpath_overrides_runpath=no
22818 hardcode_into_libs=yes
22820 freebsd*) # from 4.6 on
22821 shlibpath_overrides_runpath=yes
22822 hardcode_into_libs=yes
22824 esac
22827 gnu*)
22828 version_type=linux
22829 need_lib_prefix=no
22830 need_version=no
22831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22832 soname_spec='${libname}${release}${shared_ext}$major'
22833 shlibpath_var=LD_LIBRARY_PATH
22834 hardcode_into_libs=yes
22837 hpux9* | hpux10* | hpux11*)
22838 # Give a soname corresponding to the major version so that dld.sl refuses to
22839 # link against other versions.
22840 version_type=sunos
22841 need_lib_prefix=no
22842 need_version=no
22843 case $host_cpu in
22844 ia64*)
22845 shrext_cmds='.so'
22846 hardcode_into_libs=yes
22847 dynamic_linker="$host_os dld.so"
22848 shlibpath_var=LD_LIBRARY_PATH
22849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851 soname_spec='${libname}${release}${shared_ext}$major'
22852 if test "X$HPUX_IA64_MODE" = X32; then
22853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22854 else
22855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22859 hppa*64*)
22860 shrext_cmds='.sl'
22861 hardcode_into_libs=yes
22862 dynamic_linker="$host_os dld.sl"
22863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22866 soname_spec='${libname}${release}${shared_ext}$major'
22867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22871 shrext_cmds='.sl'
22872 dynamic_linker="$host_os dld.sl"
22873 shlibpath_var=SHLIB_PATH
22874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22876 soname_spec='${libname}${release}${shared_ext}$major'
22878 esac
22879 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22880 postinstall_cmds='chmod 555 $lib'
22883 interix3*)
22884 version_type=linux
22885 need_lib_prefix=no
22886 need_version=no
22887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22888 soname_spec='${libname}${release}${shared_ext}$major'
22889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22890 shlibpath_var=LD_LIBRARY_PATH
22891 shlibpath_overrides_runpath=no
22892 hardcode_into_libs=yes
22895 irix5* | irix6* | nonstopux*)
22896 case $host_os in
22897 nonstopux*) version_type=nonstopux ;;
22899 if test "$lt_cv_prog_gnu_ld" = yes; then
22900 version_type=linux
22901 else
22902 version_type=irix
22903 fi ;;
22904 esac
22905 need_lib_prefix=no
22906 need_version=no
22907 soname_spec='${libname}${release}${shared_ext}$major'
22908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22909 case $host_os in
22910 irix5* | nonstopux*)
22911 libsuff= shlibsuff=
22914 case $LD in # libtool.m4 will add one of these switches to LD
22915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22916 libsuff= shlibsuff= libmagic=32-bit;;
22917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22918 libsuff=32 shlibsuff=N32 libmagic=N32;;
22919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22921 *) libsuff= shlibsuff= libmagic=never-match;;
22922 esac
22924 esac
22925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22926 shlibpath_overrides_runpath=no
22927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22929 hardcode_into_libs=yes
22932 # No shared lib support for Linux oldld, aout, or coff.
22933 linux*oldld* | linux*aout* | linux*coff*)
22934 dynamic_linker=no
22937 # This must be Linux ELF.
22938 linux*)
22939 version_type=linux
22940 need_lib_prefix=no
22941 need_version=no
22942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943 soname_spec='${libname}${release}${shared_ext}$major'
22944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22945 shlibpath_var=LD_LIBRARY_PATH
22946 shlibpath_overrides_runpath=no
22947 # This implies no fast_install, which is unacceptable.
22948 # Some rework will be needed to allow for fast_install
22949 # before this can be enabled.
22950 hardcode_into_libs=yes
22952 # Append ld.so.conf contents to the search path
22953 if test -f /etc/ld.so.conf; then
22954 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' ' '`
22955 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22958 # We used to test for /lib/ld.so.1 and disable shared libraries on
22959 # powerpc, because MkLinux only supported shared libraries with the
22960 # GNU dynamic linker. Since this was broken with cross compilers,
22961 # most powerpc-linux boxes support dynamic linking these days and
22962 # people can always --disable-shared, the test was removed, and we
22963 # assume the GNU/Linux dynamic linker is in use.
22964 dynamic_linker='GNU/Linux ld.so'
22967 knetbsd*-gnu)
22968 version_type=linux
22969 need_lib_prefix=no
22970 need_version=no
22971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 shlibpath_var=LD_LIBRARY_PATH
22974 shlibpath_overrides_runpath=no
22975 hardcode_into_libs=yes
22976 dynamic_linker='GNU ld.so'
22979 netbsd*)
22980 version_type=sunos
22981 need_lib_prefix=no
22982 need_version=no
22983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22986 dynamic_linker='NetBSD (a.out) ld.so'
22987 else
22988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22989 soname_spec='${libname}${release}${shared_ext}$major'
22990 dynamic_linker='NetBSD ld.elf_so'
22992 shlibpath_var=LD_LIBRARY_PATH
22993 shlibpath_overrides_runpath=yes
22994 hardcode_into_libs=yes
22997 newsos6)
22998 version_type=linux
22999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23000 shlibpath_var=LD_LIBRARY_PATH
23001 shlibpath_overrides_runpath=yes
23004 nto-qnx*)
23005 version_type=linux
23006 need_lib_prefix=no
23007 need_version=no
23008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 shlibpath_overrides_runpath=yes
23014 openbsd*)
23015 version_type=sunos
23016 sys_lib_dlsearch_path_spec="/usr/lib"
23017 need_lib_prefix=no
23018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23019 case $host_os in
23020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23021 *) need_version=no ;;
23022 esac
23023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23025 shlibpath_var=LD_LIBRARY_PATH
23026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23027 case $host_os in
23028 openbsd2.[89] | openbsd2.[89].*)
23029 shlibpath_overrides_runpath=no
23032 shlibpath_overrides_runpath=yes
23034 esac
23035 else
23036 shlibpath_overrides_runpath=yes
23040 os2*)
23041 libname_spec='$name'
23042 shrext_cmds=".dll"
23043 need_lib_prefix=no
23044 library_names_spec='$libname${shared_ext} $libname.a'
23045 dynamic_linker='OS/2 ld.exe'
23046 shlibpath_var=LIBPATH
23049 osf3* | osf4* | osf5*)
23050 version_type=osf
23051 need_lib_prefix=no
23052 need_version=no
23053 soname_spec='${libname}${release}${shared_ext}$major'
23054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23055 shlibpath_var=LD_LIBRARY_PATH
23056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23060 solaris*)
23061 version_type=linux
23062 need_lib_prefix=no
23063 need_version=no
23064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23065 soname_spec='${libname}${release}${shared_ext}$major'
23066 shlibpath_var=LD_LIBRARY_PATH
23067 shlibpath_overrides_runpath=yes
23068 hardcode_into_libs=yes
23069 # ldd complains unless libraries are executable
23070 postinstall_cmds='chmod +x $lib'
23073 sunos4*)
23074 version_type=sunos
23075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23077 shlibpath_var=LD_LIBRARY_PATH
23078 shlibpath_overrides_runpath=yes
23079 if test "$with_gnu_ld" = yes; then
23080 need_lib_prefix=no
23082 need_version=yes
23085 sysv4 | sysv4.3*)
23086 version_type=linux
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088 soname_spec='${libname}${release}${shared_ext}$major'
23089 shlibpath_var=LD_LIBRARY_PATH
23090 case $host_vendor in
23091 sni)
23092 shlibpath_overrides_runpath=no
23093 need_lib_prefix=no
23094 export_dynamic_flag_spec='${wl}-Blargedynsym'
23095 runpath_var=LD_RUN_PATH
23097 siemens)
23098 need_lib_prefix=no
23100 motorola)
23101 need_lib_prefix=no
23102 need_version=no
23103 shlibpath_overrides_runpath=no
23104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23106 esac
23109 sysv4*MP*)
23110 if test -d /usr/nec ;then
23111 version_type=linux
23112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23113 soname_spec='$libname${shared_ext}.$major'
23114 shlibpath_var=LD_LIBRARY_PATH
23118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23119 version_type=freebsd-elf
23120 need_lib_prefix=no
23121 need_version=no
23122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23123 soname_spec='${libname}${release}${shared_ext}$major'
23124 shlibpath_var=LD_LIBRARY_PATH
23125 hardcode_into_libs=yes
23126 if test "$with_gnu_ld" = yes; then
23127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23128 shlibpath_overrides_runpath=no
23129 else
23130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23131 shlibpath_overrides_runpath=yes
23132 case $host_os in
23133 sco3.2v5*)
23134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23136 esac
23138 sys_lib_dlsearch_path_spec='/usr/lib'
23141 uts4*)
23142 version_type=linux
23143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144 soname_spec='${libname}${release}${shared_ext}$major'
23145 shlibpath_var=LD_LIBRARY_PATH
23149 dynamic_linker=no
23151 esac
23152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23153 echo "${ECHO_T}$dynamic_linker" >&6; }
23154 test "$dynamic_linker" = no && can_build_shared=no
23156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23157 if test "$GCC" = yes; then
23158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23161 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23162 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23163 hardcode_action_F77=
23164 if test -n "$hardcode_libdir_flag_spec_F77" || \
23165 test -n "$runpath_var_F77" || \
23166 test "X$hardcode_automatic_F77" = "Xyes" ; then
23168 # We can hardcode non-existant directories.
23169 if test "$hardcode_direct_F77" != no &&
23170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23171 # have to relink, otherwise we might link with an installed library
23172 # when we should be linking with a yet-to-be-installed one
23173 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23174 test "$hardcode_minus_L_F77" != no; then
23175 # Linking always hardcodes the temporary library directory.
23176 hardcode_action_F77=relink
23177 else
23178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23179 hardcode_action_F77=immediate
23181 else
23182 # We cannot hardcode anything, or else we can only hardcode existing
23183 # directories.
23184 hardcode_action_F77=unsupported
23186 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23187 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23189 if test "$hardcode_action_F77" = relink; then
23190 # Fast installation is not supported
23191 enable_fast_install=no
23192 elif test "$shlibpath_overrides_runpath" = yes ||
23193 test "$enable_shared" = no; then
23194 # Fast installation is not necessary
23195 enable_fast_install=needless
23199 # The else clause should only fire when bootstrapping the
23200 # libtool distribution, otherwise you forgot to ship ltmain.sh
23201 # with your package, and you will get complaints that there are
23202 # no rules to generate ltmain.sh.
23203 if test -f "$ltmain"; then
23204 # See if we are running on zsh, and set the options which allow our commands through
23205 # without removal of \ escapes.
23206 if test -n "${ZSH_VERSION+set}" ; then
23207 setopt NO_GLOB_SUBST
23209 # Now quote all the things that may contain metacharacters while being
23210 # careful not to overquote the AC_SUBSTed values. We take copies of the
23211 # variables and quote the copies for generation of the libtool script.
23212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23213 SED SHELL STRIP \
23214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23216 deplibs_check_method reload_flag reload_cmds need_locks \
23217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23218 lt_cv_sys_global_symbol_to_c_name_address \
23219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23220 old_postinstall_cmds old_postuninstall_cmds \
23221 compiler_F77 \
23222 CC_F77 \
23223 LD_F77 \
23224 lt_prog_compiler_wl_F77 \
23225 lt_prog_compiler_pic_F77 \
23226 lt_prog_compiler_static_F77 \
23227 lt_prog_compiler_no_builtin_flag_F77 \
23228 export_dynamic_flag_spec_F77 \
23229 thread_safe_flag_spec_F77 \
23230 whole_archive_flag_spec_F77 \
23231 enable_shared_with_static_runtimes_F77 \
23232 old_archive_cmds_F77 \
23233 old_archive_from_new_cmds_F77 \
23234 predep_objects_F77 \
23235 postdep_objects_F77 \
23236 predeps_F77 \
23237 postdeps_F77 \
23238 compiler_lib_search_path_F77 \
23239 archive_cmds_F77 \
23240 archive_expsym_cmds_F77 \
23241 postinstall_cmds_F77 \
23242 postuninstall_cmds_F77 \
23243 old_archive_from_expsyms_cmds_F77 \
23244 allow_undefined_flag_F77 \
23245 no_undefined_flag_F77 \
23246 export_symbols_cmds_F77 \
23247 hardcode_libdir_flag_spec_F77 \
23248 hardcode_libdir_flag_spec_ld_F77 \
23249 hardcode_libdir_separator_F77 \
23250 hardcode_automatic_F77 \
23251 module_cmds_F77 \
23252 module_expsym_cmds_F77 \
23253 lt_cv_prog_compiler_c_o_F77 \
23254 exclude_expsyms_F77 \
23255 include_expsyms_F77; do
23257 case $var in
23258 old_archive_cmds_F77 | \
23259 old_archive_from_new_cmds_F77 | \
23260 archive_cmds_F77 | \
23261 archive_expsym_cmds_F77 | \
23262 module_cmds_F77 | \
23263 module_expsym_cmds_F77 | \
23264 old_archive_from_expsyms_cmds_F77 | \
23265 export_symbols_cmds_F77 | \
23266 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23267 postinstall_cmds | postuninstall_cmds | \
23268 old_postinstall_cmds | old_postuninstall_cmds | \
23269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23270 # Double-quote double-evaled strings.
23271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23276 esac
23277 done
23279 case $lt_echo in
23280 *'\$0 --fallback-echo"')
23281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23283 esac
23285 cfgfile="$ofile"
23287 cat <<__EOF__ >> "$cfgfile"
23288 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23290 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23292 # Shell to use when invoking shell scripts.
23293 SHELL=$lt_SHELL
23295 # Whether or not to build shared libraries.
23296 build_libtool_libs=$enable_shared
23298 # Whether or not to build static libraries.
23299 build_old_libs=$enable_static
23301 # Whether or not to add -lc for building shared libraries.
23302 build_libtool_need_lc=$archive_cmds_need_lc_F77
23304 # Whether or not to disallow shared libs when runtime libs are static
23305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23307 # Whether or not to optimize for fast installation.
23308 fast_install=$enable_fast_install
23310 # The host system.
23311 host_alias=$host_alias
23312 host=$host
23313 host_os=$host_os
23315 # The build system.
23316 build_alias=$build_alias
23317 build=$build
23318 build_os=$build_os
23320 # An echo program that does not interpret backslashes.
23321 echo=$lt_echo
23323 # The archiver.
23324 AR=$lt_AR
23325 AR_FLAGS=$lt_AR_FLAGS
23327 # A C compiler.
23328 LTCC=$lt_LTCC
23330 # LTCC compiler flags.
23331 LTCFLAGS=$lt_LTCFLAGS
23333 # A language-specific compiler.
23334 CC=$lt_compiler_F77
23336 # Is the compiler the GNU C compiler?
23337 with_gcc=$GCC_F77
23339 # An ERE matcher.
23340 EGREP=$lt_EGREP
23342 # The linker used to build libraries.
23343 LD=$lt_LD_F77
23345 # Whether we need hard or soft links.
23346 LN_S=$lt_LN_S
23348 # A BSD-compatible nm program.
23349 NM=$lt_NM
23351 # A symbol stripping program
23352 STRIP=$lt_STRIP
23354 # Used to examine libraries when file_magic_cmd begins "file"
23355 MAGIC_CMD=$MAGIC_CMD
23357 # Used on cygwin: DLL creation program.
23358 DLLTOOL="$DLLTOOL"
23360 # Used on cygwin: object dumper.
23361 OBJDUMP="$OBJDUMP"
23363 # Used on cygwin: assembler.
23364 AS="$AS"
23366 # The name of the directory that contains temporary libtool files.
23367 objdir=$objdir
23369 # How to create reloadable object files.
23370 reload_flag=$lt_reload_flag
23371 reload_cmds=$lt_reload_cmds
23373 # How to pass a linker flag through the compiler.
23374 wl=$lt_lt_prog_compiler_wl_F77
23376 # Object file suffix (normally "o").
23377 objext="$ac_objext"
23379 # Old archive suffix (normally "a").
23380 libext="$libext"
23382 # Shared library suffix (normally ".so").
23383 shrext_cmds='$shrext_cmds'
23385 # Executable file suffix (normally "").
23386 exeext="$exeext"
23388 # Additional compiler flags for building library objects.
23389 pic_flag=$lt_lt_prog_compiler_pic_F77
23390 pic_mode=$pic_mode
23392 # What is the maximum length of a command?
23393 max_cmd_len=$lt_cv_sys_max_cmd_len
23395 # Does compiler simultaneously support -c and -o options?
23396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23398 # Must we lock files when doing compilation?
23399 need_locks=$lt_need_locks
23401 # Do we need the lib prefix for modules?
23402 need_lib_prefix=$need_lib_prefix
23404 # Do we need a version for libraries?
23405 need_version=$need_version
23407 # Whether dlopen is supported.
23408 dlopen_support=$enable_dlopen
23410 # Whether dlopen of programs is supported.
23411 dlopen_self=$enable_dlopen_self
23413 # Whether dlopen of statically linked programs is supported.
23414 dlopen_self_static=$enable_dlopen_self_static
23416 # Compiler flag to prevent dynamic linking.
23417 link_static_flag=$lt_lt_prog_compiler_static_F77
23419 # Compiler flag to turn off builtin functions.
23420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23422 # Compiler flag to allow reflexive dlopens.
23423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23425 # Compiler flag to generate shared objects directly from archives.
23426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23428 # Compiler flag to generate thread-safe objects.
23429 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23431 # Library versioning type.
23432 version_type=$version_type
23434 # Format of library name prefix.
23435 libname_spec=$lt_libname_spec
23437 # List of archive names. First name is the real one, the rest are links.
23438 # The last name is the one that the linker finds with -lNAME.
23439 library_names_spec=$lt_library_names_spec
23441 # The coded name of the library, if different from the real name.
23442 soname_spec=$lt_soname_spec
23444 # Commands used to build and install an old-style archive.
23445 RANLIB=$lt_RANLIB
23446 old_archive_cmds=$lt_old_archive_cmds_F77
23447 old_postinstall_cmds=$lt_old_postinstall_cmds
23448 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23450 # Create an old-style archive from a shared archive.
23451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23453 # Create a temporary old-style archive to link instead of a shared archive.
23454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23456 # Commands used to build and install a shared archive.
23457 archive_cmds=$lt_archive_cmds_F77
23458 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23459 postinstall_cmds=$lt_postinstall_cmds
23460 postuninstall_cmds=$lt_postuninstall_cmds
23462 # Commands used to build a loadable module (assumed same as above if empty)
23463 module_cmds=$lt_module_cmds_F77
23464 module_expsym_cmds=$lt_module_expsym_cmds_F77
23466 # Commands to strip libraries.
23467 old_striplib=$lt_old_striplib
23468 striplib=$lt_striplib
23470 # Dependencies to place before the objects being linked to create a
23471 # shared library.
23472 predep_objects=$lt_predep_objects_F77
23474 # Dependencies to place after the objects being linked to create a
23475 # shared library.
23476 postdep_objects=$lt_postdep_objects_F77
23478 # Dependencies to place before the objects being linked to create a
23479 # shared library.
23480 predeps=$lt_predeps_F77
23482 # Dependencies to place after the objects being linked to create a
23483 # shared library.
23484 postdeps=$lt_postdeps_F77
23486 # The library search path used internally by the compiler when linking
23487 # a shared library.
23488 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23490 # Method to check whether dependent libraries are shared objects.
23491 deplibs_check_method=$lt_deplibs_check_method
23493 # Command to use when deplibs_check_method == file_magic.
23494 file_magic_cmd=$lt_file_magic_cmd
23496 # Flag that allows shared libraries with undefined symbols to be built.
23497 allow_undefined_flag=$lt_allow_undefined_flag_F77
23499 # Flag that forces no undefined symbols.
23500 no_undefined_flag=$lt_no_undefined_flag_F77
23502 # Commands used to finish a libtool library installation in a directory.
23503 finish_cmds=$lt_finish_cmds
23505 # Same as above, but a single script fragment to be evaled but not shown.
23506 finish_eval=$lt_finish_eval
23508 # Take the output of nm and produce a listing of raw symbols and C names.
23509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23511 # Transform the output of nm in a proper C declaration
23512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23514 # Transform the output of nm in a C name address pair
23515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23517 # This is the shared library runtime path variable.
23518 runpath_var=$runpath_var
23520 # This is the shared library path variable.
23521 shlibpath_var=$shlibpath_var
23523 # Is shlibpath searched before the hard-coded library search path?
23524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23526 # How to hardcode a shared library path into an executable.
23527 hardcode_action=$hardcode_action_F77
23529 # Whether we should hardcode library paths into libraries.
23530 hardcode_into_libs=$hardcode_into_libs
23532 # Flag to hardcode \$libdir into a binary during linking.
23533 # This must work even if \$libdir does not exist.
23534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23536 # If ld is used when linking, flag to hardcode \$libdir into
23537 # a binary during linking. This must work even if \$libdir does
23538 # not exist.
23539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23541 # Whether we need a single -rpath flag with a separated argument.
23542 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23545 # resulting binary.
23546 hardcode_direct=$hardcode_direct_F77
23548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23549 # resulting binary.
23550 hardcode_minus_L=$hardcode_minus_L_F77
23552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23553 # the resulting binary.
23554 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23556 # Set to yes if building a shared library automatically hardcodes DIR into the library
23557 # and all subsequent libraries and executables linked against it.
23558 hardcode_automatic=$hardcode_automatic_F77
23560 # Variables whose values should be saved in libtool wrapper scripts and
23561 # restored at relink time.
23562 variables_saved_for_relink="$variables_saved_for_relink"
23564 # Whether libtool must link a program against all its dependency libraries.
23565 link_all_deplibs=$link_all_deplibs_F77
23567 # Compile-time system search path for libraries
23568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23570 # Run-time system search path for libraries
23571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23573 # Fix the shell variable \$srcfile for the compiler.
23574 fix_srcfile_path="$fix_srcfile_path_F77"
23576 # Set to yes if exported symbols are required.
23577 always_export_symbols=$always_export_symbols_F77
23579 # The commands to list exported symbols.
23580 export_symbols_cmds=$lt_export_symbols_cmds_F77
23582 # The commands to extract the exported symbol list from a shared archive.
23583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23585 # Symbols that should not be listed in the preloaded symbols.
23586 exclude_expsyms=$lt_exclude_expsyms_F77
23588 # Symbols that must always be exported.
23589 include_expsyms=$lt_include_expsyms_F77
23591 # ### END LIBTOOL TAG CONFIG: $tagname
23593 __EOF__
23596 else
23597 # If there is no Makefile yet, we rely on a make rule to execute
23598 # `config.status --recheck' to rerun these tests and create the
23599 # libtool script then.
23600 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23601 if test -f "$ltmain_in"; then
23602 test -f Makefile && make "$ltmain"
23607 ac_ext=c
23608 ac_cpp='$CPP $CPPFLAGS'
23609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23613 CC="$lt_save_CC"
23615 else
23616 tagname=""
23620 GCJ)
23621 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23622 ac_ext=c
23623 ac_cpp='$CPP $CPPFLAGS'
23624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23629 # Source file extension for Java test sources.
23630 ac_ext=java
23632 # Object file extension for compiled Java test sources.
23633 objext=o
23634 objext_GCJ=$objext
23636 # Code to be used in simple compile tests
23637 lt_simple_compile_test_code="class foo {}\n"
23639 # Code to be used in simple link tests
23640 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23644 # If no C compiler was specified, use CC.
23645 LTCC=${LTCC-"$CC"}
23647 # If no C compiler flags were specified, use CFLAGS.
23648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23650 # Allow CC to be a program name with arguments.
23651 compiler=$CC
23654 # save warnings/boilerplate of simple test code
23655 ac_outfile=conftest.$ac_objext
23656 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23658 _lt_compiler_boilerplate=`cat conftest.err`
23659 $rm conftest*
23661 ac_outfile=conftest.$ac_objext
23662 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23664 _lt_linker_boilerplate=`cat conftest.err`
23665 $rm conftest*
23668 # Allow CC to be a program name with arguments.
23669 lt_save_CC="$CC"
23670 CC=${GCJ-"gcj"}
23671 compiler=$CC
23672 compiler_GCJ=$CC
23673 for cc_temp in $compiler""; do
23674 case $cc_temp in
23675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23677 \-*) ;;
23678 *) break;;
23679 esac
23680 done
23681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23684 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23685 archive_cmds_need_lc_GCJ=no
23687 old_archive_cmds_GCJ=$old_archive_cmds
23690 lt_prog_compiler_no_builtin_flag_GCJ=
23692 if test "$GCC" = yes; then
23693 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23696 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23697 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23698 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23700 else
23701 lt_cv_prog_compiler_rtti_exceptions=no
23702 ac_outfile=conftest.$ac_objext
23703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23704 lt_compiler_flag="-fno-rtti -fno-exceptions"
23705 # Insert the option either (1) after the last *FLAGS variable, or
23706 # (2) before a word containing "conftest.", or (3) at the end.
23707 # Note that $ac_compile itself does not contain backslashes and begins
23708 # with a dollar sign (not a hyphen), so the echo should work correctly.
23709 # The option is referenced via a variable to avoid confusing sed.
23710 lt_compile=`echo "$ac_compile" | $SED \
23711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23713 -e 's:$: $lt_compiler_flag:'`
23714 (eval echo "\"\$as_me:23714: $lt_compile\"" >&5)
23715 (eval "$lt_compile" 2>conftest.err)
23716 ac_status=$?
23717 cat conftest.err >&5
23718 echo "$as_me:23718: \$? = $ac_status" >&5
23719 if (exit $ac_status) && test -s "$ac_outfile"; then
23720 # The compiler can only warn and ignore the option if not recognized
23721 # So say no if there are warnings other than the usual output.
23722 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23725 lt_cv_prog_compiler_rtti_exceptions=yes
23728 $rm conftest*
23731 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23732 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23734 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23735 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23736 else
23742 lt_prog_compiler_wl_GCJ=
23743 lt_prog_compiler_pic_GCJ=
23744 lt_prog_compiler_static_GCJ=
23746 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23747 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23749 if test "$GCC" = yes; then
23750 lt_prog_compiler_wl_GCJ='-Wl,'
23751 lt_prog_compiler_static_GCJ='-static'
23753 case $host_os in
23754 aix*)
23755 # All AIX code is PIC.
23756 if test "$host_cpu" = ia64; then
23757 # AIX 5 now supports IA64 processor
23758 lt_prog_compiler_static_GCJ='-Bstatic'
23762 amigaos*)
23763 # FIXME: we need at least 68020 code to build shared libraries, but
23764 # adding the `-m68020' flag to GCC prevents building anything better,
23765 # like `-m68040'.
23766 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23769 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23770 # PIC is the default for these OSes.
23773 mingw* | pw32* | os2*)
23774 # This hack is so that the source file can tell whether it is being
23775 # built for inclusion in a dll (and should export symbols for example).
23776 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23779 darwin* | rhapsody*)
23780 # PIC is the default on this platform
23781 # Common symbols not allowed in MH_DYLIB files
23782 lt_prog_compiler_pic_GCJ='-fno-common'
23785 interix3*)
23786 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23787 # Instead, we relocate shared libraries at runtime.
23790 msdosdjgpp*)
23791 # Just because we use GCC doesn't mean we suddenly get shared libraries
23792 # on systems that don't support them.
23793 lt_prog_compiler_can_build_shared_GCJ=no
23794 enable_shared=no
23797 sysv4*MP*)
23798 if test -d /usr/nec; then
23799 lt_prog_compiler_pic_GCJ=-Kconform_pic
23803 hpux*)
23804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23805 # not for PA HP-UX.
23806 case $host_cpu in
23807 hppa*64*|ia64*)
23808 # +Z the default
23811 lt_prog_compiler_pic_GCJ='-fPIC'
23813 esac
23817 lt_prog_compiler_pic_GCJ='-fPIC'
23819 esac
23820 else
23821 # PORTME Check for flag to pass linker flags through the system compiler.
23822 case $host_os in
23823 aix*)
23824 lt_prog_compiler_wl_GCJ='-Wl,'
23825 if test "$host_cpu" = ia64; then
23826 # AIX 5 now supports IA64 processor
23827 lt_prog_compiler_static_GCJ='-Bstatic'
23828 else
23829 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23832 darwin*)
23833 # PIC is the default on this platform
23834 # Common symbols not allowed in MH_DYLIB files
23835 case $cc_basename in
23836 xlc*)
23837 lt_prog_compiler_pic_GCJ='-qnocommon'
23838 lt_prog_compiler_wl_GCJ='-Wl,'
23840 esac
23843 mingw* | pw32* | os2*)
23844 # This hack is so that the source file can tell whether it is being
23845 # built for inclusion in a dll (and should export symbols for example).
23846 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23849 hpux9* | hpux10* | hpux11*)
23850 lt_prog_compiler_wl_GCJ='-Wl,'
23851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23852 # not for PA HP-UX.
23853 case $host_cpu in
23854 hppa*64*|ia64*)
23855 # +Z the default
23858 lt_prog_compiler_pic_GCJ='+Z'
23860 esac
23861 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23862 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23865 irix5* | irix6* | nonstopux*)
23866 lt_prog_compiler_wl_GCJ='-Wl,'
23867 # PIC (with -KPIC) is the default.
23868 lt_prog_compiler_static_GCJ='-non_shared'
23871 newsos6)
23872 lt_prog_compiler_pic_GCJ='-KPIC'
23873 lt_prog_compiler_static_GCJ='-Bstatic'
23876 linux*)
23877 case $cc_basename in
23878 icc* | ecc*)
23879 lt_prog_compiler_wl_GCJ='-Wl,'
23880 lt_prog_compiler_pic_GCJ='-KPIC'
23881 lt_prog_compiler_static_GCJ='-static'
23883 pgcc* | pgf77* | pgf90* | pgf95*)
23884 # Portland Group compilers (*not* the Pentium gcc compiler,
23885 # which looks to be a dead project)
23886 lt_prog_compiler_wl_GCJ='-Wl,'
23887 lt_prog_compiler_pic_GCJ='-fpic'
23888 lt_prog_compiler_static_GCJ='-Bstatic'
23890 ccc*)
23891 lt_prog_compiler_wl_GCJ='-Wl,'
23892 # All Alpha code is PIC.
23893 lt_prog_compiler_static_GCJ='-non_shared'
23895 esac
23898 osf3* | osf4* | osf5*)
23899 lt_prog_compiler_wl_GCJ='-Wl,'
23900 # All OSF/1 code is PIC.
23901 lt_prog_compiler_static_GCJ='-non_shared'
23904 solaris*)
23905 lt_prog_compiler_pic_GCJ='-KPIC'
23906 lt_prog_compiler_static_GCJ='-Bstatic'
23907 case $cc_basename in
23908 f77* | f90* | f95*)
23909 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23911 lt_prog_compiler_wl_GCJ='-Wl,';;
23912 esac
23915 sunos4*)
23916 lt_prog_compiler_wl_GCJ='-Qoption ld '
23917 lt_prog_compiler_pic_GCJ='-PIC'
23918 lt_prog_compiler_static_GCJ='-Bstatic'
23921 sysv4 | sysv4.2uw2* | sysv4.3*)
23922 lt_prog_compiler_wl_GCJ='-Wl,'
23923 lt_prog_compiler_pic_GCJ='-KPIC'
23924 lt_prog_compiler_static_GCJ='-Bstatic'
23927 sysv4*MP*)
23928 if test -d /usr/nec ;then
23929 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23930 lt_prog_compiler_static_GCJ='-Bstatic'
23934 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23935 lt_prog_compiler_wl_GCJ='-Wl,'
23936 lt_prog_compiler_pic_GCJ='-KPIC'
23937 lt_prog_compiler_static_GCJ='-Bstatic'
23940 unicos*)
23941 lt_prog_compiler_wl_GCJ='-Wl,'
23942 lt_prog_compiler_can_build_shared_GCJ=no
23945 uts4*)
23946 lt_prog_compiler_pic_GCJ='-pic'
23947 lt_prog_compiler_static_GCJ='-Bstatic'
23951 lt_prog_compiler_can_build_shared_GCJ=no
23953 esac
23956 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23957 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23960 # Check to make sure the PIC flag actually works.
23962 if test -n "$lt_prog_compiler_pic_GCJ"; then
23964 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23965 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23966 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23968 else
23969 lt_prog_compiler_pic_works_GCJ=no
23970 ac_outfile=conftest.$ac_objext
23971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23972 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23973 # Insert the option either (1) after the last *FLAGS variable, or
23974 # (2) before a word containing "conftest.", or (3) at the end.
23975 # Note that $ac_compile itself does not contain backslashes and begins
23976 # with a dollar sign (not a hyphen), so the echo should work correctly.
23977 # The option is referenced via a variable to avoid confusing sed.
23978 lt_compile=`echo "$ac_compile" | $SED \
23979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23981 -e 's:$: $lt_compiler_flag:'`
23982 (eval echo "\"\$as_me:23982: $lt_compile\"" >&5)
23983 (eval "$lt_compile" 2>conftest.err)
23984 ac_status=$?
23985 cat conftest.err >&5
23986 echo "$as_me:23986: \$? = $ac_status" >&5
23987 if (exit $ac_status) && test -s "$ac_outfile"; then
23988 # The compiler can only warn and ignore the option if not recognized
23989 # So say no if there are warnings other than the usual output.
23990 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23993 lt_prog_compiler_pic_works_GCJ=yes
23996 $rm conftest*
23999 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24000 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24002 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24003 case $lt_prog_compiler_pic_GCJ in
24004 "" | " "*) ;;
24005 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24006 esac
24007 else
24008 lt_prog_compiler_pic_GCJ=
24009 lt_prog_compiler_can_build_shared_GCJ=no
24013 case $host_os in
24014 # For platforms which do not support PIC, -DPIC is meaningless:
24015 *djgpp*)
24016 lt_prog_compiler_pic_GCJ=
24019 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24021 esac
24024 # Check to make sure the static flag actually works.
24026 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24027 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24028 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24029 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24031 else
24032 lt_prog_compiler_static_works_GCJ=no
24033 save_LDFLAGS="$LDFLAGS"
24034 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24035 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24037 # The linker can only warn and ignore the option if not recognized
24038 # So say no if there are warnings
24039 if test -s conftest.err; then
24040 # Append any errors to the config.log.
24041 cat conftest.err 1>&5
24042 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24044 if diff conftest.exp conftest.er2 >/dev/null; then
24045 lt_prog_compiler_static_works_GCJ=yes
24047 else
24048 lt_prog_compiler_static_works_GCJ=yes
24051 $rm conftest*
24052 LDFLAGS="$save_LDFLAGS"
24055 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24056 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24058 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24060 else
24061 lt_prog_compiler_static_GCJ=
24065 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24066 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24067 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24069 else
24070 lt_cv_prog_compiler_c_o_GCJ=no
24071 $rm -r conftest 2>/dev/null
24072 mkdir conftest
24073 cd conftest
24074 mkdir out
24075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24077 lt_compiler_flag="-o out/conftest2.$ac_objext"
24078 # Insert the option either (1) after the last *FLAGS variable, or
24079 # (2) before a word containing "conftest.", or (3) at the end.
24080 # Note that $ac_compile itself does not contain backslashes and begins
24081 # with a dollar sign (not a hyphen), so the echo should work correctly.
24082 lt_compile=`echo "$ac_compile" | $SED \
24083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24085 -e 's:$: $lt_compiler_flag:'`
24086 (eval echo "\"\$as_me:24086: $lt_compile\"" >&5)
24087 (eval "$lt_compile" 2>out/conftest.err)
24088 ac_status=$?
24089 cat out/conftest.err >&5
24090 echo "$as_me:24090: \$? = $ac_status" >&5
24091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24092 then
24093 # The compiler can only warn and ignore the option if not recognized
24094 # So say no if there are warnings
24095 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24098 lt_cv_prog_compiler_c_o_GCJ=yes
24101 chmod u+w . 2>&5
24102 $rm conftest*
24103 # SGI C++ compiler will create directory out/ii_files/ for
24104 # template instantiation
24105 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24106 $rm out/* && rmdir out
24107 cd ..
24108 rmdir conftest
24109 $rm conftest*
24112 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24113 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24116 hard_links="nottested"
24117 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24118 # do not overwrite the value of need_locks provided by the user
24119 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24120 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24121 hard_links=yes
24122 $rm conftest*
24123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24124 touch conftest.a
24125 ln conftest.a conftest.b 2>&5 || hard_links=no
24126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24127 { echo "$as_me:$LINENO: result: $hard_links" >&5
24128 echo "${ECHO_T}$hard_links" >&6; }
24129 if test "$hard_links" = no; then
24130 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24131 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24132 need_locks=warn
24134 else
24135 need_locks=no
24138 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24141 runpath_var=
24142 allow_undefined_flag_GCJ=
24143 enable_shared_with_static_runtimes_GCJ=no
24144 archive_cmds_GCJ=
24145 archive_expsym_cmds_GCJ=
24146 old_archive_From_new_cmds_GCJ=
24147 old_archive_from_expsyms_cmds_GCJ=
24148 export_dynamic_flag_spec_GCJ=
24149 whole_archive_flag_spec_GCJ=
24150 thread_safe_flag_spec_GCJ=
24151 hardcode_libdir_flag_spec_GCJ=
24152 hardcode_libdir_flag_spec_ld_GCJ=
24153 hardcode_libdir_separator_GCJ=
24154 hardcode_direct_GCJ=no
24155 hardcode_minus_L_GCJ=no
24156 hardcode_shlibpath_var_GCJ=unsupported
24157 link_all_deplibs_GCJ=unknown
24158 hardcode_automatic_GCJ=no
24159 module_cmds_GCJ=
24160 module_expsym_cmds_GCJ=
24161 always_export_symbols_GCJ=no
24162 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24163 # include_expsyms should be a list of space-separated symbols to be *always*
24164 # included in the symbol list
24165 include_expsyms_GCJ=
24166 # exclude_expsyms can be an extended regexp of symbols to exclude
24167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24169 # as well as any symbol that contains `d'.
24170 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24172 # platforms (ab)use it in PIC code, but their linkers get confused if
24173 # the symbol is explicitly referenced. Since portable code cannot
24174 # rely on this symbol name, it's probably fine to never include it in
24175 # preloaded symbol tables.
24176 extract_expsyms_cmds=
24177 # Just being paranoid about ensuring that cc_basename is set.
24178 for cc_temp in $compiler""; do
24179 case $cc_temp in
24180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24182 \-*) ;;
24183 *) break;;
24184 esac
24185 done
24186 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24188 case $host_os in
24189 cygwin* | mingw* | pw32*)
24190 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24191 # When not using gcc, we currently assume that we are using
24192 # Microsoft Visual C++.
24193 if test "$GCC" != yes; then
24194 with_gnu_ld=no
24197 interix*)
24198 # we just hope/assume this is gcc and not c89 (= MSVC++)
24199 with_gnu_ld=yes
24201 openbsd*)
24202 with_gnu_ld=no
24204 esac
24206 ld_shlibs_GCJ=yes
24207 if test "$with_gnu_ld" = yes; then
24208 # If archive_cmds runs LD, not CC, wlarc should be empty
24209 wlarc='${wl}'
24211 # Set some defaults for GNU ld with shared library support. These
24212 # are reset later if shared libraries are not supported. Putting them
24213 # here allows them to be overridden if necessary.
24214 runpath_var=LD_RUN_PATH
24215 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24216 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24217 # ancient GNU ld didn't support --whole-archive et. al.
24218 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24219 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24220 else
24221 whole_archive_flag_spec_GCJ=
24223 supports_anon_versioning=no
24224 case `$LD -v 2>/dev/null` in
24225 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24226 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24227 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24228 *\ 2.11.*) ;; # other 2.11 versions
24229 *) supports_anon_versioning=yes ;;
24230 esac
24232 # See if GNU ld supports shared libraries.
24233 case $host_os in
24234 aix3* | aix4* | aix5*)
24235 # On AIX/PPC, the GNU linker is very broken
24236 if test "$host_cpu" != ia64; then
24237 ld_shlibs_GCJ=no
24238 cat <<EOF 1>&2
24240 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24241 *** to be unable to reliably create shared libraries on AIX.
24242 *** Therefore, libtool is disabling shared libraries support. If you
24243 *** really care for shared libraries, you may want to modify your PATH
24244 *** so that a non-GNU linker is found, and then restart.
24250 amigaos*)
24251 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)'
24252 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24253 hardcode_minus_L_GCJ=yes
24255 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24256 # that the semantics of dynamic libraries on AmigaOS, at least up
24257 # to version 4, is to share data among multiple programs linked
24258 # with the same dynamic library. Since this doesn't match the
24259 # behavior of shared libraries on other platforms, we can't use
24260 # them.
24261 ld_shlibs_GCJ=no
24264 beos*)
24265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24266 allow_undefined_flag_GCJ=unsupported
24267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24268 # support --undefined. This deserves some investigation. FIXME
24269 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24270 else
24271 ld_shlibs_GCJ=no
24275 cygwin* | mingw* | pw32*)
24276 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24277 # as there is no search path for DLLs.
24278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24279 allow_undefined_flag_GCJ=unsupported
24280 always_export_symbols_GCJ=no
24281 enable_shared_with_static_runtimes_GCJ=yes
24282 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24284 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24285 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24286 # If the export-symbols file already is a .def file (1st line
24287 # is EXPORTS), use it as is; otherwise, prepend...
24288 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24289 cp $export_symbols $output_objdir/$soname.def;
24290 else
24291 echo EXPORTS > $output_objdir/$soname.def;
24292 cat $export_symbols >> $output_objdir/$soname.def;
24294 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24295 else
24296 ld_shlibs_GCJ=no
24300 interix3*)
24301 hardcode_direct_GCJ=no
24302 hardcode_shlibpath_var_GCJ=no
24303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24304 export_dynamic_flag_spec_GCJ='${wl}-E'
24305 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24306 # Instead, shared libraries are loaded at an image base (0x10000000 by
24307 # default) and relocated if they conflict, which is a slow very memory
24308 # consuming and fragmenting process. To avoid this, we pick a random,
24309 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24310 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24311 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'
24312 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'
24315 linux*)
24316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24317 tmp_addflag=
24318 case $cc_basename,$host_cpu in
24319 pgcc*) # Portland Group C compiler
24320 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'
24321 tmp_addflag=' $pic_flag'
24323 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24324 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'
24325 tmp_addflag=' $pic_flag -Mnomain' ;;
24326 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24327 tmp_addflag=' -i_dynamic' ;;
24328 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24329 tmp_addflag=' -i_dynamic -nofor_main' ;;
24330 ifc* | ifort*) # Intel Fortran compiler
24331 tmp_addflag=' -nofor_main' ;;
24332 esac
24333 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24335 if test $supports_anon_versioning = yes; then
24336 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24338 $echo "local: *; };" >> $output_objdir/$libname.ver~
24339 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24341 else
24342 ld_shlibs_GCJ=no
24346 netbsd*)
24347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24348 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24349 wlarc=
24350 else
24351 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24352 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24356 solaris*)
24357 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24358 ld_shlibs_GCJ=no
24359 cat <<EOF 1>&2
24361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24362 *** create shared libraries on Solaris systems. Therefore, libtool
24363 *** is disabling shared libraries support. We urge you to upgrade GNU
24364 *** binutils to release 2.9.1 or newer. Another option is to modify
24365 *** your PATH or compiler configuration so that the native linker is
24366 *** used, and then restart.
24369 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24371 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24372 else
24373 ld_shlibs_GCJ=no
24377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24378 case `$LD -v 2>&1` in
24379 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24380 ld_shlibs_GCJ=no
24381 cat <<_LT_EOF 1>&2
24383 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24384 *** reliably create shared libraries on SCO systems. Therefore, libtool
24385 *** is disabling shared libraries support. We urge you to upgrade GNU
24386 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24387 *** your PATH or compiler configuration so that the native linker is
24388 *** used, and then restart.
24390 _LT_EOF
24393 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24394 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24395 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24396 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24397 else
24398 ld_shlibs_GCJ=no
24401 esac
24404 sunos4*)
24405 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24406 wlarc=
24407 hardcode_direct_GCJ=yes
24408 hardcode_shlibpath_var_GCJ=no
24412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24413 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24414 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24415 else
24416 ld_shlibs_GCJ=no
24419 esac
24421 if test "$ld_shlibs_GCJ" = no; then
24422 runpath_var=
24423 hardcode_libdir_flag_spec_GCJ=
24424 export_dynamic_flag_spec_GCJ=
24425 whole_archive_flag_spec_GCJ=
24427 else
24428 # PORTME fill in a description of your system's linker (not GNU ld)
24429 case $host_os in
24430 aix3*)
24431 allow_undefined_flag_GCJ=unsupported
24432 always_export_symbols_GCJ=yes
24433 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'
24434 # Note: this linker hardcodes the directories in LIBPATH if there
24435 # are no directories specified by -L.
24436 hardcode_minus_L_GCJ=yes
24437 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24438 # Neither direct hardcoding nor static linking is supported with a
24439 # broken collect2.
24440 hardcode_direct_GCJ=unsupported
24444 aix4* | aix5*)
24445 if test "$host_cpu" = ia64; then
24446 # On IA64, the linker does run time linking by default, so we don't
24447 # have to do anything special.
24448 aix_use_runtimelinking=no
24449 exp_sym_flag='-Bexport'
24450 no_entry_flag=""
24451 else
24452 # If we're using GNU nm, then we don't want the "-C" option.
24453 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24454 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24455 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'
24456 else
24457 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'
24459 aix_use_runtimelinking=no
24461 # Test if we are trying to use run time linking or normal
24462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24463 # need to do runtime linking.
24464 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24465 for ld_flag in $LDFLAGS; do
24466 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24467 aix_use_runtimelinking=yes
24468 break
24470 done
24472 esac
24474 exp_sym_flag='-bexport'
24475 no_entry_flag='-bnoentry'
24478 # When large executables or shared objects are built, AIX ld can
24479 # have problems creating the table of contents. If linking a library
24480 # or program results in "error TOC overflow" add -mminimal-toc to
24481 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24482 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24484 archive_cmds_GCJ=''
24485 hardcode_direct_GCJ=yes
24486 hardcode_libdir_separator_GCJ=':'
24487 link_all_deplibs_GCJ=yes
24489 if test "$GCC" = yes; then
24490 case $host_os in aix4.[012]|aix4.[012].*)
24491 # We only want to do this on AIX 4.2 and lower, the check
24492 # below for broken collect2 doesn't work under 4.3+
24493 collect2name=`${CC} -print-prog-name=collect2`
24494 if test -f "$collect2name" && \
24495 strings "$collect2name" | grep resolve_lib_name >/dev/null
24496 then
24497 # We have reworked collect2
24498 hardcode_direct_GCJ=yes
24499 else
24500 # We have old collect2
24501 hardcode_direct_GCJ=unsupported
24502 # It fails to find uninstalled libraries when the uninstalled
24503 # path is not listed in the libpath. Setting hardcode_minus_L
24504 # to unsupported forces relinking
24505 hardcode_minus_L_GCJ=yes
24506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24507 hardcode_libdir_separator_GCJ=
24510 esac
24511 shared_flag='-shared'
24512 if test "$aix_use_runtimelinking" = yes; then
24513 shared_flag="$shared_flag "'${wl}-G'
24515 else
24516 # not using gcc
24517 if test "$host_cpu" = ia64; then
24518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24519 # chokes on -Wl,-G. The following line is correct:
24520 shared_flag='-G'
24521 else
24522 if test "$aix_use_runtimelinking" = yes; then
24523 shared_flag='${wl}-G'
24524 else
24525 shared_flag='${wl}-bM:SRE'
24530 # It seems that -bexpall does not export symbols beginning with
24531 # underscore (_), so it is better to generate a list of symbols to export.
24532 always_export_symbols_GCJ=yes
24533 if test "$aix_use_runtimelinking" = yes; then
24534 # Warning - without using the other runtime loading flags (-brtl),
24535 # -berok will link without error, but may produce a broken library.
24536 allow_undefined_flag_GCJ='-berok'
24537 # Determine the default libpath from the value encoded in an empty executable.
24538 cat >conftest.$ac_ext <<_ACEOF
24539 /* confdefs.h. */
24540 _ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h. */
24546 main ()
24550 return 0;
24552 _ACEOF
24553 rm -f conftest.$ac_objext conftest$ac_exeext
24554 if { (ac_try="$ac_link"
24555 case "(($ac_try" in
24556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557 *) ac_try_echo=$ac_try;;
24558 esac
24559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560 (eval "$ac_link") 2>conftest.er1
24561 ac_status=$?
24562 grep -v '^ *+' conftest.er1 >conftest.err
24563 rm -f conftest.er1
24564 cat conftest.err >&5
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); } &&
24567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24568 { (case "(($ac_try" in
24569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24570 *) ac_try_echo=$ac_try;;
24571 esac
24572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24573 (eval "$ac_try") 2>&5
24574 ac_status=$?
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; } &&
24577 { ac_try='test -s conftest$ac_exeext'
24578 { (case "(($ac_try" in
24579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580 *) ac_try_echo=$ac_try;;
24581 esac
24582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583 (eval "$ac_try") 2>&5
24584 ac_status=$?
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; }; then
24588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24590 # Check for a 64-bit object if we didn't find anything.
24591 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; }
24592 }'`; fi
24593 else
24594 echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24600 rm -f core conftest.err conftest.$ac_objext \
24601 conftest$ac_exeext conftest.$ac_ext
24602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24604 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24605 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"
24606 else
24607 if test "$host_cpu" = ia64; then
24608 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24609 allow_undefined_flag_GCJ="-z nodefs"
24610 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"
24611 else
24612 # Determine the default libpath from the value encoded in an empty executable.
24613 cat >conftest.$ac_ext <<_ACEOF
24614 /* confdefs.h. */
24615 _ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h. */
24621 main ()
24625 return 0;
24627 _ACEOF
24628 rm -f conftest.$ac_objext conftest$ac_exeext
24629 if { (ac_try="$ac_link"
24630 case "(($ac_try" in
24631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24633 esac
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_link") 2>conftest.er1
24636 ac_status=$?
24637 grep -v '^ *+' conftest.er1 >conftest.err
24638 rm -f conftest.er1
24639 cat conftest.err >&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } &&
24642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24643 { (case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24646 esac
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_try") 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; } &&
24652 { ac_try='test -s conftest$ac_exeext'
24653 { (case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656 esac
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_try") 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
24663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24665 # Check for a 64-bit object if we didn't find anything.
24666 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; }
24667 }'`; fi
24668 else
24669 echo "$as_me: failed program was:" >&5
24670 sed 's/^/| /' conftest.$ac_ext >&5
24675 rm -f core conftest.err conftest.$ac_objext \
24676 conftest$ac_exeext conftest.$ac_ext
24677 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24679 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24680 # Warning - without using the other run time loading flags,
24681 # -berok will link without error, but may produce a broken library.
24682 no_undefined_flag_GCJ=' ${wl}-bernotok'
24683 allow_undefined_flag_GCJ=' ${wl}-berok'
24684 # Exported symbols can be pulled into shared objects from archives
24685 whole_archive_flag_spec_GCJ='$convenience'
24686 archive_cmds_need_lc_GCJ=yes
24687 # This is similar to how AIX traditionally builds its shared libraries.
24688 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'
24693 amigaos*)
24694 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)'
24695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24696 hardcode_minus_L_GCJ=yes
24697 # see comment about different semantics on the GNU ld section
24698 ld_shlibs_GCJ=no
24701 bsdi[45]*)
24702 export_dynamic_flag_spec_GCJ=-rdynamic
24705 cygwin* | mingw* | pw32*)
24706 # When not using gcc, we currently assume that we are using
24707 # Microsoft Visual C++.
24708 # hardcode_libdir_flag_spec is actually meaningless, as there is
24709 # no search path for DLLs.
24710 hardcode_libdir_flag_spec_GCJ=' '
24711 allow_undefined_flag_GCJ=unsupported
24712 # Tell ltmain to make .lib files, not .a files.
24713 libext=lib
24714 # Tell ltmain to make .dll files, not .so files.
24715 shrext_cmds=".dll"
24716 # FIXME: Setting linknames here is a bad hack.
24717 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24718 # The linker will automatically build a .lib file if we build a DLL.
24719 old_archive_From_new_cmds_GCJ='true'
24720 # FIXME: Should let the user specify the lib program.
24721 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24722 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24723 enable_shared_with_static_runtimes_GCJ=yes
24726 darwin* | rhapsody*)
24727 case $host_os in
24728 rhapsody* | darwin1.[012])
24729 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24731 *) # Darwin 1.3 on
24732 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24733 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24734 else
24735 case ${MACOSX_DEPLOYMENT_TARGET} in
24736 10.[012])
24737 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24739 10.*)
24740 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24742 esac
24745 esac
24746 archive_cmds_need_lc_GCJ=no
24747 hardcode_direct_GCJ=no
24748 hardcode_automatic_GCJ=yes
24749 hardcode_shlibpath_var_GCJ=unsupported
24750 whole_archive_flag_spec_GCJ=''
24751 link_all_deplibs_GCJ=yes
24752 if test "$GCC" = yes ; then
24753 output_verbose_link_cmd='echo'
24754 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24755 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24756 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24757 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}'
24758 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}'
24759 else
24760 case $cc_basename in
24761 xlc*)
24762 output_verbose_link_cmd='echo'
24763 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24764 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24765 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24766 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}'
24767 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}'
24770 ld_shlibs_GCJ=no
24772 esac
24776 dgux*)
24777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24779 hardcode_shlibpath_var_GCJ=no
24782 freebsd1*)
24783 ld_shlibs_GCJ=no
24786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24787 # support. Future versions do this automatically, but an explicit c++rt0.o
24788 # does not break anything, and helps significantly (at the cost of a little
24789 # extra space).
24790 freebsd2.2*)
24791 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24792 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24793 hardcode_direct_GCJ=yes
24794 hardcode_shlibpath_var_GCJ=no
24797 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24798 freebsd2*)
24799 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24800 hardcode_direct_GCJ=yes
24801 hardcode_minus_L_GCJ=yes
24802 hardcode_shlibpath_var_GCJ=no
24805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24806 freebsd* | kfreebsd*-gnu | dragonfly*)
24807 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24809 hardcode_direct_GCJ=yes
24810 hardcode_shlibpath_var_GCJ=no
24813 hpux9*)
24814 if test "$GCC" = yes; then
24815 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'
24816 else
24817 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'
24819 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24820 hardcode_libdir_separator_GCJ=:
24821 hardcode_direct_GCJ=yes
24823 # hardcode_minus_L: Not really in the search PATH,
24824 # but as the default location of the library.
24825 hardcode_minus_L_GCJ=yes
24826 export_dynamic_flag_spec_GCJ='${wl}-E'
24829 hpux10*)
24830 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24831 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24832 else
24833 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24835 if test "$with_gnu_ld" = no; then
24836 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24837 hardcode_libdir_separator_GCJ=:
24839 hardcode_direct_GCJ=yes
24840 export_dynamic_flag_spec_GCJ='${wl}-E'
24842 # hardcode_minus_L: Not really in the search PATH,
24843 # but as the default location of the library.
24844 hardcode_minus_L_GCJ=yes
24848 hpux11*)
24849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24850 case $host_cpu in
24851 hppa*64*)
24852 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24854 ia64*)
24855 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24858 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24860 esac
24861 else
24862 case $host_cpu in
24863 hppa*64*)
24864 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24866 ia64*)
24867 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24870 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24872 esac
24874 if test "$with_gnu_ld" = no; then
24875 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24876 hardcode_libdir_separator_GCJ=:
24878 case $host_cpu in
24879 hppa*64*|ia64*)
24880 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24881 hardcode_direct_GCJ=no
24882 hardcode_shlibpath_var_GCJ=no
24885 hardcode_direct_GCJ=yes
24886 export_dynamic_flag_spec_GCJ='${wl}-E'
24888 # hardcode_minus_L: Not really in the search PATH,
24889 # but as the default location of the library.
24890 hardcode_minus_L_GCJ=yes
24892 esac
24896 irix5* | irix6* | nonstopux*)
24897 if test "$GCC" = yes; then
24898 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'
24899 else
24900 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'
24901 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24903 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24904 hardcode_libdir_separator_GCJ=:
24905 link_all_deplibs_GCJ=yes
24908 netbsd*)
24909 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24911 else
24912 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24914 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24915 hardcode_direct_GCJ=yes
24916 hardcode_shlibpath_var_GCJ=no
24919 newsos6)
24920 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24921 hardcode_direct_GCJ=yes
24922 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24923 hardcode_libdir_separator_GCJ=:
24924 hardcode_shlibpath_var_GCJ=no
24927 openbsd*)
24928 hardcode_direct_GCJ=yes
24929 hardcode_shlibpath_var_GCJ=no
24930 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24931 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24932 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24934 export_dynamic_flag_spec_GCJ='${wl}-E'
24935 else
24936 case $host_os in
24937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24938 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24942 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24945 esac
24949 os2*)
24950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24951 hardcode_minus_L_GCJ=yes
24952 allow_undefined_flag_GCJ=unsupported
24953 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'
24954 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24957 osf3*)
24958 if test "$GCC" = yes; then
24959 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24960 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'
24961 else
24962 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24963 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'
24965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24966 hardcode_libdir_separator_GCJ=:
24969 osf4* | osf5*) # as osf3* with the addition of -msym flag
24970 if test "$GCC" = yes; then
24971 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24972 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'
24973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24974 else
24975 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24976 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'
24977 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~
24978 $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'
24980 # Both c and cxx compiler support -rpath directly
24981 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24983 hardcode_libdir_separator_GCJ=:
24986 solaris*)
24987 no_undefined_flag_GCJ=' -z text'
24988 if test "$GCC" = yes; then
24989 wlarc='${wl}'
24990 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24991 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24992 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24993 else
24994 wlarc=''
24995 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24996 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24997 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24999 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25000 hardcode_shlibpath_var_GCJ=no
25001 case $host_os in
25002 solaris2.[0-5] | solaris2.[0-5].*) ;;
25004 # The compiler driver will combine linker options so we
25005 # cannot just pass the convience library names through
25006 # without $wl, iff we do not link with $LD.
25007 # Luckily, gcc supports the same syntax we need for Sun Studio.
25008 # Supported since Solaris 2.6 (maybe 2.5.1?)
25009 case $wlarc in
25011 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25013 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' ;;
25014 esac ;;
25015 esac
25016 link_all_deplibs_GCJ=yes
25019 sunos4*)
25020 if test "x$host_vendor" = xsequent; then
25021 # Use $CC to link under sequent, because it throws in some extra .o
25022 # files that make .init and .fini sections work.
25023 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25024 else
25025 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25027 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25028 hardcode_direct_GCJ=yes
25029 hardcode_minus_L_GCJ=yes
25030 hardcode_shlibpath_var_GCJ=no
25033 sysv4)
25034 case $host_vendor in
25035 sni)
25036 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25037 hardcode_direct_GCJ=yes # is this really true???
25039 siemens)
25040 ## LD is ld it makes a PLAMLIB
25041 ## CC just makes a GrossModule.
25042 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25043 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25044 hardcode_direct_GCJ=no
25046 motorola)
25047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25048 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25050 esac
25051 runpath_var='LD_RUN_PATH'
25052 hardcode_shlibpath_var_GCJ=no
25055 sysv4.3*)
25056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25057 hardcode_shlibpath_var_GCJ=no
25058 export_dynamic_flag_spec_GCJ='-Bexport'
25061 sysv4*MP*)
25062 if test -d /usr/nec; then
25063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25064 hardcode_shlibpath_var_GCJ=no
25065 runpath_var=LD_RUN_PATH
25066 hardcode_runpath_var=yes
25067 ld_shlibs_GCJ=yes
25071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25072 no_undefined_flag_GCJ='${wl}-z,text'
25073 archive_cmds_need_lc_GCJ=no
25074 hardcode_shlibpath_var_GCJ=no
25075 runpath_var='LD_RUN_PATH'
25077 if test "$GCC" = yes; then
25078 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25079 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25080 else
25081 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25082 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25086 sysv5* | sco3.2v5* | sco5v6*)
25087 # Note: We can NOT use -z defs as we might desire, because we do not
25088 # link with -lc, and that would cause any symbols used from libc to
25089 # always be unresolved, which means just about no library would
25090 # ever link correctly. If we're not using GNU ld we use -z text
25091 # though, which does catch some bad symbols but isn't as heavy-handed
25092 # as -z defs.
25093 no_undefined_flag_GCJ='${wl}-z,text'
25094 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25095 archive_cmds_need_lc_GCJ=no
25096 hardcode_shlibpath_var_GCJ=no
25097 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25098 hardcode_libdir_separator_GCJ=':'
25099 link_all_deplibs_GCJ=yes
25100 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25101 runpath_var='LD_RUN_PATH'
25103 if test "$GCC" = yes; then
25104 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25105 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25106 else
25107 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25108 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25112 uts4*)
25113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25115 hardcode_shlibpath_var_GCJ=no
25119 ld_shlibs_GCJ=no
25121 esac
25124 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25125 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25126 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25129 # Do we need to explicitly link libc?
25131 case "x$archive_cmds_need_lc_GCJ" in
25132 x|xyes)
25133 # Assume -lc should be added
25134 archive_cmds_need_lc_GCJ=yes
25136 if test "$enable_shared" = yes && test "$GCC" = yes; then
25137 case $archive_cmds_GCJ in
25138 *'~'*)
25139 # FIXME: we may have to deal with multi-command sequences.
25141 '$CC '*)
25142 # Test whether the compiler implicitly links with -lc since on some
25143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25144 # to ld, don't add -lc before -lgcc.
25145 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25146 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25147 $rm conftest*
25148 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25151 (eval $ac_compile) 2>&5
25152 ac_status=$?
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } 2>conftest.err; then
25155 soname=conftest
25156 lib=conftest
25157 libobjs=conftest.$ac_objext
25158 deplibs=
25159 wl=$lt_prog_compiler_wl_GCJ
25160 pic_flag=$lt_prog_compiler_pic_GCJ
25161 compiler_flags=-v
25162 linker_flags=-v
25163 verstring=
25164 output_objdir=.
25165 libname=conftest
25166 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25167 allow_undefined_flag_GCJ=
25168 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25169 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }
25173 then
25174 archive_cmds_need_lc_GCJ=no
25175 else
25176 archive_cmds_need_lc_GCJ=yes
25178 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25179 else
25180 cat conftest.err 1>&5
25182 $rm conftest*
25183 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25184 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25186 esac
25189 esac
25191 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25192 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25193 library_names_spec=
25194 libname_spec='lib$name'
25195 soname_spec=
25196 shrext_cmds=".so"
25197 postinstall_cmds=
25198 postuninstall_cmds=
25199 finish_cmds=
25200 finish_eval=
25201 shlibpath_var=
25202 shlibpath_overrides_runpath=unknown
25203 version_type=none
25204 dynamic_linker="$host_os ld.so"
25205 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25206 if test "$GCC" = yes; then
25207 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25208 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25209 # if the path contains ";" then we assume it to be the separator
25210 # otherwise default to the standard path separator (i.e. ":") - it is
25211 # assumed that no part of a normal pathname contains ";" but that should
25212 # okay in the real world where ";" in dirpaths is itself problematic.
25213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25214 else
25215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25217 else
25218 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25220 need_lib_prefix=unknown
25221 hardcode_into_libs=no
25223 # when you set need_version to no, make sure it does not cause -set_version
25224 # flags to be left without arguments
25225 need_version=unknown
25227 case $host_os in
25228 aix3*)
25229 version_type=linux
25230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25231 shlibpath_var=LIBPATH
25233 # AIX 3 has no versioning support, so we append a major version to the name.
25234 soname_spec='${libname}${release}${shared_ext}$major'
25237 aix4* | aix5*)
25238 version_type=linux
25239 need_lib_prefix=no
25240 need_version=no
25241 hardcode_into_libs=yes
25242 if test "$host_cpu" = ia64; then
25243 # AIX 5 supports IA64
25244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25245 shlibpath_var=LD_LIBRARY_PATH
25246 else
25247 # With GCC up to 2.95.x, collect2 would create an import file
25248 # for dependence libraries. The import file would start with
25249 # the line `#! .'. This would cause the generated library to
25250 # depend on `.', always an invalid library. This was fixed in
25251 # development snapshots of GCC prior to 3.0.
25252 case $host_os in
25253 aix4 | aix4.[01] | aix4.[01].*)
25254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25255 echo ' yes '
25256 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25258 else
25259 can_build_shared=no
25262 esac
25263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25264 # soname into executable. Probably we can add versioning support to
25265 # collect2, so additional links can be useful in future.
25266 if test "$aix_use_runtimelinking" = yes; then
25267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25268 # instead of lib<name>.a to let people know that these are not
25269 # typical AIX shared libraries.
25270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25271 else
25272 # We preserve .a as extension for shared libraries through AIX4.2
25273 # and later when we are not doing run time linking.
25274 library_names_spec='${libname}${release}.a $libname.a'
25275 soname_spec='${libname}${release}${shared_ext}$major'
25277 shlibpath_var=LIBPATH
25281 amigaos*)
25282 library_names_spec='$libname.ixlibrary $libname.a'
25283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25284 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'
25287 beos*)
25288 library_names_spec='${libname}${shared_ext}'
25289 dynamic_linker="$host_os ld.so"
25290 shlibpath_var=LIBRARY_PATH
25293 bsdi[45]*)
25294 version_type=linux
25295 need_version=no
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25297 soname_spec='${libname}${release}${shared_ext}$major'
25298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25299 shlibpath_var=LD_LIBRARY_PATH
25300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25302 # the default ld.so.conf also contains /usr/contrib/lib and
25303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25304 # libtool to hard-code these into programs
25307 cygwin* | mingw* | pw32*)
25308 version_type=windows
25309 shrext_cmds=".dll"
25310 need_version=no
25311 need_lib_prefix=no
25313 case $GCC,$host_os in
25314 yes,cygwin* | yes,mingw* | yes,pw32*)
25315 library_names_spec='$libname.dll.a'
25316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25317 postinstall_cmds='base_file=`basename \${file}`~
25318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25319 dldir=$destdir/`dirname \$dlpath`~
25320 test -d \$dldir || mkdir -p \$dldir~
25321 $install_prog $dir/$dlname \$dldir/$dlname~
25322 chmod a+x \$dldir/$dlname'
25323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25324 dlpath=$dir/\$dldll~
25325 $rm \$dlpath'
25326 shlibpath_overrides_runpath=yes
25328 case $host_os in
25329 cygwin*)
25330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25332 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25334 mingw*)
25335 # MinGW DLLs use traditional 'lib' prefix
25336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25337 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25338 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25339 # It is most probably a Windows format PATH printed by
25340 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25341 # path with ; separators, and with drive letters. We can handle the
25342 # drive letters (cygwin fileutils understands them), so leave them,
25343 # especially as we might pass files found there to a mingw objdump,
25344 # which wouldn't understand a cygwinified path. Ahh.
25345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25346 else
25347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25350 pw32*)
25351 # pw32 DLLs use 'pw' prefix rather than 'lib'
25352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25354 esac
25358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25360 esac
25361 dynamic_linker='Win32 ld.exe'
25362 # FIXME: first we should search . and the directory the executable is in
25363 shlibpath_var=PATH
25366 darwin* | rhapsody*)
25367 dynamic_linker="$host_os dyld"
25368 version_type=darwin
25369 need_lib_prefix=no
25370 need_version=no
25371 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25372 soname_spec='${libname}${release}${major}$shared_ext'
25373 shlibpath_overrides_runpath=yes
25374 shlibpath_var=DYLD_LIBRARY_PATH
25375 shrext_cmds='.dylib'
25376 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25377 if test "$GCC" = yes; then
25378 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"`
25379 else
25380 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25382 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25385 dgux*)
25386 version_type=linux
25387 need_lib_prefix=no
25388 need_version=no
25389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25390 soname_spec='${libname}${release}${shared_ext}$major'
25391 shlibpath_var=LD_LIBRARY_PATH
25394 freebsd1*)
25395 dynamic_linker=no
25398 kfreebsd*-gnu)
25399 version_type=linux
25400 need_lib_prefix=no
25401 need_version=no
25402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25403 soname_spec='${libname}${release}${shared_ext}$major'
25404 shlibpath_var=LD_LIBRARY_PATH
25405 shlibpath_overrides_runpath=no
25406 hardcode_into_libs=yes
25407 dynamic_linker='GNU ld.so'
25410 freebsd* | dragonfly*)
25411 # DragonFly does not have aout. When/if they implement a new
25412 # versioning mechanism, adjust this.
25413 if test -x /usr/bin/objformat; then
25414 objformat=`/usr/bin/objformat`
25415 else
25416 case $host_os in
25417 freebsd[123]*) objformat=aout ;;
25418 *) objformat=elf ;;
25419 esac
25421 version_type=freebsd-$objformat
25422 case $version_type in
25423 freebsd-elf*)
25424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25425 need_version=no
25426 need_lib_prefix=no
25428 freebsd-*)
25429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25430 need_version=yes
25432 esac
25433 shlibpath_var=LD_LIBRARY_PATH
25434 case $host_os in
25435 freebsd2*)
25436 shlibpath_overrides_runpath=yes
25438 freebsd3.[01]* | freebsdelf3.[01]*)
25439 shlibpath_overrides_runpath=yes
25440 hardcode_into_libs=yes
25442 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25443 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25444 shlibpath_overrides_runpath=no
25445 hardcode_into_libs=yes
25447 freebsd*) # from 4.6 on
25448 shlibpath_overrides_runpath=yes
25449 hardcode_into_libs=yes
25451 esac
25454 gnu*)
25455 version_type=linux
25456 need_lib_prefix=no
25457 need_version=no
25458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25459 soname_spec='${libname}${release}${shared_ext}$major'
25460 shlibpath_var=LD_LIBRARY_PATH
25461 hardcode_into_libs=yes
25464 hpux9* | hpux10* | hpux11*)
25465 # Give a soname corresponding to the major version so that dld.sl refuses to
25466 # link against other versions.
25467 version_type=sunos
25468 need_lib_prefix=no
25469 need_version=no
25470 case $host_cpu in
25471 ia64*)
25472 shrext_cmds='.so'
25473 hardcode_into_libs=yes
25474 dynamic_linker="$host_os dld.so"
25475 shlibpath_var=LD_LIBRARY_PATH
25476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25478 soname_spec='${libname}${release}${shared_ext}$major'
25479 if test "X$HPUX_IA64_MODE" = X32; then
25480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25481 else
25482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25486 hppa*64*)
25487 shrext_cmds='.sl'
25488 hardcode_into_libs=yes
25489 dynamic_linker="$host_os dld.sl"
25490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25493 soname_spec='${libname}${release}${shared_ext}$major'
25494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25498 shrext_cmds='.sl'
25499 dynamic_linker="$host_os dld.sl"
25500 shlibpath_var=SHLIB_PATH
25501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25503 soname_spec='${libname}${release}${shared_ext}$major'
25505 esac
25506 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25507 postinstall_cmds='chmod 555 $lib'
25510 interix3*)
25511 version_type=linux
25512 need_lib_prefix=no
25513 need_version=no
25514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25515 soname_spec='${libname}${release}${shared_ext}$major'
25516 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25517 shlibpath_var=LD_LIBRARY_PATH
25518 shlibpath_overrides_runpath=no
25519 hardcode_into_libs=yes
25522 irix5* | irix6* | nonstopux*)
25523 case $host_os in
25524 nonstopux*) version_type=nonstopux ;;
25526 if test "$lt_cv_prog_gnu_ld" = yes; then
25527 version_type=linux
25528 else
25529 version_type=irix
25530 fi ;;
25531 esac
25532 need_lib_prefix=no
25533 need_version=no
25534 soname_spec='${libname}${release}${shared_ext}$major'
25535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25536 case $host_os in
25537 irix5* | nonstopux*)
25538 libsuff= shlibsuff=
25541 case $LD in # libtool.m4 will add one of these switches to LD
25542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25543 libsuff= shlibsuff= libmagic=32-bit;;
25544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25545 libsuff=32 shlibsuff=N32 libmagic=N32;;
25546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25547 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25548 *) libsuff= shlibsuff= libmagic=never-match;;
25549 esac
25551 esac
25552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25553 shlibpath_overrides_runpath=no
25554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25556 hardcode_into_libs=yes
25559 # No shared lib support for Linux oldld, aout, or coff.
25560 linux*oldld* | linux*aout* | linux*coff*)
25561 dynamic_linker=no
25564 # This must be Linux ELF.
25565 linux*)
25566 version_type=linux
25567 need_lib_prefix=no
25568 need_version=no
25569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25570 soname_spec='${libname}${release}${shared_ext}$major'
25571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25572 shlibpath_var=LD_LIBRARY_PATH
25573 shlibpath_overrides_runpath=no
25574 # This implies no fast_install, which is unacceptable.
25575 # Some rework will be needed to allow for fast_install
25576 # before this can be enabled.
25577 hardcode_into_libs=yes
25579 # Append ld.so.conf contents to the search path
25580 if test -f /etc/ld.so.conf; then
25581 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' ' '`
25582 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25585 # We used to test for /lib/ld.so.1 and disable shared libraries on
25586 # powerpc, because MkLinux only supported shared libraries with the
25587 # GNU dynamic linker. Since this was broken with cross compilers,
25588 # most powerpc-linux boxes support dynamic linking these days and
25589 # people can always --disable-shared, the test was removed, and we
25590 # assume the GNU/Linux dynamic linker is in use.
25591 dynamic_linker='GNU/Linux ld.so'
25594 knetbsd*-gnu)
25595 version_type=linux
25596 need_lib_prefix=no
25597 need_version=no
25598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25599 soname_spec='${libname}${release}${shared_ext}$major'
25600 shlibpath_var=LD_LIBRARY_PATH
25601 shlibpath_overrides_runpath=no
25602 hardcode_into_libs=yes
25603 dynamic_linker='GNU ld.so'
25606 netbsd*)
25607 version_type=sunos
25608 need_lib_prefix=no
25609 need_version=no
25610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25613 dynamic_linker='NetBSD (a.out) ld.so'
25614 else
25615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25616 soname_spec='${libname}${release}${shared_ext}$major'
25617 dynamic_linker='NetBSD ld.elf_so'
25619 shlibpath_var=LD_LIBRARY_PATH
25620 shlibpath_overrides_runpath=yes
25621 hardcode_into_libs=yes
25624 newsos6)
25625 version_type=linux
25626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25627 shlibpath_var=LD_LIBRARY_PATH
25628 shlibpath_overrides_runpath=yes
25631 nto-qnx*)
25632 version_type=linux
25633 need_lib_prefix=no
25634 need_version=no
25635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25636 soname_spec='${libname}${release}${shared_ext}$major'
25637 shlibpath_var=LD_LIBRARY_PATH
25638 shlibpath_overrides_runpath=yes
25641 openbsd*)
25642 version_type=sunos
25643 sys_lib_dlsearch_path_spec="/usr/lib"
25644 need_lib_prefix=no
25645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25646 case $host_os in
25647 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25648 *) need_version=no ;;
25649 esac
25650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25652 shlibpath_var=LD_LIBRARY_PATH
25653 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25654 case $host_os in
25655 openbsd2.[89] | openbsd2.[89].*)
25656 shlibpath_overrides_runpath=no
25659 shlibpath_overrides_runpath=yes
25661 esac
25662 else
25663 shlibpath_overrides_runpath=yes
25667 os2*)
25668 libname_spec='$name'
25669 shrext_cmds=".dll"
25670 need_lib_prefix=no
25671 library_names_spec='$libname${shared_ext} $libname.a'
25672 dynamic_linker='OS/2 ld.exe'
25673 shlibpath_var=LIBPATH
25676 osf3* | osf4* | osf5*)
25677 version_type=osf
25678 need_lib_prefix=no
25679 need_version=no
25680 soname_spec='${libname}${release}${shared_ext}$major'
25681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25682 shlibpath_var=LD_LIBRARY_PATH
25683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25687 solaris*)
25688 version_type=linux
25689 need_lib_prefix=no
25690 need_version=no
25691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25692 soname_spec='${libname}${release}${shared_ext}$major'
25693 shlibpath_var=LD_LIBRARY_PATH
25694 shlibpath_overrides_runpath=yes
25695 hardcode_into_libs=yes
25696 # ldd complains unless libraries are executable
25697 postinstall_cmds='chmod +x $lib'
25700 sunos4*)
25701 version_type=sunos
25702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25704 shlibpath_var=LD_LIBRARY_PATH
25705 shlibpath_overrides_runpath=yes
25706 if test "$with_gnu_ld" = yes; then
25707 need_lib_prefix=no
25709 need_version=yes
25712 sysv4 | sysv4.3*)
25713 version_type=linux
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715 soname_spec='${libname}${release}${shared_ext}$major'
25716 shlibpath_var=LD_LIBRARY_PATH
25717 case $host_vendor in
25718 sni)
25719 shlibpath_overrides_runpath=no
25720 need_lib_prefix=no
25721 export_dynamic_flag_spec='${wl}-Blargedynsym'
25722 runpath_var=LD_RUN_PATH
25724 siemens)
25725 need_lib_prefix=no
25727 motorola)
25728 need_lib_prefix=no
25729 need_version=no
25730 shlibpath_overrides_runpath=no
25731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25733 esac
25736 sysv4*MP*)
25737 if test -d /usr/nec ;then
25738 version_type=linux
25739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25740 soname_spec='$libname${shared_ext}.$major'
25741 shlibpath_var=LD_LIBRARY_PATH
25745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25746 version_type=freebsd-elf
25747 need_lib_prefix=no
25748 need_version=no
25749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25750 soname_spec='${libname}${release}${shared_ext}$major'
25751 shlibpath_var=LD_LIBRARY_PATH
25752 hardcode_into_libs=yes
25753 if test "$with_gnu_ld" = yes; then
25754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25755 shlibpath_overrides_runpath=no
25756 else
25757 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25758 shlibpath_overrides_runpath=yes
25759 case $host_os in
25760 sco3.2v5*)
25761 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25763 esac
25765 sys_lib_dlsearch_path_spec='/usr/lib'
25768 uts4*)
25769 version_type=linux
25770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25771 soname_spec='${libname}${release}${shared_ext}$major'
25772 shlibpath_var=LD_LIBRARY_PATH
25776 dynamic_linker=no
25778 esac
25779 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25780 echo "${ECHO_T}$dynamic_linker" >&6; }
25781 test "$dynamic_linker" = no && can_build_shared=no
25783 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25784 if test "$GCC" = yes; then
25785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25788 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25789 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25790 hardcode_action_GCJ=
25791 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25792 test -n "$runpath_var_GCJ" || \
25793 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25795 # We can hardcode non-existant directories.
25796 if test "$hardcode_direct_GCJ" != no &&
25797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25798 # have to relink, otherwise we might link with an installed library
25799 # when we should be linking with a yet-to-be-installed one
25800 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25801 test "$hardcode_minus_L_GCJ" != no; then
25802 # Linking always hardcodes the temporary library directory.
25803 hardcode_action_GCJ=relink
25804 else
25805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25806 hardcode_action_GCJ=immediate
25808 else
25809 # We cannot hardcode anything, or else we can only hardcode existing
25810 # directories.
25811 hardcode_action_GCJ=unsupported
25813 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25814 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25816 if test "$hardcode_action_GCJ" = relink; then
25817 # Fast installation is not supported
25818 enable_fast_install=no
25819 elif test "$shlibpath_overrides_runpath" = yes ||
25820 test "$enable_shared" = no; then
25821 # Fast installation is not necessary
25822 enable_fast_install=needless
25826 # The else clause should only fire when bootstrapping the
25827 # libtool distribution, otherwise you forgot to ship ltmain.sh
25828 # with your package, and you will get complaints that there are
25829 # no rules to generate ltmain.sh.
25830 if test -f "$ltmain"; then
25831 # See if we are running on zsh, and set the options which allow our commands through
25832 # without removal of \ escapes.
25833 if test -n "${ZSH_VERSION+set}" ; then
25834 setopt NO_GLOB_SUBST
25836 # Now quote all the things that may contain metacharacters while being
25837 # careful not to overquote the AC_SUBSTed values. We take copies of the
25838 # variables and quote the copies for generation of the libtool script.
25839 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25840 SED SHELL STRIP \
25841 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25842 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25843 deplibs_check_method reload_flag reload_cmds need_locks \
25844 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25845 lt_cv_sys_global_symbol_to_c_name_address \
25846 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25847 old_postinstall_cmds old_postuninstall_cmds \
25848 compiler_GCJ \
25849 CC_GCJ \
25850 LD_GCJ \
25851 lt_prog_compiler_wl_GCJ \
25852 lt_prog_compiler_pic_GCJ \
25853 lt_prog_compiler_static_GCJ \
25854 lt_prog_compiler_no_builtin_flag_GCJ \
25855 export_dynamic_flag_spec_GCJ \
25856 thread_safe_flag_spec_GCJ \
25857 whole_archive_flag_spec_GCJ \
25858 enable_shared_with_static_runtimes_GCJ \
25859 old_archive_cmds_GCJ \
25860 old_archive_from_new_cmds_GCJ \
25861 predep_objects_GCJ \
25862 postdep_objects_GCJ \
25863 predeps_GCJ \
25864 postdeps_GCJ \
25865 compiler_lib_search_path_GCJ \
25866 archive_cmds_GCJ \
25867 archive_expsym_cmds_GCJ \
25868 postinstall_cmds_GCJ \
25869 postuninstall_cmds_GCJ \
25870 old_archive_from_expsyms_cmds_GCJ \
25871 allow_undefined_flag_GCJ \
25872 no_undefined_flag_GCJ \
25873 export_symbols_cmds_GCJ \
25874 hardcode_libdir_flag_spec_GCJ \
25875 hardcode_libdir_flag_spec_ld_GCJ \
25876 hardcode_libdir_separator_GCJ \
25877 hardcode_automatic_GCJ \
25878 module_cmds_GCJ \
25879 module_expsym_cmds_GCJ \
25880 lt_cv_prog_compiler_c_o_GCJ \
25881 exclude_expsyms_GCJ \
25882 include_expsyms_GCJ; do
25884 case $var in
25885 old_archive_cmds_GCJ | \
25886 old_archive_from_new_cmds_GCJ | \
25887 archive_cmds_GCJ | \
25888 archive_expsym_cmds_GCJ | \
25889 module_cmds_GCJ | \
25890 module_expsym_cmds_GCJ | \
25891 old_archive_from_expsyms_cmds_GCJ | \
25892 export_symbols_cmds_GCJ | \
25893 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25894 postinstall_cmds | postuninstall_cmds | \
25895 old_postinstall_cmds | old_postuninstall_cmds | \
25896 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25897 # Double-quote double-evaled strings.
25898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25903 esac
25904 done
25906 case $lt_echo in
25907 *'\$0 --fallback-echo"')
25908 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25910 esac
25912 cfgfile="$ofile"
25914 cat <<__EOF__ >> "$cfgfile"
25915 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25919 # Shell to use when invoking shell scripts.
25920 SHELL=$lt_SHELL
25922 # Whether or not to build shared libraries.
25923 build_libtool_libs=$enable_shared
25925 # Whether or not to build static libraries.
25926 build_old_libs=$enable_static
25928 # Whether or not to add -lc for building shared libraries.
25929 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25931 # Whether or not to disallow shared libs when runtime libs are static
25932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25934 # Whether or not to optimize for fast installation.
25935 fast_install=$enable_fast_install
25937 # The host system.
25938 host_alias=$host_alias
25939 host=$host
25940 host_os=$host_os
25942 # The build system.
25943 build_alias=$build_alias
25944 build=$build
25945 build_os=$build_os
25947 # An echo program that does not interpret backslashes.
25948 echo=$lt_echo
25950 # The archiver.
25951 AR=$lt_AR
25952 AR_FLAGS=$lt_AR_FLAGS
25954 # A C compiler.
25955 LTCC=$lt_LTCC
25957 # LTCC compiler flags.
25958 LTCFLAGS=$lt_LTCFLAGS
25960 # A language-specific compiler.
25961 CC=$lt_compiler_GCJ
25963 # Is the compiler the GNU C compiler?
25964 with_gcc=$GCC_GCJ
25966 # An ERE matcher.
25967 EGREP=$lt_EGREP
25969 # The linker used to build libraries.
25970 LD=$lt_LD_GCJ
25972 # Whether we need hard or soft links.
25973 LN_S=$lt_LN_S
25975 # A BSD-compatible nm program.
25976 NM=$lt_NM
25978 # A symbol stripping program
25979 STRIP=$lt_STRIP
25981 # Used to examine libraries when file_magic_cmd begins "file"
25982 MAGIC_CMD=$MAGIC_CMD
25984 # Used on cygwin: DLL creation program.
25985 DLLTOOL="$DLLTOOL"
25987 # Used on cygwin: object dumper.
25988 OBJDUMP="$OBJDUMP"
25990 # Used on cygwin: assembler.
25991 AS="$AS"
25993 # The name of the directory that contains temporary libtool files.
25994 objdir=$objdir
25996 # How to create reloadable object files.
25997 reload_flag=$lt_reload_flag
25998 reload_cmds=$lt_reload_cmds
26000 # How to pass a linker flag through the compiler.
26001 wl=$lt_lt_prog_compiler_wl_GCJ
26003 # Object file suffix (normally "o").
26004 objext="$ac_objext"
26006 # Old archive suffix (normally "a").
26007 libext="$libext"
26009 # Shared library suffix (normally ".so").
26010 shrext_cmds='$shrext_cmds'
26012 # Executable file suffix (normally "").
26013 exeext="$exeext"
26015 # Additional compiler flags for building library objects.
26016 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26017 pic_mode=$pic_mode
26019 # What is the maximum length of a command?
26020 max_cmd_len=$lt_cv_sys_max_cmd_len
26022 # Does compiler simultaneously support -c and -o options?
26023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26025 # Must we lock files when doing compilation?
26026 need_locks=$lt_need_locks
26028 # Do we need the lib prefix for modules?
26029 need_lib_prefix=$need_lib_prefix
26031 # Do we need a version for libraries?
26032 need_version=$need_version
26034 # Whether dlopen is supported.
26035 dlopen_support=$enable_dlopen
26037 # Whether dlopen of programs is supported.
26038 dlopen_self=$enable_dlopen_self
26040 # Whether dlopen of statically linked programs is supported.
26041 dlopen_self_static=$enable_dlopen_self_static
26043 # Compiler flag to prevent dynamic linking.
26044 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26046 # Compiler flag to turn off builtin functions.
26047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26049 # Compiler flag to allow reflexive dlopens.
26050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26052 # Compiler flag to generate shared objects directly from archives.
26053 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26055 # Compiler flag to generate thread-safe objects.
26056 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26058 # Library versioning type.
26059 version_type=$version_type
26061 # Format of library name prefix.
26062 libname_spec=$lt_libname_spec
26064 # List of archive names. First name is the real one, the rest are links.
26065 # The last name is the one that the linker finds with -lNAME.
26066 library_names_spec=$lt_library_names_spec
26068 # The coded name of the library, if different from the real name.
26069 soname_spec=$lt_soname_spec
26071 # Commands used to build and install an old-style archive.
26072 RANLIB=$lt_RANLIB
26073 old_archive_cmds=$lt_old_archive_cmds_GCJ
26074 old_postinstall_cmds=$lt_old_postinstall_cmds
26075 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26077 # Create an old-style archive from a shared archive.
26078 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26080 # Create a temporary old-style archive to link instead of a shared archive.
26081 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26083 # Commands used to build and install a shared archive.
26084 archive_cmds=$lt_archive_cmds_GCJ
26085 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26086 postinstall_cmds=$lt_postinstall_cmds
26087 postuninstall_cmds=$lt_postuninstall_cmds
26089 # Commands used to build a loadable module (assumed same as above if empty)
26090 module_cmds=$lt_module_cmds_GCJ
26091 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26093 # Commands to strip libraries.
26094 old_striplib=$lt_old_striplib
26095 striplib=$lt_striplib
26097 # Dependencies to place before the objects being linked to create a
26098 # shared library.
26099 predep_objects=$lt_predep_objects_GCJ
26101 # Dependencies to place after the objects being linked to create a
26102 # shared library.
26103 postdep_objects=$lt_postdep_objects_GCJ
26105 # Dependencies to place before the objects being linked to create a
26106 # shared library.
26107 predeps=$lt_predeps_GCJ
26109 # Dependencies to place after the objects being linked to create a
26110 # shared library.
26111 postdeps=$lt_postdeps_GCJ
26113 # The library search path used internally by the compiler when linking
26114 # a shared library.
26115 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26117 # Method to check whether dependent libraries are shared objects.
26118 deplibs_check_method=$lt_deplibs_check_method
26120 # Command to use when deplibs_check_method == file_magic.
26121 file_magic_cmd=$lt_file_magic_cmd
26123 # Flag that allows shared libraries with undefined symbols to be built.
26124 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26126 # Flag that forces no undefined symbols.
26127 no_undefined_flag=$lt_no_undefined_flag_GCJ
26129 # Commands used to finish a libtool library installation in a directory.
26130 finish_cmds=$lt_finish_cmds
26132 # Same as above, but a single script fragment to be evaled but not shown.
26133 finish_eval=$lt_finish_eval
26135 # Take the output of nm and produce a listing of raw symbols and C names.
26136 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26138 # Transform the output of nm in a proper C declaration
26139 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26141 # Transform the output of nm in a C name address pair
26142 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26144 # This is the shared library runtime path variable.
26145 runpath_var=$runpath_var
26147 # This is the shared library path variable.
26148 shlibpath_var=$shlibpath_var
26150 # Is shlibpath searched before the hard-coded library search path?
26151 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26153 # How to hardcode a shared library path into an executable.
26154 hardcode_action=$hardcode_action_GCJ
26156 # Whether we should hardcode library paths into libraries.
26157 hardcode_into_libs=$hardcode_into_libs
26159 # Flag to hardcode \$libdir into a binary during linking.
26160 # This must work even if \$libdir does not exist.
26161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26163 # If ld is used when linking, flag to hardcode \$libdir into
26164 # a binary during linking. This must work even if \$libdir does
26165 # not exist.
26166 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26168 # Whether we need a single -rpath flag with a separated argument.
26169 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26171 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26172 # resulting binary.
26173 hardcode_direct=$hardcode_direct_GCJ
26175 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26176 # resulting binary.
26177 hardcode_minus_L=$hardcode_minus_L_GCJ
26179 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26180 # the resulting binary.
26181 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26183 # Set to yes if building a shared library automatically hardcodes DIR into the library
26184 # and all subsequent libraries and executables linked against it.
26185 hardcode_automatic=$hardcode_automatic_GCJ
26187 # Variables whose values should be saved in libtool wrapper scripts and
26188 # restored at relink time.
26189 variables_saved_for_relink="$variables_saved_for_relink"
26191 # Whether libtool must link a program against all its dependency libraries.
26192 link_all_deplibs=$link_all_deplibs_GCJ
26194 # Compile-time system search path for libraries
26195 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26197 # Run-time system search path for libraries
26198 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26200 # Fix the shell variable \$srcfile for the compiler.
26201 fix_srcfile_path="$fix_srcfile_path_GCJ"
26203 # Set to yes if exported symbols are required.
26204 always_export_symbols=$always_export_symbols_GCJ
26206 # The commands to list exported symbols.
26207 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26209 # The commands to extract the exported symbol list from a shared archive.
26210 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26212 # Symbols that should not be listed in the preloaded symbols.
26213 exclude_expsyms=$lt_exclude_expsyms_GCJ
26215 # Symbols that must always be exported.
26216 include_expsyms=$lt_include_expsyms_GCJ
26218 # ### END LIBTOOL TAG CONFIG: $tagname
26220 __EOF__
26223 else
26224 # If there is no Makefile yet, we rely on a make rule to execute
26225 # `config.status --recheck' to rerun these tests and create the
26226 # libtool script then.
26227 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26228 if test -f "$ltmain_in"; then
26229 test -f Makefile && make "$ltmain"
26234 ac_ext=c
26235 ac_cpp='$CPP $CPPFLAGS'
26236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26240 CC="$lt_save_CC"
26242 else
26243 tagname=""
26248 ac_ext=c
26249 ac_cpp='$CPP $CPPFLAGS'
26250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26255 # Source file extension for RC test sources.
26256 ac_ext=rc
26258 # Object file extension for compiled RC test sources.
26259 objext=o
26260 objext_RC=$objext
26262 # Code to be used in simple compile tests
26263 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26265 # Code to be used in simple link tests
26266 lt_simple_link_test_code="$lt_simple_compile_test_code"
26268 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26270 # If no C compiler was specified, use CC.
26271 LTCC=${LTCC-"$CC"}
26273 # If no C compiler flags were specified, use CFLAGS.
26274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26276 # Allow CC to be a program name with arguments.
26277 compiler=$CC
26280 # save warnings/boilerplate of simple test code
26281 ac_outfile=conftest.$ac_objext
26282 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26283 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26284 _lt_compiler_boilerplate=`cat conftest.err`
26285 $rm conftest*
26287 ac_outfile=conftest.$ac_objext
26288 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26289 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26290 _lt_linker_boilerplate=`cat conftest.err`
26291 $rm conftest*
26294 # Allow CC to be a program name with arguments.
26295 lt_save_CC="$CC"
26296 CC=${RC-"windres"}
26297 compiler=$CC
26298 compiler_RC=$CC
26299 for cc_temp in $compiler""; do
26300 case $cc_temp in
26301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26303 \-*) ;;
26304 *) break;;
26305 esac
26306 done
26307 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26309 lt_cv_prog_compiler_c_o_RC=yes
26311 # The else clause should only fire when bootstrapping the
26312 # libtool distribution, otherwise you forgot to ship ltmain.sh
26313 # with your package, and you will get complaints that there are
26314 # no rules to generate ltmain.sh.
26315 if test -f "$ltmain"; then
26316 # See if we are running on zsh, and set the options which allow our commands through
26317 # without removal of \ escapes.
26318 if test -n "${ZSH_VERSION+set}" ; then
26319 setopt NO_GLOB_SUBST
26321 # Now quote all the things that may contain metacharacters while being
26322 # careful not to overquote the AC_SUBSTed values. We take copies of the
26323 # variables and quote the copies for generation of the libtool script.
26324 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26325 SED SHELL STRIP \
26326 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26327 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26328 deplibs_check_method reload_flag reload_cmds need_locks \
26329 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26330 lt_cv_sys_global_symbol_to_c_name_address \
26331 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26332 old_postinstall_cmds old_postuninstall_cmds \
26333 compiler_RC \
26334 CC_RC \
26335 LD_RC \
26336 lt_prog_compiler_wl_RC \
26337 lt_prog_compiler_pic_RC \
26338 lt_prog_compiler_static_RC \
26339 lt_prog_compiler_no_builtin_flag_RC \
26340 export_dynamic_flag_spec_RC \
26341 thread_safe_flag_spec_RC \
26342 whole_archive_flag_spec_RC \
26343 enable_shared_with_static_runtimes_RC \
26344 old_archive_cmds_RC \
26345 old_archive_from_new_cmds_RC \
26346 predep_objects_RC \
26347 postdep_objects_RC \
26348 predeps_RC \
26349 postdeps_RC \
26350 compiler_lib_search_path_RC \
26351 archive_cmds_RC \
26352 archive_expsym_cmds_RC \
26353 postinstall_cmds_RC \
26354 postuninstall_cmds_RC \
26355 old_archive_from_expsyms_cmds_RC \
26356 allow_undefined_flag_RC \
26357 no_undefined_flag_RC \
26358 export_symbols_cmds_RC \
26359 hardcode_libdir_flag_spec_RC \
26360 hardcode_libdir_flag_spec_ld_RC \
26361 hardcode_libdir_separator_RC \
26362 hardcode_automatic_RC \
26363 module_cmds_RC \
26364 module_expsym_cmds_RC \
26365 lt_cv_prog_compiler_c_o_RC \
26366 exclude_expsyms_RC \
26367 include_expsyms_RC; do
26369 case $var in
26370 old_archive_cmds_RC | \
26371 old_archive_from_new_cmds_RC | \
26372 archive_cmds_RC | \
26373 archive_expsym_cmds_RC | \
26374 module_cmds_RC | \
26375 module_expsym_cmds_RC | \
26376 old_archive_from_expsyms_cmds_RC | \
26377 export_symbols_cmds_RC | \
26378 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26379 postinstall_cmds | postuninstall_cmds | \
26380 old_postinstall_cmds | old_postuninstall_cmds | \
26381 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26382 # Double-quote double-evaled strings.
26383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26388 esac
26389 done
26391 case $lt_echo in
26392 *'\$0 --fallback-echo"')
26393 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26395 esac
26397 cfgfile="$ofile"
26399 cat <<__EOF__ >> "$cfgfile"
26400 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26404 # Shell to use when invoking shell scripts.
26405 SHELL=$lt_SHELL
26407 # Whether or not to build shared libraries.
26408 build_libtool_libs=$enable_shared
26410 # Whether or not to build static libraries.
26411 build_old_libs=$enable_static
26413 # Whether or not to add -lc for building shared libraries.
26414 build_libtool_need_lc=$archive_cmds_need_lc_RC
26416 # Whether or not to disallow shared libs when runtime libs are static
26417 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26419 # Whether or not to optimize for fast installation.
26420 fast_install=$enable_fast_install
26422 # The host system.
26423 host_alias=$host_alias
26424 host=$host
26425 host_os=$host_os
26427 # The build system.
26428 build_alias=$build_alias
26429 build=$build
26430 build_os=$build_os
26432 # An echo program that does not interpret backslashes.
26433 echo=$lt_echo
26435 # The archiver.
26436 AR=$lt_AR
26437 AR_FLAGS=$lt_AR_FLAGS
26439 # A C compiler.
26440 LTCC=$lt_LTCC
26442 # LTCC compiler flags.
26443 LTCFLAGS=$lt_LTCFLAGS
26445 # A language-specific compiler.
26446 CC=$lt_compiler_RC
26448 # Is the compiler the GNU C compiler?
26449 with_gcc=$GCC_RC
26451 # An ERE matcher.
26452 EGREP=$lt_EGREP
26454 # The linker used to build libraries.
26455 LD=$lt_LD_RC
26457 # Whether we need hard or soft links.
26458 LN_S=$lt_LN_S
26460 # A BSD-compatible nm program.
26461 NM=$lt_NM
26463 # A symbol stripping program
26464 STRIP=$lt_STRIP
26466 # Used to examine libraries when file_magic_cmd begins "file"
26467 MAGIC_CMD=$MAGIC_CMD
26469 # Used on cygwin: DLL creation program.
26470 DLLTOOL="$DLLTOOL"
26472 # Used on cygwin: object dumper.
26473 OBJDUMP="$OBJDUMP"
26475 # Used on cygwin: assembler.
26476 AS="$AS"
26478 # The name of the directory that contains temporary libtool files.
26479 objdir=$objdir
26481 # How to create reloadable object files.
26482 reload_flag=$lt_reload_flag
26483 reload_cmds=$lt_reload_cmds
26485 # How to pass a linker flag through the compiler.
26486 wl=$lt_lt_prog_compiler_wl_RC
26488 # Object file suffix (normally "o").
26489 objext="$ac_objext"
26491 # Old archive suffix (normally "a").
26492 libext="$libext"
26494 # Shared library suffix (normally ".so").
26495 shrext_cmds='$shrext_cmds'
26497 # Executable file suffix (normally "").
26498 exeext="$exeext"
26500 # Additional compiler flags for building library objects.
26501 pic_flag=$lt_lt_prog_compiler_pic_RC
26502 pic_mode=$pic_mode
26504 # What is the maximum length of a command?
26505 max_cmd_len=$lt_cv_sys_max_cmd_len
26507 # Does compiler simultaneously support -c and -o options?
26508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26510 # Must we lock files when doing compilation?
26511 need_locks=$lt_need_locks
26513 # Do we need the lib prefix for modules?
26514 need_lib_prefix=$need_lib_prefix
26516 # Do we need a version for libraries?
26517 need_version=$need_version
26519 # Whether dlopen is supported.
26520 dlopen_support=$enable_dlopen
26522 # Whether dlopen of programs is supported.
26523 dlopen_self=$enable_dlopen_self
26525 # Whether dlopen of statically linked programs is supported.
26526 dlopen_self_static=$enable_dlopen_self_static
26528 # Compiler flag to prevent dynamic linking.
26529 link_static_flag=$lt_lt_prog_compiler_static_RC
26531 # Compiler flag to turn off builtin functions.
26532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26534 # Compiler flag to allow reflexive dlopens.
26535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26537 # Compiler flag to generate shared objects directly from archives.
26538 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26540 # Compiler flag to generate thread-safe objects.
26541 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26543 # Library versioning type.
26544 version_type=$version_type
26546 # Format of library name prefix.
26547 libname_spec=$lt_libname_spec
26549 # List of archive names. First name is the real one, the rest are links.
26550 # The last name is the one that the linker finds with -lNAME.
26551 library_names_spec=$lt_library_names_spec
26553 # The coded name of the library, if different from the real name.
26554 soname_spec=$lt_soname_spec
26556 # Commands used to build and install an old-style archive.
26557 RANLIB=$lt_RANLIB
26558 old_archive_cmds=$lt_old_archive_cmds_RC
26559 old_postinstall_cmds=$lt_old_postinstall_cmds
26560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26562 # Create an old-style archive from a shared archive.
26563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26565 # Create a temporary old-style archive to link instead of a shared archive.
26566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26568 # Commands used to build and install a shared archive.
26569 archive_cmds=$lt_archive_cmds_RC
26570 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26571 postinstall_cmds=$lt_postinstall_cmds
26572 postuninstall_cmds=$lt_postuninstall_cmds
26574 # Commands used to build a loadable module (assumed same as above if empty)
26575 module_cmds=$lt_module_cmds_RC
26576 module_expsym_cmds=$lt_module_expsym_cmds_RC
26578 # Commands to strip libraries.
26579 old_striplib=$lt_old_striplib
26580 striplib=$lt_striplib
26582 # Dependencies to place before the objects being linked to create a
26583 # shared library.
26584 predep_objects=$lt_predep_objects_RC
26586 # Dependencies to place after the objects being linked to create a
26587 # shared library.
26588 postdep_objects=$lt_postdep_objects_RC
26590 # Dependencies to place before the objects being linked to create a
26591 # shared library.
26592 predeps=$lt_predeps_RC
26594 # Dependencies to place after the objects being linked to create a
26595 # shared library.
26596 postdeps=$lt_postdeps_RC
26598 # The library search path used internally by the compiler when linking
26599 # a shared library.
26600 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26602 # Method to check whether dependent libraries are shared objects.
26603 deplibs_check_method=$lt_deplibs_check_method
26605 # Command to use when deplibs_check_method == file_magic.
26606 file_magic_cmd=$lt_file_magic_cmd
26608 # Flag that allows shared libraries with undefined symbols to be built.
26609 allow_undefined_flag=$lt_allow_undefined_flag_RC
26611 # Flag that forces no undefined symbols.
26612 no_undefined_flag=$lt_no_undefined_flag_RC
26614 # Commands used to finish a libtool library installation in a directory.
26615 finish_cmds=$lt_finish_cmds
26617 # Same as above, but a single script fragment to be evaled but not shown.
26618 finish_eval=$lt_finish_eval
26620 # Take the output of nm and produce a listing of raw symbols and C names.
26621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26623 # Transform the output of nm in a proper C declaration
26624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26626 # Transform the output of nm in a C name address pair
26627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26629 # This is the shared library runtime path variable.
26630 runpath_var=$runpath_var
26632 # This is the shared library path variable.
26633 shlibpath_var=$shlibpath_var
26635 # Is shlibpath searched before the hard-coded library search path?
26636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26638 # How to hardcode a shared library path into an executable.
26639 hardcode_action=$hardcode_action_RC
26641 # Whether we should hardcode library paths into libraries.
26642 hardcode_into_libs=$hardcode_into_libs
26644 # Flag to hardcode \$libdir into a binary during linking.
26645 # This must work even if \$libdir does not exist.
26646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26648 # If ld is used when linking, flag to hardcode \$libdir into
26649 # a binary during linking. This must work even if \$libdir does
26650 # not exist.
26651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26653 # Whether we need a single -rpath flag with a separated argument.
26654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26657 # resulting binary.
26658 hardcode_direct=$hardcode_direct_RC
26660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26661 # resulting binary.
26662 hardcode_minus_L=$hardcode_minus_L_RC
26664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26665 # the resulting binary.
26666 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26668 # Set to yes if building a shared library automatically hardcodes DIR into the library
26669 # and all subsequent libraries and executables linked against it.
26670 hardcode_automatic=$hardcode_automatic_RC
26672 # Variables whose values should be saved in libtool wrapper scripts and
26673 # restored at relink time.
26674 variables_saved_for_relink="$variables_saved_for_relink"
26676 # Whether libtool must link a program against all its dependency libraries.
26677 link_all_deplibs=$link_all_deplibs_RC
26679 # Compile-time system search path for libraries
26680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26682 # Run-time system search path for libraries
26683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26685 # Fix the shell variable \$srcfile for the compiler.
26686 fix_srcfile_path="$fix_srcfile_path_RC"
26688 # Set to yes if exported symbols are required.
26689 always_export_symbols=$always_export_symbols_RC
26691 # The commands to list exported symbols.
26692 export_symbols_cmds=$lt_export_symbols_cmds_RC
26694 # The commands to extract the exported symbol list from a shared archive.
26695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26697 # Symbols that should not be listed in the preloaded symbols.
26698 exclude_expsyms=$lt_exclude_expsyms_RC
26700 # Symbols that must always be exported.
26701 include_expsyms=$lt_include_expsyms_RC
26703 # ### END LIBTOOL TAG CONFIG: $tagname
26705 __EOF__
26708 else
26709 # If there is no Makefile yet, we rely on a make rule to execute
26710 # `config.status --recheck' to rerun these tests and create the
26711 # libtool script then.
26712 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26713 if test -f "$ltmain_in"; then
26714 test -f Makefile && make "$ltmain"
26719 ac_ext=c
26720 ac_cpp='$CPP $CPPFLAGS'
26721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26725 CC="$lt_save_CC"
26730 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26731 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26732 { (exit 1); exit 1; }; }
26734 esac
26736 # Append the new tag name to the list of available tags.
26737 if test -n "$tagname" ; then
26738 available_tags="$available_tags $tagname"
26741 done
26742 IFS="$lt_save_ifs"
26744 # Now substitute the updated list of available tags.
26745 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26746 mv "${ofile}T" "$ofile"
26747 chmod +x "$ofile"
26748 else
26749 rm -f "${ofile}T"
26750 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26751 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26752 { (exit 1); exit 1; }; }
26758 # This can be used to rebuild libtool when needed
26759 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26761 # Always use our own libtool.
26762 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26764 # Prevent multiple expansion
26786 if test "$lt_cv_dlopen_self" = "yes" ; then
26788 cat >>confdefs.h <<\_ACEOF
26789 #define CAN_DLOPEN_SELF 1
26790 _ACEOF
26794 if test "$WITH_LLVMGCCDIR" = "default" ; then
26795 LLVMGCC="llvm-gcc${EXEEXT}"
26796 LLVMGXX="llvm-g++${EXEEXT}"
26797 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26798 set dummy $LLVMGCC; ac_word=$2
26799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26801 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26802 echo $ECHO_N "(cached) $ECHO_C" >&6
26803 else
26804 case $LLVMGCC in
26805 [\\/]* | ?:[\\/]*)
26806 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26810 for as_dir in $PATH
26812 IFS=$as_save_IFS
26813 test -z "$as_dir" && as_dir=.
26814 for ac_exec_ext in '' $ac_executable_extensions; do
26815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26816 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26818 break 2
26820 done
26821 done
26822 IFS=$as_save_IFS
26825 esac
26827 LLVMGCC=$ac_cv_path_LLVMGCC
26828 if test -n "$LLVMGCC"; then
26829 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26830 echo "${ECHO_T}$LLVMGCC" >&6; }
26831 else
26832 { echo "$as_me:$LINENO: result: no" >&5
26833 echo "${ECHO_T}no" >&6; }
26837 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26838 set dummy $LLVMGXX; ac_word=$2
26839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26841 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26842 echo $ECHO_N "(cached) $ECHO_C" >&6
26843 else
26844 case $LLVMGXX in
26845 [\\/]* | ?:[\\/]*)
26846 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26850 for as_dir in $PATH
26852 IFS=$as_save_IFS
26853 test -z "$as_dir" && as_dir=.
26854 for ac_exec_ext in '' $ac_executable_extensions; do
26855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26856 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26858 break 2
26860 done
26861 done
26862 IFS=$as_save_IFS
26865 esac
26867 LLVMGXX=$ac_cv_path_LLVMGXX
26868 if test -n "$LLVMGXX"; then
26869 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26870 echo "${ECHO_T}$LLVMGXX" >&6; }
26871 else
26872 { echo "$as_me:$LINENO: result: no" >&5
26873 echo "${ECHO_T}no" >&6; }
26877 else
26878 if test -z "$LLVMGCC"; then
26879 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26881 if test -z "$LLVMGXX"; then
26882 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26884 LLVMGCC=$LLVMGCC
26886 LLVMGXX=$LLVMGXX
26890 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26891 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26893 ICC=no
26894 IXX=no
26895 case $CC in
26896 icc*|icpc*)
26897 ICC=yes
26898 IXX=yes
26902 esac
26904 if test "$GCC" != "yes" && test "$ICC" != "yes"
26905 then
26906 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26907 echo "$as_me: error: gcc|icc required but not found" >&2;}
26908 { (exit 1); exit 1; }; }
26911 if test "$GXX" != "yes" && test "$IXX" != "yes"
26912 then
26913 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26914 echo "$as_me: error: g++|icc required but not found" >&2;}
26915 { (exit 1); exit 1; }; }
26918 if test "$GCC" = "yes"
26919 then
26920 cat >conftest.$ac_ext <<_ACEOF
26921 #if !defined(__GNUC__) || __GNUC__ < 3
26922 #error Unsupported GCC version
26923 #endif
26925 _ACEOF
26926 rm -f conftest.$ac_objext
26927 if { (ac_try="$ac_compile"
26928 case "(($ac_try" in
26929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930 *) ac_try_echo=$ac_try;;
26931 esac
26932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933 (eval "$ac_compile") 2>conftest.er1
26934 ac_status=$?
26935 grep -v '^ *+' conftest.er1 >conftest.err
26936 rm -f conftest.er1
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
26940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26941 { (case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26944 esac
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_try") 2>&5
26947 ac_status=$?
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; } &&
26950 { ac_try='test -s conftest.$ac_objext'
26951 { (case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26954 esac
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_try") 2>&5
26957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; }; then
26961 else
26962 echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26965 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26966 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26967 { (exit 1); exit 1; }; }
26970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26973 if test -z "$llvm_cv_gnu_make_command"
26974 then
26975 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26976 echo "$as_me: error: GNU Make required but not found" >&2;}
26977 { (exit 1); exit 1; }; }
26980 { echo "$as_me:$LINENO: result: ok" >&5
26981 echo "${ECHO_T}ok" >&6; }
26985 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26986 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26987 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26988 echo $ECHO_N "(cached) $ECHO_C" >&6
26989 else
26990 ac_check_lib_save_LIBS=$LIBS
26991 LIBS="-lelf $LIBS"
26992 cat >conftest.$ac_ext <<_ACEOF
26993 /* confdefs.h. */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
26999 /* Override any GCC internal prototype to avoid an error.
27000 Use char because int might match the return type of a GCC
27001 builtin and then its argument prototype would still apply. */
27002 #ifdef __cplusplus
27003 extern "C"
27004 #endif
27005 char elf_begin ();
27007 main ()
27009 return elf_begin ();
27011 return 0;
27013 _ACEOF
27014 rm -f conftest.$ac_objext conftest$ac_exeext
27015 if { (ac_try="$ac_link"
27016 case "(($ac_try" in
27017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018 *) ac_try_echo=$ac_try;;
27019 esac
27020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021 (eval "$ac_link") 2>conftest.er1
27022 ac_status=$?
27023 grep -v '^ *+' conftest.er1 >conftest.err
27024 rm -f conftest.er1
27025 cat conftest.err >&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); } &&
27028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27029 { (case "(($ac_try" in
27030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031 *) ac_try_echo=$ac_try;;
27032 esac
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034 (eval "$ac_try") 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
27039 { (case "(($ac_try" in
27040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041 *) ac_try_echo=$ac_try;;
27042 esac
27043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044 (eval "$ac_try") 2>&5
27045 ac_status=$?
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; }; then
27048 ac_cv_lib_elf_elf_begin=yes
27049 else
27050 echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27053 ac_cv_lib_elf_elf_begin=no
27056 rm -f core conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext conftest.$ac_ext
27058 LIBS=$ac_check_lib_save_LIBS
27060 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27061 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27062 if test $ac_cv_lib_elf_elf_begin = yes; then
27063 cat >>confdefs.h <<_ACEOF
27064 #define HAVE_LIBELF 1
27065 _ACEOF
27067 LIBS="-lelf $LIBS"
27072 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27073 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27074 if test "${ac_cv_lib_m_sin+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 else
27077 ac_check_lib_save_LIBS=$LIBS
27078 LIBS="-lm $LIBS"
27079 cat >conftest.$ac_ext <<_ACEOF
27080 /* confdefs.h. */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27086 /* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27089 #ifdef __cplusplus
27090 extern "C"
27091 #endif
27092 char sin ();
27094 main ()
27096 return sin ();
27098 return 0;
27100 _ACEOF
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27106 esac
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_link") 2>conftest.er1
27109 ac_status=$?
27110 grep -v '^ *+' conftest.er1 >conftest.err
27111 rm -f conftest.er1
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } &&
27115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116 { (case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27119 esac
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_try") 2>&5
27122 ac_status=$?
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest$ac_exeext'
27126 { (case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27129 esac
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_try") 2>&5
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27135 ac_cv_lib_m_sin=yes
27136 else
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27140 ac_cv_lib_m_sin=no
27143 rm -f core conftest.err conftest.$ac_objext \
27144 conftest$ac_exeext conftest.$ac_ext
27145 LIBS=$ac_check_lib_save_LIBS
27147 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27148 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27149 if test $ac_cv_lib_m_sin = yes; then
27150 cat >>confdefs.h <<_ACEOF
27151 #define HAVE_LIBM 1
27152 _ACEOF
27154 LIBS="-lm $LIBS"
27158 if test "$llvm_cv_os_type" = "MingW" ; then
27160 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27161 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27162 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27164 else
27165 ac_check_lib_save_LIBS=$LIBS
27166 LIBS="-limagehlp $LIBS"
27167 cat >conftest.$ac_ext <<_ACEOF
27168 /* confdefs.h. */
27169 _ACEOF
27170 cat confdefs.h >>conftest.$ac_ext
27171 cat >>conftest.$ac_ext <<_ACEOF
27172 /* end confdefs.h. */
27176 main ()
27178 return main ();
27180 return 0;
27182 _ACEOF
27183 rm -f conftest.$ac_objext conftest$ac_exeext
27184 if { (ac_try="$ac_link"
27185 case "(($ac_try" in
27186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187 *) ac_try_echo=$ac_try;;
27188 esac
27189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190 (eval "$ac_link") 2>conftest.er1
27191 ac_status=$?
27192 grep -v '^ *+' conftest.er1 >conftest.err
27193 rm -f conftest.er1
27194 cat conftest.err >&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } &&
27197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27198 { (case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27201 esac
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203 (eval "$ac_try") 2>&5
27204 ac_status=$?
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; } &&
27207 { ac_try='test -s conftest$ac_exeext'
27208 { (case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27211 esac
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_try") 2>&5
27214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; }; then
27217 ac_cv_lib_imagehlp_main=yes
27218 else
27219 echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27222 ac_cv_lib_imagehlp_main=no
27225 rm -f core conftest.err conftest.$ac_objext \
27226 conftest$ac_exeext conftest.$ac_ext
27227 LIBS=$ac_check_lib_save_LIBS
27229 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27230 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27231 if test $ac_cv_lib_imagehlp_main = yes; then
27232 cat >>confdefs.h <<_ACEOF
27233 #define HAVE_LIBIMAGEHLP 1
27234 _ACEOF
27236 LIBS="-limagehlp $LIBS"
27241 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27242 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27243 if test "${ac_cv_lib_psapi_main+set}" = set; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27245 else
27246 ac_check_lib_save_LIBS=$LIBS
27247 LIBS="-lpsapi $LIBS"
27248 cat >conftest.$ac_ext <<_ACEOF
27249 /* confdefs.h. */
27250 _ACEOF
27251 cat confdefs.h >>conftest.$ac_ext
27252 cat >>conftest.$ac_ext <<_ACEOF
27253 /* end confdefs.h. */
27257 main ()
27259 return main ();
27261 return 0;
27263 _ACEOF
27264 rm -f conftest.$ac_objext conftest$ac_exeext
27265 if { (ac_try="$ac_link"
27266 case "(($ac_try" in
27267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268 *) ac_try_echo=$ac_try;;
27269 esac
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271 (eval "$ac_link") 2>conftest.er1
27272 ac_status=$?
27273 grep -v '^ *+' conftest.er1 >conftest.err
27274 rm -f conftest.er1
27275 cat conftest.err >&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); } &&
27278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_try") 2>&5
27285 ac_status=$?
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; } &&
27288 { ac_try='test -s conftest$ac_exeext'
27289 { (case "(($ac_try" in
27290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291 *) ac_try_echo=$ac_try;;
27292 esac
27293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27294 (eval "$ac_try") 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; }; then
27298 ac_cv_lib_psapi_main=yes
27299 else
27300 echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27303 ac_cv_lib_psapi_main=no
27306 rm -f core conftest.err conftest.$ac_objext \
27307 conftest$ac_exeext conftest.$ac_ext
27308 LIBS=$ac_check_lib_save_LIBS
27310 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27311 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27312 if test $ac_cv_lib_psapi_main = yes; then
27313 cat >>confdefs.h <<_ACEOF
27314 #define HAVE_LIBPSAPI 1
27315 _ACEOF
27317 LIBS="-lpsapi $LIBS"
27323 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27324 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27325 if test "${ac_cv_search_dlopen+set}" = set; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27327 else
27328 ac_func_search_save_LIBS=$LIBS
27329 cat >conftest.$ac_ext <<_ACEOF
27330 /* confdefs.h. */
27331 _ACEOF
27332 cat confdefs.h >>conftest.$ac_ext
27333 cat >>conftest.$ac_ext <<_ACEOF
27334 /* end confdefs.h. */
27336 /* Override any GCC internal prototype to avoid an error.
27337 Use char because int might match the return type of a GCC
27338 builtin and then its argument prototype would still apply. */
27339 #ifdef __cplusplus
27340 extern "C"
27341 #endif
27342 char dlopen ();
27344 main ()
27346 return dlopen ();
27348 return 0;
27350 _ACEOF
27351 for ac_lib in '' dl; do
27352 if test -z "$ac_lib"; then
27353 ac_res="none required"
27354 else
27355 ac_res=-l$ac_lib
27356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27358 rm -f conftest.$ac_objext conftest$ac_exeext
27359 if { (ac_try="$ac_link"
27360 case "(($ac_try" in
27361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362 *) ac_try_echo=$ac_try;;
27363 esac
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365 (eval "$ac_link") 2>conftest.er1
27366 ac_status=$?
27367 grep -v '^ *+' conftest.er1 >conftest.err
27368 rm -f conftest.er1
27369 cat conftest.err >&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } &&
27372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27373 { (case "(($ac_try" in
27374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27375 *) ac_try_echo=$ac_try;;
27376 esac
27377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27378 (eval "$ac_try") 2>&5
27379 ac_status=$?
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); }; } &&
27382 { ac_try='test -s conftest$ac_exeext'
27383 { (case "(($ac_try" in
27384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385 *) ac_try_echo=$ac_try;;
27386 esac
27387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27388 (eval "$ac_try") 2>&5
27389 ac_status=$?
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); }; }; then
27392 ac_cv_search_dlopen=$ac_res
27393 else
27394 echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27400 rm -f core conftest.err conftest.$ac_objext \
27401 conftest$ac_exeext
27402 if test "${ac_cv_search_dlopen+set}" = set; then
27403 break
27405 done
27406 if test "${ac_cv_search_dlopen+set}" = set; then
27408 else
27409 ac_cv_search_dlopen=no
27411 rm conftest.$ac_ext
27412 LIBS=$ac_func_search_save_LIBS
27414 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27415 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27416 ac_res=$ac_cv_search_dlopen
27417 if test "$ac_res" != no; then
27418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27420 cat >>confdefs.h <<\_ACEOF
27421 #define HAVE_DLOPEN 1
27422 _ACEOF
27424 else
27425 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27426 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27430 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27431 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27432 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27434 else
27435 ac_check_lib_save_LIBS=$LIBS
27436 LIBS="-lffi $LIBS"
27437 cat >conftest.$ac_ext <<_ACEOF
27438 /* confdefs.h. */
27439 _ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h. */
27444 /* Override any GCC internal prototype to avoid an error.
27445 Use char because int might match the return type of a GCC
27446 builtin and then its argument prototype would still apply. */
27447 #ifdef __cplusplus
27448 extern "C"
27449 #endif
27450 char ffi_call ();
27452 main ()
27454 return ffi_call ();
27456 return 0;
27458 _ACEOF
27459 rm -f conftest.$ac_objext conftest$ac_exeext
27460 if { (ac_try="$ac_link"
27461 case "(($ac_try" in
27462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463 *) ac_try_echo=$ac_try;;
27464 esac
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466 (eval "$ac_link") 2>conftest.er1
27467 ac_status=$?
27468 grep -v '^ *+' conftest.er1 >conftest.err
27469 rm -f conftest.er1
27470 cat conftest.err >&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } &&
27473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27474 { (case "(($ac_try" in
27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27477 esac
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479 (eval "$ac_try") 2>&5
27480 ac_status=$?
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; } &&
27483 { ac_try='test -s conftest$ac_exeext'
27484 { (case "(($ac_try" in
27485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486 *) ac_try_echo=$ac_try;;
27487 esac
27488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27489 (eval "$ac_try") 2>&5
27490 ac_status=$?
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); }; }; then
27493 ac_cv_lib_ffi_ffi_call=yes
27494 else
27495 echo "$as_me: failed program was:" >&5
27496 sed 's/^/| /' conftest.$ac_ext >&5
27498 ac_cv_lib_ffi_ffi_call=no
27501 rm -f core conftest.err conftest.$ac_objext \
27502 conftest$ac_exeext conftest.$ac_ext
27503 LIBS=$ac_check_lib_save_LIBS
27505 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27506 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27507 if test $ac_cv_lib_ffi_ffi_call = yes; then
27508 have_libffi=1
27509 else
27510 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27511 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27515 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27516 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27517 if test "${ac_cv_search_mallinfo+set}" = set; then
27518 echo $ECHO_N "(cached) $ECHO_C" >&6
27519 else
27520 ac_func_search_save_LIBS=$LIBS
27521 cat >conftest.$ac_ext <<_ACEOF
27522 /* confdefs.h. */
27523 _ACEOF
27524 cat confdefs.h >>conftest.$ac_ext
27525 cat >>conftest.$ac_ext <<_ACEOF
27526 /* end confdefs.h. */
27528 /* Override any GCC internal prototype to avoid an error.
27529 Use char because int might match the return type of a GCC
27530 builtin and then its argument prototype would still apply. */
27531 #ifdef __cplusplus
27532 extern "C"
27533 #endif
27534 char mallinfo ();
27536 main ()
27538 return mallinfo ();
27540 return 0;
27542 _ACEOF
27543 for ac_lib in '' malloc; do
27544 if test -z "$ac_lib"; then
27545 ac_res="none required"
27546 else
27547 ac_res=-l$ac_lib
27548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27550 rm -f conftest.$ac_objext conftest$ac_exeext
27551 if { (ac_try="$ac_link"
27552 case "(($ac_try" in
27553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27554 *) ac_try_echo=$ac_try;;
27555 esac
27556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27557 (eval "$ac_link") 2>conftest.er1
27558 ac_status=$?
27559 grep -v '^ *+' conftest.er1 >conftest.err
27560 rm -f conftest.er1
27561 cat conftest.err >&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); } &&
27564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27565 { (case "(($ac_try" in
27566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567 *) ac_try_echo=$ac_try;;
27568 esac
27569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570 (eval "$ac_try") 2>&5
27571 ac_status=$?
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; } &&
27574 { ac_try='test -s conftest$ac_exeext'
27575 { (case "(($ac_try" in
27576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577 *) ac_try_echo=$ac_try;;
27578 esac
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580 (eval "$ac_try") 2>&5
27581 ac_status=$?
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; }; then
27584 ac_cv_search_mallinfo=$ac_res
27585 else
27586 echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27592 rm -f core conftest.err conftest.$ac_objext \
27593 conftest$ac_exeext
27594 if test "${ac_cv_search_mallinfo+set}" = set; then
27595 break
27597 done
27598 if test "${ac_cv_search_mallinfo+set}" = set; then
27600 else
27601 ac_cv_search_mallinfo=no
27603 rm conftest.$ac_ext
27604 LIBS=$ac_func_search_save_LIBS
27606 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27607 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27608 ac_res=$ac_cv_search_mallinfo
27609 if test "$ac_res" != no; then
27610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27612 cat >>confdefs.h <<\_ACEOF
27613 #define HAVE_MALLINFO 1
27614 _ACEOF
27619 if test "$ENABLE_THREADS" -eq 1 ; then
27621 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27622 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27623 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27624 echo $ECHO_N "(cached) $ECHO_C" >&6
27625 else
27626 ac_check_lib_save_LIBS=$LIBS
27627 LIBS="-lpthread $LIBS"
27628 cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h. */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27635 /* Override any GCC internal prototype to avoid an error.
27636 Use char because int might match the return type of a GCC
27637 builtin and then its argument prototype would still apply. */
27638 #ifdef __cplusplus
27639 extern "C"
27640 #endif
27641 char pthread_mutex_init ();
27643 main ()
27645 return pthread_mutex_init ();
27647 return 0;
27649 _ACEOF
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651 if { (ac_try="$ac_link"
27652 case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655 esac
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_link") 2>conftest.er1
27658 ac_status=$?
27659 grep -v '^ *+' conftest.er1 >conftest.err
27660 rm -f conftest.er1
27661 cat conftest.err >&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); } &&
27664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665 { (case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27668 esac
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_try") 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27681 ac_status=$?
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
27684 ac_cv_lib_pthread_pthread_mutex_init=yes
27685 else
27686 echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27689 ac_cv_lib_pthread_pthread_mutex_init=no
27692 rm -f core conftest.err conftest.$ac_objext \
27693 conftest$ac_exeext conftest.$ac_ext
27694 LIBS=$ac_check_lib_save_LIBS
27696 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27697 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27698 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27699 cat >>confdefs.h <<_ACEOF
27700 #define HAVE_LIBPTHREAD 1
27701 _ACEOF
27703 LIBS="-lpthread $LIBS"
27707 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27708 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27709 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27710 echo $ECHO_N "(cached) $ECHO_C" >&6
27711 else
27712 ac_func_search_save_LIBS=$LIBS
27713 cat >conftest.$ac_ext <<_ACEOF
27714 /* confdefs.h. */
27715 _ACEOF
27716 cat confdefs.h >>conftest.$ac_ext
27717 cat >>conftest.$ac_ext <<_ACEOF
27718 /* end confdefs.h. */
27720 /* Override any GCC internal prototype to avoid an error.
27721 Use char because int might match the return type of a GCC
27722 builtin and then its argument prototype would still apply. */
27723 #ifdef __cplusplus
27724 extern "C"
27725 #endif
27726 char pthread_mutex_lock ();
27728 main ()
27730 return pthread_mutex_lock ();
27732 return 0;
27734 _ACEOF
27735 for ac_lib in '' pthread; do
27736 if test -z "$ac_lib"; then
27737 ac_res="none required"
27738 else
27739 ac_res=-l$ac_lib
27740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27742 rm -f conftest.$ac_objext conftest$ac_exeext
27743 if { (ac_try="$ac_link"
27744 case "(($ac_try" in
27745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746 *) ac_try_echo=$ac_try;;
27747 esac
27748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749 (eval "$ac_link") 2>conftest.er1
27750 ac_status=$?
27751 grep -v '^ *+' conftest.er1 >conftest.err
27752 rm -f conftest.er1
27753 cat conftest.err >&5
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); } &&
27756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757 { (case "(($ac_try" in
27758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759 *) ac_try_echo=$ac_try;;
27760 esac
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_try") 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; } &&
27766 { ac_try='test -s conftest$ac_exeext'
27767 { (case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_try") 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
27776 ac_cv_search_pthread_mutex_lock=$ac_res
27777 else
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27784 rm -f core conftest.err conftest.$ac_objext \
27785 conftest$ac_exeext
27786 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27787 break
27789 done
27790 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27792 else
27793 ac_cv_search_pthread_mutex_lock=no
27795 rm conftest.$ac_ext
27796 LIBS=$ac_func_search_save_LIBS
27798 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27799 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27800 ac_res=$ac_cv_search_pthread_mutex_lock
27801 if test "$ac_res" != no; then
27802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27804 cat >>confdefs.h <<\_ACEOF
27805 #define HAVE_PTHREAD_MUTEX_LOCK 1
27806 _ACEOF
27813 # Check whether --with-udis86 was given.
27814 if test "${with_udis86+set}" = set; then
27815 withval=$with_udis86;
27816 USE_UDIS86=1
27818 case "$withval" in
27819 /usr/lib|yes) ;;
27820 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27821 esac
27823 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27824 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27825 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827 else
27828 ac_check_lib_save_LIBS=$LIBS
27829 LIBS="-ludis86 $LIBS"
27830 cat >conftest.$ac_ext <<_ACEOF
27831 /* confdefs.h. */
27832 _ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h. */
27837 /* Override any GCC internal prototype to avoid an error.
27838 Use char because int might match the return type of a GCC
27839 builtin and then its argument prototype would still apply. */
27840 #ifdef __cplusplus
27841 extern "C"
27842 #endif
27843 char ud_init ();
27845 main ()
27847 return ud_init ();
27849 return 0;
27851 _ACEOF
27852 rm -f conftest.$ac_objext conftest$ac_exeext
27853 if { (ac_try="$ac_link"
27854 case "(($ac_try" in
27855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856 *) ac_try_echo=$ac_try;;
27857 esac
27858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859 (eval "$ac_link") 2>conftest.er1
27860 ac_status=$?
27861 grep -v '^ *+' conftest.er1 >conftest.err
27862 rm -f conftest.er1
27863 cat conftest.err >&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); } &&
27866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27867 { (case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27870 esac
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_try") 2>&5
27873 ac_status=$?
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; } &&
27876 { ac_try='test -s conftest$ac_exeext'
27877 { (case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27880 esac
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882 (eval "$ac_try") 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; }; then
27886 ac_cv_lib_udis86_ud_init=yes
27887 else
27888 echo "$as_me: failed program was:" >&5
27889 sed 's/^/| /' conftest.$ac_ext >&5
27891 ac_cv_lib_udis86_ud_init=no
27894 rm -f core conftest.err conftest.$ac_objext \
27895 conftest$ac_exeext conftest.$ac_ext
27896 LIBS=$ac_check_lib_save_LIBS
27898 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27899 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27900 if test $ac_cv_lib_udis86_ud_init = yes; then
27901 cat >>confdefs.h <<_ACEOF
27902 #define HAVE_LIBUDIS86 1
27903 _ACEOF
27905 LIBS="-ludis86 $LIBS"
27907 else
27909 echo "Error! You need to have libudis86 around."
27910 exit -1
27915 else
27916 USE_UDIS86=0
27921 cat >>confdefs.h <<_ACEOF
27922 #define USE_UDIS86 $USE_UDIS86
27923 _ACEOF
27932 ac_header_dirent=no
27933 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27934 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27935 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27936 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27938 echo $ECHO_N "(cached) $ECHO_C" >&6
27939 else
27940 cat >conftest.$ac_ext <<_ACEOF
27941 /* confdefs.h. */
27942 _ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h. */
27946 #include <sys/types.h>
27947 #include <$ac_hdr>
27950 main ()
27952 if ((DIR *) 0)
27953 return 0;
27955 return 0;
27957 _ACEOF
27958 rm -f conftest.$ac_objext
27959 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27966 ac_status=$?
27967 grep -v '^ *+' conftest.er1 >conftest.err
27968 rm -f conftest.er1
27969 cat conftest.err >&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } &&
27972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973 { (case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27976 esac
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_try") 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest.$ac_objext'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; }; then
27992 eval "$as_ac_Header=yes"
27993 else
27994 echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
27997 eval "$as_ac_Header=no"
28000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28002 ac_res=`eval echo '${'$as_ac_Header'}'`
28003 { echo "$as_me:$LINENO: result: $ac_res" >&5
28004 echo "${ECHO_T}$ac_res" >&6; }
28005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28006 cat >>confdefs.h <<_ACEOF
28007 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28008 _ACEOF
28010 ac_header_dirent=$ac_hdr; break
28013 done
28014 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28015 if test $ac_header_dirent = dirent.h; then
28016 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28017 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28018 if test "${ac_cv_search_opendir+set}" = set; then
28019 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 else
28021 ac_func_search_save_LIBS=$LIBS
28022 cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h. */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28029 /* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
28032 #ifdef __cplusplus
28033 extern "C"
28034 #endif
28035 char opendir ();
28037 main ()
28039 return opendir ();
28041 return 0;
28043 _ACEOF
28044 for ac_lib in '' dir; do
28045 if test -z "$ac_lib"; then
28046 ac_res="none required"
28047 else
28048 ac_res=-l$ac_lib
28049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28051 rm -f conftest.$ac_objext conftest$ac_exeext
28052 if { (ac_try="$ac_link"
28053 case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28056 esac
28057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058 (eval "$ac_link") 2>conftest.er1
28059 ac_status=$?
28060 grep -v '^ *+' conftest.er1 >conftest.err
28061 rm -f conftest.er1
28062 cat conftest.err >&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); } &&
28065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28066 { (case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28069 esac
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_try") 2>&5
28072 ac_status=$?
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; } &&
28075 { ac_try='test -s conftest$ac_exeext'
28076 { (case "(($ac_try" in
28077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078 *) ac_try_echo=$ac_try;;
28079 esac
28080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081 (eval "$ac_try") 2>&5
28082 ac_status=$?
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; }; then
28085 ac_cv_search_opendir=$ac_res
28086 else
28087 echo "$as_me: failed program was:" >&5
28088 sed 's/^/| /' conftest.$ac_ext >&5
28093 rm -f core conftest.err conftest.$ac_objext \
28094 conftest$ac_exeext
28095 if test "${ac_cv_search_opendir+set}" = set; then
28096 break
28098 done
28099 if test "${ac_cv_search_opendir+set}" = set; then
28101 else
28102 ac_cv_search_opendir=no
28104 rm conftest.$ac_ext
28105 LIBS=$ac_func_search_save_LIBS
28107 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28108 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28109 ac_res=$ac_cv_search_opendir
28110 if test "$ac_res" != no; then
28111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28115 else
28116 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28117 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28118 if test "${ac_cv_search_opendir+set}" = set; then
28119 echo $ECHO_N "(cached) $ECHO_C" >&6
28120 else
28121 ac_func_search_save_LIBS=$LIBS
28122 cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h. */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h. */
28129 /* Override any GCC internal prototype to avoid an error.
28130 Use char because int might match the return type of a GCC
28131 builtin and then its argument prototype would still apply. */
28132 #ifdef __cplusplus
28133 extern "C"
28134 #endif
28135 char opendir ();
28137 main ()
28139 return opendir ();
28141 return 0;
28143 _ACEOF
28144 for ac_lib in '' x; do
28145 if test -z "$ac_lib"; then
28146 ac_res="none required"
28147 else
28148 ac_res=-l$ac_lib
28149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28151 rm -f conftest.$ac_objext conftest$ac_exeext
28152 if { (ac_try="$ac_link"
28153 case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156 esac
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_link") 2>conftest.er1
28159 ac_status=$?
28160 grep -v '^ *+' conftest.er1 >conftest.err
28161 rm -f conftest.er1
28162 cat conftest.err >&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } &&
28165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; } &&
28175 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28185 ac_cv_search_opendir=$ac_res
28186 else
28187 echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28193 rm -f core conftest.err conftest.$ac_objext \
28194 conftest$ac_exeext
28195 if test "${ac_cv_search_opendir+set}" = set; then
28196 break
28198 done
28199 if test "${ac_cv_search_opendir+set}" = set; then
28201 else
28202 ac_cv_search_opendir=no
28204 rm conftest.$ac_ext
28205 LIBS=$ac_func_search_save_LIBS
28207 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28208 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28209 ac_res=$ac_cv_search_opendir
28210 if test "$ac_res" != no; then
28211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28217 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28218 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28219 if test "${ac_cv_header_mmap_anon+set}" = set; then
28220 echo $ECHO_N "(cached) $ECHO_C" >&6
28221 else
28222 ac_ext=c
28223 ac_cpp='$CPP $CPPFLAGS'
28224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28228 cat >conftest.$ac_ext <<_ACEOF
28229 /* confdefs.h. */
28230 _ACEOF
28231 cat confdefs.h >>conftest.$ac_ext
28232 cat >>conftest.$ac_ext <<_ACEOF
28233 /* end confdefs.h. */
28234 #include <sys/mman.h>
28235 #include <unistd.h>
28236 #include <fcntl.h>
28238 main ()
28240 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28242 return 0;
28244 _ACEOF
28245 rm -f conftest.$ac_objext
28246 if { (ac_try="$ac_compile"
28247 case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28250 esac
28251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_compile") 2>conftest.er1
28253 ac_status=$?
28254 grep -v '^ *+' conftest.er1 >conftest.err
28255 rm -f conftest.er1
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } &&
28259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28260 { (case "(($ac_try" in
28261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262 *) ac_try_echo=$ac_try;;
28263 esac
28264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265 (eval "$ac_try") 2>&5
28266 ac_status=$?
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); }; } &&
28269 { ac_try='test -s conftest.$ac_objext'
28270 { (case "(($ac_try" in
28271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272 *) ac_try_echo=$ac_try;;
28273 esac
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275 (eval "$ac_try") 2>&5
28276 ac_status=$?
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; }; then
28279 ac_cv_header_mmap_anon=yes
28280 else
28281 echo "$as_me: failed program was:" >&5
28282 sed 's/^/| /' conftest.$ac_ext >&5
28284 ac_cv_header_mmap_anon=no
28287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28288 ac_ext=c
28289 ac_cpp='$CPP $CPPFLAGS'
28290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28296 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28297 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28298 if test "$ac_cv_header_mmap_anon" = yes; then
28300 cat >>confdefs.h <<\_ACEOF
28301 #define HAVE_MMAP_ANONYMOUS 1
28302 _ACEOF
28306 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28307 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28308 if test "${ac_cv_header_stat_broken+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311 cat >conftest.$ac_ext <<_ACEOF
28312 /* confdefs.h. */
28313 _ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h. */
28317 #include <sys/types.h>
28318 #include <sys/stat.h>
28320 #if defined S_ISBLK && defined S_IFDIR
28321 # if S_ISBLK (S_IFDIR)
28322 You lose.
28323 # endif
28324 #endif
28326 #if defined S_ISBLK && defined S_IFCHR
28327 # if S_ISBLK (S_IFCHR)
28328 You lose.
28329 # endif
28330 #endif
28332 #if defined S_ISLNK && defined S_IFREG
28333 # if S_ISLNK (S_IFREG)
28334 You lose.
28335 # endif
28336 #endif
28338 #if defined S_ISSOCK && defined S_IFREG
28339 # if S_ISSOCK (S_IFREG)
28340 You lose.
28341 # endif
28342 #endif
28344 _ACEOF
28345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28346 $EGREP "You lose" >/dev/null 2>&1; then
28347 ac_cv_header_stat_broken=yes
28348 else
28349 ac_cv_header_stat_broken=no
28351 rm -f conftest*
28354 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28355 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28356 if test $ac_cv_header_stat_broken = yes; then
28358 cat >>confdefs.h <<\_ACEOF
28359 #define STAT_MACROS_BROKEN 1
28360 _ACEOF
28364 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28366 if test "${ac_cv_header_stdc+set}" = set; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28368 else
28369 cat >conftest.$ac_ext <<_ACEOF
28370 /* confdefs.h. */
28371 _ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h. */
28375 #include <stdlib.h>
28376 #include <stdarg.h>
28377 #include <string.h>
28378 #include <float.h>
28381 main ()
28385 return 0;
28387 _ACEOF
28388 rm -f conftest.$ac_objext
28389 if { (ac_try="$ac_compile"
28390 case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393 esac
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_compile") 2>conftest.er1
28396 ac_status=$?
28397 grep -v '^ *+' conftest.er1 >conftest.err
28398 rm -f conftest.er1
28399 cat conftest.err >&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } &&
28402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28403 { (case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28406 esac
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_try") 2>&5
28409 ac_status=$?
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); }; } &&
28412 { ac_try='test -s conftest.$ac_objext'
28413 { (case "(($ac_try" in
28414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415 *) ac_try_echo=$ac_try;;
28416 esac
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418 (eval "$ac_try") 2>&5
28419 ac_status=$?
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; }; then
28422 ac_cv_header_stdc=yes
28423 else
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28427 ac_cv_header_stdc=no
28430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432 if test $ac_cv_header_stdc = yes; then
28433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28434 cat >conftest.$ac_ext <<_ACEOF
28435 /* confdefs.h. */
28436 _ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h. */
28440 #include <string.h>
28442 _ACEOF
28443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28444 $EGREP "memchr" >/dev/null 2>&1; then
28446 else
28447 ac_cv_header_stdc=no
28449 rm -f conftest*
28453 if test $ac_cv_header_stdc = yes; then
28454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28455 cat >conftest.$ac_ext <<_ACEOF
28456 /* confdefs.h. */
28457 _ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h. */
28461 #include <stdlib.h>
28463 _ACEOF
28464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28465 $EGREP "free" >/dev/null 2>&1; then
28467 else
28468 ac_cv_header_stdc=no
28470 rm -f conftest*
28474 if test $ac_cv_header_stdc = yes; then
28475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28476 if test "$cross_compiling" = yes; then
28478 else
28479 cat >conftest.$ac_ext <<_ACEOF
28480 /* confdefs.h. */
28481 _ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h. */
28485 #include <ctype.h>
28486 #include <stdlib.h>
28487 #if ((' ' & 0x0FF) == 0x020)
28488 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28489 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28490 #else
28491 # define ISLOWER(c) \
28492 (('a' <= (c) && (c) <= 'i') \
28493 || ('j' <= (c) && (c) <= 'r') \
28494 || ('s' <= (c) && (c) <= 'z'))
28495 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28496 #endif
28498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28500 main ()
28502 int i;
28503 for (i = 0; i < 256; i++)
28504 if (XOR (islower (i), ISLOWER (i))
28505 || toupper (i) != TOUPPER (i))
28506 return 2;
28507 return 0;
28509 _ACEOF
28510 rm -f conftest$ac_exeext
28511 if { (ac_try="$ac_link"
28512 case "(($ac_try" in
28513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514 *) ac_try_echo=$ac_try;;
28515 esac
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517 (eval "$ac_link") 2>&5
28518 ac_status=$?
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28521 { (case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28524 esac
28525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_try") 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28531 else
28532 echo "$as_me: program exited with status $ac_status" >&5
28533 echo "$as_me: failed program was:" >&5
28534 sed 's/^/| /' conftest.$ac_ext >&5
28536 ( exit $ac_status )
28537 ac_cv_header_stdc=no
28539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28545 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28546 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28547 if test $ac_cv_header_stdc = yes; then
28549 cat >>confdefs.h <<\_ACEOF
28550 #define STDC_HEADERS 1
28551 _ACEOF
28555 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28556 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28557 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28558 echo $ECHO_N "(cached) $ECHO_C" >&6
28559 else
28560 cat >conftest.$ac_ext <<_ACEOF
28561 /* confdefs.h. */
28562 _ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h. */
28566 #include <sys/types.h>
28567 #include <sys/wait.h>
28568 #ifndef WEXITSTATUS
28569 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28570 #endif
28571 #ifndef WIFEXITED
28572 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28573 #endif
28576 main ()
28578 int s;
28579 wait (&s);
28580 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28582 return 0;
28584 _ACEOF
28585 rm -f conftest.$ac_objext
28586 if { (ac_try="$ac_compile"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590 esac
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_compile") 2>conftest.er1
28593 ac_status=$?
28594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } &&
28599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603 esac
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
28609 { ac_try='test -s conftest.$ac_objext'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 ac_cv_header_sys_wait_h=yes
28620 else
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624 ac_cv_header_sys_wait_h=no
28627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28630 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28631 if test $ac_cv_header_sys_wait_h = yes; then
28633 cat >>confdefs.h <<\_ACEOF
28634 #define HAVE_SYS_WAIT_H 1
28635 _ACEOF
28639 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28640 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28641 if test "${ac_cv_header_time+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28643 else
28644 cat >conftest.$ac_ext <<_ACEOF
28645 /* confdefs.h. */
28646 _ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h. */
28650 #include <sys/types.h>
28651 #include <sys/time.h>
28652 #include <time.h>
28655 main ()
28657 if ((struct tm *) 0)
28658 return 0;
28660 return 0;
28662 _ACEOF
28663 rm -f conftest.$ac_objext
28664 if { (ac_try="$ac_compile"
28665 case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28668 esac
28669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670 (eval "$ac_compile") 2>conftest.er1
28671 ac_status=$?
28672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } &&
28677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28678 { (case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_try") 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; } &&
28687 { ac_try='test -s conftest.$ac_objext'
28688 { (case "(($ac_try" in
28689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28690 *) ac_try_echo=$ac_try;;
28691 esac
28692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28693 (eval "$ac_try") 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; }; then
28697 ac_cv_header_time=yes
28698 else
28699 echo "$as_me: failed program was:" >&5
28700 sed 's/^/| /' conftest.$ac_ext >&5
28702 ac_cv_header_time=no
28705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28707 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28708 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28709 if test $ac_cv_header_time = yes; then
28711 cat >>confdefs.h <<\_ACEOF
28712 #define TIME_WITH_SYS_TIME 1
28713 _ACEOF
28724 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28733 ac_res=`eval echo '${'$as_ac_Header'}'`
28734 { echo "$as_me:$LINENO: result: $ac_res" >&5
28735 echo "${ECHO_T}$ac_res" >&6; }
28736 else
28737 # Is the header compilable?
28738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28740 cat >conftest.$ac_ext <<_ACEOF
28741 /* confdefs.h. */
28742 _ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h. */
28746 $ac_includes_default
28747 #include <$ac_header>
28748 _ACEOF
28749 rm -f conftest.$ac_objext
28750 if { (ac_try="$ac_compile"
28751 case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28754 esac
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_compile") 2>conftest.er1
28757 ac_status=$?
28758 grep -v '^ *+' conftest.er1 >conftest.err
28759 rm -f conftest.er1
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } &&
28763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28764 { (case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_try") 2>&5
28770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest.$ac_objext'
28774 { (case "(($ac_try" in
28775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28777 esac
28778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779 (eval "$ac_try") 2>&5
28780 ac_status=$?
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 ac_header_compiler=yes
28784 else
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 ac_header_compiler=no
28791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793 echo "${ECHO_T}$ac_header_compiler" >&6; }
28795 # Is the header present?
28796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28798 cat >conftest.$ac_ext <<_ACEOF
28799 /* confdefs.h. */
28800 _ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h. */
28804 #include <$ac_header>
28805 _ACEOF
28806 if { (ac_try="$ac_cpp conftest.$ac_ext"
28807 case "(($ac_try" in
28808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809 *) ac_try_echo=$ac_try;;
28810 esac
28811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28813 ac_status=$?
28814 grep -v '^ *+' conftest.er1 >conftest.err
28815 rm -f conftest.er1
28816 cat conftest.err >&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } >/dev/null; then
28819 if test -s conftest.err; then
28820 ac_cpp_err=$ac_c_preproc_warn_flag
28821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28822 else
28823 ac_cpp_err=
28825 else
28826 ac_cpp_err=yes
28828 if test -z "$ac_cpp_err"; then
28829 ac_header_preproc=yes
28830 else
28831 echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28834 ac_header_preproc=no
28837 rm -f conftest.err conftest.$ac_ext
28838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839 echo "${ECHO_T}$ac_header_preproc" >&6; }
28841 # So? What about this header?
28842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28843 yes:no: )
28844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28848 ac_header_preproc=yes
28850 no:yes:* )
28851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28863 ( cat <<\_ASBOX
28864 ## ----------------------------------- ##
28865 ## Report this to llvmbugs@cs.uiuc.edu ##
28866 ## ----------------------------------- ##
28867 _ASBOX
28868 ) | sed "s/^/$as_me: WARNING: /" >&2
28870 esac
28871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28875 else
28876 eval "$as_ac_Header=\$ac_header_preproc"
28878 ac_res=`eval echo '${'$as_ac_Header'}'`
28879 { echo "$as_me:$LINENO: result: $ac_res" >&5
28880 echo "${ECHO_T}$ac_res" >&6; }
28883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28884 cat >>confdefs.h <<_ACEOF
28885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28886 _ACEOF
28890 done
28898 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28907 ac_res=`eval echo '${'$as_ac_Header'}'`
28908 { echo "$as_me:$LINENO: result: $ac_res" >&5
28909 echo "${ECHO_T}$ac_res" >&6; }
28910 else
28911 # Is the header compilable?
28912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28914 cat >conftest.$ac_ext <<_ACEOF
28915 /* confdefs.h. */
28916 _ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h. */
28920 $ac_includes_default
28921 #include <$ac_header>
28922 _ACEOF
28923 rm -f conftest.$ac_objext
28924 if { (ac_try="$ac_compile"
28925 case "(($ac_try" in
28926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28927 *) ac_try_echo=$ac_try;;
28928 esac
28929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28930 (eval "$ac_compile") 2>conftest.er1
28931 ac_status=$?
28932 grep -v '^ *+' conftest.er1 >conftest.err
28933 rm -f conftest.er1
28934 cat conftest.err >&5
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); } &&
28937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28938 { (case "(($ac_try" in
28939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940 *) ac_try_echo=$ac_try;;
28941 esac
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943 (eval "$ac_try") 2>&5
28944 ac_status=$?
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest.$ac_objext'
28948 { (case "(($ac_try" in
28949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950 *) ac_try_echo=$ac_try;;
28951 esac
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953 (eval "$ac_try") 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; }; then
28957 ac_header_compiler=yes
28958 else
28959 echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 ac_header_compiler=no
28965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28967 echo "${ECHO_T}$ac_header_compiler" >&6; }
28969 # Is the header present?
28970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28972 cat >conftest.$ac_ext <<_ACEOF
28973 /* confdefs.h. */
28974 _ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28978 #include <$ac_header>
28979 _ACEOF
28980 if { (ac_try="$ac_cpp conftest.$ac_ext"
28981 case "(($ac_try" in
28982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983 *) ac_try_echo=$ac_try;;
28984 esac
28985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28987 ac_status=$?
28988 grep -v '^ *+' conftest.er1 >conftest.err
28989 rm -f conftest.er1
28990 cat conftest.err >&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); } >/dev/null; then
28993 if test -s conftest.err; then
28994 ac_cpp_err=$ac_c_preproc_warn_flag
28995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28996 else
28997 ac_cpp_err=
28999 else
29000 ac_cpp_err=yes
29002 if test -z "$ac_cpp_err"; then
29003 ac_header_preproc=yes
29004 else
29005 echo "$as_me: failed program was:" >&5
29006 sed 's/^/| /' conftest.$ac_ext >&5
29008 ac_header_preproc=no
29011 rm -f conftest.err conftest.$ac_ext
29012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29013 echo "${ECHO_T}$ac_header_preproc" >&6; }
29015 # So? What about this header?
29016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29017 yes:no: )
29018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29022 ac_header_preproc=yes
29024 no:yes:* )
29025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29037 ( cat <<\_ASBOX
29038 ## ----------------------------------- ##
29039 ## Report this to llvmbugs@cs.uiuc.edu ##
29040 ## ----------------------------------- ##
29041 _ASBOX
29042 ) | sed "s/^/$as_me: WARNING: /" >&2
29044 esac
29045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29049 else
29050 eval "$as_ac_Header=\$ac_header_preproc"
29052 ac_res=`eval echo '${'$as_ac_Header'}'`
29053 { echo "$as_me:$LINENO: result: $ac_res" >&5
29054 echo "${ECHO_T}$ac_res" >&6; }
29057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29058 cat >>confdefs.h <<_ACEOF
29059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29060 _ACEOF
29064 done
29067 for ac_header in windows.h
29069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29074 echo $ECHO_N "(cached) $ECHO_C" >&6
29076 ac_res=`eval echo '${'$as_ac_Header'}'`
29077 { echo "$as_me:$LINENO: result: $ac_res" >&5
29078 echo "${ECHO_T}$ac_res" >&6; }
29079 else
29080 # Is the header compilable?
29081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29083 cat >conftest.$ac_ext <<_ACEOF
29084 /* confdefs.h. */
29085 _ACEOF
29086 cat confdefs.h >>conftest.$ac_ext
29087 cat >>conftest.$ac_ext <<_ACEOF
29088 /* end confdefs.h. */
29089 $ac_includes_default
29090 #include <$ac_header>
29091 _ACEOF
29092 rm -f conftest.$ac_objext
29093 if { (ac_try="$ac_compile"
29094 case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29097 esac
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_compile") 2>conftest.er1
29100 ac_status=$?
29101 grep -v '^ *+' conftest.er1 >conftest.err
29102 rm -f conftest.er1
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } &&
29106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29107 { (case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29110 esac
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_try") 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; } &&
29116 { ac_try='test -s conftest.$ac_objext'
29117 { (case "(($ac_try" in
29118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119 *) ac_try_echo=$ac_try;;
29120 esac
29121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122 (eval "$ac_try") 2>&5
29123 ac_status=$?
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; }; then
29126 ac_header_compiler=yes
29127 else
29128 echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29131 ac_header_compiler=no
29134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29136 echo "${ECHO_T}$ac_header_compiler" >&6; }
29138 # Is the header present?
29139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29141 cat >conftest.$ac_ext <<_ACEOF
29142 /* confdefs.h. */
29143 _ACEOF
29144 cat confdefs.h >>conftest.$ac_ext
29145 cat >>conftest.$ac_ext <<_ACEOF
29146 /* end confdefs.h. */
29147 #include <$ac_header>
29148 _ACEOF
29149 if { (ac_try="$ac_cpp conftest.$ac_ext"
29150 case "(($ac_try" in
29151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152 *) ac_try_echo=$ac_try;;
29153 esac
29154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29156 ac_status=$?
29157 grep -v '^ *+' conftest.er1 >conftest.err
29158 rm -f conftest.er1
29159 cat conftest.err >&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); } >/dev/null; then
29162 if test -s conftest.err; then
29163 ac_cpp_err=$ac_c_preproc_warn_flag
29164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29165 else
29166 ac_cpp_err=
29168 else
29169 ac_cpp_err=yes
29171 if test -z "$ac_cpp_err"; then
29172 ac_header_preproc=yes
29173 else
29174 echo "$as_me: failed program was:" >&5
29175 sed 's/^/| /' conftest.$ac_ext >&5
29177 ac_header_preproc=no
29180 rm -f conftest.err conftest.$ac_ext
29181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29182 echo "${ECHO_T}$ac_header_preproc" >&6; }
29184 # So? What about this header?
29185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29186 yes:no: )
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29191 ac_header_preproc=yes
29193 no:yes:* )
29194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29206 ( cat <<\_ASBOX
29207 ## ----------------------------------- ##
29208 ## Report this to llvmbugs@cs.uiuc.edu ##
29209 ## ----------------------------------- ##
29210 _ASBOX
29211 ) | sed "s/^/$as_me: WARNING: /" >&2
29213 esac
29214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29218 else
29219 eval "$as_ac_Header=\$ac_header_preproc"
29221 ac_res=`eval echo '${'$as_ac_Header'}'`
29222 { echo "$as_me:$LINENO: result: $ac_res" >&5
29223 echo "${ECHO_T}$ac_res" >&6; }
29226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29227 cat >>confdefs.h <<_ACEOF
29228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29229 _ACEOF
29233 done
29239 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29246 echo $ECHO_N "(cached) $ECHO_C" >&6
29248 ac_res=`eval echo '${'$as_ac_Header'}'`
29249 { echo "$as_me:$LINENO: result: $ac_res" >&5
29250 echo "${ECHO_T}$ac_res" >&6; }
29251 else
29252 # Is the header compilable?
29253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29255 cat >conftest.$ac_ext <<_ACEOF
29256 /* confdefs.h. */
29257 _ACEOF
29258 cat confdefs.h >>conftest.$ac_ext
29259 cat >>conftest.$ac_ext <<_ACEOF
29260 /* end confdefs.h. */
29261 $ac_includes_default
29262 #include <$ac_header>
29263 _ACEOF
29264 rm -f conftest.$ac_objext
29265 if { (ac_try="$ac_compile"
29266 case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269 esac
29270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_compile") 2>conftest.er1
29272 ac_status=$?
29273 grep -v '^ *+' conftest.er1 >conftest.err
29274 rm -f conftest.er1
29275 cat conftest.err >&5
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); } &&
29278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29279 { (case "(($ac_try" in
29280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281 *) ac_try_echo=$ac_try;;
29282 esac
29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284 (eval "$ac_try") 2>&5
29285 ac_status=$?
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; } &&
29288 { ac_try='test -s conftest.$ac_objext'
29289 { (case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29292 esac
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_try") 2>&5
29295 ac_status=$?
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; }; then
29298 ac_header_compiler=yes
29299 else
29300 echo "$as_me: failed program was:" >&5
29301 sed 's/^/| /' conftest.$ac_ext >&5
29303 ac_header_compiler=no
29306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29308 echo "${ECHO_T}$ac_header_compiler" >&6; }
29310 # Is the header present?
29311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29313 cat >conftest.$ac_ext <<_ACEOF
29314 /* confdefs.h. */
29315 _ACEOF
29316 cat confdefs.h >>conftest.$ac_ext
29317 cat >>conftest.$ac_ext <<_ACEOF
29318 /* end confdefs.h. */
29319 #include <$ac_header>
29320 _ACEOF
29321 if { (ac_try="$ac_cpp conftest.$ac_ext"
29322 case "(($ac_try" in
29323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29324 *) ac_try_echo=$ac_try;;
29325 esac
29326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29328 ac_status=$?
29329 grep -v '^ *+' conftest.er1 >conftest.err
29330 rm -f conftest.er1
29331 cat conftest.err >&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); } >/dev/null; then
29334 if test -s conftest.err; then
29335 ac_cpp_err=$ac_c_preproc_warn_flag
29336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29337 else
29338 ac_cpp_err=
29340 else
29341 ac_cpp_err=yes
29343 if test -z "$ac_cpp_err"; then
29344 ac_header_preproc=yes
29345 else
29346 echo "$as_me: failed program was:" >&5
29347 sed 's/^/| /' conftest.$ac_ext >&5
29349 ac_header_preproc=no
29352 rm -f conftest.err conftest.$ac_ext
29353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29354 echo "${ECHO_T}$ac_header_preproc" >&6; }
29356 # So? What about this header?
29357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29358 yes:no: )
29359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29363 ac_header_preproc=yes
29365 no:yes:* )
29366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29378 ( cat <<\_ASBOX
29379 ## ----------------------------------- ##
29380 ## Report this to llvmbugs@cs.uiuc.edu ##
29381 ## ----------------------------------- ##
29382 _ASBOX
29383 ) | sed "s/^/$as_me: WARNING: /" >&2
29385 esac
29386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29389 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 else
29391 eval "$as_ac_Header=\$ac_header_preproc"
29393 ac_res=`eval echo '${'$as_ac_Header'}'`
29394 { echo "$as_me:$LINENO: result: $ac_res" >&5
29395 echo "${ECHO_T}$ac_res" >&6; }
29398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29399 cat >>confdefs.h <<_ACEOF
29400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29401 _ACEOF
29405 done
29410 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29417 echo $ECHO_N "(cached) $ECHO_C" >&6
29419 ac_res=`eval echo '${'$as_ac_Header'}'`
29420 { echo "$as_me:$LINENO: result: $ac_res" >&5
29421 echo "${ECHO_T}$ac_res" >&6; }
29422 else
29423 # Is the header compilable?
29424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29426 cat >conftest.$ac_ext <<_ACEOF
29427 /* confdefs.h. */
29428 _ACEOF
29429 cat confdefs.h >>conftest.$ac_ext
29430 cat >>conftest.$ac_ext <<_ACEOF
29431 /* end confdefs.h. */
29432 $ac_includes_default
29433 #include <$ac_header>
29434 _ACEOF
29435 rm -f conftest.$ac_objext
29436 if { (ac_try="$ac_compile"
29437 case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29440 esac
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_compile") 2>conftest.er1
29443 ac_status=$?
29444 grep -v '^ *+' conftest.er1 >conftest.err
29445 rm -f conftest.er1
29446 cat conftest.err >&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); } &&
29449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29450 { (case "(($ac_try" in
29451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452 *) ac_try_echo=$ac_try;;
29453 esac
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455 (eval "$ac_try") 2>&5
29456 ac_status=$?
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; } &&
29459 { ac_try='test -s conftest.$ac_objext'
29460 { (case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29463 esac
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_try") 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; }; then
29469 ac_header_compiler=yes
29470 else
29471 echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29474 ac_header_compiler=no
29477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29479 echo "${ECHO_T}$ac_header_compiler" >&6; }
29481 # Is the header present?
29482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29484 cat >conftest.$ac_ext <<_ACEOF
29485 /* confdefs.h. */
29486 _ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h. */
29490 #include <$ac_header>
29491 _ACEOF
29492 if { (ac_try="$ac_cpp conftest.$ac_ext"
29493 case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29499 ac_status=$?
29500 grep -v '^ *+' conftest.er1 >conftest.err
29501 rm -f conftest.er1
29502 cat conftest.err >&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); } >/dev/null; then
29505 if test -s conftest.err; then
29506 ac_cpp_err=$ac_c_preproc_warn_flag
29507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29508 else
29509 ac_cpp_err=
29511 else
29512 ac_cpp_err=yes
29514 if test -z "$ac_cpp_err"; then
29515 ac_header_preproc=yes
29516 else
29517 echo "$as_me: failed program was:" >&5
29518 sed 's/^/| /' conftest.$ac_ext >&5
29520 ac_header_preproc=no
29523 rm -f conftest.err conftest.$ac_ext
29524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29525 echo "${ECHO_T}$ac_header_preproc" >&6; }
29527 # So? What about this header?
29528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29529 yes:no: )
29530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29534 ac_header_preproc=yes
29536 no:yes:* )
29537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29549 ( cat <<\_ASBOX
29550 ## ----------------------------------- ##
29551 ## Report this to llvmbugs@cs.uiuc.edu ##
29552 ## ----------------------------------- ##
29553 _ASBOX
29554 ) | sed "s/^/$as_me: WARNING: /" >&2
29556 esac
29557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29560 echo $ECHO_N "(cached) $ECHO_C" >&6
29561 else
29562 eval "$as_ac_Header=\$ac_header_preproc"
29564 ac_res=`eval echo '${'$as_ac_Header'}'`
29565 { echo "$as_me:$LINENO: result: $ac_res" >&5
29566 echo "${ECHO_T}$ac_res" >&6; }
29569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29570 cat >>confdefs.h <<_ACEOF
29571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29572 _ACEOF
29576 done
29578 if test "$ENABLE_THREADS" -eq 1 ; then
29580 for ac_header in pthread.h
29582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29589 ac_res=`eval echo '${'$as_ac_Header'}'`
29590 { echo "$as_me:$LINENO: result: $ac_res" >&5
29591 echo "${ECHO_T}$ac_res" >&6; }
29592 else
29593 # Is the header compilable?
29594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29596 cat >conftest.$ac_ext <<_ACEOF
29597 /* confdefs.h. */
29598 _ACEOF
29599 cat confdefs.h >>conftest.$ac_ext
29600 cat >>conftest.$ac_ext <<_ACEOF
29601 /* end confdefs.h. */
29602 $ac_includes_default
29603 #include <$ac_header>
29604 _ACEOF
29605 rm -f conftest.$ac_objext
29606 if { (ac_try="$ac_compile"
29607 case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29610 esac
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_compile") 2>conftest.er1
29613 ac_status=$?
29614 grep -v '^ *+' conftest.er1 >conftest.err
29615 rm -f conftest.er1
29616 cat conftest.err >&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); } &&
29619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29620 { (case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29623 esac
29624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_try") 2>&5
29626 ac_status=$?
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); }; } &&
29629 { ac_try='test -s conftest.$ac_objext'
29630 { (case "(($ac_try" in
29631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29632 *) ac_try_echo=$ac_try;;
29633 esac
29634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29635 (eval "$ac_try") 2>&5
29636 ac_status=$?
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); }; }; then
29639 ac_header_compiler=yes
29640 else
29641 echo "$as_me: failed program was:" >&5
29642 sed 's/^/| /' conftest.$ac_ext >&5
29644 ac_header_compiler=no
29647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29649 echo "${ECHO_T}$ac_header_compiler" >&6; }
29651 # Is the header present?
29652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29654 cat >conftest.$ac_ext <<_ACEOF
29655 /* confdefs.h. */
29656 _ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h. */
29660 #include <$ac_header>
29661 _ACEOF
29662 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
29669 ac_status=$?
29670 grep -v '^ *+' conftest.er1 >conftest.err
29671 rm -f conftest.er1
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } >/dev/null; then
29675 if test -s conftest.err; then
29676 ac_cpp_err=$ac_c_preproc_warn_flag
29677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29678 else
29679 ac_cpp_err=
29681 else
29682 ac_cpp_err=yes
29684 if test -z "$ac_cpp_err"; then
29685 ac_header_preproc=yes
29686 else
29687 echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29690 ac_header_preproc=no
29693 rm -f conftest.err conftest.$ac_ext
29694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29695 echo "${ECHO_T}$ac_header_preproc" >&6; }
29697 # So? What about this header?
29698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29699 yes:no: )
29700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29704 ac_header_preproc=yes
29706 no:yes:* )
29707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29719 ( cat <<\_ASBOX
29720 ## ----------------------------------- ##
29721 ## Report this to llvmbugs@cs.uiuc.edu ##
29722 ## ----------------------------------- ##
29723 _ASBOX
29724 ) | sed "s/^/$as_me: WARNING: /" >&2
29726 esac
29727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29731 else
29732 eval "$as_ac_Header=\$ac_header_preproc"
29734 ac_res=`eval echo '${'$as_ac_Header'}'`
29735 { echo "$as_me:$LINENO: result: $ac_res" >&5
29736 echo "${ECHO_T}$ac_res" >&6; }
29739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29740 cat >>confdefs.h <<_ACEOF
29741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29742 _ACEOF
29743 HAVE_PTHREAD=1
29745 else
29746 HAVE_PTHREAD=0
29750 done
29752 else
29753 HAVE_PTHREAD=0
29757 if test -n "$have_libffi" ; then
29760 for ac_header in ffi.h ffi/ffi.h
29762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29767 echo $ECHO_N "(cached) $ECHO_C" >&6
29769 ac_res=`eval echo '${'$as_ac_Header'}'`
29770 { echo "$as_me:$LINENO: result: $ac_res" >&5
29771 echo "${ECHO_T}$ac_res" >&6; }
29772 else
29773 # Is the header compilable?
29774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29776 cat >conftest.$ac_ext <<_ACEOF
29777 /* confdefs.h. */
29778 _ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h. */
29782 $ac_includes_default
29783 #include <$ac_header>
29784 _ACEOF
29785 rm -f conftest.$ac_objext
29786 if { (ac_try="$ac_compile"
29787 case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29790 esac
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_compile") 2>conftest.er1
29793 ac_status=$?
29794 grep -v '^ *+' conftest.er1 >conftest.err
29795 rm -f conftest.er1
29796 cat conftest.err >&5
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); } &&
29799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29800 { (case "(($ac_try" in
29801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802 *) ac_try_echo=$ac_try;;
29803 esac
29804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805 (eval "$ac_try") 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; } &&
29809 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; }; then
29819 ac_header_compiler=yes
29820 else
29821 echo "$as_me: failed program was:" >&5
29822 sed 's/^/| /' conftest.$ac_ext >&5
29824 ac_header_compiler=no
29827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29829 echo "${ECHO_T}$ac_header_compiler" >&6; }
29831 # Is the header present?
29832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29834 cat >conftest.$ac_ext <<_ACEOF
29835 /* confdefs.h. */
29836 _ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h. */
29840 #include <$ac_header>
29841 _ACEOF
29842 if { (ac_try="$ac_cpp conftest.$ac_ext"
29843 case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29846 esac
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29849 ac_status=$?
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } >/dev/null; then
29855 if test -s conftest.err; then
29856 ac_cpp_err=$ac_c_preproc_warn_flag
29857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29858 else
29859 ac_cpp_err=
29861 else
29862 ac_cpp_err=yes
29864 if test -z "$ac_cpp_err"; then
29865 ac_header_preproc=yes
29866 else
29867 echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29870 ac_header_preproc=no
29873 rm -f conftest.err conftest.$ac_ext
29874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29875 echo "${ECHO_T}$ac_header_preproc" >&6; }
29877 # So? What about this header?
29878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29879 yes:no: )
29880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29884 ac_header_preproc=yes
29886 no:yes:* )
29887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29899 ( cat <<\_ASBOX
29900 ## ----------------------------------- ##
29901 ## Report this to llvmbugs@cs.uiuc.edu ##
29902 ## ----------------------------------- ##
29903 _ASBOX
29904 ) | sed "s/^/$as_me: WARNING: /" >&2
29906 esac
29907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29911 else
29912 eval "$as_ac_Header=\$ac_header_preproc"
29914 ac_res=`eval echo '${'$as_ac_Header'}'`
29915 { echo "$as_me:$LINENO: result: $ac_res" >&5
29916 echo "${ECHO_T}$ac_res" >&6; }
29919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29920 cat >>confdefs.h <<_ACEOF
29921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29922 _ACEOF
29923 HAVE_FFI=1
29927 done
29933 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29934 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29935 if test "${ac_cv_huge_val_sanity+set}" = set; then
29936 echo $ECHO_N "(cached) $ECHO_C" >&6
29937 else
29939 ac_ext=cpp
29940 ac_cpp='$CXXCPP $CPPFLAGS'
29941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29945 CXXFLAGS=-pedantic
29946 if test "$cross_compiling" = yes; then
29947 ac_cv_huge_val_sanity=yes
29948 else
29949 cat >conftest.$ac_ext <<_ACEOF
29950 /* confdefs.h. */
29951 _ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29955 #include <math.h>
29957 main ()
29959 double x = HUGE_VAL; return x != x;
29961 return 0;
29963 _ACEOF
29964 rm -f conftest$ac_exeext
29965 if { (ac_try="$ac_link"
29966 case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29969 esac
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_link") 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29975 { (case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29978 esac
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_try") 2>&5
29981 ac_status=$?
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; }; then
29984 ac_cv_huge_val_sanity=yes
29985 else
29986 echo "$as_me: program exited with status $ac_status" >&5
29987 echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29990 ( exit $ac_status )
29991 ac_cv_huge_val_sanity=no
29993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29997 ac_ext=c
29998 ac_cpp='$CPP $CPPFLAGS'
29999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30005 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30006 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30007 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30010 { echo "$as_me:$LINENO: checking for pid_t" >&5
30011 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30012 if test "${ac_cv_type_pid_t+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30014 else
30015 cat >conftest.$ac_ext <<_ACEOF
30016 /* confdefs.h. */
30017 _ACEOF
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h. */
30021 $ac_includes_default
30022 typedef pid_t ac__type_new_;
30024 main ()
30026 if ((ac__type_new_ *) 0)
30027 return 0;
30028 if (sizeof (ac__type_new_))
30029 return 0;
30031 return 0;
30033 _ACEOF
30034 rm -f conftest.$ac_objext
30035 if { (ac_try="$ac_compile"
30036 case "(($ac_try" in
30037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038 *) ac_try_echo=$ac_try;;
30039 esac
30040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041 (eval "$ac_compile") 2>conftest.er1
30042 ac_status=$?
30043 grep -v '^ *+' conftest.er1 >conftest.err
30044 rm -f conftest.er1
30045 cat conftest.err >&5
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } &&
30048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30049 { (case "(($ac_try" in
30050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30051 *) ac_try_echo=$ac_try;;
30052 esac
30053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30054 (eval "$ac_try") 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; } &&
30058 { ac_try='test -s conftest.$ac_objext'
30059 { (case "(($ac_try" in
30060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30062 esac
30063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_try") 2>&5
30065 ac_status=$?
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; }; then
30068 ac_cv_type_pid_t=yes
30069 else
30070 echo "$as_me: failed program was:" >&5
30071 sed 's/^/| /' conftest.$ac_ext >&5
30073 ac_cv_type_pid_t=no
30076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30078 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30079 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30080 if test $ac_cv_type_pid_t = yes; then
30082 else
30084 cat >>confdefs.h <<_ACEOF
30085 #define pid_t int
30086 _ACEOF
30090 { echo "$as_me:$LINENO: checking for size_t" >&5
30091 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30092 if test "${ac_cv_type_size_t+set}" = set; then
30093 echo $ECHO_N "(cached) $ECHO_C" >&6
30094 else
30095 cat >conftest.$ac_ext <<_ACEOF
30096 /* confdefs.h. */
30097 _ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h. */
30101 $ac_includes_default
30102 typedef size_t ac__type_new_;
30104 main ()
30106 if ((ac__type_new_ *) 0)
30107 return 0;
30108 if (sizeof (ac__type_new_))
30109 return 0;
30111 return 0;
30113 _ACEOF
30114 rm -f conftest.$ac_objext
30115 if { (ac_try="$ac_compile"
30116 case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30119 esac
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_compile") 2>conftest.er1
30122 ac_status=$?
30123 grep -v '^ *+' conftest.er1 >conftest.err
30124 rm -f conftest.er1
30125 cat conftest.err >&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); } &&
30128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30129 { (case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30132 esac
30133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30134 (eval "$ac_try") 2>&5
30135 ac_status=$?
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); }; } &&
30138 { ac_try='test -s conftest.$ac_objext'
30139 { (case "(($ac_try" in
30140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30141 *) ac_try_echo=$ac_try;;
30142 esac
30143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30144 (eval "$ac_try") 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; }; then
30148 ac_cv_type_size_t=yes
30149 else
30150 echo "$as_me: failed program was:" >&5
30151 sed 's/^/| /' conftest.$ac_ext >&5
30153 ac_cv_type_size_t=no
30156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30158 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30159 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30160 if test $ac_cv_type_size_t = yes; then
30162 else
30164 cat >>confdefs.h <<_ACEOF
30165 #define size_t unsigned int
30166 _ACEOF
30170 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30171 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30172 if test "${ac_cv_type_signal+set}" = set; then
30173 echo $ECHO_N "(cached) $ECHO_C" >&6
30174 else
30175 cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h. */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h. */
30181 #include <sys/types.h>
30182 #include <signal.h>
30185 main ()
30187 return *(signal (0, 0)) (0) == 1;
30189 return 0;
30191 _ACEOF
30192 rm -f conftest.$ac_objext
30193 if { (ac_try="$ac_compile"
30194 case "(($ac_try" in
30195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30196 *) ac_try_echo=$ac_try;;
30197 esac
30198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30199 (eval "$ac_compile") 2>conftest.er1
30200 ac_status=$?
30201 grep -v '^ *+' conftest.er1 >conftest.err
30202 rm -f conftest.er1
30203 cat conftest.err >&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); } &&
30206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30207 { (case "(($ac_try" in
30208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209 *) ac_try_echo=$ac_try;;
30210 esac
30211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212 (eval "$ac_try") 2>&5
30213 ac_status=$?
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; } &&
30216 { ac_try='test -s conftest.$ac_objext'
30217 { (case "(($ac_try" in
30218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219 *) ac_try_echo=$ac_try;;
30220 esac
30221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30222 (eval "$ac_try") 2>&5
30223 ac_status=$?
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; }; then
30226 ac_cv_type_signal=int
30227 else
30228 echo "$as_me: failed program was:" >&5
30229 sed 's/^/| /' conftest.$ac_ext >&5
30231 ac_cv_type_signal=void
30234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30236 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30237 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30239 cat >>confdefs.h <<_ACEOF
30240 #define RETSIGTYPE $ac_cv_type_signal
30241 _ACEOF
30244 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30245 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30246 if test "${ac_cv_struct_tm+set}" = set; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30248 else
30249 cat >conftest.$ac_ext <<_ACEOF
30250 /* confdefs.h. */
30251 _ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h. */
30255 #include <sys/types.h>
30256 #include <time.h>
30259 main ()
30261 struct tm *tp; tp->tm_sec;
30263 return 0;
30265 _ACEOF
30266 rm -f conftest.$ac_objext
30267 if { (ac_try="$ac_compile"
30268 case "(($ac_try" in
30269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270 *) ac_try_echo=$ac_try;;
30271 esac
30272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273 (eval "$ac_compile") 2>conftest.er1
30274 ac_status=$?
30275 grep -v '^ *+' conftest.er1 >conftest.err
30276 rm -f conftest.er1
30277 cat conftest.err >&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); } &&
30280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30281 { (case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30284 esac
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286 (eval "$ac_try") 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; } &&
30290 { ac_try='test -s conftest.$ac_objext'
30291 { (case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30294 esac
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_try") 2>&5
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; }; then
30300 ac_cv_struct_tm=time.h
30301 else
30302 echo "$as_me: failed program was:" >&5
30303 sed 's/^/| /' conftest.$ac_ext >&5
30305 ac_cv_struct_tm=sys/time.h
30308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30310 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30311 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30312 if test $ac_cv_struct_tm = sys/time.h; then
30314 cat >>confdefs.h <<\_ACEOF
30315 #define TM_IN_SYS_TIME 1
30316 _ACEOF
30320 { echo "$as_me:$LINENO: checking for int64_t" >&5
30321 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30322 if test "${ac_cv_type_int64_t+set}" = set; then
30323 echo $ECHO_N "(cached) $ECHO_C" >&6
30324 else
30325 cat >conftest.$ac_ext <<_ACEOF
30326 /* confdefs.h. */
30327 _ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h. */
30331 $ac_includes_default
30332 typedef int64_t ac__type_new_;
30334 main ()
30336 if ((ac__type_new_ *) 0)
30337 return 0;
30338 if (sizeof (ac__type_new_))
30339 return 0;
30341 return 0;
30343 _ACEOF
30344 rm -f conftest.$ac_objext
30345 if { (ac_try="$ac_compile"
30346 case "(($ac_try" in
30347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348 *) ac_try_echo=$ac_try;;
30349 esac
30350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351 (eval "$ac_compile") 2>conftest.er1
30352 ac_status=$?
30353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
30358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30359 { (case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30362 esac
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_try") 2>&5
30365 ac_status=$?
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; } &&
30368 { ac_try='test -s conftest.$ac_objext'
30369 { (case "(($ac_try" in
30370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371 *) ac_try_echo=$ac_try;;
30372 esac
30373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30374 (eval "$ac_try") 2>&5
30375 ac_status=$?
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
30378 ac_cv_type_int64_t=yes
30379 else
30380 echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30383 ac_cv_type_int64_t=no
30386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30388 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30389 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30390 if test $ac_cv_type_int64_t = yes; then
30392 cat >>confdefs.h <<_ACEOF
30393 #define HAVE_INT64_T 1
30394 _ACEOF
30397 else
30398 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30399 echo "$as_me: error: Type int64_t required but not found" >&2;}
30400 { (exit 1); exit 1; }; }
30403 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30404 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30405 if test "${ac_cv_type_uint64_t+set}" = set; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407 else
30408 cat >conftest.$ac_ext <<_ACEOF
30409 /* confdefs.h. */
30410 _ACEOF
30411 cat confdefs.h >>conftest.$ac_ext
30412 cat >>conftest.$ac_ext <<_ACEOF
30413 /* end confdefs.h. */
30414 $ac_includes_default
30415 typedef uint64_t ac__type_new_;
30417 main ()
30419 if ((ac__type_new_ *) 0)
30420 return 0;
30421 if (sizeof (ac__type_new_))
30422 return 0;
30424 return 0;
30426 _ACEOF
30427 rm -f conftest.$ac_objext
30428 if { (ac_try="$ac_compile"
30429 case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30432 esac
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_compile") 2>conftest.er1
30435 ac_status=$?
30436 grep -v '^ *+' conftest.er1 >conftest.err
30437 rm -f conftest.er1
30438 cat conftest.err >&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); } &&
30441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30442 { (case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30445 esac
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_try") 2>&5
30448 ac_status=$?
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; } &&
30451 { ac_try='test -s conftest.$ac_objext'
30452 { (case "(($ac_try" in
30453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454 *) ac_try_echo=$ac_try;;
30455 esac
30456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30457 (eval "$ac_try") 2>&5
30458 ac_status=$?
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
30461 ac_cv_type_uint64_t=yes
30462 else
30463 echo "$as_me: failed program was:" >&5
30464 sed 's/^/| /' conftest.$ac_ext >&5
30466 ac_cv_type_uint64_t=no
30469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30471 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30472 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30473 if test $ac_cv_type_uint64_t = yes; then
30475 cat >>confdefs.h <<_ACEOF
30476 #define HAVE_UINT64_T 1
30477 _ACEOF
30480 else
30481 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30482 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30483 if test "${ac_cv_type_u_int64_t+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30485 else
30486 cat >conftest.$ac_ext <<_ACEOF
30487 /* confdefs.h. */
30488 _ACEOF
30489 cat confdefs.h >>conftest.$ac_ext
30490 cat >>conftest.$ac_ext <<_ACEOF
30491 /* end confdefs.h. */
30492 $ac_includes_default
30493 typedef u_int64_t ac__type_new_;
30495 main ()
30497 if ((ac__type_new_ *) 0)
30498 return 0;
30499 if (sizeof (ac__type_new_))
30500 return 0;
30502 return 0;
30504 _ACEOF
30505 rm -f conftest.$ac_objext
30506 if { (ac_try="$ac_compile"
30507 case "(($ac_try" in
30508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30509 *) ac_try_echo=$ac_try;;
30510 esac
30511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30512 (eval "$ac_compile") 2>conftest.er1
30513 ac_status=$?
30514 grep -v '^ *+' conftest.er1 >conftest.err
30515 rm -f conftest.er1
30516 cat conftest.err >&5
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } &&
30519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30520 { (case "(($ac_try" in
30521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30523 esac
30524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30525 (eval "$ac_try") 2>&5
30526 ac_status=$?
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); }; } &&
30529 { ac_try='test -s conftest.$ac_objext'
30530 { (case "(($ac_try" in
30531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532 *) ac_try_echo=$ac_try;;
30533 esac
30534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535 (eval "$ac_try") 2>&5
30536 ac_status=$?
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); }; }; then
30539 ac_cv_type_u_int64_t=yes
30540 else
30541 echo "$as_me: failed program was:" >&5
30542 sed 's/^/| /' conftest.$ac_ext >&5
30544 ac_cv_type_u_int64_t=no
30547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30549 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30550 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30551 if test $ac_cv_type_u_int64_t = yes; then
30553 cat >>confdefs.h <<_ACEOF
30554 #define HAVE_U_INT64_T 1
30555 _ACEOF
30558 else
30559 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30560 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30561 { (exit 1); exit 1; }; }
30575 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30581 echo $ECHO_N "(cached) $ECHO_C" >&6
30582 else
30583 cat >conftest.$ac_ext <<_ACEOF
30584 /* confdefs.h. */
30585 _ACEOF
30586 cat confdefs.h >>conftest.$ac_ext
30587 cat >>conftest.$ac_ext <<_ACEOF
30588 /* end confdefs.h. */
30589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30591 #define $ac_func innocuous_$ac_func
30593 /* System header to define __stub macros and hopefully few prototypes,
30594 which can conflict with char $ac_func (); below.
30595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30596 <limits.h> exists even on freestanding compilers. */
30598 #ifdef __STDC__
30599 # include <limits.h>
30600 #else
30601 # include <assert.h>
30602 #endif
30604 #undef $ac_func
30606 /* Override any GCC internal prototype to avoid an error.
30607 Use char because int might match the return type of a GCC
30608 builtin and then its argument prototype would still apply. */
30609 #ifdef __cplusplus
30610 extern "C"
30611 #endif
30612 char $ac_func ();
30613 /* The GNU C library defines this for functions which it implements
30614 to always fail with ENOSYS. Some functions are actually named
30615 something starting with __ and the normal name is an alias. */
30616 #if defined __stub_$ac_func || defined __stub___$ac_func
30617 choke me
30618 #endif
30621 main ()
30623 return $ac_func ();
30625 return 0;
30627 _ACEOF
30628 rm -f conftest.$ac_objext conftest$ac_exeext
30629 if { (ac_try="$ac_link"
30630 case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30633 esac
30634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_link") 2>conftest.er1
30636 ac_status=$?
30637 grep -v '^ *+' conftest.er1 >conftest.err
30638 rm -f conftest.er1
30639 cat conftest.err >&5
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); } &&
30642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30643 { (case "(($ac_try" in
30644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30645 *) ac_try_echo=$ac_try;;
30646 esac
30647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648 (eval "$ac_try") 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; } &&
30652 { ac_try='test -s conftest$ac_exeext'
30653 { (case "(($ac_try" in
30654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655 *) ac_try_echo=$ac_try;;
30656 esac
30657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658 (eval "$ac_try") 2>&5
30659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }; then
30662 eval "$as_ac_var=yes"
30663 else
30664 echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30667 eval "$as_ac_var=no"
30670 rm -f core conftest.err conftest.$ac_objext \
30671 conftest$ac_exeext conftest.$ac_ext
30673 ac_res=`eval echo '${'$as_ac_var'}'`
30674 { echo "$as_me:$LINENO: result: $ac_res" >&5
30675 echo "${ECHO_T}$ac_res" >&6; }
30676 if test `eval echo '${'$as_ac_var'}'` = yes; then
30677 cat >>confdefs.h <<_ACEOF
30678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30679 _ACEOF
30682 done
30688 for ac_func in powf fmodf strtof round
30690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30694 echo $ECHO_N "(cached) $ECHO_C" >&6
30695 else
30696 cat >conftest.$ac_ext <<_ACEOF
30697 /* confdefs.h. */
30698 _ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h. */
30702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30704 #define $ac_func innocuous_$ac_func
30706 /* System header to define __stub macros and hopefully few prototypes,
30707 which can conflict with char $ac_func (); below.
30708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30709 <limits.h> exists even on freestanding compilers. */
30711 #ifdef __STDC__
30712 # include <limits.h>
30713 #else
30714 # include <assert.h>
30715 #endif
30717 #undef $ac_func
30719 /* Override any GCC internal prototype to avoid an error.
30720 Use char because int might match the return type of a GCC
30721 builtin and then its argument prototype would still apply. */
30722 #ifdef __cplusplus
30723 extern "C"
30724 #endif
30725 char $ac_func ();
30726 /* The GNU C library defines this for functions which it implements
30727 to always fail with ENOSYS. Some functions are actually named
30728 something starting with __ and the normal name is an alias. */
30729 #if defined __stub_$ac_func || defined __stub___$ac_func
30730 choke me
30731 #endif
30734 main ()
30736 return $ac_func ();
30738 return 0;
30740 _ACEOF
30741 rm -f conftest.$ac_objext conftest$ac_exeext
30742 if { (ac_try="$ac_link"
30743 case "(($ac_try" in
30744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745 *) ac_try_echo=$ac_try;;
30746 esac
30747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748 (eval "$ac_link") 2>conftest.er1
30749 ac_status=$?
30750 grep -v '^ *+' conftest.er1 >conftest.err
30751 rm -f conftest.er1
30752 cat conftest.err >&5
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); } &&
30755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30756 { (case "(($ac_try" in
30757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30758 *) ac_try_echo=$ac_try;;
30759 esac
30760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30761 (eval "$ac_try") 2>&5
30762 ac_status=$?
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; } &&
30765 { ac_try='test -s conftest$ac_exeext'
30766 { (case "(($ac_try" in
30767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768 *) ac_try_echo=$ac_try;;
30769 esac
30770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771 (eval "$ac_try") 2>&5
30772 ac_status=$?
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; }; then
30775 eval "$as_ac_var=yes"
30776 else
30777 echo "$as_me: failed program was:" >&5
30778 sed 's/^/| /' conftest.$ac_ext >&5
30780 eval "$as_ac_var=no"
30783 rm -f core conftest.err conftest.$ac_objext \
30784 conftest$ac_exeext conftest.$ac_ext
30786 ac_res=`eval echo '${'$as_ac_var'}'`
30787 { echo "$as_me:$LINENO: result: $ac_res" >&5
30788 echo "${ECHO_T}$ac_res" >&6; }
30789 if test `eval echo '${'$as_ac_var'}'` = yes; then
30790 cat >>confdefs.h <<_ACEOF
30791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30792 _ACEOF
30795 done
30802 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30808 echo $ECHO_N "(cached) $ECHO_C" >&6
30809 else
30810 cat >conftest.$ac_ext <<_ACEOF
30811 /* confdefs.h. */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h. */
30816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30818 #define $ac_func innocuous_$ac_func
30820 /* System header to define __stub macros and hopefully few prototypes,
30821 which can conflict with char $ac_func (); below.
30822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30823 <limits.h> exists even on freestanding compilers. */
30825 #ifdef __STDC__
30826 # include <limits.h>
30827 #else
30828 # include <assert.h>
30829 #endif
30831 #undef $ac_func
30833 /* Override any GCC internal prototype to avoid an error.
30834 Use char because int might match the return type of a GCC
30835 builtin and then its argument prototype would still apply. */
30836 #ifdef __cplusplus
30837 extern "C"
30838 #endif
30839 char $ac_func ();
30840 /* The GNU C library defines this for functions which it implements
30841 to always fail with ENOSYS. Some functions are actually named
30842 something starting with __ and the normal name is an alias. */
30843 #if defined __stub_$ac_func || defined __stub___$ac_func
30844 choke me
30845 #endif
30848 main ()
30850 return $ac_func ();
30852 return 0;
30854 _ACEOF
30855 rm -f conftest.$ac_objext conftest$ac_exeext
30856 if { (ac_try="$ac_link"
30857 case "(($ac_try" in
30858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859 *) ac_try_echo=$ac_try;;
30860 esac
30861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862 (eval "$ac_link") 2>conftest.er1
30863 ac_status=$?
30864 grep -v '^ *+' conftest.er1 >conftest.err
30865 rm -f conftest.er1
30866 cat conftest.err >&5
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868 (exit $ac_status); } &&
30869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30870 { (case "(($ac_try" in
30871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872 *) ac_try_echo=$ac_try;;
30873 esac
30874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875 (eval "$ac_try") 2>&5
30876 ac_status=$?
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; } &&
30879 { ac_try='test -s conftest$ac_exeext'
30880 { (case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30883 esac
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_try") 2>&5
30886 ac_status=$?
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); }; }; then
30889 eval "$as_ac_var=yes"
30890 else
30891 echo "$as_me: failed program was:" >&5
30892 sed 's/^/| /' conftest.$ac_ext >&5
30894 eval "$as_ac_var=no"
30897 rm -f core conftest.err conftest.$ac_objext \
30898 conftest$ac_exeext conftest.$ac_ext
30900 ac_res=`eval echo '${'$as_ac_var'}'`
30901 { echo "$as_me:$LINENO: result: $ac_res" >&5
30902 echo "${ECHO_T}$ac_res" >&6; }
30903 if test `eval echo '${'$as_ac_var'}'` = yes; then
30904 cat >>confdefs.h <<_ACEOF
30905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30906 _ACEOF
30909 done
30914 for ac_func in isatty mkdtemp mkstemp
30916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922 cat >conftest.$ac_ext <<_ACEOF
30923 /* confdefs.h. */
30924 _ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h. */
30928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30930 #define $ac_func innocuous_$ac_func
30932 /* System header to define __stub macros and hopefully few prototypes,
30933 which can conflict with char $ac_func (); below.
30934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935 <limits.h> exists even on freestanding compilers. */
30937 #ifdef __STDC__
30938 # include <limits.h>
30939 #else
30940 # include <assert.h>
30941 #endif
30943 #undef $ac_func
30945 /* Override any GCC internal prototype to avoid an error.
30946 Use char because int might match the return type of a GCC
30947 builtin and then its argument prototype would still apply. */
30948 #ifdef __cplusplus
30949 extern "C"
30950 #endif
30951 char $ac_func ();
30952 /* The GNU C library defines this for functions which it implements
30953 to always fail with ENOSYS. Some functions are actually named
30954 something starting with __ and the normal name is an alias. */
30955 #if defined __stub_$ac_func || defined __stub___$ac_func
30956 choke me
30957 #endif
30960 main ()
30962 return $ac_func ();
30964 return 0;
30966 _ACEOF
30967 rm -f conftest.$ac_objext conftest$ac_exeext
30968 if { (ac_try="$ac_link"
30969 case "(($ac_try" in
30970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971 *) ac_try_echo=$ac_try;;
30972 esac
30973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974 (eval "$ac_link") 2>conftest.er1
30975 ac_status=$?
30976 grep -v '^ *+' conftest.er1 >conftest.err
30977 rm -f conftest.er1
30978 cat conftest.err >&5
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); } &&
30981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30982 { (case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30985 esac
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_try") 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; } &&
30991 { ac_try='test -s conftest$ac_exeext'
30992 { (case "(($ac_try" in
30993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994 *) ac_try_echo=$ac_try;;
30995 esac
30996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997 (eval "$ac_try") 2>&5
30998 ac_status=$?
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); }; }; then
31001 eval "$as_ac_var=yes"
31002 else
31003 echo "$as_me: failed program was:" >&5
31004 sed 's/^/| /' conftest.$ac_ext >&5
31006 eval "$as_ac_var=no"
31009 rm -f core conftest.err conftest.$ac_objext \
31010 conftest$ac_exeext conftest.$ac_ext
31012 ac_res=`eval echo '${'$as_ac_var'}'`
31013 { echo "$as_me:$LINENO: result: $ac_res" >&5
31014 echo "${ECHO_T}$ac_res" >&6; }
31015 if test `eval echo '${'$as_ac_var'}'` = yes; then
31016 cat >>confdefs.h <<_ACEOF
31017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31018 _ACEOF
31021 done
31030 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31037 else
31038 cat >conftest.$ac_ext <<_ACEOF
31039 /* confdefs.h. */
31040 _ACEOF
31041 cat confdefs.h >>conftest.$ac_ext
31042 cat >>conftest.$ac_ext <<_ACEOF
31043 /* end confdefs.h. */
31044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31046 #define $ac_func innocuous_$ac_func
31048 /* System header to define __stub macros and hopefully few prototypes,
31049 which can conflict with char $ac_func (); below.
31050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31051 <limits.h> exists even on freestanding compilers. */
31053 #ifdef __STDC__
31054 # include <limits.h>
31055 #else
31056 # include <assert.h>
31057 #endif
31059 #undef $ac_func
31061 /* Override any GCC internal prototype to avoid an error.
31062 Use char because int might match the return type of a GCC
31063 builtin and then its argument prototype would still apply. */
31064 #ifdef __cplusplus
31065 extern "C"
31066 #endif
31067 char $ac_func ();
31068 /* The GNU C library defines this for functions which it implements
31069 to always fail with ENOSYS. Some functions are actually named
31070 something starting with __ and the normal name is an alias. */
31071 #if defined __stub_$ac_func || defined __stub___$ac_func
31072 choke me
31073 #endif
31076 main ()
31078 return $ac_func ();
31080 return 0;
31082 _ACEOF
31083 rm -f conftest.$ac_objext conftest$ac_exeext
31084 if { (ac_try="$ac_link"
31085 case "(($ac_try" in
31086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31087 *) ac_try_echo=$ac_try;;
31088 esac
31089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31090 (eval "$ac_link") 2>conftest.er1
31091 ac_status=$?
31092 grep -v '^ *+' conftest.er1 >conftest.err
31093 rm -f conftest.er1
31094 cat conftest.err >&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); } &&
31097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31098 { (case "(($ac_try" in
31099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31100 *) ac_try_echo=$ac_try;;
31101 esac
31102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31103 (eval "$ac_try") 2>&5
31104 ac_status=$?
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); }; } &&
31107 { ac_try='test -s conftest$ac_exeext'
31108 { (case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31111 esac
31112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_try") 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); }; }; then
31117 eval "$as_ac_var=yes"
31118 else
31119 echo "$as_me: failed program was:" >&5
31120 sed 's/^/| /' conftest.$ac_ext >&5
31122 eval "$as_ac_var=no"
31125 rm -f core conftest.err conftest.$ac_objext \
31126 conftest$ac_exeext conftest.$ac_ext
31128 ac_res=`eval echo '${'$as_ac_var'}'`
31129 { echo "$as_me:$LINENO: result: $ac_res" >&5
31130 echo "${ECHO_T}$ac_res" >&6; }
31131 if test `eval echo '${'$as_ac_var'}'` = yes; then
31132 cat >>confdefs.h <<_ACEOF
31133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31134 _ACEOF
31137 done
31143 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31149 echo $ECHO_N "(cached) $ECHO_C" >&6
31150 else
31151 cat >conftest.$ac_ext <<_ACEOF
31152 /* confdefs.h. */
31153 _ACEOF
31154 cat confdefs.h >>conftest.$ac_ext
31155 cat >>conftest.$ac_ext <<_ACEOF
31156 /* end confdefs.h. */
31157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31159 #define $ac_func innocuous_$ac_func
31161 /* System header to define __stub macros and hopefully few prototypes,
31162 which can conflict with char $ac_func (); below.
31163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31164 <limits.h> exists even on freestanding compilers. */
31166 #ifdef __STDC__
31167 # include <limits.h>
31168 #else
31169 # include <assert.h>
31170 #endif
31172 #undef $ac_func
31174 /* Override any GCC internal prototype to avoid an error.
31175 Use char because int might match the return type of a GCC
31176 builtin and then its argument prototype would still apply. */
31177 #ifdef __cplusplus
31178 extern "C"
31179 #endif
31180 char $ac_func ();
31181 /* The GNU C library defines this for functions which it implements
31182 to always fail with ENOSYS. Some functions are actually named
31183 something starting with __ and the normal name is an alias. */
31184 #if defined __stub_$ac_func || defined __stub___$ac_func
31185 choke me
31186 #endif
31189 main ()
31191 return $ac_func ();
31193 return 0;
31195 _ACEOF
31196 rm -f conftest.$ac_objext conftest$ac_exeext
31197 if { (ac_try="$ac_link"
31198 case "(($ac_try" in
31199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200 *) ac_try_echo=$ac_try;;
31201 esac
31202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203 (eval "$ac_link") 2>conftest.er1
31204 ac_status=$?
31205 grep -v '^ *+' conftest.er1 >conftest.err
31206 rm -f conftest.er1
31207 cat conftest.err >&5
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); } &&
31210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31211 { (case "(($ac_try" in
31212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213 *) ac_try_echo=$ac_try;;
31214 esac
31215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216 (eval "$ac_try") 2>&5
31217 ac_status=$?
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); }; } &&
31220 { ac_try='test -s conftest$ac_exeext'
31221 { (case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31224 esac
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_try") 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; }; then
31230 eval "$as_ac_var=yes"
31231 else
31232 echo "$as_me: failed program was:" >&5
31233 sed 's/^/| /' conftest.$ac_ext >&5
31235 eval "$as_ac_var=no"
31238 rm -f core conftest.err conftest.$ac_objext \
31239 conftest$ac_exeext conftest.$ac_ext
31241 ac_res=`eval echo '${'$as_ac_var'}'`
31242 { echo "$as_me:$LINENO: result: $ac_res" >&5
31243 echo "${ECHO_T}$ac_res" >&6; }
31244 if test `eval echo '${'$as_ac_var'}'` = yes; then
31245 cat >>confdefs.h <<_ACEOF
31246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31247 _ACEOF
31250 done
31256 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31262 echo $ECHO_N "(cached) $ECHO_C" >&6
31263 else
31264 cat >conftest.$ac_ext <<_ACEOF
31265 /* confdefs.h. */
31266 _ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h. */
31270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31272 #define $ac_func innocuous_$ac_func
31274 /* System header to define __stub macros and hopefully few prototypes,
31275 which can conflict with char $ac_func (); below.
31276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31277 <limits.h> exists even on freestanding compilers. */
31279 #ifdef __STDC__
31280 # include <limits.h>
31281 #else
31282 # include <assert.h>
31283 #endif
31285 #undef $ac_func
31287 /* Override any GCC internal prototype to avoid an error.
31288 Use char because int might match the return type of a GCC
31289 builtin and then its argument prototype would still apply. */
31290 #ifdef __cplusplus
31291 extern "C"
31292 #endif
31293 char $ac_func ();
31294 /* The GNU C library defines this for functions which it implements
31295 to always fail with ENOSYS. Some functions are actually named
31296 something starting with __ and the normal name is an alias. */
31297 #if defined __stub_$ac_func || defined __stub___$ac_func
31298 choke me
31299 #endif
31302 main ()
31304 return $ac_func ();
31306 return 0;
31308 _ACEOF
31309 rm -f conftest.$ac_objext conftest$ac_exeext
31310 if { (ac_try="$ac_link"
31311 case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31314 esac
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_link") 2>conftest.er1
31317 ac_status=$?
31318 grep -v '^ *+' conftest.er1 >conftest.err
31319 rm -f conftest.er1
31320 cat conftest.err >&5
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); } &&
31323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31324 { (case "(($ac_try" in
31325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326 *) ac_try_echo=$ac_try;;
31327 esac
31328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329 (eval "$ac_try") 2>&5
31330 ac_status=$?
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); }; } &&
31333 { ac_try='test -s conftest$ac_exeext'
31334 { (case "(($ac_try" in
31335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31336 *) ac_try_echo=$ac_try;;
31337 esac
31338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31339 (eval "$ac_try") 2>&5
31340 ac_status=$?
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); }; }; then
31343 eval "$as_ac_var=yes"
31344 else
31345 echo "$as_me: failed program was:" >&5
31346 sed 's/^/| /' conftest.$ac_ext >&5
31348 eval "$as_ac_var=no"
31351 rm -f core conftest.err conftest.$ac_objext \
31352 conftest$ac_exeext conftest.$ac_ext
31354 ac_res=`eval echo '${'$as_ac_var'}'`
31355 { echo "$as_me:$LINENO: result: $ac_res" >&5
31356 echo "${ECHO_T}$ac_res" >&6; }
31357 if test `eval echo '${'$as_ac_var'}'` = yes; then
31358 cat >>confdefs.h <<_ACEOF
31359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31360 _ACEOF
31363 done
31365 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31366 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31367 if test "${llvm_cv_c_printf_a+set}" = set; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369 else
31370 ac_ext=c
31371 ac_cpp='$CPP $CPPFLAGS'
31372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31376 if test "$cross_compiling" = yes; then
31377 llvmac_cv_c_printf_a=no
31378 else
31379 cat >conftest.$ac_ext <<_ACEOF
31381 /* confdefs.h. */
31382 _ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h. */
31387 #include <stdio.h>
31388 #include <stdlib.h>
31391 main ()
31394 volatile double A, B;
31395 char Buffer[100];
31396 A = 1;
31397 A /= 10.0;
31398 sprintf(Buffer, "%a", A);
31399 B = atof(Buffer);
31400 if (A != B)
31401 return (1);
31402 if (A != 0x1.999999999999ap-4)
31403 return (1);
31404 return (0);
31406 return 0;
31408 _ACEOF
31409 rm -f conftest$ac_exeext
31410 if { (ac_try="$ac_link"
31411 case "(($ac_try" in
31412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413 *) ac_try_echo=$ac_try;;
31414 esac
31415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31416 (eval "$ac_link") 2>&5
31417 ac_status=$?
31418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31420 { (case "(($ac_try" in
31421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422 *) ac_try_echo=$ac_try;;
31423 esac
31424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425 (eval "$ac_try") 2>&5
31426 ac_status=$?
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); }; }; then
31429 llvm_cv_c_printf_a=yes
31430 else
31431 echo "$as_me: program exited with status $ac_status" >&5
31432 echo "$as_me: failed program was:" >&5
31433 sed 's/^/| /' conftest.$ac_ext >&5
31435 ( exit $ac_status )
31436 llvmac_cv_c_printf_a=no
31438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31442 ac_ext=c
31443 ac_cpp='$CPP $CPPFLAGS'
31444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31449 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31450 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31451 if test "$llvm_cv_c_printf_a" = "yes"; then
31453 cat >>confdefs.h <<\_ACEOF
31454 #define HAVE_PRINTF_A 1
31455 _ACEOF
31459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31460 # for constant arguments. Useless!
31461 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31462 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31463 if test "${ac_cv_working_alloca_h+set}" = set; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31465 else
31466 cat >conftest.$ac_ext <<_ACEOF
31467 /* confdefs.h. */
31468 _ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h. */
31472 #include <alloca.h>
31474 main ()
31476 char *p = (char *) alloca (2 * sizeof (int));
31477 if (p) return 0;
31479 return 0;
31481 _ACEOF
31482 rm -f conftest.$ac_objext conftest$ac_exeext
31483 if { (ac_try="$ac_link"
31484 case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31487 esac
31488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_link") 2>conftest.er1
31490 ac_status=$?
31491 grep -v '^ *+' conftest.er1 >conftest.err
31492 rm -f conftest.er1
31493 cat conftest.err >&5
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); } &&
31496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31497 { (case "(($ac_try" in
31498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31499 *) ac_try_echo=$ac_try;;
31500 esac
31501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31502 (eval "$ac_try") 2>&5
31503 ac_status=$?
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; } &&
31506 { ac_try='test -s conftest$ac_exeext'
31507 { (case "(($ac_try" in
31508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509 *) ac_try_echo=$ac_try;;
31510 esac
31511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512 (eval "$ac_try") 2>&5
31513 ac_status=$?
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); }; }; then
31516 ac_cv_working_alloca_h=yes
31517 else
31518 echo "$as_me: failed program was:" >&5
31519 sed 's/^/| /' conftest.$ac_ext >&5
31521 ac_cv_working_alloca_h=no
31524 rm -f core conftest.err conftest.$ac_objext \
31525 conftest$ac_exeext conftest.$ac_ext
31527 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31528 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31529 if test $ac_cv_working_alloca_h = yes; then
31531 cat >>confdefs.h <<\_ACEOF
31532 #define HAVE_ALLOCA_H 1
31533 _ACEOF
31537 { echo "$as_me:$LINENO: checking for alloca" >&5
31538 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31539 if test "${ac_cv_func_alloca_works+set}" = set; then
31540 echo $ECHO_N "(cached) $ECHO_C" >&6
31541 else
31542 cat >conftest.$ac_ext <<_ACEOF
31543 /* confdefs.h. */
31544 _ACEOF
31545 cat confdefs.h >>conftest.$ac_ext
31546 cat >>conftest.$ac_ext <<_ACEOF
31547 /* end confdefs.h. */
31548 #ifdef __GNUC__
31549 # define alloca __builtin_alloca
31550 #else
31551 # ifdef _MSC_VER
31552 # include <malloc.h>
31553 # define alloca _alloca
31554 # else
31555 # if HAVE_ALLOCA_H
31556 # include <alloca.h>
31557 # else
31558 # ifdef _AIX
31559 #pragma alloca
31560 # else
31561 # ifndef alloca /* predefined by HP cc +Olibcalls */
31562 char *alloca ();
31563 # endif
31564 # endif
31565 # endif
31566 # endif
31567 #endif
31570 main ()
31572 char *p = (char *) alloca (1);
31573 if (p) return 0;
31575 return 0;
31577 _ACEOF
31578 rm -f conftest.$ac_objext conftest$ac_exeext
31579 if { (ac_try="$ac_link"
31580 case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31583 esac
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_link") 2>conftest.er1
31586 ac_status=$?
31587 grep -v '^ *+' conftest.er1 >conftest.err
31588 rm -f conftest.er1
31589 cat conftest.err >&5
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); } &&
31592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31593 { (case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31596 esac
31597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_try") 2>&5
31599 ac_status=$?
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; } &&
31602 { ac_try='test -s conftest$ac_exeext'
31603 { (case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31606 esac
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_try") 2>&5
31609 ac_status=$?
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; }; then
31612 ac_cv_func_alloca_works=yes
31613 else
31614 echo "$as_me: failed program was:" >&5
31615 sed 's/^/| /' conftest.$ac_ext >&5
31617 ac_cv_func_alloca_works=no
31620 rm -f core conftest.err conftest.$ac_objext \
31621 conftest$ac_exeext conftest.$ac_ext
31623 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31624 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31626 if test $ac_cv_func_alloca_works = yes; then
31628 cat >>confdefs.h <<\_ACEOF
31629 #define HAVE_ALLOCA 1
31630 _ACEOF
31632 else
31633 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31634 # that cause trouble. Some versions do not even contain alloca or
31635 # contain a buggy version. If you still want to use their alloca,
31636 # use ar to extract alloca.o from them instead of compiling alloca.c.
31638 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31640 cat >>confdefs.h <<\_ACEOF
31641 #define C_ALLOCA 1
31642 _ACEOF
31645 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31646 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31647 if test "${ac_cv_os_cray+set}" = set; then
31648 echo $ECHO_N "(cached) $ECHO_C" >&6
31649 else
31650 cat >conftest.$ac_ext <<_ACEOF
31651 /* confdefs.h. */
31652 _ACEOF
31653 cat confdefs.h >>conftest.$ac_ext
31654 cat >>conftest.$ac_ext <<_ACEOF
31655 /* end confdefs.h. */
31656 #if defined CRAY && ! defined CRAY2
31657 webecray
31658 #else
31659 wenotbecray
31660 #endif
31662 _ACEOF
31663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31664 $EGREP "webecray" >/dev/null 2>&1; then
31665 ac_cv_os_cray=yes
31666 else
31667 ac_cv_os_cray=no
31669 rm -f conftest*
31672 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31673 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31674 if test $ac_cv_os_cray = yes; then
31675 for ac_func in _getb67 GETB67 getb67; do
31676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31680 echo $ECHO_N "(cached) $ECHO_C" >&6
31681 else
31682 cat >conftest.$ac_ext <<_ACEOF
31683 /* confdefs.h. */
31684 _ACEOF
31685 cat confdefs.h >>conftest.$ac_ext
31686 cat >>conftest.$ac_ext <<_ACEOF
31687 /* end confdefs.h. */
31688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31690 #define $ac_func innocuous_$ac_func
31692 /* System header to define __stub macros and hopefully few prototypes,
31693 which can conflict with char $ac_func (); below.
31694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31695 <limits.h> exists even on freestanding compilers. */
31697 #ifdef __STDC__
31698 # include <limits.h>
31699 #else
31700 # include <assert.h>
31701 #endif
31703 #undef $ac_func
31705 /* Override any GCC internal prototype to avoid an error.
31706 Use char because int might match the return type of a GCC
31707 builtin and then its argument prototype would still apply. */
31708 #ifdef __cplusplus
31709 extern "C"
31710 #endif
31711 char $ac_func ();
31712 /* The GNU C library defines this for functions which it implements
31713 to always fail with ENOSYS. Some functions are actually named
31714 something starting with __ and the normal name is an alias. */
31715 #if defined __stub_$ac_func || defined __stub___$ac_func
31716 choke me
31717 #endif
31720 main ()
31722 return $ac_func ();
31724 return 0;
31726 _ACEOF
31727 rm -f conftest.$ac_objext conftest$ac_exeext
31728 if { (ac_try="$ac_link"
31729 case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31732 esac
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_link") 2>conftest.er1
31735 ac_status=$?
31736 grep -v '^ *+' conftest.er1 >conftest.err
31737 rm -f conftest.er1
31738 cat conftest.err >&5
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); } &&
31741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31742 { (case "(($ac_try" in
31743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31744 *) ac_try_echo=$ac_try;;
31745 esac
31746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31747 (eval "$ac_try") 2>&5
31748 ac_status=$?
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); }; } &&
31751 { ac_try='test -s conftest$ac_exeext'
31752 { (case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31755 esac
31756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_try") 2>&5
31758 ac_status=$?
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); }; }; then
31761 eval "$as_ac_var=yes"
31762 else
31763 echo "$as_me: failed program was:" >&5
31764 sed 's/^/| /' conftest.$ac_ext >&5
31766 eval "$as_ac_var=no"
31769 rm -f core conftest.err conftest.$ac_objext \
31770 conftest$ac_exeext conftest.$ac_ext
31772 ac_res=`eval echo '${'$as_ac_var'}'`
31773 { echo "$as_me:$LINENO: result: $ac_res" >&5
31774 echo "${ECHO_T}$ac_res" >&6; }
31775 if test `eval echo '${'$as_ac_var'}'` = yes; then
31777 cat >>confdefs.h <<_ACEOF
31778 #define CRAY_STACKSEG_END $ac_func
31779 _ACEOF
31781 break
31784 done
31787 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31788 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31789 if test "${ac_cv_c_stack_direction+set}" = set; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31791 else
31792 if test "$cross_compiling" = yes; then
31793 ac_cv_c_stack_direction=0
31794 else
31795 cat >conftest.$ac_ext <<_ACEOF
31796 /* confdefs.h. */
31797 _ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h. */
31801 $ac_includes_default
31803 find_stack_direction ()
31805 static char *addr = 0;
31806 auto char dummy;
31807 if (addr == 0)
31809 addr = &dummy;
31810 return find_stack_direction ();
31812 else
31813 return (&dummy > addr) ? 1 : -1;
31817 main ()
31819 return find_stack_direction () < 0;
31821 _ACEOF
31822 rm -f conftest$ac_exeext
31823 if { (ac_try="$ac_link"
31824 case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31827 esac
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_link") 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31833 { (case "(($ac_try" in
31834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835 *) ac_try_echo=$ac_try;;
31836 esac
31837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838 (eval "$ac_try") 2>&5
31839 ac_status=$?
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); }; }; then
31842 ac_cv_c_stack_direction=1
31843 else
31844 echo "$as_me: program exited with status $ac_status" >&5
31845 echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31848 ( exit $ac_status )
31849 ac_cv_c_stack_direction=-1
31851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31856 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31857 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31859 cat >>confdefs.h <<_ACEOF
31860 #define STACK_DIRECTION $ac_cv_c_stack_direction
31861 _ACEOF
31867 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31868 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31869 if test "${ac_cv_func_rand48+set}" = set; then
31870 echo $ECHO_N "(cached) $ECHO_C" >&6
31871 else
31872 ac_ext=cpp
31873 ac_cpp='$CXXCPP $CPPFLAGS'
31874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31878 cat >conftest.$ac_ext <<_ACEOF
31879 /* confdefs.h. */
31880 _ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h. */
31884 #include <stdlib.h>
31886 main ()
31888 srand48(0);lrand48();drand48();
31890 return 0;
31892 _ACEOF
31893 rm -f conftest.$ac_objext
31894 if { (ac_try="$ac_compile"
31895 case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31898 esac
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_compile") 2>conftest.er1
31901 ac_status=$?
31902 grep -v '^ *+' conftest.er1 >conftest.err
31903 rm -f conftest.er1
31904 cat conftest.err >&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } &&
31907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31908 { (case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31911 esac
31912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_try") 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; } &&
31917 { ac_try='test -s conftest.$ac_objext'
31918 { (case "(($ac_try" in
31919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920 *) ac_try_echo=$ac_try;;
31921 esac
31922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31923 (eval "$ac_try") 2>&5
31924 ac_status=$?
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); }; }; then
31927 ac_cv_func_rand48=yes
31928 else
31929 echo "$as_me: failed program was:" >&5
31930 sed 's/^/| /' conftest.$ac_ext >&5
31932 ac_cv_func_rand48=no
31935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31936 ac_ext=c
31937 ac_cpp='$CPP $CPPFLAGS'
31938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31943 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31944 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31946 if test "$ac_cv_func_rand48" = "yes" ; then
31948 cat >>confdefs.h <<\_ACEOF
31949 #define HAVE_RAND48 1
31950 _ACEOF
31955 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31956 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31957 if test "${ac_cv_cxx_namespaces+set}" = set; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31959 else
31960 ac_ext=cpp
31961 ac_cpp='$CXXCPP $CPPFLAGS'
31962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31966 cat >conftest.$ac_ext <<_ACEOF
31967 /* confdefs.h. */
31968 _ACEOF
31969 cat confdefs.h >>conftest.$ac_ext
31970 cat >>conftest.$ac_ext <<_ACEOF
31971 /* end confdefs.h. */
31972 namespace Outer { namespace Inner { int i = 0; }}
31974 main ()
31976 using namespace Outer::Inner; return i;
31978 return 0;
31980 _ACEOF
31981 rm -f conftest.$ac_objext
31982 if { (ac_try="$ac_compile"
31983 case "(($ac_try" in
31984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31985 *) ac_try_echo=$ac_try;;
31986 esac
31987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31988 (eval "$ac_compile") 2>conftest.er1
31989 ac_status=$?
31990 grep -v '^ *+' conftest.er1 >conftest.err
31991 rm -f conftest.er1
31992 cat conftest.err >&5
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); } &&
31995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31996 { (case "(($ac_try" in
31997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998 *) ac_try_echo=$ac_try;;
31999 esac
32000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001 (eval "$ac_try") 2>&5
32002 ac_status=$?
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; } &&
32005 { ac_try='test -s conftest.$ac_objext'
32006 { (case "(($ac_try" in
32007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008 *) ac_try_echo=$ac_try;;
32009 esac
32010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011 (eval "$ac_try") 2>&5
32012 ac_status=$?
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; }; then
32015 ac_cv_cxx_namespaces=yes
32016 else
32017 echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32020 ac_cv_cxx_namespaces=no
32023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32024 ac_ext=c
32025 ac_cpp='$CPP $CPPFLAGS'
32026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32032 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32033 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32034 if test "$ac_cv_cxx_namespaces" = yes; then
32036 cat >>confdefs.h <<\_ACEOF
32037 #define HAVE_NAMESPACES
32038 _ACEOF
32042 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32043 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32044 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32045 echo $ECHO_N "(cached) $ECHO_C" >&6
32046 else
32048 ac_ext=cpp
32049 ac_cpp='$CXXCPP $CPPFLAGS'
32050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32054 cat >conftest.$ac_ext <<_ACEOF
32055 /* confdefs.h. */
32056 _ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h. */
32060 #include <iterator>
32061 #ifdef HAVE_NAMESPACES
32062 using namespace std;
32063 #endif
32065 main ()
32067 iterator<int,int,int> t; return 0;
32069 return 0;
32071 _ACEOF
32072 rm -f conftest.$ac_objext
32073 if { (ac_try="$ac_compile"
32074 case "(($ac_try" in
32075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076 *) ac_try_echo=$ac_try;;
32077 esac
32078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079 (eval "$ac_compile") 2>conftest.er1
32080 ac_status=$?
32081 grep -v '^ *+' conftest.er1 >conftest.err
32082 rm -f conftest.er1
32083 cat conftest.err >&5
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); } &&
32086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32087 { (case "(($ac_try" in
32088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089 *) ac_try_echo=$ac_try;;
32090 esac
32091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092 (eval "$ac_try") 2>&5
32093 ac_status=$?
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); }; } &&
32096 { ac_try='test -s conftest.$ac_objext'
32097 { (case "(($ac_try" in
32098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32099 *) ac_try_echo=$ac_try;;
32100 esac
32101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32102 (eval "$ac_try") 2>&5
32103 ac_status=$?
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); }; }; then
32106 ac_cv_cxx_have_std_iterator=yes
32107 else
32108 echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32111 ac_cv_cxx_have_std_iterator=no
32114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32115 ac_ext=c
32116 ac_cpp='$CPP $CPPFLAGS'
32117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32123 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32124 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32125 if test "$ac_cv_cxx_have_std_iterator" = yes
32126 then
32128 cat >>confdefs.h <<\_ACEOF
32129 #define HAVE_STD_ITERATOR 1
32130 _ACEOF
32132 else
32134 cat >>confdefs.h <<\_ACEOF
32135 #define HAVE_STD_ITERATOR 0
32136 _ACEOF
32140 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32141 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32142 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32143 echo $ECHO_N "(cached) $ECHO_C" >&6
32144 else
32146 ac_ext=cpp
32147 ac_cpp='$CXXCPP $CPPFLAGS'
32148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32152 cat >conftest.$ac_ext <<_ACEOF
32153 /* confdefs.h. */
32154 _ACEOF
32155 cat confdefs.h >>conftest.$ac_ext
32156 cat >>conftest.$ac_ext <<_ACEOF
32157 /* end confdefs.h. */
32158 #include <iterator>
32159 #ifdef HAVE_NAMESPACES
32160 using namespace std;
32161 #endif
32163 main ()
32165 bidirectional_iterator<int,int> t; return 0;
32167 return 0;
32169 _ACEOF
32170 rm -f conftest.$ac_objext
32171 if { (ac_try="$ac_compile"
32172 case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32175 esac
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_compile") 2>conftest.er1
32178 ac_status=$?
32179 grep -v '^ *+' conftest.er1 >conftest.err
32180 rm -f conftest.er1
32181 cat conftest.err >&5
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } &&
32184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32185 { (case "(($ac_try" in
32186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187 *) ac_try_echo=$ac_try;;
32188 esac
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190 (eval "$ac_try") 2>&5
32191 ac_status=$?
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; } &&
32194 { ac_try='test -s conftest.$ac_objext'
32195 { (case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32198 esac
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_try") 2>&5
32201 ac_status=$?
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); }; }; then
32204 ac_cv_cxx_have_bi_iterator=yes
32205 else
32206 echo "$as_me: failed program was:" >&5
32207 sed 's/^/| /' conftest.$ac_ext >&5
32209 ac_cv_cxx_have_bi_iterator=no
32212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213 ac_ext=c
32214 ac_cpp='$CPP $CPPFLAGS'
32215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32221 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32222 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32223 if test "$ac_cv_cxx_have_bi_iterator" = yes
32224 then
32226 cat >>confdefs.h <<\_ACEOF
32227 #define HAVE_BI_ITERATOR 1
32228 _ACEOF
32230 else
32232 cat >>confdefs.h <<\_ACEOF
32233 #define HAVE_BI_ITERATOR 0
32234 _ACEOF
32238 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32239 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32240 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32241 echo $ECHO_N "(cached) $ECHO_C" >&6
32242 else
32244 ac_ext=cpp
32245 ac_cpp='$CXXCPP $CPPFLAGS'
32246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32250 cat >conftest.$ac_ext <<_ACEOF
32251 /* confdefs.h. */
32252 _ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h. */
32256 #include <iterator>
32257 #ifdef HAVE_NAMESPACES
32258 using namespace std;
32259 #endif
32261 main ()
32263 forward_iterator<int,int> t; return 0;
32265 return 0;
32267 _ACEOF
32268 rm -f conftest.$ac_objext
32269 if { (ac_try="$ac_compile"
32270 case "(($ac_try" in
32271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272 *) ac_try_echo=$ac_try;;
32273 esac
32274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275 (eval "$ac_compile") 2>conftest.er1
32276 ac_status=$?
32277 grep -v '^ *+' conftest.er1 >conftest.err
32278 rm -f conftest.er1
32279 cat conftest.err >&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); } &&
32282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32283 { (case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_try") 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest.$ac_objext'
32293 { (case "(($ac_try" in
32294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295 *) ac_try_echo=$ac_try;;
32296 esac
32297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298 (eval "$ac_try") 2>&5
32299 ac_status=$?
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; }; then
32302 ac_cv_cxx_have_fwd_iterator=yes
32303 else
32304 echo "$as_me: failed program was:" >&5
32305 sed 's/^/| /' conftest.$ac_ext >&5
32307 ac_cv_cxx_have_fwd_iterator=no
32310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311 ac_ext=c
32312 ac_cpp='$CPP $CPPFLAGS'
32313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32319 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32320 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32321 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32322 then
32324 cat >>confdefs.h <<\_ACEOF
32325 #define HAVE_FWD_ITERATOR 1
32326 _ACEOF
32328 else
32330 cat >>confdefs.h <<\_ACEOF
32331 #define HAVE_FWD_ITERATOR 0
32332 _ACEOF
32337 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32338 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32339 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32340 echo $ECHO_N "(cached) $ECHO_C" >&6
32341 else
32342 ac_ext=cpp
32343 ac_cpp='$CXXCPP $CPPFLAGS'
32344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32348 cat >conftest.$ac_ext <<_ACEOF
32349 /* confdefs.h. */
32350 _ACEOF
32351 cat confdefs.h >>conftest.$ac_ext
32352 cat >>conftest.$ac_ext <<_ACEOF
32353 /* end confdefs.h. */
32354 #include <math.h>
32356 main ()
32358 float f; isnan(f);
32360 return 0;
32362 _ACEOF
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32368 esac
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_compile") 2>conftest.er1
32371 ac_status=$?
32372 grep -v '^ *+' conftest.er1 >conftest.err
32373 rm -f conftest.er1
32374 cat conftest.err >&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); } &&
32377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378 { (case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32381 esac
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_try") 2>&5
32384 ac_status=$?
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); }; } &&
32387 { ac_try='test -s conftest.$ac_objext'
32388 { (case "(($ac_try" in
32389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390 *) ac_try_echo=$ac_try;;
32391 esac
32392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393 (eval "$ac_try") 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
32397 ac_cv_func_isnan_in_math_h=yes
32398 else
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32402 ac_cv_func_isnan_in_math_h=no
32405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406 ac_ext=c
32407 ac_cpp='$CPP $CPPFLAGS'
32408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32413 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32414 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32417 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32419 cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_ISNAN_IN_MATH_H 1
32421 _ACEOF
32425 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32426 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32427 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32428 echo $ECHO_N "(cached) $ECHO_C" >&6
32429 else
32430 ac_ext=cpp
32431 ac_cpp='$CXXCPP $CPPFLAGS'
32432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32436 cat >conftest.$ac_ext <<_ACEOF
32437 /* confdefs.h. */
32438 _ACEOF
32439 cat confdefs.h >>conftest.$ac_ext
32440 cat >>conftest.$ac_ext <<_ACEOF
32441 /* end confdefs.h. */
32442 #include <cmath>
32444 main ()
32446 float f; isnan(f);
32448 return 0;
32450 _ACEOF
32451 rm -f conftest.$ac_objext
32452 if { (ac_try="$ac_compile"
32453 case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32456 esac
32457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_compile") 2>conftest.er1
32459 ac_status=$?
32460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } &&
32465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32466 { (case "(($ac_try" in
32467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468 *) ac_try_echo=$ac_try;;
32469 esac
32470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471 (eval "$ac_try") 2>&5
32472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; } &&
32475 { ac_try='test -s conftest.$ac_objext'
32476 { (case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32479 esac
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_try") 2>&5
32482 ac_status=$?
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; }; then
32485 ac_cv_func_isnan_in_cmath=yes
32486 else
32487 echo "$as_me: failed program was:" >&5
32488 sed 's/^/| /' conftest.$ac_ext >&5
32490 ac_cv_func_isnan_in_cmath=no
32493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32494 ac_ext=c
32495 ac_cpp='$CPP $CPPFLAGS'
32496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32501 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32502 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32504 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32506 cat >>confdefs.h <<\_ACEOF
32507 #define HAVE_ISNAN_IN_CMATH 1
32508 _ACEOF
32512 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32513 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32514 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32515 echo $ECHO_N "(cached) $ECHO_C" >&6
32516 else
32517 ac_ext=cpp
32518 ac_cpp='$CXXCPP $CPPFLAGS'
32519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32523 cat >conftest.$ac_ext <<_ACEOF
32524 /* confdefs.h. */
32525 _ACEOF
32526 cat confdefs.h >>conftest.$ac_ext
32527 cat >>conftest.$ac_ext <<_ACEOF
32528 /* end confdefs.h. */
32529 #include <cmath>
32531 main ()
32533 float f; std::isnan(f);
32535 return 0;
32537 _ACEOF
32538 rm -f conftest.$ac_objext
32539 if { (ac_try="$ac_compile"
32540 case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32543 esac
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_compile") 2>conftest.er1
32546 ac_status=$?
32547 grep -v '^ *+' conftest.er1 >conftest.err
32548 rm -f conftest.er1
32549 cat conftest.err >&5
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); } &&
32552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32553 { (case "(($ac_try" in
32554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32555 *) ac_try_echo=$ac_try;;
32556 esac
32557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32558 (eval "$ac_try") 2>&5
32559 ac_status=$?
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); }; } &&
32562 { ac_try='test -s conftest.$ac_objext'
32563 { (case "(($ac_try" in
32564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32565 *) ac_try_echo=$ac_try;;
32566 esac
32567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32568 (eval "$ac_try") 2>&5
32569 ac_status=$?
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); }; }; then
32572 ac_cv_func_std_isnan_in_cmath=yes
32573 else
32574 echo "$as_me: failed program was:" >&5
32575 sed 's/^/| /' conftest.$ac_ext >&5
32577 ac_cv_func_std_isnan_in_cmath=no
32580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32581 ac_ext=c
32582 ac_cpp='$CPP $CPPFLAGS'
32583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32589 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32591 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32593 cat >>confdefs.h <<\_ACEOF
32594 #define HAVE_STD_ISNAN_IN_CMATH 1
32595 _ACEOF
32600 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32601 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32602 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32603 echo $ECHO_N "(cached) $ECHO_C" >&6
32604 else
32605 ac_ext=cpp
32606 ac_cpp='$CXXCPP $CPPFLAGS'
32607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32611 cat >conftest.$ac_ext <<_ACEOF
32612 /* confdefs.h. */
32613 _ACEOF
32614 cat confdefs.h >>conftest.$ac_ext
32615 cat >>conftest.$ac_ext <<_ACEOF
32616 /* end confdefs.h. */
32617 #include <math.h>
32619 main ()
32621 float f; isinf(f);
32623 return 0;
32625 _ACEOF
32626 rm -f conftest.$ac_objext
32627 if { (ac_try="$ac_compile"
32628 case "(($ac_try" in
32629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630 *) ac_try_echo=$ac_try;;
32631 esac
32632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633 (eval "$ac_compile") 2>conftest.er1
32634 ac_status=$?
32635 grep -v '^ *+' conftest.er1 >conftest.err
32636 rm -f conftest.er1
32637 cat conftest.err >&5
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); } &&
32640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32641 { (case "(($ac_try" in
32642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32643 *) ac_try_echo=$ac_try;;
32644 esac
32645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32646 (eval "$ac_try") 2>&5
32647 ac_status=$?
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; } &&
32650 { ac_try='test -s conftest.$ac_objext'
32651 { (case "(($ac_try" in
32652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653 *) ac_try_echo=$ac_try;;
32654 esac
32655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656 (eval "$ac_try") 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
32660 ac_cv_func_isinf_in_math_h=yes
32661 else
32662 echo "$as_me: failed program was:" >&5
32663 sed 's/^/| /' conftest.$ac_ext >&5
32665 ac_cv_func_isinf_in_math_h=no
32668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32669 ac_ext=c
32670 ac_cpp='$CPP $CPPFLAGS'
32671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32676 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32677 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32679 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32681 cat >>confdefs.h <<\_ACEOF
32682 #define HAVE_ISINF_IN_MATH_H 1
32683 _ACEOF
32687 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32688 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32689 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32690 echo $ECHO_N "(cached) $ECHO_C" >&6
32691 else
32692 ac_ext=cpp
32693 ac_cpp='$CXXCPP $CPPFLAGS'
32694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32698 cat >conftest.$ac_ext <<_ACEOF
32699 /* confdefs.h. */
32700 _ACEOF
32701 cat confdefs.h >>conftest.$ac_ext
32702 cat >>conftest.$ac_ext <<_ACEOF
32703 /* end confdefs.h. */
32704 #include <cmath>
32706 main ()
32708 float f; isinf(f);
32710 return 0;
32712 _ACEOF
32713 rm -f conftest.$ac_objext
32714 if { (ac_try="$ac_compile"
32715 case "(($ac_try" in
32716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717 *) ac_try_echo=$ac_try;;
32718 esac
32719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720 (eval "$ac_compile") 2>conftest.er1
32721 ac_status=$?
32722 grep -v '^ *+' conftest.er1 >conftest.err
32723 rm -f conftest.er1
32724 cat conftest.err >&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); } &&
32727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32728 { (case "(($ac_try" in
32729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730 *) ac_try_echo=$ac_try;;
32731 esac
32732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733 (eval "$ac_try") 2>&5
32734 ac_status=$?
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; } &&
32737 { ac_try='test -s conftest.$ac_objext'
32738 { (case "(($ac_try" in
32739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740 *) ac_try_echo=$ac_try;;
32741 esac
32742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743 (eval "$ac_try") 2>&5
32744 ac_status=$?
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; }; then
32747 ac_cv_func_isinf_in_cmath=yes
32748 else
32749 echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32752 ac_cv_func_isinf_in_cmath=no
32755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32756 ac_ext=c
32757 ac_cpp='$CPP $CPPFLAGS'
32758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32763 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32764 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32766 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32768 cat >>confdefs.h <<\_ACEOF
32769 #define HAVE_ISINF_IN_CMATH 1
32770 _ACEOF
32774 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32775 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32776 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32777 echo $ECHO_N "(cached) $ECHO_C" >&6
32778 else
32779 ac_ext=cpp
32780 ac_cpp='$CXXCPP $CPPFLAGS'
32781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32785 cat >conftest.$ac_ext <<_ACEOF
32786 /* confdefs.h. */
32787 _ACEOF
32788 cat confdefs.h >>conftest.$ac_ext
32789 cat >>conftest.$ac_ext <<_ACEOF
32790 /* end confdefs.h. */
32791 #include <cmath>
32793 main ()
32795 float f; std::isinf(f)}
32797 return 0;
32799 _ACEOF
32800 rm -f conftest.$ac_objext
32801 if { (ac_try="$ac_compile"
32802 case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32805 esac
32806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_compile") 2>conftest.er1
32808 ac_status=$?
32809 grep -v '^ *+' conftest.er1 >conftest.err
32810 rm -f conftest.er1
32811 cat conftest.err >&5
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); } &&
32814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32815 { (case "(($ac_try" in
32816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32817 *) ac_try_echo=$ac_try;;
32818 esac
32819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32820 (eval "$ac_try") 2>&5
32821 ac_status=$?
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); }; } &&
32824 { ac_try='test -s conftest.$ac_objext'
32825 { (case "(($ac_try" in
32826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32827 *) ac_try_echo=$ac_try;;
32828 esac
32829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32830 (eval "$ac_try") 2>&5
32831 ac_status=$?
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 ac_cv_func_std_isinf_in_cmath=yes
32835 else
32836 echo "$as_me: failed program was:" >&5
32837 sed 's/^/| /' conftest.$ac_ext >&5
32839 ac_cv_func_std_isinf_in_cmath=no
32842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32843 ac_ext=c
32844 ac_cpp='$CPP $CPPFLAGS'
32845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32850 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32851 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32853 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32855 cat >>confdefs.h <<\_ACEOF
32856 #define HAVE_STD_ISINF_IN_CMATH 1
32857 _ACEOF
32861 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32862 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32863 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32865 else
32866 ac_ext=cpp
32867 ac_cpp='$CXXCPP $CPPFLAGS'
32868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32872 cat >conftest.$ac_ext <<_ACEOF
32873 /* confdefs.h. */
32874 _ACEOF
32875 cat confdefs.h >>conftest.$ac_ext
32876 cat >>conftest.$ac_ext <<_ACEOF
32877 /* end confdefs.h. */
32878 #include <ieeefp.h>
32880 main ()
32882 float f; finite(f);
32884 return 0;
32886 _ACEOF
32887 rm -f conftest.$ac_objext
32888 if { (ac_try="$ac_compile"
32889 case "(($ac_try" in
32890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32891 *) ac_try_echo=$ac_try;;
32892 esac
32893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32894 (eval "$ac_compile") 2>conftest.er1
32895 ac_status=$?
32896 grep -v '^ *+' conftest.er1 >conftest.err
32897 rm -f conftest.er1
32898 cat conftest.err >&5
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); } &&
32901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32902 { (case "(($ac_try" in
32903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904 *) ac_try_echo=$ac_try;;
32905 esac
32906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32907 (eval "$ac_try") 2>&5
32908 ac_status=$?
32909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910 (exit $ac_status); }; } &&
32911 { ac_try='test -s conftest.$ac_objext'
32912 { (case "(($ac_try" in
32913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32914 *) ac_try_echo=$ac_try;;
32915 esac
32916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32917 (eval "$ac_try") 2>&5
32918 ac_status=$?
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); }; }; then
32921 ac_cv_func_finite_in_ieeefp_h=yes
32922 else
32923 echo "$as_me: failed program was:" >&5
32924 sed 's/^/| /' conftest.$ac_ext >&5
32926 ac_cv_func_finite_in_ieeefp_h=no
32929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32930 ac_ext=c
32931 ac_cpp='$CPP $CPPFLAGS'
32932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32937 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32938 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32940 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32942 cat >>confdefs.h <<\_ACEOF
32943 #define HAVE_FINITE_IN_IEEEFP_H 1
32944 _ACEOF
32950 if test "$llvm_cv_platform_type" = "Unix" ; then
32953 for ac_header in stdlib.h unistd.h
32955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32962 ac_res=`eval echo '${'$as_ac_Header'}'`
32963 { echo "$as_me:$LINENO: result: $ac_res" >&5
32964 echo "${ECHO_T}$ac_res" >&6; }
32965 else
32966 # Is the header compilable?
32967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32969 cat >conftest.$ac_ext <<_ACEOF
32970 /* confdefs.h. */
32971 _ACEOF
32972 cat confdefs.h >>conftest.$ac_ext
32973 cat >>conftest.$ac_ext <<_ACEOF
32974 /* end confdefs.h. */
32975 $ac_includes_default
32976 #include <$ac_header>
32977 _ACEOF
32978 rm -f conftest.$ac_objext
32979 if { (ac_try="$ac_compile"
32980 case "(($ac_try" in
32981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982 *) ac_try_echo=$ac_try;;
32983 esac
32984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985 (eval "$ac_compile") 2>conftest.er1
32986 ac_status=$?
32987 grep -v '^ *+' conftest.er1 >conftest.err
32988 rm -f conftest.er1
32989 cat conftest.err >&5
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); } &&
32992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
33002 { ac_try='test -s conftest.$ac_objext'
33003 { (case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_try") 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; }; then
33012 ac_header_compiler=yes
33013 else
33014 echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33017 ac_header_compiler=no
33020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33022 echo "${ECHO_T}$ac_header_compiler" >&6; }
33024 # Is the header present?
33025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33027 cat >conftest.$ac_ext <<_ACEOF
33028 /* confdefs.h. */
33029 _ACEOF
33030 cat confdefs.h >>conftest.$ac_ext
33031 cat >>conftest.$ac_ext <<_ACEOF
33032 /* end confdefs.h. */
33033 #include <$ac_header>
33034 _ACEOF
33035 if { (ac_try="$ac_cpp conftest.$ac_ext"
33036 case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33042 ac_status=$?
33043 grep -v '^ *+' conftest.er1 >conftest.err
33044 rm -f conftest.er1
33045 cat conftest.err >&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } >/dev/null; then
33048 if test -s conftest.err; then
33049 ac_cpp_err=$ac_c_preproc_warn_flag
33050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33051 else
33052 ac_cpp_err=
33054 else
33055 ac_cpp_err=yes
33057 if test -z "$ac_cpp_err"; then
33058 ac_header_preproc=yes
33059 else
33060 echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33063 ac_header_preproc=no
33066 rm -f conftest.err conftest.$ac_ext
33067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33068 echo "${ECHO_T}$ac_header_preproc" >&6; }
33070 # So? What about this header?
33071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33072 yes:no: )
33073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33077 ac_header_preproc=yes
33079 no:yes:* )
33080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33092 ( cat <<\_ASBOX
33093 ## ----------------------------------- ##
33094 ## Report this to llvmbugs@cs.uiuc.edu ##
33095 ## ----------------------------------- ##
33096 _ASBOX
33097 ) | sed "s/^/$as_me: WARNING: /" >&2
33099 esac
33100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33103 echo $ECHO_N "(cached) $ECHO_C" >&6
33104 else
33105 eval "$as_ac_Header=\$ac_header_preproc"
33107 ac_res=`eval echo '${'$as_ac_Header'}'`
33108 { echo "$as_me:$LINENO: result: $ac_res" >&5
33109 echo "${ECHO_T}$ac_res" >&6; }
33112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33113 cat >>confdefs.h <<_ACEOF
33114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33115 _ACEOF
33119 done
33122 for ac_func in getpagesize
33124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33128 echo $ECHO_N "(cached) $ECHO_C" >&6
33129 else
33130 cat >conftest.$ac_ext <<_ACEOF
33131 /* confdefs.h. */
33132 _ACEOF
33133 cat confdefs.h >>conftest.$ac_ext
33134 cat >>conftest.$ac_ext <<_ACEOF
33135 /* end confdefs.h. */
33136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33138 #define $ac_func innocuous_$ac_func
33140 /* System header to define __stub macros and hopefully few prototypes,
33141 which can conflict with char $ac_func (); below.
33142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33143 <limits.h> exists even on freestanding compilers. */
33145 #ifdef __STDC__
33146 # include <limits.h>
33147 #else
33148 # include <assert.h>
33149 #endif
33151 #undef $ac_func
33153 /* Override any GCC internal prototype to avoid an error.
33154 Use char because int might match the return type of a GCC
33155 builtin and then its argument prototype would still apply. */
33156 #ifdef __cplusplus
33157 extern "C"
33158 #endif
33159 char $ac_func ();
33160 /* The GNU C library defines this for functions which it implements
33161 to always fail with ENOSYS. Some functions are actually named
33162 something starting with __ and the normal name is an alias. */
33163 #if defined __stub_$ac_func || defined __stub___$ac_func
33164 choke me
33165 #endif
33168 main ()
33170 return $ac_func ();
33172 return 0;
33174 _ACEOF
33175 rm -f conftest.$ac_objext conftest$ac_exeext
33176 if { (ac_try="$ac_link"
33177 case "(($ac_try" in
33178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179 *) ac_try_echo=$ac_try;;
33180 esac
33181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182 (eval "$ac_link") 2>conftest.er1
33183 ac_status=$?
33184 grep -v '^ *+' conftest.er1 >conftest.err
33185 rm -f conftest.er1
33186 cat conftest.err >&5
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); } &&
33189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33190 { (case "(($ac_try" in
33191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192 *) ac_try_echo=$ac_try;;
33193 esac
33194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195 (eval "$ac_try") 2>&5
33196 ac_status=$?
33197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); }; } &&
33199 { ac_try='test -s conftest$ac_exeext'
33200 { (case "(($ac_try" in
33201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202 *) ac_try_echo=$ac_try;;
33203 esac
33204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205 (eval "$ac_try") 2>&5
33206 ac_status=$?
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); }; }; then
33209 eval "$as_ac_var=yes"
33210 else
33211 echo "$as_me: failed program was:" >&5
33212 sed 's/^/| /' conftest.$ac_ext >&5
33214 eval "$as_ac_var=no"
33217 rm -f core conftest.err conftest.$ac_objext \
33218 conftest$ac_exeext conftest.$ac_ext
33220 ac_res=`eval echo '${'$as_ac_var'}'`
33221 { echo "$as_me:$LINENO: result: $ac_res" >&5
33222 echo "${ECHO_T}$ac_res" >&6; }
33223 if test `eval echo '${'$as_ac_var'}'` = yes; then
33224 cat >>confdefs.h <<_ACEOF
33225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33226 _ACEOF
33229 done
33231 { echo "$as_me:$LINENO: checking for working mmap" >&5
33232 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33233 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33235 else
33236 if test "$cross_compiling" = yes; then
33237 ac_cv_func_mmap_fixed_mapped=no
33238 else
33239 cat >conftest.$ac_ext <<_ACEOF
33240 /* confdefs.h. */
33241 _ACEOF
33242 cat confdefs.h >>conftest.$ac_ext
33243 cat >>conftest.$ac_ext <<_ACEOF
33244 /* end confdefs.h. */
33245 $ac_includes_default
33246 /* malloc might have been renamed as rpl_malloc. */
33247 #undef malloc
33249 /* Thanks to Mike Haertel and Jim Avera for this test.
33250 Here is a matrix of mmap possibilities:
33251 mmap private not fixed
33252 mmap private fixed at somewhere currently unmapped
33253 mmap private fixed at somewhere already mapped
33254 mmap shared not fixed
33255 mmap shared fixed at somewhere currently unmapped
33256 mmap shared fixed at somewhere already mapped
33257 For private mappings, we should verify that changes cannot be read()
33258 back from the file, nor mmap's back from the file at a different
33259 address. (There have been systems where private was not correctly
33260 implemented like the infamous i386 svr4.0, and systems where the
33261 VM page cache was not coherent with the file system buffer cache
33262 like early versions of FreeBSD and possibly contemporary NetBSD.)
33263 For shared mappings, we should conversely verify that changes get
33264 propagated back to all the places they're supposed to be.
33266 Grep wants private fixed already mapped.
33267 The main things grep needs to know about mmap are:
33268 * does it exist and is it safe to write into the mmap'd area
33269 * how to use it (BSD variants) */
33271 #include <fcntl.h>
33272 #include <sys/mman.h>
33274 #if !STDC_HEADERS && !HAVE_STDLIB_H
33275 char *malloc ();
33276 #endif
33278 /* This mess was copied from the GNU getpagesize.h. */
33279 #if !HAVE_GETPAGESIZE
33280 /* Assume that all systems that can run configure have sys/param.h. */
33281 # if !HAVE_SYS_PARAM_H
33282 # define HAVE_SYS_PARAM_H 1
33283 # endif
33285 # ifdef _SC_PAGESIZE
33286 # define getpagesize() sysconf(_SC_PAGESIZE)
33287 # else /* no _SC_PAGESIZE */
33288 # if HAVE_SYS_PARAM_H
33289 # include <sys/param.h>
33290 # ifdef EXEC_PAGESIZE
33291 # define getpagesize() EXEC_PAGESIZE
33292 # else /* no EXEC_PAGESIZE */
33293 # ifdef NBPG
33294 # define getpagesize() NBPG * CLSIZE
33295 # ifndef CLSIZE
33296 # define CLSIZE 1
33297 # endif /* no CLSIZE */
33298 # else /* no NBPG */
33299 # ifdef NBPC
33300 # define getpagesize() NBPC
33301 # else /* no NBPC */
33302 # ifdef PAGESIZE
33303 # define getpagesize() PAGESIZE
33304 # endif /* PAGESIZE */
33305 # endif /* no NBPC */
33306 # endif /* no NBPG */
33307 # endif /* no EXEC_PAGESIZE */
33308 # else /* no HAVE_SYS_PARAM_H */
33309 # define getpagesize() 8192 /* punt totally */
33310 # endif /* no HAVE_SYS_PARAM_H */
33311 # endif /* no _SC_PAGESIZE */
33313 #endif /* no HAVE_GETPAGESIZE */
33316 main ()
33318 char *data, *data2, *data3;
33319 int i, pagesize;
33320 int fd;
33322 pagesize = getpagesize ();
33324 /* First, make a file with some known garbage in it. */
33325 data = (char *) malloc (pagesize);
33326 if (!data)
33327 return 1;
33328 for (i = 0; i < pagesize; ++i)
33329 *(data + i) = rand ();
33330 umask (0);
33331 fd = creat ("conftest.mmap", 0600);
33332 if (fd < 0)
33333 return 1;
33334 if (write (fd, data, pagesize) != pagesize)
33335 return 1;
33336 close (fd);
33338 /* Next, try to mmap the file at a fixed address which already has
33339 something else allocated at it. If we can, also make sure that
33340 we see the same garbage. */
33341 fd = open ("conftest.mmap", O_RDWR);
33342 if (fd < 0)
33343 return 1;
33344 data2 = (char *) malloc (2 * pagesize);
33345 if (!data2)
33346 return 1;
33347 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33348 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33349 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33350 return 1;
33351 for (i = 0; i < pagesize; ++i)
33352 if (*(data + i) != *(data2 + i))
33353 return 1;
33355 /* Finally, make sure that changes to the mapped area do not
33356 percolate back to the file as seen by read(). (This is a bug on
33357 some variants of i386 svr4.0.) */
33358 for (i = 0; i < pagesize; ++i)
33359 *(data2 + i) = *(data2 + i) + 1;
33360 data3 = (char *) malloc (pagesize);
33361 if (!data3)
33362 return 1;
33363 if (read (fd, data3, pagesize) != pagesize)
33364 return 1;
33365 for (i = 0; i < pagesize; ++i)
33366 if (*(data + i) != *(data3 + i))
33367 return 1;
33368 close (fd);
33369 return 0;
33371 _ACEOF
33372 rm -f conftest$ac_exeext
33373 if { (ac_try="$ac_link"
33374 case "(($ac_try" in
33375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376 *) ac_try_echo=$ac_try;;
33377 esac
33378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379 (eval "$ac_link") 2>&5
33380 ac_status=$?
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33383 { (case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33386 esac
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_try") 2>&5
33389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; }; then
33392 ac_cv_func_mmap_fixed_mapped=yes
33393 else
33394 echo "$as_me: program exited with status $ac_status" >&5
33395 echo "$as_me: failed program was:" >&5
33396 sed 's/^/| /' conftest.$ac_ext >&5
33398 ( exit $ac_status )
33399 ac_cv_func_mmap_fixed_mapped=no
33401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33406 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33407 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33408 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33410 cat >>confdefs.h <<\_ACEOF
33411 #define HAVE_MMAP 1
33412 _ACEOF
33415 rm -f conftest.mmap
33417 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33418 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33419 if test "${ac_cv_func_mmap_file+set}" = set; then
33420 echo $ECHO_N "(cached) $ECHO_C" >&6
33421 else
33422 ac_ext=c
33423 ac_cpp='$CPP $CPPFLAGS'
33424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33428 if test "$cross_compiling" = yes; then
33429 ac_cv_func_mmap_file=no
33430 else
33431 cat >conftest.$ac_ext <<_ACEOF
33433 /* confdefs.h. */
33434 _ACEOF
33435 cat confdefs.h >>conftest.$ac_ext
33436 cat >>conftest.$ac_ext <<_ACEOF
33437 /* end confdefs.h. */
33439 #include <sys/types.h>
33440 #include <sys/mman.h>
33441 #include <fcntl.h>
33444 main ()
33447 int fd;
33448 fd = creat ("foo",0777);
33449 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33450 unlink ("foo");
33451 return (fd != (int) MAP_FAILED);
33453 return 0;
33455 _ACEOF
33456 rm -f conftest$ac_exeext
33457 if { (ac_try="$ac_link"
33458 case "(($ac_try" in
33459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460 *) ac_try_echo=$ac_try;;
33461 esac
33462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463 (eval "$ac_link") 2>&5
33464 ac_status=$?
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33467 { (case "(($ac_try" in
33468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33469 *) ac_try_echo=$ac_try;;
33470 esac
33471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472 (eval "$ac_try") 2>&5
33473 ac_status=$?
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); }; }; then
33476 ac_cv_func_mmap_file=yes
33477 else
33478 echo "$as_me: program exited with status $ac_status" >&5
33479 echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33482 ( exit $ac_status )
33483 ac_cv_func_mmap_file=no
33485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33489 ac_ext=c
33490 ac_cpp='$CPP $CPPFLAGS'
33491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33497 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33498 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33499 if test "$ac_cv_func_mmap_file" = yes; then
33501 cat >>confdefs.h <<\_ACEOF
33502 #define HAVE_MMAP_FILE
33503 _ACEOF
33505 MMAP_FILE=yes
33509 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33510 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33511 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33512 echo $ECHO_N "(cached) $ECHO_C" >&6
33513 else
33514 if test "$llvm_cv_os_type" = "Interix" ; then
33515 ac_cv_need_dev_zero_for_mmap=yes
33516 else
33517 ac_cv_need_dev_zero_for_mmap=no
33521 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33522 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33523 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33525 cat >>confdefs.h <<\_ACEOF
33526 #define NEED_DEV_ZERO_FOR_MMAP 1
33527 _ACEOF
33531 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33532 then
33533 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33534 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33536 if test "$ac_cv_func_mmap_file" = "no"
33537 then
33538 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33539 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33545 for ac_func in __dso_handle
33547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33551 echo $ECHO_N "(cached) $ECHO_C" >&6
33552 else
33553 cat >conftest.$ac_ext <<_ACEOF
33554 /* confdefs.h. */
33555 _ACEOF
33556 cat confdefs.h >>conftest.$ac_ext
33557 cat >>conftest.$ac_ext <<_ACEOF
33558 /* end confdefs.h. */
33559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33561 #define $ac_func innocuous_$ac_func
33563 /* System header to define __stub macros and hopefully few prototypes,
33564 which can conflict with char $ac_func (); below.
33565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33566 <limits.h> exists even on freestanding compilers. */
33568 #ifdef __STDC__
33569 # include <limits.h>
33570 #else
33571 # include <assert.h>
33572 #endif
33574 #undef $ac_func
33576 /* Override any GCC internal prototype to avoid an error.
33577 Use char because int might match the return type of a GCC
33578 builtin and then its argument prototype would still apply. */
33579 #ifdef __cplusplus
33580 extern "C"
33581 #endif
33582 char $ac_func ();
33583 /* The GNU C library defines this for functions which it implements
33584 to always fail with ENOSYS. Some functions are actually named
33585 something starting with __ and the normal name is an alias. */
33586 #if defined __stub_$ac_func || defined __stub___$ac_func
33587 choke me
33588 #endif
33591 main ()
33593 return $ac_func ();
33595 return 0;
33597 _ACEOF
33598 rm -f conftest.$ac_objext conftest$ac_exeext
33599 if { (ac_try="$ac_link"
33600 case "(($ac_try" in
33601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602 *) ac_try_echo=$ac_try;;
33603 esac
33604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605 (eval "$ac_link") 2>conftest.er1
33606 ac_status=$?
33607 grep -v '^ *+' conftest.er1 >conftest.err
33608 rm -f conftest.er1
33609 cat conftest.err >&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); } &&
33612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33613 { (case "(($ac_try" in
33614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615 *) ac_try_echo=$ac_try;;
33616 esac
33617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618 (eval "$ac_try") 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest$ac_exeext'
33623 { (case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33626 esac
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_try") 2>&5
33629 ac_status=$?
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; }; then
33632 eval "$as_ac_var=yes"
33633 else
33634 echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33637 eval "$as_ac_var=no"
33640 rm -f core conftest.err conftest.$ac_objext \
33641 conftest$ac_exeext conftest.$ac_ext
33643 ac_res=`eval echo '${'$as_ac_var'}'`
33644 { echo "$as_me:$LINENO: result: $ac_res" >&5
33645 echo "${ECHO_T}$ac_res" >&6; }
33646 if test `eval echo '${'$as_ac_var'}'` = yes; then
33647 cat >>confdefs.h <<_ACEOF
33648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33649 _ACEOF
33652 done
33655 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33656 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33657 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33658 echo $ECHO_N "(cached) $ECHO_C" >&6
33659 else
33660 llvm_cv_llvmgcc_sanity="no"
33661 if test -x "$LLVMGCC" ; then
33662 cp /dev/null conftest.c
33663 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33664 grep 'target datalayout =' > /dev/null 2>&1
33665 if test $? -eq 0 ; then
33666 llvm_cv_llvmgcc_sanity="yes"
33668 rm conftest.c
33671 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33672 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33674 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33675 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33676 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33677 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33678 LLVMCC1=$llvmcc1path
33680 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33681 LLVMCC1PLUS=$llvmcc1pluspath
33683 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33684 LLVMGCCDIR=$llvmgccdir
33686 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33687 LLVMGCCLIBEXEC=$llvmgcclibexec
33689 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33690 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33691 LLVMGCC_VERSION=$llvmgccversion
33693 LLVMGCC_MAJVERS=$llvmgccmajvers
33695 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33696 LLVMGCC_LANGS=$llvmgcclangs
33698 { echo "$as_me:$LINENO: result: ok" >&5
33699 echo "${ECHO_T}ok" >&6; }
33702 SHLIBEXT=$libltdl_cv_shlibext
33705 # Translate the various configuration directories and other basic
33706 # information into substitutions that will end up in Makefile.config.in
33707 # that these configured values can be used by the makefiles
33708 if test "${prefix}" = "NONE" ; then
33709 prefix="/usr/local"
33711 eval LLVM_PREFIX="${prefix}";
33712 eval LLVM_BINDIR="${prefix}/bin";
33713 eval LLVM_LIBDIR="${prefix}/lib";
33714 eval LLVM_DATADIR="${prefix}/share/llvm";
33715 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33716 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33717 eval LLVM_INCLUDEDIR="${prefix}/include";
33718 eval LLVM_INFODIR="${prefix}/info";
33719 eval LLVM_MANDIR="${prefix}/man";
33720 LLVM_CONFIGTIME=`date`
33732 # Place the various directores into the config.h file as #defines so that we
33733 # can know about the installation paths within LLVM.
33735 cat >>confdefs.h <<_ACEOF
33736 #define LLVM_PREFIX "$LLVM_PREFIX"
33737 _ACEOF
33740 cat >>confdefs.h <<_ACEOF
33741 #define LLVM_BINDIR "$LLVM_BINDIR"
33742 _ACEOF
33745 cat >>confdefs.h <<_ACEOF
33746 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33747 _ACEOF
33750 cat >>confdefs.h <<_ACEOF
33751 #define LLVM_DATADIR "$LLVM_DATADIR"
33752 _ACEOF
33755 cat >>confdefs.h <<_ACEOF
33756 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33757 _ACEOF
33760 cat >>confdefs.h <<_ACEOF
33761 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33762 _ACEOF
33765 cat >>confdefs.h <<_ACEOF
33766 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33767 _ACEOF
33770 cat >>confdefs.h <<_ACEOF
33771 #define LLVM_INFODIR "$LLVM_INFODIR"
33772 _ACEOF
33775 cat >>confdefs.h <<_ACEOF
33776 #define LLVM_MANDIR "$LLVM_MANDIR"
33777 _ACEOF
33780 cat >>confdefs.h <<_ACEOF
33781 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33782 _ACEOF
33785 cat >>confdefs.h <<_ACEOF
33786 #define LLVM_HOSTTRIPLE "$host"
33787 _ACEOF
33790 # Determine which bindings to build.
33791 if test "$BINDINGS_TO_BUILD" = auto ; then
33792 BINDINGS_TO_BUILD=""
33793 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33794 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33797 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33800 # This isn't really configurey, but it avoids having to repeat the list in
33801 # other files.
33802 ALL_BINDINGS=ocaml
33805 # Do any work necessary to ensure that bindings have what they need.
33806 binding_prereqs_failed=0
33807 for a_binding in $BINDINGS_TO_BUILD ; do
33808 case "$a_binding" in
33809 ocaml)
33810 if test "x$OCAMLC" = x ; then
33811 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33812 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33813 binding_prereqs_failed=1
33815 if test "x$OCAMLDEP" = x ; then
33816 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33817 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33818 binding_prereqs_failed=1
33820 if test "x$OCAMLOPT" = x ; then
33821 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33822 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33824 if test "x$with_ocaml_libdir" != xauto ; then
33825 OCAML_LIBDIR=$with_ocaml_libdir
33827 else
33828 ocaml_stdlib="`"$OCAMLC" -where`"
33829 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33830 then
33831 # ocaml stdlib is beneath our prefix; use stdlib
33832 OCAML_LIBDIR=$ocaml_stdlib
33834 else
33835 # ocaml stdlib is outside our prefix; use libdir/ocaml
33836 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33841 esac
33842 done
33843 if test "$binding_prereqs_failed" = 1 ; then
33844 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33845 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33846 { (exit 1); exit 1; }; }
33849 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33850 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33851 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33852 echo $ECHO_N "(cached) $ECHO_C" >&6
33853 else
33854 ac_ext=cpp
33855 ac_cpp='$CXXCPP $CPPFLAGS'
33856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33860 oldcxxflags="$CXXFLAGS"
33861 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33862 cat >conftest.$ac_ext <<_ACEOF
33863 /* confdefs.h. */
33864 _ACEOF
33865 cat confdefs.h >>conftest.$ac_ext
33866 cat >>conftest.$ac_ext <<_ACEOF
33867 /* end confdefs.h. */
33870 main ()
33874 return 0;
33876 _ACEOF
33877 rm -f conftest.$ac_objext
33878 if { (ac_try="$ac_compile"
33879 case "(($ac_try" in
33880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881 *) ac_try_echo=$ac_try;;
33882 esac
33883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884 (eval "$ac_compile") 2>conftest.er1
33885 ac_status=$?
33886 grep -v '^ *+' conftest.er1 >conftest.err
33887 rm -f conftest.er1
33888 cat conftest.err >&5
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); } &&
33891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33892 { (case "(($ac_try" in
33893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894 *) ac_try_echo=$ac_try;;
33895 esac
33896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897 (eval "$ac_try") 2>&5
33898 ac_status=$?
33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); }; } &&
33901 { ac_try='test -s conftest.$ac_objext'
33902 { (case "(($ac_try" in
33903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33904 *) ac_try_echo=$ac_try;;
33905 esac
33906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33907 (eval "$ac_try") 2>&5
33908 ac_status=$?
33909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910 (exit $ac_status); }; }; then
33911 llvm_cv_cxx_visibility_inlines_hidden=yes
33912 else
33913 echo "$as_me: failed program was:" >&5
33914 sed 's/^/| /' conftest.$ac_ext >&5
33916 llvm_cv_cxx_visibility_inlines_hidden=no
33919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33920 CXXFLAGS="$oldcxxflags"
33921 ac_ext=c
33922 ac_cpp='$CPP $CPPFLAGS'
33923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33929 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33930 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33931 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33932 ENABLE_VISIBILITY_INLINES_HIDDEN=1
33934 else
33935 ENABLE_VISIBILITY_INLINES_HIDDEN=0
33940 if test "$llvm_cv_link_use_r" = "yes" ; then
33941 RPATH="-Wl,-R"
33942 else
33943 RPATH="-Wl,-rpath"
33947 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33948 RDYNAMIC="-Wl,-export-dynamic"
33949 else
33950 RDYNAMIC=""
33955 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33957 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33959 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
33962 ac_config_files="$ac_config_files Makefile.config"
33965 ac_config_files="$ac_config_files llvm.spec"
33968 ac_config_files="$ac_config_files docs/doxygen.cfg"
33971 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33974 ac_config_commands="$ac_config_commands setup"
33976 ac_config_commands="$ac_config_commands Makefile"
33979 ac_config_commands="$ac_config_commands Makefile.common"
33982 ac_config_commands="$ac_config_commands examples/Makefile"
33985 ac_config_commands="$ac_config_commands lib/Makefile"
33988 ac_config_commands="$ac_config_commands runtime/Makefile"
33991 ac_config_commands="$ac_config_commands test/Makefile"
33994 ac_config_commands="$ac_config_commands test/Makefile.tests"
33997 ac_config_commands="$ac_config_commands unittests/Makefile"
34000 ac_config_commands="$ac_config_commands tools/Makefile"
34003 ac_config_commands="$ac_config_commands utils/Makefile"
34006 ac_config_commands="$ac_config_commands projects/Makefile"
34009 ac_config_commands="$ac_config_commands bindings/Makefile"
34012 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34016 cat >confcache <<\_ACEOF
34017 # This file is a shell script that caches the results of configure
34018 # tests run on this system so they can be shared between configure
34019 # scripts and configure runs, see configure's option --config-cache.
34020 # It is not useful on other systems. If it contains results you don't
34021 # want to keep, you may remove or edit it.
34023 # config.status only pays attention to the cache file if you give it
34024 # the --recheck option to rerun configure.
34026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34028 # following values.
34030 _ACEOF
34032 # The following way of writing the cache mishandles newlines in values,
34033 # but we know of no workaround that is simple, portable, and efficient.
34034 # So, we kill variables containing newlines.
34035 # Ultrix sh set writes to stderr and can't be redirected directly,
34036 # and sets the high bit in the cache file unless we assign to the vars.
34038 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34039 eval ac_val=\$$ac_var
34040 case $ac_val in #(
34041 *${as_nl}*)
34042 case $ac_var in #(
34043 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34044 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34045 esac
34046 case $ac_var in #(
34047 _ | IFS | as_nl) ;; #(
34048 *) $as_unset $ac_var ;;
34049 esac ;;
34050 esac
34051 done
34053 (set) 2>&1 |
34054 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34055 *${as_nl}ac_space=\ *)
34056 # `set' does not quote correctly, so add quotes (double-quote
34057 # substitution turns \\\\ into \\, and sed turns \\ into \).
34058 sed -n \
34059 "s/'/'\\\\''/g;
34060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34061 ;; #(
34063 # `set' quotes correctly as required by POSIX, so do not add quotes.
34064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34066 esac |
34067 sort
34069 sed '
34070 /^ac_cv_env_/b end
34071 t clear
34072 :clear
34073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34074 t end
34075 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34076 :end' >>confcache
34077 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34078 if test -w "$cache_file"; then
34079 test "x$cache_file" != "x/dev/null" &&
34080 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34081 echo "$as_me: updating cache $cache_file" >&6;}
34082 cat confcache >$cache_file
34083 else
34084 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34085 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34088 rm -f confcache
34090 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34091 # Let make expand exec_prefix.
34092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34094 DEFS=-DHAVE_CONFIG_H
34096 ac_libobjs=
34097 ac_ltlibobjs=
34098 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34099 # 1. Remove the extension, and $U if already installed.
34100 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34101 ac_i=`echo "$ac_i" | sed "$ac_script"`
34102 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34103 # will be set to the directory where LIBOBJS objects are built.
34104 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34105 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34106 done
34107 LIBOBJS=$ac_libobjs
34109 LTLIBOBJS=$ac_ltlibobjs
34112 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34113 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34114 Usually this means the macro was only invoked conditionally." >&5
34115 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34116 Usually this means the macro was only invoked conditionally." >&2;}
34117 { (exit 1); exit 1; }; }
34119 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34120 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34121 Usually this means the macro was only invoked conditionally." >&5
34122 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34123 Usually this means the macro was only invoked conditionally." >&2;}
34124 { (exit 1); exit 1; }; }
34127 : ${CONFIG_STATUS=./config.status}
34128 ac_clean_files_save=$ac_clean_files
34129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34130 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34131 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34132 cat >$CONFIG_STATUS <<_ACEOF
34133 #! $SHELL
34134 # Generated by $as_me.
34135 # Run this file to recreate the current configuration.
34136 # Compiler output produced by configure, useful for debugging
34137 # configure, is in config.log if it exists.
34139 debug=false
34140 ac_cs_recheck=false
34141 ac_cs_silent=false
34142 SHELL=\${CONFIG_SHELL-$SHELL}
34143 _ACEOF
34145 cat >>$CONFIG_STATUS <<\_ACEOF
34146 ## --------------------- ##
34147 ## M4sh Initialization. ##
34148 ## --------------------- ##
34150 # Be Bourne compatible
34151 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34152 emulate sh
34153 NULLCMD=:
34154 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34155 # is contrary to our usage. Disable this feature.
34156 alias -g '${1+"$@"}'='"$@"'
34157 setopt NO_GLOB_SUBST
34158 else
34159 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34161 BIN_SH=xpg4; export BIN_SH # for Tru64
34162 DUALCASE=1; export DUALCASE # for MKS sh
34165 # PATH needs CR
34166 # Avoid depending upon Character Ranges.
34167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34170 as_cr_digits='0123456789'
34171 as_cr_alnum=$as_cr_Letters$as_cr_digits
34173 # The user is always right.
34174 if test "${PATH_SEPARATOR+set}" != set; then
34175 echo "#! /bin/sh" >conf$$.sh
34176 echo "exit 0" >>conf$$.sh
34177 chmod +x conf$$.sh
34178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34179 PATH_SEPARATOR=';'
34180 else
34181 PATH_SEPARATOR=:
34183 rm -f conf$$.sh
34186 # Support unset when possible.
34187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34188 as_unset=unset
34189 else
34190 as_unset=false
34194 # IFS
34195 # We need space, tab and new line, in precisely that order. Quoting is
34196 # there to prevent editors from complaining about space-tab.
34197 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34198 # splitting by setting IFS to empty value.)
34199 as_nl='
34201 IFS=" "" $as_nl"
34203 # Find who we are. Look in the path if we contain no directory separator.
34204 case $0 in
34205 *[\\/]* ) as_myself=$0 ;;
34206 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34207 for as_dir in $PATH
34209 IFS=$as_save_IFS
34210 test -z "$as_dir" && as_dir=.
34211 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34212 done
34213 IFS=$as_save_IFS
34216 esac
34217 # We did not find ourselves, most probably we were run as `sh COMMAND'
34218 # in which case we are not to be found in the path.
34219 if test "x$as_myself" = x; then
34220 as_myself=$0
34222 if test ! -f "$as_myself"; then
34223 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34224 { (exit 1); exit 1; }
34227 # Work around bugs in pre-3.0 UWIN ksh.
34228 for as_var in ENV MAIL MAILPATH
34229 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34230 done
34231 PS1='$ '
34232 PS2='> '
34233 PS4='+ '
34235 # NLS nuisances.
34236 for as_var in \
34237 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34238 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34239 LC_TELEPHONE LC_TIME
34241 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34242 eval $as_var=C; export $as_var
34243 else
34244 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34246 done
34248 # Required to use basename.
34249 if expr a : '\(a\)' >/dev/null 2>&1 &&
34250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34251 as_expr=expr
34252 else
34253 as_expr=false
34256 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34257 as_basename=basename
34258 else
34259 as_basename=false
34263 # Name of the executable.
34264 as_me=`$as_basename -- "$0" ||
34265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34266 X"$0" : 'X\(//\)$' \| \
34267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34268 echo X/"$0" |
34269 sed '/^.*\/\([^/][^/]*\)\/*$/{
34270 s//\1/
34273 /^X\/\(\/\/\)$/{
34274 s//\1/
34277 /^X\/\(\/\).*/{
34278 s//\1/
34281 s/.*/./; q'`
34283 # CDPATH.
34284 $as_unset CDPATH
34288 as_lineno_1=$LINENO
34289 as_lineno_2=$LINENO
34290 test "x$as_lineno_1" != "x$as_lineno_2" &&
34291 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34293 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34294 # uniformly replaced by the line number. The first 'sed' inserts a
34295 # line-number line after each line using $LINENO; the second 'sed'
34296 # does the real work. The second script uses 'N' to pair each
34297 # line-number line with the line containing $LINENO, and appends
34298 # trailing '-' during substitution so that $LINENO is not a special
34299 # case at line end.
34300 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34301 # scripts with optimization help from Paolo Bonzini. Blame Lee
34302 # E. McMahon (1931-1989) for sed's syntax. :-)
34303 sed -n '
34305 /[$]LINENO/=
34306 ' <$as_myself |
34307 sed '
34308 s/[$]LINENO.*/&-/
34309 t lineno
34311 :lineno
34313 :loop
34314 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34315 t loop
34316 s/-\n.*//
34317 ' >$as_me.lineno &&
34318 chmod +x "$as_me.lineno" ||
34319 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34320 { (exit 1); exit 1; }; }
34322 # Don't try to exec as it changes $[0], causing all sort of problems
34323 # (the dirname of $[0] is not the place where we might find the
34324 # original and so on. Autoconf is especially sensitive to this).
34325 . "./$as_me.lineno"
34326 # Exit status is that of the last command.
34327 exit
34331 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34332 as_dirname=dirname
34333 else
34334 as_dirname=false
34337 ECHO_C= ECHO_N= ECHO_T=
34338 case `echo -n x` in
34339 -n*)
34340 case `echo 'x\c'` in
34341 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34342 *) ECHO_C='\c';;
34343 esac;;
34345 ECHO_N='-n';;
34346 esac
34348 if expr a : '\(a\)' >/dev/null 2>&1 &&
34349 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34350 as_expr=expr
34351 else
34352 as_expr=false
34355 rm -f conf$$ conf$$.exe conf$$.file
34356 if test -d conf$$.dir; then
34357 rm -f conf$$.dir/conf$$.file
34358 else
34359 rm -f conf$$.dir
34360 mkdir conf$$.dir
34362 echo >conf$$.file
34363 if ln -s conf$$.file conf$$ 2>/dev/null; then
34364 as_ln_s='ln -s'
34365 # ... but there are two gotchas:
34366 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34367 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34368 # In both cases, we have to default to `cp -p'.
34369 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34370 as_ln_s='cp -p'
34371 elif ln conf$$.file conf$$ 2>/dev/null; then
34372 as_ln_s=ln
34373 else
34374 as_ln_s='cp -p'
34376 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34377 rmdir conf$$.dir 2>/dev/null
34379 if mkdir -p . 2>/dev/null; then
34380 as_mkdir_p=:
34381 else
34382 test -d ./-p && rmdir ./-p
34383 as_mkdir_p=false
34386 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34387 # systems may use methods other than mode bits to determine executability.
34388 cat >conf$$.file <<_ASEOF
34389 #! /bin/sh
34390 exit 0
34391 _ASEOF
34392 chmod +x conf$$.file
34393 if test -x conf$$.file >/dev/null 2>&1; then
34394 as_executable_p="test -x"
34395 else
34396 as_executable_p=:
34398 rm -f conf$$.file
34400 # Sed expression to map a string onto a valid CPP name.
34401 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34403 # Sed expression to map a string onto a valid variable name.
34404 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34407 exec 6>&1
34409 # Save the log message, to keep $[0] and so on meaningful, and to
34410 # report actual input values of CONFIG_FILES etc. instead of their
34411 # values after options handling.
34412 ac_log="
34413 This file was extended by llvm $as_me 2.6svn, which was
34414 generated by GNU Autoconf 2.60. Invocation command line was
34416 CONFIG_FILES = $CONFIG_FILES
34417 CONFIG_HEADERS = $CONFIG_HEADERS
34418 CONFIG_LINKS = $CONFIG_LINKS
34419 CONFIG_COMMANDS = $CONFIG_COMMANDS
34420 $ $0 $@
34422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34425 _ACEOF
34427 cat >>$CONFIG_STATUS <<_ACEOF
34428 # Files that config.status was made for.
34429 config_files="$ac_config_files"
34430 config_headers="$ac_config_headers"
34431 config_commands="$ac_config_commands"
34433 _ACEOF
34435 cat >>$CONFIG_STATUS <<\_ACEOF
34436 ac_cs_usage="\
34437 \`$as_me' instantiates files from templates according to the
34438 current configuration.
34440 Usage: $0 [OPTIONS] [FILE]...
34442 -h, --help print this help, then exit
34443 -V, --version print version number, then exit
34444 -q, --quiet do not print progress messages
34445 -d, --debug don't remove temporary files
34446 --recheck update $as_me by reconfiguring in the same conditions
34447 --file=FILE[:TEMPLATE]
34448 instantiate the configuration file FILE
34449 --header=FILE[:TEMPLATE]
34450 instantiate the configuration header FILE
34452 Configuration files:
34453 $config_files
34455 Configuration headers:
34456 $config_headers
34458 Configuration commands:
34459 $config_commands
34461 Report bugs to <bug-autoconf@gnu.org>."
34463 _ACEOF
34464 cat >>$CONFIG_STATUS <<_ACEOF
34465 ac_cs_version="\\
34466 llvm config.status 2.6svn
34467 configured by $0, generated by GNU Autoconf 2.60,
34468 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34470 Copyright (C) 2006 Free Software Foundation, Inc.
34471 This config.status script is free software; the Free Software Foundation
34472 gives unlimited permission to copy, distribute and modify it."
34474 ac_pwd='$ac_pwd'
34475 srcdir='$srcdir'
34476 INSTALL='$INSTALL'
34477 _ACEOF
34479 cat >>$CONFIG_STATUS <<\_ACEOF
34480 # If no file are specified by the user, then we need to provide default
34481 # value. By we need to know if files were specified by the user.
34482 ac_need_defaults=:
34483 while test $# != 0
34485 case $1 in
34486 --*=*)
34487 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34488 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34489 ac_shift=:
34492 ac_option=$1
34493 ac_optarg=$2
34494 ac_shift=shift
34496 esac
34498 case $ac_option in
34499 # Handling of the options.
34500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34501 ac_cs_recheck=: ;;
34502 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34503 echo "$ac_cs_version"; exit ;;
34504 --debug | --debu | --deb | --de | --d | -d )
34505 debug=: ;;
34506 --file | --fil | --fi | --f )
34507 $ac_shift
34508 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34509 ac_need_defaults=false;;
34510 --header | --heade | --head | --hea )
34511 $ac_shift
34512 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34513 ac_need_defaults=false;;
34514 --he | --h)
34515 # Conflict between --help and --header
34516 { echo "$as_me: error: ambiguous option: $1
34517 Try \`$0 --help' for more information." >&2
34518 { (exit 1); exit 1; }; };;
34519 --help | --hel | -h )
34520 echo "$ac_cs_usage"; exit ;;
34521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34522 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34523 ac_cs_silent=: ;;
34525 # This is an error.
34526 -*) { echo "$as_me: error: unrecognized option: $1
34527 Try \`$0 --help' for more information." >&2
34528 { (exit 1); exit 1; }; } ;;
34530 *) ac_config_targets="$ac_config_targets $1"
34531 ac_need_defaults=false ;;
34533 esac
34534 shift
34535 done
34537 ac_configure_extra_args=
34539 if $ac_cs_silent; then
34540 exec 6>/dev/null
34541 ac_configure_extra_args="$ac_configure_extra_args --silent"
34544 _ACEOF
34545 cat >>$CONFIG_STATUS <<_ACEOF
34546 if \$ac_cs_recheck; then
34547 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34548 CONFIG_SHELL=$SHELL
34549 export CONFIG_SHELL
34550 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34553 _ACEOF
34554 cat >>$CONFIG_STATUS <<\_ACEOF
34555 exec 5>>config.log
34557 echo
34558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34559 ## Running $as_me. ##
34560 _ASBOX
34561 echo "$ac_log"
34562 } >&5
34564 _ACEOF
34565 cat >>$CONFIG_STATUS <<_ACEOF
34567 # INIT-COMMANDS
34569 llvm_src="${srcdir}"
34571 _ACEOF
34573 cat >>$CONFIG_STATUS <<\_ACEOF
34575 # Handling of arguments.
34576 for ac_config_target in $ac_config_targets
34578 case $ac_config_target in
34579 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34580 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34581 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34582 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34583 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34584 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34585 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34586 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34587 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34588 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34589 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34590 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34591 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34592 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34593 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34594 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34595 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34596 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34597 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34598 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34599 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34601 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34602 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34603 { (exit 1); exit 1; }; };;
34604 esac
34605 done
34608 # If the user did not use the arguments to specify the items to instantiate,
34609 # then the envvar interface is used. Set only those that are not.
34610 # We use the long form for the default assignment because of an extremely
34611 # bizarre bug on SunOS 4.1.3.
34612 if $ac_need_defaults; then
34613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34615 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34618 # Have a temporary directory for convenience. Make it in the build tree
34619 # simply because there is no reason against having it here, and in addition,
34620 # creating and moving files from /tmp can sometimes cause problems.
34621 # Hook for its removal unless debugging.
34622 # Note that there is a small window in which the directory will not be cleaned:
34623 # after its creation but before its name has been assigned to `$tmp'.
34624 $debug ||
34626 tmp=
34627 trap 'exit_status=$?
34628 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34630 trap '{ (exit 1); exit 1; }' 1 2 13 15
34632 # Create a (secure) tmp directory for tmp files.
34635 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34636 test -n "$tmp" && test -d "$tmp"
34637 } ||
34639 tmp=./conf$$-$RANDOM
34640 (umask 077 && mkdir "$tmp")
34641 } ||
34643 echo "$me: cannot create a temporary directory in ." >&2
34644 { (exit 1); exit 1; }
34648 # Set up the sed scripts for CONFIG_FILES section.
34651 # No need to generate the scripts if there are no CONFIG_FILES.
34652 # This happens for instance when ./config.status config.h
34653 if test -n "$CONFIG_FILES"; then
34655 _ACEOF
34659 ac_delim='%!_!# '
34660 for ac_last_try in false false false false false :; do
34661 cat >conf$$subs.sed <<_ACEOF
34662 SHELL!$SHELL$ac_delim
34663 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34664 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34665 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34666 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34667 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34668 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34669 exec_prefix!$exec_prefix$ac_delim
34670 prefix!$prefix$ac_delim
34671 program_transform_name!$program_transform_name$ac_delim
34672 bindir!$bindir$ac_delim
34673 sbindir!$sbindir$ac_delim
34674 libexecdir!$libexecdir$ac_delim
34675 datarootdir!$datarootdir$ac_delim
34676 datadir!$datadir$ac_delim
34677 sysconfdir!$sysconfdir$ac_delim
34678 sharedstatedir!$sharedstatedir$ac_delim
34679 localstatedir!$localstatedir$ac_delim
34680 includedir!$includedir$ac_delim
34681 oldincludedir!$oldincludedir$ac_delim
34682 docdir!$docdir$ac_delim
34683 infodir!$infodir$ac_delim
34684 htmldir!$htmldir$ac_delim
34685 dvidir!$dvidir$ac_delim
34686 pdfdir!$pdfdir$ac_delim
34687 psdir!$psdir$ac_delim
34688 libdir!$libdir$ac_delim
34689 localedir!$localedir$ac_delim
34690 mandir!$mandir$ac_delim
34691 DEFS!$DEFS$ac_delim
34692 ECHO_C!$ECHO_C$ac_delim
34693 ECHO_N!$ECHO_N$ac_delim
34694 ECHO_T!$ECHO_T$ac_delim
34695 LIBS!$LIBS$ac_delim
34696 build_alias!$build_alias$ac_delim
34697 host_alias!$host_alias$ac_delim
34698 target_alias!$target_alias$ac_delim
34699 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34700 subdirs!$subdirs$ac_delim
34701 build!$build$ac_delim
34702 build_cpu!$build_cpu$ac_delim
34703 build_vendor!$build_vendor$ac_delim
34704 build_os!$build_os$ac_delim
34705 host!$host$ac_delim
34706 host_cpu!$host_cpu$ac_delim
34707 host_vendor!$host_vendor$ac_delim
34708 host_os!$host_os$ac_delim
34709 target!$target$ac_delim
34710 target_cpu!$target_cpu$ac_delim
34711 target_vendor!$target_vendor$ac_delim
34712 target_os!$target_os$ac_delim
34713 OS!$OS$ac_delim
34714 LINKALL!$LINKALL$ac_delim
34715 NOLINKALL!$NOLINKALL$ac_delim
34716 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34717 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34718 ARCH!$ARCH$ac_delim
34719 ENDIAN!$ENDIAN$ac_delim
34720 CC!$CC$ac_delim
34721 CFLAGS!$CFLAGS$ac_delim
34722 LDFLAGS!$LDFLAGS$ac_delim
34723 CPPFLAGS!$CPPFLAGS$ac_delim
34724 ac_ct_CC!$ac_ct_CC$ac_delim
34725 EXEEXT!$EXEEXT$ac_delim
34726 OBJEXT!$OBJEXT$ac_delim
34727 CPP!$CPP$ac_delim
34728 GREP!$GREP$ac_delim
34729 EGREP!$EGREP$ac_delim
34730 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34731 BUILD_CC!$BUILD_CC$ac_delim
34732 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34733 BUILD_CXX!$BUILD_CXX$ac_delim
34734 CVSBUILD!$CVSBUILD$ac_delim
34735 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34736 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34737 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34738 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34739 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34740 JIT!$JIT$ac_delim
34741 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34742 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34743 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34744 ENABLE_PIC!$ENABLE_PIC$ac_delim
34745 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34746 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34747 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34748 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34749 CXX!$CXX$ac_delim
34750 CXXFLAGS!$CXXFLAGS$ac_delim
34751 ac_ct_CXX!$ac_ct_CXX$ac_delim
34752 NM!$NM$ac_delim
34753 ifGNUmake!$ifGNUmake$ac_delim
34754 LN_S!$LN_S$ac_delim
34755 CMP!$CMP$ac_delim
34756 CP!$CP$ac_delim
34757 DATE!$DATE$ac_delim
34758 FIND!$FIND$ac_delim
34759 _ACEOF
34761 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34762 break
34763 elif $ac_last_try; then
34764 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34765 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34766 { (exit 1); exit 1; }; }
34767 else
34768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34770 done
34772 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34773 if test -n "$ac_eof"; then
34774 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34775 ac_eof=`expr $ac_eof + 1`
34778 cat >>$CONFIG_STATUS <<_ACEOF
34779 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34781 _ACEOF
34782 sed '
34783 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34784 s/^/s,@/; s/!/@,|#_!!_#|/
34787 s/'"$ac_delim"'$/,g/; t
34788 s/$/\\/; p
34789 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34790 ' >>$CONFIG_STATUS <conf$$subs.sed
34791 rm -f conf$$subs.sed
34792 cat >>$CONFIG_STATUS <<_ACEOF
34793 CEOF$ac_eof
34794 _ACEOF
34797 ac_delim='%!_!# '
34798 for ac_last_try in false false false false false :; do
34799 cat >conf$$subs.sed <<_ACEOF
34800 MKDIR!$MKDIR$ac_delim
34801 MV!$MV$ac_delim
34802 RANLIB!$RANLIB$ac_delim
34803 RM!$RM$ac_delim
34804 SED!$SED$ac_delim
34805 TAR!$TAR$ac_delim
34806 BINPWD!$BINPWD$ac_delim
34807 GRAPHVIZ!$GRAPHVIZ$ac_delim
34808 DOT!$DOT$ac_delim
34809 GV!$GV$ac_delim
34810 DOTTY!$DOTTY$ac_delim
34811 PERL!$PERL$ac_delim
34812 HAVE_PERL!$HAVE_PERL$ac_delim
34813 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34814 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34815 INSTALL_DATA!$INSTALL_DATA$ac_delim
34816 BZIP2!$BZIP2$ac_delim
34817 DOXYGEN!$DOXYGEN$ac_delim
34818 GROFF!$GROFF$ac_delim
34819 GZIP!$GZIP$ac_delim
34820 POD2HTML!$POD2HTML$ac_delim
34821 POD2MAN!$POD2MAN$ac_delim
34822 RUNTEST!$RUNTEST$ac_delim
34823 TCLSH!$TCLSH$ac_delim
34824 ZIP!$ZIP$ac_delim
34825 OCAMLC!$OCAMLC$ac_delim
34826 OCAMLOPT!$OCAMLOPT$ac_delim
34827 OCAMLDEP!$OCAMLDEP$ac_delim
34828 OCAMLDOC!$OCAMLDOC$ac_delim
34829 GAS!$GAS$ac_delim
34830 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34831 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34832 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34833 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34834 LIBADD_DL!$LIBADD_DL$ac_delim
34835 ECHO!$ECHO$ac_delim
34836 AR!$AR$ac_delim
34837 STRIP!$STRIP$ac_delim
34838 CXXCPP!$CXXCPP$ac_delim
34839 F77!$F77$ac_delim
34840 FFLAGS!$FFLAGS$ac_delim
34841 ac_ct_F77!$ac_ct_F77$ac_delim
34842 LIBTOOL!$LIBTOOL$ac_delim
34843 LLVMGCC!$LLVMGCC$ac_delim
34844 LLVMGXX!$LLVMGXX$ac_delim
34845 USE_UDIS86!$USE_UDIS86$ac_delim
34846 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34847 HAVE_FFI!$HAVE_FFI$ac_delim
34848 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34849 ALLOCA!$ALLOCA$ac_delim
34850 MMAP_FILE!$MMAP_FILE$ac_delim
34851 LLVMCC1!$LLVMCC1$ac_delim
34852 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34853 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34854 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34855 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34856 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34857 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34858 SHLIBEXT!$SHLIBEXT$ac_delim
34859 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34860 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34861 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34862 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34863 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34864 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34865 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34866 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34867 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34868 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34869 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34870 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34871 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34872 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34873 RPATH!$RPATH$ac_delim
34874 RDYNAMIC!$RDYNAMIC$ac_delim
34875 LIBOBJS!$LIBOBJS$ac_delim
34876 LTLIBOBJS!$LTLIBOBJS$ac_delim
34877 _ACEOF
34879 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
34880 break
34881 elif $ac_last_try; then
34882 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34883 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34884 { (exit 1); exit 1; }; }
34885 else
34886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34888 done
34890 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34891 if test -n "$ac_eof"; then
34892 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34893 ac_eof=`expr $ac_eof + 1`
34896 cat >>$CONFIG_STATUS <<_ACEOF
34897 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34899 _ACEOF
34900 sed '
34901 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34902 s/^/s,@/; s/!/@,|#_!!_#|/
34905 s/'"$ac_delim"'$/,g/; t
34906 s/$/\\/; p
34907 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34908 ' >>$CONFIG_STATUS <conf$$subs.sed
34909 rm -f conf$$subs.sed
34910 cat >>$CONFIG_STATUS <<_ACEOF
34911 :end
34912 s/|#_!!_#|//g
34913 CEOF$ac_eof
34914 _ACEOF
34917 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34918 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34919 # trailing colons and then remove the whole line if VPATH becomes empty
34920 # (actually we leave an empty line to preserve line numbers).
34921 if test "x$srcdir" = x.; then
34922 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34923 s/:*\$(srcdir):*/:/
34924 s/:*\${srcdir}:*/:/
34925 s/:*@srcdir@:*/:/
34926 s/^\([^=]*=[ ]*\):*/\1/
34927 s/:*$//
34928 s/^[^=]*=[ ]*$//
34932 cat >>$CONFIG_STATUS <<\_ACEOF
34933 fi # test -n "$CONFIG_FILES"
34936 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34938 case $ac_tag in
34939 :[FHLC]) ac_mode=$ac_tag; continue;;
34940 esac
34941 case $ac_mode$ac_tag in
34942 :[FHL]*:*);;
34943 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34944 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34945 { (exit 1); exit 1; }; };;
34946 :[FH]-) ac_tag=-:-;;
34947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34948 esac
34949 ac_save_IFS=$IFS
34950 IFS=:
34951 set x $ac_tag
34952 IFS=$ac_save_IFS
34953 shift
34954 ac_file=$1
34955 shift
34957 case $ac_mode in
34958 :L) ac_source=$1;;
34959 :[FH])
34960 ac_file_inputs=
34961 for ac_f
34963 case $ac_f in
34964 -) ac_f="$tmp/stdin";;
34965 *) # Look for the file first in the build tree, then in the source tree
34966 # (if the path is not absolute). The absolute path cannot be DOS-style,
34967 # because $ac_f cannot contain `:'.
34968 test -f "$ac_f" ||
34969 case $ac_f in
34970 [\\/$]*) false;;
34971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34972 esac ||
34973 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34974 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34975 { (exit 1); exit 1; }; };;
34976 esac
34977 ac_file_inputs="$ac_file_inputs $ac_f"
34978 done
34980 # Let's still pretend it is `configure' which instantiates (i.e., don't
34981 # use $as_me), people would be surprised to read:
34982 # /* config.h. Generated by config.status. */
34983 configure_input="Generated from "`IFS=:
34984 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34985 if test x"$ac_file" != x-; then
34986 configure_input="$ac_file. $configure_input"
34987 { echo "$as_me:$LINENO: creating $ac_file" >&5
34988 echo "$as_me: creating $ac_file" >&6;}
34991 case $ac_tag in
34992 *:-:* | *:-) cat >"$tmp/stdin";;
34993 esac
34995 esac
34997 ac_dir=`$as_dirname -- "$ac_file" ||
34998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34999 X"$ac_file" : 'X\(//\)[^/]' \| \
35000 X"$ac_file" : 'X\(//\)$' \| \
35001 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35002 echo X"$ac_file" |
35003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35004 s//\1/
35007 /^X\(\/\/\)[^/].*/{
35008 s//\1/
35011 /^X\(\/\/\)$/{
35012 s//\1/
35015 /^X\(\/\).*/{
35016 s//\1/
35019 s/.*/./; q'`
35020 { as_dir="$ac_dir"
35021 case $as_dir in #(
35022 -*) as_dir=./$as_dir;;
35023 esac
35024 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35025 as_dirs=
35026 while :; do
35027 case $as_dir in #(
35028 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35029 *) as_qdir=$as_dir;;
35030 esac
35031 as_dirs="'$as_qdir' $as_dirs"
35032 as_dir=`$as_dirname -- "$as_dir" ||
35033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35034 X"$as_dir" : 'X\(//\)[^/]' \| \
35035 X"$as_dir" : 'X\(//\)$' \| \
35036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35037 echo X"$as_dir" |
35038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35039 s//\1/
35042 /^X\(\/\/\)[^/].*/{
35043 s//\1/
35046 /^X\(\/\/\)$/{
35047 s//\1/
35050 /^X\(\/\).*/{
35051 s//\1/
35054 s/.*/./; q'`
35055 test -d "$as_dir" && break
35056 done
35057 test -z "$as_dirs" || eval "mkdir $as_dirs"
35058 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35059 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35060 { (exit 1); exit 1; }; }; }
35061 ac_builddir=.
35063 case "$ac_dir" in
35064 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35067 # A ".." for each directory in $ac_dir_suffix.
35068 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35069 case $ac_top_builddir_sub in
35070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35072 esac ;;
35073 esac
35074 ac_abs_top_builddir=$ac_pwd
35075 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35076 # for backward compatibility:
35077 ac_top_builddir=$ac_top_build_prefix
35079 case $srcdir in
35080 .) # We are building in place.
35081 ac_srcdir=.
35082 ac_top_srcdir=$ac_top_builddir_sub
35083 ac_abs_top_srcdir=$ac_pwd ;;
35084 [\\/]* | ?:[\\/]* ) # Absolute name.
35085 ac_srcdir=$srcdir$ac_dir_suffix;
35086 ac_top_srcdir=$srcdir
35087 ac_abs_top_srcdir=$srcdir ;;
35088 *) # Relative name.
35089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35090 ac_top_srcdir=$ac_top_build_prefix$srcdir
35091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35092 esac
35093 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35096 case $ac_mode in
35099 # CONFIG_FILE
35102 case $INSTALL in
35103 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35104 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35105 esac
35106 _ACEOF
35108 cat >>$CONFIG_STATUS <<\_ACEOF
35109 # If the template does not know about datarootdir, expand it.
35110 # FIXME: This hack should be removed a few years after 2.60.
35111 ac_datarootdir_hack=; ac_datarootdir_seen=
35113 case `sed -n '/datarootdir/ {
35117 /@datadir@/p
35118 /@docdir@/p
35119 /@infodir@/p
35120 /@localedir@/p
35121 /@mandir@/p
35122 ' $ac_file_inputs` in
35123 *datarootdir*) ac_datarootdir_seen=yes;;
35124 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35125 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35126 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35127 _ACEOF
35128 cat >>$CONFIG_STATUS <<_ACEOF
35129 ac_datarootdir_hack='
35130 s&@datadir@&$datadir&g
35131 s&@docdir@&$docdir&g
35132 s&@infodir@&$infodir&g
35133 s&@localedir@&$localedir&g
35134 s&@mandir@&$mandir&g
35135 s&\\\${datarootdir}&$datarootdir&g' ;;
35136 esac
35137 _ACEOF
35139 # Neutralize VPATH when `$srcdir' = `.'.
35140 # Shell code in configure.ac might set extrasub.
35141 # FIXME: do we really want to maintain this feature?
35142 cat >>$CONFIG_STATUS <<_ACEOF
35143 sed "$ac_vpsub
35144 $extrasub
35145 _ACEOF
35146 cat >>$CONFIG_STATUS <<\_ACEOF
35148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35149 s&@configure_input@&$configure_input&;t t
35150 s&@top_builddir@&$ac_top_builddir_sub&;t t
35151 s&@srcdir@&$ac_srcdir&;t t
35152 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35153 s&@top_srcdir@&$ac_top_srcdir&;t t
35154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35155 s&@builddir@&$ac_builddir&;t t
35156 s&@abs_builddir@&$ac_abs_builddir&;t t
35157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35158 s&@INSTALL@&$ac_INSTALL&;t t
35159 $ac_datarootdir_hack
35160 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35162 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35163 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35164 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35165 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35166 which seems to be undefined. Please make sure it is defined." >&5
35167 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35168 which seems to be undefined. Please make sure it is defined." >&2;}
35170 rm -f "$tmp/stdin"
35171 case $ac_file in
35172 -) cat "$tmp/out"; rm -f "$tmp/out";;
35173 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35174 esac
35178 # CONFIG_HEADER
35180 _ACEOF
35182 # Transform confdefs.h into a sed script `conftest.defines', that
35183 # substitutes the proper values into config.h.in to produce config.h.
35184 rm -f conftest.defines conftest.tail
35185 # First, append a space to every undef/define line, to ease matching.
35186 echo 's/$/ /' >conftest.defines
35187 # Then, protect against being on the right side of a sed subst, or in
35188 # an unquoted here document, in config.status. If some macros were
35189 # called several times there might be several #defines for the same
35190 # symbol, which is useless. But do not sort them, since the last
35191 # AC_DEFINE must be honored.
35192 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35193 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35194 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35195 # PARAMS is the parameter list in the macro definition--in most cases, it's
35196 # just an empty string.
35197 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35198 ac_dB='\\)[ (].*,\\1define\\2'
35199 ac_dC=' '
35200 ac_dD=' ,'
35202 uniq confdefs.h |
35203 sed -n '
35204 t rset
35205 :rset
35206 s/^[ ]*#[ ]*define[ ][ ]*//
35207 t ok
35210 s/[\\&,]/\\&/g
35211 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35212 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35213 ' >>conftest.defines
35215 # Remove the space that was appended to ease matching.
35216 # Then replace #undef with comments. This is necessary, for
35217 # example, in the case of _POSIX_SOURCE, which is predefined and required
35218 # on some systems where configure will not decide to define it.
35219 # (The regexp can be short, since the line contains either #define or #undef.)
35220 echo 's/ $//
35221 s,^[ #]*u.*,/* & */,' >>conftest.defines
35223 # Break up conftest.defines:
35224 ac_max_sed_lines=50
35226 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35227 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35228 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35229 # et cetera.
35230 ac_in='$ac_file_inputs'
35231 ac_out='"$tmp/out1"'
35232 ac_nxt='"$tmp/out2"'
35234 while :
35236 # Write a here document:
35237 cat >>$CONFIG_STATUS <<_ACEOF
35238 # First, check the format of the line:
35239 cat >"\$tmp/defines.sed" <<\\CEOF
35240 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35241 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35243 :def
35244 _ACEOF
35245 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35246 echo 'CEOF
35247 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35248 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35249 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35250 grep . conftest.tail >/dev/null || break
35251 rm -f conftest.defines
35252 mv conftest.tail conftest.defines
35253 done
35254 rm -f conftest.defines conftest.tail
35256 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35257 cat >>$CONFIG_STATUS <<\_ACEOF
35258 if test x"$ac_file" != x-; then
35259 echo "/* $configure_input */" >"$tmp/config.h"
35260 cat "$ac_result" >>"$tmp/config.h"
35261 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35262 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35263 echo "$as_me: $ac_file is unchanged" >&6;}
35264 else
35265 rm -f $ac_file
35266 mv "$tmp/config.h" $ac_file
35268 else
35269 echo "/* $configure_input */"
35270 cat "$ac_result"
35272 rm -f "$tmp/out12"
35275 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35276 echo "$as_me: executing $ac_file commands" >&6;}
35278 esac
35281 case $ac_file$ac_mode in
35282 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35283 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35284 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35285 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35286 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35287 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35288 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35289 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35290 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35291 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35292 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35293 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35294 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35295 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35296 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35297 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35298 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35299 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35300 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35301 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35302 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35303 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35304 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35305 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35306 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35307 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35309 esac
35310 done # for ac_tag
35313 { (exit 0); exit 0; }
35314 _ACEOF
35315 chmod +x $CONFIG_STATUS
35316 ac_clean_files=$ac_clean_files_save
35319 # configure is writing to config.log, and then calls config.status.
35320 # config.status does its own redirection, appending to config.log.
35321 # Unfortunately, on DOS this fails, as config.log is still kept open
35322 # by configure, so config.status won't be able to write to it; its
35323 # output is simply discarded. So we exec the FD to /dev/null,
35324 # effectively closing config.log, so it can be properly (re)opened and
35325 # appended to by config.status. When coming back to configure, we
35326 # need to make the FD available again.
35327 if test "$no_create" != yes; then
35328 ac_cs_success=:
35329 ac_config_status_args=
35330 test "$silent" = yes &&
35331 ac_config_status_args="$ac_config_status_args --quiet"
35332 exec 5>/dev/null
35333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35334 exec 5>>config.log
35335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35336 # would make configure fail if this is the last instruction.
35337 $ac_cs_success || { (exit 1); exit 1; }
35341 # CONFIG_SUBDIRS section.
35343 if test "$no_recursion" != yes; then
35345 # Remove --cache-file and --srcdir arguments so they do not pile up.
35346 ac_sub_configure_args=
35347 ac_prev=
35348 eval "set x $ac_configure_args"
35349 shift
35350 for ac_arg
35352 if test -n "$ac_prev"; then
35353 ac_prev=
35354 continue
35356 case $ac_arg in
35357 -cache-file | --cache-file | --cache-fil | --cache-fi \
35358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35359 ac_prev=cache_file ;;
35360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35362 | --c=*)
35364 --config-cache | -C)
35366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35367 ac_prev=srcdir ;;
35368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35370 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35371 ac_prev=prefix ;;
35372 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35375 case $ac_arg in
35376 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35377 esac
35378 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35379 esac
35380 done
35382 # Always prepend --prefix to ensure using the same prefix
35383 # in subdir configurations.
35384 ac_arg="--prefix=$prefix"
35385 case $ac_arg in
35386 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35387 esac
35388 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35390 ac_popdir=`pwd`
35391 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35393 # Do not complain, so a configure script can configure whichever
35394 # parts of a large source tree are present.
35395 test -d "$srcdir/$ac_dir" || continue
35397 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35398 echo "$as_me:$LINENO: $ac_msg" >&5
35399 echo "$ac_msg" >&6
35400 { as_dir="$ac_dir"
35401 case $as_dir in #(
35402 -*) as_dir=./$as_dir;;
35403 esac
35404 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35405 as_dirs=
35406 while :; do
35407 case $as_dir in #(
35408 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35409 *) as_qdir=$as_dir;;
35410 esac
35411 as_dirs="'$as_qdir' $as_dirs"
35412 as_dir=`$as_dirname -- "$as_dir" ||
35413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35414 X"$as_dir" : 'X\(//\)[^/]' \| \
35415 X"$as_dir" : 'X\(//\)$' \| \
35416 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35417 echo X"$as_dir" |
35418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35419 s//\1/
35422 /^X\(\/\/\)[^/].*/{
35423 s//\1/
35426 /^X\(\/\/\)$/{
35427 s//\1/
35430 /^X\(\/\).*/{
35431 s//\1/
35434 s/.*/./; q'`
35435 test -d "$as_dir" && break
35436 done
35437 test -z "$as_dirs" || eval "mkdir $as_dirs"
35438 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35439 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35440 { (exit 1); exit 1; }; }; }
35441 ac_builddir=.
35443 case "$ac_dir" in
35444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35446 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35447 # A ".." for each directory in $ac_dir_suffix.
35448 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35449 case $ac_top_builddir_sub in
35450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35452 esac ;;
35453 esac
35454 ac_abs_top_builddir=$ac_pwd
35455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35456 # for backward compatibility:
35457 ac_top_builddir=$ac_top_build_prefix
35459 case $srcdir in
35460 .) # We are building in place.
35461 ac_srcdir=.
35462 ac_top_srcdir=$ac_top_builddir_sub
35463 ac_abs_top_srcdir=$ac_pwd ;;
35464 [\\/]* | ?:[\\/]* ) # Absolute name.
35465 ac_srcdir=$srcdir$ac_dir_suffix;
35466 ac_top_srcdir=$srcdir
35467 ac_abs_top_srcdir=$srcdir ;;
35468 *) # Relative name.
35469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35470 ac_top_srcdir=$ac_top_build_prefix$srcdir
35471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35472 esac
35473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35476 cd "$ac_dir"
35478 # Check for guested configure; otherwise get Cygnus style configure.
35479 if test -f "$ac_srcdir/configure.gnu"; then
35480 ac_sub_configure=$ac_srcdir/configure.gnu
35481 elif test -f "$ac_srcdir/configure"; then
35482 ac_sub_configure=$ac_srcdir/configure
35483 elif test -f "$ac_srcdir/configure.in"; then
35484 # This should be Cygnus configure.
35485 ac_sub_configure=$ac_aux_dir/configure
35486 else
35487 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35488 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35489 ac_sub_configure=
35492 # The recursion is here.
35493 if test -n "$ac_sub_configure"; then
35494 # Make the cache file name correct relative to the subdirectory.
35495 case $cache_file in
35496 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35497 *) # Relative name.
35498 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35499 esac
35501 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35502 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35503 # The eval makes quoting arguments work.
35504 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35505 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35506 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35507 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35508 { (exit 1); exit 1; }; }
35511 cd "$ac_popdir"
35512 done