Modified instructions to configure llvm-test by configure llvm with the Path --with...
[llvm-complete.git] / configure
blobbdd613bc2726c1ee61669de163ef8c5e1e19f04c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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-2007 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.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
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 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
845 CXXFLAGS
846 ac_ct_CXX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
855 ifGNUmake
856 LN_S
859 DATE
860 FIND
861 MKDIR
863 RANLIB
867 BINPWD
868 GRAPHVIZ
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
886 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 INSTALL_LTDL_TRUE
890 INSTALL_LTDL_FALSE
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
893 LIBADD_DL
894 ECHO
896 STRIP
897 CXXCPP
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 LLVMGCC
903 LLVMGXX
904 USE_UDIS86
905 HAVE_PTHREAD
906 HUGE_VAL_SANITY
907 ALLOCA
908 MMAP_FILE
909 LLVMCC1
910 LLVMCC1PLUS
911 LLVMGCCDIR
912 LLVMGCCLIBEXEC
913 LLVMGCC_VERSION
914 LLVMGCC_MAJVERS
915 LLVMGCC_LANGS
916 SHLIBEXT
917 LLVM_PREFIX
918 LLVM_BINDIR
919 LLVM_LIBDIR
920 LLVM_DATADIR
921 LLVM_DOCSDIR
922 LLVM_ETCDIR
923 LLVM_INCLUDEDIR
924 LLVM_INFODIR
925 LLVM_MANDIR
926 LLVM_CONFIGTIME
927 BINDINGS_TO_BUILD
928 ALL_BINDINGS
929 OCAML_LIBDIR
930 LIBOBJS
931 LTLIBOBJS'
932 ac_subst_files=''
933 ac_precious_vars='build_alias
934 host_alias
935 target_alias
937 CFLAGS
938 LDFLAGS
939 CPPFLAGS
942 CXXFLAGS
944 YACC
945 YFLAGS
946 CXXCPP
948 FFLAGS'
949 ac_subdirs_all='projects/sample
950 projects/privbracket
951 projects/llvm-stacker
952 projects/llvm-test
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.2svn 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.2svn:";;
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 NO)
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-extra-options Specify addtional options to compile LLVM with
1566 --with-ocaml-libdir Specify install location for ocaml bindings (default
1567 is stdlib)
1568 --with-tclinclude directory where tcl headers are
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1571 both]
1572 --with-tags[=TAGS] include additional configurations [automatic]
1573 --with-udis86=<path> Use udis86 external x86 disassembler library
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583 CXX C++ compiler command
1584 CXXFLAGS C++ compiler flags
1585 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1586 the first program found out of: `bison -y', `byacc', `yacc'.
1587 YFLAGS The list of arguments that will be passed by default to $YACC.
1588 This script will default YFLAGS to the empty string to avoid a
1589 default value of `-d' given by some make applications.
1590 CXXCPP C++ preprocessor
1591 F77 Fortran 77 compiler command
1592 FFLAGS Fortran 77 compiler flags
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 Report bugs to <llvmbugs@cs.uiuc.edu>.
1598 _ACEOF
1599 ac_status=$?
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" || continue
1606 ac_builddir=.
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 llvm configure 2.2svn
1659 generated by GNU Autoconf 2.60
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1666 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1667 _ACEOF
1668 exit
1670 cat >config.log <<_ACEOF
1671 This file contains any messages produced by compilers while
1672 running configure, to aid debugging if configure makes a mistake.
1674 It was created by llvm $as_me 2.2svn, which was
1675 generated by GNU Autoconf 2.60. Invocation command line was
1677 $ $0 $@
1679 _ACEOF
1680 exec 5>>config.log
1682 cat <<_ASUNAME
1683 ## --------- ##
1684 ## Platform. ##
1685 ## --------- ##
1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704 _ASUNAME
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 echo "PATH: $as_dir"
1712 done
1713 IFS=$as_save_IFS
1715 } >&5
1717 cat >&5 <<_ACEOF
1720 ## ----------- ##
1721 ## Core tests. ##
1722 ## ----------- ##
1724 _ACEOF
1727 # Keep a trace of the command line.
1728 # Strip out --no-create and --no-recursion so they do not pile up.
1729 # Strip out --silent because we don't want to record it for future runs.
1730 # Also quote any args containing shell meta-characters.
1731 # Make two passes to allow for proper duplicate-argument suppression.
1732 ac_configure_args=
1733 ac_configure_args0=
1734 ac_configure_args1=
1735 ac_must_keep_next=false
1736 for ac_pass in 1 2
1738 for ac_arg
1740 case $ac_arg in
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1744 continue ;;
1745 *\'*)
1746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 esac
1748 case $ac_pass in
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
1753 ac_must_keep_next=false # Got value, back to normal.
1754 else
1755 case $ac_arg in
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 esac
1764 -* ) ac_must_keep_next=true ;;
1765 esac
1767 ac_configure_args="$ac_configure_args '$ac_arg'"
1769 esac
1770 done
1771 done
1772 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775 # When interrupted or exit'd, cleanup temporary files, and complete
1776 # config.log. We remove comments because anyway the quotes in there
1777 # would cause problems or look ugly.
1778 # WARNING: Use '\'' to represent an apostrophe within the trap.
1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780 trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1783 echo
1785 cat <<\_ASBOX
1786 ## ---------------- ##
1787 ## Cache variables. ##
1788 ## ---------------- ##
1789 _ASBOX
1790 echo
1791 # The following way of writing the cache mishandles newlines in values,
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in #(
1796 *${as_nl}*)
1797 case $ac_var in #(
1798 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800 esac
1801 case $ac_var in #(
1802 _ | IFS | as_nl) ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
1807 (set) 2>&1 |
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1810 sed -n \
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 esac |
1818 sort
1820 echo
1822 cat <<\_ASBOX
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1826 _ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1843 _ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 echo "$ac_var='\''$ac_val'\''"
1852 done | sort
1853 echo
1856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858 ## ----------- ##
1859 ## confdefs.h. ##
1860 ## ----------- ##
1861 _ASBOX
1862 echo
1863 cat confdefs.h
1864 echo
1866 test "$ac_signal" != 0 &&
1867 echo "$as_me: caught signal $ac_signal"
1868 echo "$as_me: exit $exit_status"
1869 } >&5
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872 exit $exit_status
1874 for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 done
1877 ac_signal=0
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1882 # Predefined preprocessor variables.
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 _ACEOF
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 _ACEOF
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 _ACEOF
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 _ACEOF
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 _ACEOF
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer explicitly selected file to automatically selected ones.
1911 if test -n "$CONFIG_SITE"; then
1912 set x "$CONFIG_SITE"
1913 elif test "x$prefix" != xNONE; then
1914 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915 else
1916 set x "$ac_default_prefix/share/config.site" \
1917 "$ac_default_prefix/etc/config.site"
1919 shift
1920 for ac_site_file
1922 if test -r "$ac_site_file"; then
1923 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924 echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1926 . "$ac_site_file"
1928 done
1930 if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935 echo "$as_me: loading cache $cache_file" >&6;}
1936 case $cache_file in
1937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
1939 esac
1941 else
1942 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943 echo "$as_me: creating cache $cache_file" >&6;}
1944 >$cache_file
1947 # Check that the precious variables saved in the cache have kept the same
1948 # value.
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1968 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1970 echo "$as_me: former value: $ac_old_val" >&2;}
1971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1972 echo "$as_me: current value: $ac_new_val" >&2;}
1973 ac_cache_corrupted=:
1974 fi;;
1975 esac
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1978 case $ac_new_val in
1979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 *) ac_arg=$ac_var=$ac_new_val ;;
1981 esac
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 esac
1987 done
1988 if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
2020 ac_ext=c
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2036 ac_aux_dir=
2037 for ac_dir in autoconf "$srcdir"/autoconf; do
2038 if test -f "$ac_dir/install-sh"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 break
2042 elif test -f "$ac_dir/install.sh"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install.sh -c"
2045 break
2046 elif test -f "$ac_dir/shtool"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 break
2051 done
2052 if test -z "$ac_aux_dir"; then
2053 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2054 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2055 { (exit 1); exit 1; }; }
2058 # These three variables are undocumented and unsupported,
2059 # and are intended to be withdrawn in a future Autoconf release.
2060 # They can cause serious problems if a builder's source tree is in a directory
2061 # whose full name contains unusual characters.
2062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2068 if test ${srcdir} != "." ; then
2069 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2070 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2071 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2072 { (exit 1); exit 1; }; }
2076 for i in `ls ${srcdir}/projects`
2078 if test -d ${srcdir}/projects/${i} ; then
2079 case ${i} in
2080 CVS) ;;
2081 sample) subdirs="$subdirs projects/sample"
2083 privbracket) subdirs="$subdirs projects/privbracket"
2085 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2087 llvm-test) subdirs="$subdirs projects/llvm-test"
2089 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2091 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2093 llvm-java) subdirs="$subdirs projects/llvm-java"
2095 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2097 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2099 poolalloc) subdirs="$subdirs projects/poolalloc"
2101 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2104 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2105 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2107 esac
2109 done
2112 # Make sure we can run config.sub.
2113 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2114 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2115 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2116 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: checking build system type" >&5
2119 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2120 if test "${ac_cv_build+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 ac_build_alias=$build_alias
2124 test "x$ac_build_alias" = x &&
2125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2126 test "x$ac_build_alias" = x &&
2127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2128 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2129 { (exit 1); exit 1; }; }
2130 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2133 { (exit 1); exit 1; }; }
2136 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2137 echo "${ECHO_T}$ac_cv_build" >&6; }
2138 case $ac_cv_build in
2139 *-*-*) ;;
2140 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2141 echo "$as_me: error: invalid value of canonical build" >&2;}
2142 { (exit 1); exit 1; }; };;
2143 esac
2144 build=$ac_cv_build
2145 ac_save_IFS=$IFS; IFS='-'
2146 set x $ac_cv_build
2147 shift
2148 build_cpu=$1
2149 build_vendor=$2
2150 shift; shift
2151 # Remember, the first character of IFS is used to create $*,
2152 # except with old shells:
2153 build_os=$*
2154 IFS=$ac_save_IFS
2155 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2158 { echo "$as_me:$LINENO: checking host system type" >&5
2159 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2160 if test "${ac_cv_host+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test "x$host_alias" = x; then
2164 ac_cv_host=$ac_cv_build
2165 else
2166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2173 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174 echo "${ECHO_T}$ac_cv_host" >&6; }
2175 case $ac_cv_host in
2176 *-*-*) ;;
2177 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2178 echo "$as_me: error: invalid value of canonical host" >&2;}
2179 { (exit 1); exit 1; }; };;
2180 esac
2181 host=$ac_cv_host
2182 ac_save_IFS=$IFS; IFS='-'
2183 set x $ac_cv_host
2184 shift
2185 host_cpu=$1
2186 host_vendor=$2
2187 shift; shift
2188 # Remember, the first character of IFS is used to create $*,
2189 # except with old shells:
2190 host_os=$*
2191 IFS=$ac_save_IFS
2192 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2195 { echo "$as_me:$LINENO: checking target system type" >&5
2196 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2197 if test "${ac_cv_target+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200 if test "x$target_alias" = x; then
2201 ac_cv_target=$ac_cv_host
2202 else
2203 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2204 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2205 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2206 { (exit 1); exit 1; }; }
2210 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2211 echo "${ECHO_T}$ac_cv_target" >&6; }
2212 case $ac_cv_target in
2213 *-*-*) ;;
2214 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2215 echo "$as_me: error: invalid value of canonical target" >&2;}
2216 { (exit 1); exit 1; }; };;
2217 esac
2218 target=$ac_cv_target
2219 ac_save_IFS=$IFS; IFS='-'
2220 set x $ac_cv_target
2221 shift
2222 target_cpu=$1
2223 target_vendor=$2
2224 shift; shift
2225 # Remember, the first character of IFS is used to create $*,
2226 # except with old shells:
2227 target_os=$*
2228 IFS=$ac_save_IFS
2229 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2232 # The aliases save the names the user supplied, while $host etc.
2233 # will get canonicalized.
2234 test -n "$target_alias" &&
2235 test "$program_prefix$program_suffix$program_transform_name" = \
2236 NONENONEs,x,x, &&
2237 program_prefix=${target_alias}-
2239 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2240 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2241 if test "${llvm_cv_os_type+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 case $host in
2245 *-*-aix*)
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="AIX"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-irix*)
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="IRIX"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-cygwin*)
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="Cygwin"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-darwin*)
2261 llvm_cv_link_all_option="-Wl,-all_load"
2262 llvm_cv_link_all_option="-Wl,-noall_load"
2263 llvm_cv_os_type="Darwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-freebsd*)
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="FreeBSD"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-openbsd*)
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="OpenBSD"
2274 llvm_cv_platform_type="Unix" ;;
2275 *-*-netbsd*)
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="NetBSD"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-hpux*)
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="HP-UX"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-interix*)
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="Interix"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-linux*)
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="Linux"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-solaris*)
2296 llvm_cv_link_all_option="-Wl,-z,allextract"
2297 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2298 llvm_cv_os_type="SunOS"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-win32*)
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="Win32"
2304 llvm_cv_platform_type="Win32" ;;
2305 *-*-mingw*)
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="MingW"
2309 llvm_cv_platform_type="Win32" ;;
2311 llvm_cv_link_all_option=""
2312 llvm_cv_no_link_all_option=""
2313 llvm_cv_os_type="Unknown"
2314 llvm_cv_platform_type="Unknown" ;;
2315 esac
2317 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2318 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2320 if test "$llvm_cv_os_type" = "Unknown" ; then
2321 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2322 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2323 { (exit 1); exit 1; }; }
2326 OS=$llvm_cv_os_type
2329 LINKALL=$llvm_cv_link_all_option
2331 NOLINKALL=$llvm_cv_no_link_all_option
2334 case $llvm_cv_platform_type in
2335 Unix)
2337 cat >>confdefs.h <<\_ACEOF
2338 #define LLVM_ON_UNIX 1
2339 _ACEOF
2341 LLVM_ON_UNIX=1
2343 LLVM_ON_WIN32=0
2346 Win32)
2348 cat >>confdefs.h <<\_ACEOF
2349 #define LLVM_ON_WIN32 1
2350 _ACEOF
2352 LLVM_ON_UNIX=0
2354 LLVM_ON_WIN32=1
2357 esac
2359 { echo "$as_me:$LINENO: checking target architecture" >&5
2360 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2361 if test "${llvm_cv_target_arch+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 case $target in
2365 i?86-*) llvm_cv_target_arch="x86" ;;
2366 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2367 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2368 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2369 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2370 ia64-*) llvm_cv_target_arch="IA64" ;;
2371 arm-*) llvm_cv_target_arch="ARM" ;;
2372 mips-*) llvm_cv_target_arch="Mips" ;;
2373 *) llvm_cv_target_arch="Unknown" ;;
2374 esac
2376 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2377 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2379 if test "$llvm_cv_target_arch" = "Unknown" ; then
2380 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2381 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2384 ARCH=$llvm_cv_target_arch
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2414 done
2415 done
2416 IFS=$as_save_IFS
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2424 else
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2454 done
2455 done
2456 IFS=$as_save_IFS
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 else
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482 CC=$ac_ct_CC
2484 else
2485 CC="$ac_cv_prog_CC"
2488 if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2511 done
2512 done
2513 IFS=$as_save_IFS
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540 ac_prog_rejected=no
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2552 ac_cv_prog_CC="cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2556 done
2557 done
2558 IFS=$as_save_IFS
2560 if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2578 else
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog in cl.exe
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2610 done
2611 done
2612 IFS=$as_save_IFS
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$CC" && break
2627 done
2629 if test -z "$CC"; then
2630 ac_ct_CC=$CC
2631 for ac_prog in cl.exe
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2656 IFS=$as_save_IFS
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 else
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$ac_ct_CC" && break
2671 done
2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677 yes:)
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686 CC=$ac_ct_CC
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2713 case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2741 main ()
2745 return 0;
2747 _ACEOF
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2752 # of exeext.
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort. b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions. Remove them first so a
2764 # subsequent execution test works.
2765 ac_rmfiles=
2766 for ac_file in $ac_files
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772 done
2773 rm -f $ac_rmfiles
2775 if { (ac_try="$ac_link_default"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2789 # Autoconf.
2790 for ac_file in $ac_files
2792 test -f "$ac_file" || continue
2793 case $ac_file in
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2796 [ab].out )
2797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
2800 *.* )
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
2810 break;;
2812 break;;
2813 esac
2814 done
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2828 ac_exeext=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot run C compiled programs.
2858 If you meant to cross compile, use \`--host'.
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run. If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 # `rm'.
2892 for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
2894 case $ac_file in
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897 break;;
2898 * ) break;;
2899 esac
2900 done
2901 else
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2909 rm -f conftest$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2915 ac_exeext=$EXEEXT
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 main ()
2933 return 0;
2935 _ACEOF
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954 done
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2971 ac_objext=$OBJEXT
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2985 main ()
2987 #ifndef __GNUC__
2988 choke me
2989 #endif
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 ac_compiler_gnu=yes
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 ac_compiler_gnu=no
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3063 main ()
3067 return 0;
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_prog_cc_g=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3118 main ()
3122 return 0;
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3165 CFLAGS="-g"
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3174 main ()
3178 return 0;
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_prog_cc_g=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
3239 else
3240 CFLAGS="-g"
3242 else
3243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
3245 else
3246 CFLAGS=
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 ac_cv_prog_cc_c89=no
3255 ac_save_CC=$CC
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 #include <stdarg.h>
3263 #include <stdio.h>
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270 char **p;
3271 int i;
3273 return p[i];
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3306 main ()
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 return 0;
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_c89=$ac_arg
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 done
3362 rm -f conftest.$ac_ext
3363 CC=$ac_save_CC
3366 # AC_CACHE_VAL
3367 case "x$ac_cv_prog_cc_c89" in
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3371 xno)
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3378 esac
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3397 CPP=
3399 if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406 ac_preproc_ok=false
3407 for ac_c_preproc_warn_flag in '' yes
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #ifdef __STDC__
3422 # include <limits.h>
3423 #else
3424 # include <assert.h>
3425 #endif
3426 Syntax error
3427 _ACEOF
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3447 else
3448 ac_cpp_err=yes
3450 if test -z "$ac_cpp_err"; then
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Broken: fails on valid input.
3457 continue
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h. */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3471 _ACEOF
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3491 else
3492 ac_cpp_err=yes
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496 continue
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3506 rm -f conftest.err conftest.$ac_ext
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3512 break
3515 done
3516 ac_cv_prog_CPP=$CPP
3519 CPP=$ac_cv_prog_CPP
3520 else
3521 ac_cv_prog_CPP=$CPP
3523 { echo "$as_me:$LINENO: result: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545 Syntax error
3546 _ACEOF
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3566 else
3567 ac_cpp_err=yes
3569 if test -z "$ac_cpp_err"; then
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3576 continue
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3610 else
3611 ac_cpp_err=yes
3613 if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3615 continue
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Passes both tests.
3621 ac_preproc_ok=:
3622 break
3625 rm -f conftest.err conftest.$ac_ext
3627 done
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3632 else
3633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 ac_path_GREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3672 *GNU*)
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 ac_count=0
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 while :
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3698 $ac_path_GREP_found && break 3
3699 done
3700 done
3702 done
3703 IFS=$as_save_IFS
3708 GREP="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3715 else
3716 ac_cv_path_GREP=$GREP
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP="$ac_cv_path_GREP"
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3733 else
3734 # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy egrep; ac_prog_name=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 ac_path_EGREP_found=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3754 *GNU*)
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 ac_count=0
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 while :
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767 ac_count=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3775 done
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777 esac
3780 $ac_path_EGREP_found && break 3
3781 done
3782 done
3784 done
3785 IFS=$as_save_IFS
3790 EGREP="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3797 else
3798 ac_cv_path_EGREP=$EGREP
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP="$ac_cv_path_EGREP"
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h. */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <stdlib.h>
3821 #include <stdarg.h>
3822 #include <string.h>
3823 #include <float.h>
3826 main ()
3830 return 0;
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_header_stdc=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_header_stdc=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 #include <string.h>
3887 _ACEOF
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 $EGREP "memchr" >/dev/null 2>&1; then
3891 else
3892 ac_cv_header_stdc=no
3894 rm -f conftest*
3898 if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #include <stdlib.h>
3908 _ACEOF
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then
3912 else
3913 ac_cv_header_stdc=no
3915 rm -f conftest*
3919 if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3923 else
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 #include <ctype.h>
3931 #include <stdlib.h>
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 #else
3936 # define ISLOWER(c) \
3937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #endif
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3945 main ()
3947 int i;
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
3950 || toupper (i) != TOUPPER (i))
3951 return 2;
3952 return 0;
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3976 else
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ( exit $ac_status )
3982 ac_cv_header_stdc=no
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
3996 _ACEOF
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4027 #include <$ac_header>
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4064 else
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 eval "$as_ac_Header=no"
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 _ACEOF
4083 done
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4102 main ()
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106 #endif
4109 return 0;
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4157 main ()
4159 #if BYTE_ORDER != BIG_ENDIAN
4160 not big endian
4161 #endif
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian=yes
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_c_bigendian=no
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4231 main ()
4233 _ascii (); _ebcdic ();
4235 return 0;
4237 _ACEOF
4238 rm -f conftest.$ac_objext
4239 if { (ac_try="$ac_compile"
4240 case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4278 else
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 else
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4300 main ()
4303 /* Are we little or big endian? From Harbison&Steele. */
4304 union
4306 long int l;
4307 char c[sizeof (long int)];
4308 } u;
4309 u.l = 1;
4310 return u.c[sizeof (long int) - 1] == 1;
4313 return 0;
4315 _ACEOF
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4337 else
4338 echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ( exit $ac_status )
4343 ac_cv_c_bigendian=yes
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4356 yes)
4357 ENDIAN=big
4360 ENDIAN=little
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4368 esac
4371 if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4382 else
4383 ac_build_prefix=${build_alias}-
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4408 IFS=$as_save_IFS
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 else
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 else
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 else
4471 ac_prog_rejected=no
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 else
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 rm -f conftest*
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 ac_cv_build_exeext=
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4530 case $file in
4531 *.c | *.o | *.obj) ;;
4532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 else
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4540 rm -f conftest*
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4545 BUILD_EXEEXT=""
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4551 else
4552 LLVM_CROSS_COMPILING=0
4556 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4557 cvsbuild="yes"
4558 optimize="no"
4559 CVSBUILD=CVSBUILD=1
4561 else
4562 cvsbuild="no"
4563 optimize="yes"
4567 # Check whether --enable-optimized was given.
4568 if test "${enable_optimized+set}" = set; then
4569 enableval=$enable_optimized;
4570 else
4571 enableval=$optimize
4574 if test ${enableval} = "no" ; then
4575 ENABLE_OPTIMIZED=
4577 else
4578 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4582 # Check whether --enable-assertions was given.
4583 if test "${enable_assertions+set}" = set; then
4584 enableval=$enable_assertions;
4585 else
4586 enableval="yes"
4589 if test ${enableval} = "yes" ; then
4590 DISABLE_ASSERTIONS=
4592 else
4593 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4597 # Check whether --enable-expensive-checks was given.
4598 if test "${enable_expensive_checks+set}" = set; then
4599 enableval=$enable_expensive_checks;
4600 else
4601 enableval="no"
4604 if test ${enableval} = "yes" ; then
4605 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4607 EXPENSIVE_CHECKS=yes
4609 else
4610 ENABLE_EXPENSIVE_CHECKS=
4612 EXPENSIVE_CHECKS=no
4616 # Check whether --enable-debug-runtime was given.
4617 if test "${enable_debug_runtime+set}" = set; then
4618 enableval=$enable_debug_runtime;
4619 else
4620 enableval=no
4623 if test ${enableval} = "no" ; then
4624 DEBUG_RUNTIME=
4626 else
4627 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4631 # Check whether --enable-jit was given.
4632 if test "${enable_jit+set}" = set; then
4633 enableval=$enable_jit;
4634 else
4635 enableval=default
4638 if test ${enableval} = "no"
4639 then
4640 JIT=
4642 else
4643 case "$llvm_cv_target_arch" in
4644 x86) TARGET_HAS_JIT=1
4646 Sparc) TARGET_HAS_JIT=0
4648 PowerPC) TARGET_HAS_JIT=1
4650 x86_64) TARGET_HAS_JIT=1
4652 Alpha) TARGET_HAS_JIT=1
4654 IA64) TARGET_HAS_JIT=0
4656 ARM) TARGET_HAS_JIT=0
4658 Mips) TARGET_HAS_JIT=0
4660 *) TARGET_HAS_JIT=0
4662 esac
4665 # Check whether --enable-doxygen was given.
4666 if test "${enable_doxygen+set}" = set; then
4667 enableval=$enable_doxygen;
4668 else
4669 enableval=default
4672 case "$enableval" in
4673 yes) ENABLE_DOXYGEN=1
4675 no) ENABLE_DOXYGEN=0
4677 default) ENABLE_DOXYGEN=0
4679 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4680 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4682 esac
4684 # Check whether --enable-threads was given.
4685 if test "${enable_threads+set}" = set; then
4686 enableval=$enable_threads;
4687 else
4688 enableval=default
4691 case "$enableval" in
4692 yes) ENABLE_THREADS=1
4694 no) ENABLE_THREADS=0
4696 default) ENABLE_THREADS=1
4698 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4699 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4700 { (exit 1); exit 1; }; } ;;
4701 esac
4703 cat >>confdefs.h <<_ACEOF
4704 #define ENABLE_THREADS $ENABLE_THREADS
4705 _ACEOF
4708 # Check whether --enable-pic was given.
4709 if test "${enable_pic+set}" = set; then
4710 enableval=$enable_pic;
4711 else
4712 enableval=default
4715 case "$enableval" in
4716 yes) ENABLE_PIC=1
4718 no) ENABLE_PIC=0
4720 default) ENABLE_PIC=0
4722 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4723 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4724 { (exit 1); exit 1; }; } ;;
4725 esac
4727 cat >>confdefs.h <<_ACEOF
4728 #define ENABLE_PIC $ENABLE_PIC
4729 _ACEOF
4732 TARGETS_TO_BUILD=""
4733 # Check whether --enable-targets was given.
4734 if test "${enable_targets+set}" = set; then
4735 enableval=$enable_targets;
4736 else
4737 enableval=all
4740 case "$enableval" in
4741 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4742 host-only)
4743 case "$llvm_cv_target_arch" in
4744 x86) TARGETS_TO_BUILD="X86" ;;
4745 x86_64) TARGETS_TO_BUILD="X86" ;;
4746 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4747 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4748 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4749 IA64) TARGETS_TO_BUILD="IA64" ;;
4750 ARM) TARGETS_TO_BUILD="ARM" ;;
4751 Mips) TARGETS_TO_BUILD="Mips" ;;
4752 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4753 echo "$as_me: error: Can not set target to build" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4755 esac
4757 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4758 case "$a_target" in
4759 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4760 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4761 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4762 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4763 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4764 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4765 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4766 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4767 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4768 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4769 { (exit 1); exit 1; }; } ;;
4770 esac
4771 done
4773 esac
4774 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4775 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4778 # Check whether --enable-cbe-printf-a was given.
4779 if test "${enable_cbe_printf_a+set}" = set; then
4780 enableval=$enable_cbe_printf_a;
4781 else
4782 enableval=default
4785 case "$enableval" in
4786 yes) ENABLE_CBE_PRINTF_A=1
4788 no) ENABLE_CBE_PRINTF_A=0
4790 default) ENABLE_CBE_PRINTF_A=1
4792 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4793 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4794 { (exit 1); exit 1; }; } ;;
4795 esac
4797 cat >>confdefs.h <<_ACEOF
4798 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4799 _ACEOF
4803 # Check whether --with-llvmgccdir was given.
4804 if test "${with_llvmgccdir+set}" = set; then
4805 withval=$with_llvmgccdir;
4806 else
4807 withval=default
4810 case "$withval" in
4811 default) WITH_LLVMGCCDIR=default ;;
4812 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4813 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4814 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4815 { (exit 1); exit 1; }; } ;;
4816 esac
4819 # Check whether --with-extra-options was given.
4820 if test "${with_extra_options+set}" = set; then
4821 withval=$with_extra_options;
4822 else
4823 withval=default
4826 case "$withval" in
4827 default) EXTRA_OPTIONS= ;;
4828 *) EXTRA_OPTIONS=$withval ;;
4829 esac
4830 EXTRA_OPTIONS=$EXTRA_OPTIONS
4833 # Check whether --enable-bindings was given.
4834 if test "${enable_bindings+set}" = set; then
4835 enableval=$enable_bindings;
4836 else
4837 enableval=default
4840 BINDINGS_TO_BUILD=""
4841 case "$enableval" in
4842 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4843 all ) BINDINGS_TO_BUILD="ocaml" ;;
4844 none | no) BINDINGS_TO_BUILD="" ;;
4845 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4846 case "$a_binding" in
4847 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4848 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4849 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4851 esac
4852 done
4854 esac
4857 # Check whether --with-ocaml-libdir was given.
4858 if test "${with_ocaml_libdir+set}" = set; then
4859 withval=$with_ocaml_libdir;
4860 else
4861 withval=auto
4864 case "$withval" in
4865 auto) with_ocaml_libdir="$withval" ;;
4866 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4867 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4868 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4869 { (exit 1); exit 1; }; } ;;
4870 esac
4873 ac_ext=c
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4880 # On Suns, sometimes $CPP names a directory.
4881 if test -n "$CPP" && test -d "$CPP"; then
4882 CPP=
4884 if test -z "$CPP"; then
4885 if test "${ac_cv_prog_CPP+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 # Double quotes because CPP needs to be expanded
4889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4891 ac_preproc_ok=false
4892 for ac_c_preproc_warn_flag in '' yes
4894 # Use a header file that comes with gcc, so configuring glibc
4895 # with a fresh cross-compiler works.
4896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4897 # <limits.h> exists even on freestanding compilers.
4898 # On the NeXT, cc -E runs the code through the compiler's parser,
4899 # not just through cpp. "Syntax error" is here to catch this case.
4900 cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 #ifdef __STDC__
4907 # include <limits.h>
4908 #else
4909 # include <assert.h>
4910 #endif
4911 Syntax error
4912 _ACEOF
4913 if { (ac_try="$ac_cpp conftest.$ac_ext"
4914 case "(($ac_try" in
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4917 esac
4918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } >/dev/null; then
4926 if test -s conftest.err; then
4927 ac_cpp_err=$ac_c_preproc_warn_flag
4928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4929 else
4930 ac_cpp_err=
4932 else
4933 ac_cpp_err=yes
4935 if test -z "$ac_cpp_err"; then
4937 else
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4941 # Broken: fails on valid input.
4942 continue
4945 rm -f conftest.err conftest.$ac_ext
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h. */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 #include <ac_nonexistent.h>
4956 _ACEOF
4957 if { (ac_try="$ac_cpp conftest.$ac_ext"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } >/dev/null; then
4970 if test -s conftest.err; then
4971 ac_cpp_err=$ac_c_preproc_warn_flag
4972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4973 else
4974 ac_cpp_err=
4976 else
4977 ac_cpp_err=yes
4979 if test -z "$ac_cpp_err"; then
4980 # Broken: success on invalid input.
4981 continue
4982 else
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 # Passes both tests.
4987 ac_preproc_ok=:
4988 break
4991 rm -f conftest.err conftest.$ac_ext
4993 done
4994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4995 rm -f conftest.err conftest.$ac_ext
4996 if $ac_preproc_ok; then
4997 break
5000 done
5001 ac_cv_prog_CPP=$CPP
5004 CPP=$ac_cv_prog_CPP
5005 else
5006 ac_cv_prog_CPP=$CPP
5008 { echo "$as_me:$LINENO: result: $CPP" >&5
5009 echo "${ECHO_T}$CPP" >&6; }
5010 ac_preproc_ok=false
5011 for ac_c_preproc_warn_flag in '' yes
5013 # Use a header file that comes with gcc, so configuring glibc
5014 # with a fresh cross-compiler works.
5015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016 # <limits.h> exists even on freestanding compilers.
5017 # On the NeXT, cc -E runs the code through the compiler's parser,
5018 # not just through cpp. "Syntax error" is here to catch this case.
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 #ifdef __STDC__
5026 # include <limits.h>
5027 #else
5028 # include <assert.h>
5029 #endif
5030 Syntax error
5031 _ACEOF
5032 if { (ac_try="$ac_cpp conftest.$ac_ext"
5033 case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } >/dev/null; then
5045 if test -s conftest.err; then
5046 ac_cpp_err=$ac_c_preproc_warn_flag
5047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5048 else
5049 ac_cpp_err=
5051 else
5052 ac_cpp_err=yes
5054 if test -z "$ac_cpp_err"; then
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 # Broken: fails on valid input.
5061 continue
5064 rm -f conftest.err conftest.$ac_ext
5066 # OK, works on sane cases. Now check whether nonexistent headers
5067 # can be detected and how.
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <ac_nonexistent.h>
5075 _ACEOF
5076 if { (ac_try="$ac_cpp conftest.$ac_ext"
5077 case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080 esac
5081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092 else
5093 ac_cpp_err=
5095 else
5096 ac_cpp_err=yes
5098 if test -z "$ac_cpp_err"; then
5099 # Broken: success on invalid input.
5100 continue
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 # Passes both tests.
5106 ac_preproc_ok=:
5107 break
5110 rm -f conftest.err conftest.$ac_ext
5112 done
5113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5114 rm -f conftest.err conftest.$ac_ext
5115 if $ac_preproc_ok; then
5117 else
5118 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5121 See \`config.log' for more details." >&2;}
5122 { (exit 1); exit 1; }; }
5125 ac_ext=c
5126 ac_cpp='$CPP $CPPFLAGS'
5127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131 ac_ext=c
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136 if test -n "$ac_tool_prefix"; then
5137 for ac_prog in gcc
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 if test "${ac_cv_prog_CC+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 if test -n "$CC"; then
5147 ac_cv_prog_CC="$CC" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5160 done
5161 done
5162 IFS=$as_save_IFS
5166 CC=$ac_cv_prog_CC
5167 if test -n "$CC"; then
5168 { echo "$as_me:$LINENO: result: $CC" >&5
5169 echo "${ECHO_T}$CC" >&6; }
5170 else
5171 { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5176 test -n "$CC" && break
5177 done
5179 if test -z "$CC"; then
5180 ac_ct_CC=$CC
5181 for ac_prog in gcc
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 set dummy $ac_prog; ac_word=$2
5185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 if test -n "$ac_ct_CC"; then
5191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_ac_ct_CC="$ac_prog"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5211 if test -n "$ac_ct_CC"; then
5212 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5213 echo "${ECHO_T}$ac_ct_CC" >&6; }
5214 else
5215 { echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6; }
5220 test -n "$ac_ct_CC" && break
5221 done
5223 if test "x$ac_ct_CC" = x; then
5224 CC=""
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5229 whose name does not start with the host triplet. If you think this
5230 configuration is useful to you, please write to autoconf@gnu.org." >&5
5231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5232 whose name does not start with the host triplet. If you think this
5233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5234 ac_tool_warned=yes ;;
5235 esac
5236 CC=$ac_ct_CC
5241 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5242 See \`config.log' for more details." >&5
5243 echo "$as_me: error: no acceptable C compiler found in \$PATH
5244 See \`config.log' for more details." >&2;}
5245 { (exit 1); exit 1; }; }
5247 # Provide some information about the compiler.
5248 echo "$as_me:$LINENO: checking for C compiler version" >&5
5249 ac_compiler=`set X $ac_compile; echo $2`
5250 { (ac_try="$ac_compiler --version >&5"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_compiler --version >&5") 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }
5260 { (ac_try="$ac_compiler -v >&5"
5261 case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264 esac
5265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_compiler -v >&5") 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }
5270 { (ac_try="$ac_compiler -V >&5"
5271 case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_compiler -V >&5") 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }
5281 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5294 main ()
5296 #ifndef __GNUC__
5297 choke me
5298 #endif
5301 return 0;
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (ac_try="$ac_compile"
5306 case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compile") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5319 { (case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_try") 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_try") 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_compiler_gnu=yes
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_compiler_gnu=no
5346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5350 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5352 GCC=`test $ac_compiler_gnu = yes && echo yes`
5353 ac_test_CFLAGS=${CFLAGS+set}
5354 ac_save_CFLAGS=$CFLAGS
5355 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5356 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5357 if test "${ac_cv_prog_cc_g+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360 ac_save_c_werror_flag=$ac_c_werror_flag
5361 ac_c_werror_flag=yes
5362 ac_cv_prog_cc_g=no
5363 CFLAGS="-g"
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5372 main ()
5376 return 0;
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5381 case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384 esac
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5394 { (case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_try") 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_try") 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_prog_cc_g=yes
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 CFLAGS=""
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5427 main ()
5431 return 0;
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (ac_try="$ac_compile"
5436 case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5449 { (case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_try") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_try") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ac_c_werror_flag=$ac_save_c_werror_flag
5474 CFLAGS="-g"
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5483 main ()
5487 return 0;
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5505 { (case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508 esac
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_try") 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest.$ac_objext'
5515 { (case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_try") 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_cv_prog_cc_g=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 ac_c_werror_flag=$ac_save_c_werror_flag
5541 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5542 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5543 if test "$ac_test_CFLAGS" = set; then
5544 CFLAGS=$ac_save_CFLAGS
5545 elif test $ac_cv_prog_cc_g = yes; then
5546 if test "$GCC" = yes; then
5547 CFLAGS="-g -O2"
5548 else
5549 CFLAGS="-g"
5551 else
5552 if test "$GCC" = yes; then
5553 CFLAGS="-O2"
5554 else
5555 CFLAGS=
5558 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5559 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5560 if test "${ac_cv_prog_cc_c89+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 ac_cv_prog_cc_c89=no
5564 ac_save_CC=$CC
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <stdarg.h>
5572 #include <stdio.h>
5573 #include <sys/types.h>
5574 #include <sys/stat.h>
5575 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5576 struct buf { int x; };
5577 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5578 static char *e (p, i)
5579 char **p;
5580 int i;
5582 return p[i];
5584 static char *f (char * (*g) (char **, int), char **p, ...)
5586 char *s;
5587 va_list v;
5588 va_start (v,p);
5589 s = g (p, va_arg (v,int));
5590 va_end (v);
5591 return s;
5594 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5595 function prototypes and stuff, but not '\xHH' hex character constants.
5596 These don't provoke an error unfortunately, instead are silently treated
5597 as 'x'. The following induces an error, until -std is added to get
5598 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5599 array size at least. It's necessary to write '\x00'==0 to get something
5600 that's true only with -std. */
5601 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5603 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5604 inside strings and character constants. */
5605 #define FOO(x) 'x'
5606 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5608 int test (int i, double x);
5609 struct s1 {int (*f) (int a);};
5610 struct s2 {int (*f) (double a);};
5611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5612 int argc;
5613 char **argv;
5615 main ()
5617 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5619 return 0;
5621 _ACEOF
5622 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5625 CC="$ac_save_CC $ac_arg"
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5628 case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631 esac
5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5641 { (case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_try") 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_try") 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 ac_cv_prog_cc_c89=$ac_arg
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5668 rm -f core conftest.err conftest.$ac_objext
5669 test "x$ac_cv_prog_cc_c89" != "xno" && break
5670 done
5671 rm -f conftest.$ac_ext
5672 CC=$ac_save_CC
5675 # AC_CACHE_VAL
5676 case "x$ac_cv_prog_cc_c89" in
5678 { echo "$as_me:$LINENO: result: none needed" >&5
5679 echo "${ECHO_T}none needed" >&6; } ;;
5680 xno)
5681 { echo "$as_me:$LINENO: result: unsupported" >&5
5682 echo "${ECHO_T}unsupported" >&6; } ;;
5684 CC="$CC $ac_cv_prog_cc_c89"
5685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5686 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5687 esac
5690 ac_ext=c
5691 ac_cpp='$CPP $CPPFLAGS'
5692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 ac_ext=cpp
5697 ac_cpp='$CXXCPP $CPPFLAGS'
5698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5701 if test -z "$CXX"; then
5702 if test -n "$CCC"; then
5703 CXX=$CCC
5704 else
5705 if test -n "$ac_tool_prefix"; then
5706 for ac_prog in g++
5708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712 if test "${ac_cv_prog_CXX+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 if test -n "$CXX"; then
5716 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5729 done
5730 done
5731 IFS=$as_save_IFS
5735 CXX=$ac_cv_prog_CXX
5736 if test -n "$CXX"; then
5737 { echo "$as_me:$LINENO: result: $CXX" >&5
5738 echo "${ECHO_T}$CXX" >&6; }
5739 else
5740 { echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6; }
5745 test -n "$CXX" && break
5746 done
5748 if test -z "$CXX"; then
5749 ac_ct_CXX=$CXX
5750 for ac_prog in g++
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 if test -n "$ac_ct_CXX"; then
5760 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_CXX="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5780 if test -n "$ac_ct_CXX"; then
5781 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5782 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5783 else
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5789 test -n "$ac_ct_CXX" && break
5790 done
5792 if test "x$ac_ct_CXX" = x; then
5793 CXX="g++"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5798 whose name does not start with the host triplet. If you think this
5799 configuration is useful to you, please write to autoconf@gnu.org." >&5
5800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5801 whose name does not start with the host triplet. If you think this
5802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5803 ac_tool_warned=yes ;;
5804 esac
5805 CXX=$ac_ct_CXX
5811 # Provide some information about the compiler.
5812 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5813 ac_compiler=`set X $ac_compile; echo $2`
5814 { (ac_try="$ac_compiler --version >&5"
5815 case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compiler --version >&5") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }
5824 { (ac_try="$ac_compiler -v >&5"
5825 case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compiler -v >&5") 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }
5834 { (ac_try="$ac_compiler -V >&5"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compiler -V >&5") 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }
5845 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5846 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5847 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5858 main ()
5860 #ifndef __GNUC__
5861 choke me
5862 #endif
5865 return 0;
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest.$ac_objext'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_compiler_gnu=yes
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 ac_compiler_gnu=no
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5914 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5915 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5916 GXX=`test $ac_compiler_gnu = yes && echo yes`
5917 ac_test_CXXFLAGS=${CXXFLAGS+set}
5918 ac_save_CXXFLAGS=$CXXFLAGS
5919 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5920 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5921 if test "${ac_cv_prog_cxx_g+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5925 ac_cxx_werror_flag=yes
5926 ac_cv_prog_cxx_g=no
5927 CXXFLAGS="-g"
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5936 main ()
5940 return 0;
5942 _ACEOF
5943 rm -f conftest.$ac_objext
5944 if { (ac_try="$ac_compile"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5958 { (case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_try") 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_prog_cxx_g=yes
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 CXXFLAGS=""
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5991 main ()
5995 return 0;
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (ac_try="$ac_compile"
6000 case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_compile") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6038 CXXFLAGS="-g"
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6047 main ()
6051 return 0;
6053 _ACEOF
6054 rm -f conftest.$ac_objext
6055 if { (ac_try="$ac_compile"
6056 case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compile") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6069 { (case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_try") 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest.$ac_objext'
6079 { (case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082 esac
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_try") 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_prog_cxx_g=yes
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6105 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6106 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6107 if test "$ac_test_CXXFLAGS" = set; then
6108 CXXFLAGS=$ac_save_CXXFLAGS
6109 elif test $ac_cv_prog_cxx_g = yes; then
6110 if test "$GXX" = yes; then
6111 CXXFLAGS="-g -O2"
6112 else
6113 CXXFLAGS="-g"
6115 else
6116 if test "$GXX" = yes; then
6117 CXXFLAGS="-O2"
6118 else
6119 CXXFLAGS=
6122 ac_ext=c
6123 ac_cpp='$CPP $CPPFLAGS'
6124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128 { echo "$as_me:$LINENO: checking " >&5
6129 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6130 if test "${ac_cv_has_flex+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 for ac_prog in flex lex
6135 # Extract the first word of "$ac_prog", so it can be a program name with args.
6136 set dummy $ac_prog; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_prog_LEX+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 if test -n "$LEX"; then
6143 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_LEX="$ac_prog"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6156 done
6157 done
6158 IFS=$as_save_IFS
6162 LEX=$ac_cv_prog_LEX
6163 if test -n "$LEX"; then
6164 { echo "$as_me:$LINENO: result: $LEX" >&5
6165 echo "${ECHO_T}$LEX" >&6; }
6166 else
6167 { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6172 test -n "$LEX" && break
6173 done
6174 test -n "$LEX" || LEX=":"
6176 if test -z "$LEXLIB"
6177 then
6178 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6179 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6180 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 ac_check_lib_save_LIBS=$LIBS
6184 LIBS="-lfl $LIBS"
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6192 /* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6195 #ifdef __cplusplus
6196 extern "C"
6197 #endif
6198 char yywrap ();
6200 main ()
6202 return yywrap ();
6204 return 0;
6206 _ACEOF
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (ac_try="$ac_link"
6209 case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_link") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6222 { (case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_try") 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_fl_yywrap=yes
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_lib_fl_yywrap=no
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 LIBS=$ac_check_lib_save_LIBS
6253 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6254 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6255 if test $ac_cv_lib_fl_yywrap = yes; then
6256 LEXLIB="-lfl"
6257 else
6258 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6259 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6260 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 ac_check_lib_save_LIBS=$LIBS
6264 LIBS="-ll $LIBS"
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6272 /* Override any GCC internal prototype to avoid an error.
6273 Use char because int might match the return type of a GCC
6274 builtin and then its argument prototype would still apply. */
6275 #ifdef __cplusplus
6276 extern "C"
6277 #endif
6278 char yywrap ();
6280 main ()
6282 return yywrap ();
6284 return 0;
6286 _ACEOF
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (ac_try="$ac_link"
6289 case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_link") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302 { (case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305 esac
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_try") 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest$ac_exeext'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_lib_l_yywrap=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_cv_lib_l_yywrap=no
6329 rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6331 LIBS=$ac_check_lib_save_LIBS
6333 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6334 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6335 if test $ac_cv_lib_l_yywrap = yes; then
6336 LEXLIB="-ll"
6343 if test "x$LEX" != "x:"; then
6344 { echo "$as_me:$LINENO: checking lex output file root" >&5
6345 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6346 if test "${ac_cv_prog_lex_root+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349 # The minimal lex program is just a single line: %%. But some broken lexes
6350 # (Solaris, I think it was) want two %% lines, so accommodate them.
6351 cat >conftest.l <<_ACEOF
6354 _ACEOF
6355 { (ac_try="$LEX conftest.l"
6356 case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$LEX conftest.l") 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }
6365 if test -f lex.yy.c; then
6366 ac_cv_prog_lex_root=lex.yy
6367 elif test -f lexyy.c; then
6368 ac_cv_prog_lex_root=lexyy
6369 else
6370 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6371 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6372 { (exit 1); exit 1; }; }
6375 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6376 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6377 rm -f conftest.l
6378 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6380 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6381 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6382 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 # POSIX says lex can declare yytext either as a pointer or an array; the
6386 # default is implementation-dependent. Figure out which it is, since
6387 # not all implementations provide the %pointer and %array declarations.
6388 ac_cv_prog_lex_yytext_pointer=no
6389 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6390 ac_save_LIBS=$LIBS
6391 LIBS="$LIBS $LEXLIB"
6392 cat >conftest.$ac_ext <<_ACEOF
6393 `cat $LEX_OUTPUT_ROOT.c`
6394 _ACEOF
6395 rm -f conftest.$ac_objext conftest$ac_exeext
6396 if { (ac_try="$ac_link"
6397 case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_link") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410 { (case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_try") 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest$ac_exeext'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_prog_lex_yytext_pointer=yes
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6437 rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439 LIBS=$ac_save_LIBS
6440 rm -f "${LEX_OUTPUT_ROOT}.c"
6443 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6444 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6445 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6447 cat >>confdefs.h <<\_ACEOF
6448 #define YYTEXT_POINTER 1
6449 _ACEOF
6456 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6457 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6458 if test "$LEX" != "flex"; then
6459 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6460 echo "$as_me: error: flex not found but required" >&2;}
6461 { (exit 1); exit 1; }; }
6462 else
6463 FLEX=flex
6467 { echo "$as_me:$LINENO: checking " >&5
6468 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6469 if test "${llvm_cv_has_bison+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 for ac_prog in 'bison -y' byacc
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_YACC+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 if test -n "$YACC"; then
6482 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_YACC="$ac_prog"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6495 done
6496 done
6497 IFS=$as_save_IFS
6501 YACC=$ac_cv_prog_YACC
6502 if test -n "$YACC"; then
6503 { echo "$as_me:$LINENO: result: $YACC" >&5
6504 echo "${ECHO_T}$YACC" >&6; }
6505 else
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6511 test -n "$YACC" && break
6512 done
6513 test -n "$YACC" || YACC="yacc"
6516 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6517 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6518 if test "$YACC" != "bison -y"; then
6520 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6521 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6522 else
6523 BISON=bison
6527 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6528 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6529 if test "${lt_cv_path_NM+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 if test -n "$NM"; then
6533 # Let the user override the test.
6534 lt_cv_path_NM="$NM"
6535 else
6536 lt_nm_to_check="${ac_tool_prefix}nm"
6537 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6538 lt_nm_to_check="$lt_nm_to_check nm"
6540 for lt_tmp_nm in $lt_nm_to_check; do
6541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6542 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6543 IFS="$lt_save_ifs"
6544 test -z "$ac_dir" && ac_dir=.
6545 tmp_nm="$ac_dir/$lt_tmp_nm"
6546 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6547 # Check to see if the nm accepts a BSD-compat flag.
6548 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6549 # nm: unknown option "B" ignored
6550 # Tru64's nm complains that /dev/null is an invalid object file
6551 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6552 */dev/null* | *'Invalid file or object type'*)
6553 lt_cv_path_NM="$tmp_nm -B"
6554 break
6557 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6558 */dev/null*)
6559 lt_cv_path_NM="$tmp_nm -p"
6560 break
6563 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6564 continue # so that we can try to find one that supports BSD flags
6566 esac
6568 esac
6570 done
6571 IFS="$lt_save_ifs"
6572 done
6573 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6576 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6577 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6578 NM="$lt_cv_path_NM"
6582 { echo "$as_me:$LINENO: checking for GNU make" >&5
6583 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6584 if test "${llvm_cv_gnu_make_command+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 llvm_cv_gnu_make_command=''
6588 for a in "$MAKE" make gmake gnumake ; do
6589 if test -z "$a" ; then continue ; fi ;
6590 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6591 then
6592 llvm_cv_gnu_make_command=$a ;
6593 break;
6595 done
6597 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6598 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6599 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6600 ifGNUmake='' ;
6601 else
6602 ifGNUmake='#' ;
6603 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6604 echo "${ECHO_T}\"Not found\"" >&6; };
6608 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6609 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6610 LN_S=$as_ln_s
6611 if test "$LN_S" = "ln -s"; then
6612 { echo "$as_me:$LINENO: result: yes" >&5
6613 echo "${ECHO_T}yes" >&6; }
6614 else
6615 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6616 echo "${ECHO_T}no, using $LN_S" >&6; }
6619 # Extract the first word of "cmp", so it can be a program name with args.
6620 set dummy cmp; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_CMP+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 case $CMP in
6627 [\\/]* | ?:[\\/]*)
6628 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6642 done
6643 done
6644 IFS=$as_save_IFS
6646 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6648 esac
6650 CMP=$ac_cv_path_CMP
6651 if test -n "$CMP"; then
6652 { echo "$as_me:$LINENO: result: $CMP" >&5
6653 echo "${ECHO_T}$CMP" >&6; }
6654 else
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6660 # Extract the first word of "cp", so it can be a program name with args.
6661 set dummy cp; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_path_CP+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 case $CP in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6683 done
6684 done
6685 IFS=$as_save_IFS
6687 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6689 esac
6691 CP=$ac_cv_path_CP
6692 if test -n "$CP"; then
6693 { echo "$as_me:$LINENO: result: $CP" >&5
6694 echo "${ECHO_T}$CP" >&6; }
6695 else
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6701 # Extract the first word of "date", so it can be a program name with args.
6702 set dummy date; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_DATE+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 case $DATE in
6709 [\\/]* | ?:[\\/]*)
6710 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6724 done
6725 done
6726 IFS=$as_save_IFS
6728 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6730 esac
6732 DATE=$ac_cv_path_DATE
6733 if test -n "$DATE"; then
6734 { echo "$as_me:$LINENO: result: $DATE" >&5
6735 echo "${ECHO_T}$DATE" >&6; }
6736 else
6737 { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6742 # Extract the first word of "find", so it can be a program name with args.
6743 set dummy find; ac_word=$2
6744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746 if test "${ac_cv_path_FIND+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 case $FIND in
6750 [\\/]* | ?:[\\/]*)
6751 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6765 done
6766 done
6767 IFS=$as_save_IFS
6769 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6771 esac
6773 FIND=$ac_cv_path_FIND
6774 if test -n "$FIND"; then
6775 { echo "$as_me:$LINENO: result: $FIND" >&5
6776 echo "${ECHO_T}$FIND" >&6; }
6777 else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6783 # Extract the first word of "grep", so it can be a program name with args.
6784 set dummy grep; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_GREP+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 case $GREP in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6806 done
6807 done
6808 IFS=$as_save_IFS
6810 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6812 esac
6814 GREP=$ac_cv_path_GREP
6815 if test -n "$GREP"; then
6816 { echo "$as_me:$LINENO: result: $GREP" >&5
6817 echo "${ECHO_T}$GREP" >&6; }
6818 else
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6824 # Extract the first word of "mkdir", so it can be a program name with args.
6825 set dummy mkdir; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_path_MKDIR+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831 case $MKDIR in
6832 [\\/]* | ?:[\\/]*)
6833 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6847 done
6848 done
6849 IFS=$as_save_IFS
6851 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6853 esac
6855 MKDIR=$ac_cv_path_MKDIR
6856 if test -n "$MKDIR"; then
6857 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6858 echo "${ECHO_T}$MKDIR" >&6; }
6859 else
6860 { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6865 # Extract the first word of "mv", so it can be a program name with args.
6866 set dummy mv; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_MV+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 case $MV in
6873 [\\/]* | ?:[\\/]*)
6874 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6888 done
6889 done
6890 IFS=$as_save_IFS
6892 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6894 esac
6896 MV=$ac_cv_path_MV
6897 if test -n "$MV"; then
6898 { echo "$as_me:$LINENO: result: $MV" >&5
6899 echo "${ECHO_T}$MV" >&6; }
6900 else
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911 if test "${ac_cv_prog_RANLIB+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 if test -n "$RANLIB"; then
6915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6928 done
6929 done
6930 IFS=$as_save_IFS
6934 RANLIB=$ac_cv_prog_RANLIB
6935 if test -n "$RANLIB"; then
6936 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6937 echo "${ECHO_T}$RANLIB" >&6; }
6938 else
6939 { echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6; }
6945 if test -z "$ac_cv_prog_RANLIB"; then
6946 ac_ct_RANLIB=$RANLIB
6947 # Extract the first word of "ranlib", so it can be a program name with args.
6948 set dummy ranlib; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 if test -n "$ac_ct_RANLIB"; then
6955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_ac_ct_RANLIB="ranlib"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6968 done
6969 done
6970 IFS=$as_save_IFS
6974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6975 if test -n "$ac_ct_RANLIB"; then
6976 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6977 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6978 else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6983 if test "x$ac_ct_RANLIB" = x; then
6984 RANLIB=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6989 whose name does not start with the host triplet. If you think this
6990 configuration is useful to you, please write to autoconf@gnu.org." >&5
6991 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6992 whose name does not start with the host triplet. If you think this
6993 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6994 ac_tool_warned=yes ;;
6995 esac
6996 RANLIB=$ac_ct_RANLIB
6998 else
6999 RANLIB="$ac_cv_prog_RANLIB"
7002 # Extract the first word of "rm", so it can be a program name with args.
7003 set dummy rm; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_path_RM+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 case $RM in
7010 [\\/]* | ?:[\\/]*)
7011 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7025 done
7026 done
7027 IFS=$as_save_IFS
7029 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7031 esac
7033 RM=$ac_cv_path_RM
7034 if test -n "$RM"; then
7035 { echo "$as_me:$LINENO: result: $RM" >&5
7036 echo "${ECHO_T}$RM" >&6; }
7037 else
7038 { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7043 # Extract the first word of "sed", so it can be a program name with args.
7044 set dummy sed; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_SED+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 case $SED in
7051 [\\/]* | ?:[\\/]*)
7052 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7066 done
7067 done
7068 IFS=$as_save_IFS
7070 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7072 esac
7074 SED=$ac_cv_path_SED
7075 if test -n "$SED"; then
7076 { echo "$as_me:$LINENO: result: $SED" >&5
7077 echo "${ECHO_T}$SED" >&6; }
7078 else
7079 { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7084 # Extract the first word of "tar", so it can be a program name with args.
7085 set dummy tar; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_path_TAR+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 case $TAR in
7092 [\\/]* | ?:[\\/]*)
7093 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7107 done
7108 done
7109 IFS=$as_save_IFS
7111 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7113 esac
7115 TAR=$ac_cv_path_TAR
7116 if test -n "$TAR"; then
7117 { echo "$as_me:$LINENO: result: $TAR" >&5
7118 echo "${ECHO_T}$TAR" >&6; }
7119 else
7120 { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7125 # Extract the first word of "pwd", so it can be a program name with args.
7126 set dummy pwd; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_BINPWD+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 case $BINPWD in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7148 done
7149 done
7150 IFS=$as_save_IFS
7152 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7154 esac
7156 BINPWD=$ac_cv_path_BINPWD
7157 if test -n "$BINPWD"; then
7158 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7159 echo "${ECHO_T}$BINPWD" >&6; }
7160 else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7167 # Extract the first word of "Graphviz", so it can be a program name with args.
7168 set dummy Graphviz; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 case $GRAPHVIZ in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7190 done
7191 done
7192 IFS=$as_save_IFS
7194 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7196 esac
7198 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7199 if test -n "$GRAPHVIZ"; then
7200 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7201 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7202 else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7208 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7210 cat >>confdefs.h <<\_ACEOF
7211 #define HAVE_GRAPHVIZ 1
7212 _ACEOF
7214 if test "$llvm_cv_os_type" = "MingW" ; then
7215 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7218 cat >>confdefs.h <<_ACEOF
7219 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7220 _ACEOF
7223 # Extract the first word of "dot", so it can be a program name with args.
7224 set dummy dot; ac_word=$2
7225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227 if test "${ac_cv_path_DOT+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 case $DOT in
7231 [\\/]* | ?:[\\/]*)
7232 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7246 done
7247 done
7248 IFS=$as_save_IFS
7250 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7252 esac
7254 DOT=$ac_cv_path_DOT
7255 if test -n "$DOT"; then
7256 { echo "$as_me:$LINENO: result: $DOT" >&5
7257 echo "${ECHO_T}$DOT" >&6; }
7258 else
7259 { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7264 if test "$DOT" != "echo dot" ; then
7266 cat >>confdefs.h <<\_ACEOF
7267 #define HAVE_DOT 1
7268 _ACEOF
7270 if test "$llvm_cv_os_type" = "MingW" ; then
7271 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7274 cat >>confdefs.h <<_ACEOF
7275 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7276 _ACEOF
7279 for ac_prog in gv gsview32
7281 # Extract the first word of "$ac_prog", so it can be a program name with args.
7282 set dummy $ac_prog; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_GV+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 case $GV in
7289 [\\/]* | ?:[\\/]*)
7290 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7304 done
7305 done
7306 IFS=$as_save_IFS
7309 esac
7311 GV=$ac_cv_path_GV
7312 if test -n "$GV"; then
7313 { echo "$as_me:$LINENO: result: $GV" >&5
7314 echo "${ECHO_T}$GV" >&6; }
7315 else
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7321 test -n "$GV" && break
7322 done
7323 test -n "$GV" || GV="echo gv"
7325 if test "$GV" != "echo gv" ; then
7327 cat >>confdefs.h <<\_ACEOF
7328 #define HAVE_GV 1
7329 _ACEOF
7331 if test "$llvm_cv_os_type" = "MingW" ; then
7332 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7335 cat >>confdefs.h <<_ACEOF
7336 #define LLVM_PATH_GV "$GV${EXEEXT}"
7337 _ACEOF
7340 # Extract the first word of "dotty", so it can be a program name with args.
7341 set dummy dotty; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_DOTTY+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347 case $DOTTY in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7363 done
7364 done
7365 IFS=$as_save_IFS
7367 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7369 esac
7371 DOTTY=$ac_cv_path_DOTTY
7372 if test -n "$DOTTY"; then
7373 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7374 echo "${ECHO_T}$DOTTY" >&6; }
7375 else
7376 { echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6; }
7381 if test "$DOTTY" != "echo dotty" ; then
7383 cat >>confdefs.h <<\_ACEOF
7384 #define HAVE_DOTTY 1
7385 _ACEOF
7387 if test "$llvm_cv_os_type" = "MingW" ; then
7388 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7391 cat >>confdefs.h <<_ACEOF
7392 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7393 _ACEOF
7398 # Extract the first word of "perl", so it can be a program name with args.
7399 set dummy perl; 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_PERL+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 case $PERL in
7406 [\\/]* | ?:[\\/]*)
7407 ac_cv_path_PERL="$PERL" # 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_PERL="$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
7425 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7427 esac
7429 PERL=$ac_cv_path_PERL
7430 if test -n "$PERL"; then
7431 { echo "$as_me:$LINENO: result: $PERL" >&5
7432 echo "${ECHO_T}$PERL" >&6; }
7433 else
7434 { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7439 if test "$PERL" != "none"; then
7440 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7441 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7442 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7443 { echo "$as_me:$LINENO: result: yes" >&5
7444 echo "${ECHO_T}yes" >&6; }
7445 else
7446 PERL=none
7447 { echo "$as_me:$LINENO: result: not found" >&5
7448 echo "${ECHO_T}not found" >&6; }
7453 if test x"$PERL" = xnone; then
7454 HAVE_PERL=0
7456 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7457 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7458 { (exit 1); exit 1; }; }
7459 else
7460 HAVE_PERL=1
7464 # Find a good install program. We prefer a C program (faster),
7465 # so one script is as good as another. But avoid the broken or
7466 # incompatible versions:
7467 # SysV /etc/install, /usr/sbin/install
7468 # SunOS /usr/etc/install
7469 # IRIX /sbin/install
7470 # AIX /bin/install
7471 # AmigaOS /C/install, which installs bootblocks on floppy discs
7472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7475 # OS/2's system install, which has a completely different semantic
7476 # ./install, which can be erroneously created by make from ./install.sh.
7477 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7478 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7479 if test -z "$INSTALL"; then
7480 if test "${ac_cv_path_install+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 # Account for people who put trailing slashes in PATH elements.
7489 case $as_dir/ in
7490 ./ | .// | /cC/* | \
7491 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7492 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7493 /usr/ucb/* ) ;;
7495 # OSF1 and SCO ODT 3.0 have their own names for install.
7496 # Don't use installbsd from OSF since it installs stuff as root
7497 # by default.
7498 for ac_prog in ginstall scoinst install; do
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7501 if test $ac_prog = install &&
7502 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7503 # AIX install. It has an incompatible calling convention.
7505 elif test $ac_prog = install &&
7506 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7507 # program-specific install script used by HP pwplus--don't use.
7509 else
7510 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7511 break 3
7514 done
7515 done
7517 esac
7518 done
7519 IFS=$as_save_IFS
7523 if test "${ac_cv_path_install+set}" = set; then
7524 INSTALL=$ac_cv_path_install
7525 else
7526 # As a last resort, use the slow shell script. Don't cache a
7527 # value for INSTALL within a source directory, because that will
7528 # break other packages using the cache if that directory is
7529 # removed, or if the value is a relative name.
7530 INSTALL=$ac_install_sh
7533 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7534 echo "${ECHO_T}$INSTALL" >&6; }
7536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7537 # It thinks the first close brace ends the variable substitution.
7538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7545 # Extract the first word of "bzip2", so it can be a program name with args.
7546 set dummy bzip2; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_BZIP2+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 case $BZIP2 in
7553 [\\/]* | ?:[\\/]*)
7554 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7568 done
7569 done
7570 IFS=$as_save_IFS
7572 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7574 esac
7576 BZIP2=$ac_cv_path_BZIP2
7577 if test -n "$BZIP2"; then
7578 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7579 echo "${ECHO_T}$BZIP2" >&6; }
7580 else
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7586 # Extract the first word of "doxygen", so it can be a program name with args.
7587 set dummy doxygen; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 case $DOXYGEN in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7609 done
7610 done
7611 IFS=$as_save_IFS
7613 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7615 esac
7617 DOXYGEN=$ac_cv_path_DOXYGEN
7618 if test -n "$DOXYGEN"; then
7619 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7620 echo "${ECHO_T}$DOXYGEN" >&6; }
7621 else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 # Extract the first word of "groff", so it can be a program name with args.
7628 set dummy groff; ac_word=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_GROFF+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 case $GROFF in
7635 [\\/]* | ?:[\\/]*)
7636 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7650 done
7651 done
7652 IFS=$as_save_IFS
7654 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7656 esac
7658 GROFF=$ac_cv_path_GROFF
7659 if test -n "$GROFF"; then
7660 { echo "$as_me:$LINENO: result: $GROFF" >&5
7661 echo "${ECHO_T}$GROFF" >&6; }
7662 else
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7668 # Extract the first word of "gzip", so it can be a program name with args.
7669 set dummy gzip; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_GZIP+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675 case $GZIP in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7691 done
7692 done
7693 IFS=$as_save_IFS
7695 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7697 esac
7699 GZIP=$ac_cv_path_GZIP
7700 if test -n "$GZIP"; then
7701 { echo "$as_me:$LINENO: result: $GZIP" >&5
7702 echo "${ECHO_T}$GZIP" >&6; }
7703 else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 # Extract the first word of "pod2html", so it can be a program name with args.
7710 set dummy pod2html; ac_word=$2
7711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713 if test "${ac_cv_path_POD2HTML+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 case $POD2HTML in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7732 done
7733 done
7734 IFS=$as_save_IFS
7736 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7738 esac
7740 POD2HTML=$ac_cv_path_POD2HTML
7741 if test -n "$POD2HTML"; then
7742 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7743 echo "${ECHO_T}$POD2HTML" >&6; }
7744 else
7745 { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7750 # Extract the first word of "pod2man", so it can be a program name with args.
7751 set dummy pod2man; ac_word=$2
7752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_POD2MAN+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757 case $POD2MAN in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7777 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7779 esac
7781 POD2MAN=$ac_cv_path_POD2MAN
7782 if test -n "$POD2MAN"; then
7783 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7784 echo "${ECHO_T}$POD2MAN" >&6; }
7785 else
7786 { echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6; }
7791 # Extract the first word of "runtest", so it can be a program name with args.
7792 set dummy runtest; ac_word=$2
7793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7795 if test "${ac_cv_path_RUNTEST+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798 case $RUNTEST in
7799 [\\/]* | ?:[\\/]*)
7800 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7810 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7814 done
7815 done
7816 IFS=$as_save_IFS
7818 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7820 esac
7822 RUNTEST=$ac_cv_path_RUNTEST
7823 if test -n "$RUNTEST"; then
7824 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7825 echo "${ECHO_T}$RUNTEST" >&6; }
7826 else
7827 { echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6; }
7833 no_itcl=true
7834 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7835 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7837 # Check whether --with-tclinclude was given.
7838 if test "${with_tclinclude+set}" = set; then
7839 withval=$with_tclinclude; with_tclinclude=${withval}
7840 else
7841 with_tclinclude=''
7844 if test "${ac_cv_path_tclsh+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7848 if test x"${with_tclinclude}" != x ; then
7849 if test -f ${with_tclinclude}/tclsh ; then
7850 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7851 elif test -f ${with_tclinclude}/src/tclsh ; then
7852 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7853 else
7854 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7855 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7856 { (exit 1); exit 1; }; }
7860 if test x"${ac_cv_path_tclsh}" = x ; then
7861 { echo "$as_me:$LINENO: result: none" >&5
7862 echo "${ECHO_T}none" >&6; }
7863 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
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy $ac_prog; ac_word=$2
7867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869 if test "${ac_cv_path_TCLSH+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 case $TCLSH in
7873 [\\/]* | ?:[\\/]*)
7874 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7888 done
7889 done
7890 IFS=$as_save_IFS
7893 esac
7895 TCLSH=$ac_cv_path_TCLSH
7896 if test -n "$TCLSH"; then
7897 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7898 echo "${ECHO_T}$TCLSH" >&6; }
7899 else
7900 { echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6; }
7905 test -n "$TCLSH" && break
7906 done
7908 if test x"${TCLSH}" = x ; then
7909 ac_cv_path_tclsh='';
7910 else
7911 ac_cv_path_tclsh="${TCLSH}";
7913 else
7914 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7915 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7916 TCLSH="${ac_cv_path_tclsh}"
7922 # Extract the first word of "zip", so it can be a program name with args.
7923 set dummy zip; ac_word=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_path_ZIP+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 case $ZIP in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7945 done
7946 done
7947 IFS=$as_save_IFS
7949 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7951 esac
7953 ZIP=$ac_cv_path_ZIP
7954 if test -n "$ZIP"; then
7955 { echo "$as_me:$LINENO: result: $ZIP" >&5
7956 echo "${ECHO_T}$ZIP" >&6; }
7957 else
7958 { echo "$as_me:$LINENO: result: no" >&5
7959 echo "${ECHO_T}no" >&6; }
7963 # Extract the first word of "ocamlc", so it can be a program name with args.
7964 set dummy ocamlc; ac_word=$2
7965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7967 if test "${ac_cv_path_OCAMLC+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970 case $OCAMLC in
7971 [\\/]* | ?:[\\/]*)
7972 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7986 done
7987 done
7988 IFS=$as_save_IFS
7990 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7992 esac
7994 OCAMLC=$ac_cv_path_OCAMLC
7995 if test -n "$OCAMLC"; then
7996 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7997 echo "${ECHO_T}$OCAMLC" >&6; }
7998 else
7999 { echo "$as_me:$LINENO: result: no" >&5
8000 echo "${ECHO_T}no" >&6; }
8004 # Extract the first word of "ocamlopt", so it can be a program name with args.
8005 set dummy ocamlopt; ac_word=$2
8006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 case $OCAMLOPT in
8012 [\\/]* | ?:[\\/]*)
8013 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8027 done
8028 done
8029 IFS=$as_save_IFS
8031 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8033 esac
8035 OCAMLOPT=$ac_cv_path_OCAMLOPT
8036 if test -n "$OCAMLOPT"; then
8037 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8038 echo "${ECHO_T}$OCAMLOPT" >&6; }
8039 else
8040 { echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6; }
8045 # Extract the first word of "ocamldep", so it can be a program name with args.
8046 set dummy ocamldep; ac_word=$2
8047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 case $OCAMLDEP in
8053 [\\/]* | ?:[\\/]*)
8054 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8064 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8068 done
8069 done
8070 IFS=$as_save_IFS
8072 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8074 esac
8076 OCAMLDEP=$ac_cv_path_OCAMLDEP
8077 if test -n "$OCAMLDEP"; then
8078 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8079 echo "${ECHO_T}$OCAMLDEP" >&6; }
8080 else
8081 { echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6; }
8087 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8088 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8089 if test "${llvm_cv_link_use_r+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 ac_ext=c
8093 ac_cpp='$CPP $CPPFLAGS'
8094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098 oldcflags="$CFLAGS"
8099 CFLAGS="$CFLAGS -Wl,-R."
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8108 main ()
8110 int main() { return 0; }
8112 return 0;
8114 _ACEOF
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_link") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 llvm_cv_link_use_r=yes
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 llvm_cv_link_use_r=no
8157 rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 CFLAGS="$oldcflags"
8160 ac_ext=c
8161 ac_cpp='$CPP $CPPFLAGS'
8162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8168 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8169 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8170 if test "$llvm_cv_link_use_r" = yes ; then
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_LINK_R 1
8174 _ACEOF
8181 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8182 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8183 if test "${ac_cv_c_const+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8194 main ()
8196 /* FIXME: Include the comments suggested by Paul. */
8197 #ifndef __cplusplus
8198 /* Ultrix mips cc rejects this. */
8199 typedef int charset[2];
8200 const charset x;
8201 /* SunOS 4.1.1 cc rejects this. */
8202 char const *const *ccp;
8203 char **p;
8204 /* NEC SVR4.0.2 mips cc rejects this. */
8205 struct point {int x, y;};
8206 static struct point const zero = {0,0};
8207 /* AIX XL C 1.02.0.0 rejects this.
8208 It does not let you subtract one const X* pointer from another in
8209 an arm of an if-expression whose if-part is not a constant
8210 expression */
8211 const char *g = "string";
8212 ccp = &g + (g ? g-g : 0);
8213 /* HPUX 7.0 cc rejects these. */
8214 ++ccp;
8215 p = (char**) ccp;
8216 ccp = (char const *const *) p;
8217 { /* SCO 3.2v4 cc rejects this. */
8218 char *t;
8219 char const *s = 0 ? (char *) 0 : (char const *) 0;
8221 *t++ = 0;
8222 if (s) return 0;
8224 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8225 int x[] = {25, 17};
8226 const int *foo = &x[0];
8227 ++foo;
8229 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8230 typedef const int *iptr;
8231 iptr p = 0;
8232 ++p;
8234 { /* AIX XL C 1.02.0.0 rejects this saying
8235 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8236 struct s { int j; const int *ap[3]; };
8237 struct s *b; b->j = 5;
8239 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8240 const int foo = 10;
8241 if (!foo) return 0;
8243 return !x[0] && !zero.x;
8244 #endif
8247 return 0;
8249 _ACEOF
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8252 case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255 esac
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_c_const=yes
8285 else
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 ac_cv_c_const=no
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8295 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8296 if test $ac_cv_c_const = no; then
8298 cat >>confdefs.h <<\_ACEOF
8299 #define const
8300 _ACEOF
8309 ac_header_dirent=no
8310 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8311 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8312 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8313 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 #include <sys/types.h>
8324 #include <$ac_hdr>
8327 main ()
8329 if ((DIR *) 0)
8330 return 0;
8332 return 0;
8334 _ACEOF
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8337 case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340 esac
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8350 { (case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_try") 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest.$ac_objext'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 eval "$as_ac_Header=yes"
8370 else
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 eval "$as_ac_Header=no"
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 ac_res=`eval echo '${'$as_ac_Header'}'`
8380 { echo "$as_me:$LINENO: result: $ac_res" >&5
8381 echo "${ECHO_T}$ac_res" >&6; }
8382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8383 cat >>confdefs.h <<_ACEOF
8384 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8385 _ACEOF
8387 ac_header_dirent=$ac_hdr; break
8390 done
8391 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8392 if test $ac_header_dirent = dirent.h; then
8393 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8394 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8395 if test "${ac_cv_search_opendir+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398 ac_func_search_save_LIBS=$LIBS
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8406 /* Override any GCC internal prototype to avoid an error.
8407 Use char because int might match the return type of a GCC
8408 builtin and then its argument prototype would still apply. */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 char opendir ();
8414 main ()
8416 return opendir ();
8418 return 0;
8420 _ACEOF
8421 for ac_lib in '' dir; do
8422 if test -z "$ac_lib"; then
8423 ac_res="none required"
8424 else
8425 ac_res=-l$ac_lib
8426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429 if { (ac_try="$ac_link"
8430 case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_link") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest$ac_exeext'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_search_opendir=$ac_res
8463 else
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8470 rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext
8472 if test "${ac_cv_search_opendir+set}" = set; then
8473 break
8475 done
8476 if test "${ac_cv_search_opendir+set}" = set; then
8478 else
8479 ac_cv_search_opendir=no
8481 rm conftest.$ac_ext
8482 LIBS=$ac_func_search_save_LIBS
8484 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8485 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8486 ac_res=$ac_cv_search_opendir
8487 if test "$ac_res" != no; then
8488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8492 else
8493 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8494 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8495 if test "${ac_cv_search_opendir+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498 ac_func_search_save_LIBS=$LIBS
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8506 /* Override any GCC internal prototype to avoid an error.
8507 Use char because int might match the return type of a GCC
8508 builtin and then its argument prototype would still apply. */
8509 #ifdef __cplusplus
8510 extern "C"
8511 #endif
8512 char opendir ();
8514 main ()
8516 return opendir ();
8518 return 0;
8520 _ACEOF
8521 for ac_lib in '' x; do
8522 if test -z "$ac_lib"; then
8523 ac_res="none required"
8524 else
8525 ac_res=-l$ac_lib
8526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (ac_try="$ac_link"
8530 case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533 esac
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_link") 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8543 { (case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546 esac
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_try") 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556 esac
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_try") 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_search_opendir=$ac_res
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8570 rm -f core conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext
8572 if test "${ac_cv_search_opendir+set}" = set; then
8573 break
8575 done
8576 if test "${ac_cv_search_opendir+set}" = set; then
8578 else
8579 ac_cv_search_opendir=no
8581 rm conftest.$ac_ext
8582 LIBS=$ac_func_search_save_LIBS
8584 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8585 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8586 ac_res=$ac_cv_search_opendir
8587 if test "$ac_res" != no; then
8588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8595 for ac_header in dlfcn.h
8597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 ac_res=`eval echo '${'$as_ac_Header'}'`
8605 { echo "$as_me:$LINENO: result: $ac_res" >&5
8606 echo "${ECHO_T}$ac_res" >&6; }
8607 else
8608 # Is the header compilable?
8609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 #include <$ac_header>
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (ac_try="$ac_compile"
8622 case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8635 { (case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_try") 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try='test -s conftest.$ac_objext'
8645 { (case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648 esac
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_try") 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_header_compiler=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_header_compiler=no
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8664 echo "${ECHO_T}$ac_header_compiler" >&6; }
8666 # Is the header present?
8667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 #include <$ac_header>
8676 _ACEOF
8677 if { (ac_try="$ac_cpp conftest.$ac_ext"
8678 case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681 esac
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null; then
8690 if test -s conftest.err; then
8691 ac_cpp_err=$ac_c_preproc_warn_flag
8692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8693 else
8694 ac_cpp_err=
8696 else
8697 ac_cpp_err=yes
8699 if test -z "$ac_cpp_err"; then
8700 ac_header_preproc=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_header_preproc=no
8708 rm -f conftest.err conftest.$ac_ext
8709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8710 echo "${ECHO_T}$ac_header_preproc" >&6; }
8712 # So? What about this header?
8713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8714 yes:no: )
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8719 ac_header_preproc=yes
8721 no:yes:* )
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8734 ( cat <<\_ASBOX
8735 ## ----------------------------------- ##
8736 ## Report this to llvmbugs@cs.uiuc.edu ##
8737 ## ----------------------------------- ##
8738 _ASBOX
8739 ) | sed "s/^/$as_me: WARNING: /" >&2
8741 esac
8742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 eval "$as_ac_Header=\$ac_header_preproc"
8749 ac_res=`eval echo '${'$as_ac_Header'}'`
8750 { echo "$as_me:$LINENO: result: $ac_res" >&5
8751 echo "${ECHO_T}$ac_res" >&6; }
8754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757 _ACEOF
8761 done
8763 # Check whether --enable-ltdl-install was given.
8764 if test "${enable_ltdl_install+set}" = set; then
8765 enableval=$enable_ltdl_install;
8771 if test x"${enable_ltdl_install-no}" != xno; then
8772 INSTALL_LTDL_TRUE=
8773 INSTALL_LTDL_FALSE='#'
8774 else
8775 INSTALL_LTDL_TRUE='#'
8776 INSTALL_LTDL_FALSE=
8781 if test x"${enable_ltdl_convenience-no}" != xno; then
8782 CONVENIENCE_LTDL_TRUE=
8783 CONVENIENCE_LTDL_FALSE='#'
8784 else
8785 CONVENIENCE_LTDL_TRUE='#'
8786 CONVENIENCE_LTDL_FALSE=
8790 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8791 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8792 library_names_spec=
8793 libname_spec='lib$name'
8794 soname_spec=
8795 shrext_cmds=".so"
8796 postinstall_cmds=
8797 postuninstall_cmds=
8798 finish_cmds=
8799 finish_eval=
8800 shlibpath_var=
8801 shlibpath_overrides_runpath=unknown
8802 version_type=none
8803 dynamic_linker="$host_os ld.so"
8804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8805 if test "$GCC" = yes; then
8806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8807 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8808 # if the path contains ";" then we assume it to be the separator
8809 # otherwise default to the standard path separator (i.e. ":") - it is
8810 # assumed that no part of a normal pathname contains ";" but that should
8811 # okay in the real world where ";" in dirpaths is itself problematic.
8812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8813 else
8814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8816 else
8817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8819 need_lib_prefix=unknown
8820 hardcode_into_libs=no
8822 # when you set need_version to no, make sure it does not cause -set_version
8823 # flags to be left without arguments
8824 need_version=unknown
8826 case $host_os in
8827 aix3*)
8828 version_type=linux
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8830 shlibpath_var=LIBPATH
8832 # AIX 3 has no versioning support, so we append a major version to the name.
8833 soname_spec='${libname}${release}${shared_ext}$major'
8836 aix4* | aix5*)
8837 version_type=linux
8838 need_lib_prefix=no
8839 need_version=no
8840 hardcode_into_libs=yes
8841 if test "$host_cpu" = ia64; then
8842 # AIX 5 supports IA64
8843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 else
8846 # With GCC up to 2.95.x, collect2 would create an import file
8847 # for dependence libraries. The import file would start with
8848 # the line `#! .'. This would cause the generated library to
8849 # depend on `.', always an invalid library. This was fixed in
8850 # development snapshots of GCC prior to 3.0.
8851 case $host_os in
8852 aix4 | aix4.[01] | aix4.[01].*)
8853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8854 echo ' yes '
8855 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8857 else
8858 can_build_shared=no
8861 esac
8862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8863 # soname into executable. Probably we can add versioning support to
8864 # collect2, so additional links can be useful in future.
8865 if test "$aix_use_runtimelinking" = yes; then
8866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8867 # instead of lib<name>.a to let people know that these are not
8868 # typical AIX shared libraries.
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 else
8871 # We preserve .a as extension for shared libraries through AIX4.2
8872 # and later when we are not doing run time linking.
8873 library_names_spec='${libname}${release}.a $libname.a'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8876 shlibpath_var=LIBPATH
8880 amigaos*)
8881 library_names_spec='$libname.ixlibrary $libname.a'
8882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8883 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'
8886 beos*)
8887 library_names_spec='${libname}${shared_ext}'
8888 dynamic_linker="$host_os ld.so"
8889 shlibpath_var=LIBRARY_PATH
8892 bsdi[45]*)
8893 version_type=linux
8894 need_version=no
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8901 # the default ld.so.conf also contains /usr/contrib/lib and
8902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8903 # libtool to hard-code these into programs
8906 cygwin* | mingw* | pw32*)
8907 version_type=windows
8908 shrext_cmds=".dll"
8909 need_version=no
8910 need_lib_prefix=no
8912 case $GCC,$host_os in
8913 yes,cygwin* | yes,mingw* | yes,pw32*)
8914 library_names_spec='$libname.dll.a'
8915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8916 postinstall_cmds='base_file=`basename \${file}`~
8917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8918 dldir=$destdir/`dirname \$dlpath`~
8919 test -d \$dldir || mkdir -p \$dldir~
8920 $install_prog $dir/$dlname \$dldir/$dlname~
8921 chmod a+x \$dldir/$dlname'
8922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8923 dlpath=$dir/\$dldll~
8924 $rm \$dlpath'
8925 shlibpath_overrides_runpath=yes
8927 case $host_os in
8928 cygwin*)
8929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8931 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8933 mingw*)
8934 # MinGW DLLs use traditional 'lib' prefix
8935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8937 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8938 # It is most probably a Windows format PATH printed by
8939 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8940 # path with ; separators, and with drive letters. We can handle the
8941 # drive letters (cygwin fileutils understands them), so leave them,
8942 # especially as we might pass files found there to a mingw objdump,
8943 # which wouldn't understand a cygwinified path. Ahh.
8944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8945 else
8946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8949 pw32*)
8950 # pw32 DLLs use 'pw' prefix rather than 'lib'
8951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8953 esac
8957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8959 esac
8960 dynamic_linker='Win32 ld.exe'
8961 # FIXME: first we should search . and the directory the executable is in
8962 shlibpath_var=PATH
8965 darwin* | rhapsody*)
8966 dynamic_linker="$host_os dyld"
8967 version_type=darwin
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8971 soname_spec='${libname}${release}${major}$shared_ext'
8972 shlibpath_overrides_runpath=yes
8973 shlibpath_var=DYLD_LIBRARY_PATH
8974 shrext_cmds='.dylib'
8975 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8976 if test "$GCC" = yes; then
8977 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"`
8978 else
8979 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8984 dgux*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8993 freebsd1*)
8994 dynamic_linker=no
8997 kfreebsd*-gnu)
8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9006 dynamic_linker='GNU ld.so'
9009 freebsd* | dragonfly*)
9010 # DragonFly does not have aout. When/if they implement a new
9011 # versioning mechanism, adjust this.
9012 if test -x /usr/bin/objformat; then
9013 objformat=`/usr/bin/objformat`
9014 else
9015 case $host_os in
9016 freebsd[123]*) objformat=aout ;;
9017 *) objformat=elf ;;
9018 esac
9020 version_type=freebsd-$objformat
9021 case $version_type in
9022 freebsd-elf*)
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9024 need_version=no
9025 need_lib_prefix=no
9027 freebsd-*)
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9029 need_version=yes
9031 esac
9032 shlibpath_var=LD_LIBRARY_PATH
9033 case $host_os in
9034 freebsd2*)
9035 shlibpath_overrides_runpath=yes
9037 freebsd3.[01]* | freebsdelf3.[01]*)
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9041 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9042 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9046 freebsd*) # from 4.6 on
9047 shlibpath_overrides_runpath=yes
9048 hardcode_into_libs=yes
9050 esac
9053 gnu*)
9054 version_type=linux
9055 need_lib_prefix=no
9056 need_version=no
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 hardcode_into_libs=yes
9063 hpux9* | hpux10* | hpux11*)
9064 # Give a soname corresponding to the major version so that dld.sl refuses to
9065 # link against other versions.
9066 version_type=sunos
9067 need_lib_prefix=no
9068 need_version=no
9069 case $host_cpu in
9070 ia64*)
9071 shrext_cmds='.so'
9072 hardcode_into_libs=yes
9073 dynamic_linker="$host_os dld.so"
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 if test "X$HPUX_IA64_MODE" = X32; then
9079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9080 else
9081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9085 hppa*64*)
9086 shrext_cmds='.sl'
9087 hardcode_into_libs=yes
9088 dynamic_linker="$host_os dld.sl"
9089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9097 shrext_cmds='.sl'
9098 dynamic_linker="$host_os dld.sl"
9099 shlibpath_var=SHLIB_PATH
9100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9104 esac
9105 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9106 postinstall_cmds='chmod 555 $lib'
9109 interix3*)
9110 version_type=linux
9111 need_lib_prefix=no
9112 need_version=no
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=no
9118 hardcode_into_libs=yes
9121 irix5* | irix6* | nonstopux*)
9122 case $host_os in
9123 nonstopux*) version_type=nonstopux ;;
9125 if test "$lt_cv_prog_gnu_ld" = yes; then
9126 version_type=linux
9127 else
9128 version_type=irix
9129 fi ;;
9130 esac
9131 need_lib_prefix=no
9132 need_version=no
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9135 case $host_os in
9136 irix5* | nonstopux*)
9137 libsuff= shlibsuff=
9140 case $LD in # libtool.m4 will add one of these switches to LD
9141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9142 libsuff= shlibsuff= libmagic=32-bit;;
9143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9144 libsuff=32 shlibsuff=N32 libmagic=N32;;
9145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9146 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9147 *) libsuff= shlibsuff= libmagic=never-match;;
9148 esac
9150 esac
9151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9152 shlibpath_overrides_runpath=no
9153 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9154 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9155 hardcode_into_libs=yes
9158 # No shared lib support for Linux oldld, aout, or coff.
9159 linux*oldld* | linux*aout* | linux*coff*)
9160 dynamic_linker=no
9163 # This must be Linux ELF.
9164 linux*)
9165 version_type=linux
9166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 shlibpath_overrides_runpath=no
9173 # This implies no fast_install, which is unacceptable.
9174 # Some rework will be needed to allow for fast_install
9175 # before this can be enabled.
9176 hardcode_into_libs=yes
9178 # Append ld.so.conf contents to the search path
9179 if test -f /etc/ld.so.conf; then
9180 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' ' '`
9181 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9184 # We used to test for /lib/ld.so.1 and disable shared libraries on
9185 # powerpc, because MkLinux only supported shared libraries with the
9186 # GNU dynamic linker. Since this was broken with cross compilers,
9187 # most powerpc-linux boxes support dynamic linking these days and
9188 # people can always --disable-shared, the test was removed, and we
9189 # assume the GNU/Linux dynamic linker is in use.
9190 dynamic_linker='GNU/Linux ld.so'
9193 knetbsd*-gnu)
9194 version_type=linux
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 dynamic_linker='GNU ld.so'
9205 netbsd*)
9206 version_type=sunos
9207 need_lib_prefix=no
9208 need_version=no
9209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9212 dynamic_linker='NetBSD (a.out) ld.so'
9213 else
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 dynamic_linker='NetBSD ld.elf_so'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 hardcode_into_libs=yes
9223 newsos6)
9224 version_type=linux
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=yes
9230 nto-qnx*)
9231 version_type=linux
9232 need_lib_prefix=no
9233 need_version=no
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9240 openbsd*)
9241 version_type=sunos
9242 sys_lib_dlsearch_path_spec="/usr/lib"
9243 need_lib_prefix=no
9244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9245 case $host_os in
9246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9247 *) need_version=no ;;
9248 esac
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9253 case $host_os in
9254 openbsd2.[89] | openbsd2.[89].*)
9255 shlibpath_overrides_runpath=no
9258 shlibpath_overrides_runpath=yes
9260 esac
9261 else
9262 shlibpath_overrides_runpath=yes
9266 os2*)
9267 libname_spec='$name'
9268 shrext_cmds=".dll"
9269 need_lib_prefix=no
9270 library_names_spec='$libname${shared_ext} $libname.a'
9271 dynamic_linker='OS/2 ld.exe'
9272 shlibpath_var=LIBPATH
9275 osf3* | osf4* | osf5*)
9276 version_type=osf
9277 need_lib_prefix=no
9278 need_version=no
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9286 solaris*)
9287 version_type=linux
9288 need_lib_prefix=no
9289 need_version=no
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 shlibpath_overrides_runpath=yes
9294 hardcode_into_libs=yes
9295 # ldd complains unless libraries are executable
9296 postinstall_cmds='chmod +x $lib'
9299 sunos4*)
9300 version_type=sunos
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 if test "$with_gnu_ld" = yes; then
9306 need_lib_prefix=no
9308 need_version=yes
9311 sysv4 | sysv4.3*)
9312 version_type=linux
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 case $host_vendor in
9317 sni)
9318 shlibpath_overrides_runpath=no
9319 need_lib_prefix=no
9320 export_dynamic_flag_spec='${wl}-Blargedynsym'
9321 runpath_var=LD_RUN_PATH
9323 siemens)
9324 need_lib_prefix=no
9326 motorola)
9327 need_lib_prefix=no
9328 need_version=no
9329 shlibpath_overrides_runpath=no
9330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9332 esac
9335 sysv4*MP*)
9336 if test -d /usr/nec ;then
9337 version_type=linux
9338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9339 soname_spec='$libname${shared_ext}.$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9345 version_type=freebsd-elf
9346 need_lib_prefix=no
9347 need_version=no
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 hardcode_into_libs=yes
9352 if test "$with_gnu_ld" = yes; then
9353 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9354 shlibpath_overrides_runpath=no
9355 else
9356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9357 shlibpath_overrides_runpath=yes
9358 case $host_os in
9359 sco3.2v5*)
9360 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9362 esac
9364 sys_lib_dlsearch_path_spec='/usr/lib'
9367 uts4*)
9368 version_type=linux
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 shlibpath_var=LD_LIBRARY_PATH
9375 dynamic_linker=no
9377 esac
9378 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9379 echo "${ECHO_T}$dynamic_linker" >&6; }
9380 test "$dynamic_linker" = no && can_build_shared=no
9382 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9383 if test "$GCC" = yes; then
9384 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9388 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9389 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9390 if test "${libltdl_cv_shlibext+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9394 module=yes
9395 eval libltdl_cv_shlibext=$shrext_cmds
9398 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9399 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9400 if test -n "$libltdl_cv_shlibext"; then
9402 cat >>confdefs.h <<_ACEOF
9403 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9404 _ACEOF
9409 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9410 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9411 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414 libltdl_cv_shlibpath_var="$shlibpath_var"
9416 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9417 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9418 if test -n "$libltdl_cv_shlibpath_var"; then
9420 cat >>confdefs.h <<_ACEOF
9421 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9422 _ACEOF
9427 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9428 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9429 if test "${libltdl_cv_sys_search_path+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9434 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9435 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9436 if test -n "$libltdl_cv_sys_search_path"; then
9437 sys_search_path=
9438 for dir in $libltdl_cv_sys_search_path; do
9439 if test -z "$sys_search_path"; then
9440 sys_search_path="$dir"
9441 else
9442 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9444 done
9446 cat >>confdefs.h <<_ACEOF
9447 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9448 _ACEOF
9452 { echo "$as_me:$LINENO: checking for objdir" >&5
9453 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_objdir+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457 libltdl_cv_objdir="$objdir"
9458 if test -n "$objdir"; then
9460 else
9461 rm -f .libs 2>/dev/null
9462 mkdir .libs 2>/dev/null
9463 if test -d .libs; then
9464 libltdl_cv_objdir=.libs
9465 else
9466 # MS-DOS does not allow filenames that begin with a dot.
9467 libltdl_cv_objdir=_libs
9469 rmdir .libs 2>/dev/null
9473 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9474 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9476 cat >>confdefs.h <<_ACEOF
9477 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9478 _ACEOF
9485 # Check for command to grab the raw symbol name followed by C symbol from nm.
9486 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9487 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9488 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9492 # These are sane defaults that work on at least a few old systems.
9493 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9495 # Character class describing NM global symbol codes.
9496 symcode='[BCDEGRST]'
9498 # Regexp to match symbols that can be accessed directly from C.
9499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9501 # Transform an extracted symbol line into a proper C declaration
9502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9504 # Transform an extracted symbol line into symbol name and symbol address
9505 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'"
9507 # Define system-specific variables.
9508 case $host_os in
9509 aix*)
9510 symcode='[BCDT]'
9512 cygwin* | mingw* | pw32*)
9513 symcode='[ABCDGISTW]'
9515 hpux*) # Its linker distinguishes data from code symbols
9516 if test "$host_cpu" = ia64; then
9517 symcode='[ABCDEGRST]'
9519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9520 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'"
9522 linux*)
9523 if test "$host_cpu" = ia64; then
9524 symcode='[ABCDGIRSTW]'
9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9526 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'"
9529 irix* | nonstopux*)
9530 symcode='[BCDEGRST]'
9532 osf*)
9533 symcode='[BCDEGQRST]'
9535 solaris*)
9536 symcode='[BDRT]'
9538 sco3.2v5*)
9539 symcode='[DT]'
9541 sysv4.2uw2*)
9542 symcode='[DT]'
9544 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9545 symcode='[ABDT]'
9547 sysv4)
9548 symcode='[DFNSTU]'
9550 esac
9552 # Handle CRLF in mingw tool chain
9553 opt_cr=
9554 case $build_os in
9555 mingw*)
9556 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9558 esac
9560 # If we're using GNU nm, then use its standard symbol codes.
9561 case `$NM -V 2>&1` in
9562 *GNU* | *'with BFD'*)
9563 symcode='[ABCDGIRSTW]' ;;
9564 esac
9566 # Try without a prefix undercore, then with it.
9567 for ac_symprfx in "" "_"; do
9569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9570 symxfrm="\\1 $ac_symprfx\\2 \\2"
9572 # Write the raw and C identifiers.
9573 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9575 # Check to see that the pipe works correctly.
9576 pipe_works=no
9578 rm -f conftest*
9579 cat > conftest.$ac_ext <<EOF
9580 #ifdef __cplusplus
9581 extern "C" {
9582 #endif
9583 char nm_test_var;
9584 void nm_test_func(){}
9585 #ifdef __cplusplus
9587 #endif
9588 int main(){nm_test_var='a';nm_test_func();return(0);}
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; then
9596 # Now try to grab the symbols.
9597 nlist=conftest.nm
9598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && test -s "$nlist"; then
9603 # Try sorting and uniquifying the output.
9604 if sort "$nlist" | uniq > "$nlist"T; then
9605 mv -f "$nlist"T "$nlist"
9606 else
9607 rm -f "$nlist"T
9610 # Make sure that we snagged all the symbols we need.
9611 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9612 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9613 cat <<EOF > conftest.$ac_ext
9614 #ifdef __cplusplus
9615 extern "C" {
9616 #endif
9619 # Now generate the symbol file.
9620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9622 cat <<EOF >> conftest.$ac_ext
9623 #if defined (__STDC__) && __STDC__
9624 # define lt_ptr_t void *
9625 #else
9626 # define lt_ptr_t char *
9627 # define const
9628 #endif
9630 /* The mapping between symbol names and symbols. */
9631 const struct {
9632 const char *name;
9633 lt_ptr_t address;
9635 lt_preloaded_symbols[] =
9638 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9639 cat <<\EOF >> conftest.$ac_ext
9640 {0, (lt_ptr_t) 0}
9643 #ifdef __cplusplus
9645 #endif
9647 # Now try linking the two files.
9648 mv conftest.$ac_objext conftstm.$ac_objext
9649 lt_save_LIBS="$LIBS"
9650 lt_save_CFLAGS="$CFLAGS"
9651 LIBS="conftstm.$ac_objext"
9652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9658 pipe_works=yes
9660 LIBS="$lt_save_LIBS"
9661 CFLAGS="$lt_save_CFLAGS"
9662 else
9663 echo "cannot find nm_test_func in $nlist" >&5
9665 else
9666 echo "cannot find nm_test_var in $nlist" >&5
9668 else
9669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9671 else
9672 echo "$progname: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9675 rm -f conftest* conftst*
9677 # Do not use the global_symbol_pipe unless it works.
9678 if test "$pipe_works" = yes; then
9679 break
9680 else
9681 lt_cv_sys_global_symbol_pipe=
9683 done
9687 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9688 lt_cv_sys_global_symbol_to_cdecl=
9690 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9691 { echo "$as_me:$LINENO: result: failed" >&5
9692 echo "${ECHO_T}failed" >&6; }
9693 else
9694 { echo "$as_me:$LINENO: result: ok" >&5
9695 echo "${ECHO_T}ok" >&6; }
9699 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9700 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9701 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9705 libltdl_cv_preloaded_symbols=yes
9706 else
9707 libltdl_cv_preloaded_symbols=no
9711 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9712 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9713 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9715 cat >>confdefs.h <<\_ACEOF
9716 #define HAVE_PRELOADED_SYMBOLS 1
9717 _ACEOF
9721 LIBADD_DL=
9723 ac_ext=c
9724 ac_cpp='$CPP $CPPFLAGS'
9725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9730 { echo "$as_me:$LINENO: checking for shl_load" >&5
9731 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9732 if test "${ac_cv_func_shl_load+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743 #define shl_load innocuous_shl_load
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char shl_load (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9750 #ifdef __STDC__
9751 # include <limits.h>
9752 #else
9753 # include <assert.h>
9754 #endif
9756 #undef shl_load
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char shl_load ();
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined __stub_shl_load || defined __stub___shl_load
9769 choke me
9770 #endif
9773 main ()
9775 return shl_load ();
9777 return 0;
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9782 case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_func_shl_load=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_cv_func_shl_load=no
9822 rm -f core conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9825 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9826 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9827 if test $ac_cv_func_shl_load = yes; then
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_SHL_LOAD 1
9831 _ACEOF
9833 else
9834 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839 ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-ldld $LIBS"
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9848 /* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 char shl_load ();
9856 main ()
9858 return shl_load ();
9860 return 0;
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_dld_shl_load=yes
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_lib_dld_shl_load=no
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9910 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9911 if test $ac_cv_lib_dld_shl_load = yes; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_SHL_LOAD 1
9915 _ACEOF
9917 LIBADD_DL="$LIBADD_DL -ldld"
9918 else
9919 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924 ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-ldl $LIBS"
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h. */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char dlopen ();
9941 main ()
9943 return dlopen ();
9945 return 0;
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_dl_dlopen=yes
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_lib_dl_dlopen=no
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9996 if test $ac_cv_lib_dl_dlopen = yes; then
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_LIBDL 1
10000 _ACEOF
10002 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10003 else
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #if HAVE_DLFCN_H
10011 # include <dlfcn.h>
10012 #endif
10015 main ()
10017 dlopen(0, 0);
10019 return 0;
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest$ac_exeext'
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050 esac
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_LIBDL 1
10059 _ACEOF
10060 libltdl_cv_func_dlopen="yes"
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10066 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070 ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-lsvld $LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char dlopen ();
10087 main ()
10089 return dlopen ();
10091 return 0;
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_try") 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_svld_dlopen=yes
10129 else
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_lib_svld_dlopen=no
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10142 if test $ac_cv_lib_svld_dlopen = yes; then
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_LIBDL 1
10146 _ACEOF
10148 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10149 else
10150 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155 ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-ldld $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char dld_link ();
10172 main ()
10174 return dld_link ();
10176 return 0;
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_dld_dld_link=yes
10214 else
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_lib_dld_dld_link=no
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10225 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10226 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10227 if test $ac_cv_lib_dld_dld_link = yes; then
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_DLD 1
10231 _ACEOF
10233 LIBADD_DL="$LIBADD_DL -ldld"
10234 else
10235 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10236 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10237 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10248 #define _dyld_func_lookup innocuous__dyld_func_lookup
10250 /* System header to define __stub macros and hopefully few prototypes,
10251 which can conflict with char _dyld_func_lookup (); below.
10252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10253 <limits.h> exists even on freestanding compilers. */
10255 #ifdef __STDC__
10256 # include <limits.h>
10257 #else
10258 # include <assert.h>
10259 #endif
10261 #undef _dyld_func_lookup
10263 /* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char _dyld_func_lookup ();
10270 /* The GNU C library defines this for functions which it implements
10271 to always fail with ENOSYS. Some functions are actually named
10272 something starting with __ and the normal name is an alias. */
10273 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10274 choke me
10275 #endif
10278 main ()
10280 return _dyld_func_lookup ();
10282 return 0;
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (ac_try="$ac_link"
10287 case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_link") 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_func__dyld_func_lookup=yes
10320 else
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 ac_cv_func__dyld_func_lookup=no
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10330 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10331 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10332 if test $ac_cv_func__dyld_func_lookup = yes; then
10334 cat >>confdefs.h <<\_ACEOF
10335 #define HAVE_DYLD 1
10336 _ACEOF
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10361 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10362 then
10363 lt_save_LIBS="$LIBS"
10364 LIBS="$LIBS $LIBADD_DL"
10366 for ac_func in dlerror
10368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h. */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10382 #define $ac_func innocuous_$ac_func
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func (); below.
10386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387 <limits.h> exists even on freestanding compilers. */
10389 #ifdef __STDC__
10390 # include <limits.h>
10391 #else
10392 # include <assert.h>
10393 #endif
10395 #undef $ac_func
10397 /* Override any GCC internal prototype to avoid an error.
10398 Use char because int might match the return type of a GCC
10399 builtin and then its argument prototype would still apply. */
10400 #ifdef __cplusplus
10401 extern "C"
10402 #endif
10403 char $ac_func ();
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined __stub_$ac_func || defined __stub___$ac_func
10408 choke me
10409 #endif
10412 main ()
10414 return $ac_func ();
10416 return 0;
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10454 else
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 eval "$as_ac_var=no"
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10464 ac_res=`eval echo '${'$as_ac_var'}'`
10465 { echo "$as_me:$LINENO: result: $ac_res" >&5
10466 echo "${ECHO_T}$ac_res" >&6; }
10467 if test `eval echo '${'$as_ac_var'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10470 _ACEOF
10473 done
10475 LIBS="$lt_save_LIBS"
10477 ac_ext=c
10478 ac_cpp='$CPP $CPPFLAGS'
10479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10485 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10486 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10487 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 ac_cv_sys_symbol_underscore=no
10491 cat > conftest.$ac_ext <<EOF
10492 void nm_test_func(){}
10493 int main(){nm_test_func;return 0;}
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; then
10500 # Now try to grab the symbols.
10501 ac_nlist=conftest.nm
10502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s "$ac_nlist"; then
10507 # See whether the symbols have a leading underscore.
10508 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10509 ac_cv_sys_symbol_underscore=yes
10510 else
10511 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10513 else
10514 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10517 else
10518 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10520 else
10521 echo "configure: failed program was:" >&5
10522 cat conftest.c >&5
10524 rm -rf conftest*
10527 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10528 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10531 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10532 if test x"$libltdl_cv_func_dlopen" = xyes ||
10533 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10534 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10535 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10536 if test "${libltdl_cv_need_uscore+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 libltdl_cv_need_uscore=unknown
10540 save_LIBS="$LIBS"
10541 LIBS="$LIBS $LIBADD_DL"
10542 if test "$cross_compiling" = yes; then :
10543 libltdl_cv_need_uscore=cross
10544 else
10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546 lt_status=$lt_dlunknown
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10548 "configure"
10549 #include "confdefs.h"
10551 #if HAVE_DLFCN_H
10552 #include <dlfcn.h>
10553 #endif
10555 #include <stdio.h>
10557 #ifdef RTLD_GLOBAL
10558 # define LT_DLGLOBAL RTLD_GLOBAL
10559 #else
10560 # ifdef DL_GLOBAL
10561 # define LT_DLGLOBAL DL_GLOBAL
10562 # else
10563 # define LT_DLGLOBAL 0
10564 # endif
10565 #endif
10567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568 find out it does not work in some platform. */
10569 #ifndef LT_DLLAZY_OR_NOW
10570 # ifdef RTLD_LAZY
10571 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10572 # else
10573 # ifdef DL_LAZY
10574 # define LT_DLLAZY_OR_NOW DL_LAZY
10575 # else
10576 # ifdef RTLD_NOW
10577 # define LT_DLLAZY_OR_NOW RTLD_NOW
10578 # else
10579 # ifdef DL_NOW
10580 # define LT_DLLAZY_OR_NOW DL_NOW
10581 # else
10582 # define LT_DLLAZY_OR_NOW 0
10583 # endif
10584 # endif
10585 # endif
10586 # endif
10587 #endif
10589 #ifdef __cplusplus
10590 extern "C" void exit (int);
10591 #endif
10593 void fnord() { int i=42;}
10594 int main ()
10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597 int status = $lt_dlunknown;
10599 if (self)
10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10603 /* dlclose (self); */
10605 else
10606 puts (dlerror ());
10608 exit (status);
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10616 (./conftest; exit; ) >&5 2>/dev/null
10617 lt_status=$?
10618 case x$lt_status in
10619 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10620 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10621 x$lt_dlunknown|x*) ;;
10622 esac
10623 else :
10624 # compilation failed
10628 rm -fr conftest*
10630 LIBS="$save_LIBS"
10633 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10634 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10638 if test x"$libltdl_cv_need_uscore" = xyes; then
10640 cat >>confdefs.h <<\_ACEOF
10641 #define NEED_USCORE 1
10642 _ACEOF
10647 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10648 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10649 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 # PORTME does your system automatically load deplibs for dlopen?
10653 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10654 # For now, we just catch OSes we know something about -- in the
10655 # future, we'll try test this programmatically.
10656 libltdl_cv_sys_dlopen_deplibs=unknown
10657 case "$host_os" in
10658 aix3*|aix4.1.*|aix4.2.*)
10659 # Unknown whether this is true for these versions of AIX, but
10660 # we want this `case' here to explicitly catch those versions.
10661 libltdl_cv_sys_dlopen_deplibs=unknown
10663 aix[45]*)
10664 libltdl_cv_sys_dlopen_deplibs=yes
10666 darwin*)
10667 # Assuming the user has installed a libdl from somewhere, this is true
10668 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10669 libltdl_cv_sys_dlopen_deplibs=yes
10671 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10672 # GNU and its variants, using gnu ld.so (Glibc)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10675 hpux10*|hpux11*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10678 interix*)
10679 libltdl_cv_sys_dlopen_deplibs=yes
10681 irix[12345]*|irix6.[01]*)
10682 # Catch all versions of IRIX before 6.2, and indicate that we don't
10683 # know how it worked for any of those versions.
10684 libltdl_cv_sys_dlopen_deplibs=unknown
10686 irix*)
10687 # The case above catches anything before 6.2, and it's known that
10688 # at 6.2 and later dlopen does load deplibs.
10689 libltdl_cv_sys_dlopen_deplibs=yes
10691 netbsd*)
10692 libltdl_cv_sys_dlopen_deplibs=yes
10694 openbsd*)
10695 libltdl_cv_sys_dlopen_deplibs=yes
10697 osf[1234]*)
10698 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10699 # it did *not* use an RPATH in a shared library to find objects the
10700 # library depends on, so we explictly say `no'.
10701 libltdl_cv_sys_dlopen_deplibs=no
10703 osf5.0|osf5.0a|osf5.1)
10704 # dlopen *does* load deplibs and with the right loader patch applied
10705 # it even uses RPATH in a shared library to search for shared objects
10706 # that the library depends on, but there's no easy way to know if that
10707 # patch is installed. Since this is the case, all we can really
10708 # say is unknown -- it depends on the patch being installed. If
10709 # it is, this changes to `yes'. Without it, it would be `no'.
10710 libltdl_cv_sys_dlopen_deplibs=unknown
10712 osf*)
10713 # the two cases above should catch all versions of osf <= 5.1. Read
10714 # the comments above for what we know about them.
10715 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10716 # is used to find them so we can finally say `yes'.
10717 libltdl_cv_sys_dlopen_deplibs=yes
10719 solaris*)
10720 libltdl_cv_sys_dlopen_deplibs=yes
10722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723 libltdl_cv_sys_dlopen_deplibs=yes
10725 esac
10728 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10729 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10730 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10732 cat >>confdefs.h <<\_ACEOF
10733 #define LTDL_DLOPEN_DEPLIBS 1
10734 _ACEOF
10739 for ac_header in argz.h
10741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750 echo "${ECHO_T}$ac_res" >&6; }
10751 else
10752 # Is the header compilable?
10753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 $ac_includes_default
10762 #include <$ac_header>
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (ac_try="$ac_compile"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_header_compiler=yes
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_header_compiler=no
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10808 echo "${ECHO_T}$ac_header_compiler" >&6; }
10810 # Is the header present?
10811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <$ac_header>
10820 _ACEOF
10821 if { (ac_try="$ac_cpp conftest.$ac_ext"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837 else
10838 ac_cpp_err=
10840 else
10841 ac_cpp_err=yes
10843 if test -z "$ac_cpp_err"; then
10844 ac_header_preproc=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_header_preproc=no
10852 rm -f conftest.err conftest.$ac_ext
10853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10854 echo "${ECHO_T}$ac_header_preproc" >&6; }
10856 # So? What about this header?
10857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10858 yes:no: )
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10863 ac_header_preproc=yes
10865 no:yes:* )
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10878 ( cat <<\_ASBOX
10879 ## ----------------------------------- ##
10880 ## Report this to llvmbugs@cs.uiuc.edu ##
10881 ## ----------------------------------- ##
10882 _ASBOX
10883 ) | sed "s/^/$as_me: WARNING: /" >&2
10885 esac
10886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 eval "$as_ac_Header=\$ac_header_preproc"
10893 ac_res=`eval echo '${'$as_ac_Header'}'`
10894 { echo "$as_me:$LINENO: result: $ac_res" >&5
10895 echo "${ECHO_T}$ac_res" >&6; }
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10905 done
10908 { echo "$as_me:$LINENO: checking for error_t" >&5
10909 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10910 if test "${ac_cv_type_error_t+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 #if HAVE_ARGZ_H
10920 # include <argz.h>
10921 #endif
10923 typedef error_t ac__type_new_;
10925 main ()
10927 if ((ac__type_new_ *) 0)
10928 return 0;
10929 if (sizeof (ac__type_new_))
10930 return 0;
10932 return 0;
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_type_error_t=yes
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_cv_type_error_t=no
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10980 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10981 if test $ac_cv_type_error_t = yes; then
10983 cat >>confdefs.h <<_ACEOF
10984 #define HAVE_ERROR_T 1
10985 _ACEOF
10988 else
10990 cat >>confdefs.h <<\_ACEOF
10991 #define error_t int
10992 _ACEOF
11002 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11018 #define $ac_func innocuous_$ac_func
11020 /* System header to define __stub macros and hopefully few prototypes,
11021 which can conflict with char $ac_func (); below.
11022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11023 <limits.h> exists even on freestanding compilers. */
11025 #ifdef __STDC__
11026 # include <limits.h>
11027 #else
11028 # include <assert.h>
11029 #endif
11031 #undef $ac_func
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char $ac_func ();
11040 /* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
11043 #if defined __stub_$ac_func || defined __stub___$ac_func
11044 choke me
11045 #endif
11048 main ()
11050 return $ac_func ();
11052 return 0;
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 eval "$as_ac_var=yes"
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 eval "$as_ac_var=no"
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11100 ac_res=`eval echo '${'$as_ac_var'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 if test `eval echo '${'$as_ac_var'}'` = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11106 _ACEOF
11109 done
11138 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11139 stdio.h unistd.h
11141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 ac_res=`eval echo '${'$as_ac_Header'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151 else
11152 # Is the header compilable?
11153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 $ac_includes_default
11162 #include <$ac_header>
11163 _ACEOF
11164 rm -f conftest.$ac_objext
11165 if { (ac_try="$ac_compile"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_compile") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11179 { (case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_try") 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11192 esac
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_try") 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 ac_header_compiler=yes
11199 else
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_compiler=no
11206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11208 echo "${ECHO_T}$ac_header_compiler" >&6; }
11210 # Is the header present?
11211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 #include <$ac_header>
11220 _ACEOF
11221 if { (ac_try="$ac_cpp conftest.$ac_ext"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } >/dev/null; then
11234 if test -s conftest.err; then
11235 ac_cpp_err=$ac_c_preproc_warn_flag
11236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11237 else
11238 ac_cpp_err=
11240 else
11241 ac_cpp_err=yes
11243 if test -z "$ac_cpp_err"; then
11244 ac_header_preproc=yes
11245 else
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 ac_header_preproc=no
11252 rm -f conftest.err conftest.$ac_ext
11253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11254 echo "${ECHO_T}$ac_header_preproc" >&6; }
11256 # So? What about this header?
11257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11258 yes:no: )
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11263 ac_header_preproc=yes
11265 no:yes:* )
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11278 ( cat <<\_ASBOX
11279 ## ----------------------------------- ##
11280 ## Report this to llvmbugs@cs.uiuc.edu ##
11281 ## ----------------------------------- ##
11282 _ASBOX
11283 ) | sed "s/^/$as_me: WARNING: /" >&2
11285 esac
11286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 eval "$as_ac_Header=\$ac_header_preproc"
11293 ac_res=`eval echo '${'$as_ac_Header'}'`
11294 { echo "$as_me:$LINENO: result: $ac_res" >&5
11295 echo "${ECHO_T}$ac_res" >&6; }
11298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301 _ACEOF
11305 done
11311 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11323 else
11324 # Is the header compilable?
11325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h. */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 $ac_includes_default
11334 #include <$ac_header>
11335 _ACEOF
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_compile") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_header_compiler=yes
11371 else
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_header_compiler=no
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11380 echo "${ECHO_T}$ac_header_compiler" >&6; }
11382 # Is the header present?
11383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 #include <$ac_header>
11392 _ACEOF
11393 if { (ac_try="$ac_cpp conftest.$ac_ext"
11394 case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } >/dev/null; then
11406 if test -s conftest.err; then
11407 ac_cpp_err=$ac_c_preproc_warn_flag
11408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11409 else
11410 ac_cpp_err=
11412 else
11413 ac_cpp_err=yes
11415 if test -z "$ac_cpp_err"; then
11416 ac_header_preproc=yes
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_header_preproc=no
11424 rm -f conftest.err conftest.$ac_ext
11425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11426 echo "${ECHO_T}$ac_header_preproc" >&6; }
11428 # So? What about this header?
11429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430 yes:no: )
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11435 ac_header_preproc=yes
11437 no:yes:* )
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450 ( cat <<\_ASBOX
11451 ## ----------------------------------- ##
11452 ## Report this to llvmbugs@cs.uiuc.edu ##
11453 ## ----------------------------------- ##
11454 _ASBOX
11455 ) | sed "s/^/$as_me: WARNING: /" >&2
11457 esac
11458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463 eval "$as_ac_Header=\$ac_header_preproc"
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471 cat >>confdefs.h <<_ACEOF
11472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 _ACEOF
11477 done
11481 for ac_header in string.h strings.h
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11493 else
11494 # Is the header compilable?
11495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11504 #include <$ac_header>
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11521 { (case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_try") 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_try") 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_header_compiler=yes
11541 else
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_header_compiler=no
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550 echo "${ECHO_T}$ac_header_compiler" >&6; }
11552 # Is the header present?
11553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <$ac_header>
11562 _ACEOF
11563 if { (ac_try="$ac_cpp conftest.$ac_ext"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } >/dev/null; then
11576 if test -s conftest.err; then
11577 ac_cpp_err=$ac_c_preproc_warn_flag
11578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11579 else
11580 ac_cpp_err=
11582 else
11583 ac_cpp_err=yes
11585 if test -z "$ac_cpp_err"; then
11586 ac_header_preproc=yes
11587 else
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ac_header_preproc=no
11594 rm -f conftest.err conftest.$ac_ext
11595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596 echo "${ECHO_T}$ac_header_preproc" >&6; }
11598 # So? What about this header?
11599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11600 yes:no: )
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11605 ac_header_preproc=yes
11607 no:yes:* )
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11620 ( cat <<\_ASBOX
11621 ## ----------------------------------- ##
11622 ## Report this to llvmbugs@cs.uiuc.edu ##
11623 ## ----------------------------------- ##
11624 _ASBOX
11625 ) | sed "s/^/$as_me: WARNING: /" >&2
11627 esac
11628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 eval "$as_ac_Header=\$ac_header_preproc"
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11641 cat >>confdefs.h <<_ACEOF
11642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 _ACEOF
11644 break
11647 done
11652 for ac_func in strchr index
11654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11668 #define $ac_func innocuous_$ac_func
11670 /* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func (); below.
11672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673 <limits.h> exists even on freestanding compilers. */
11675 #ifdef __STDC__
11676 # include <limits.h>
11677 #else
11678 # include <assert.h>
11679 #endif
11681 #undef $ac_func
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char $ac_func ();
11690 /* The GNU C library defines this for functions which it implements
11691 to always fail with ENOSYS. Some functions are actually named
11692 something starting with __ and the normal name is an alias. */
11693 #if defined __stub_$ac_func || defined __stub___$ac_func
11694 choke me
11695 #endif
11698 main ()
11700 return $ac_func ();
11702 return 0;
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (ac_try="$ac_link"
11707 case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_link") 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11733 esac
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735 (eval "$ac_try") 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 eval "$as_ac_var=yes"
11740 else
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 eval "$as_ac_var=no"
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11750 ac_res=`eval echo '${'$as_ac_var'}'`
11751 { echo "$as_me:$LINENO: result: $ac_res" >&5
11752 echo "${ECHO_T}$ac_res" >&6; }
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 _ACEOF
11757 break
11759 done
11763 for ac_func in strrchr rindex
11765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779 #define $ac_func innocuous_$ac_func
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11786 #ifdef __STDC__
11787 # include <limits.h>
11788 #else
11789 # include <assert.h>
11790 #endif
11792 #undef $ac_func
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char $ac_func ();
11801 /* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11805 choke me
11806 #endif
11809 main ()
11811 return $ac_func ();
11813 return 0;
11815 _ACEOF
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_var=yes"
11851 else
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 eval "$as_ac_var=no"
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11861 ac_res=`eval echo '${'$as_ac_var'}'`
11862 { echo "$as_me:$LINENO: result: $ac_res" >&5
11863 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_var'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 _ACEOF
11868 break
11870 done
11874 for ac_func in memcpy bcopy
11876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11890 #define $ac_func innocuous_$ac_func
11892 /* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func (); below.
11894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895 <limits.h> exists even on freestanding compilers. */
11897 #ifdef __STDC__
11898 # include <limits.h>
11899 #else
11900 # include <assert.h>
11901 #endif
11903 #undef $ac_func
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char $ac_func ();
11912 /* The GNU C library defines this for functions which it implements
11913 to always fail with ENOSYS. Some functions are actually named
11914 something starting with __ and the normal name is an alias. */
11915 #if defined __stub_$ac_func || defined __stub___$ac_func
11916 choke me
11917 #endif
11920 main ()
11922 return $ac_func ();
11924 return 0;
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (ac_try="$ac_link"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_link") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest$ac_exeext'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 eval "$as_ac_var=yes"
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 eval "$as_ac_var=no"
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11972 ac_res=`eval echo '${'$as_ac_var'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11975 if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978 _ACEOF
11979 break
11981 done
11985 for ac_func in memmove strcmp
11987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993 cat >conftest.$ac_ext <<_ACEOF
11994 /* confdefs.h. */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
11999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12001 #define $ac_func innocuous_$ac_func
12003 /* System header to define __stub macros and hopefully few prototypes,
12004 which can conflict with char $ac_func (); below.
12005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12006 <limits.h> exists even on freestanding compilers. */
12008 #ifdef __STDC__
12009 # include <limits.h>
12010 #else
12011 # include <assert.h>
12012 #endif
12014 #undef $ac_func
12016 /* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
12019 #ifdef __cplusplus
12020 extern "C"
12021 #endif
12022 char $ac_func ();
12023 /* The GNU C library defines this for functions which it implements
12024 to always fail with ENOSYS. Some functions are actually named
12025 something starting with __ and the normal name is an alias. */
12026 #if defined __stub_$ac_func || defined __stub___$ac_func
12027 choke me
12028 #endif
12031 main ()
12033 return $ac_func ();
12035 return 0;
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; } &&
12062 { ac_try='test -s conftest$ac_exeext'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 eval "$as_ac_var=yes"
12073 else
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 eval "$as_ac_var=no"
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12083 ac_res=`eval echo '${'$as_ac_var'}'`
12084 { echo "$as_me:$LINENO: result: $ac_res" >&5
12085 echo "${ECHO_T}$ac_res" >&6; }
12086 if test `eval echo '${'$as_ac_var'}'` = yes; then
12087 cat >>confdefs.h <<_ACEOF
12088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12089 _ACEOF
12092 done
12097 for ac_func in closedir opendir readdir
12099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h. */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12113 #define $ac_func innocuous_$ac_func
12115 /* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char $ac_func (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12120 #ifdef __STDC__
12121 # include <limits.h>
12122 #else
12123 # include <assert.h>
12124 #endif
12126 #undef $ac_func
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char $ac_func ();
12135 /* The GNU C library defines this for functions which it implements
12136 to always fail with ENOSYS. Some functions are actually named
12137 something starting with __ and the normal name is an alias. */
12138 #if defined __stub_$ac_func || defined __stub___$ac_func
12139 choke me
12140 #endif
12143 main ()
12145 return $ac_func ();
12147 return 0;
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155 esac
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12165 { (case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_try") 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest$ac_exeext'
12175 { (case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_try") 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 eval "$as_ac_var=yes"
12185 else
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 eval "$as_ac_var=no"
12192 rm -f core conftest.err conftest.$ac_objext \
12193 conftest$ac_exeext conftest.$ac_ext
12195 ac_res=`eval echo '${'$as_ac_var'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197 echo "${ECHO_T}$ac_res" >&6; }
12198 if test `eval echo '${'$as_ac_var'}'` = yes; then
12199 cat >>confdefs.h <<_ACEOF
12200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201 _ACEOF
12204 done
12207 # Check whether --enable-shared was given.
12208 if test "${enable_shared+set}" = set; then
12209 enableval=$enable_shared; p=${PACKAGE-default}
12210 case $enableval in
12211 yes) enable_shared=yes ;;
12212 no) enable_shared=no ;;
12214 enable_shared=no
12215 # Look at the argument we got. We use all the common list separators.
12216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12217 for pkg in $enableval; do
12218 IFS="$lt_save_ifs"
12219 if test "X$pkg" = "X$p"; then
12220 enable_shared=yes
12222 done
12223 IFS="$lt_save_ifs"
12225 esac
12226 else
12227 enable_shared=yes
12231 # Check whether --enable-static was given.
12232 if test "${enable_static+set}" = set; then
12233 enableval=$enable_static; p=${PACKAGE-default}
12234 case $enableval in
12235 yes) enable_static=yes ;;
12236 no) enable_static=no ;;
12238 enable_static=no
12239 # Look at the argument we got. We use all the common list separators.
12240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12241 for pkg in $enableval; do
12242 IFS="$lt_save_ifs"
12243 if test "X$pkg" = "X$p"; then
12244 enable_static=yes
12246 done
12247 IFS="$lt_save_ifs"
12249 esac
12250 else
12251 enable_static=yes
12255 # Check whether --enable-fast-install was given.
12256 if test "${enable_fast_install+set}" = set; then
12257 enableval=$enable_fast_install; p=${PACKAGE-default}
12258 case $enableval in
12259 yes) enable_fast_install=yes ;;
12260 no) enable_fast_install=no ;;
12262 enable_fast_install=no
12263 # Look at the argument we got. We use all the common list separators.
12264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12265 for pkg in $enableval; do
12266 IFS="$lt_save_ifs"
12267 if test "X$pkg" = "X$p"; then
12268 enable_fast_install=yes
12270 done
12271 IFS="$lt_save_ifs"
12273 esac
12274 else
12275 enable_fast_install=yes
12279 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12280 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12281 if test "${lt_cv_path_SED+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 # Loop through the user's path and test for sed and gsed.
12285 # Then use that list of sed's as ones to test for truncation.
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
12291 for lt_ac_prog in sed gsed; do
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12294 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12296 done
12297 done
12298 done
12299 lt_ac_max=0
12300 lt_ac_count=0
12301 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12302 # along with /bin/sed that truncates output.
12303 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12304 test ! -f $lt_ac_sed && continue
12305 cat /dev/null > conftest.in
12306 lt_ac_count=0
12307 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12308 # Check for GNU sed and select it if it is found.
12309 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12310 lt_cv_path_SED=$lt_ac_sed
12311 break
12313 while true; do
12314 cat conftest.in conftest.in >conftest.tmp
12315 mv conftest.tmp conftest.in
12316 cp conftest.in conftest.nl
12317 echo >>conftest.nl
12318 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12319 cmp -s conftest.out conftest.nl || break
12320 # 10000 chars as input seems more than enough
12321 test $lt_ac_count -gt 10 && break
12322 lt_ac_count=`expr $lt_ac_count + 1`
12323 if test $lt_ac_count -gt $lt_ac_max; then
12324 lt_ac_max=$lt_ac_count
12325 lt_cv_path_SED=$lt_ac_sed
12327 done
12328 done
12332 SED=$lt_cv_path_SED
12333 { echo "$as_me:$LINENO: result: $SED" >&5
12334 echo "${ECHO_T}$SED" >&6; }
12337 # Check whether --with-gnu-ld was given.
12338 if test "${with_gnu_ld+set}" = set; then
12339 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12340 else
12341 with_gnu_ld=no
12344 ac_prog=ld
12345 if test "$GCC" = yes; then
12346 # Check if gcc -print-prog-name=ld gives a path.
12347 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12348 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12349 case $host in
12350 *-*-mingw*)
12351 # gcc leaves a trailing carriage return which upsets mingw
12352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12355 esac
12356 case $ac_prog in
12357 # Accept absolute paths.
12358 [\\/]* | ?:[\\/]*)
12359 re_direlt='/[^/][^/]*/\.\./'
12360 # Canonicalize the pathname of ld
12361 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12362 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12363 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12364 done
12365 test -z "$LD" && LD="$ac_prog"
12368 # If it fails, then pretend we aren't using GCC.
12369 ac_prog=ld
12372 # If it is relative, then search for the first ld in PATH.
12373 with_gnu_ld=unknown
12375 esac
12376 elif test "$with_gnu_ld" = yes; then
12377 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12378 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12379 else
12380 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12381 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12383 if test "${lt_cv_path_LD+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386 if test -z "$LD"; then
12387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12388 for ac_dir in $PATH; do
12389 IFS="$lt_save_ifs"
12390 test -z "$ac_dir" && ac_dir=.
12391 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12392 lt_cv_path_LD="$ac_dir/$ac_prog"
12393 # Check to see if the program is GNU ld. I'd rather use --version,
12394 # but apparently some variants of GNU ld only accept -v.
12395 # Break only if it was the GNU/non-GNU ld that we prefer.
12396 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12397 *GNU* | *'with BFD'*)
12398 test "$with_gnu_ld" != no && break
12401 test "$with_gnu_ld" != yes && break
12403 esac
12405 done
12406 IFS="$lt_save_ifs"
12407 else
12408 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12412 LD="$lt_cv_path_LD"
12413 if test -n "$LD"; then
12414 { echo "$as_me:$LINENO: result: $LD" >&5
12415 echo "${ECHO_T}$LD" >&6; }
12416 else
12417 { echo "$as_me:$LINENO: result: no" >&5
12418 echo "${ECHO_T}no" >&6; }
12420 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12421 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12422 { (exit 1); exit 1; }; }
12423 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12424 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12425 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12429 case `$LD -v 2>&1 </dev/null` in
12430 *GNU* | *'with BFD'*)
12431 lt_cv_prog_gnu_ld=yes
12434 lt_cv_prog_gnu_ld=no
12436 esac
12438 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12439 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12440 with_gnu_ld=$lt_cv_prog_gnu_ld
12443 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12444 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12445 if test "${lt_cv_ld_reload_flag+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448 lt_cv_ld_reload_flag='-r'
12450 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12451 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12452 reload_flag=$lt_cv_ld_reload_flag
12453 case $reload_flag in
12454 "" | " "*) ;;
12455 *) reload_flag=" $reload_flag" ;;
12456 esac
12457 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12458 case $host_os in
12459 darwin*)
12460 if test "$GCC" = yes; then
12461 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12462 else
12463 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12466 esac
12468 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12469 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12470 if test "${lt_cv_deplibs_check_method+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 lt_cv_file_magic_cmd='$MAGIC_CMD'
12474 lt_cv_file_magic_test_file=
12475 lt_cv_deplibs_check_method='unknown'
12476 # Need to set the preceding variable on all platforms that support
12477 # interlibrary dependencies.
12478 # 'none' -- dependencies not supported.
12479 # `unknown' -- same as none, but documents that we really don't know.
12480 # 'pass_all' -- all dependencies passed with no checks.
12481 # 'test_compile' -- check by making test program.
12482 # 'file_magic [[regex]]' -- check by looking for files in library path
12483 # which responds to the $file_magic_cmd with a given extended regex.
12484 # If you have `file' or equivalent on your system and you're not sure
12485 # whether `pass_all' will *always* work, you probably want this one.
12487 case $host_os in
12488 aix4* | aix5*)
12489 lt_cv_deplibs_check_method=pass_all
12492 beos*)
12493 lt_cv_deplibs_check_method=pass_all
12496 bsdi[45]*)
12497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12498 lt_cv_file_magic_cmd='/usr/bin/file -L'
12499 lt_cv_file_magic_test_file=/shlib/libc.so
12502 cygwin*)
12503 # func_win32_libid is a shell function defined in ltmain.sh
12504 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12505 lt_cv_file_magic_cmd='func_win32_libid'
12508 mingw* | pw32*)
12509 # Base MSYS/MinGW do not provide the 'file' command needed by
12510 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12511 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12512 lt_cv_file_magic_cmd='$OBJDUMP -f'
12515 darwin* | rhapsody*)
12516 lt_cv_deplibs_check_method=pass_all
12519 freebsd* | kfreebsd*-gnu | dragonfly*)
12520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12521 case $host_cpu in
12522 i*86 )
12523 # Not sure whether the presence of OpenBSD here was a mistake.
12524 # Let's accept both of them until this is cleared up.
12525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12526 lt_cv_file_magic_cmd=/usr/bin/file
12527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12529 esac
12530 else
12531 lt_cv_deplibs_check_method=pass_all
12535 gnu*)
12536 lt_cv_deplibs_check_method=pass_all
12539 hpux10.20* | hpux11*)
12540 lt_cv_file_magic_cmd=/usr/bin/file
12541 case $host_cpu in
12542 ia64*)
12543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12546 hppa*64*)
12547 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]'
12548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12554 esac
12557 interix3*)
12558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12562 irix5* | irix6* | nonstopux*)
12563 case $LD in
12564 *-32|*"-32 ") libmagic=32-bit;;
12565 *-n32|*"-n32 ") libmagic=N32;;
12566 *-64|*"-64 ") libmagic=64-bit;;
12567 *) libmagic=never-match;;
12568 esac
12569 lt_cv_deplibs_check_method=pass_all
12572 # This must be Linux ELF.
12573 linux*)
12574 lt_cv_deplibs_check_method=pass_all
12577 netbsd*)
12578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12580 else
12581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12585 newos6*)
12586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12587 lt_cv_file_magic_cmd=/usr/bin/file
12588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12591 nto-qnx*)
12592 lt_cv_deplibs_check_method=unknown
12595 openbsd*)
12596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12598 else
12599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12603 osf3* | osf4* | osf5*)
12604 lt_cv_deplibs_check_method=pass_all
12607 solaris*)
12608 lt_cv_deplibs_check_method=pass_all
12611 sysv4 | sysv4.3*)
12612 case $host_vendor in
12613 motorola)
12614 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]'
12615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12617 ncr)
12618 lt_cv_deplibs_check_method=pass_all
12620 sequent)
12621 lt_cv_file_magic_cmd='/bin/file'
12622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12624 sni)
12625 lt_cv_file_magic_cmd='/bin/file'
12626 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12627 lt_cv_file_magic_test_file=/lib/libc.so
12629 siemens)
12630 lt_cv_deplibs_check_method=pass_all
12633 lt_cv_deplibs_check_method=pass_all
12635 esac
12638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12639 lt_cv_deplibs_check_method=pass_all
12641 esac
12644 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12645 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12646 file_magic_cmd=$lt_cv_file_magic_cmd
12647 deplibs_check_method=$lt_cv_deplibs_check_method
12648 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12652 # If no C compiler was specified, use CC.
12653 LTCC=${LTCC-"$CC"}
12655 # If no C compiler flags were specified, use CFLAGS.
12656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12658 # Allow CC to be a program name with arguments.
12659 compiler=$CC
12661 # Check whether --enable-libtool-lock was given.
12662 if test "${enable_libtool_lock+set}" = set; then
12663 enableval=$enable_libtool_lock;
12666 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12668 # Some flags need to be propagated to the compiler or linker for good
12669 # libtool support.
12670 case $host in
12671 ia64-*-hpux*)
12672 # Find out which ABI we are using.
12673 echo 'int i;' > conftest.$ac_ext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; then
12679 case `/usr/bin/file conftest.$ac_objext` in
12680 *ELF-32*)
12681 HPUX_IA64_MODE="32"
12683 *ELF-64*)
12684 HPUX_IA64_MODE="64"
12686 esac
12688 rm -rf conftest*
12690 *-*-irix6*)
12691 # Find out which ABI we are using.
12692 echo '#line 12692 "configure"' > conftest.$ac_ext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694 (eval $ac_compile) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; then
12698 if test "$lt_cv_prog_gnu_ld" = yes; then
12699 case `/usr/bin/file conftest.$ac_objext` in
12700 *32-bit*)
12701 LD="${LD-ld} -melf32bsmip"
12703 *N32*)
12704 LD="${LD-ld} -melf32bmipn32"
12706 *64-bit*)
12707 LD="${LD-ld} -melf64bmip"
12709 esac
12710 else
12711 case `/usr/bin/file conftest.$ac_objext` in
12712 *32-bit*)
12713 LD="${LD-ld} -32"
12715 *N32*)
12716 LD="${LD-ld} -n32"
12718 *64-bit*)
12719 LD="${LD-ld} -64"
12721 esac
12724 rm -rf conftest*
12727 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12728 # Find out which ABI we are using.
12729 echo 'int i;' > conftest.$ac_ext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; then
12735 case `/usr/bin/file conftest.o` in
12736 *32-bit*)
12737 case $host in
12738 x86_64-*linux*)
12739 LD="${LD-ld} -m elf_i386"
12741 ppc64-*linux*|powerpc64-*linux*)
12742 LD="${LD-ld} -m elf32ppclinux"
12744 s390x-*linux*)
12745 LD="${LD-ld} -m elf_s390"
12747 sparc64-*linux*)
12748 LD="${LD-ld} -m elf32_sparc"
12750 esac
12752 *64-bit*)
12753 case $host in
12754 x86_64-*linux*)
12755 LD="${LD-ld} -m elf_x86_64"
12757 ppc*-*linux*|powerpc*-*linux*)
12758 LD="${LD-ld} -m elf64ppc"
12760 s390*-*linux*)
12761 LD="${LD-ld} -m elf64_s390"
12763 sparc*-*linux*)
12764 LD="${LD-ld} -m elf64_sparc"
12766 esac
12768 esac
12770 rm -rf conftest*
12773 *-*-sco3.2v5*)
12774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12775 SAVE_CFLAGS="$CFLAGS"
12776 CFLAGS="$CFLAGS -belf"
12777 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12778 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12779 if test "${lt_cv_cc_needs_belf+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 ac_ext=c
12783 ac_cpp='$CPP $CPPFLAGS'
12784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12788 cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h. */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12796 main ()
12800 return 0;
12802 _ACEOF
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (ac_try="$ac_link"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12818 { (case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_try") 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 lt_cv_cc_needs_belf=yes
12838 else
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 lt_cv_cc_needs_belf=no
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 ac_ext=c
12848 ac_cpp='$CPP $CPPFLAGS'
12849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12854 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12855 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12856 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12858 CFLAGS="$SAVE_CFLAGS"
12861 sparc*-*solaris*)
12862 # Find out which ABI we are using.
12863 echo 'int i;' > conftest.$ac_ext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; then
12869 case `/usr/bin/file conftest.o` in
12870 *64-bit*)
12871 case $lt_cv_prog_gnu_ld in
12872 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12873 *) LD="${LD-ld} -64" ;;
12874 esac
12876 esac
12878 rm -rf conftest*
12882 esac
12884 need_locks="$enable_libtool_lock"
12889 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12890 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12891 (test "X$CXX" != "Xg++"))) ; then
12892 ac_ext=cpp
12893 ac_cpp='$CXXCPP $CPPFLAGS'
12894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12897 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12898 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12899 if test -z "$CXXCPP"; then
12900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903 # Double quotes because CXXCPP needs to be expanded
12904 for CXXCPP in "$CXX -E" "/lib/cpp"
12906 ac_preproc_ok=false
12907 for ac_cxx_preproc_warn_flag in '' yes
12909 # Use a header file that comes with gcc, so configuring glibc
12910 # with a fresh cross-compiler works.
12911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912 # <limits.h> exists even on freestanding compilers.
12913 # On the NeXT, cc -E runs the code through the compiler's parser,
12914 # not just through cpp. "Syntax error" is here to catch this case.
12915 cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h. */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 #ifdef __STDC__
12922 # include <limits.h>
12923 #else
12924 # include <assert.h>
12925 #endif
12926 Syntax error
12927 _ACEOF
12928 if { (ac_try="$ac_cpp conftest.$ac_ext"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null; then
12941 if test -s conftest.err; then
12942 ac_cpp_err=$ac_cxx_preproc_warn_flag
12943 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12944 else
12945 ac_cpp_err=
12947 else
12948 ac_cpp_err=yes
12950 if test -z "$ac_cpp_err"; then
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12956 # Broken: fails on valid input.
12957 continue
12960 rm -f conftest.err conftest.$ac_ext
12962 # OK, works on sane cases. Now check whether nonexistent headers
12963 # can be detected and how.
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h. */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <ac_nonexistent.h>
12971 _ACEOF
12972 if { (ac_try="$ac_cpp conftest.$ac_ext"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976 esac
12977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } >/dev/null; then
12985 if test -s conftest.err; then
12986 ac_cpp_err=$ac_cxx_preproc_warn_flag
12987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12988 else
12989 ac_cpp_err=
12991 else
12992 ac_cpp_err=yes
12994 if test -z "$ac_cpp_err"; then
12995 # Broken: success on invalid input.
12996 continue
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 # Passes both tests.
13002 ac_preproc_ok=:
13003 break
13006 rm -f conftest.err conftest.$ac_ext
13008 done
13009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13010 rm -f conftest.err conftest.$ac_ext
13011 if $ac_preproc_ok; then
13012 break
13015 done
13016 ac_cv_prog_CXXCPP=$CXXCPP
13019 CXXCPP=$ac_cv_prog_CXXCPP
13020 else
13021 ac_cv_prog_CXXCPP=$CXXCPP
13023 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13024 echo "${ECHO_T}$CXXCPP" >&6; }
13025 ac_preproc_ok=false
13026 for ac_cxx_preproc_warn_flag in '' yes
13028 # Use a header file that comes with gcc, so configuring glibc
13029 # with a fresh cross-compiler works.
13030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13031 # <limits.h> exists even on freestanding compilers.
13032 # On the NeXT, cc -E runs the code through the compiler's parser,
13033 # not just through cpp. "Syntax error" is here to catch this case.
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 #ifdef __STDC__
13041 # include <limits.h>
13042 #else
13043 # include <assert.h>
13044 #endif
13045 Syntax error
13046 _ACEOF
13047 if { (ac_try="$ac_cpp conftest.$ac_ext"
13048 case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } >/dev/null; then
13060 if test -s conftest.err; then
13061 ac_cpp_err=$ac_cxx_preproc_warn_flag
13062 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13063 else
13064 ac_cpp_err=
13066 else
13067 ac_cpp_err=yes
13069 if test -z "$ac_cpp_err"; then
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 # Broken: fails on valid input.
13076 continue
13079 rm -f conftest.err conftest.$ac_ext
13081 # OK, works on sane cases. Now check whether nonexistent headers
13082 # can be detected and how.
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 #include <ac_nonexistent.h>
13090 _ACEOF
13091 if { (ac_try="$ac_cpp conftest.$ac_ext"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } >/dev/null; then
13104 if test -s conftest.err; then
13105 ac_cpp_err=$ac_cxx_preproc_warn_flag
13106 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13107 else
13108 ac_cpp_err=
13110 else
13111 ac_cpp_err=yes
13113 if test -z "$ac_cpp_err"; then
13114 # Broken: success on invalid input.
13115 continue
13116 else
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 # Passes both tests.
13121 ac_preproc_ok=:
13122 break
13125 rm -f conftest.err conftest.$ac_ext
13127 done
13128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13129 rm -f conftest.err conftest.$ac_ext
13130 if $ac_preproc_ok; then
13132 else
13133 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13134 See \`config.log' for more details." >&5
13135 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13136 See \`config.log' for more details." >&2;}
13137 { (exit 1); exit 1; }; }
13140 ac_ext=cpp
13141 ac_cpp='$CXXCPP $CPPFLAGS'
13142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13149 ac_ext=f
13150 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13151 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13153 if test -n "$ac_tool_prefix"; then
13154 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
13156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13160 if test "${ac_cv_prog_F77+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163 if test -n "$F77"; then
13164 ac_cv_prog_F77="$F77" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13173 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13177 done
13178 done
13179 IFS=$as_save_IFS
13183 F77=$ac_cv_prog_F77
13184 if test -n "$F77"; then
13185 { echo "$as_me:$LINENO: result: $F77" >&5
13186 echo "${ECHO_T}$F77" >&6; }
13187 else
13188 { echo "$as_me:$LINENO: result: no" >&5
13189 echo "${ECHO_T}no" >&6; }
13193 test -n "$F77" && break
13194 done
13196 if test -z "$F77"; then
13197 ac_ct_F77=$F77
13198 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
13200 # Extract the first word of "$ac_prog", so it can be a program name with args.
13201 set dummy $ac_prog; ac_word=$2
13202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13204 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 if test -n "$ac_ct_F77"; then
13208 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13209 else
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13217 ac_cv_prog_ac_ct_F77="$ac_prog"
13218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13221 done
13222 done
13223 IFS=$as_save_IFS
13227 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13228 if test -n "$ac_ct_F77"; then
13229 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13230 echo "${ECHO_T}$ac_ct_F77" >&6; }
13231 else
13232 { echo "$as_me:$LINENO: result: no" >&5
13233 echo "${ECHO_T}no" >&6; }
13237 test -n "$ac_ct_F77" && break
13238 done
13240 if test "x$ac_ct_F77" = x; then
13241 F77=""
13242 else
13243 case $cross_compiling:$ac_tool_warned in
13244 yes:)
13245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13246 whose name does not start with the host triplet. If you think this
13247 configuration is useful to you, please write to autoconf@gnu.org." >&5
13248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13249 whose name does not start with the host triplet. If you think this
13250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13251 ac_tool_warned=yes ;;
13252 esac
13253 F77=$ac_ct_F77
13258 # Provide some information about the compiler.
13259 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13260 ac_compiler=`set X $ac_compile; echo $2`
13261 { (ac_try="$ac_compiler --version >&5"
13262 case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_compiler --version >&5") 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }
13271 { (ac_try="$ac_compiler -v >&5"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compiler -v >&5") 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }
13281 { (ac_try="$ac_compiler -V >&5"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_compiler -V >&5") 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }
13291 rm -f a.out
13293 # If we don't use `.F' as extension, the preprocessor is not run on the
13294 # input file. (Note that this only needs to work for GNU compilers.)
13295 ac_save_ext=$ac_ext
13296 ac_ext=F
13297 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13298 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13299 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302 cat >conftest.$ac_ext <<_ACEOF
13303 program main
13304 #ifndef __GNUC__
13305 choke me
13306 #endif
13309 _ACEOF
13310 rm -f conftest.$ac_objext
13311 if { (ac_try="$ac_compile"
13312 case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest.$ac_objext'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_compiler_gnu=yes
13345 else
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_compiler_gnu=no
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13356 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13357 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13358 ac_ext=$ac_save_ext
13359 ac_test_FFLAGS=${FFLAGS+set}
13360 ac_save_FFLAGS=$FFLAGS
13361 FFLAGS=
13362 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13363 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13364 if test "${ac_cv_prog_f77_g+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367 FFLAGS=-g
13368 cat >conftest.$ac_ext <<_ACEOF
13369 program main
13372 _ACEOF
13373 rm -f conftest.$ac_objext
13374 if { (ac_try="$ac_compile"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378 esac
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_compile") 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_prog_f77_g=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_prog_f77_g=no
13415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13419 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13420 if test "$ac_test_FFLAGS" = set; then
13421 FFLAGS=$ac_save_FFLAGS
13422 elif test $ac_cv_prog_f77_g = yes; then
13423 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13424 FFLAGS="-g -O2"
13425 else
13426 FFLAGS="-g"
13428 else
13429 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13430 FFLAGS="-O2"
13431 else
13432 FFLAGS=
13436 G77=`test $ac_compiler_gnu = yes && echo yes`
13437 ac_ext=c
13438 ac_cpp='$CPP $CPPFLAGS'
13439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13445 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13447 # find the maximum length of command line arguments
13448 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13449 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13450 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13454 teststring="ABCD"
13456 case $build_os in
13457 msdosdjgpp*)
13458 # On DJGPP, this test can blow up pretty badly due to problems in libc
13459 # (any single argument exceeding 2000 bytes causes a buffer overrun
13460 # during glob expansion). Even if it were fixed, the result of this
13461 # check would be larger than it should be.
13462 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13465 gnu*)
13466 # Under GNU Hurd, this test is not required because there is
13467 # no limit to the length of command line arguments.
13468 # Libtool will interpret -1 as no limit whatsoever
13469 lt_cv_sys_max_cmd_len=-1;
13472 cygwin* | mingw*)
13473 # On Win9x/ME, this test blows up -- it succeeds, but takes
13474 # about 5 minutes as the teststring grows exponentially.
13475 # Worse, since 9x/ME are not pre-emptively multitasking,
13476 # you end up with a "frozen" computer, even though with patience
13477 # the test eventually succeeds (with a max line length of 256k).
13478 # Instead, let's just punt: use the minimum linelength reported by
13479 # all of the supported platforms: 8192 (on NT/2K/XP).
13480 lt_cv_sys_max_cmd_len=8192;
13483 amigaos*)
13484 # On AmigaOS with pdksh, this test takes hours, literally.
13485 # So we just punt and use a minimum line length of 8192.
13486 lt_cv_sys_max_cmd_len=8192;
13489 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13490 # This has been around since 386BSD, at least. Likely further.
13491 if test -x /sbin/sysctl; then
13492 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13493 elif test -x /usr/sbin/sysctl; then
13494 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13495 else
13496 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13498 # And add a safety zone
13499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13503 interix*)
13504 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13505 lt_cv_sys_max_cmd_len=196608
13508 osf*)
13509 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13510 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13511 # nice to cause kernel panics so lets avoid the loop below.
13512 # First set a reasonable default.
13513 lt_cv_sys_max_cmd_len=16384
13515 if test -x /sbin/sysconfig; then
13516 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13517 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13518 esac
13521 sco3.2v5*)
13522 lt_cv_sys_max_cmd_len=102400
13524 sysv5* | sco5v6* | sysv4.2uw2*)
13525 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13526 if test -n "$kargmax"; then
13527 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13528 else
13529 lt_cv_sys_max_cmd_len=32768
13533 # If test is not a shell built-in, we'll probably end up computing a
13534 # maximum length that is only half of the actual maximum length, but
13535 # we can't tell.
13536 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13537 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13538 = "XX$teststring") >/dev/null 2>&1 &&
13539 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13540 lt_cv_sys_max_cmd_len=$new_result &&
13541 test $i != 17 # 1/2 MB should be enough
13543 i=`expr $i + 1`
13544 teststring=$teststring$teststring
13545 done
13546 teststring=
13547 # Add a significant safety factor because C++ compilers can tack on massive
13548 # amounts of additional arguments before passing them to the linker.
13549 # It appears as though 1/2 is a usable value.
13550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13552 esac
13556 if test -n $lt_cv_sys_max_cmd_len ; then
13557 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13558 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13559 else
13560 { echo "$as_me:$LINENO: result: none" >&5
13561 echo "${ECHO_T}none" >&6; }
13567 # Check for command to grab the raw symbol name followed by C symbol from nm.
13568 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13569 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13570 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13574 # These are sane defaults that work on at least a few old systems.
13575 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13577 # Character class describing NM global symbol codes.
13578 symcode='[BCDEGRST]'
13580 # Regexp to match symbols that can be accessed directly from C.
13581 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13583 # Transform an extracted symbol line into a proper C declaration
13584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13586 # Transform an extracted symbol line into symbol name and symbol address
13587 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'"
13589 # Define system-specific variables.
13590 case $host_os in
13591 aix*)
13592 symcode='[BCDT]'
13594 cygwin* | mingw* | pw32*)
13595 symcode='[ABCDGISTW]'
13597 hpux*) # Its linker distinguishes data from code symbols
13598 if test "$host_cpu" = ia64; then
13599 symcode='[ABCDEGRST]'
13601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13602 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'"
13604 linux*)
13605 if test "$host_cpu" = ia64; then
13606 symcode='[ABCDGIRSTW]'
13607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13608 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'"
13611 irix* | nonstopux*)
13612 symcode='[BCDEGRST]'
13614 osf*)
13615 symcode='[BCDEGQRST]'
13617 solaris*)
13618 symcode='[BDRT]'
13620 sco3.2v5*)
13621 symcode='[DT]'
13623 sysv4.2uw2*)
13624 symcode='[DT]'
13626 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13627 symcode='[ABDT]'
13629 sysv4)
13630 symcode='[DFNSTU]'
13632 esac
13634 # Handle CRLF in mingw tool chain
13635 opt_cr=
13636 case $build_os in
13637 mingw*)
13638 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13640 esac
13642 # If we're using GNU nm, then use its standard symbol codes.
13643 case `$NM -V 2>&1` in
13644 *GNU* | *'with BFD'*)
13645 symcode='[ABCDGIRSTW]' ;;
13646 esac
13648 # Try without a prefix undercore, then with it.
13649 for ac_symprfx in "" "_"; do
13651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13652 symxfrm="\\1 $ac_symprfx\\2 \\2"
13654 # Write the raw and C identifiers.
13655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13657 # Check to see that the pipe works correctly.
13658 pipe_works=no
13660 rm -f conftest*
13661 cat > conftest.$ac_ext <<EOF
13662 #ifdef __cplusplus
13663 extern "C" {
13664 #endif
13665 char nm_test_var;
13666 void nm_test_func(){}
13667 #ifdef __cplusplus
13669 #endif
13670 int main(){nm_test_var='a';nm_test_func();return(0);}
13673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13674 (eval $ac_compile) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; then
13678 # Now try to grab the symbols.
13679 nlist=conftest.nm
13680 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13681 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && test -s "$nlist"; then
13685 # Try sorting and uniquifying the output.
13686 if sort "$nlist" | uniq > "$nlist"T; then
13687 mv -f "$nlist"T "$nlist"
13688 else
13689 rm -f "$nlist"T
13692 # Make sure that we snagged all the symbols we need.
13693 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13694 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13695 cat <<EOF > conftest.$ac_ext
13696 #ifdef __cplusplus
13697 extern "C" {
13698 #endif
13701 # Now generate the symbol file.
13702 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13704 cat <<EOF >> conftest.$ac_ext
13705 #if defined (__STDC__) && __STDC__
13706 # define lt_ptr_t void *
13707 #else
13708 # define lt_ptr_t char *
13709 # define const
13710 #endif
13712 /* The mapping between symbol names and symbols. */
13713 const struct {
13714 const char *name;
13715 lt_ptr_t address;
13717 lt_preloaded_symbols[] =
13720 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13721 cat <<\EOF >> conftest.$ac_ext
13722 {0, (lt_ptr_t) 0}
13725 #ifdef __cplusplus
13727 #endif
13729 # Now try linking the two files.
13730 mv conftest.$ac_objext conftstm.$ac_objext
13731 lt_save_LIBS="$LIBS"
13732 lt_save_CFLAGS="$CFLAGS"
13733 LIBS="conftstm.$ac_objext"
13734 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13740 pipe_works=yes
13742 LIBS="$lt_save_LIBS"
13743 CFLAGS="$lt_save_CFLAGS"
13744 else
13745 echo "cannot find nm_test_func in $nlist" >&5
13747 else
13748 echo "cannot find nm_test_var in $nlist" >&5
13750 else
13751 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13753 else
13754 echo "$progname: failed program was:" >&5
13755 cat conftest.$ac_ext >&5
13757 rm -f conftest* conftst*
13759 # Do not use the global_symbol_pipe unless it works.
13760 if test "$pipe_works" = yes; then
13761 break
13762 else
13763 lt_cv_sys_global_symbol_pipe=
13765 done
13769 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13770 lt_cv_sys_global_symbol_to_cdecl=
13772 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13773 { echo "$as_me:$LINENO: result: failed" >&5
13774 echo "${ECHO_T}failed" >&6; }
13775 else
13776 { echo "$as_me:$LINENO: result: ok" >&5
13777 echo "${ECHO_T}ok" >&6; }
13780 { echo "$as_me:$LINENO: checking for objdir" >&5
13781 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13782 if test "${lt_cv_objdir+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 rm -f .libs 2>/dev/null
13786 mkdir .libs 2>/dev/null
13787 if test -d .libs; then
13788 lt_cv_objdir=.libs
13789 else
13790 # MS-DOS does not allow filenames that begin with a dot.
13791 lt_cv_objdir=_libs
13793 rmdir .libs 2>/dev/null
13795 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13796 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13797 objdir=$lt_cv_objdir
13803 case $host_os in
13804 aix3*)
13805 # AIX sometimes has problems with the GCC collect2 program. For some
13806 # reason, if we set the COLLECT_NAMES environment variable, the problems
13807 # vanish in a puff of smoke.
13808 if test "X${COLLECT_NAMES+set}" != Xset; then
13809 COLLECT_NAMES=
13810 export COLLECT_NAMES
13813 esac
13815 # Sed substitution that helps us do robust quoting. It backslashifies
13816 # metacharacters that are still active within double-quoted strings.
13817 Xsed='sed -e 1s/^X//'
13818 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13820 # Same as above, but do not quote variable references.
13821 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13823 # Sed substitution to delay expansion of an escaped shell variable in a
13824 # double_quote_subst'ed string.
13825 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13827 # Sed substitution to avoid accidental globbing in evaled expressions
13828 no_glob_subst='s/\*/\\\*/g'
13830 # Constants:
13831 rm="rm -f"
13833 # Global variables:
13834 default_ofile=mklib
13835 can_build_shared=yes
13837 # All known linkers require a `.a' archive for static linking (except MSVC,
13838 # which needs '.lib').
13839 libext=a
13840 ltmain="$ac_aux_dir/ltmain.sh"
13841 ofile="$default_ofile"
13842 with_gnu_ld="$lt_cv_prog_gnu_ld"
13844 if test -n "$ac_tool_prefix"; then
13845 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13846 set dummy ${ac_tool_prefix}ar; ac_word=$2
13847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13849 if test "${ac_cv_prog_AR+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 if test -n "$AR"; then
13853 ac_cv_prog_AR="$AR" # Let the user override the test.
13854 else
13855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856 for as_dir in $PATH
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
13861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13862 ac_cv_prog_AR="${ac_tool_prefix}ar"
13863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13864 break 2
13866 done
13867 done
13868 IFS=$as_save_IFS
13872 AR=$ac_cv_prog_AR
13873 if test -n "$AR"; then
13874 { echo "$as_me:$LINENO: result: $AR" >&5
13875 echo "${ECHO_T}$AR" >&6; }
13876 else
13877 { echo "$as_me:$LINENO: result: no" >&5
13878 echo "${ECHO_T}no" >&6; }
13883 if test -z "$ac_cv_prog_AR"; then
13884 ac_ct_AR=$AR
13885 # Extract the first word of "ar", so it can be a program name with args.
13886 set dummy ar; ac_word=$2
13887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13889 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892 if test -n "$ac_ct_AR"; then
13893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13894 else
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13902 ac_cv_prog_ac_ct_AR="ar"
13903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13906 done
13907 done
13908 IFS=$as_save_IFS
13912 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13913 if test -n "$ac_ct_AR"; then
13914 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13915 echo "${ECHO_T}$ac_ct_AR" >&6; }
13916 else
13917 { echo "$as_me:$LINENO: result: no" >&5
13918 echo "${ECHO_T}no" >&6; }
13921 if test "x$ac_ct_AR" = x; then
13922 AR="false"
13923 else
13924 case $cross_compiling:$ac_tool_warned in
13925 yes:)
13926 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13927 whose name does not start with the host triplet. If you think this
13928 configuration is useful to you, please write to autoconf@gnu.org." >&5
13929 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13930 whose name does not start with the host triplet. If you think this
13931 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13932 ac_tool_warned=yes ;;
13933 esac
13934 AR=$ac_ct_AR
13936 else
13937 AR="$ac_cv_prog_AR"
13940 if test -n "$ac_tool_prefix"; then
13941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13942 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13945 if test "${ac_cv_prog_RANLIB+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 else
13948 if test -n "$RANLIB"; then
13949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13950 else
13951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952 for as_dir in $PATH
13954 IFS=$as_save_IFS
13955 test -z "$as_dir" && as_dir=.
13956 for ac_exec_ext in '' $ac_executable_extensions; do
13957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13960 break 2
13962 done
13963 done
13964 IFS=$as_save_IFS
13968 RANLIB=$ac_cv_prog_RANLIB
13969 if test -n "$RANLIB"; then
13970 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13971 echo "${ECHO_T}$RANLIB" >&6; }
13972 else
13973 { echo "$as_me:$LINENO: result: no" >&5
13974 echo "${ECHO_T}no" >&6; }
13979 if test -z "$ac_cv_prog_RANLIB"; then
13980 ac_ct_RANLIB=$RANLIB
13981 # Extract the first word of "ranlib", so it can be a program name with args.
13982 set dummy ranlib; ac_word=$2
13983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988 if test -n "$ac_ct_RANLIB"; then
13989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13990 else
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13998 ac_cv_prog_ac_ct_RANLIB="ranlib"
13999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 break 2
14002 done
14003 done
14004 IFS=$as_save_IFS
14008 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14009 if test -n "$ac_ct_RANLIB"; then
14010 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14011 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14012 else
14013 { echo "$as_me:$LINENO: result: no" >&5
14014 echo "${ECHO_T}no" >&6; }
14017 if test "x$ac_ct_RANLIB" = x; then
14018 RANLIB=":"
14019 else
14020 case $cross_compiling:$ac_tool_warned in
14021 yes:)
14022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14023 whose name does not start with the host triplet. If you think this
14024 configuration is useful to you, please write to autoconf@gnu.org." >&5
14025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14026 whose name does not start with the host triplet. If you think this
14027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14028 ac_tool_warned=yes ;;
14029 esac
14030 RANLIB=$ac_ct_RANLIB
14032 else
14033 RANLIB="$ac_cv_prog_RANLIB"
14036 if test -n "$ac_tool_prefix"; then
14037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14038 set dummy ${ac_tool_prefix}strip; ac_word=$2
14039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14041 if test "${ac_cv_prog_STRIP+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 if test -n "$STRIP"; then
14045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14046 else
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14058 done
14059 done
14060 IFS=$as_save_IFS
14064 STRIP=$ac_cv_prog_STRIP
14065 if test -n "$STRIP"; then
14066 { echo "$as_me:$LINENO: result: $STRIP" >&5
14067 echo "${ECHO_T}$STRIP" >&6; }
14068 else
14069 { echo "$as_me:$LINENO: result: no" >&5
14070 echo "${ECHO_T}no" >&6; }
14075 if test -z "$ac_cv_prog_STRIP"; then
14076 ac_ct_STRIP=$STRIP
14077 # Extract the first word of "strip", so it can be a program name with args.
14078 set dummy strip; ac_word=$2
14079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 if test -n "$ac_ct_STRIP"; then
14085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14086 else
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14090 IFS=$as_save_IFS
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
14093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14094 ac_cv_prog_ac_ct_STRIP="strip"
14095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 break 2
14098 done
14099 done
14100 IFS=$as_save_IFS
14104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14105 if test -n "$ac_ct_STRIP"; then
14106 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14107 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14108 else
14109 { echo "$as_me:$LINENO: result: no" >&5
14110 echo "${ECHO_T}no" >&6; }
14113 if test "x$ac_ct_STRIP" = x; then
14114 STRIP=":"
14115 else
14116 case $cross_compiling:$ac_tool_warned in
14117 yes:)
14118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14119 whose name does not start with the host triplet. If you think this
14120 configuration is useful to you, please write to autoconf@gnu.org." >&5
14121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14122 whose name does not start with the host triplet. If you think this
14123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14124 ac_tool_warned=yes ;;
14125 esac
14126 STRIP=$ac_ct_STRIP
14128 else
14129 STRIP="$ac_cv_prog_STRIP"
14133 old_CC="$CC"
14134 old_CFLAGS="$CFLAGS"
14136 # Set sane defaults for various variables
14137 test -z "$AR" && AR=ar
14138 test -z "$AR_FLAGS" && AR_FLAGS=cru
14139 test -z "$AS" && AS=as
14140 test -z "$CC" && CC=cc
14141 test -z "$LTCC" && LTCC=$CC
14142 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14143 test -z "$DLLTOOL" && DLLTOOL=dlltool
14144 test -z "$LD" && LD=ld
14145 test -z "$LN_S" && LN_S="ln -s"
14146 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14147 test -z "$NM" && NM=nm
14148 test -z "$SED" && SED=sed
14149 test -z "$OBJDUMP" && OBJDUMP=objdump
14150 test -z "$RANLIB" && RANLIB=:
14151 test -z "$STRIP" && STRIP=:
14152 test -z "$ac_objext" && ac_objext=o
14154 # Determine commands to create old-style static archives.
14155 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14156 old_postinstall_cmds='chmod 644 $oldlib'
14157 old_postuninstall_cmds=
14159 if test -n "$RANLIB"; then
14160 case $host_os in
14161 openbsd*)
14162 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14165 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14167 esac
14168 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14171 for cc_temp in $compiler""; do
14172 case $cc_temp in
14173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14175 \-*) ;;
14176 *) break;;
14177 esac
14178 done
14179 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14182 # Only perform the check for file, if the check method requires it
14183 case $deplibs_check_method in
14184 file_magic*)
14185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14186 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14187 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191 case $MAGIC_CMD in
14192 [\\/*] | ?:[\\/]*)
14193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14196 lt_save_MAGIC_CMD="$MAGIC_CMD"
14197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14199 for ac_dir in $ac_dummy; do
14200 IFS="$lt_save_ifs"
14201 test -z "$ac_dir" && ac_dir=.
14202 if test -f $ac_dir/${ac_tool_prefix}file; then
14203 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14204 if test -n "$file_magic_test_file"; then
14205 case $deplibs_check_method in
14206 "file_magic "*)
14207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14210 $EGREP "$file_magic_regex" > /dev/null; then
14212 else
14213 cat <<EOF 1>&2
14215 *** Warning: the command libtool uses to detect shared libraries,
14216 *** $file_magic_cmd, produces output that libtool cannot recognize.
14217 *** The result is that libtool may fail to recognize shared libraries
14218 *** as such. This will affect the creation of libtool libraries that
14219 *** depend on shared libraries, but programs linked with such libtool
14220 *** libraries will work regardless of this problem. Nevertheless, you
14221 *** may want to report the problem to your system manager and/or to
14222 *** bug-libtool@gnu.org
14225 fi ;;
14226 esac
14228 break
14230 done
14231 IFS="$lt_save_ifs"
14232 MAGIC_CMD="$lt_save_MAGIC_CMD"
14234 esac
14237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14238 if test -n "$MAGIC_CMD"; then
14239 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14240 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14241 else
14242 { echo "$as_me:$LINENO: result: no" >&5
14243 echo "${ECHO_T}no" >&6; }
14246 if test -z "$lt_cv_path_MAGIC_CMD"; then
14247 if test -n "$ac_tool_prefix"; then
14248 { echo "$as_me:$LINENO: checking for file" >&5
14249 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253 case $MAGIC_CMD in
14254 [\\/*] | ?:[\\/]*)
14255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14258 lt_save_MAGIC_CMD="$MAGIC_CMD"
14259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14261 for ac_dir in $ac_dummy; do
14262 IFS="$lt_save_ifs"
14263 test -z "$ac_dir" && ac_dir=.
14264 if test -f $ac_dir/file; then
14265 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14266 if test -n "$file_magic_test_file"; then
14267 case $deplibs_check_method in
14268 "file_magic "*)
14269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14272 $EGREP "$file_magic_regex" > /dev/null; then
14274 else
14275 cat <<EOF 1>&2
14277 *** Warning: the command libtool uses to detect shared libraries,
14278 *** $file_magic_cmd, produces output that libtool cannot recognize.
14279 *** The result is that libtool may fail to recognize shared libraries
14280 *** as such. This will affect the creation of libtool libraries that
14281 *** depend on shared libraries, but programs linked with such libtool
14282 *** libraries will work regardless of this problem. Nevertheless, you
14283 *** may want to report the problem to your system manager and/or to
14284 *** bug-libtool@gnu.org
14287 fi ;;
14288 esac
14290 break
14292 done
14293 IFS="$lt_save_ifs"
14294 MAGIC_CMD="$lt_save_MAGIC_CMD"
14296 esac
14299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14300 if test -n "$MAGIC_CMD"; then
14301 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14302 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14303 else
14304 { echo "$as_me:$LINENO: result: no" >&5
14305 echo "${ECHO_T}no" >&6; }
14308 else
14309 MAGIC_CMD=:
14315 esac
14317 enable_dlopen=yes
14318 enable_win32_dll=no
14320 # Check whether --enable-libtool-lock was given.
14321 if test "${enable_libtool_lock+set}" = set; then
14322 enableval=$enable_libtool_lock;
14325 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14328 # Check whether --with-pic was given.
14329 if test "${with_pic+set}" = set; then
14330 withval=$with_pic; pic_mode="$withval"
14331 else
14332 pic_mode=default
14335 test -z "$pic_mode" && pic_mode=default
14337 # Use C for the default configuration in the libtool script
14338 tagname=
14339 lt_save_CC="$CC"
14340 ac_ext=c
14341 ac_cpp='$CPP $CPPFLAGS'
14342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14347 # Source file extension for C test sources.
14348 ac_ext=c
14350 # Object file extension for compiled C test sources.
14351 objext=o
14352 objext=$objext
14354 # Code to be used in simple compile tests
14355 lt_simple_compile_test_code="int some_variable = 0;\n"
14357 # Code to be used in simple link tests
14358 lt_simple_link_test_code='int main(){return(0);}\n'
14361 # If no C compiler was specified, use CC.
14362 LTCC=${LTCC-"$CC"}
14364 # If no C compiler flags were specified, use CFLAGS.
14365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14367 # Allow CC to be a program name with arguments.
14368 compiler=$CC
14371 # save warnings/boilerplate of simple test code
14372 ac_outfile=conftest.$ac_objext
14373 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14375 _lt_compiler_boilerplate=`cat conftest.err`
14376 $rm conftest*
14378 ac_outfile=conftest.$ac_objext
14379 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14381 _lt_linker_boilerplate=`cat conftest.err`
14382 $rm conftest*
14386 lt_prog_compiler_no_builtin_flag=
14388 if test "$GCC" = yes; then
14389 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14392 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14393 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14394 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397 lt_cv_prog_compiler_rtti_exceptions=no
14398 ac_outfile=conftest.$ac_objext
14399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14400 lt_compiler_flag="-fno-rtti -fno-exceptions"
14401 # Insert the option either (1) after the last *FLAGS variable, or
14402 # (2) before a word containing "conftest.", or (3) at the end.
14403 # Note that $ac_compile itself does not contain backslashes and begins
14404 # with a dollar sign (not a hyphen), so the echo should work correctly.
14405 # The option is referenced via a variable to avoid confusing sed.
14406 lt_compile=`echo "$ac_compile" | $SED \
14407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14409 -e 's:$: $lt_compiler_flag:'`
14410 (eval echo "\"\$as_me:14410: $lt_compile\"" >&5)
14411 (eval "$lt_compile" 2>conftest.err)
14412 ac_status=$?
14413 cat conftest.err >&5
14414 echo "$as_me:14414: \$? = $ac_status" >&5
14415 if (exit $ac_status) && test -s "$ac_outfile"; then
14416 # The compiler can only warn and ignore the option if not recognized
14417 # So say no if there are warnings other than the usual output.
14418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14421 lt_cv_prog_compiler_rtti_exceptions=yes
14424 $rm conftest*
14427 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14428 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14430 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14431 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14432 else
14438 lt_prog_compiler_wl=
14439 lt_prog_compiler_pic=
14440 lt_prog_compiler_static=
14442 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14443 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14445 if test "$GCC" = yes; then
14446 lt_prog_compiler_wl='-Wl,'
14447 lt_prog_compiler_static='-static'
14449 case $host_os in
14450 aix*)
14451 # All AIX code is PIC.
14452 if test "$host_cpu" = ia64; then
14453 # AIX 5 now supports IA64 processor
14454 lt_prog_compiler_static='-Bstatic'
14458 amigaos*)
14459 # FIXME: we need at least 68020 code to build shared libraries, but
14460 # adding the `-m68020' flag to GCC prevents building anything better,
14461 # like `-m68040'.
14462 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14465 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14466 # PIC is the default for these OSes.
14469 mingw* | pw32* | os2*)
14470 # This hack is so that the source file can tell whether it is being
14471 # built for inclusion in a dll (and should export symbols for example).
14472 lt_prog_compiler_pic='-DDLL_EXPORT'
14475 darwin* | rhapsody*)
14476 # PIC is the default on this platform
14477 # Common symbols not allowed in MH_DYLIB files
14478 lt_prog_compiler_pic='-fno-common'
14481 interix3*)
14482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14483 # Instead, we relocate shared libraries at runtime.
14486 msdosdjgpp*)
14487 # Just because we use GCC doesn't mean we suddenly get shared libraries
14488 # on systems that don't support them.
14489 lt_prog_compiler_can_build_shared=no
14490 enable_shared=no
14493 sysv4*MP*)
14494 if test -d /usr/nec; then
14495 lt_prog_compiler_pic=-Kconform_pic
14499 hpux*)
14500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14501 # not for PA HP-UX.
14502 case $host_cpu in
14503 hppa*64*|ia64*)
14504 # +Z the default
14507 lt_prog_compiler_pic='-fPIC'
14509 esac
14513 lt_prog_compiler_pic='-fPIC'
14515 esac
14516 else
14517 # PORTME Check for flag to pass linker flags through the system compiler.
14518 case $host_os in
14519 aix*)
14520 lt_prog_compiler_wl='-Wl,'
14521 if test "$host_cpu" = ia64; then
14522 # AIX 5 now supports IA64 processor
14523 lt_prog_compiler_static='-Bstatic'
14524 else
14525 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14528 darwin*)
14529 # PIC is the default on this platform
14530 # Common symbols not allowed in MH_DYLIB files
14531 case $cc_basename in
14532 xlc*)
14533 lt_prog_compiler_pic='-qnocommon'
14534 lt_prog_compiler_wl='-Wl,'
14536 esac
14539 mingw* | pw32* | os2*)
14540 # This hack is so that the source file can tell whether it is being
14541 # built for inclusion in a dll (and should export symbols for example).
14542 lt_prog_compiler_pic='-DDLL_EXPORT'
14545 hpux9* | hpux10* | hpux11*)
14546 lt_prog_compiler_wl='-Wl,'
14547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14548 # not for PA HP-UX.
14549 case $host_cpu in
14550 hppa*64*|ia64*)
14551 # +Z the default
14554 lt_prog_compiler_pic='+Z'
14556 esac
14557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14558 lt_prog_compiler_static='${wl}-a ${wl}archive'
14561 irix5* | irix6* | nonstopux*)
14562 lt_prog_compiler_wl='-Wl,'
14563 # PIC (with -KPIC) is the default.
14564 lt_prog_compiler_static='-non_shared'
14567 newsos6)
14568 lt_prog_compiler_pic='-KPIC'
14569 lt_prog_compiler_static='-Bstatic'
14572 linux*)
14573 case $cc_basename in
14574 icc* | ecc*)
14575 lt_prog_compiler_wl='-Wl,'
14576 lt_prog_compiler_pic='-KPIC'
14577 lt_prog_compiler_static='-static'
14579 pgcc* | pgf77* | pgf90* | pgf95*)
14580 # Portland Group compilers (*not* the Pentium gcc compiler,
14581 # which looks to be a dead project)
14582 lt_prog_compiler_wl='-Wl,'
14583 lt_prog_compiler_pic='-fpic'
14584 lt_prog_compiler_static='-Bstatic'
14586 ccc*)
14587 lt_prog_compiler_wl='-Wl,'
14588 # All Alpha code is PIC.
14589 lt_prog_compiler_static='-non_shared'
14591 esac
14594 osf3* | osf4* | osf5*)
14595 lt_prog_compiler_wl='-Wl,'
14596 # All OSF/1 code is PIC.
14597 lt_prog_compiler_static='-non_shared'
14600 solaris*)
14601 lt_prog_compiler_pic='-KPIC'
14602 lt_prog_compiler_static='-Bstatic'
14603 case $cc_basename in
14604 f77* | f90* | f95*)
14605 lt_prog_compiler_wl='-Qoption ld ';;
14607 lt_prog_compiler_wl='-Wl,';;
14608 esac
14611 sunos4*)
14612 lt_prog_compiler_wl='-Qoption ld '
14613 lt_prog_compiler_pic='-PIC'
14614 lt_prog_compiler_static='-Bstatic'
14617 sysv4 | sysv4.2uw2* | sysv4.3*)
14618 lt_prog_compiler_wl='-Wl,'
14619 lt_prog_compiler_pic='-KPIC'
14620 lt_prog_compiler_static='-Bstatic'
14623 sysv4*MP*)
14624 if test -d /usr/nec ;then
14625 lt_prog_compiler_pic='-Kconform_pic'
14626 lt_prog_compiler_static='-Bstatic'
14630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14631 lt_prog_compiler_wl='-Wl,'
14632 lt_prog_compiler_pic='-KPIC'
14633 lt_prog_compiler_static='-Bstatic'
14636 unicos*)
14637 lt_prog_compiler_wl='-Wl,'
14638 lt_prog_compiler_can_build_shared=no
14641 uts4*)
14642 lt_prog_compiler_pic='-pic'
14643 lt_prog_compiler_static='-Bstatic'
14647 lt_prog_compiler_can_build_shared=no
14649 esac
14652 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14653 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14656 # Check to make sure the PIC flag actually works.
14658 if test -n "$lt_prog_compiler_pic"; then
14660 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14661 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14662 if test "${lt_prog_compiler_pic_works+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665 lt_prog_compiler_pic_works=no
14666 ac_outfile=conftest.$ac_objext
14667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14668 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14669 # Insert the option either (1) after the last *FLAGS variable, or
14670 # (2) before a word containing "conftest.", or (3) at the end.
14671 # Note that $ac_compile itself does not contain backslashes and begins
14672 # with a dollar sign (not a hyphen), so the echo should work correctly.
14673 # The option is referenced via a variable to avoid confusing sed.
14674 lt_compile=`echo "$ac_compile" | $SED \
14675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14677 -e 's:$: $lt_compiler_flag:'`
14678 (eval echo "\"\$as_me:14678: $lt_compile\"" >&5)
14679 (eval "$lt_compile" 2>conftest.err)
14680 ac_status=$?
14681 cat conftest.err >&5
14682 echo "$as_me:14682: \$? = $ac_status" >&5
14683 if (exit $ac_status) && test -s "$ac_outfile"; then
14684 # The compiler can only warn and ignore the option if not recognized
14685 # So say no if there are warnings other than the usual output.
14686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14689 lt_prog_compiler_pic_works=yes
14692 $rm conftest*
14695 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14696 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14698 if test x"$lt_prog_compiler_pic_works" = xyes; then
14699 case $lt_prog_compiler_pic in
14700 "" | " "*) ;;
14701 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14702 esac
14703 else
14704 lt_prog_compiler_pic=
14705 lt_prog_compiler_can_build_shared=no
14709 case $host_os in
14710 # For platforms which do not support PIC, -DPIC is meaningless:
14711 *djgpp*)
14712 lt_prog_compiler_pic=
14715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14717 esac
14720 # Check to make sure the static flag actually works.
14722 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14723 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14724 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14725 if test "${lt_prog_compiler_static_works+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728 lt_prog_compiler_static_works=no
14729 save_LDFLAGS="$LDFLAGS"
14730 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14731 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14733 # The linker can only warn and ignore the option if not recognized
14734 # So say no if there are warnings
14735 if test -s conftest.err; then
14736 # Append any errors to the config.log.
14737 cat conftest.err 1>&5
14738 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14740 if diff conftest.exp conftest.er2 >/dev/null; then
14741 lt_prog_compiler_static_works=yes
14743 else
14744 lt_prog_compiler_static_works=yes
14747 $rm conftest*
14748 LDFLAGS="$save_LDFLAGS"
14751 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14752 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14754 if test x"$lt_prog_compiler_static_works" = xyes; then
14756 else
14757 lt_prog_compiler_static=
14761 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14762 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14763 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766 lt_cv_prog_compiler_c_o=no
14767 $rm -r conftest 2>/dev/null
14768 mkdir conftest
14769 cd conftest
14770 mkdir out
14771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14773 lt_compiler_flag="-o out/conftest2.$ac_objext"
14774 # Insert the option either (1) after the last *FLAGS variable, or
14775 # (2) before a word containing "conftest.", or (3) at the end.
14776 # Note that $ac_compile itself does not contain backslashes and begins
14777 # with a dollar sign (not a hyphen), so the echo should work correctly.
14778 lt_compile=`echo "$ac_compile" | $SED \
14779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14781 -e 's:$: $lt_compiler_flag:'`
14782 (eval echo "\"\$as_me:14782: $lt_compile\"" >&5)
14783 (eval "$lt_compile" 2>out/conftest.err)
14784 ac_status=$?
14785 cat out/conftest.err >&5
14786 echo "$as_me:14786: \$? = $ac_status" >&5
14787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14788 then
14789 # The compiler can only warn and ignore the option if not recognized
14790 # So say no if there are warnings
14791 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14794 lt_cv_prog_compiler_c_o=yes
14797 chmod u+w . 2>&5
14798 $rm conftest*
14799 # SGI C++ compiler will create directory out/ii_files/ for
14800 # template instantiation
14801 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14802 $rm out/* && rmdir out
14803 cd ..
14804 rmdir conftest
14805 $rm conftest*
14808 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14809 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14812 hard_links="nottested"
14813 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14814 # do not overwrite the value of need_locks provided by the user
14815 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14816 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14817 hard_links=yes
14818 $rm conftest*
14819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820 touch conftest.a
14821 ln conftest.a conftest.b 2>&5 || hard_links=no
14822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14823 { echo "$as_me:$LINENO: result: $hard_links" >&5
14824 echo "${ECHO_T}$hard_links" >&6; }
14825 if test "$hard_links" = no; then
14826 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14827 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14828 need_locks=warn
14830 else
14831 need_locks=no
14834 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14837 runpath_var=
14838 allow_undefined_flag=
14839 enable_shared_with_static_runtimes=no
14840 archive_cmds=
14841 archive_expsym_cmds=
14842 old_archive_From_new_cmds=
14843 old_archive_from_expsyms_cmds=
14844 export_dynamic_flag_spec=
14845 whole_archive_flag_spec=
14846 thread_safe_flag_spec=
14847 hardcode_libdir_flag_spec=
14848 hardcode_libdir_flag_spec_ld=
14849 hardcode_libdir_separator=
14850 hardcode_direct=no
14851 hardcode_minus_L=no
14852 hardcode_shlibpath_var=unsupported
14853 link_all_deplibs=unknown
14854 hardcode_automatic=no
14855 module_cmds=
14856 module_expsym_cmds=
14857 always_export_symbols=no
14858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14859 # include_expsyms should be a list of space-separated symbols to be *always*
14860 # included in the symbol list
14861 include_expsyms=
14862 # exclude_expsyms can be an extended regexp of symbols to exclude
14863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14865 # as well as any symbol that contains `d'.
14866 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14868 # platforms (ab)use it in PIC code, but their linkers get confused if
14869 # the symbol is explicitly referenced. Since portable code cannot
14870 # rely on this symbol name, it's probably fine to never include it in
14871 # preloaded symbol tables.
14872 extract_expsyms_cmds=
14873 # Just being paranoid about ensuring that cc_basename is set.
14874 for cc_temp in $compiler""; do
14875 case $cc_temp in
14876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14878 \-*) ;;
14879 *) break;;
14880 esac
14881 done
14882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14884 case $host_os in
14885 cygwin* | mingw* | pw32*)
14886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14887 # When not using gcc, we currently assume that we are using
14888 # Microsoft Visual C++.
14889 if test "$GCC" != yes; then
14890 with_gnu_ld=no
14893 interix*)
14894 # we just hope/assume this is gcc and not c89 (= MSVC++)
14895 with_gnu_ld=yes
14897 openbsd*)
14898 with_gnu_ld=no
14900 esac
14902 ld_shlibs=yes
14903 if test "$with_gnu_ld" = yes; then
14904 # If archive_cmds runs LD, not CC, wlarc should be empty
14905 wlarc='${wl}'
14907 # Set some defaults for GNU ld with shared library support. These
14908 # are reset later if shared libraries are not supported. Putting them
14909 # here allows them to be overridden if necessary.
14910 runpath_var=LD_RUN_PATH
14911 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14912 export_dynamic_flag_spec='${wl}--export-dynamic'
14913 # ancient GNU ld didn't support --whole-archive et. al.
14914 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14915 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14916 else
14917 whole_archive_flag_spec=
14919 supports_anon_versioning=no
14920 case `$LD -v 2>/dev/null` in
14921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14924 *\ 2.11.*) ;; # other 2.11 versions
14925 *) supports_anon_versioning=yes ;;
14926 esac
14928 # See if GNU ld supports shared libraries.
14929 case $host_os in
14930 aix3* | aix4* | aix5*)
14931 # On AIX/PPC, the GNU linker is very broken
14932 if test "$host_cpu" != ia64; then
14933 ld_shlibs=no
14934 cat <<EOF 1>&2
14936 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14937 *** to be unable to reliably create shared libraries on AIX.
14938 *** Therefore, libtool is disabling shared libraries support. If you
14939 *** really care for shared libraries, you may want to modify your PATH
14940 *** so that a non-GNU linker is found, and then restart.
14946 amigaos*)
14947 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)'
14948 hardcode_libdir_flag_spec='-L$libdir'
14949 hardcode_minus_L=yes
14951 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14952 # that the semantics of dynamic libraries on AmigaOS, at least up
14953 # to version 4, is to share data among multiple programs linked
14954 # with the same dynamic library. Since this doesn't match the
14955 # behavior of shared libraries on other platforms, we can't use
14956 # them.
14957 ld_shlibs=no
14960 beos*)
14961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14962 allow_undefined_flag=unsupported
14963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14964 # support --undefined. This deserves some investigation. FIXME
14965 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 else
14967 ld_shlibs=no
14971 cygwin* | mingw* | pw32*)
14972 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14973 # as there is no search path for DLLs.
14974 hardcode_libdir_flag_spec='-L$libdir'
14975 allow_undefined_flag=unsupported
14976 always_export_symbols=no
14977 enable_shared_with_static_runtimes=yes
14978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14980 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14982 # If the export-symbols file already is a .def file (1st line
14983 # is EXPORTS), use it as is; otherwise, prepend...
14984 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14985 cp $export_symbols $output_objdir/$soname.def;
14986 else
14987 echo EXPORTS > $output_objdir/$soname.def;
14988 cat $export_symbols >> $output_objdir/$soname.def;
14990 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14991 else
14992 ld_shlibs=no
14996 interix3*)
14997 hardcode_direct=no
14998 hardcode_shlibpath_var=no
14999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15000 export_dynamic_flag_spec='${wl}-E'
15001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15002 # Instead, shared libraries are loaded at an image base (0x10000000 by
15003 # default) and relocated if they conflict, which is a slow very memory
15004 # consuming and fragmenting process. To avoid this, we pick a random,
15005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15008 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'
15011 linux*)
15012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15013 tmp_addflag=
15014 case $cc_basename,$host_cpu in
15015 pgcc*) # Portland Group C compiler
15016 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'
15017 tmp_addflag=' $pic_flag'
15019 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15020 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'
15021 tmp_addflag=' $pic_flag -Mnomain' ;;
15022 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15023 tmp_addflag=' -i_dynamic' ;;
15024 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15025 tmp_addflag=' -i_dynamic -nofor_main' ;;
15026 ifc* | ifort*) # Intel Fortran compiler
15027 tmp_addflag=' -nofor_main' ;;
15028 esac
15029 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031 if test $supports_anon_versioning = yes; then
15032 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15034 $echo "local: *; };" >> $output_objdir/$libname.ver~
15035 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15037 else
15038 ld_shlibs=no
15042 netbsd*)
15043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15044 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15045 wlarc=
15046 else
15047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15052 solaris*)
15053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15054 ld_shlibs=no
15055 cat <<EOF 1>&2
15057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15058 *** create shared libraries on Solaris systems. Therefore, libtool
15059 *** is disabling shared libraries support. We urge you to upgrade GNU
15060 *** binutils to release 2.9.1 or newer. Another option is to modify
15061 *** your PATH or compiler configuration so that the native linker is
15062 *** used, and then restart.
15065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15068 else
15069 ld_shlibs=no
15073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15074 case `$LD -v 2>&1` in
15075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15076 ld_shlibs=no
15077 cat <<_LT_EOF 1>&2
15079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15080 *** reliably create shared libraries on SCO systems. Therefore, libtool
15081 *** is disabling shared libraries support. We urge you to upgrade GNU
15082 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15083 *** your PATH or compiler configuration so that the native linker is
15084 *** used, and then restart.
15086 _LT_EOF
15089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15093 else
15094 ld_shlibs=no
15097 esac
15100 sunos4*)
15101 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15102 wlarc=
15103 hardcode_direct=yes
15104 hardcode_shlibpath_var=no
15108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15111 else
15112 ld_shlibs=no
15115 esac
15117 if test "$ld_shlibs" = no; then
15118 runpath_var=
15119 hardcode_libdir_flag_spec=
15120 export_dynamic_flag_spec=
15121 whole_archive_flag_spec=
15123 else
15124 # PORTME fill in a description of your system's linker (not GNU ld)
15125 case $host_os in
15126 aix3*)
15127 allow_undefined_flag=unsupported
15128 always_export_symbols=yes
15129 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'
15130 # Note: this linker hardcodes the directories in LIBPATH if there
15131 # are no directories specified by -L.
15132 hardcode_minus_L=yes
15133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15134 # Neither direct hardcoding nor static linking is supported with a
15135 # broken collect2.
15136 hardcode_direct=unsupported
15140 aix4* | aix5*)
15141 if test "$host_cpu" = ia64; then
15142 # On IA64, the linker does run time linking by default, so we don't
15143 # have to do anything special.
15144 aix_use_runtimelinking=no
15145 exp_sym_flag='-Bexport'
15146 no_entry_flag=""
15147 else
15148 # If we're using GNU nm, then we don't want the "-C" option.
15149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15151 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'
15152 else
15153 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'
15155 aix_use_runtimelinking=no
15157 # Test if we are trying to use run time linking or normal
15158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15159 # need to do runtime linking.
15160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15161 for ld_flag in $LDFLAGS; do
15162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15163 aix_use_runtimelinking=yes
15164 break
15166 done
15168 esac
15170 exp_sym_flag='-bexport'
15171 no_entry_flag='-bnoentry'
15174 # When large executables or shared objects are built, AIX ld can
15175 # have problems creating the table of contents. If linking a library
15176 # or program results in "error TOC overflow" add -mminimal-toc to
15177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15180 archive_cmds=''
15181 hardcode_direct=yes
15182 hardcode_libdir_separator=':'
15183 link_all_deplibs=yes
15185 if test "$GCC" = yes; then
15186 case $host_os in aix4.[012]|aix4.[012].*)
15187 # We only want to do this on AIX 4.2 and lower, the check
15188 # below for broken collect2 doesn't work under 4.3+
15189 collect2name=`${CC} -print-prog-name=collect2`
15190 if test -f "$collect2name" && \
15191 strings "$collect2name" | grep resolve_lib_name >/dev/null
15192 then
15193 # We have reworked collect2
15194 hardcode_direct=yes
15195 else
15196 # We have old collect2
15197 hardcode_direct=unsupported
15198 # It fails to find uninstalled libraries when the uninstalled
15199 # path is not listed in the libpath. Setting hardcode_minus_L
15200 # to unsupported forces relinking
15201 hardcode_minus_L=yes
15202 hardcode_libdir_flag_spec='-L$libdir'
15203 hardcode_libdir_separator=
15206 esac
15207 shared_flag='-shared'
15208 if test "$aix_use_runtimelinking" = yes; then
15209 shared_flag="$shared_flag "'${wl}-G'
15211 else
15212 # not using gcc
15213 if test "$host_cpu" = ia64; then
15214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15215 # chokes on -Wl,-G. The following line is correct:
15216 shared_flag='-G'
15217 else
15218 if test "$aix_use_runtimelinking" = yes; then
15219 shared_flag='${wl}-G'
15220 else
15221 shared_flag='${wl}-bM:SRE'
15226 # It seems that -bexpall does not export symbols beginning with
15227 # underscore (_), so it is better to generate a list of symbols to export.
15228 always_export_symbols=yes
15229 if test "$aix_use_runtimelinking" = yes; then
15230 # Warning - without using the other runtime loading flags (-brtl),
15231 # -berok will link without error, but may produce a broken library.
15232 allow_undefined_flag='-berok'
15233 # Determine the default libpath from the value encoded in an empty executable.
15234 cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h. */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15242 main ()
15246 return 0;
15248 _ACEOF
15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>conftest.er1
15257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15264 { (case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267 esac
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_try") 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest$ac_exeext'
15274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15286 # Check for a 64-bit object if we didn't find anything.
15287 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; }
15288 }'`; fi
15289 else
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15300 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15301 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"
15302 else
15303 if test "$host_cpu" = ia64; then
15304 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15305 allow_undefined_flag="-z nodefs"
15306 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"
15307 else
15308 # Determine the default libpath from the value encoded in an empty executable.
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15317 main ()
15321 return 0;
15323 _ACEOF
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (ac_try="$ac_link"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_link") 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest$ac_exeext'
15349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352 esac
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15361 # Check for a 64-bit object if we didn't find anything.
15362 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; }
15363 }'`; fi
15364 else
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15371 rm -f core conftest.err conftest.$ac_objext \
15372 conftest$ac_exeext conftest.$ac_ext
15373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15376 # Warning - without using the other run time loading flags,
15377 # -berok will link without error, but may produce a broken library.
15378 no_undefined_flag=' ${wl}-bernotok'
15379 allow_undefined_flag=' ${wl}-berok'
15380 # Exported symbols can be pulled into shared objects from archives
15381 whole_archive_flag_spec='$convenience'
15382 archive_cmds_need_lc=yes
15383 # This is similar to how AIX traditionally builds its shared libraries.
15384 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'
15389 amigaos*)
15390 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15391 hardcode_libdir_flag_spec='-L$libdir'
15392 hardcode_minus_L=yes
15393 # see comment about different semantics on the GNU ld section
15394 ld_shlibs=no
15397 bsdi[45]*)
15398 export_dynamic_flag_spec=-rdynamic
15401 cygwin* | mingw* | pw32*)
15402 # When not using gcc, we currently assume that we are using
15403 # Microsoft Visual C++.
15404 # hardcode_libdir_flag_spec is actually meaningless, as there is
15405 # no search path for DLLs.
15406 hardcode_libdir_flag_spec=' '
15407 allow_undefined_flag=unsupported
15408 # Tell ltmain to make .lib files, not .a files.
15409 libext=lib
15410 # Tell ltmain to make .dll files, not .so files.
15411 shrext_cmds=".dll"
15412 # FIXME: Setting linknames here is a bad hack.
15413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15414 # The linker will automatically build a .lib file if we build a DLL.
15415 old_archive_From_new_cmds='true'
15416 # FIXME: Should let the user specify the lib program.
15417 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15418 fix_srcfile_path='`cygpath -w "$srcfile"`'
15419 enable_shared_with_static_runtimes=yes
15422 darwin* | rhapsody*)
15423 case $host_os in
15424 rhapsody* | darwin1.[012])
15425 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15427 *) # Darwin 1.3 on
15428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15429 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15430 else
15431 case ${MACOSX_DEPLOYMENT_TARGET} in
15432 10.[012])
15433 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15435 10.*)
15436 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15438 esac
15441 esac
15442 archive_cmds_need_lc=no
15443 hardcode_direct=no
15444 hardcode_automatic=yes
15445 hardcode_shlibpath_var=unsupported
15446 whole_archive_flag_spec=''
15447 link_all_deplibs=yes
15448 if test "$GCC" = yes ; then
15449 output_verbose_link_cmd='echo'
15450 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15451 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15453 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}'
15454 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}'
15455 else
15456 case $cc_basename in
15457 xlc*)
15458 output_verbose_link_cmd='echo'
15459 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15460 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15462 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}'
15463 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}'
15466 ld_shlibs=no
15468 esac
15472 dgux*)
15473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474 hardcode_libdir_flag_spec='-L$libdir'
15475 hardcode_shlibpath_var=no
15478 freebsd1*)
15479 ld_shlibs=no
15482 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15483 # support. Future versions do this automatically, but an explicit c++rt0.o
15484 # does not break anything, and helps significantly (at the cost of a little
15485 # extra space).
15486 freebsd2.2*)
15487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15488 hardcode_libdir_flag_spec='-R$libdir'
15489 hardcode_direct=yes
15490 hardcode_shlibpath_var=no
15493 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15494 freebsd2*)
15495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15496 hardcode_direct=yes
15497 hardcode_minus_L=yes
15498 hardcode_shlibpath_var=no
15501 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15502 freebsd* | kfreebsd*-gnu | dragonfly*)
15503 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15504 hardcode_libdir_flag_spec='-R$libdir'
15505 hardcode_direct=yes
15506 hardcode_shlibpath_var=no
15509 hpux9*)
15510 if test "$GCC" = yes; then
15511 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'
15512 else
15513 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'
15515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15516 hardcode_libdir_separator=:
15517 hardcode_direct=yes
15519 # hardcode_minus_L: Not really in the search PATH,
15520 # but as the default location of the library.
15521 hardcode_minus_L=yes
15522 export_dynamic_flag_spec='${wl}-E'
15525 hpux10*)
15526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15528 else
15529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15531 if test "$with_gnu_ld" = no; then
15532 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15533 hardcode_libdir_separator=:
15535 hardcode_direct=yes
15536 export_dynamic_flag_spec='${wl}-E'
15538 # hardcode_minus_L: Not really in the search PATH,
15539 # but as the default location of the library.
15540 hardcode_minus_L=yes
15544 hpux11*)
15545 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15546 case $host_cpu in
15547 hppa*64*)
15548 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15550 ia64*)
15551 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15554 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15556 esac
15557 else
15558 case $host_cpu in
15559 hppa*64*)
15560 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 ia64*)
15563 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15566 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15568 esac
15570 if test "$with_gnu_ld" = no; then
15571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15572 hardcode_libdir_separator=:
15574 case $host_cpu in
15575 hppa*64*|ia64*)
15576 hardcode_libdir_flag_spec_ld='+b $libdir'
15577 hardcode_direct=no
15578 hardcode_shlibpath_var=no
15581 hardcode_direct=yes
15582 export_dynamic_flag_spec='${wl}-E'
15584 # hardcode_minus_L: Not really in the search PATH,
15585 # but as the default location of the library.
15586 hardcode_minus_L=yes
15588 esac
15592 irix5* | irix6* | nonstopux*)
15593 if test "$GCC" = yes; then
15594 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'
15595 else
15596 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'
15597 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 link_all_deplibs=yes
15604 netbsd*)
15605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15607 else
15608 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15610 hardcode_libdir_flag_spec='-R$libdir'
15611 hardcode_direct=yes
15612 hardcode_shlibpath_var=no
15615 newsos6)
15616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15617 hardcode_direct=yes
15618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15619 hardcode_libdir_separator=:
15620 hardcode_shlibpath_var=no
15623 openbsd*)
15624 hardcode_direct=yes
15625 hardcode_shlibpath_var=no
15626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15630 export_dynamic_flag_spec='${wl}-E'
15631 else
15632 case $host_os in
15633 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_libdir_flag_spec='-R$libdir'
15638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15641 esac
15645 os2*)
15646 hardcode_libdir_flag_spec='-L$libdir'
15647 hardcode_minus_L=yes
15648 allow_undefined_flag=unsupported
15649 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'
15650 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15653 osf3*)
15654 if test "$GCC" = yes; then
15655 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15656 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'
15657 else
15658 allow_undefined_flag=' -expect_unresolved \*'
15659 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'
15661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15662 hardcode_libdir_separator=:
15665 osf4* | osf5*) # as osf3* with the addition of -msym flag
15666 if test "$GCC" = yes; then
15667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15668 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'
15669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15670 else
15671 allow_undefined_flag=' -expect_unresolved \*'
15672 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'
15673 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15674 $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'
15676 # Both c and cxx compiler support -rpath directly
15677 hardcode_libdir_flag_spec='-rpath $libdir'
15679 hardcode_libdir_separator=:
15682 solaris*)
15683 no_undefined_flag=' -z text'
15684 if test "$GCC" = yes; then
15685 wlarc='${wl}'
15686 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15688 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15689 else
15690 wlarc=''
15691 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15693 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15695 hardcode_libdir_flag_spec='-R$libdir'
15696 hardcode_shlibpath_var=no
15697 case $host_os in
15698 solaris2.[0-5] | solaris2.[0-5].*) ;;
15700 # The compiler driver will combine linker options so we
15701 # cannot just pass the convience library names through
15702 # without $wl, iff we do not link with $LD.
15703 # Luckily, gcc supports the same syntax we need for Sun Studio.
15704 # Supported since Solaris 2.6 (maybe 2.5.1?)
15705 case $wlarc in
15707 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15709 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' ;;
15710 esac ;;
15711 esac
15712 link_all_deplibs=yes
15715 sunos4*)
15716 if test "x$host_vendor" = xsequent; then
15717 # Use $CC to link under sequent, because it throws in some extra .o
15718 # files that make .init and .fini sections work.
15719 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15720 else
15721 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15723 hardcode_libdir_flag_spec='-L$libdir'
15724 hardcode_direct=yes
15725 hardcode_minus_L=yes
15726 hardcode_shlibpath_var=no
15729 sysv4)
15730 case $host_vendor in
15731 sni)
15732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_direct=yes # is this really true???
15735 siemens)
15736 ## LD is ld it makes a PLAMLIB
15737 ## CC just makes a GrossModule.
15738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15739 reload_cmds='$CC -r -o $output$reload_objs'
15740 hardcode_direct=no
15742 motorola)
15743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15746 esac
15747 runpath_var='LD_RUN_PATH'
15748 hardcode_shlibpath_var=no
15751 sysv4.3*)
15752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_shlibpath_var=no
15754 export_dynamic_flag_spec='-Bexport'
15757 sysv4*MP*)
15758 if test -d /usr/nec; then
15759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 hardcode_shlibpath_var=no
15761 runpath_var=LD_RUN_PATH
15762 hardcode_runpath_var=yes
15763 ld_shlibs=yes
15767 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15768 no_undefined_flag='${wl}-z,text'
15769 archive_cmds_need_lc=no
15770 hardcode_shlibpath_var=no
15771 runpath_var='LD_RUN_PATH'
15773 if test "$GCC" = yes; then
15774 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 else
15777 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15778 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15782 sysv5* | sco3.2v5* | sco5v6*)
15783 # Note: We can NOT use -z defs as we might desire, because we do not
15784 # link with -lc, and that would cause any symbols used from libc to
15785 # always be unresolved, which means just about no library would
15786 # ever link correctly. If we're not using GNU ld we use -z text
15787 # though, which does catch some bad symbols but isn't as heavy-handed
15788 # as -z defs.
15789 no_undefined_flag='${wl}-z,text'
15790 allow_undefined_flag='${wl}-z,nodefs'
15791 archive_cmds_need_lc=no
15792 hardcode_shlibpath_var=no
15793 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15794 hardcode_libdir_separator=':'
15795 link_all_deplibs=yes
15796 export_dynamic_flag_spec='${wl}-Bexport'
15797 runpath_var='LD_RUN_PATH'
15799 if test "$GCC" = yes; then
15800 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15801 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15802 else
15803 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15804 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15808 uts4*)
15809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15810 hardcode_libdir_flag_spec='-L$libdir'
15811 hardcode_shlibpath_var=no
15815 ld_shlibs=no
15817 esac
15820 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15821 echo "${ECHO_T}$ld_shlibs" >&6; }
15822 test "$ld_shlibs" = no && can_build_shared=no
15825 # Do we need to explicitly link libc?
15827 case "x$archive_cmds_need_lc" in
15828 x|xyes)
15829 # Assume -lc should be added
15830 archive_cmds_need_lc=yes
15832 if test "$enable_shared" = yes && test "$GCC" = yes; then
15833 case $archive_cmds in
15834 *'~'*)
15835 # FIXME: we may have to deal with multi-command sequences.
15837 '$CC '*)
15838 # Test whether the compiler implicitly links with -lc since on some
15839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15840 # to ld, don't add -lc before -lgcc.
15841 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15842 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15843 $rm conftest*
15844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847 (eval $ac_compile) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } 2>conftest.err; then
15851 soname=conftest
15852 lib=conftest
15853 libobjs=conftest.$ac_objext
15854 deplibs=
15855 wl=$lt_prog_compiler_wl
15856 pic_flag=$lt_prog_compiler_pic
15857 compiler_flags=-v
15858 linker_flags=-v
15859 verstring=
15860 output_objdir=.
15861 libname=conftest
15862 lt_save_allow_undefined_flag=$allow_undefined_flag
15863 allow_undefined_flag=
15864 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15865 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }
15869 then
15870 archive_cmds_need_lc=no
15871 else
15872 archive_cmds_need_lc=yes
15874 allow_undefined_flag=$lt_save_allow_undefined_flag
15875 else
15876 cat conftest.err 1>&5
15878 $rm conftest*
15879 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15880 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15882 esac
15885 esac
15887 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15888 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15889 library_names_spec=
15890 libname_spec='lib$name'
15891 soname_spec=
15892 shrext_cmds=".so"
15893 postinstall_cmds=
15894 postuninstall_cmds=
15895 finish_cmds=
15896 finish_eval=
15897 shlibpath_var=
15898 shlibpath_overrides_runpath=unknown
15899 version_type=none
15900 dynamic_linker="$host_os ld.so"
15901 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15902 if test "$GCC" = yes; then
15903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15904 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15905 # if the path contains ";" then we assume it to be the separator
15906 # otherwise default to the standard path separator (i.e. ":") - it is
15907 # assumed that no part of a normal pathname contains ";" but that should
15908 # okay in the real world where ";" in dirpaths is itself problematic.
15909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15910 else
15911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15913 else
15914 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15916 need_lib_prefix=unknown
15917 hardcode_into_libs=no
15919 # when you set need_version to no, make sure it does not cause -set_version
15920 # flags to be left without arguments
15921 need_version=unknown
15923 case $host_os in
15924 aix3*)
15925 version_type=linux
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15927 shlibpath_var=LIBPATH
15929 # AIX 3 has no versioning support, so we append a major version to the name.
15930 soname_spec='${libname}${release}${shared_ext}$major'
15933 aix4* | aix5*)
15934 version_type=linux
15935 need_lib_prefix=no
15936 need_version=no
15937 hardcode_into_libs=yes
15938 if test "$host_cpu" = ia64; then
15939 # AIX 5 supports IA64
15940 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 else
15943 # With GCC up to 2.95.x, collect2 would create an import file
15944 # for dependence libraries. The import file would start with
15945 # the line `#! .'. This would cause the generated library to
15946 # depend on `.', always an invalid library. This was fixed in
15947 # development snapshots of GCC prior to 3.0.
15948 case $host_os in
15949 aix4 | aix4.[01] | aix4.[01].*)
15950 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15951 echo ' yes '
15952 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15954 else
15955 can_build_shared=no
15958 esac
15959 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15960 # soname into executable. Probably we can add versioning support to
15961 # collect2, so additional links can be useful in future.
15962 if test "$aix_use_runtimelinking" = yes; then
15963 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15964 # instead of lib<name>.a to let people know that these are not
15965 # typical AIX shared libraries.
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967 else
15968 # We preserve .a as extension for shared libraries through AIX4.2
15969 # and later when we are not doing run time linking.
15970 library_names_spec='${libname}${release}.a $libname.a'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15973 shlibpath_var=LIBPATH
15977 amigaos*)
15978 library_names_spec='$libname.ixlibrary $libname.a'
15979 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15980 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'
15983 beos*)
15984 library_names_spec='${libname}${shared_ext}'
15985 dynamic_linker="$host_os ld.so"
15986 shlibpath_var=LIBRARY_PATH
15989 bsdi[45]*)
15990 version_type=linux
15991 need_version=no
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15997 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15998 # the default ld.so.conf also contains /usr/contrib/lib and
15999 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16000 # libtool to hard-code these into programs
16003 cygwin* | mingw* | pw32*)
16004 version_type=windows
16005 shrext_cmds=".dll"
16006 need_version=no
16007 need_lib_prefix=no
16009 case $GCC,$host_os in
16010 yes,cygwin* | yes,mingw* | yes,pw32*)
16011 library_names_spec='$libname.dll.a'
16012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16013 postinstall_cmds='base_file=`basename \${file}`~
16014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16015 dldir=$destdir/`dirname \$dlpath`~
16016 test -d \$dldir || mkdir -p \$dldir~
16017 $install_prog $dir/$dlname \$dldir/$dlname~
16018 chmod a+x \$dldir/$dlname'
16019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16020 dlpath=$dir/\$dldll~
16021 $rm \$dlpath'
16022 shlibpath_overrides_runpath=yes
16024 case $host_os in
16025 cygwin*)
16026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16028 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16030 mingw*)
16031 # MinGW DLLs use traditional 'lib' prefix
16032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16034 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16035 # It is most probably a Windows format PATH printed by
16036 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16037 # path with ; separators, and with drive letters. We can handle the
16038 # drive letters (cygwin fileutils understands them), so leave them,
16039 # especially as we might pass files found there to a mingw objdump,
16040 # which wouldn't understand a cygwinified path. Ahh.
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16042 else
16043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16046 pw32*)
16047 # pw32 DLLs use 'pw' prefix rather than 'lib'
16048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16050 esac
16054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16056 esac
16057 dynamic_linker='Win32 ld.exe'
16058 # FIXME: first we should search . and the directory the executable is in
16059 shlibpath_var=PATH
16062 darwin* | rhapsody*)
16063 dynamic_linker="$host_os dyld"
16064 version_type=darwin
16065 need_lib_prefix=no
16066 need_version=no
16067 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16068 soname_spec='${libname}${release}${major}$shared_ext'
16069 shlibpath_overrides_runpath=yes
16070 shlibpath_var=DYLD_LIBRARY_PATH
16071 shrext_cmds='.dylib'
16072 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16073 if test "$GCC" = yes; then
16074 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"`
16075 else
16076 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16081 dgux*)
16082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 shlibpath_var=LD_LIBRARY_PATH
16090 freebsd1*)
16091 dynamic_linker=no
16094 kfreebsd*-gnu)
16095 version_type=linux
16096 need_lib_prefix=no
16097 need_version=no
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 shlibpath_overrides_runpath=no
16102 hardcode_into_libs=yes
16103 dynamic_linker='GNU ld.so'
16106 freebsd* | dragonfly*)
16107 # DragonFly does not have aout. When/if they implement a new
16108 # versioning mechanism, adjust this.
16109 if test -x /usr/bin/objformat; then
16110 objformat=`/usr/bin/objformat`
16111 else
16112 case $host_os in
16113 freebsd[123]*) objformat=aout ;;
16114 *) objformat=elf ;;
16115 esac
16117 version_type=freebsd-$objformat
16118 case $version_type in
16119 freebsd-elf*)
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16121 need_version=no
16122 need_lib_prefix=no
16124 freebsd-*)
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16126 need_version=yes
16128 esac
16129 shlibpath_var=LD_LIBRARY_PATH
16130 case $host_os in
16131 freebsd2*)
16132 shlibpath_overrides_runpath=yes
16134 freebsd3.[01]* | freebsdelf3.[01]*)
16135 shlibpath_overrides_runpath=yes
16136 hardcode_into_libs=yes
16138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16143 freebsd*) # from 4.6 on
16144 shlibpath_overrides_runpath=yes
16145 hardcode_into_libs=yes
16147 esac
16150 gnu*)
16151 version_type=linux
16152 need_lib_prefix=no
16153 need_version=no
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 hardcode_into_libs=yes
16160 hpux9* | hpux10* | hpux11*)
16161 # Give a soname corresponding to the major version so that dld.sl refuses to
16162 # link against other versions.
16163 version_type=sunos
16164 need_lib_prefix=no
16165 need_version=no
16166 case $host_cpu in
16167 ia64*)
16168 shrext_cmds='.so'
16169 hardcode_into_libs=yes
16170 dynamic_linker="$host_os dld.so"
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 if test "X$HPUX_IA64_MODE" = X32; then
16176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16177 else
16178 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16182 hppa*64*)
16183 shrext_cmds='.sl'
16184 hardcode_into_libs=yes
16185 dynamic_linker="$host_os dld.sl"
16186 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16190 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16194 shrext_cmds='.sl'
16195 dynamic_linker="$host_os dld.sl"
16196 shlibpath_var=SHLIB_PATH
16197 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16201 esac
16202 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16203 postinstall_cmds='chmod 555 $lib'
16206 interix3*)
16207 version_type=linux
16208 need_lib_prefix=no
16209 need_version=no
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=no
16215 hardcode_into_libs=yes
16218 irix5* | irix6* | nonstopux*)
16219 case $host_os in
16220 nonstopux*) version_type=nonstopux ;;
16222 if test "$lt_cv_prog_gnu_ld" = yes; then
16223 version_type=linux
16224 else
16225 version_type=irix
16226 fi ;;
16227 esac
16228 need_lib_prefix=no
16229 need_version=no
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16232 case $host_os in
16233 irix5* | nonstopux*)
16234 libsuff= shlibsuff=
16237 case $LD in # libtool.m4 will add one of these switches to LD
16238 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16239 libsuff= shlibsuff= libmagic=32-bit;;
16240 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16241 libsuff=32 shlibsuff=N32 libmagic=N32;;
16242 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16243 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16244 *) libsuff= shlibsuff= libmagic=never-match;;
16245 esac
16247 esac
16248 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16249 shlibpath_overrides_runpath=no
16250 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16251 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16252 hardcode_into_libs=yes
16255 # No shared lib support for Linux oldld, aout, or coff.
16256 linux*oldld* | linux*aout* | linux*coff*)
16257 dynamic_linker=no
16260 # This must be Linux ELF.
16261 linux*)
16262 version_type=linux
16263 need_lib_prefix=no
16264 need_version=no
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16268 shlibpath_var=LD_LIBRARY_PATH
16269 shlibpath_overrides_runpath=no
16270 # This implies no fast_install, which is unacceptable.
16271 # Some rework will be needed to allow for fast_install
16272 # before this can be enabled.
16273 hardcode_into_libs=yes
16275 # Append ld.so.conf contents to the search path
16276 if test -f /etc/ld.so.conf; then
16277 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' ' '`
16278 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16281 # We used to test for /lib/ld.so.1 and disable shared libraries on
16282 # powerpc, because MkLinux only supported shared libraries with the
16283 # GNU dynamic linker. Since this was broken with cross compilers,
16284 # most powerpc-linux boxes support dynamic linking these days and
16285 # people can always --disable-shared, the test was removed, and we
16286 # assume the GNU/Linux dynamic linker is in use.
16287 dynamic_linker='GNU/Linux ld.so'
16290 knetbsd*-gnu)
16291 version_type=linux
16292 need_lib_prefix=no
16293 need_version=no
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 hardcode_into_libs=yes
16299 dynamic_linker='GNU ld.so'
16302 netbsd*)
16303 version_type=sunos
16304 need_lib_prefix=no
16305 need_version=no
16306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16309 dynamic_linker='NetBSD (a.out) ld.so'
16310 else
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 dynamic_linker='NetBSD ld.elf_so'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=yes
16317 hardcode_into_libs=yes
16320 newsos6)
16321 version_type=linux
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16327 nto-qnx*)
16328 version_type=linux
16329 need_lib_prefix=no
16330 need_version=no
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=yes
16337 openbsd*)
16338 version_type=sunos
16339 sys_lib_dlsearch_path_spec="/usr/lib"
16340 need_lib_prefix=no
16341 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16342 case $host_os in
16343 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16344 *) need_version=no ;;
16345 esac
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16350 case $host_os in
16351 openbsd2.[89] | openbsd2.[89].*)
16352 shlibpath_overrides_runpath=no
16355 shlibpath_overrides_runpath=yes
16357 esac
16358 else
16359 shlibpath_overrides_runpath=yes
16363 os2*)
16364 libname_spec='$name'
16365 shrext_cmds=".dll"
16366 need_lib_prefix=no
16367 library_names_spec='$libname${shared_ext} $libname.a'
16368 dynamic_linker='OS/2 ld.exe'
16369 shlibpath_var=LIBPATH
16372 osf3* | osf4* | osf5*)
16373 version_type=osf
16374 need_lib_prefix=no
16375 need_version=no
16376 soname_spec='${libname}${release}${shared_ext}$major'
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16383 solaris*)
16384 version_type=linux
16385 need_lib_prefix=no
16386 need_version=no
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 shlibpath_var=LD_LIBRARY_PATH
16390 shlibpath_overrides_runpath=yes
16391 hardcode_into_libs=yes
16392 # ldd complains unless libraries are executable
16393 postinstall_cmds='chmod +x $lib'
16396 sunos4*)
16397 version_type=sunos
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16399 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 if test "$with_gnu_ld" = yes; then
16403 need_lib_prefix=no
16405 need_version=yes
16408 sysv4 | sysv4.3*)
16409 version_type=linux
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 case $host_vendor in
16414 sni)
16415 shlibpath_overrides_runpath=no
16416 need_lib_prefix=no
16417 export_dynamic_flag_spec='${wl}-Blargedynsym'
16418 runpath_var=LD_RUN_PATH
16420 siemens)
16421 need_lib_prefix=no
16423 motorola)
16424 need_lib_prefix=no
16425 need_version=no
16426 shlibpath_overrides_runpath=no
16427 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16429 esac
16432 sysv4*MP*)
16433 if test -d /usr/nec ;then
16434 version_type=linux
16435 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16436 soname_spec='$libname${shared_ext}.$major'
16437 shlibpath_var=LD_LIBRARY_PATH
16441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16442 version_type=freebsd-elf
16443 need_lib_prefix=no
16444 need_version=no
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16446 soname_spec='${libname}${release}${shared_ext}$major'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 hardcode_into_libs=yes
16449 if test "$with_gnu_ld" = yes; then
16450 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16451 shlibpath_overrides_runpath=no
16452 else
16453 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16454 shlibpath_overrides_runpath=yes
16455 case $host_os in
16456 sco3.2v5*)
16457 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16459 esac
16461 sys_lib_dlsearch_path_spec='/usr/lib'
16464 uts4*)
16465 version_type=linux
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 shlibpath_var=LD_LIBRARY_PATH
16472 dynamic_linker=no
16474 esac
16475 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16476 echo "${ECHO_T}$dynamic_linker" >&6; }
16477 test "$dynamic_linker" = no && can_build_shared=no
16479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16480 if test "$GCC" = yes; then
16481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16484 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16485 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16486 hardcode_action=
16487 if test -n "$hardcode_libdir_flag_spec" || \
16488 test -n "$runpath_var" || \
16489 test "X$hardcode_automatic" = "Xyes" ; then
16491 # We can hardcode non-existant directories.
16492 if test "$hardcode_direct" != no &&
16493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16494 # have to relink, otherwise we might link with an installed library
16495 # when we should be linking with a yet-to-be-installed one
16496 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16497 test "$hardcode_minus_L" != no; then
16498 # Linking always hardcodes the temporary library directory.
16499 hardcode_action=relink
16500 else
16501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16502 hardcode_action=immediate
16504 else
16505 # We cannot hardcode anything, or else we can only hardcode existing
16506 # directories.
16507 hardcode_action=unsupported
16509 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16510 echo "${ECHO_T}$hardcode_action" >&6; }
16512 if test "$hardcode_action" = relink; then
16513 # Fast installation is not supported
16514 enable_fast_install=no
16515 elif test "$shlibpath_overrides_runpath" = yes ||
16516 test "$enable_shared" = no; then
16517 # Fast installation is not necessary
16518 enable_fast_install=needless
16521 striplib=
16522 old_striplib=
16523 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16524 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16525 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16526 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16527 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16528 { echo "$as_me:$LINENO: result: yes" >&5
16529 echo "${ECHO_T}yes" >&6; }
16530 else
16531 # FIXME - insert some real tests, host_os isn't really good enough
16532 case $host_os in
16533 darwin*)
16534 if test -n "$STRIP" ; then
16535 striplib="$STRIP -x"
16536 { echo "$as_me:$LINENO: result: yes" >&5
16537 echo "${ECHO_T}yes" >&6; }
16538 else
16539 { echo "$as_me:$LINENO: result: no" >&5
16540 echo "${ECHO_T}no" >&6; }
16544 { echo "$as_me:$LINENO: result: no" >&5
16545 echo "${ECHO_T}no" >&6; }
16547 esac
16550 if test "x$enable_dlopen" != xyes; then
16551 enable_dlopen=unknown
16552 enable_dlopen_self=unknown
16553 enable_dlopen_self_static=unknown
16554 else
16555 lt_cv_dlopen=no
16556 lt_cv_dlopen_libs=
16558 case $host_os in
16559 beos*)
16560 lt_cv_dlopen="load_add_on"
16561 lt_cv_dlopen_libs=
16562 lt_cv_dlopen_self=yes
16565 mingw* | pw32*)
16566 lt_cv_dlopen="LoadLibrary"
16567 lt_cv_dlopen_libs=
16570 cygwin*)
16571 lt_cv_dlopen="dlopen"
16572 lt_cv_dlopen_libs=
16575 darwin*)
16576 # if libdl is installed we need to link against it
16577 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16578 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 else
16582 ac_check_lib_save_LIBS=$LIBS
16583 LIBS="-ldl $LIBS"
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h. */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16591 /* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
16594 #ifdef __cplusplus
16595 extern "C"
16596 #endif
16597 char dlopen ();
16599 main ()
16601 return dlopen ();
16603 return 0;
16605 _ACEOF
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (ac_try="$ac_link"
16608 case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_link") 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16621 { (case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_try") 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest$ac_exeext'
16631 { (case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634 esac
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_try") 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_cv_lib_dl_dlopen=yes
16641 else
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_cv_lib_dl_dlopen=no
16648 rm -f core conftest.err conftest.$ac_objext \
16649 conftest$ac_exeext conftest.$ac_ext
16650 LIBS=$ac_check_lib_save_LIBS
16652 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16653 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16654 if test $ac_cv_lib_dl_dlopen = yes; then
16655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16656 else
16658 lt_cv_dlopen="dyld"
16659 lt_cv_dlopen_libs=
16660 lt_cv_dlopen_self=yes
16667 { echo "$as_me:$LINENO: checking for shl_load" >&5
16668 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16669 if test "${ac_cv_func_shl_load+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h. */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16680 #define shl_load innocuous_shl_load
16682 /* System header to define __stub macros and hopefully few prototypes,
16683 which can conflict with char shl_load (); below.
16684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16685 <limits.h> exists even on freestanding compilers. */
16687 #ifdef __STDC__
16688 # include <limits.h>
16689 #else
16690 # include <assert.h>
16691 #endif
16693 #undef shl_load
16695 /* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
16698 #ifdef __cplusplus
16699 extern "C"
16700 #endif
16701 char shl_load ();
16702 /* The GNU C library defines this for functions which it implements
16703 to always fail with ENOSYS. Some functions are actually named
16704 something starting with __ and the normal name is an alias. */
16705 #if defined __stub_shl_load || defined __stub___shl_load
16706 choke me
16707 #endif
16710 main ()
16712 return shl_load ();
16714 return 0;
16716 _ACEOF
16717 rm -f conftest.$ac_objext conftest$ac_exeext
16718 if { (ac_try="$ac_link"
16719 case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722 esac
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_link") 2>conftest.er1
16725 ac_status=$?
16726 grep -v '^ *+' conftest.er1 >conftest.err
16727 rm -f conftest.er1
16728 cat conftest.err >&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } &&
16731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735 esac
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745 esac
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_try") 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_cv_func_shl_load=yes
16752 else
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16756 ac_cv_func_shl_load=no
16759 rm -f core conftest.err conftest.$ac_objext \
16760 conftest$ac_exeext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16763 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16764 if test $ac_cv_func_shl_load = yes; then
16765 lt_cv_dlopen="shl_load"
16766 else
16767 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16768 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772 ac_check_lib_save_LIBS=$LIBS
16773 LIBS="-ldld $LIBS"
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 char shl_load ();
16789 main ()
16791 return shl_load ();
16793 return 0;
16795 _ACEOF
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (ac_try="$ac_link"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16811 { (case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_try") 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest$ac_exeext'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_lib_dld_shl_load=yes
16831 else
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 ac_cv_lib_dld_shl_load=no
16838 rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16840 LIBS=$ac_check_lib_save_LIBS
16842 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16843 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16844 if test $ac_cv_lib_dld_shl_load = yes; then
16845 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16846 else
16847 { echo "$as_me:$LINENO: checking for dlopen" >&5
16848 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16849 if test "${ac_cv_func_dlopen+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16860 #define dlopen innocuous_dlopen
16862 /* System header to define __stub macros and hopefully few prototypes,
16863 which can conflict with char dlopen (); below.
16864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16865 <limits.h> exists even on freestanding compilers. */
16867 #ifdef __STDC__
16868 # include <limits.h>
16869 #else
16870 # include <assert.h>
16871 #endif
16873 #undef dlopen
16875 /* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 char dlopen ();
16882 /* The GNU C library defines this for functions which it implements
16883 to always fail with ENOSYS. Some functions are actually named
16884 something starting with __ and the normal name is an alias. */
16885 #if defined __stub_dlopen || defined __stub___dlopen
16886 choke me
16887 #endif
16890 main ()
16892 return dlopen ();
16894 return 0;
16896 _ACEOF
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_func_dlopen=yes
16932 else
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_cv_func_dlopen=no
16939 rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16942 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16943 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16944 if test $ac_cv_func_dlopen = yes; then
16945 lt_cv_dlopen="dlopen"
16946 else
16947 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16948 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 else
16952 ac_check_lib_save_LIBS=$LIBS
16953 LIBS="-ldl $LIBS"
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16961 /* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 char dlopen ();
16969 main ()
16971 return dlopen ();
16973 return 0;
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (ac_try="$ac_link"
16978 case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
16984 ac_status=$?
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_cv_lib_dl_dlopen=yes
17011 else
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 ac_cv_lib_dl_dlopen=no
17018 rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020 LIBS=$ac_check_lib_save_LIBS
17022 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17023 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17024 if test $ac_cv_lib_dl_dlopen = yes; then
17025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17026 else
17027 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17028 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17029 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 else
17032 ac_check_lib_save_LIBS=$LIBS
17033 LIBS="-lsvld $LIBS"
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h. */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17041 /* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17044 #ifdef __cplusplus
17045 extern "C"
17046 #endif
17047 char dlopen ();
17049 main ()
17051 return dlopen ();
17053 return 0;
17055 _ACEOF
17056 rm -f conftest.$ac_objext conftest$ac_exeext
17057 if { (ac_try="$ac_link"
17058 case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_link") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17071 { (case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_try") 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try='test -s conftest$ac_exeext'
17081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_cv_lib_svld_dlopen=yes
17091 else
17092 echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 ac_cv_lib_svld_dlopen=no
17098 rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17100 LIBS=$ac_check_lib_save_LIBS
17102 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17103 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17104 if test $ac_cv_lib_svld_dlopen = yes; then
17105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17106 else
17107 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17108 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17109 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112 ac_check_lib_save_LIBS=$LIBS
17113 LIBS="-ldld $LIBS"
17114 cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h. */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17121 /* Override any GCC internal prototype to avoid an error.
17122 Use char because int might match the return type of a GCC
17123 builtin and then its argument prototype would still apply. */
17124 #ifdef __cplusplus
17125 extern "C"
17126 #endif
17127 char dld_link ();
17129 main ()
17131 return dld_link ();
17133 return 0;
17135 _ACEOF
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (ac_try="$ac_link"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_link") 2>conftest.er1
17144 ac_status=$?
17145 grep -v '^ *+' conftest.er1 >conftest.err
17146 rm -f conftest.er1
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154 esac
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest$ac_exeext'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_cv_lib_dld_dld_link=yes
17171 else
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_cv_lib_dld_dld_link=no
17178 rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180 LIBS=$ac_check_lib_save_LIBS
17182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17183 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17184 if test $ac_cv_lib_dld_dld_link = yes; then
17185 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17204 esac
17206 if test "x$lt_cv_dlopen" != xno; then
17207 enable_dlopen=yes
17208 else
17209 enable_dlopen=no
17212 case $lt_cv_dlopen in
17213 dlopen)
17214 save_CPPFLAGS="$CPPFLAGS"
17215 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17217 save_LDFLAGS="$LDFLAGS"
17218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17220 save_LIBS="$LIBS"
17221 LIBS="$lt_cv_dlopen_libs $LIBS"
17223 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17224 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17225 if test "${lt_cv_dlopen_self+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228 if test "$cross_compiling" = yes; then :
17229 lt_cv_dlopen_self=cross
17230 else
17231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17232 lt_status=$lt_dlunknown
17233 cat > conftest.$ac_ext <<EOF
17234 #line 17234 "configure"
17235 #include "confdefs.h"
17237 #if HAVE_DLFCN_H
17238 #include <dlfcn.h>
17239 #endif
17241 #include <stdio.h>
17243 #ifdef RTLD_GLOBAL
17244 # define LT_DLGLOBAL RTLD_GLOBAL
17245 #else
17246 # ifdef DL_GLOBAL
17247 # define LT_DLGLOBAL DL_GLOBAL
17248 # else
17249 # define LT_DLGLOBAL 0
17250 # endif
17251 #endif
17253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17254 find out it does not work in some platform. */
17255 #ifndef LT_DLLAZY_OR_NOW
17256 # ifdef RTLD_LAZY
17257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17258 # else
17259 # ifdef DL_LAZY
17260 # define LT_DLLAZY_OR_NOW DL_LAZY
17261 # else
17262 # ifdef RTLD_NOW
17263 # define LT_DLLAZY_OR_NOW RTLD_NOW
17264 # else
17265 # ifdef DL_NOW
17266 # define LT_DLLAZY_OR_NOW DL_NOW
17267 # else
17268 # define LT_DLLAZY_OR_NOW 0
17269 # endif
17270 # endif
17271 # endif
17272 # endif
17273 #endif
17275 #ifdef __cplusplus
17276 extern "C" void exit (int);
17277 #endif
17279 void fnord() { int i=42;}
17280 int main ()
17282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17283 int status = $lt_dlunknown;
17285 if (self)
17287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17288 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17289 /* dlclose (self); */
17291 else
17292 puts (dlerror ());
17294 exit (status);
17297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17302 (./conftest; exit; ) >&5 2>/dev/null
17303 lt_status=$?
17304 case x$lt_status in
17305 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17306 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17307 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17308 esac
17309 else :
17310 # compilation failed
17311 lt_cv_dlopen_self=no
17314 rm -fr conftest*
17318 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17319 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17321 if test "x$lt_cv_dlopen_self" = xyes; then
17322 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17323 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17324 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17325 if test "${lt_cv_dlopen_self_static+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328 if test "$cross_compiling" = yes; then :
17329 lt_cv_dlopen_self_static=cross
17330 else
17331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17332 lt_status=$lt_dlunknown
17333 cat > conftest.$ac_ext <<EOF
17334 #line 17334 "configure"
17335 #include "confdefs.h"
17337 #if HAVE_DLFCN_H
17338 #include <dlfcn.h>
17339 #endif
17341 #include <stdio.h>
17343 #ifdef RTLD_GLOBAL
17344 # define LT_DLGLOBAL RTLD_GLOBAL
17345 #else
17346 # ifdef DL_GLOBAL
17347 # define LT_DLGLOBAL DL_GLOBAL
17348 # else
17349 # define LT_DLGLOBAL 0
17350 # endif
17351 #endif
17353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17354 find out it does not work in some platform. */
17355 #ifndef LT_DLLAZY_OR_NOW
17356 # ifdef RTLD_LAZY
17357 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17358 # else
17359 # ifdef DL_LAZY
17360 # define LT_DLLAZY_OR_NOW DL_LAZY
17361 # else
17362 # ifdef RTLD_NOW
17363 # define LT_DLLAZY_OR_NOW RTLD_NOW
17364 # else
17365 # ifdef DL_NOW
17366 # define LT_DLLAZY_OR_NOW DL_NOW
17367 # else
17368 # define LT_DLLAZY_OR_NOW 0
17369 # endif
17370 # endif
17371 # endif
17372 # endif
17373 #endif
17375 #ifdef __cplusplus
17376 extern "C" void exit (int);
17377 #endif
17379 void fnord() { int i=42;}
17380 int main ()
17382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17383 int status = $lt_dlunknown;
17385 if (self)
17387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17388 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17389 /* dlclose (self); */
17391 else
17392 puts (dlerror ());
17394 exit (status);
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17402 (./conftest; exit; ) >&5 2>/dev/null
17403 lt_status=$?
17404 case x$lt_status in
17405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17408 esac
17409 else :
17410 # compilation failed
17411 lt_cv_dlopen_self_static=no
17414 rm -fr conftest*
17418 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17419 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17422 CPPFLAGS="$save_CPPFLAGS"
17423 LDFLAGS="$save_LDFLAGS"
17424 LIBS="$save_LIBS"
17426 esac
17428 case $lt_cv_dlopen_self in
17429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17430 *) enable_dlopen_self=unknown ;;
17431 esac
17433 case $lt_cv_dlopen_self_static in
17434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17435 *) enable_dlopen_self_static=unknown ;;
17436 esac
17440 # Report which library types will actually be built
17441 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17442 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17443 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17444 echo "${ECHO_T}$can_build_shared" >&6; }
17446 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17447 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17448 test "$can_build_shared" = "no" && enable_shared=no
17450 # On AIX, shared libraries and static libraries use the same namespace, and
17451 # are all built from PIC.
17452 case $host_os in
17453 aix3*)
17454 test "$enable_shared" = yes && enable_static=no
17455 if test -n "$RANLIB"; then
17456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17457 postinstall_cmds='$RANLIB $lib'
17461 aix4* | aix5*)
17462 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17463 test "$enable_shared" = yes && enable_static=no
17466 esac
17467 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17468 echo "${ECHO_T}$enable_shared" >&6; }
17470 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17471 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17472 # Make sure either enable_shared or enable_static is yes.
17473 test "$enable_shared" = yes || enable_static=yes
17474 { echo "$as_me:$LINENO: result: $enable_static" >&5
17475 echo "${ECHO_T}$enable_static" >&6; }
17477 # The else clause should only fire when bootstrapping the
17478 # libtool distribution, otherwise you forgot to ship ltmain.sh
17479 # with your package, and you will get complaints that there are
17480 # no rules to generate ltmain.sh.
17481 if test -f "$ltmain"; then
17482 # See if we are running on zsh, and set the options which allow our commands through
17483 # without removal of \ escapes.
17484 if test -n "${ZSH_VERSION+set}" ; then
17485 setopt NO_GLOB_SUBST
17487 # Now quote all the things that may contain metacharacters while being
17488 # careful not to overquote the AC_SUBSTed values. We take copies of the
17489 # variables and quote the copies for generation of the libtool script.
17490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17491 SED SHELL STRIP \
17492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17494 deplibs_check_method reload_flag reload_cmds need_locks \
17495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17496 lt_cv_sys_global_symbol_to_c_name_address \
17497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17498 old_postinstall_cmds old_postuninstall_cmds \
17499 compiler \
17500 CC \
17501 LD \
17502 lt_prog_compiler_wl \
17503 lt_prog_compiler_pic \
17504 lt_prog_compiler_static \
17505 lt_prog_compiler_no_builtin_flag \
17506 export_dynamic_flag_spec \
17507 thread_safe_flag_spec \
17508 whole_archive_flag_spec \
17509 enable_shared_with_static_runtimes \
17510 old_archive_cmds \
17511 old_archive_from_new_cmds \
17512 predep_objects \
17513 postdep_objects \
17514 predeps \
17515 postdeps \
17516 compiler_lib_search_path \
17517 archive_cmds \
17518 archive_expsym_cmds \
17519 postinstall_cmds \
17520 postuninstall_cmds \
17521 old_archive_from_expsyms_cmds \
17522 allow_undefined_flag \
17523 no_undefined_flag \
17524 export_symbols_cmds \
17525 hardcode_libdir_flag_spec \
17526 hardcode_libdir_flag_spec_ld \
17527 hardcode_libdir_separator \
17528 hardcode_automatic \
17529 module_cmds \
17530 module_expsym_cmds \
17531 lt_cv_prog_compiler_c_o \
17532 exclude_expsyms \
17533 include_expsyms; do
17535 case $var in
17536 old_archive_cmds | \
17537 old_archive_from_new_cmds | \
17538 archive_cmds | \
17539 archive_expsym_cmds | \
17540 module_cmds | \
17541 module_expsym_cmds | \
17542 old_archive_from_expsyms_cmds | \
17543 export_symbols_cmds | \
17544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17545 postinstall_cmds | postuninstall_cmds | \
17546 old_postinstall_cmds | old_postuninstall_cmds | \
17547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17548 # Double-quote double-evaled strings.
17549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17554 esac
17555 done
17557 case $lt_echo in
17558 *'\$0 --fallback-echo"')
17559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17561 esac
17563 cfgfile="${ofile}T"
17564 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17565 $rm -f "$cfgfile"
17566 { echo "$as_me:$LINENO: creating $ofile" >&5
17567 echo "$as_me: creating $ofile" >&6;}
17569 cat <<__EOF__ >> "$cfgfile"
17570 #! $SHELL
17572 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17573 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17574 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17576 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17577 # Free Software Foundation, Inc.
17579 # This file is part of GNU Libtool:
17580 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17582 # This program is free software; you can redistribute it and/or modify
17583 # it under the terms of the GNU General Public License as published by
17584 # the Free Software Foundation; either version 2 of the License, or
17585 # (at your option) any later version.
17587 # This program is distributed in the hope that it will be useful, but
17588 # WITHOUT ANY WARRANTY; without even the implied warranty of
17589 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17590 # General Public License for more details.
17592 # You should have received a copy of the GNU General Public License
17593 # along with this program; if not, write to the Free Software
17594 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17596 # As a special exception to the GNU General Public License, if you
17597 # distribute this file as part of a program that contains a
17598 # configuration script generated by Autoconf, you may include it under
17599 # the same distribution terms that you use for the rest of that program.
17601 # A sed program that does not truncate output.
17602 SED=$lt_SED
17604 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17605 Xsed="$SED -e 1s/^X//"
17607 # The HP-UX ksh and POSIX shell print the target directory to stdout
17608 # if CDPATH is set.
17609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17611 # The names of the tagged configurations supported by this script.
17612 available_tags=
17614 # ### BEGIN LIBTOOL CONFIG
17616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17618 # Shell to use when invoking shell scripts.
17619 SHELL=$lt_SHELL
17621 # Whether or not to build shared libraries.
17622 build_libtool_libs=$enable_shared
17624 # Whether or not to build static libraries.
17625 build_old_libs=$enable_static
17627 # Whether or not to add -lc for building shared libraries.
17628 build_libtool_need_lc=$archive_cmds_need_lc
17630 # Whether or not to disallow shared libs when runtime libs are static
17631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17633 # Whether or not to optimize for fast installation.
17634 fast_install=$enable_fast_install
17636 # The host system.
17637 host_alias=$host_alias
17638 host=$host
17639 host_os=$host_os
17641 # The build system.
17642 build_alias=$build_alias
17643 build=$build
17644 build_os=$build_os
17646 # An echo program that does not interpret backslashes.
17647 echo=$lt_echo
17649 # The archiver.
17650 AR=$lt_AR
17651 AR_FLAGS=$lt_AR_FLAGS
17653 # A C compiler.
17654 LTCC=$lt_LTCC
17656 # LTCC compiler flags.
17657 LTCFLAGS=$lt_LTCFLAGS
17659 # A language-specific compiler.
17660 CC=$lt_compiler
17662 # Is the compiler the GNU C compiler?
17663 with_gcc=$GCC
17665 # An ERE matcher.
17666 EGREP=$lt_EGREP
17668 # The linker used to build libraries.
17669 LD=$lt_LD
17671 # Whether we need hard or soft links.
17672 LN_S=$lt_LN_S
17674 # A BSD-compatible nm program.
17675 NM=$lt_NM
17677 # A symbol stripping program
17678 STRIP=$lt_STRIP
17680 # Used to examine libraries when file_magic_cmd begins "file"
17681 MAGIC_CMD=$MAGIC_CMD
17683 # Used on cygwin: DLL creation program.
17684 DLLTOOL="$DLLTOOL"
17686 # Used on cygwin: object dumper.
17687 OBJDUMP="$OBJDUMP"
17689 # Used on cygwin: assembler.
17690 AS="$AS"
17692 # The name of the directory that contains temporary libtool files.
17693 objdir=$objdir
17695 # How to create reloadable object files.
17696 reload_flag=$lt_reload_flag
17697 reload_cmds=$lt_reload_cmds
17699 # How to pass a linker flag through the compiler.
17700 wl=$lt_lt_prog_compiler_wl
17702 # Object file suffix (normally "o").
17703 objext="$ac_objext"
17705 # Old archive suffix (normally "a").
17706 libext="$libext"
17708 # Shared library suffix (normally ".so").
17709 shrext_cmds='$shrext_cmds'
17711 # Executable file suffix (normally "").
17712 exeext="$exeext"
17714 # Additional compiler flags for building library objects.
17715 pic_flag=$lt_lt_prog_compiler_pic
17716 pic_mode=$pic_mode
17718 # What is the maximum length of a command?
17719 max_cmd_len=$lt_cv_sys_max_cmd_len
17721 # Does compiler simultaneously support -c and -o options?
17722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17724 # Must we lock files when doing compilation?
17725 need_locks=$lt_need_locks
17727 # Do we need the lib prefix for modules?
17728 need_lib_prefix=$need_lib_prefix
17730 # Do we need a version for libraries?
17731 need_version=$need_version
17733 # Whether dlopen is supported.
17734 dlopen_support=$enable_dlopen
17736 # Whether dlopen of programs is supported.
17737 dlopen_self=$enable_dlopen_self
17739 # Whether dlopen of statically linked programs is supported.
17740 dlopen_self_static=$enable_dlopen_self_static
17742 # Compiler flag to prevent dynamic linking.
17743 link_static_flag=$lt_lt_prog_compiler_static
17745 # Compiler flag to turn off builtin functions.
17746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17748 # Compiler flag to allow reflexive dlopens.
17749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17751 # Compiler flag to generate shared objects directly from archives.
17752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17754 # Compiler flag to generate thread-safe objects.
17755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17757 # Library versioning type.
17758 version_type=$version_type
17760 # Format of library name prefix.
17761 libname_spec=$lt_libname_spec
17763 # List of archive names. First name is the real one, the rest are links.
17764 # The last name is the one that the linker finds with -lNAME.
17765 library_names_spec=$lt_library_names_spec
17767 # The coded name of the library, if different from the real name.
17768 soname_spec=$lt_soname_spec
17770 # Commands used to build and install an old-style archive.
17771 RANLIB=$lt_RANLIB
17772 old_archive_cmds=$lt_old_archive_cmds
17773 old_postinstall_cmds=$lt_old_postinstall_cmds
17774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17776 # Create an old-style archive from a shared archive.
17777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17779 # Create a temporary old-style archive to link instead of a shared archive.
17780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17782 # Commands used to build and install a shared archive.
17783 archive_cmds=$lt_archive_cmds
17784 archive_expsym_cmds=$lt_archive_expsym_cmds
17785 postinstall_cmds=$lt_postinstall_cmds
17786 postuninstall_cmds=$lt_postuninstall_cmds
17788 # Commands used to build a loadable module (assumed same as above if empty)
17789 module_cmds=$lt_module_cmds
17790 module_expsym_cmds=$lt_module_expsym_cmds
17792 # Commands to strip libraries.
17793 old_striplib=$lt_old_striplib
17794 striplib=$lt_striplib
17796 # Dependencies to place before the objects being linked to create a
17797 # shared library.
17798 predep_objects=$lt_predep_objects
17800 # Dependencies to place after the objects being linked to create a
17801 # shared library.
17802 postdep_objects=$lt_postdep_objects
17804 # Dependencies to place before the objects being linked to create a
17805 # shared library.
17806 predeps=$lt_predeps
17808 # Dependencies to place after the objects being linked to create a
17809 # shared library.
17810 postdeps=$lt_postdeps
17812 # The library search path used internally by the compiler when linking
17813 # a shared library.
17814 compiler_lib_search_path=$lt_compiler_lib_search_path
17816 # Method to check whether dependent libraries are shared objects.
17817 deplibs_check_method=$lt_deplibs_check_method
17819 # Command to use when deplibs_check_method == file_magic.
17820 file_magic_cmd=$lt_file_magic_cmd
17822 # Flag that allows shared libraries with undefined symbols to be built.
17823 allow_undefined_flag=$lt_allow_undefined_flag
17825 # Flag that forces no undefined symbols.
17826 no_undefined_flag=$lt_no_undefined_flag
17828 # Commands used to finish a libtool library installation in a directory.
17829 finish_cmds=$lt_finish_cmds
17831 # Same as above, but a single script fragment to be evaled but not shown.
17832 finish_eval=$lt_finish_eval
17834 # Take the output of nm and produce a listing of raw symbols and C names.
17835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17837 # Transform the output of nm in a proper C declaration
17838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17840 # Transform the output of nm in a C name address pair
17841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17843 # This is the shared library runtime path variable.
17844 runpath_var=$runpath_var
17846 # This is the shared library path variable.
17847 shlibpath_var=$shlibpath_var
17849 # Is shlibpath searched before the hard-coded library search path?
17850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17852 # How to hardcode a shared library path into an executable.
17853 hardcode_action=$hardcode_action
17855 # Whether we should hardcode library paths into libraries.
17856 hardcode_into_libs=$hardcode_into_libs
17858 # Flag to hardcode \$libdir into a binary during linking.
17859 # This must work even if \$libdir does not exist.
17860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17862 # If ld is used when linking, flag to hardcode \$libdir into
17863 # a binary during linking. This must work even if \$libdir does
17864 # not exist.
17865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17867 # Whether we need a single -rpath flag with a separated argument.
17868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17871 # resulting binary.
17872 hardcode_direct=$hardcode_direct
17874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17875 # resulting binary.
17876 hardcode_minus_L=$hardcode_minus_L
17878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17879 # the resulting binary.
17880 hardcode_shlibpath_var=$hardcode_shlibpath_var
17882 # Set to yes if building a shared library automatically hardcodes DIR into the library
17883 # and all subsequent libraries and executables linked against it.
17884 hardcode_automatic=$hardcode_automatic
17886 # Variables whose values should be saved in libtool wrapper scripts and
17887 # restored at relink time.
17888 variables_saved_for_relink="$variables_saved_for_relink"
17890 # Whether libtool must link a program against all its dependency libraries.
17891 link_all_deplibs=$link_all_deplibs
17893 # Compile-time system search path for libraries
17894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17896 # Run-time system search path for libraries
17897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17899 # Fix the shell variable \$srcfile for the compiler.
17900 fix_srcfile_path="$fix_srcfile_path"
17902 # Set to yes if exported symbols are required.
17903 always_export_symbols=$always_export_symbols
17905 # The commands to list exported symbols.
17906 export_symbols_cmds=$lt_export_symbols_cmds
17908 # The commands to extract the exported symbol list from a shared archive.
17909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17911 # Symbols that should not be listed in the preloaded symbols.
17912 exclude_expsyms=$lt_exclude_expsyms
17914 # Symbols that must always be exported.
17915 include_expsyms=$lt_include_expsyms
17917 # ### END LIBTOOL CONFIG
17919 __EOF__
17922 case $host_os in
17923 aix3*)
17924 cat <<\EOF >> "$cfgfile"
17926 # AIX sometimes has problems with the GCC collect2 program. For some
17927 # reason, if we set the COLLECT_NAMES environment variable, the problems
17928 # vanish in a puff of smoke.
17929 if test "X${COLLECT_NAMES+set}" != Xset; then
17930 COLLECT_NAMES=
17931 export COLLECT_NAMES
17935 esac
17937 # We use sed instead of cat because bash on DJGPP gets confused if
17938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17939 # text mode, it properly converts lines to CR/LF. This bash problem
17940 # is reportedly fixed, but why not run on old versions too?
17941 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17943 mv -f "$cfgfile" "$ofile" || \
17944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17945 chmod +x "$ofile"
17947 else
17948 # If there is no Makefile yet, we rely on a make rule to execute
17949 # `config.status --recheck' to rerun these tests and create the
17950 # libtool script then.
17951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17952 if test -f "$ltmain_in"; then
17953 test -f Makefile && make "$ltmain"
17958 ac_ext=c
17959 ac_cpp='$CPP $CPPFLAGS'
17960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17964 CC="$lt_save_CC"
17967 # Check whether --with-tags was given.
17968 if test "${with_tags+set}" = set; then
17969 withval=$with_tags; tagnames="$withval"
17973 if test -f "$ltmain" && test -n "$tagnames"; then
17974 if test ! -f "${ofile}"; then
17975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17979 if test -z "$LTCC"; then
17980 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17981 if test -z "$LTCC"; then
17982 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17984 else
17985 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17989 if test -z "$LTCFLAGS"; then
17990 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17993 # Extract list of available tagged configurations in $ofile.
17994 # Note that this assumes the entire list is on one line.
17995 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17998 for tagname in $tagnames; do
17999 IFS="$lt_save_ifs"
18000 # Check whether tagname contains only valid characters
18001 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18002 "") ;;
18003 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18004 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18005 { (exit 1); exit 1; }; }
18007 esac
18009 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18010 then
18011 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18012 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18013 { (exit 1); exit 1; }; }
18016 # Update the list of available tags.
18017 if test -n "$tagname"; then
18018 echo appending configuration tag \"$tagname\" to $ofile
18020 case $tagname in
18021 CXX)
18022 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18023 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18024 (test "X$CXX" != "Xg++"))) ; then
18025 ac_ext=cpp
18026 ac_cpp='$CXXCPP $CPPFLAGS'
18027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18034 archive_cmds_need_lc_CXX=no
18035 allow_undefined_flag_CXX=
18036 always_export_symbols_CXX=no
18037 archive_expsym_cmds_CXX=
18038 export_dynamic_flag_spec_CXX=
18039 hardcode_direct_CXX=no
18040 hardcode_libdir_flag_spec_CXX=
18041 hardcode_libdir_flag_spec_ld_CXX=
18042 hardcode_libdir_separator_CXX=
18043 hardcode_minus_L_CXX=no
18044 hardcode_shlibpath_var_CXX=unsupported
18045 hardcode_automatic_CXX=no
18046 module_cmds_CXX=
18047 module_expsym_cmds_CXX=
18048 link_all_deplibs_CXX=unknown
18049 old_archive_cmds_CXX=$old_archive_cmds
18050 no_undefined_flag_CXX=
18051 whole_archive_flag_spec_CXX=
18052 enable_shared_with_static_runtimes_CXX=no
18054 # Dependencies to place before and after the object being linked:
18055 predep_objects_CXX=
18056 postdep_objects_CXX=
18057 predeps_CXX=
18058 postdeps_CXX=
18059 compiler_lib_search_path_CXX=
18061 # Source file extension for C++ test sources.
18062 ac_ext=cpp
18064 # Object file extension for compiled C++ test sources.
18065 objext=o
18066 objext_CXX=$objext
18068 # Code to be used in simple compile tests
18069 lt_simple_compile_test_code="int some_variable = 0;\n"
18071 # Code to be used in simple link tests
18072 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18074 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18076 # If no C compiler was specified, use CC.
18077 LTCC=${LTCC-"$CC"}
18079 # If no C compiler flags were specified, use CFLAGS.
18080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18082 # Allow CC to be a program name with arguments.
18083 compiler=$CC
18086 # save warnings/boilerplate of simple test code
18087 ac_outfile=conftest.$ac_objext
18088 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18090 _lt_compiler_boilerplate=`cat conftest.err`
18091 $rm conftest*
18093 ac_outfile=conftest.$ac_objext
18094 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18096 _lt_linker_boilerplate=`cat conftest.err`
18097 $rm conftest*
18100 # Allow CC to be a program name with arguments.
18101 lt_save_CC=$CC
18102 lt_save_LD=$LD
18103 lt_save_GCC=$GCC
18104 GCC=$GXX
18105 lt_save_with_gnu_ld=$with_gnu_ld
18106 lt_save_path_LD=$lt_cv_path_LD
18107 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18108 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18109 else
18110 $as_unset lt_cv_prog_gnu_ld
18112 if test -n "${lt_cv_path_LDCXX+set}"; then
18113 lt_cv_path_LD=$lt_cv_path_LDCXX
18114 else
18115 $as_unset lt_cv_path_LD
18117 test -z "${LDCXX+set}" || LD=$LDCXX
18118 CC=${CXX-"c++"}
18119 compiler=$CC
18120 compiler_CXX=$CC
18121 for cc_temp in $compiler""; do
18122 case $cc_temp in
18123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18125 \-*) ;;
18126 *) break;;
18127 esac
18128 done
18129 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18132 # We don't want -fno-exception wen compiling C++ code, so set the
18133 # no_builtin_flag separately
18134 if test "$GXX" = yes; then
18135 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18136 else
18137 lt_prog_compiler_no_builtin_flag_CXX=
18140 if test "$GXX" = yes; then
18141 # Set up default GNU C++ configuration
18144 # Check whether --with-gnu-ld was given.
18145 if test "${with_gnu_ld+set}" = set; then
18146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18147 else
18148 with_gnu_ld=no
18151 ac_prog=ld
18152 if test "$GCC" = yes; then
18153 # Check if gcc -print-prog-name=ld gives a path.
18154 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18155 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18156 case $host in
18157 *-*-mingw*)
18158 # gcc leaves a trailing carriage return which upsets mingw
18159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18162 esac
18163 case $ac_prog in
18164 # Accept absolute paths.
18165 [\\/]* | ?:[\\/]*)
18166 re_direlt='/[^/][^/]*/\.\./'
18167 # Canonicalize the pathname of ld
18168 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18169 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18170 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18171 done
18172 test -z "$LD" && LD="$ac_prog"
18175 # If it fails, then pretend we aren't using GCC.
18176 ac_prog=ld
18179 # If it is relative, then search for the first ld in PATH.
18180 with_gnu_ld=unknown
18182 esac
18183 elif test "$with_gnu_ld" = yes; then
18184 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18185 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18186 else
18187 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18188 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18190 if test "${lt_cv_path_LD+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193 if test -z "$LD"; then
18194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18195 for ac_dir in $PATH; do
18196 IFS="$lt_save_ifs"
18197 test -z "$ac_dir" && ac_dir=.
18198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18199 lt_cv_path_LD="$ac_dir/$ac_prog"
18200 # Check to see if the program is GNU ld. I'd rather use --version,
18201 # but apparently some variants of GNU ld only accept -v.
18202 # Break only if it was the GNU/non-GNU ld that we prefer.
18203 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18204 *GNU* | *'with BFD'*)
18205 test "$with_gnu_ld" != no && break
18208 test "$with_gnu_ld" != yes && break
18210 esac
18212 done
18213 IFS="$lt_save_ifs"
18214 else
18215 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18219 LD="$lt_cv_path_LD"
18220 if test -n "$LD"; then
18221 { echo "$as_me:$LINENO: result: $LD" >&5
18222 echo "${ECHO_T}$LD" >&6; }
18223 else
18224 { echo "$as_me:$LINENO: result: no" >&5
18225 echo "${ECHO_T}no" >&6; }
18227 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18228 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18229 { (exit 1); exit 1; }; }
18230 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18231 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18232 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18236 case `$LD -v 2>&1 </dev/null` in
18237 *GNU* | *'with BFD'*)
18238 lt_cv_prog_gnu_ld=yes
18241 lt_cv_prog_gnu_ld=no
18243 esac
18245 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18246 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18247 with_gnu_ld=$lt_cv_prog_gnu_ld
18251 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18252 # archiving commands below assume that GNU ld is being used.
18253 if test "$with_gnu_ld" = yes; then
18254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18255 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'
18257 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18260 # If archive_cmds runs LD, not CC, wlarc should be empty
18261 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18262 # investigate it a little bit more. (MM)
18263 wlarc='${wl}'
18265 # ancient GNU ld didn't support --whole-archive et. al.
18266 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18267 grep 'no-whole-archive' > /dev/null; then
18268 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18269 else
18270 whole_archive_flag_spec_CXX=
18272 else
18273 with_gnu_ld=no
18274 wlarc=
18276 # A generic and very simple default shared library creation
18277 # command for GNU C++ for the case where it uses the native
18278 # linker, instead of GNU ld. If possible, this setting should
18279 # overridden to take advantage of the native linker features on
18280 # the platform it is being used on.
18281 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18284 # Commands to make compiler produce verbose output that lists
18285 # what "hidden" libraries, object files and flags are used when
18286 # linking a shared library.
18287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18289 else
18290 GXX=no
18291 with_gnu_ld=no
18292 wlarc=
18295 # PORTME: fill in a description of your system's C++ link characteristics
18296 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18297 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18298 ld_shlibs_CXX=yes
18299 case $host_os in
18300 aix3*)
18301 # FIXME: insert proper C++ library support
18302 ld_shlibs_CXX=no
18304 aix4* | aix5*)
18305 if test "$host_cpu" = ia64; then
18306 # On IA64, the linker does run time linking by default, so we don't
18307 # have to do anything special.
18308 aix_use_runtimelinking=no
18309 exp_sym_flag='-Bexport'
18310 no_entry_flag=""
18311 else
18312 aix_use_runtimelinking=no
18314 # Test if we are trying to use run time linking or normal
18315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18316 # need to do runtime linking.
18317 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18318 for ld_flag in $LDFLAGS; do
18319 case $ld_flag in
18320 *-brtl*)
18321 aix_use_runtimelinking=yes
18322 break
18324 esac
18325 done
18327 esac
18329 exp_sym_flag='-bexport'
18330 no_entry_flag='-bnoentry'
18333 # When large executables or shared objects are built, AIX ld can
18334 # have problems creating the table of contents. If linking a library
18335 # or program results in "error TOC overflow" add -mminimal-toc to
18336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18339 archive_cmds_CXX=''
18340 hardcode_direct_CXX=yes
18341 hardcode_libdir_separator_CXX=':'
18342 link_all_deplibs_CXX=yes
18344 if test "$GXX" = yes; then
18345 case $host_os in aix4.[012]|aix4.[012].*)
18346 # We only want to do this on AIX 4.2 and lower, the check
18347 # below for broken collect2 doesn't work under 4.3+
18348 collect2name=`${CC} -print-prog-name=collect2`
18349 if test -f "$collect2name" && \
18350 strings "$collect2name" | grep resolve_lib_name >/dev/null
18351 then
18352 # We have reworked collect2
18353 hardcode_direct_CXX=yes
18354 else
18355 # We have old collect2
18356 hardcode_direct_CXX=unsupported
18357 # It fails to find uninstalled libraries when the uninstalled
18358 # path is not listed in the libpath. Setting hardcode_minus_L
18359 # to unsupported forces relinking
18360 hardcode_minus_L_CXX=yes
18361 hardcode_libdir_flag_spec_CXX='-L$libdir'
18362 hardcode_libdir_separator_CXX=
18365 esac
18366 shared_flag='-shared'
18367 if test "$aix_use_runtimelinking" = yes; then
18368 shared_flag="$shared_flag "'${wl}-G'
18370 else
18371 # not using gcc
18372 if test "$host_cpu" = ia64; then
18373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18374 # chokes on -Wl,-G. The following line is correct:
18375 shared_flag='-G'
18376 else
18377 if test "$aix_use_runtimelinking" = yes; then
18378 shared_flag='${wl}-G'
18379 else
18380 shared_flag='${wl}-bM:SRE'
18385 # It seems that -bexpall does not export symbols beginning with
18386 # underscore (_), so it is better to generate a list of symbols to export.
18387 always_export_symbols_CXX=yes
18388 if test "$aix_use_runtimelinking" = yes; then
18389 # Warning - without using the other runtime loading flags (-brtl),
18390 # -berok will link without error, but may produce a broken library.
18391 allow_undefined_flag_CXX='-berok'
18392 # Determine the default libpath from the value encoded in an empty executable.
18393 cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h. */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18401 main ()
18405 return 0;
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18426 esac
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436 esac
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18445 # Check for a 64-bit object if we didn't find anything.
18446 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; }
18447 }'`; fi
18448 else
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18455 rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18459 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18461 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"
18462 else
18463 if test "$host_cpu" = ia64; then
18464 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18465 allow_undefined_flag_CXX="-z nodefs"
18466 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"
18467 else
18468 # Determine the default libpath from the value encoded in an empty executable.
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18477 main ()
18481 return 0;
18483 _ACEOF
18484 rm -f conftest.$ac_objext conftest$ac_exeext
18485 if { (ac_try="$ac_link"
18486 case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18489 esac
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_link") 2>conftest.er1
18492 ac_status=$?
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18499 { (case "(($ac_try" in
18500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501 *) ac_try_echo=$ac_try;;
18502 esac
18503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504 (eval "$ac_try") 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try='test -s conftest$ac_exeext'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18521 # Check for a 64-bit object if we didn't find anything.
18522 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; }
18523 }'`; fi
18524 else
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18531 rm -f core conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18535 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18536 # Warning - without using the other run time loading flags,
18537 # -berok will link without error, but may produce a broken library.
18538 no_undefined_flag_CXX=' ${wl}-bernotok'
18539 allow_undefined_flag_CXX=' ${wl}-berok'
18540 # Exported symbols can be pulled into shared objects from archives
18541 whole_archive_flag_spec_CXX='$convenience'
18542 archive_cmds_need_lc_CXX=yes
18543 # This is similar to how AIX traditionally builds its shared libraries.
18544 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'
18549 beos*)
18550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18551 allow_undefined_flag_CXX=unsupported
18552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18553 # support --undefined. This deserves some investigation. FIXME
18554 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18555 else
18556 ld_shlibs_CXX=no
18560 chorus*)
18561 case $cc_basename in
18563 # FIXME: insert proper C++ library support
18564 ld_shlibs_CXX=no
18566 esac
18569 cygwin* | mingw* | pw32*)
18570 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18571 # as there is no search path for DLLs.
18572 hardcode_libdir_flag_spec_CXX='-L$libdir'
18573 allow_undefined_flag_CXX=unsupported
18574 always_export_symbols_CXX=no
18575 enable_shared_with_static_runtimes_CXX=yes
18577 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18578 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'
18579 # If the export-symbols file already is a .def file (1st line
18580 # is EXPORTS), use it as is; otherwise, prepend...
18581 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18582 cp $export_symbols $output_objdir/$soname.def;
18583 else
18584 echo EXPORTS > $output_objdir/$soname.def;
18585 cat $export_symbols >> $output_objdir/$soname.def;
18587 $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'
18588 else
18589 ld_shlibs_CXX=no
18592 darwin* | rhapsody*)
18593 case $host_os in
18594 rhapsody* | darwin1.[012])
18595 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18597 *) # Darwin 1.3 on
18598 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18599 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18600 else
18601 case ${MACOSX_DEPLOYMENT_TARGET} in
18602 10.[012])
18603 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18605 10.*)
18606 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18608 esac
18611 esac
18612 archive_cmds_need_lc_CXX=no
18613 hardcode_direct_CXX=no
18614 hardcode_automatic_CXX=yes
18615 hardcode_shlibpath_var_CXX=unsupported
18616 whole_archive_flag_spec_CXX=''
18617 link_all_deplibs_CXX=yes
18619 if test "$GXX" = yes ; then
18620 lt_int_apple_cc_single_mod=no
18621 output_verbose_link_cmd='echo'
18622 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18623 lt_int_apple_cc_single_mod=yes
18625 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18626 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18627 else
18628 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'
18630 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18631 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18632 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18633 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}'
18634 else
18635 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}'
18637 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}'
18638 else
18639 case $cc_basename in
18640 xlc*)
18641 output_verbose_link_cmd='echo'
18642 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'
18643 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18644 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18645 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}'
18646 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}'
18649 ld_shlibs_CXX=no
18651 esac
18655 dgux*)
18656 case $cc_basename in
18657 ec++*)
18658 # FIXME: insert proper C++ library support
18659 ld_shlibs_CXX=no
18661 ghcx*)
18662 # Green Hills C++ Compiler
18663 # FIXME: insert proper C++ library support
18664 ld_shlibs_CXX=no
18667 # FIXME: insert proper C++ library support
18668 ld_shlibs_CXX=no
18670 esac
18672 freebsd[12]*)
18673 # C++ shared libraries reported to be fairly broken before switch to ELF
18674 ld_shlibs_CXX=no
18676 freebsd-elf*)
18677 archive_cmds_need_lc_CXX=no
18679 freebsd* | kfreebsd*-gnu | dragonfly*)
18680 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18681 # conventions
18682 ld_shlibs_CXX=yes
18684 gnu*)
18686 hpux9*)
18687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18688 hardcode_libdir_separator_CXX=:
18689 export_dynamic_flag_spec_CXX='${wl}-E'
18690 hardcode_direct_CXX=yes
18691 hardcode_minus_L_CXX=yes # Not in the search PATH,
18692 # but as the default
18693 # location of the library.
18695 case $cc_basename in
18696 CC*)
18697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18700 aCC*)
18701 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'
18702 # Commands to make compiler produce verbose output that lists
18703 # what "hidden" libraries, object files and flags are used when
18704 # linking a shared library.
18706 # There doesn't appear to be a way to prevent this compiler from
18707 # explicitly linking system object files so we need to strip them
18708 # from the output so that they don't get included in the library
18709 # dependencies.
18710 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'
18713 if test "$GXX" = yes; then
18714 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'
18715 else
18716 # FIXME: insert proper C++ library support
18717 ld_shlibs_CXX=no
18720 esac
18722 hpux10*|hpux11*)
18723 if test $with_gnu_ld = no; then
18724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18725 hardcode_libdir_separator_CXX=:
18727 case $host_cpu in
18728 hppa*64*|ia64*)
18729 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18732 export_dynamic_flag_spec_CXX='${wl}-E'
18734 esac
18736 case $host_cpu in
18737 hppa*64*|ia64*)
18738 hardcode_direct_CXX=no
18739 hardcode_shlibpath_var_CXX=no
18742 hardcode_direct_CXX=yes
18743 hardcode_minus_L_CXX=yes # Not in the search PATH,
18744 # but as the default
18745 # location of the library.
18747 esac
18749 case $cc_basename in
18750 CC*)
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18754 aCC*)
18755 case $host_cpu in
18756 hppa*64*)
18757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18759 ia64*)
18760 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18763 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18765 esac
18766 # Commands to make compiler produce verbose output that lists
18767 # what "hidden" libraries, object files and flags are used when
18768 # linking a shared library.
18770 # There doesn't appear to be a way to prevent this compiler from
18771 # explicitly linking system object files so we need to strip them
18772 # from the output so that they don't get included in the library
18773 # dependencies.
18774 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'
18777 if test "$GXX" = yes; then
18778 if test $with_gnu_ld = no; then
18779 case $host_cpu in
18780 hppa*64*)
18781 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18783 ia64*)
18784 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18787 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'
18789 esac
18791 else
18792 # FIXME: insert proper C++ library support
18793 ld_shlibs_CXX=no
18796 esac
18798 interix3*)
18799 hardcode_direct_CXX=no
18800 hardcode_shlibpath_var_CXX=no
18801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18802 export_dynamic_flag_spec_CXX='${wl}-E'
18803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18804 # Instead, shared libraries are loaded at an image base (0x10000000 by
18805 # default) and relocated if they conflict, which is a slow very memory
18806 # consuming and fragmenting process. To avoid this, we pick a random,
18807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18808 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18809 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'
18810 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'
18812 irix5* | irix6*)
18813 case $cc_basename in
18814 CC*)
18815 # SGI C++
18816 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'
18818 # Archives containing C++ object files must be created using
18819 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18820 # necessary to make sure instantiated templates are included
18821 # in the archive.
18822 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18825 if test "$GXX" = yes; then
18826 if test "$with_gnu_ld" = no; then
18827 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'
18828 else
18829 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'
18832 link_all_deplibs_CXX=yes
18834 esac
18835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18836 hardcode_libdir_separator_CXX=:
18838 linux*)
18839 case $cc_basename in
18840 KCC*)
18841 # Kuck and Associates, Inc. (KAI) C++ Compiler
18843 # KCC will only create a shared library if the output file
18844 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18845 # to its proper name (with version) after linking.
18846 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'
18847 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'
18848 # Commands to make compiler produce verbose output that lists
18849 # what "hidden" libraries, object files and flags are used when
18850 # linking a shared library.
18852 # There doesn't appear to be a way to prevent this compiler from
18853 # explicitly linking system object files so we need to strip them
18854 # from the output so that they don't get included in the library
18855 # dependencies.
18856 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'
18858 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18861 # Archives containing C++ object files must be created using
18862 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18863 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18865 icpc*)
18866 # Intel C++
18867 with_gnu_ld=yes
18868 # version 8.0 and above of icpc choke on multiply defined symbols
18869 # if we add $predep_objects and $postdep_objects, however 7.1 and
18870 # earlier do not add the objects themselves.
18871 case `$CC -V 2>&1` in
18872 *"Version 7."*)
18873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18874 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'
18876 *) # Version 8.0 or newer
18877 tmp_idyn=
18878 case $host_cpu in
18879 ia64*) tmp_idyn=' -i_dynamic';;
18880 esac
18881 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18882 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'
18884 esac
18885 archive_cmds_need_lc_CXX=no
18886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18887 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18888 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18890 pgCC*)
18891 # Portland Group C++ compiler
18892 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18893 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'
18895 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18896 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18897 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'
18899 cxx*)
18900 # Compaq C++
18901 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18902 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'
18904 runpath_var=LD_RUN_PATH
18905 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18906 hardcode_libdir_separator_CXX=:
18908 # Commands to make compiler produce verbose output that lists
18909 # what "hidden" libraries, object files and flags are used when
18910 # linking a shared library.
18912 # There doesn't appear to be a way to prevent this compiler from
18913 # explicitly linking system object files so we need to strip them
18914 # from the output so that they don't get included in the library
18915 # dependencies.
18916 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'
18918 esac
18920 lynxos*)
18921 # FIXME: insert proper C++ library support
18922 ld_shlibs_CXX=no
18924 m88k*)
18925 # FIXME: insert proper C++ library support
18926 ld_shlibs_CXX=no
18928 mvs*)
18929 case $cc_basename in
18930 cxx*)
18931 # FIXME: insert proper C++ library support
18932 ld_shlibs_CXX=no
18935 # FIXME: insert proper C++ library support
18936 ld_shlibs_CXX=no
18938 esac
18940 netbsd*)
18941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18942 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18943 wlarc=
18944 hardcode_libdir_flag_spec_CXX='-R$libdir'
18945 hardcode_direct_CXX=yes
18946 hardcode_shlibpath_var_CXX=no
18948 # Workaround some broken pre-1.5 toolchains
18949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18951 openbsd2*)
18952 # C++ shared libraries are fairly broken
18953 ld_shlibs_CXX=no
18955 openbsd*)
18956 hardcode_direct_CXX=yes
18957 hardcode_shlibpath_var_CXX=no
18958 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18961 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18962 export_dynamic_flag_spec_CXX='${wl}-E'
18963 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18965 output_verbose_link_cmd='echo'
18967 osf3*)
18968 case $cc_basename in
18969 KCC*)
18970 # Kuck and Associates, Inc. (KAI) C++ Compiler
18972 # KCC will only create a shared library if the output file
18973 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18974 # to its proper name (with version) after linking.
18975 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'
18977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18978 hardcode_libdir_separator_CXX=:
18980 # Archives containing C++ object files must be created using
18981 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18982 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18985 RCC*)
18986 # Rational C++ 2.4.1
18987 # FIXME: insert proper C++ library support
18988 ld_shlibs_CXX=no
18990 cxx*)
18991 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18992 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'
18994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18995 hardcode_libdir_separator_CXX=:
18997 # Commands to make compiler produce verbose output that lists
18998 # what "hidden" libraries, object files and flags are used when
18999 # linking a shared library.
19001 # There doesn't appear to be a way to prevent this compiler from
19002 # explicitly linking system object files so we need to strip them
19003 # from the output so that they don't get included in the library
19004 # dependencies.
19005 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'
19008 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19009 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19010 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'
19012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19013 hardcode_libdir_separator_CXX=:
19015 # Commands to make compiler produce verbose output that lists
19016 # what "hidden" libraries, object files and flags are used when
19017 # linking a shared library.
19018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19020 else
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19025 esac
19027 osf4* | osf5*)
19028 case $cc_basename in
19029 KCC*)
19030 # Kuck and Associates, Inc. (KAI) C++ Compiler
19032 # KCC will only create a shared library if the output file
19033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19034 # to its proper name (with version) after linking.
19035 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'
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19038 hardcode_libdir_separator_CXX=:
19040 # Archives containing C++ object files must be created using
19041 # the KAI C++ compiler.
19042 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19044 RCC*)
19045 # Rational C++ 2.4.1
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19049 cxx*)
19050 allow_undefined_flag_CXX=' -expect_unresolved \*'
19051 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'
19052 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19053 echo "-hidden">> $lib.exp~
19054 $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~
19055 $rm $lib.exp'
19057 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19058 hardcode_libdir_separator_CXX=:
19060 # Commands to make compiler produce verbose output that lists
19061 # what "hidden" libraries, object files and flags are used when
19062 # linking a shared library.
19064 # There doesn't appear to be a way to prevent this compiler from
19065 # explicitly linking system object files so we need to strip them
19066 # from the output so that they don't get included in the library
19067 # dependencies.
19068 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'
19071 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19072 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19073 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'
19075 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19076 hardcode_libdir_separator_CXX=:
19078 # Commands to make compiler produce verbose output that lists
19079 # what "hidden" libraries, object files and flags are used when
19080 # linking a shared library.
19081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19083 else
19084 # FIXME: insert proper C++ library support
19085 ld_shlibs_CXX=no
19088 esac
19090 psos*)
19091 # FIXME: insert proper C++ library support
19092 ld_shlibs_CXX=no
19094 sunos4*)
19095 case $cc_basename in
19096 CC*)
19097 # Sun C++ 4.x
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19101 lcc*)
19102 # Lucid
19103 # FIXME: insert proper C++ library support
19104 ld_shlibs_CXX=no
19107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19110 esac
19112 solaris*)
19113 case $cc_basename in
19114 CC*)
19115 # Sun C++ 4.2, 5.x and Centerline C++
19116 archive_cmds_need_lc_CXX=yes
19117 no_undefined_flag_CXX=' -zdefs'
19118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19119 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19120 $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'
19122 hardcode_libdir_flag_spec_CXX='-R$libdir'
19123 hardcode_shlibpath_var_CXX=no
19124 case $host_os in
19125 solaris2.[0-5] | solaris2.[0-5].*) ;;
19127 # The C++ compiler is used as linker so we must use $wl
19128 # flag to pass the commands to the underlying system
19129 # linker. We must also pass each convience library through
19130 # to the system linker between allextract/defaultextract.
19131 # The C++ compiler will combine linker options so we
19132 # cannot just pass the convience library names through
19133 # without $wl.
19134 # Supported since Solaris 2.6 (maybe 2.5.1?)
19135 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'
19137 esac
19138 link_all_deplibs_CXX=yes
19140 output_verbose_link_cmd='echo'
19142 # Archives containing C++ object files must be created using
19143 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19144 # necessary to make sure instantiated templates are included
19145 # in the archive.
19146 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19148 gcx*)
19149 # Green Hills C++ Compiler
19150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19152 # The C++ compiler must be used to create the archive.
19153 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19156 # GNU C++ compiler with Solaris linker
19157 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19158 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19159 if $CC --version | grep -v '^2\.7' > /dev/null; then
19160 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19161 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19162 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
19167 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19168 else
19169 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19170 # platform.
19171 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19172 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19173 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19175 # Commands to make compiler produce verbose output that lists
19176 # what "hidden" libraries, object files and flags are used when
19177 # linking a shared library.
19178 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19181 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19184 esac
19186 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19187 no_undefined_flag_CXX='${wl}-z,text'
19188 archive_cmds_need_lc_CXX=no
19189 hardcode_shlibpath_var_CXX=no
19190 runpath_var='LD_RUN_PATH'
19192 case $cc_basename in
19193 CC*)
19194 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19195 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19198 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19199 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19201 esac
19203 sysv5* | sco3.2v5* | sco5v6*)
19204 # Note: We can NOT use -z defs as we might desire, because we do not
19205 # link with -lc, and that would cause any symbols used from libc to
19206 # always be unresolved, which means just about no library would
19207 # ever link correctly. If we're not using GNU ld we use -z text
19208 # though, which does catch some bad symbols but isn't as heavy-handed
19209 # as -z defs.
19210 # For security reasons, it is highly recommended that you always
19211 # use absolute paths for naming shared libraries, and exclude the
19212 # DT_RUNPATH tag from executables and libraries. But doing so
19213 # requires that you compile everything twice, which is a pain.
19214 # So that behaviour is only enabled if SCOABSPATH is set to a
19215 # non-empty value in the environment. Most likely only useful for
19216 # creating official distributions of packages.
19217 # This is a hack until libtool officially supports absolute path
19218 # names for shared libraries.
19219 no_undefined_flag_CXX='${wl}-z,text'
19220 allow_undefined_flag_CXX='${wl}-z,nodefs'
19221 archive_cmds_need_lc_CXX=no
19222 hardcode_shlibpath_var_CXX=no
19223 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19224 hardcode_libdir_separator_CXX=':'
19225 link_all_deplibs_CXX=yes
19226 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19227 runpath_var='LD_RUN_PATH'
19229 case $cc_basename in
19230 CC*)
19231 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19232 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19236 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19238 esac
19240 tandem*)
19241 case $cc_basename in
19242 NCC*)
19243 # NonStop-UX NCC 3.20
19244 # FIXME: insert proper C++ library support
19245 ld_shlibs_CXX=no
19248 # FIXME: insert proper C++ library support
19249 ld_shlibs_CXX=no
19251 esac
19253 vxworks*)
19254 # FIXME: insert proper C++ library support
19255 ld_shlibs_CXX=no
19258 # FIXME: insert proper C++ library support
19259 ld_shlibs_CXX=no
19261 esac
19262 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19263 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19264 test "$ld_shlibs_CXX" = no && can_build_shared=no
19266 GCC_CXX="$GXX"
19267 LD_CXX="$LD"
19270 cat > conftest.$ac_ext <<EOF
19271 class Foo
19273 public:
19274 Foo (void) { a = 0; }
19275 private:
19276 int a;
19280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19281 (eval $ac_compile) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; then
19285 # Parse the compiler output and extract the necessary
19286 # objects, libraries and library flags.
19288 # Sentinel used to keep track of whether or not we are before
19289 # the conftest object file.
19290 pre_test_object_deps_done=no
19292 # The `*' in the case matches for architectures that use `case' in
19293 # $output_verbose_cmd can trigger glob expansion during the loop
19294 # eval without this substitution.
19295 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19297 for p in `eval $output_verbose_link_cmd`; do
19298 case $p in
19300 -L* | -R* | -l*)
19301 # Some compilers place space between "-{L,R}" and the path.
19302 # Remove the space.
19303 if test $p = "-L" \
19304 || test $p = "-R"; then
19305 prev=$p
19306 continue
19307 else
19308 prev=
19311 if test "$pre_test_object_deps_done" = no; then
19312 case $p in
19313 -L* | -R*)
19314 # Internal compiler library paths should come after those
19315 # provided the user. The postdeps already come after the
19316 # user supplied libs so there is no need to process them.
19317 if test -z "$compiler_lib_search_path_CXX"; then
19318 compiler_lib_search_path_CXX="${prev}${p}"
19319 else
19320 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19323 # The "-l" case would never come before the object being
19324 # linked, so don't bother handling this case.
19325 esac
19326 else
19327 if test -z "$postdeps_CXX"; then
19328 postdeps_CXX="${prev}${p}"
19329 else
19330 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19335 *.$objext)
19336 # This assumes that the test object file only shows up
19337 # once in the compiler output.
19338 if test "$p" = "conftest.$objext"; then
19339 pre_test_object_deps_done=yes
19340 continue
19343 if test "$pre_test_object_deps_done" = no; then
19344 if test -z "$predep_objects_CXX"; then
19345 predep_objects_CXX="$p"
19346 else
19347 predep_objects_CXX="$predep_objects_CXX $p"
19349 else
19350 if test -z "$postdep_objects_CXX"; then
19351 postdep_objects_CXX="$p"
19352 else
19353 postdep_objects_CXX="$postdep_objects_CXX $p"
19358 *) ;; # Ignore the rest.
19360 esac
19361 done
19363 # Clean up.
19364 rm -f a.out a.exe
19365 else
19366 echo "libtool.m4: error: problem compiling CXX test program"
19369 $rm -f confest.$objext
19371 # PORTME: override above test on systems where it is broken
19372 case $host_os in
19373 interix3*)
19374 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19375 # hack all around it, let's just trust "g++" to DTRT.
19376 predep_objects_CXX=
19377 postdep_objects_CXX=
19378 postdeps_CXX=
19381 solaris*)
19382 case $cc_basename in
19383 CC*)
19384 # Adding this requires a known-good setup of shared libraries for
19385 # Sun compiler versions before 5.6, else PIC objects from an old
19386 # archive will be linked into the output, leading to subtle bugs.
19387 postdeps_CXX='-lCstd -lCrun'
19389 esac
19391 esac
19394 case " $postdeps_CXX " in
19395 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19396 esac
19398 lt_prog_compiler_wl_CXX=
19399 lt_prog_compiler_pic_CXX=
19400 lt_prog_compiler_static_CXX=
19402 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19403 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19405 # C++ specific cases for pic, static, wl, etc.
19406 if test "$GXX" = yes; then
19407 lt_prog_compiler_wl_CXX='-Wl,'
19408 lt_prog_compiler_static_CXX='-static'
19410 case $host_os in
19411 aix*)
19412 # All AIX code is PIC.
19413 if test "$host_cpu" = ia64; then
19414 # AIX 5 now supports IA64 processor
19415 lt_prog_compiler_static_CXX='-Bstatic'
19418 amigaos*)
19419 # FIXME: we need at least 68020 code to build shared libraries, but
19420 # adding the `-m68020' flag to GCC prevents building anything better,
19421 # like `-m68040'.
19422 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19424 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19425 # PIC is the default for these OSes.
19427 mingw* | os2* | pw32*)
19428 # This hack is so that the source file can tell whether it is being
19429 # built for inclusion in a dll (and should export symbols for example).
19430 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19432 darwin* | rhapsody*)
19433 # PIC is the default on this platform
19434 # Common symbols not allowed in MH_DYLIB files
19435 lt_prog_compiler_pic_CXX='-fno-common'
19437 *djgpp*)
19438 # DJGPP does not support shared libraries at all
19439 lt_prog_compiler_pic_CXX=
19441 interix3*)
19442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19443 # Instead, we relocate shared libraries at runtime.
19445 sysv4*MP*)
19446 if test -d /usr/nec; then
19447 lt_prog_compiler_pic_CXX=-Kconform_pic
19450 hpux*)
19451 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19452 # not for PA HP-UX.
19453 case $host_cpu in
19454 hppa*64*|ia64*)
19457 lt_prog_compiler_pic_CXX='-fPIC'
19459 esac
19462 lt_prog_compiler_pic_CXX='-fPIC'
19464 esac
19465 else
19466 case $host_os in
19467 aix4* | aix5*)
19468 # All AIX code is PIC.
19469 if test "$host_cpu" = ia64; then
19470 # AIX 5 now supports IA64 processor
19471 lt_prog_compiler_static_CXX='-Bstatic'
19472 else
19473 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19476 chorus*)
19477 case $cc_basename in
19478 cxch68*)
19479 # Green Hills C++ Compiler
19480 # _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"
19482 esac
19484 darwin*)
19485 # PIC is the default on this platform
19486 # Common symbols not allowed in MH_DYLIB files
19487 case $cc_basename in
19488 xlc*)
19489 lt_prog_compiler_pic_CXX='-qnocommon'
19490 lt_prog_compiler_wl_CXX='-Wl,'
19492 esac
19494 dgux*)
19495 case $cc_basename in
19496 ec++*)
19497 lt_prog_compiler_pic_CXX='-KPIC'
19499 ghcx*)
19500 # Green Hills C++ Compiler
19501 lt_prog_compiler_pic_CXX='-pic'
19505 esac
19507 freebsd* | kfreebsd*-gnu | dragonfly*)
19508 # FreeBSD uses GNU C++
19510 hpux9* | hpux10* | hpux11*)
19511 case $cc_basename in
19512 CC*)
19513 lt_prog_compiler_wl_CXX='-Wl,'
19514 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19515 if test "$host_cpu" != ia64; then
19516 lt_prog_compiler_pic_CXX='+Z'
19519 aCC*)
19520 lt_prog_compiler_wl_CXX='-Wl,'
19521 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19522 case $host_cpu in
19523 hppa*64*|ia64*)
19524 # +Z the default
19527 lt_prog_compiler_pic_CXX='+Z'
19529 esac
19533 esac
19535 interix*)
19536 # This is c89, which is MS Visual C++ (no shared libs)
19537 # Anyone wants to do a port?
19539 irix5* | irix6* | nonstopux*)
19540 case $cc_basename in
19541 CC*)
19542 lt_prog_compiler_wl_CXX='-Wl,'
19543 lt_prog_compiler_static_CXX='-non_shared'
19544 # CC pic flag -KPIC is the default.
19548 esac
19550 linux*)
19551 case $cc_basename in
19552 KCC*)
19553 # KAI C++ Compiler
19554 lt_prog_compiler_wl_CXX='--backend -Wl,'
19555 lt_prog_compiler_pic_CXX='-fPIC'
19557 icpc* | ecpc*)
19558 # Intel C++
19559 lt_prog_compiler_wl_CXX='-Wl,'
19560 lt_prog_compiler_pic_CXX='-KPIC'
19561 lt_prog_compiler_static_CXX='-static'
19563 pgCC*)
19564 # Portland Group C++ compiler.
19565 lt_prog_compiler_wl_CXX='-Wl,'
19566 lt_prog_compiler_pic_CXX='-fpic'
19567 lt_prog_compiler_static_CXX='-Bstatic'
19569 cxx*)
19570 # Compaq C++
19571 # Make sure the PIC flag is empty. It appears that all Alpha
19572 # Linux and Compaq Tru64 Unix objects are PIC.
19573 lt_prog_compiler_pic_CXX=
19574 lt_prog_compiler_static_CXX='-non_shared'
19578 esac
19580 lynxos*)
19582 m88k*)
19584 mvs*)
19585 case $cc_basename in
19586 cxx*)
19587 lt_prog_compiler_pic_CXX='-W c,exportall'
19591 esac
19593 netbsd*)
19595 osf3* | osf4* | osf5*)
19596 case $cc_basename in
19597 KCC*)
19598 lt_prog_compiler_wl_CXX='--backend -Wl,'
19600 RCC*)
19601 # Rational C++ 2.4.1
19602 lt_prog_compiler_pic_CXX='-pic'
19604 cxx*)
19605 # Digital/Compaq C++
19606 lt_prog_compiler_wl_CXX='-Wl,'
19607 # Make sure the PIC flag is empty. It appears that all Alpha
19608 # Linux and Compaq Tru64 Unix objects are PIC.
19609 lt_prog_compiler_pic_CXX=
19610 lt_prog_compiler_static_CXX='-non_shared'
19614 esac
19616 psos*)
19618 solaris*)
19619 case $cc_basename in
19620 CC*)
19621 # Sun C++ 4.2, 5.x and Centerline C++
19622 lt_prog_compiler_pic_CXX='-KPIC'
19623 lt_prog_compiler_static_CXX='-Bstatic'
19624 lt_prog_compiler_wl_CXX='-Qoption ld '
19626 gcx*)
19627 # Green Hills C++ Compiler
19628 lt_prog_compiler_pic_CXX='-PIC'
19632 esac
19634 sunos4*)
19635 case $cc_basename in
19636 CC*)
19637 # Sun C++ 4.x
19638 lt_prog_compiler_pic_CXX='-pic'
19639 lt_prog_compiler_static_CXX='-Bstatic'
19641 lcc*)
19642 # Lucid
19643 lt_prog_compiler_pic_CXX='-pic'
19647 esac
19649 tandem*)
19650 case $cc_basename in
19651 NCC*)
19652 # NonStop-UX NCC 3.20
19653 lt_prog_compiler_pic_CXX='-KPIC'
19657 esac
19659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19660 case $cc_basename in
19661 CC*)
19662 lt_prog_compiler_wl_CXX='-Wl,'
19663 lt_prog_compiler_pic_CXX='-KPIC'
19664 lt_prog_compiler_static_CXX='-Bstatic'
19666 esac
19668 vxworks*)
19671 lt_prog_compiler_can_build_shared_CXX=no
19673 esac
19676 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19677 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19680 # Check to make sure the PIC flag actually works.
19682 if test -n "$lt_prog_compiler_pic_CXX"; then
19684 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19686 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689 lt_prog_compiler_pic_works_CXX=no
19690 ac_outfile=conftest.$ac_objext
19691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19692 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19693 # Insert the option either (1) after the last *FLAGS variable, or
19694 # (2) before a word containing "conftest.", or (3) at the end.
19695 # Note that $ac_compile itself does not contain backslashes and begins
19696 # with a dollar sign (not a hyphen), so the echo should work correctly.
19697 # The option is referenced via a variable to avoid confusing sed.
19698 lt_compile=`echo "$ac_compile" | $SED \
19699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19701 -e 's:$: $lt_compiler_flag:'`
19702 (eval echo "\"\$as_me:19702: $lt_compile\"" >&5)
19703 (eval "$lt_compile" 2>conftest.err)
19704 ac_status=$?
19705 cat conftest.err >&5
19706 echo "$as_me:19706: \$? = $ac_status" >&5
19707 if (exit $ac_status) && test -s "$ac_outfile"; then
19708 # The compiler can only warn and ignore the option if not recognized
19709 # So say no if there are warnings other than the usual output.
19710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19713 lt_prog_compiler_pic_works_CXX=yes
19716 $rm conftest*
19719 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19720 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19722 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19723 case $lt_prog_compiler_pic_CXX in
19724 "" | " "*) ;;
19725 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19726 esac
19727 else
19728 lt_prog_compiler_pic_CXX=
19729 lt_prog_compiler_can_build_shared_CXX=no
19733 case $host_os in
19734 # For platforms which do not support PIC, -DPIC is meaningless:
19735 *djgpp*)
19736 lt_prog_compiler_pic_CXX=
19739 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19741 esac
19744 # Check to make sure the static flag actually works.
19746 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19747 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19749 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 lt_prog_compiler_static_works_CXX=no
19753 save_LDFLAGS="$LDFLAGS"
19754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19755 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19757 # The linker can only warn and ignore the option if not recognized
19758 # So say no if there are warnings
19759 if test -s conftest.err; then
19760 # Append any errors to the config.log.
19761 cat conftest.err 1>&5
19762 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19764 if diff conftest.exp conftest.er2 >/dev/null; then
19765 lt_prog_compiler_static_works_CXX=yes
19767 else
19768 lt_prog_compiler_static_works_CXX=yes
19771 $rm conftest*
19772 LDFLAGS="$save_LDFLAGS"
19775 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19776 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19778 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19780 else
19781 lt_prog_compiler_static_CXX=
19785 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19786 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19787 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790 lt_cv_prog_compiler_c_o_CXX=no
19791 $rm -r conftest 2>/dev/null
19792 mkdir conftest
19793 cd conftest
19794 mkdir out
19795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19797 lt_compiler_flag="-o out/conftest2.$ac_objext"
19798 # Insert the option either (1) after the last *FLAGS variable, or
19799 # (2) before a word containing "conftest.", or (3) at the end.
19800 # Note that $ac_compile itself does not contain backslashes and begins
19801 # with a dollar sign (not a hyphen), so the echo should work correctly.
19802 lt_compile=`echo "$ac_compile" | $SED \
19803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19805 -e 's:$: $lt_compiler_flag:'`
19806 (eval echo "\"\$as_me:19806: $lt_compile\"" >&5)
19807 (eval "$lt_compile" 2>out/conftest.err)
19808 ac_status=$?
19809 cat out/conftest.err >&5
19810 echo "$as_me:19810: \$? = $ac_status" >&5
19811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19812 then
19813 # The compiler can only warn and ignore the option if not recognized
19814 # So say no if there are warnings
19815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19818 lt_cv_prog_compiler_c_o_CXX=yes
19821 chmod u+w . 2>&5
19822 $rm conftest*
19823 # SGI C++ compiler will create directory out/ii_files/ for
19824 # template instantiation
19825 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19826 $rm out/* && rmdir out
19827 cd ..
19828 rmdir conftest
19829 $rm conftest*
19832 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19833 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19836 hard_links="nottested"
19837 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19838 # do not overwrite the value of need_locks provided by the user
19839 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19840 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19841 hard_links=yes
19842 $rm conftest*
19843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19844 touch conftest.a
19845 ln conftest.a conftest.b 2>&5 || hard_links=no
19846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19847 { echo "$as_me:$LINENO: result: $hard_links" >&5
19848 echo "${ECHO_T}$hard_links" >&6; }
19849 if test "$hard_links" = no; then
19850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19851 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19852 need_locks=warn
19854 else
19855 need_locks=no
19858 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19859 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19861 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19862 case $host_os in
19863 aix4* | aix5*)
19864 # If we're using GNU nm, then we don't want the "-C" option.
19865 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19866 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19867 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'
19868 else
19869 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'
19872 pw32*)
19873 export_symbols_cmds_CXX="$ltdll_cmds"
19875 cygwin* | mingw*)
19876 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'
19879 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19881 esac
19883 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19884 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19885 test "$ld_shlibs_CXX" = no && can_build_shared=no
19888 # Do we need to explicitly link libc?
19890 case "x$archive_cmds_need_lc_CXX" in
19891 x|xyes)
19892 # Assume -lc should be added
19893 archive_cmds_need_lc_CXX=yes
19895 if test "$enable_shared" = yes && test "$GCC" = yes; then
19896 case $archive_cmds_CXX in
19897 *'~'*)
19898 # FIXME: we may have to deal with multi-command sequences.
19900 '$CC '*)
19901 # Test whether the compiler implicitly links with -lc since on some
19902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19903 # to ld, don't add -lc before -lgcc.
19904 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19905 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19906 $rm conftest*
19907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } 2>conftest.err; then
19914 soname=conftest
19915 lib=conftest
19916 libobjs=conftest.$ac_objext
19917 deplibs=
19918 wl=$lt_prog_compiler_wl_CXX
19919 pic_flag=$lt_prog_compiler_pic_CXX
19920 compiler_flags=-v
19921 linker_flags=-v
19922 verstring=
19923 output_objdir=.
19924 libname=conftest
19925 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19926 allow_undefined_flag_CXX=
19927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19928 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }
19932 then
19933 archive_cmds_need_lc_CXX=no
19934 else
19935 archive_cmds_need_lc_CXX=yes
19937 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19938 else
19939 cat conftest.err 1>&5
19941 $rm conftest*
19942 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19943 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19945 esac
19948 esac
19950 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19951 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19952 library_names_spec=
19953 libname_spec='lib$name'
19954 soname_spec=
19955 shrext_cmds=".so"
19956 postinstall_cmds=
19957 postuninstall_cmds=
19958 finish_cmds=
19959 finish_eval=
19960 shlibpath_var=
19961 shlibpath_overrides_runpath=unknown
19962 version_type=none
19963 dynamic_linker="$host_os ld.so"
19964 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19965 if test "$GCC" = yes; then
19966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19967 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19968 # if the path contains ";" then we assume it to be the separator
19969 # otherwise default to the standard path separator (i.e. ":") - it is
19970 # assumed that no part of a normal pathname contains ";" but that should
19971 # okay in the real world where ";" in dirpaths is itself problematic.
19972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19973 else
19974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19976 else
19977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19979 need_lib_prefix=unknown
19980 hardcode_into_libs=no
19982 # when you set need_version to no, make sure it does not cause -set_version
19983 # flags to be left without arguments
19984 need_version=unknown
19986 case $host_os in
19987 aix3*)
19988 version_type=linux
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19990 shlibpath_var=LIBPATH
19992 # AIX 3 has no versioning support, so we append a major version to the name.
19993 soname_spec='${libname}${release}${shared_ext}$major'
19996 aix4* | aix5*)
19997 version_type=linux
19998 need_lib_prefix=no
19999 need_version=no
20000 hardcode_into_libs=yes
20001 if test "$host_cpu" = ia64; then
20002 # AIX 5 supports IA64
20003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20004 shlibpath_var=LD_LIBRARY_PATH
20005 else
20006 # With GCC up to 2.95.x, collect2 would create an import file
20007 # for dependence libraries. The import file would start with
20008 # the line `#! .'. This would cause the generated library to
20009 # depend on `.', always an invalid library. This was fixed in
20010 # development snapshots of GCC prior to 3.0.
20011 case $host_os in
20012 aix4 | aix4.[01] | aix4.[01].*)
20013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20014 echo ' yes '
20015 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20017 else
20018 can_build_shared=no
20021 esac
20022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20023 # soname into executable. Probably we can add versioning support to
20024 # collect2, so additional links can be useful in future.
20025 if test "$aix_use_runtimelinking" = yes; then
20026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20027 # instead of lib<name>.a to let people know that these are not
20028 # typical AIX shared libraries.
20029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20030 else
20031 # We preserve .a as extension for shared libraries through AIX4.2
20032 # and later when we are not doing run time linking.
20033 library_names_spec='${libname}${release}.a $libname.a'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20036 shlibpath_var=LIBPATH
20040 amigaos*)
20041 library_names_spec='$libname.ixlibrary $libname.a'
20042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20043 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'
20046 beos*)
20047 library_names_spec='${libname}${shared_ext}'
20048 dynamic_linker="$host_os ld.so"
20049 shlibpath_var=LIBRARY_PATH
20052 bsdi[45]*)
20053 version_type=linux
20054 need_version=no
20055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20056 soname_spec='${libname}${release}${shared_ext}$major'
20057 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20058 shlibpath_var=LD_LIBRARY_PATH
20059 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20060 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20061 # the default ld.so.conf also contains /usr/contrib/lib and
20062 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20063 # libtool to hard-code these into programs
20066 cygwin* | mingw* | pw32*)
20067 version_type=windows
20068 shrext_cmds=".dll"
20069 need_version=no
20070 need_lib_prefix=no
20072 case $GCC,$host_os in
20073 yes,cygwin* | yes,mingw* | yes,pw32*)
20074 library_names_spec='$libname.dll.a'
20075 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20076 postinstall_cmds='base_file=`basename \${file}`~
20077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20078 dldir=$destdir/`dirname \$dlpath`~
20079 test -d \$dldir || mkdir -p \$dldir~
20080 $install_prog $dir/$dlname \$dldir/$dlname~
20081 chmod a+x \$dldir/$dlname'
20082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20083 dlpath=$dir/\$dldll~
20084 $rm \$dlpath'
20085 shlibpath_overrides_runpath=yes
20087 case $host_os in
20088 cygwin*)
20089 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20090 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20091 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20093 mingw*)
20094 # MinGW DLLs use traditional 'lib' prefix
20095 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20097 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20098 # It is most probably a Windows format PATH printed by
20099 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20100 # path with ; separators, and with drive letters. We can handle the
20101 # drive letters (cygwin fileutils understands them), so leave them,
20102 # especially as we might pass files found there to a mingw objdump,
20103 # which wouldn't understand a cygwinified path. Ahh.
20104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20105 else
20106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20109 pw32*)
20110 # pw32 DLLs use 'pw' prefix rather than 'lib'
20111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20113 esac
20117 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20119 esac
20120 dynamic_linker='Win32 ld.exe'
20121 # FIXME: first we should search . and the directory the executable is in
20122 shlibpath_var=PATH
20125 darwin* | rhapsody*)
20126 dynamic_linker="$host_os dyld"
20127 version_type=darwin
20128 need_lib_prefix=no
20129 need_version=no
20130 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20131 soname_spec='${libname}${release}${major}$shared_ext'
20132 shlibpath_overrides_runpath=yes
20133 shlibpath_var=DYLD_LIBRARY_PATH
20134 shrext_cmds='.dylib'
20135 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20136 if test "$GCC" = yes; then
20137 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"`
20138 else
20139 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20144 dgux*)
20145 version_type=linux
20146 need_lib_prefix=no
20147 need_version=no
20148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20149 soname_spec='${libname}${release}${shared_ext}$major'
20150 shlibpath_var=LD_LIBRARY_PATH
20153 freebsd1*)
20154 dynamic_linker=no
20157 kfreebsd*-gnu)
20158 version_type=linux
20159 need_lib_prefix=no
20160 need_version=no
20161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 shlibpath_var=LD_LIBRARY_PATH
20164 shlibpath_overrides_runpath=no
20165 hardcode_into_libs=yes
20166 dynamic_linker='GNU ld.so'
20169 freebsd* | dragonfly*)
20170 # DragonFly does not have aout. When/if they implement a new
20171 # versioning mechanism, adjust this.
20172 if test -x /usr/bin/objformat; then
20173 objformat=`/usr/bin/objformat`
20174 else
20175 case $host_os in
20176 freebsd[123]*) objformat=aout ;;
20177 *) objformat=elf ;;
20178 esac
20180 version_type=freebsd-$objformat
20181 case $version_type in
20182 freebsd-elf*)
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20184 need_version=no
20185 need_lib_prefix=no
20187 freebsd-*)
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20189 need_version=yes
20191 esac
20192 shlibpath_var=LD_LIBRARY_PATH
20193 case $host_os in
20194 freebsd2*)
20195 shlibpath_overrides_runpath=yes
20197 freebsd3.[01]* | freebsdelf3.[01]*)
20198 shlibpath_overrides_runpath=yes
20199 hardcode_into_libs=yes
20201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20203 shlibpath_overrides_runpath=no
20204 hardcode_into_libs=yes
20206 freebsd*) # from 4.6 on
20207 shlibpath_overrides_runpath=yes
20208 hardcode_into_libs=yes
20210 esac
20213 gnu*)
20214 version_type=linux
20215 need_lib_prefix=no
20216 need_version=no
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20218 soname_spec='${libname}${release}${shared_ext}$major'
20219 shlibpath_var=LD_LIBRARY_PATH
20220 hardcode_into_libs=yes
20223 hpux9* | hpux10* | hpux11*)
20224 # Give a soname corresponding to the major version so that dld.sl refuses to
20225 # link against other versions.
20226 version_type=sunos
20227 need_lib_prefix=no
20228 need_version=no
20229 case $host_cpu in
20230 ia64*)
20231 shrext_cmds='.so'
20232 hardcode_into_libs=yes
20233 dynamic_linker="$host_os dld.so"
20234 shlibpath_var=LD_LIBRARY_PATH
20235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 if test "X$HPUX_IA64_MODE" = X32; then
20239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20240 else
20241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20245 hppa*64*)
20246 shrext_cmds='.sl'
20247 hardcode_into_libs=yes
20248 dynamic_linker="$host_os dld.sl"
20249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20257 shrext_cmds='.sl'
20258 dynamic_linker="$host_os dld.sl"
20259 shlibpath_var=SHLIB_PATH
20260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20264 esac
20265 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20266 postinstall_cmds='chmod 555 $lib'
20269 interix3*)
20270 version_type=linux
20271 need_lib_prefix=no
20272 need_version=no
20273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20274 soname_spec='${libname}${release}${shared_ext}$major'
20275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 shlibpath_overrides_runpath=no
20278 hardcode_into_libs=yes
20281 irix5* | irix6* | nonstopux*)
20282 case $host_os in
20283 nonstopux*) version_type=nonstopux ;;
20285 if test "$lt_cv_prog_gnu_ld" = yes; then
20286 version_type=linux
20287 else
20288 version_type=irix
20289 fi ;;
20290 esac
20291 need_lib_prefix=no
20292 need_version=no
20293 soname_spec='${libname}${release}${shared_ext}$major'
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20295 case $host_os in
20296 irix5* | nonstopux*)
20297 libsuff= shlibsuff=
20300 case $LD in # libtool.m4 will add one of these switches to LD
20301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20302 libsuff= shlibsuff= libmagic=32-bit;;
20303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20304 libsuff=32 shlibsuff=N32 libmagic=N32;;
20305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20307 *) libsuff= shlibsuff= libmagic=never-match;;
20308 esac
20310 esac
20311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20312 shlibpath_overrides_runpath=no
20313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20315 hardcode_into_libs=yes
20318 # No shared lib support for Linux oldld, aout, or coff.
20319 linux*oldld* | linux*aout* | linux*coff*)
20320 dynamic_linker=no
20323 # This must be Linux ELF.
20324 linux*)
20325 version_type=linux
20326 need_lib_prefix=no
20327 need_version=no
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 soname_spec='${libname}${release}${shared_ext}$major'
20330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20331 shlibpath_var=LD_LIBRARY_PATH
20332 shlibpath_overrides_runpath=no
20333 # This implies no fast_install, which is unacceptable.
20334 # Some rework will be needed to allow for fast_install
20335 # before this can be enabled.
20336 hardcode_into_libs=yes
20338 # Append ld.so.conf contents to the search path
20339 if test -f /etc/ld.so.conf; then
20340 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' ' '`
20341 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20344 # We used to test for /lib/ld.so.1 and disable shared libraries on
20345 # powerpc, because MkLinux only supported shared libraries with the
20346 # GNU dynamic linker. Since this was broken with cross compilers,
20347 # most powerpc-linux boxes support dynamic linking these days and
20348 # people can always --disable-shared, the test was removed, and we
20349 # assume the GNU/Linux dynamic linker is in use.
20350 dynamic_linker='GNU/Linux ld.so'
20353 knetbsd*-gnu)
20354 version_type=linux
20355 need_lib_prefix=no
20356 need_version=no
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=no
20361 hardcode_into_libs=yes
20362 dynamic_linker='GNU ld.so'
20365 netbsd*)
20366 version_type=sunos
20367 need_lib_prefix=no
20368 need_version=no
20369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20372 dynamic_linker='NetBSD (a.out) ld.so'
20373 else
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 dynamic_linker='NetBSD ld.elf_so'
20378 shlibpath_var=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath=yes
20380 hardcode_into_libs=yes
20383 newsos6)
20384 version_type=linux
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 shlibpath_overrides_runpath=yes
20390 nto-qnx*)
20391 version_type=linux
20392 need_lib_prefix=no
20393 need_version=no
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 shlibpath_overrides_runpath=yes
20400 openbsd*)
20401 version_type=sunos
20402 sys_lib_dlsearch_path_spec="/usr/lib"
20403 need_lib_prefix=no
20404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20405 case $host_os in
20406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20407 *) need_version=no ;;
20408 esac
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20413 case $host_os in
20414 openbsd2.[89] | openbsd2.[89].*)
20415 shlibpath_overrides_runpath=no
20418 shlibpath_overrides_runpath=yes
20420 esac
20421 else
20422 shlibpath_overrides_runpath=yes
20426 os2*)
20427 libname_spec='$name'
20428 shrext_cmds=".dll"
20429 need_lib_prefix=no
20430 library_names_spec='$libname${shared_ext} $libname.a'
20431 dynamic_linker='OS/2 ld.exe'
20432 shlibpath_var=LIBPATH
20435 osf3* | osf4* | osf5*)
20436 version_type=osf
20437 need_lib_prefix=no
20438 need_version=no
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20446 solaris*)
20447 version_type=linux
20448 need_lib_prefix=no
20449 need_version=no
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451 soname_spec='${libname}${release}${shared_ext}$major'
20452 shlibpath_var=LD_LIBRARY_PATH
20453 shlibpath_overrides_runpath=yes
20454 hardcode_into_libs=yes
20455 # ldd complains unless libraries are executable
20456 postinstall_cmds='chmod +x $lib'
20459 sunos4*)
20460 version_type=sunos
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 shlibpath_overrides_runpath=yes
20465 if test "$with_gnu_ld" = yes; then
20466 need_lib_prefix=no
20468 need_version=yes
20471 sysv4 | sysv4.3*)
20472 version_type=linux
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 soname_spec='${libname}${release}${shared_ext}$major'
20475 shlibpath_var=LD_LIBRARY_PATH
20476 case $host_vendor in
20477 sni)
20478 shlibpath_overrides_runpath=no
20479 need_lib_prefix=no
20480 export_dynamic_flag_spec='${wl}-Blargedynsym'
20481 runpath_var=LD_RUN_PATH
20483 siemens)
20484 need_lib_prefix=no
20486 motorola)
20487 need_lib_prefix=no
20488 need_version=no
20489 shlibpath_overrides_runpath=no
20490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20492 esac
20495 sysv4*MP*)
20496 if test -d /usr/nec ;then
20497 version_type=linux
20498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20499 soname_spec='$libname${shared_ext}.$major'
20500 shlibpath_var=LD_LIBRARY_PATH
20504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20505 version_type=freebsd-elf
20506 need_lib_prefix=no
20507 need_version=no
20508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 hardcode_into_libs=yes
20512 if test "$with_gnu_ld" = yes; then
20513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20514 shlibpath_overrides_runpath=no
20515 else
20516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20517 shlibpath_overrides_runpath=yes
20518 case $host_os in
20519 sco3.2v5*)
20520 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20522 esac
20524 sys_lib_dlsearch_path_spec='/usr/lib'
20527 uts4*)
20528 version_type=linux
20529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20530 soname_spec='${libname}${release}${shared_ext}$major'
20531 shlibpath_var=LD_LIBRARY_PATH
20535 dynamic_linker=no
20537 esac
20538 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20539 echo "${ECHO_T}$dynamic_linker" >&6; }
20540 test "$dynamic_linker" = no && can_build_shared=no
20542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20543 if test "$GCC" = yes; then
20544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20547 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20548 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20549 hardcode_action_CXX=
20550 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20551 test -n "$runpath_var_CXX" || \
20552 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20554 # We can hardcode non-existant directories.
20555 if test "$hardcode_direct_CXX" != no &&
20556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20557 # have to relink, otherwise we might link with an installed library
20558 # when we should be linking with a yet-to-be-installed one
20559 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20560 test "$hardcode_minus_L_CXX" != no; then
20561 # Linking always hardcodes the temporary library directory.
20562 hardcode_action_CXX=relink
20563 else
20564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20565 hardcode_action_CXX=immediate
20567 else
20568 # We cannot hardcode anything, or else we can only hardcode existing
20569 # directories.
20570 hardcode_action_CXX=unsupported
20572 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20573 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20575 if test "$hardcode_action_CXX" = relink; then
20576 # Fast installation is not supported
20577 enable_fast_install=no
20578 elif test "$shlibpath_overrides_runpath" = yes ||
20579 test "$enable_shared" = no; then
20580 # Fast installation is not necessary
20581 enable_fast_install=needless
20585 # The else clause should only fire when bootstrapping the
20586 # libtool distribution, otherwise you forgot to ship ltmain.sh
20587 # with your package, and you will get complaints that there are
20588 # no rules to generate ltmain.sh.
20589 if test -f "$ltmain"; then
20590 # See if we are running on zsh, and set the options which allow our commands through
20591 # without removal of \ escapes.
20592 if test -n "${ZSH_VERSION+set}" ; then
20593 setopt NO_GLOB_SUBST
20595 # Now quote all the things that may contain metacharacters while being
20596 # careful not to overquote the AC_SUBSTed values. We take copies of the
20597 # variables and quote the copies for generation of the libtool script.
20598 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20599 SED SHELL STRIP \
20600 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20601 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20602 deplibs_check_method reload_flag reload_cmds need_locks \
20603 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20604 lt_cv_sys_global_symbol_to_c_name_address \
20605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20606 old_postinstall_cmds old_postuninstall_cmds \
20607 compiler_CXX \
20608 CC_CXX \
20609 LD_CXX \
20610 lt_prog_compiler_wl_CXX \
20611 lt_prog_compiler_pic_CXX \
20612 lt_prog_compiler_static_CXX \
20613 lt_prog_compiler_no_builtin_flag_CXX \
20614 export_dynamic_flag_spec_CXX \
20615 thread_safe_flag_spec_CXX \
20616 whole_archive_flag_spec_CXX \
20617 enable_shared_with_static_runtimes_CXX \
20618 old_archive_cmds_CXX \
20619 old_archive_from_new_cmds_CXX \
20620 predep_objects_CXX \
20621 postdep_objects_CXX \
20622 predeps_CXX \
20623 postdeps_CXX \
20624 compiler_lib_search_path_CXX \
20625 archive_cmds_CXX \
20626 archive_expsym_cmds_CXX \
20627 postinstall_cmds_CXX \
20628 postuninstall_cmds_CXX \
20629 old_archive_from_expsyms_cmds_CXX \
20630 allow_undefined_flag_CXX \
20631 no_undefined_flag_CXX \
20632 export_symbols_cmds_CXX \
20633 hardcode_libdir_flag_spec_CXX \
20634 hardcode_libdir_flag_spec_ld_CXX \
20635 hardcode_libdir_separator_CXX \
20636 hardcode_automatic_CXX \
20637 module_cmds_CXX \
20638 module_expsym_cmds_CXX \
20639 lt_cv_prog_compiler_c_o_CXX \
20640 exclude_expsyms_CXX \
20641 include_expsyms_CXX; do
20643 case $var in
20644 old_archive_cmds_CXX | \
20645 old_archive_from_new_cmds_CXX | \
20646 archive_cmds_CXX | \
20647 archive_expsym_cmds_CXX | \
20648 module_cmds_CXX | \
20649 module_expsym_cmds_CXX | \
20650 old_archive_from_expsyms_cmds_CXX | \
20651 export_symbols_cmds_CXX | \
20652 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20653 postinstall_cmds | postuninstall_cmds | \
20654 old_postinstall_cmds | old_postuninstall_cmds | \
20655 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20656 # Double-quote double-evaled strings.
20657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20662 esac
20663 done
20665 case $lt_echo in
20666 *'\$0 --fallback-echo"')
20667 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20669 esac
20671 cfgfile="$ofile"
20673 cat <<__EOF__ >> "$cfgfile"
20674 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20676 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20678 # Shell to use when invoking shell scripts.
20679 SHELL=$lt_SHELL
20681 # Whether or not to build shared libraries.
20682 build_libtool_libs=$enable_shared
20684 # Whether or not to build static libraries.
20685 build_old_libs=$enable_static
20687 # Whether or not to add -lc for building shared libraries.
20688 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20690 # Whether or not to disallow shared libs when runtime libs are static
20691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20693 # Whether or not to optimize for fast installation.
20694 fast_install=$enable_fast_install
20696 # The host system.
20697 host_alias=$host_alias
20698 host=$host
20699 host_os=$host_os
20701 # The build system.
20702 build_alias=$build_alias
20703 build=$build
20704 build_os=$build_os
20706 # An echo program that does not interpret backslashes.
20707 echo=$lt_echo
20709 # The archiver.
20710 AR=$lt_AR
20711 AR_FLAGS=$lt_AR_FLAGS
20713 # A C compiler.
20714 LTCC=$lt_LTCC
20716 # LTCC compiler flags.
20717 LTCFLAGS=$lt_LTCFLAGS
20719 # A language-specific compiler.
20720 CC=$lt_compiler_CXX
20722 # Is the compiler the GNU C compiler?
20723 with_gcc=$GCC_CXX
20725 # An ERE matcher.
20726 EGREP=$lt_EGREP
20728 # The linker used to build libraries.
20729 LD=$lt_LD_CXX
20731 # Whether we need hard or soft links.
20732 LN_S=$lt_LN_S
20734 # A BSD-compatible nm program.
20735 NM=$lt_NM
20737 # A symbol stripping program
20738 STRIP=$lt_STRIP
20740 # Used to examine libraries when file_magic_cmd begins "file"
20741 MAGIC_CMD=$MAGIC_CMD
20743 # Used on cygwin: DLL creation program.
20744 DLLTOOL="$DLLTOOL"
20746 # Used on cygwin: object dumper.
20747 OBJDUMP="$OBJDUMP"
20749 # Used on cygwin: assembler.
20750 AS="$AS"
20752 # The name of the directory that contains temporary libtool files.
20753 objdir=$objdir
20755 # How to create reloadable object files.
20756 reload_flag=$lt_reload_flag
20757 reload_cmds=$lt_reload_cmds
20759 # How to pass a linker flag through the compiler.
20760 wl=$lt_lt_prog_compiler_wl_CXX
20762 # Object file suffix (normally "o").
20763 objext="$ac_objext"
20765 # Old archive suffix (normally "a").
20766 libext="$libext"
20768 # Shared library suffix (normally ".so").
20769 shrext_cmds='$shrext_cmds'
20771 # Executable file suffix (normally "").
20772 exeext="$exeext"
20774 # Additional compiler flags for building library objects.
20775 pic_flag=$lt_lt_prog_compiler_pic_CXX
20776 pic_mode=$pic_mode
20778 # What is the maximum length of a command?
20779 max_cmd_len=$lt_cv_sys_max_cmd_len
20781 # Does compiler simultaneously support -c and -o options?
20782 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20784 # Must we lock files when doing compilation?
20785 need_locks=$lt_need_locks
20787 # Do we need the lib prefix for modules?
20788 need_lib_prefix=$need_lib_prefix
20790 # Do we need a version for libraries?
20791 need_version=$need_version
20793 # Whether dlopen is supported.
20794 dlopen_support=$enable_dlopen
20796 # Whether dlopen of programs is supported.
20797 dlopen_self=$enable_dlopen_self
20799 # Whether dlopen of statically linked programs is supported.
20800 dlopen_self_static=$enable_dlopen_self_static
20802 # Compiler flag to prevent dynamic linking.
20803 link_static_flag=$lt_lt_prog_compiler_static_CXX
20805 # Compiler flag to turn off builtin functions.
20806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20808 # Compiler flag to allow reflexive dlopens.
20809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20811 # Compiler flag to generate shared objects directly from archives.
20812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20814 # Compiler flag to generate thread-safe objects.
20815 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20817 # Library versioning type.
20818 version_type=$version_type
20820 # Format of library name prefix.
20821 libname_spec=$lt_libname_spec
20823 # List of archive names. First name is the real one, the rest are links.
20824 # The last name is the one that the linker finds with -lNAME.
20825 library_names_spec=$lt_library_names_spec
20827 # The coded name of the library, if different from the real name.
20828 soname_spec=$lt_soname_spec
20830 # Commands used to build and install an old-style archive.
20831 RANLIB=$lt_RANLIB
20832 old_archive_cmds=$lt_old_archive_cmds_CXX
20833 old_postinstall_cmds=$lt_old_postinstall_cmds
20834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20836 # Create an old-style archive from a shared archive.
20837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20839 # Create a temporary old-style archive to link instead of a shared archive.
20840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20842 # Commands used to build and install a shared archive.
20843 archive_cmds=$lt_archive_cmds_CXX
20844 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20845 postinstall_cmds=$lt_postinstall_cmds
20846 postuninstall_cmds=$lt_postuninstall_cmds
20848 # Commands used to build a loadable module (assumed same as above if empty)
20849 module_cmds=$lt_module_cmds_CXX
20850 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20852 # Commands to strip libraries.
20853 old_striplib=$lt_old_striplib
20854 striplib=$lt_striplib
20856 # Dependencies to place before the objects being linked to create a
20857 # shared library.
20858 predep_objects=$lt_predep_objects_CXX
20860 # Dependencies to place after the objects being linked to create a
20861 # shared library.
20862 postdep_objects=$lt_postdep_objects_CXX
20864 # Dependencies to place before the objects being linked to create a
20865 # shared library.
20866 predeps=$lt_predeps_CXX
20868 # Dependencies to place after the objects being linked to create a
20869 # shared library.
20870 postdeps=$lt_postdeps_CXX
20872 # The library search path used internally by the compiler when linking
20873 # a shared library.
20874 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20876 # Method to check whether dependent libraries are shared objects.
20877 deplibs_check_method=$lt_deplibs_check_method
20879 # Command to use when deplibs_check_method == file_magic.
20880 file_magic_cmd=$lt_file_magic_cmd
20882 # Flag that allows shared libraries with undefined symbols to be built.
20883 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20885 # Flag that forces no undefined symbols.
20886 no_undefined_flag=$lt_no_undefined_flag_CXX
20888 # Commands used to finish a libtool library installation in a directory.
20889 finish_cmds=$lt_finish_cmds
20891 # Same as above, but a single script fragment to be evaled but not shown.
20892 finish_eval=$lt_finish_eval
20894 # Take the output of nm and produce a listing of raw symbols and C names.
20895 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20897 # Transform the output of nm in a proper C declaration
20898 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20900 # Transform the output of nm in a C name address pair
20901 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20903 # This is the shared library runtime path variable.
20904 runpath_var=$runpath_var
20906 # This is the shared library path variable.
20907 shlibpath_var=$shlibpath_var
20909 # Is shlibpath searched before the hard-coded library search path?
20910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20912 # How to hardcode a shared library path into an executable.
20913 hardcode_action=$hardcode_action_CXX
20915 # Whether we should hardcode library paths into libraries.
20916 hardcode_into_libs=$hardcode_into_libs
20918 # Flag to hardcode \$libdir into a binary during linking.
20919 # This must work even if \$libdir does not exist.
20920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20922 # If ld is used when linking, flag to hardcode \$libdir into
20923 # a binary during linking. This must work even if \$libdir does
20924 # not exist.
20925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20927 # Whether we need a single -rpath flag with a separated argument.
20928 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20930 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20931 # resulting binary.
20932 hardcode_direct=$hardcode_direct_CXX
20934 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20935 # resulting binary.
20936 hardcode_minus_L=$hardcode_minus_L_CXX
20938 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20939 # the resulting binary.
20940 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20942 # Set to yes if building a shared library automatically hardcodes DIR into the library
20943 # and all subsequent libraries and executables linked against it.
20944 hardcode_automatic=$hardcode_automatic_CXX
20946 # Variables whose values should be saved in libtool wrapper scripts and
20947 # restored at relink time.
20948 variables_saved_for_relink="$variables_saved_for_relink"
20950 # Whether libtool must link a program against all its dependency libraries.
20951 link_all_deplibs=$link_all_deplibs_CXX
20953 # Compile-time system search path for libraries
20954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20956 # Run-time system search path for libraries
20957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20959 # Fix the shell variable \$srcfile for the compiler.
20960 fix_srcfile_path="$fix_srcfile_path_CXX"
20962 # Set to yes if exported symbols are required.
20963 always_export_symbols=$always_export_symbols_CXX
20965 # The commands to list exported symbols.
20966 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20968 # The commands to extract the exported symbol list from a shared archive.
20969 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20971 # Symbols that should not be listed in the preloaded symbols.
20972 exclude_expsyms=$lt_exclude_expsyms_CXX
20974 # Symbols that must always be exported.
20975 include_expsyms=$lt_include_expsyms_CXX
20977 # ### END LIBTOOL TAG CONFIG: $tagname
20979 __EOF__
20982 else
20983 # If there is no Makefile yet, we rely on a make rule to execute
20984 # `config.status --recheck' to rerun these tests and create the
20985 # libtool script then.
20986 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20987 if test -f "$ltmain_in"; then
20988 test -f Makefile && make "$ltmain"
20993 ac_ext=c
20994 ac_cpp='$CPP $CPPFLAGS'
20995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20999 CC=$lt_save_CC
21000 LDCXX=$LD
21001 LD=$lt_save_LD
21002 GCC=$lt_save_GCC
21003 with_gnu_ldcxx=$with_gnu_ld
21004 with_gnu_ld=$lt_save_with_gnu_ld
21005 lt_cv_path_LDCXX=$lt_cv_path_LD
21006 lt_cv_path_LD=$lt_save_path_LD
21007 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21008 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21010 else
21011 tagname=""
21015 F77)
21016 if test -n "$F77" && test "X$F77" != "Xno"; then
21018 ac_ext=f
21019 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21020 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21024 archive_cmds_need_lc_F77=no
21025 allow_undefined_flag_F77=
21026 always_export_symbols_F77=no
21027 archive_expsym_cmds_F77=
21028 export_dynamic_flag_spec_F77=
21029 hardcode_direct_F77=no
21030 hardcode_libdir_flag_spec_F77=
21031 hardcode_libdir_flag_spec_ld_F77=
21032 hardcode_libdir_separator_F77=
21033 hardcode_minus_L_F77=no
21034 hardcode_automatic_F77=no
21035 module_cmds_F77=
21036 module_expsym_cmds_F77=
21037 link_all_deplibs_F77=unknown
21038 old_archive_cmds_F77=$old_archive_cmds
21039 no_undefined_flag_F77=
21040 whole_archive_flag_spec_F77=
21041 enable_shared_with_static_runtimes_F77=no
21043 # Source file extension for f77 test sources.
21044 ac_ext=f
21046 # Object file extension for compiled f77 test sources.
21047 objext=o
21048 objext_F77=$objext
21050 # Code to be used in simple compile tests
21051 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21053 # Code to be used in simple link tests
21054 lt_simple_link_test_code=" program t\n end\n"
21056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21058 # If no C compiler was specified, use CC.
21059 LTCC=${LTCC-"$CC"}
21061 # If no C compiler flags were specified, use CFLAGS.
21062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21064 # Allow CC to be a program name with arguments.
21065 compiler=$CC
21068 # save warnings/boilerplate of simple test code
21069 ac_outfile=conftest.$ac_objext
21070 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21072 _lt_compiler_boilerplate=`cat conftest.err`
21073 $rm conftest*
21075 ac_outfile=conftest.$ac_objext
21076 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21078 _lt_linker_boilerplate=`cat conftest.err`
21079 $rm conftest*
21082 # Allow CC to be a program name with arguments.
21083 lt_save_CC="$CC"
21084 CC=${F77-"f77"}
21085 compiler=$CC
21086 compiler_F77=$CC
21087 for cc_temp in $compiler""; do
21088 case $cc_temp in
21089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21091 \-*) ;;
21092 *) break;;
21093 esac
21094 done
21095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21098 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21099 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21100 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21101 echo "${ECHO_T}$can_build_shared" >&6; }
21103 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21104 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21105 test "$can_build_shared" = "no" && enable_shared=no
21107 # On AIX, shared libraries and static libraries use the same namespace, and
21108 # are all built from PIC.
21109 case $host_os in
21110 aix3*)
21111 test "$enable_shared" = yes && enable_static=no
21112 if test -n "$RANLIB"; then
21113 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21114 postinstall_cmds='$RANLIB $lib'
21117 aix4* | aix5*)
21118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21119 test "$enable_shared" = yes && enable_static=no
21122 esac
21123 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21124 echo "${ECHO_T}$enable_shared" >&6; }
21126 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21127 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21128 # Make sure either enable_shared or enable_static is yes.
21129 test "$enable_shared" = yes || enable_static=yes
21130 { echo "$as_me:$LINENO: result: $enable_static" >&5
21131 echo "${ECHO_T}$enable_static" >&6; }
21133 GCC_F77="$G77"
21134 LD_F77="$LD"
21136 lt_prog_compiler_wl_F77=
21137 lt_prog_compiler_pic_F77=
21138 lt_prog_compiler_static_F77=
21140 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21143 if test "$GCC" = yes; then
21144 lt_prog_compiler_wl_F77='-Wl,'
21145 lt_prog_compiler_static_F77='-static'
21147 case $host_os in
21148 aix*)
21149 # All AIX code is PIC.
21150 if test "$host_cpu" = ia64; then
21151 # AIX 5 now supports IA64 processor
21152 lt_prog_compiler_static_F77='-Bstatic'
21156 amigaos*)
21157 # FIXME: we need at least 68020 code to build shared libraries, but
21158 # adding the `-m68020' flag to GCC prevents building anything better,
21159 # like `-m68040'.
21160 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21163 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21164 # PIC is the default for these OSes.
21167 mingw* | pw32* | os2*)
21168 # This hack is so that the source file can tell whether it is being
21169 # built for inclusion in a dll (and should export symbols for example).
21170 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21173 darwin* | rhapsody*)
21174 # PIC is the default on this platform
21175 # Common symbols not allowed in MH_DYLIB files
21176 lt_prog_compiler_pic_F77='-fno-common'
21179 interix3*)
21180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21181 # Instead, we relocate shared libraries at runtime.
21184 msdosdjgpp*)
21185 # Just because we use GCC doesn't mean we suddenly get shared libraries
21186 # on systems that don't support them.
21187 lt_prog_compiler_can_build_shared_F77=no
21188 enable_shared=no
21191 sysv4*MP*)
21192 if test -d /usr/nec; then
21193 lt_prog_compiler_pic_F77=-Kconform_pic
21197 hpux*)
21198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21199 # not for PA HP-UX.
21200 case $host_cpu in
21201 hppa*64*|ia64*)
21202 # +Z the default
21205 lt_prog_compiler_pic_F77='-fPIC'
21207 esac
21211 lt_prog_compiler_pic_F77='-fPIC'
21213 esac
21214 else
21215 # PORTME Check for flag to pass linker flags through the system compiler.
21216 case $host_os in
21217 aix*)
21218 lt_prog_compiler_wl_F77='-Wl,'
21219 if test "$host_cpu" = ia64; then
21220 # AIX 5 now supports IA64 processor
21221 lt_prog_compiler_static_F77='-Bstatic'
21222 else
21223 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21226 darwin*)
21227 # PIC is the default on this platform
21228 # Common symbols not allowed in MH_DYLIB files
21229 case $cc_basename in
21230 xlc*)
21231 lt_prog_compiler_pic_F77='-qnocommon'
21232 lt_prog_compiler_wl_F77='-Wl,'
21234 esac
21237 mingw* | pw32* | os2*)
21238 # This hack is so that the source file can tell whether it is being
21239 # built for inclusion in a dll (and should export symbols for example).
21240 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21243 hpux9* | hpux10* | hpux11*)
21244 lt_prog_compiler_wl_F77='-Wl,'
21245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21246 # not for PA HP-UX.
21247 case $host_cpu in
21248 hppa*64*|ia64*)
21249 # +Z the default
21252 lt_prog_compiler_pic_F77='+Z'
21254 esac
21255 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21256 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21259 irix5* | irix6* | nonstopux*)
21260 lt_prog_compiler_wl_F77='-Wl,'
21261 # PIC (with -KPIC) is the default.
21262 lt_prog_compiler_static_F77='-non_shared'
21265 newsos6)
21266 lt_prog_compiler_pic_F77='-KPIC'
21267 lt_prog_compiler_static_F77='-Bstatic'
21270 linux*)
21271 case $cc_basename in
21272 icc* | ecc*)
21273 lt_prog_compiler_wl_F77='-Wl,'
21274 lt_prog_compiler_pic_F77='-KPIC'
21275 lt_prog_compiler_static_F77='-static'
21277 pgcc* | pgf77* | pgf90* | pgf95*)
21278 # Portland Group compilers (*not* the Pentium gcc compiler,
21279 # which looks to be a dead project)
21280 lt_prog_compiler_wl_F77='-Wl,'
21281 lt_prog_compiler_pic_F77='-fpic'
21282 lt_prog_compiler_static_F77='-Bstatic'
21284 ccc*)
21285 lt_prog_compiler_wl_F77='-Wl,'
21286 # All Alpha code is PIC.
21287 lt_prog_compiler_static_F77='-non_shared'
21289 esac
21292 osf3* | osf4* | osf5*)
21293 lt_prog_compiler_wl_F77='-Wl,'
21294 # All OSF/1 code is PIC.
21295 lt_prog_compiler_static_F77='-non_shared'
21298 solaris*)
21299 lt_prog_compiler_pic_F77='-KPIC'
21300 lt_prog_compiler_static_F77='-Bstatic'
21301 case $cc_basename in
21302 f77* | f90* | f95*)
21303 lt_prog_compiler_wl_F77='-Qoption ld ';;
21305 lt_prog_compiler_wl_F77='-Wl,';;
21306 esac
21309 sunos4*)
21310 lt_prog_compiler_wl_F77='-Qoption ld '
21311 lt_prog_compiler_pic_F77='-PIC'
21312 lt_prog_compiler_static_F77='-Bstatic'
21315 sysv4 | sysv4.2uw2* | sysv4.3*)
21316 lt_prog_compiler_wl_F77='-Wl,'
21317 lt_prog_compiler_pic_F77='-KPIC'
21318 lt_prog_compiler_static_F77='-Bstatic'
21321 sysv4*MP*)
21322 if test -d /usr/nec ;then
21323 lt_prog_compiler_pic_F77='-Kconform_pic'
21324 lt_prog_compiler_static_F77='-Bstatic'
21328 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21329 lt_prog_compiler_wl_F77='-Wl,'
21330 lt_prog_compiler_pic_F77='-KPIC'
21331 lt_prog_compiler_static_F77='-Bstatic'
21334 unicos*)
21335 lt_prog_compiler_wl_F77='-Wl,'
21336 lt_prog_compiler_can_build_shared_F77=no
21339 uts4*)
21340 lt_prog_compiler_pic_F77='-pic'
21341 lt_prog_compiler_static_F77='-Bstatic'
21345 lt_prog_compiler_can_build_shared_F77=no
21347 esac
21350 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21351 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21354 # Check to make sure the PIC flag actually works.
21356 if test -n "$lt_prog_compiler_pic_F77"; then
21358 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21359 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21360 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363 lt_prog_compiler_pic_works_F77=no
21364 ac_outfile=conftest.$ac_objext
21365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21366 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21367 # Insert the option either (1) after the last *FLAGS variable, or
21368 # (2) before a word containing "conftest.", or (3) at the end.
21369 # Note that $ac_compile itself does not contain backslashes and begins
21370 # with a dollar sign (not a hyphen), so the echo should work correctly.
21371 # The option is referenced via a variable to avoid confusing sed.
21372 lt_compile=`echo "$ac_compile" | $SED \
21373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21375 -e 's:$: $lt_compiler_flag:'`
21376 (eval echo "\"\$as_me:21376: $lt_compile\"" >&5)
21377 (eval "$lt_compile" 2>conftest.err)
21378 ac_status=$?
21379 cat conftest.err >&5
21380 echo "$as_me:21380: \$? = $ac_status" >&5
21381 if (exit $ac_status) && test -s "$ac_outfile"; then
21382 # The compiler can only warn and ignore the option if not recognized
21383 # So say no if there are warnings other than the usual output.
21384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21387 lt_prog_compiler_pic_works_F77=yes
21390 $rm conftest*
21393 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21394 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21396 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21397 case $lt_prog_compiler_pic_F77 in
21398 "" | " "*) ;;
21399 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21400 esac
21401 else
21402 lt_prog_compiler_pic_F77=
21403 lt_prog_compiler_can_build_shared_F77=no
21407 case $host_os in
21408 # For platforms which do not support PIC, -DPIC is meaningless:
21409 *djgpp*)
21410 lt_prog_compiler_pic_F77=
21413 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21415 esac
21418 # Check to make sure the static flag actually works.
21420 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21421 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21422 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21423 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 else
21426 lt_prog_compiler_static_works_F77=no
21427 save_LDFLAGS="$LDFLAGS"
21428 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21429 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21431 # The linker can only warn and ignore the option if not recognized
21432 # So say no if there are warnings
21433 if test -s conftest.err; then
21434 # Append any errors to the config.log.
21435 cat conftest.err 1>&5
21436 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21438 if diff conftest.exp conftest.er2 >/dev/null; then
21439 lt_prog_compiler_static_works_F77=yes
21441 else
21442 lt_prog_compiler_static_works_F77=yes
21445 $rm conftest*
21446 LDFLAGS="$save_LDFLAGS"
21449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21450 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21452 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21454 else
21455 lt_prog_compiler_static_F77=
21459 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21460 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21461 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464 lt_cv_prog_compiler_c_o_F77=no
21465 $rm -r conftest 2>/dev/null
21466 mkdir conftest
21467 cd conftest
21468 mkdir out
21469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21471 lt_compiler_flag="-o out/conftest2.$ac_objext"
21472 # Insert the option either (1) after the last *FLAGS variable, or
21473 # (2) before a word containing "conftest.", or (3) at the end.
21474 # Note that $ac_compile itself does not contain backslashes and begins
21475 # with a dollar sign (not a hyphen), so the echo should work correctly.
21476 lt_compile=`echo "$ac_compile" | $SED \
21477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21479 -e 's:$: $lt_compiler_flag:'`
21480 (eval echo "\"\$as_me:21480: $lt_compile\"" >&5)
21481 (eval "$lt_compile" 2>out/conftest.err)
21482 ac_status=$?
21483 cat out/conftest.err >&5
21484 echo "$as_me:21484: \$? = $ac_status" >&5
21485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21486 then
21487 # The compiler can only warn and ignore the option if not recognized
21488 # So say no if there are warnings
21489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21492 lt_cv_prog_compiler_c_o_F77=yes
21495 chmod u+w . 2>&5
21496 $rm conftest*
21497 # SGI C++ compiler will create directory out/ii_files/ for
21498 # template instantiation
21499 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21500 $rm out/* && rmdir out
21501 cd ..
21502 rmdir conftest
21503 $rm conftest*
21506 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21507 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21510 hard_links="nottested"
21511 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21512 # do not overwrite the value of need_locks provided by the user
21513 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21514 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21515 hard_links=yes
21516 $rm conftest*
21517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21518 touch conftest.a
21519 ln conftest.a conftest.b 2>&5 || hard_links=no
21520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21521 { echo "$as_me:$LINENO: result: $hard_links" >&5
21522 echo "${ECHO_T}$hard_links" >&6; }
21523 if test "$hard_links" = no; then
21524 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21525 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21526 need_locks=warn
21528 else
21529 need_locks=no
21532 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21533 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21535 runpath_var=
21536 allow_undefined_flag_F77=
21537 enable_shared_with_static_runtimes_F77=no
21538 archive_cmds_F77=
21539 archive_expsym_cmds_F77=
21540 old_archive_From_new_cmds_F77=
21541 old_archive_from_expsyms_cmds_F77=
21542 export_dynamic_flag_spec_F77=
21543 whole_archive_flag_spec_F77=
21544 thread_safe_flag_spec_F77=
21545 hardcode_libdir_flag_spec_F77=
21546 hardcode_libdir_flag_spec_ld_F77=
21547 hardcode_libdir_separator_F77=
21548 hardcode_direct_F77=no
21549 hardcode_minus_L_F77=no
21550 hardcode_shlibpath_var_F77=unsupported
21551 link_all_deplibs_F77=unknown
21552 hardcode_automatic_F77=no
21553 module_cmds_F77=
21554 module_expsym_cmds_F77=
21555 always_export_symbols_F77=no
21556 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21557 # include_expsyms should be a list of space-separated symbols to be *always*
21558 # included in the symbol list
21559 include_expsyms_F77=
21560 # exclude_expsyms can be an extended regexp of symbols to exclude
21561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21563 # as well as any symbol that contains `d'.
21564 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21566 # platforms (ab)use it in PIC code, but their linkers get confused if
21567 # the symbol is explicitly referenced. Since portable code cannot
21568 # rely on this symbol name, it's probably fine to never include it in
21569 # preloaded symbol tables.
21570 extract_expsyms_cmds=
21571 # Just being paranoid about ensuring that cc_basename is set.
21572 for cc_temp in $compiler""; do
21573 case $cc_temp in
21574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21576 \-*) ;;
21577 *) break;;
21578 esac
21579 done
21580 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21582 case $host_os in
21583 cygwin* | mingw* | pw32*)
21584 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21585 # When not using gcc, we currently assume that we are using
21586 # Microsoft Visual C++.
21587 if test "$GCC" != yes; then
21588 with_gnu_ld=no
21591 interix*)
21592 # we just hope/assume this is gcc and not c89 (= MSVC++)
21593 with_gnu_ld=yes
21595 openbsd*)
21596 with_gnu_ld=no
21598 esac
21600 ld_shlibs_F77=yes
21601 if test "$with_gnu_ld" = yes; then
21602 # If archive_cmds runs LD, not CC, wlarc should be empty
21603 wlarc='${wl}'
21605 # Set some defaults for GNU ld with shared library support. These
21606 # are reset later if shared libraries are not supported. Putting them
21607 # here allows them to be overridden if necessary.
21608 runpath_var=LD_RUN_PATH
21609 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21610 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21611 # ancient GNU ld didn't support --whole-archive et. al.
21612 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21613 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21614 else
21615 whole_archive_flag_spec_F77=
21617 supports_anon_versioning=no
21618 case `$LD -v 2>/dev/null` in
21619 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21620 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21621 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21622 *\ 2.11.*) ;; # other 2.11 versions
21623 *) supports_anon_versioning=yes ;;
21624 esac
21626 # See if GNU ld supports shared libraries.
21627 case $host_os in
21628 aix3* | aix4* | aix5*)
21629 # On AIX/PPC, the GNU linker is very broken
21630 if test "$host_cpu" != ia64; then
21631 ld_shlibs_F77=no
21632 cat <<EOF 1>&2
21634 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21635 *** to be unable to reliably create shared libraries on AIX.
21636 *** Therefore, libtool is disabling shared libraries support. If you
21637 *** really care for shared libraries, you may want to modify your PATH
21638 *** so that a non-GNU linker is found, and then restart.
21644 amigaos*)
21645 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)'
21646 hardcode_libdir_flag_spec_F77='-L$libdir'
21647 hardcode_minus_L_F77=yes
21649 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21650 # that the semantics of dynamic libraries on AmigaOS, at least up
21651 # to version 4, is to share data among multiple programs linked
21652 # with the same dynamic library. Since this doesn't match the
21653 # behavior of shared libraries on other platforms, we can't use
21654 # them.
21655 ld_shlibs_F77=no
21658 beos*)
21659 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21660 allow_undefined_flag_F77=unsupported
21661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21662 # support --undefined. This deserves some investigation. FIXME
21663 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21664 else
21665 ld_shlibs_F77=no
21669 cygwin* | mingw* | pw32*)
21670 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21671 # as there is no search path for DLLs.
21672 hardcode_libdir_flag_spec_F77='-L$libdir'
21673 allow_undefined_flag_F77=unsupported
21674 always_export_symbols_F77=no
21675 enable_shared_with_static_runtimes_F77=yes
21676 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21678 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21679 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21680 # If the export-symbols file already is a .def file (1st line
21681 # is EXPORTS), use it as is; otherwise, prepend...
21682 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21683 cp $export_symbols $output_objdir/$soname.def;
21684 else
21685 echo EXPORTS > $output_objdir/$soname.def;
21686 cat $export_symbols >> $output_objdir/$soname.def;
21688 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21689 else
21690 ld_shlibs_F77=no
21694 interix3*)
21695 hardcode_direct_F77=no
21696 hardcode_shlibpath_var_F77=no
21697 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21698 export_dynamic_flag_spec_F77='${wl}-E'
21699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21700 # Instead, shared libraries are loaded at an image base (0x10000000 by
21701 # default) and relocated if they conflict, which is a slow very memory
21702 # consuming and fragmenting process. To avoid this, we pick a random,
21703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21705 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'
21706 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'
21709 linux*)
21710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21711 tmp_addflag=
21712 case $cc_basename,$host_cpu in
21713 pgcc*) # Portland Group C compiler
21714 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'
21715 tmp_addflag=' $pic_flag'
21717 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21718 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'
21719 tmp_addflag=' $pic_flag -Mnomain' ;;
21720 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21721 tmp_addflag=' -i_dynamic' ;;
21722 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21723 tmp_addflag=' -i_dynamic -nofor_main' ;;
21724 ifc* | ifort*) # Intel Fortran compiler
21725 tmp_addflag=' -nofor_main' ;;
21726 esac
21727 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21729 if test $supports_anon_versioning = yes; then
21730 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21732 $echo "local: *; };" >> $output_objdir/$libname.ver~
21733 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21735 else
21736 ld_shlibs_F77=no
21740 netbsd*)
21741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21742 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21743 wlarc=
21744 else
21745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21746 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21750 solaris*)
21751 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21752 ld_shlibs_F77=no
21753 cat <<EOF 1>&2
21755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21756 *** create shared libraries on Solaris systems. Therefore, libtool
21757 *** is disabling shared libraries support. We urge you to upgrade GNU
21758 *** binutils to release 2.9.1 or newer. Another option is to modify
21759 *** your PATH or compiler configuration so that the native linker is
21760 *** used, and then restart.
21763 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21765 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21766 else
21767 ld_shlibs_F77=no
21771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21772 case `$LD -v 2>&1` in
21773 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21774 ld_shlibs_F77=no
21775 cat <<_LT_EOF 1>&2
21777 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21778 *** reliably create shared libraries on SCO systems. Therefore, libtool
21779 *** is disabling shared libraries support. We urge you to upgrade GNU
21780 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21781 *** your PATH or compiler configuration so that the native linker is
21782 *** used, and then restart.
21784 _LT_EOF
21787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21788 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21789 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21790 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21791 else
21792 ld_shlibs_F77=no
21795 esac
21798 sunos4*)
21799 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21800 wlarc=
21801 hardcode_direct_F77=yes
21802 hardcode_shlibpath_var_F77=no
21806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21807 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21808 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21809 else
21810 ld_shlibs_F77=no
21813 esac
21815 if test "$ld_shlibs_F77" = no; then
21816 runpath_var=
21817 hardcode_libdir_flag_spec_F77=
21818 export_dynamic_flag_spec_F77=
21819 whole_archive_flag_spec_F77=
21821 else
21822 # PORTME fill in a description of your system's linker (not GNU ld)
21823 case $host_os in
21824 aix3*)
21825 allow_undefined_flag_F77=unsupported
21826 always_export_symbols_F77=yes
21827 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'
21828 # Note: this linker hardcodes the directories in LIBPATH if there
21829 # are no directories specified by -L.
21830 hardcode_minus_L_F77=yes
21831 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21832 # Neither direct hardcoding nor static linking is supported with a
21833 # broken collect2.
21834 hardcode_direct_F77=unsupported
21838 aix4* | aix5*)
21839 if test "$host_cpu" = ia64; then
21840 # On IA64, the linker does run time linking by default, so we don't
21841 # have to do anything special.
21842 aix_use_runtimelinking=no
21843 exp_sym_flag='-Bexport'
21844 no_entry_flag=""
21845 else
21846 # If we're using GNU nm, then we don't want the "-C" option.
21847 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21848 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21849 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'
21850 else
21851 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'
21853 aix_use_runtimelinking=no
21855 # Test if we are trying to use run time linking or normal
21856 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21857 # need to do runtime linking.
21858 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21859 for ld_flag in $LDFLAGS; do
21860 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21861 aix_use_runtimelinking=yes
21862 break
21864 done
21866 esac
21868 exp_sym_flag='-bexport'
21869 no_entry_flag='-bnoentry'
21872 # When large executables or shared objects are built, AIX ld can
21873 # have problems creating the table of contents. If linking a library
21874 # or program results in "error TOC overflow" add -mminimal-toc to
21875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21878 archive_cmds_F77=''
21879 hardcode_direct_F77=yes
21880 hardcode_libdir_separator_F77=':'
21881 link_all_deplibs_F77=yes
21883 if test "$GCC" = yes; then
21884 case $host_os in aix4.[012]|aix4.[012].*)
21885 # We only want to do this on AIX 4.2 and lower, the check
21886 # below for broken collect2 doesn't work under 4.3+
21887 collect2name=`${CC} -print-prog-name=collect2`
21888 if test -f "$collect2name" && \
21889 strings "$collect2name" | grep resolve_lib_name >/dev/null
21890 then
21891 # We have reworked collect2
21892 hardcode_direct_F77=yes
21893 else
21894 # We have old collect2
21895 hardcode_direct_F77=unsupported
21896 # It fails to find uninstalled libraries when the uninstalled
21897 # path is not listed in the libpath. Setting hardcode_minus_L
21898 # to unsupported forces relinking
21899 hardcode_minus_L_F77=yes
21900 hardcode_libdir_flag_spec_F77='-L$libdir'
21901 hardcode_libdir_separator_F77=
21904 esac
21905 shared_flag='-shared'
21906 if test "$aix_use_runtimelinking" = yes; then
21907 shared_flag="$shared_flag "'${wl}-G'
21909 else
21910 # not using gcc
21911 if test "$host_cpu" = ia64; then
21912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21913 # chokes on -Wl,-G. The following line is correct:
21914 shared_flag='-G'
21915 else
21916 if test "$aix_use_runtimelinking" = yes; then
21917 shared_flag='${wl}-G'
21918 else
21919 shared_flag='${wl}-bM:SRE'
21924 # It seems that -bexpall does not export symbols beginning with
21925 # underscore (_), so it is better to generate a list of symbols to export.
21926 always_export_symbols_F77=yes
21927 if test "$aix_use_runtimelinking" = yes; then
21928 # Warning - without using the other runtime loading flags (-brtl),
21929 # -berok will link without error, but may produce a broken library.
21930 allow_undefined_flag_F77='-berok'
21931 # Determine the default libpath from the value encoded in an empty executable.
21932 cat >conftest.$ac_ext <<_ACEOF
21933 program main
21936 _ACEOF
21937 rm -f conftest.$ac_objext conftest$ac_exeext
21938 if { (ac_try="$ac_link"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_link") 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } &&
21951 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21952 { (case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_try") 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; } &&
21961 { ac_try='test -s conftest$ac_exeext'
21962 { (case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_try") 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21974 # Check for a 64-bit object if we didn't find anything.
21975 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; }
21976 }'`; fi
21977 else
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21984 rm -f core conftest.err conftest.$ac_objext \
21985 conftest$ac_exeext conftest.$ac_ext
21986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21988 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21989 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"
21990 else
21991 if test "$host_cpu" = ia64; then
21992 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21993 allow_undefined_flag_F77="-z nodefs"
21994 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"
21995 else
21996 # Determine the default libpath from the value encoded in an empty executable.
21997 cat >conftest.$ac_ext <<_ACEOF
21998 program main
22001 _ACEOF
22002 rm -f conftest.$ac_objext conftest$ac_exeext
22003 if { (ac_try="$ac_link"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_link") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020 esac
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22039 # Check for a 64-bit object if we didn't find anything.
22040 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; }
22041 }'`; fi
22042 else
22043 echo "$as_me: failed program was:" >&5
22044 sed 's/^/| /' conftest.$ac_ext >&5
22049 rm -f core conftest.err conftest.$ac_objext \
22050 conftest$ac_exeext conftest.$ac_ext
22051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22053 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22054 # Warning - without using the other run time loading flags,
22055 # -berok will link without error, but may produce a broken library.
22056 no_undefined_flag_F77=' ${wl}-bernotok'
22057 allow_undefined_flag_F77=' ${wl}-berok'
22058 # Exported symbols can be pulled into shared objects from archives
22059 whole_archive_flag_spec_F77='$convenience'
22060 archive_cmds_need_lc_F77=yes
22061 # This is similar to how AIX traditionally builds its shared libraries.
22062 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'
22067 amigaos*)
22068 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)'
22069 hardcode_libdir_flag_spec_F77='-L$libdir'
22070 hardcode_minus_L_F77=yes
22071 # see comment about different semantics on the GNU ld section
22072 ld_shlibs_F77=no
22075 bsdi[45]*)
22076 export_dynamic_flag_spec_F77=-rdynamic
22079 cygwin* | mingw* | pw32*)
22080 # When not using gcc, we currently assume that we are using
22081 # Microsoft Visual C++.
22082 # hardcode_libdir_flag_spec is actually meaningless, as there is
22083 # no search path for DLLs.
22084 hardcode_libdir_flag_spec_F77=' '
22085 allow_undefined_flag_F77=unsupported
22086 # Tell ltmain to make .lib files, not .a files.
22087 libext=lib
22088 # Tell ltmain to make .dll files, not .so files.
22089 shrext_cmds=".dll"
22090 # FIXME: Setting linknames here is a bad hack.
22091 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22092 # The linker will automatically build a .lib file if we build a DLL.
22093 old_archive_From_new_cmds_F77='true'
22094 # FIXME: Should let the user specify the lib program.
22095 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22096 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22097 enable_shared_with_static_runtimes_F77=yes
22100 darwin* | rhapsody*)
22101 case $host_os in
22102 rhapsody* | darwin1.[012])
22103 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22105 *) # Darwin 1.3 on
22106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22107 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22108 else
22109 case ${MACOSX_DEPLOYMENT_TARGET} in
22110 10.[012])
22111 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22113 10.*)
22114 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22116 esac
22119 esac
22120 archive_cmds_need_lc_F77=no
22121 hardcode_direct_F77=no
22122 hardcode_automatic_F77=yes
22123 hardcode_shlibpath_var_F77=unsupported
22124 whole_archive_flag_spec_F77=''
22125 link_all_deplibs_F77=yes
22126 if test "$GCC" = yes ; then
22127 output_verbose_link_cmd='echo'
22128 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22129 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22130 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22131 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}'
22132 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}'
22133 else
22134 case $cc_basename in
22135 xlc*)
22136 output_verbose_link_cmd='echo'
22137 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22138 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22140 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}'
22141 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}'
22144 ld_shlibs_F77=no
22146 esac
22150 dgux*)
22151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22152 hardcode_libdir_flag_spec_F77='-L$libdir'
22153 hardcode_shlibpath_var_F77=no
22156 freebsd1*)
22157 ld_shlibs_F77=no
22160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22161 # support. Future versions do this automatically, but an explicit c++rt0.o
22162 # does not break anything, and helps significantly (at the cost of a little
22163 # extra space).
22164 freebsd2.2*)
22165 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22166 hardcode_libdir_flag_spec_F77='-R$libdir'
22167 hardcode_direct_F77=yes
22168 hardcode_shlibpath_var_F77=no
22171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22172 freebsd2*)
22173 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22174 hardcode_direct_F77=yes
22175 hardcode_minus_L_F77=yes
22176 hardcode_shlibpath_var_F77=no
22179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22180 freebsd* | kfreebsd*-gnu | dragonfly*)
22181 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22182 hardcode_libdir_flag_spec_F77='-R$libdir'
22183 hardcode_direct_F77=yes
22184 hardcode_shlibpath_var_F77=no
22187 hpux9*)
22188 if test "$GCC" = yes; then
22189 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'
22190 else
22191 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'
22193 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22194 hardcode_libdir_separator_F77=:
22195 hardcode_direct_F77=yes
22197 # hardcode_minus_L: Not really in the search PATH,
22198 # but as the default location of the library.
22199 hardcode_minus_L_F77=yes
22200 export_dynamic_flag_spec_F77='${wl}-E'
22203 hpux10*)
22204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22205 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22206 else
22207 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22209 if test "$with_gnu_ld" = no; then
22210 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22211 hardcode_libdir_separator_F77=:
22213 hardcode_direct_F77=yes
22214 export_dynamic_flag_spec_F77='${wl}-E'
22216 # hardcode_minus_L: Not really in the search PATH,
22217 # but as the default location of the library.
22218 hardcode_minus_L_F77=yes
22222 hpux11*)
22223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22224 case $host_cpu in
22225 hppa*64*)
22226 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22228 ia64*)
22229 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22232 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22234 esac
22235 else
22236 case $host_cpu in
22237 hppa*64*)
22238 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22240 ia64*)
22241 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22244 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22246 esac
22248 if test "$with_gnu_ld" = no; then
22249 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22250 hardcode_libdir_separator_F77=:
22252 case $host_cpu in
22253 hppa*64*|ia64*)
22254 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22255 hardcode_direct_F77=no
22256 hardcode_shlibpath_var_F77=no
22259 hardcode_direct_F77=yes
22260 export_dynamic_flag_spec_F77='${wl}-E'
22262 # hardcode_minus_L: Not really in the search PATH,
22263 # but as the default location of the library.
22264 hardcode_minus_L_F77=yes
22266 esac
22270 irix5* | irix6* | nonstopux*)
22271 if test "$GCC" = yes; then
22272 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'
22273 else
22274 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'
22275 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22277 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22278 hardcode_libdir_separator_F77=:
22279 link_all_deplibs_F77=yes
22282 netbsd*)
22283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22284 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22285 else
22286 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22288 hardcode_libdir_flag_spec_F77='-R$libdir'
22289 hardcode_direct_F77=yes
22290 hardcode_shlibpath_var_F77=no
22293 newsos6)
22294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22295 hardcode_direct_F77=yes
22296 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22297 hardcode_libdir_separator_F77=:
22298 hardcode_shlibpath_var_F77=no
22301 openbsd*)
22302 hardcode_direct_F77=yes
22303 hardcode_shlibpath_var_F77=no
22304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22305 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22306 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22307 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22308 export_dynamic_flag_spec_F77='${wl}-E'
22309 else
22310 case $host_os in
22311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22312 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22313 hardcode_libdir_flag_spec_F77='-R$libdir'
22316 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22317 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22319 esac
22323 os2*)
22324 hardcode_libdir_flag_spec_F77='-L$libdir'
22325 hardcode_minus_L_F77=yes
22326 allow_undefined_flag_F77=unsupported
22327 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'
22328 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22331 osf3*)
22332 if test "$GCC" = yes; then
22333 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22334 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'
22335 else
22336 allow_undefined_flag_F77=' -expect_unresolved \*'
22337 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'
22339 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22340 hardcode_libdir_separator_F77=:
22343 osf4* | osf5*) # as osf3* with the addition of -msym flag
22344 if test "$GCC" = yes; then
22345 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22346 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'
22347 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22348 else
22349 allow_undefined_flag_F77=' -expect_unresolved \*'
22350 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'
22351 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~
22352 $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'
22354 # Both c and cxx compiler support -rpath directly
22355 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22357 hardcode_libdir_separator_F77=:
22360 solaris*)
22361 no_undefined_flag_F77=' -z text'
22362 if test "$GCC" = yes; then
22363 wlarc='${wl}'
22364 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22365 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22366 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22367 else
22368 wlarc=''
22369 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22370 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22371 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22373 hardcode_libdir_flag_spec_F77='-R$libdir'
22374 hardcode_shlibpath_var_F77=no
22375 case $host_os in
22376 solaris2.[0-5] | solaris2.[0-5].*) ;;
22378 # The compiler driver will combine linker options so we
22379 # cannot just pass the convience library names through
22380 # without $wl, iff we do not link with $LD.
22381 # Luckily, gcc supports the same syntax we need for Sun Studio.
22382 # Supported since Solaris 2.6 (maybe 2.5.1?)
22383 case $wlarc in
22385 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22387 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' ;;
22388 esac ;;
22389 esac
22390 link_all_deplibs_F77=yes
22393 sunos4*)
22394 if test "x$host_vendor" = xsequent; then
22395 # Use $CC to link under sequent, because it throws in some extra .o
22396 # files that make .init and .fini sections work.
22397 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22398 else
22399 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22401 hardcode_libdir_flag_spec_F77='-L$libdir'
22402 hardcode_direct_F77=yes
22403 hardcode_minus_L_F77=yes
22404 hardcode_shlibpath_var_F77=no
22407 sysv4)
22408 case $host_vendor in
22409 sni)
22410 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22411 hardcode_direct_F77=yes # is this really true???
22413 siemens)
22414 ## LD is ld it makes a PLAMLIB
22415 ## CC just makes a GrossModule.
22416 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22417 reload_cmds_F77='$CC -r -o $output$reload_objs'
22418 hardcode_direct_F77=no
22420 motorola)
22421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22422 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22424 esac
22425 runpath_var='LD_RUN_PATH'
22426 hardcode_shlibpath_var_F77=no
22429 sysv4.3*)
22430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22431 hardcode_shlibpath_var_F77=no
22432 export_dynamic_flag_spec_F77='-Bexport'
22435 sysv4*MP*)
22436 if test -d /usr/nec; then
22437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22438 hardcode_shlibpath_var_F77=no
22439 runpath_var=LD_RUN_PATH
22440 hardcode_runpath_var=yes
22441 ld_shlibs_F77=yes
22445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22446 no_undefined_flag_F77='${wl}-z,text'
22447 archive_cmds_need_lc_F77=no
22448 hardcode_shlibpath_var_F77=no
22449 runpath_var='LD_RUN_PATH'
22451 if test "$GCC" = yes; then
22452 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22453 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22454 else
22455 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22456 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22460 sysv5* | sco3.2v5* | sco5v6*)
22461 # Note: We can NOT use -z defs as we might desire, because we do not
22462 # link with -lc, and that would cause any symbols used from libc to
22463 # always be unresolved, which means just about no library would
22464 # ever link correctly. If we're not using GNU ld we use -z text
22465 # though, which does catch some bad symbols but isn't as heavy-handed
22466 # as -z defs.
22467 no_undefined_flag_F77='${wl}-z,text'
22468 allow_undefined_flag_F77='${wl}-z,nodefs'
22469 archive_cmds_need_lc_F77=no
22470 hardcode_shlibpath_var_F77=no
22471 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22472 hardcode_libdir_separator_F77=':'
22473 link_all_deplibs_F77=yes
22474 export_dynamic_flag_spec_F77='${wl}-Bexport'
22475 runpath_var='LD_RUN_PATH'
22477 if test "$GCC" = yes; then
22478 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22479 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22480 else
22481 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22482 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22486 uts4*)
22487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22488 hardcode_libdir_flag_spec_F77='-L$libdir'
22489 hardcode_shlibpath_var_F77=no
22493 ld_shlibs_F77=no
22495 esac
22498 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22499 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22500 test "$ld_shlibs_F77" = no && can_build_shared=no
22503 # Do we need to explicitly link libc?
22505 case "x$archive_cmds_need_lc_F77" in
22506 x|xyes)
22507 # Assume -lc should be added
22508 archive_cmds_need_lc_F77=yes
22510 if test "$enable_shared" = yes && test "$GCC" = yes; then
22511 case $archive_cmds_F77 in
22512 *'~'*)
22513 # FIXME: we may have to deal with multi-command sequences.
22515 '$CC '*)
22516 # Test whether the compiler implicitly links with -lc since on some
22517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22518 # to ld, don't add -lc before -lgcc.
22519 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22520 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22521 $rm conftest*
22522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>&5
22526 ac_status=$?
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } 2>conftest.err; then
22529 soname=conftest
22530 lib=conftest
22531 libobjs=conftest.$ac_objext
22532 deplibs=
22533 wl=$lt_prog_compiler_wl_F77
22534 pic_flag=$lt_prog_compiler_pic_F77
22535 compiler_flags=-v
22536 linker_flags=-v
22537 verstring=
22538 output_objdir=.
22539 libname=conftest
22540 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22541 allow_undefined_flag_F77=
22542 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22543 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }
22547 then
22548 archive_cmds_need_lc_F77=no
22549 else
22550 archive_cmds_need_lc_F77=yes
22552 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22553 else
22554 cat conftest.err 1>&5
22556 $rm conftest*
22557 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22558 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22560 esac
22563 esac
22565 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22566 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22567 library_names_spec=
22568 libname_spec='lib$name'
22569 soname_spec=
22570 shrext_cmds=".so"
22571 postinstall_cmds=
22572 postuninstall_cmds=
22573 finish_cmds=
22574 finish_eval=
22575 shlibpath_var=
22576 shlibpath_overrides_runpath=unknown
22577 version_type=none
22578 dynamic_linker="$host_os ld.so"
22579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22580 if test "$GCC" = yes; then
22581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22582 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22583 # if the path contains ";" then we assume it to be the separator
22584 # otherwise default to the standard path separator (i.e. ":") - it is
22585 # assumed that no part of a normal pathname contains ";" but that should
22586 # okay in the real world where ";" in dirpaths is itself problematic.
22587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22588 else
22589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22591 else
22592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22594 need_lib_prefix=unknown
22595 hardcode_into_libs=no
22597 # when you set need_version to no, make sure it does not cause -set_version
22598 # flags to be left without arguments
22599 need_version=unknown
22601 case $host_os in
22602 aix3*)
22603 version_type=linux
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22605 shlibpath_var=LIBPATH
22607 # AIX 3 has no versioning support, so we append a major version to the name.
22608 soname_spec='${libname}${release}${shared_ext}$major'
22611 aix4* | aix5*)
22612 version_type=linux
22613 need_lib_prefix=no
22614 need_version=no
22615 hardcode_into_libs=yes
22616 if test "$host_cpu" = ia64; then
22617 # AIX 5 supports IA64
22618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22619 shlibpath_var=LD_LIBRARY_PATH
22620 else
22621 # With GCC up to 2.95.x, collect2 would create an import file
22622 # for dependence libraries. The import file would start with
22623 # the line `#! .'. This would cause the generated library to
22624 # depend on `.', always an invalid library. This was fixed in
22625 # development snapshots of GCC prior to 3.0.
22626 case $host_os in
22627 aix4 | aix4.[01] | aix4.[01].*)
22628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22629 echo ' yes '
22630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22632 else
22633 can_build_shared=no
22636 esac
22637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22638 # soname into executable. Probably we can add versioning support to
22639 # collect2, so additional links can be useful in future.
22640 if test "$aix_use_runtimelinking" = yes; then
22641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22642 # instead of lib<name>.a to let people know that these are not
22643 # typical AIX shared libraries.
22644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22645 else
22646 # We preserve .a as extension for shared libraries through AIX4.2
22647 # and later when we are not doing run time linking.
22648 library_names_spec='${libname}${release}.a $libname.a'
22649 soname_spec='${libname}${release}${shared_ext}$major'
22651 shlibpath_var=LIBPATH
22655 amigaos*)
22656 library_names_spec='$libname.ixlibrary $libname.a'
22657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22658 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'
22661 beos*)
22662 library_names_spec='${libname}${shared_ext}'
22663 dynamic_linker="$host_os ld.so"
22664 shlibpath_var=LIBRARY_PATH
22667 bsdi[45]*)
22668 version_type=linux
22669 need_version=no
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22676 # the default ld.so.conf also contains /usr/contrib/lib and
22677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22678 # libtool to hard-code these into programs
22681 cygwin* | mingw* | pw32*)
22682 version_type=windows
22683 shrext_cmds=".dll"
22684 need_version=no
22685 need_lib_prefix=no
22687 case $GCC,$host_os in
22688 yes,cygwin* | yes,mingw* | yes,pw32*)
22689 library_names_spec='$libname.dll.a'
22690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22691 postinstall_cmds='base_file=`basename \${file}`~
22692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22693 dldir=$destdir/`dirname \$dlpath`~
22694 test -d \$dldir || mkdir -p \$dldir~
22695 $install_prog $dir/$dlname \$dldir/$dlname~
22696 chmod a+x \$dldir/$dlname'
22697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22698 dlpath=$dir/\$dldll~
22699 $rm \$dlpath'
22700 shlibpath_overrides_runpath=yes
22702 case $host_os in
22703 cygwin*)
22704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22705 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22706 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22708 mingw*)
22709 # MinGW DLLs use traditional 'lib' prefix
22710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22712 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22713 # It is most probably a Windows format PATH printed by
22714 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22715 # path with ; separators, and with drive letters. We can handle the
22716 # drive letters (cygwin fileutils understands them), so leave them,
22717 # especially as we might pass files found there to a mingw objdump,
22718 # which wouldn't understand a cygwinified path. Ahh.
22719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22720 else
22721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22724 pw32*)
22725 # pw32 DLLs use 'pw' prefix rather than 'lib'
22726 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22728 esac
22732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22734 esac
22735 dynamic_linker='Win32 ld.exe'
22736 # FIXME: first we should search . and the directory the executable is in
22737 shlibpath_var=PATH
22740 darwin* | rhapsody*)
22741 dynamic_linker="$host_os dyld"
22742 version_type=darwin
22743 need_lib_prefix=no
22744 need_version=no
22745 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22746 soname_spec='${libname}${release}${major}$shared_ext'
22747 shlibpath_overrides_runpath=yes
22748 shlibpath_var=DYLD_LIBRARY_PATH
22749 shrext_cmds='.dylib'
22750 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22751 if test "$GCC" = yes; then
22752 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"`
22753 else
22754 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22756 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22759 dgux*)
22760 version_type=linux
22761 need_lib_prefix=no
22762 need_version=no
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22768 freebsd1*)
22769 dynamic_linker=no
22772 kfreebsd*-gnu)
22773 version_type=linux
22774 need_lib_prefix=no
22775 need_version=no
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 shlibpath_overrides_runpath=no
22780 hardcode_into_libs=yes
22781 dynamic_linker='GNU ld.so'
22784 freebsd* | dragonfly*)
22785 # DragonFly does not have aout. When/if they implement a new
22786 # versioning mechanism, adjust this.
22787 if test -x /usr/bin/objformat; then
22788 objformat=`/usr/bin/objformat`
22789 else
22790 case $host_os in
22791 freebsd[123]*) objformat=aout ;;
22792 *) objformat=elf ;;
22793 esac
22795 version_type=freebsd-$objformat
22796 case $version_type in
22797 freebsd-elf*)
22798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22799 need_version=no
22800 need_lib_prefix=no
22802 freebsd-*)
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22804 need_version=yes
22806 esac
22807 shlibpath_var=LD_LIBRARY_PATH
22808 case $host_os in
22809 freebsd2*)
22810 shlibpath_overrides_runpath=yes
22812 freebsd3.[01]* | freebsdelf3.[01]*)
22813 shlibpath_overrides_runpath=yes
22814 hardcode_into_libs=yes
22816 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22817 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22818 shlibpath_overrides_runpath=no
22819 hardcode_into_libs=yes
22821 freebsd*) # from 4.6 on
22822 shlibpath_overrides_runpath=yes
22823 hardcode_into_libs=yes
22825 esac
22828 gnu*)
22829 version_type=linux
22830 need_lib_prefix=no
22831 need_version=no
22832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22833 soname_spec='${libname}${release}${shared_ext}$major'
22834 shlibpath_var=LD_LIBRARY_PATH
22835 hardcode_into_libs=yes
22838 hpux9* | hpux10* | hpux11*)
22839 # Give a soname corresponding to the major version so that dld.sl refuses to
22840 # link against other versions.
22841 version_type=sunos
22842 need_lib_prefix=no
22843 need_version=no
22844 case $host_cpu in
22845 ia64*)
22846 shrext_cmds='.so'
22847 hardcode_into_libs=yes
22848 dynamic_linker="$host_os dld.so"
22849 shlibpath_var=LD_LIBRARY_PATH
22850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 if test "X$HPUX_IA64_MODE" = X32; then
22854 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22855 else
22856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22860 hppa*64*)
22861 shrext_cmds='.sl'
22862 hardcode_into_libs=yes
22863 dynamic_linker="$host_os dld.sl"
22864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867 soname_spec='${libname}${release}${shared_ext}$major'
22868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22872 shrext_cmds='.sl'
22873 dynamic_linker="$host_os dld.sl"
22874 shlibpath_var=SHLIB_PATH
22875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22879 esac
22880 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22881 postinstall_cmds='chmod 555 $lib'
22884 interix3*)
22885 version_type=linux
22886 need_lib_prefix=no
22887 need_version=no
22888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22889 soname_spec='${libname}${release}${shared_ext}$major'
22890 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22891 shlibpath_var=LD_LIBRARY_PATH
22892 shlibpath_overrides_runpath=no
22893 hardcode_into_libs=yes
22896 irix5* | irix6* | nonstopux*)
22897 case $host_os in
22898 nonstopux*) version_type=nonstopux ;;
22900 if test "$lt_cv_prog_gnu_ld" = yes; then
22901 version_type=linux
22902 else
22903 version_type=irix
22904 fi ;;
22905 esac
22906 need_lib_prefix=no
22907 need_version=no
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22910 case $host_os in
22911 irix5* | nonstopux*)
22912 libsuff= shlibsuff=
22915 case $LD in # libtool.m4 will add one of these switches to LD
22916 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22917 libsuff= shlibsuff= libmagic=32-bit;;
22918 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22919 libsuff=32 shlibsuff=N32 libmagic=N32;;
22920 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22921 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22922 *) libsuff= shlibsuff= libmagic=never-match;;
22923 esac
22925 esac
22926 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22927 shlibpath_overrides_runpath=no
22928 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22929 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22930 hardcode_into_libs=yes
22933 # No shared lib support for Linux oldld, aout, or coff.
22934 linux*oldld* | linux*aout* | linux*coff*)
22935 dynamic_linker=no
22938 # This must be Linux ELF.
22939 linux*)
22940 version_type=linux
22941 need_lib_prefix=no
22942 need_version=no
22943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22944 soname_spec='${libname}${release}${shared_ext}$major'
22945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22946 shlibpath_var=LD_LIBRARY_PATH
22947 shlibpath_overrides_runpath=no
22948 # This implies no fast_install, which is unacceptable.
22949 # Some rework will be needed to allow for fast_install
22950 # before this can be enabled.
22951 hardcode_into_libs=yes
22953 # Append ld.so.conf contents to the search path
22954 if test -f /etc/ld.so.conf; then
22955 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' ' '`
22956 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22959 # We used to test for /lib/ld.so.1 and disable shared libraries on
22960 # powerpc, because MkLinux only supported shared libraries with the
22961 # GNU dynamic linker. Since this was broken with cross compilers,
22962 # most powerpc-linux boxes support dynamic linking these days and
22963 # people can always --disable-shared, the test was removed, and we
22964 # assume the GNU/Linux dynamic linker is in use.
22965 dynamic_linker='GNU/Linux ld.so'
22968 knetbsd*-gnu)
22969 version_type=linux
22970 need_lib_prefix=no
22971 need_version=no
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22973 soname_spec='${libname}${release}${shared_ext}$major'
22974 shlibpath_var=LD_LIBRARY_PATH
22975 shlibpath_overrides_runpath=no
22976 hardcode_into_libs=yes
22977 dynamic_linker='GNU ld.so'
22980 netbsd*)
22981 version_type=sunos
22982 need_lib_prefix=no
22983 need_version=no
22984 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22987 dynamic_linker='NetBSD (a.out) ld.so'
22988 else
22989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22990 soname_spec='${libname}${release}${shared_ext}$major'
22991 dynamic_linker='NetBSD ld.elf_so'
22993 shlibpath_var=LD_LIBRARY_PATH
22994 shlibpath_overrides_runpath=yes
22995 hardcode_into_libs=yes
22998 newsos6)
22999 version_type=linux
23000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23001 shlibpath_var=LD_LIBRARY_PATH
23002 shlibpath_overrides_runpath=yes
23005 nto-qnx*)
23006 version_type=linux
23007 need_lib_prefix=no
23008 need_version=no
23009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010 soname_spec='${libname}${release}${shared_ext}$major'
23011 shlibpath_var=LD_LIBRARY_PATH
23012 shlibpath_overrides_runpath=yes
23015 openbsd*)
23016 version_type=sunos
23017 sys_lib_dlsearch_path_spec="/usr/lib"
23018 need_lib_prefix=no
23019 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23020 case $host_os in
23021 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23022 *) need_version=no ;;
23023 esac
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23026 shlibpath_var=LD_LIBRARY_PATH
23027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23028 case $host_os in
23029 openbsd2.[89] | openbsd2.[89].*)
23030 shlibpath_overrides_runpath=no
23033 shlibpath_overrides_runpath=yes
23035 esac
23036 else
23037 shlibpath_overrides_runpath=yes
23041 os2*)
23042 libname_spec='$name'
23043 shrext_cmds=".dll"
23044 need_lib_prefix=no
23045 library_names_spec='$libname${shared_ext} $libname.a'
23046 dynamic_linker='OS/2 ld.exe'
23047 shlibpath_var=LIBPATH
23050 osf3* | osf4* | osf5*)
23051 version_type=osf
23052 need_lib_prefix=no
23053 need_version=no
23054 soname_spec='${libname}${release}${shared_ext}$major'
23055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23056 shlibpath_var=LD_LIBRARY_PATH
23057 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23058 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23061 solaris*)
23062 version_type=linux
23063 need_lib_prefix=no
23064 need_version=no
23065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066 soname_spec='${libname}${release}${shared_ext}$major'
23067 shlibpath_var=LD_LIBRARY_PATH
23068 shlibpath_overrides_runpath=yes
23069 hardcode_into_libs=yes
23070 # ldd complains unless libraries are executable
23071 postinstall_cmds='chmod +x $lib'
23074 sunos4*)
23075 version_type=sunos
23076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23078 shlibpath_var=LD_LIBRARY_PATH
23079 shlibpath_overrides_runpath=yes
23080 if test "$with_gnu_ld" = yes; then
23081 need_lib_prefix=no
23083 need_version=yes
23086 sysv4 | sysv4.3*)
23087 version_type=linux
23088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089 soname_spec='${libname}${release}${shared_ext}$major'
23090 shlibpath_var=LD_LIBRARY_PATH
23091 case $host_vendor in
23092 sni)
23093 shlibpath_overrides_runpath=no
23094 need_lib_prefix=no
23095 export_dynamic_flag_spec='${wl}-Blargedynsym'
23096 runpath_var=LD_RUN_PATH
23098 siemens)
23099 need_lib_prefix=no
23101 motorola)
23102 need_lib_prefix=no
23103 need_version=no
23104 shlibpath_overrides_runpath=no
23105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23107 esac
23110 sysv4*MP*)
23111 if test -d /usr/nec ;then
23112 version_type=linux
23113 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23114 soname_spec='$libname${shared_ext}.$major'
23115 shlibpath_var=LD_LIBRARY_PATH
23119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23120 version_type=freebsd-elf
23121 need_lib_prefix=no
23122 need_version=no
23123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23124 soname_spec='${libname}${release}${shared_ext}$major'
23125 shlibpath_var=LD_LIBRARY_PATH
23126 hardcode_into_libs=yes
23127 if test "$with_gnu_ld" = yes; then
23128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23129 shlibpath_overrides_runpath=no
23130 else
23131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23132 shlibpath_overrides_runpath=yes
23133 case $host_os in
23134 sco3.2v5*)
23135 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23137 esac
23139 sys_lib_dlsearch_path_spec='/usr/lib'
23142 uts4*)
23143 version_type=linux
23144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23145 soname_spec='${libname}${release}${shared_ext}$major'
23146 shlibpath_var=LD_LIBRARY_PATH
23150 dynamic_linker=no
23152 esac
23153 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23154 echo "${ECHO_T}$dynamic_linker" >&6; }
23155 test "$dynamic_linker" = no && can_build_shared=no
23157 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23158 if test "$GCC" = yes; then
23159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23162 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23163 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23164 hardcode_action_F77=
23165 if test -n "$hardcode_libdir_flag_spec_F77" || \
23166 test -n "$runpath_var_F77" || \
23167 test "X$hardcode_automatic_F77" = "Xyes" ; then
23169 # We can hardcode non-existant directories.
23170 if test "$hardcode_direct_F77" != no &&
23171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23172 # have to relink, otherwise we might link with an installed library
23173 # when we should be linking with a yet-to-be-installed one
23174 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23175 test "$hardcode_minus_L_F77" != no; then
23176 # Linking always hardcodes the temporary library directory.
23177 hardcode_action_F77=relink
23178 else
23179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23180 hardcode_action_F77=immediate
23182 else
23183 # We cannot hardcode anything, or else we can only hardcode existing
23184 # directories.
23185 hardcode_action_F77=unsupported
23187 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23188 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23190 if test "$hardcode_action_F77" = relink; then
23191 # Fast installation is not supported
23192 enable_fast_install=no
23193 elif test "$shlibpath_overrides_runpath" = yes ||
23194 test "$enable_shared" = no; then
23195 # Fast installation is not necessary
23196 enable_fast_install=needless
23200 # The else clause should only fire when bootstrapping the
23201 # libtool distribution, otherwise you forgot to ship ltmain.sh
23202 # with your package, and you will get complaints that there are
23203 # no rules to generate ltmain.sh.
23204 if test -f "$ltmain"; then
23205 # See if we are running on zsh, and set the options which allow our commands through
23206 # without removal of \ escapes.
23207 if test -n "${ZSH_VERSION+set}" ; then
23208 setopt NO_GLOB_SUBST
23210 # Now quote all the things that may contain metacharacters while being
23211 # careful not to overquote the AC_SUBSTed values. We take copies of the
23212 # variables and quote the copies for generation of the libtool script.
23213 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23214 SED SHELL STRIP \
23215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23217 deplibs_check_method reload_flag reload_cmds need_locks \
23218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23219 lt_cv_sys_global_symbol_to_c_name_address \
23220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23221 old_postinstall_cmds old_postuninstall_cmds \
23222 compiler_F77 \
23223 CC_F77 \
23224 LD_F77 \
23225 lt_prog_compiler_wl_F77 \
23226 lt_prog_compiler_pic_F77 \
23227 lt_prog_compiler_static_F77 \
23228 lt_prog_compiler_no_builtin_flag_F77 \
23229 export_dynamic_flag_spec_F77 \
23230 thread_safe_flag_spec_F77 \
23231 whole_archive_flag_spec_F77 \
23232 enable_shared_with_static_runtimes_F77 \
23233 old_archive_cmds_F77 \
23234 old_archive_from_new_cmds_F77 \
23235 predep_objects_F77 \
23236 postdep_objects_F77 \
23237 predeps_F77 \
23238 postdeps_F77 \
23239 compiler_lib_search_path_F77 \
23240 archive_cmds_F77 \
23241 archive_expsym_cmds_F77 \
23242 postinstall_cmds_F77 \
23243 postuninstall_cmds_F77 \
23244 old_archive_from_expsyms_cmds_F77 \
23245 allow_undefined_flag_F77 \
23246 no_undefined_flag_F77 \
23247 export_symbols_cmds_F77 \
23248 hardcode_libdir_flag_spec_F77 \
23249 hardcode_libdir_flag_spec_ld_F77 \
23250 hardcode_libdir_separator_F77 \
23251 hardcode_automatic_F77 \
23252 module_cmds_F77 \
23253 module_expsym_cmds_F77 \
23254 lt_cv_prog_compiler_c_o_F77 \
23255 exclude_expsyms_F77 \
23256 include_expsyms_F77; do
23258 case $var in
23259 old_archive_cmds_F77 | \
23260 old_archive_from_new_cmds_F77 | \
23261 archive_cmds_F77 | \
23262 archive_expsym_cmds_F77 | \
23263 module_cmds_F77 | \
23264 module_expsym_cmds_F77 | \
23265 old_archive_from_expsyms_cmds_F77 | \
23266 export_symbols_cmds_F77 | \
23267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23268 postinstall_cmds | postuninstall_cmds | \
23269 old_postinstall_cmds | old_postuninstall_cmds | \
23270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23271 # Double-quote double-evaled strings.
23272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23277 esac
23278 done
23280 case $lt_echo in
23281 *'\$0 --fallback-echo"')
23282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23284 esac
23286 cfgfile="$ofile"
23288 cat <<__EOF__ >> "$cfgfile"
23289 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23291 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23293 # Shell to use when invoking shell scripts.
23294 SHELL=$lt_SHELL
23296 # Whether or not to build shared libraries.
23297 build_libtool_libs=$enable_shared
23299 # Whether or not to build static libraries.
23300 build_old_libs=$enable_static
23302 # Whether or not to add -lc for building shared libraries.
23303 build_libtool_need_lc=$archive_cmds_need_lc_F77
23305 # Whether or not to disallow shared libs when runtime libs are static
23306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23308 # Whether or not to optimize for fast installation.
23309 fast_install=$enable_fast_install
23311 # The host system.
23312 host_alias=$host_alias
23313 host=$host
23314 host_os=$host_os
23316 # The build system.
23317 build_alias=$build_alias
23318 build=$build
23319 build_os=$build_os
23321 # An echo program that does not interpret backslashes.
23322 echo=$lt_echo
23324 # The archiver.
23325 AR=$lt_AR
23326 AR_FLAGS=$lt_AR_FLAGS
23328 # A C compiler.
23329 LTCC=$lt_LTCC
23331 # LTCC compiler flags.
23332 LTCFLAGS=$lt_LTCFLAGS
23334 # A language-specific compiler.
23335 CC=$lt_compiler_F77
23337 # Is the compiler the GNU C compiler?
23338 with_gcc=$GCC_F77
23340 # An ERE matcher.
23341 EGREP=$lt_EGREP
23343 # The linker used to build libraries.
23344 LD=$lt_LD_F77
23346 # Whether we need hard or soft links.
23347 LN_S=$lt_LN_S
23349 # A BSD-compatible nm program.
23350 NM=$lt_NM
23352 # A symbol stripping program
23353 STRIP=$lt_STRIP
23355 # Used to examine libraries when file_magic_cmd begins "file"
23356 MAGIC_CMD=$MAGIC_CMD
23358 # Used on cygwin: DLL creation program.
23359 DLLTOOL="$DLLTOOL"
23361 # Used on cygwin: object dumper.
23362 OBJDUMP="$OBJDUMP"
23364 # Used on cygwin: assembler.
23365 AS="$AS"
23367 # The name of the directory that contains temporary libtool files.
23368 objdir=$objdir
23370 # How to create reloadable object files.
23371 reload_flag=$lt_reload_flag
23372 reload_cmds=$lt_reload_cmds
23374 # How to pass a linker flag through the compiler.
23375 wl=$lt_lt_prog_compiler_wl_F77
23377 # Object file suffix (normally "o").
23378 objext="$ac_objext"
23380 # Old archive suffix (normally "a").
23381 libext="$libext"
23383 # Shared library suffix (normally ".so").
23384 shrext_cmds='$shrext_cmds'
23386 # Executable file suffix (normally "").
23387 exeext="$exeext"
23389 # Additional compiler flags for building library objects.
23390 pic_flag=$lt_lt_prog_compiler_pic_F77
23391 pic_mode=$pic_mode
23393 # What is the maximum length of a command?
23394 max_cmd_len=$lt_cv_sys_max_cmd_len
23396 # Does compiler simultaneously support -c and -o options?
23397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23399 # Must we lock files when doing compilation?
23400 need_locks=$lt_need_locks
23402 # Do we need the lib prefix for modules?
23403 need_lib_prefix=$need_lib_prefix
23405 # Do we need a version for libraries?
23406 need_version=$need_version
23408 # Whether dlopen is supported.
23409 dlopen_support=$enable_dlopen
23411 # Whether dlopen of programs is supported.
23412 dlopen_self=$enable_dlopen_self
23414 # Whether dlopen of statically linked programs is supported.
23415 dlopen_self_static=$enable_dlopen_self_static
23417 # Compiler flag to prevent dynamic linking.
23418 link_static_flag=$lt_lt_prog_compiler_static_F77
23420 # Compiler flag to turn off builtin functions.
23421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23423 # Compiler flag to allow reflexive dlopens.
23424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23426 # Compiler flag to generate shared objects directly from archives.
23427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23429 # Compiler flag to generate thread-safe objects.
23430 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23432 # Library versioning type.
23433 version_type=$version_type
23435 # Format of library name prefix.
23436 libname_spec=$lt_libname_spec
23438 # List of archive names. First name is the real one, the rest are links.
23439 # The last name is the one that the linker finds with -lNAME.
23440 library_names_spec=$lt_library_names_spec
23442 # The coded name of the library, if different from the real name.
23443 soname_spec=$lt_soname_spec
23445 # Commands used to build and install an old-style archive.
23446 RANLIB=$lt_RANLIB
23447 old_archive_cmds=$lt_old_archive_cmds_F77
23448 old_postinstall_cmds=$lt_old_postinstall_cmds
23449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23451 # Create an old-style archive from a shared archive.
23452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23454 # Create a temporary old-style archive to link instead of a shared archive.
23455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23457 # Commands used to build and install a shared archive.
23458 archive_cmds=$lt_archive_cmds_F77
23459 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23460 postinstall_cmds=$lt_postinstall_cmds
23461 postuninstall_cmds=$lt_postuninstall_cmds
23463 # Commands used to build a loadable module (assumed same as above if empty)
23464 module_cmds=$lt_module_cmds_F77
23465 module_expsym_cmds=$lt_module_expsym_cmds_F77
23467 # Commands to strip libraries.
23468 old_striplib=$lt_old_striplib
23469 striplib=$lt_striplib
23471 # Dependencies to place before the objects being linked to create a
23472 # shared library.
23473 predep_objects=$lt_predep_objects_F77
23475 # Dependencies to place after the objects being linked to create a
23476 # shared library.
23477 postdep_objects=$lt_postdep_objects_F77
23479 # Dependencies to place before the objects being linked to create a
23480 # shared library.
23481 predeps=$lt_predeps_F77
23483 # Dependencies to place after the objects being linked to create a
23484 # shared library.
23485 postdeps=$lt_postdeps_F77
23487 # The library search path used internally by the compiler when linking
23488 # a shared library.
23489 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23491 # Method to check whether dependent libraries are shared objects.
23492 deplibs_check_method=$lt_deplibs_check_method
23494 # Command to use when deplibs_check_method == file_magic.
23495 file_magic_cmd=$lt_file_magic_cmd
23497 # Flag that allows shared libraries with undefined symbols to be built.
23498 allow_undefined_flag=$lt_allow_undefined_flag_F77
23500 # Flag that forces no undefined symbols.
23501 no_undefined_flag=$lt_no_undefined_flag_F77
23503 # Commands used to finish a libtool library installation in a directory.
23504 finish_cmds=$lt_finish_cmds
23506 # Same as above, but a single script fragment to be evaled but not shown.
23507 finish_eval=$lt_finish_eval
23509 # Take the output of nm and produce a listing of raw symbols and C names.
23510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23512 # Transform the output of nm in a proper C declaration
23513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23515 # Transform the output of nm in a C name address pair
23516 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23518 # This is the shared library runtime path variable.
23519 runpath_var=$runpath_var
23521 # This is the shared library path variable.
23522 shlibpath_var=$shlibpath_var
23524 # Is shlibpath searched before the hard-coded library search path?
23525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23527 # How to hardcode a shared library path into an executable.
23528 hardcode_action=$hardcode_action_F77
23530 # Whether we should hardcode library paths into libraries.
23531 hardcode_into_libs=$hardcode_into_libs
23533 # Flag to hardcode \$libdir into a binary during linking.
23534 # This must work even if \$libdir does not exist.
23535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23537 # If ld is used when linking, flag to hardcode \$libdir into
23538 # a binary during linking. This must work even if \$libdir does
23539 # not exist.
23540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23542 # Whether we need a single -rpath flag with a separated argument.
23543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23545 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23546 # resulting binary.
23547 hardcode_direct=$hardcode_direct_F77
23549 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23550 # resulting binary.
23551 hardcode_minus_L=$hardcode_minus_L_F77
23553 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23554 # the resulting binary.
23555 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23557 # Set to yes if building a shared library automatically hardcodes DIR into the library
23558 # and all subsequent libraries and executables linked against it.
23559 hardcode_automatic=$hardcode_automatic_F77
23561 # Variables whose values should be saved in libtool wrapper scripts and
23562 # restored at relink time.
23563 variables_saved_for_relink="$variables_saved_for_relink"
23565 # Whether libtool must link a program against all its dependency libraries.
23566 link_all_deplibs=$link_all_deplibs_F77
23568 # Compile-time system search path for libraries
23569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23571 # Run-time system search path for libraries
23572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23574 # Fix the shell variable \$srcfile for the compiler.
23575 fix_srcfile_path="$fix_srcfile_path_F77"
23577 # Set to yes if exported symbols are required.
23578 always_export_symbols=$always_export_symbols_F77
23580 # The commands to list exported symbols.
23581 export_symbols_cmds=$lt_export_symbols_cmds_F77
23583 # The commands to extract the exported symbol list from a shared archive.
23584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23586 # Symbols that should not be listed in the preloaded symbols.
23587 exclude_expsyms=$lt_exclude_expsyms_F77
23589 # Symbols that must always be exported.
23590 include_expsyms=$lt_include_expsyms_F77
23592 # ### END LIBTOOL TAG CONFIG: $tagname
23594 __EOF__
23597 else
23598 # If there is no Makefile yet, we rely on a make rule to execute
23599 # `config.status --recheck' to rerun these tests and create the
23600 # libtool script then.
23601 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23602 if test -f "$ltmain_in"; then
23603 test -f Makefile && make "$ltmain"
23608 ac_ext=c
23609 ac_cpp='$CPP $CPPFLAGS'
23610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23614 CC="$lt_save_CC"
23616 else
23617 tagname=""
23621 GCJ)
23622 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23623 ac_ext=c
23624 ac_cpp='$CPP $CPPFLAGS'
23625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23630 # Source file extension for Java test sources.
23631 ac_ext=java
23633 # Object file extension for compiled Java test sources.
23634 objext=o
23635 objext_GCJ=$objext
23637 # Code to be used in simple compile tests
23638 lt_simple_compile_test_code="class foo {}\n"
23640 # Code to be used in simple link tests
23641 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23645 # If no C compiler was specified, use CC.
23646 LTCC=${LTCC-"$CC"}
23648 # If no C compiler flags were specified, use CFLAGS.
23649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23651 # Allow CC to be a program name with arguments.
23652 compiler=$CC
23655 # save warnings/boilerplate of simple test code
23656 ac_outfile=conftest.$ac_objext
23657 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23659 _lt_compiler_boilerplate=`cat conftest.err`
23660 $rm conftest*
23662 ac_outfile=conftest.$ac_objext
23663 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23665 _lt_linker_boilerplate=`cat conftest.err`
23666 $rm conftest*
23669 # Allow CC to be a program name with arguments.
23670 lt_save_CC="$CC"
23671 CC=${GCJ-"gcj"}
23672 compiler=$CC
23673 compiler_GCJ=$CC
23674 for cc_temp in $compiler""; do
23675 case $cc_temp in
23676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23678 \-*) ;;
23679 *) break;;
23680 esac
23681 done
23682 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23685 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23686 archive_cmds_need_lc_GCJ=no
23688 old_archive_cmds_GCJ=$old_archive_cmds
23691 lt_prog_compiler_no_builtin_flag_GCJ=
23693 if test "$GCC" = yes; then
23694 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23697 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23698 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23699 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 else
23702 lt_cv_prog_compiler_rtti_exceptions=no
23703 ac_outfile=conftest.$ac_objext
23704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23705 lt_compiler_flag="-fno-rtti -fno-exceptions"
23706 # Insert the option either (1) after the last *FLAGS variable, or
23707 # (2) before a word containing "conftest.", or (3) at the end.
23708 # Note that $ac_compile itself does not contain backslashes and begins
23709 # with a dollar sign (not a hyphen), so the echo should work correctly.
23710 # The option is referenced via a variable to avoid confusing sed.
23711 lt_compile=`echo "$ac_compile" | $SED \
23712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23714 -e 's:$: $lt_compiler_flag:'`
23715 (eval echo "\"\$as_me:23715: $lt_compile\"" >&5)
23716 (eval "$lt_compile" 2>conftest.err)
23717 ac_status=$?
23718 cat conftest.err >&5
23719 echo "$as_me:23719: \$? = $ac_status" >&5
23720 if (exit $ac_status) && test -s "$ac_outfile"; then
23721 # The compiler can only warn and ignore the option if not recognized
23722 # So say no if there are warnings other than the usual output.
23723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23726 lt_cv_prog_compiler_rtti_exceptions=yes
23729 $rm conftest*
23732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23733 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23735 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23736 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23737 else
23743 lt_prog_compiler_wl_GCJ=
23744 lt_prog_compiler_pic_GCJ=
23745 lt_prog_compiler_static_GCJ=
23747 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23748 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23750 if test "$GCC" = yes; then
23751 lt_prog_compiler_wl_GCJ='-Wl,'
23752 lt_prog_compiler_static_GCJ='-static'
23754 case $host_os in
23755 aix*)
23756 # All AIX code is PIC.
23757 if test "$host_cpu" = ia64; then
23758 # AIX 5 now supports IA64 processor
23759 lt_prog_compiler_static_GCJ='-Bstatic'
23763 amigaos*)
23764 # FIXME: we need at least 68020 code to build shared libraries, but
23765 # adding the `-m68020' flag to GCC prevents building anything better,
23766 # like `-m68040'.
23767 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23770 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23771 # PIC is the default for these OSes.
23774 mingw* | pw32* | os2*)
23775 # This hack is so that the source file can tell whether it is being
23776 # built for inclusion in a dll (and should export symbols for example).
23777 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23780 darwin* | rhapsody*)
23781 # PIC is the default on this platform
23782 # Common symbols not allowed in MH_DYLIB files
23783 lt_prog_compiler_pic_GCJ='-fno-common'
23786 interix3*)
23787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23788 # Instead, we relocate shared libraries at runtime.
23791 msdosdjgpp*)
23792 # Just because we use GCC doesn't mean we suddenly get shared libraries
23793 # on systems that don't support them.
23794 lt_prog_compiler_can_build_shared_GCJ=no
23795 enable_shared=no
23798 sysv4*MP*)
23799 if test -d /usr/nec; then
23800 lt_prog_compiler_pic_GCJ=-Kconform_pic
23804 hpux*)
23805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23806 # not for PA HP-UX.
23807 case $host_cpu in
23808 hppa*64*|ia64*)
23809 # +Z the default
23812 lt_prog_compiler_pic_GCJ='-fPIC'
23814 esac
23818 lt_prog_compiler_pic_GCJ='-fPIC'
23820 esac
23821 else
23822 # PORTME Check for flag to pass linker flags through the system compiler.
23823 case $host_os in
23824 aix*)
23825 lt_prog_compiler_wl_GCJ='-Wl,'
23826 if test "$host_cpu" = ia64; then
23827 # AIX 5 now supports IA64 processor
23828 lt_prog_compiler_static_GCJ='-Bstatic'
23829 else
23830 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23833 darwin*)
23834 # PIC is the default on this platform
23835 # Common symbols not allowed in MH_DYLIB files
23836 case $cc_basename in
23837 xlc*)
23838 lt_prog_compiler_pic_GCJ='-qnocommon'
23839 lt_prog_compiler_wl_GCJ='-Wl,'
23841 esac
23844 mingw* | pw32* | os2*)
23845 # This hack is so that the source file can tell whether it is being
23846 # built for inclusion in a dll (and should export symbols for example).
23847 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23850 hpux9* | hpux10* | hpux11*)
23851 lt_prog_compiler_wl_GCJ='-Wl,'
23852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23853 # not for PA HP-UX.
23854 case $host_cpu in
23855 hppa*64*|ia64*)
23856 # +Z the default
23859 lt_prog_compiler_pic_GCJ='+Z'
23861 esac
23862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23863 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23866 irix5* | irix6* | nonstopux*)
23867 lt_prog_compiler_wl_GCJ='-Wl,'
23868 # PIC (with -KPIC) is the default.
23869 lt_prog_compiler_static_GCJ='-non_shared'
23872 newsos6)
23873 lt_prog_compiler_pic_GCJ='-KPIC'
23874 lt_prog_compiler_static_GCJ='-Bstatic'
23877 linux*)
23878 case $cc_basename in
23879 icc* | ecc*)
23880 lt_prog_compiler_wl_GCJ='-Wl,'
23881 lt_prog_compiler_pic_GCJ='-KPIC'
23882 lt_prog_compiler_static_GCJ='-static'
23884 pgcc* | pgf77* | pgf90* | pgf95*)
23885 # Portland Group compilers (*not* the Pentium gcc compiler,
23886 # which looks to be a dead project)
23887 lt_prog_compiler_wl_GCJ='-Wl,'
23888 lt_prog_compiler_pic_GCJ='-fpic'
23889 lt_prog_compiler_static_GCJ='-Bstatic'
23891 ccc*)
23892 lt_prog_compiler_wl_GCJ='-Wl,'
23893 # All Alpha code is PIC.
23894 lt_prog_compiler_static_GCJ='-non_shared'
23896 esac
23899 osf3* | osf4* | osf5*)
23900 lt_prog_compiler_wl_GCJ='-Wl,'
23901 # All OSF/1 code is PIC.
23902 lt_prog_compiler_static_GCJ='-non_shared'
23905 solaris*)
23906 lt_prog_compiler_pic_GCJ='-KPIC'
23907 lt_prog_compiler_static_GCJ='-Bstatic'
23908 case $cc_basename in
23909 f77* | f90* | f95*)
23910 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23912 lt_prog_compiler_wl_GCJ='-Wl,';;
23913 esac
23916 sunos4*)
23917 lt_prog_compiler_wl_GCJ='-Qoption ld '
23918 lt_prog_compiler_pic_GCJ='-PIC'
23919 lt_prog_compiler_static_GCJ='-Bstatic'
23922 sysv4 | sysv4.2uw2* | sysv4.3*)
23923 lt_prog_compiler_wl_GCJ='-Wl,'
23924 lt_prog_compiler_pic_GCJ='-KPIC'
23925 lt_prog_compiler_static_GCJ='-Bstatic'
23928 sysv4*MP*)
23929 if test -d /usr/nec ;then
23930 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23931 lt_prog_compiler_static_GCJ='-Bstatic'
23935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23936 lt_prog_compiler_wl_GCJ='-Wl,'
23937 lt_prog_compiler_pic_GCJ='-KPIC'
23938 lt_prog_compiler_static_GCJ='-Bstatic'
23941 unicos*)
23942 lt_prog_compiler_wl_GCJ='-Wl,'
23943 lt_prog_compiler_can_build_shared_GCJ=no
23946 uts4*)
23947 lt_prog_compiler_pic_GCJ='-pic'
23948 lt_prog_compiler_static_GCJ='-Bstatic'
23952 lt_prog_compiler_can_build_shared_GCJ=no
23954 esac
23957 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23958 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23961 # Check to make sure the PIC flag actually works.
23963 if test -n "$lt_prog_compiler_pic_GCJ"; then
23965 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23966 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23967 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969 else
23970 lt_prog_compiler_pic_works_GCJ=no
23971 ac_outfile=conftest.$ac_objext
23972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23973 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23974 # Insert the option either (1) after the last *FLAGS variable, or
23975 # (2) before a word containing "conftest.", or (3) at the end.
23976 # Note that $ac_compile itself does not contain backslashes and begins
23977 # with a dollar sign (not a hyphen), so the echo should work correctly.
23978 # The option is referenced via a variable to avoid confusing sed.
23979 lt_compile=`echo "$ac_compile" | $SED \
23980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23982 -e 's:$: $lt_compiler_flag:'`
23983 (eval echo "\"\$as_me:23983: $lt_compile\"" >&5)
23984 (eval "$lt_compile" 2>conftest.err)
23985 ac_status=$?
23986 cat conftest.err >&5
23987 echo "$as_me:23987: \$? = $ac_status" >&5
23988 if (exit $ac_status) && test -s "$ac_outfile"; then
23989 # The compiler can only warn and ignore the option if not recognized
23990 # So say no if there are warnings other than the usual output.
23991 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23994 lt_prog_compiler_pic_works_GCJ=yes
23997 $rm conftest*
24000 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24001 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24003 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24004 case $lt_prog_compiler_pic_GCJ in
24005 "" | " "*) ;;
24006 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24007 esac
24008 else
24009 lt_prog_compiler_pic_GCJ=
24010 lt_prog_compiler_can_build_shared_GCJ=no
24014 case $host_os in
24015 # For platforms which do not support PIC, -DPIC is meaningless:
24016 *djgpp*)
24017 lt_prog_compiler_pic_GCJ=
24020 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24022 esac
24025 # Check to make sure the static flag actually works.
24027 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24028 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24029 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24030 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24031 echo $ECHO_N "(cached) $ECHO_C" >&6
24032 else
24033 lt_prog_compiler_static_works_GCJ=no
24034 save_LDFLAGS="$LDFLAGS"
24035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24036 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24038 # The linker can only warn and ignore the option if not recognized
24039 # So say no if there are warnings
24040 if test -s conftest.err; then
24041 # Append any errors to the config.log.
24042 cat conftest.err 1>&5
24043 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24045 if diff conftest.exp conftest.er2 >/dev/null; then
24046 lt_prog_compiler_static_works_GCJ=yes
24048 else
24049 lt_prog_compiler_static_works_GCJ=yes
24052 $rm conftest*
24053 LDFLAGS="$save_LDFLAGS"
24056 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24057 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24059 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24061 else
24062 lt_prog_compiler_static_GCJ=
24066 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24067 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24068 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24070 else
24071 lt_cv_prog_compiler_c_o_GCJ=no
24072 $rm -r conftest 2>/dev/null
24073 mkdir conftest
24074 cd conftest
24075 mkdir out
24076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24078 lt_compiler_flag="-o out/conftest2.$ac_objext"
24079 # Insert the option either (1) after the last *FLAGS variable, or
24080 # (2) before a word containing "conftest.", or (3) at the end.
24081 # Note that $ac_compile itself does not contain backslashes and begins
24082 # with a dollar sign (not a hyphen), so the echo should work correctly.
24083 lt_compile=`echo "$ac_compile" | $SED \
24084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24086 -e 's:$: $lt_compiler_flag:'`
24087 (eval echo "\"\$as_me:24087: $lt_compile\"" >&5)
24088 (eval "$lt_compile" 2>out/conftest.err)
24089 ac_status=$?
24090 cat out/conftest.err >&5
24091 echo "$as_me:24091: \$? = $ac_status" >&5
24092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24093 then
24094 # The compiler can only warn and ignore the option if not recognized
24095 # So say no if there are warnings
24096 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24099 lt_cv_prog_compiler_c_o_GCJ=yes
24102 chmod u+w . 2>&5
24103 $rm conftest*
24104 # SGI C++ compiler will create directory out/ii_files/ for
24105 # template instantiation
24106 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24107 $rm out/* && rmdir out
24108 cd ..
24109 rmdir conftest
24110 $rm conftest*
24113 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24114 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24117 hard_links="nottested"
24118 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24119 # do not overwrite the value of need_locks provided by the user
24120 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24121 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24122 hard_links=yes
24123 $rm conftest*
24124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24125 touch conftest.a
24126 ln conftest.a conftest.b 2>&5 || hard_links=no
24127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24128 { echo "$as_me:$LINENO: result: $hard_links" >&5
24129 echo "${ECHO_T}$hard_links" >&6; }
24130 if test "$hard_links" = no; then
24131 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24132 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24133 need_locks=warn
24135 else
24136 need_locks=no
24139 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24140 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24142 runpath_var=
24143 allow_undefined_flag_GCJ=
24144 enable_shared_with_static_runtimes_GCJ=no
24145 archive_cmds_GCJ=
24146 archive_expsym_cmds_GCJ=
24147 old_archive_From_new_cmds_GCJ=
24148 old_archive_from_expsyms_cmds_GCJ=
24149 export_dynamic_flag_spec_GCJ=
24150 whole_archive_flag_spec_GCJ=
24151 thread_safe_flag_spec_GCJ=
24152 hardcode_libdir_flag_spec_GCJ=
24153 hardcode_libdir_flag_spec_ld_GCJ=
24154 hardcode_libdir_separator_GCJ=
24155 hardcode_direct_GCJ=no
24156 hardcode_minus_L_GCJ=no
24157 hardcode_shlibpath_var_GCJ=unsupported
24158 link_all_deplibs_GCJ=unknown
24159 hardcode_automatic_GCJ=no
24160 module_cmds_GCJ=
24161 module_expsym_cmds_GCJ=
24162 always_export_symbols_GCJ=no
24163 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24164 # include_expsyms should be a list of space-separated symbols to be *always*
24165 # included in the symbol list
24166 include_expsyms_GCJ=
24167 # exclude_expsyms can be an extended regexp of symbols to exclude
24168 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24169 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24170 # as well as any symbol that contains `d'.
24171 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24172 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24173 # platforms (ab)use it in PIC code, but their linkers get confused if
24174 # the symbol is explicitly referenced. Since portable code cannot
24175 # rely on this symbol name, it's probably fine to never include it in
24176 # preloaded symbol tables.
24177 extract_expsyms_cmds=
24178 # Just being paranoid about ensuring that cc_basename is set.
24179 for cc_temp in $compiler""; do
24180 case $cc_temp in
24181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24183 \-*) ;;
24184 *) break;;
24185 esac
24186 done
24187 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24189 case $host_os in
24190 cygwin* | mingw* | pw32*)
24191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24192 # When not using gcc, we currently assume that we are using
24193 # Microsoft Visual C++.
24194 if test "$GCC" != yes; then
24195 with_gnu_ld=no
24198 interix*)
24199 # we just hope/assume this is gcc and not c89 (= MSVC++)
24200 with_gnu_ld=yes
24202 openbsd*)
24203 with_gnu_ld=no
24205 esac
24207 ld_shlibs_GCJ=yes
24208 if test "$with_gnu_ld" = yes; then
24209 # If archive_cmds runs LD, not CC, wlarc should be empty
24210 wlarc='${wl}'
24212 # Set some defaults for GNU ld with shared library support. These
24213 # are reset later if shared libraries are not supported. Putting them
24214 # here allows them to be overridden if necessary.
24215 runpath_var=LD_RUN_PATH
24216 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24217 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24218 # ancient GNU ld didn't support --whole-archive et. al.
24219 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24220 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24221 else
24222 whole_archive_flag_spec_GCJ=
24224 supports_anon_versioning=no
24225 case `$LD -v 2>/dev/null` in
24226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24229 *\ 2.11.*) ;; # other 2.11 versions
24230 *) supports_anon_versioning=yes ;;
24231 esac
24233 # See if GNU ld supports shared libraries.
24234 case $host_os in
24235 aix3* | aix4* | aix5*)
24236 # On AIX/PPC, the GNU linker is very broken
24237 if test "$host_cpu" != ia64; then
24238 ld_shlibs_GCJ=no
24239 cat <<EOF 1>&2
24241 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24242 *** to be unable to reliably create shared libraries on AIX.
24243 *** Therefore, libtool is disabling shared libraries support. If you
24244 *** really care for shared libraries, you may want to modify your PATH
24245 *** so that a non-GNU linker is found, and then restart.
24251 amigaos*)
24252 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)'
24253 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24254 hardcode_minus_L_GCJ=yes
24256 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24257 # that the semantics of dynamic libraries on AmigaOS, at least up
24258 # to version 4, is to share data among multiple programs linked
24259 # with the same dynamic library. Since this doesn't match the
24260 # behavior of shared libraries on other platforms, we can't use
24261 # them.
24262 ld_shlibs_GCJ=no
24265 beos*)
24266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24267 allow_undefined_flag_GCJ=unsupported
24268 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24269 # support --undefined. This deserves some investigation. FIXME
24270 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24271 else
24272 ld_shlibs_GCJ=no
24276 cygwin* | mingw* | pw32*)
24277 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24278 # as there is no search path for DLLs.
24279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24280 allow_undefined_flag_GCJ=unsupported
24281 always_export_symbols_GCJ=no
24282 enable_shared_with_static_runtimes_GCJ=yes
24283 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24285 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24286 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24287 # If the export-symbols file already is a .def file (1st line
24288 # is EXPORTS), use it as is; otherwise, prepend...
24289 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24290 cp $export_symbols $output_objdir/$soname.def;
24291 else
24292 echo EXPORTS > $output_objdir/$soname.def;
24293 cat $export_symbols >> $output_objdir/$soname.def;
24295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24296 else
24297 ld_shlibs_GCJ=no
24301 interix3*)
24302 hardcode_direct_GCJ=no
24303 hardcode_shlibpath_var_GCJ=no
24304 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24305 export_dynamic_flag_spec_GCJ='${wl}-E'
24306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24307 # Instead, shared libraries are loaded at an image base (0x10000000 by
24308 # default) and relocated if they conflict, which is a slow very memory
24309 # consuming and fragmenting process. To avoid this, we pick a random,
24310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24311 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24312 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'
24313 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'
24316 linux*)
24317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24318 tmp_addflag=
24319 case $cc_basename,$host_cpu in
24320 pgcc*) # Portland Group C compiler
24321 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'
24322 tmp_addflag=' $pic_flag'
24324 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24325 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'
24326 tmp_addflag=' $pic_flag -Mnomain' ;;
24327 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24328 tmp_addflag=' -i_dynamic' ;;
24329 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24330 tmp_addflag=' -i_dynamic -nofor_main' ;;
24331 ifc* | ifort*) # Intel Fortran compiler
24332 tmp_addflag=' -nofor_main' ;;
24333 esac
24334 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24336 if test $supports_anon_versioning = yes; then
24337 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24339 $echo "local: *; };" >> $output_objdir/$libname.ver~
24340 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24342 else
24343 ld_shlibs_GCJ=no
24347 netbsd*)
24348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24349 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24350 wlarc=
24351 else
24352 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24353 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24357 solaris*)
24358 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24359 ld_shlibs_GCJ=no
24360 cat <<EOF 1>&2
24362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24363 *** create shared libraries on Solaris systems. Therefore, libtool
24364 *** is disabling shared libraries support. We urge you to upgrade GNU
24365 *** binutils to release 2.9.1 or newer. Another option is to modify
24366 *** your PATH or compiler configuration so that the native linker is
24367 *** used, and then restart.
24370 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24371 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24372 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24373 else
24374 ld_shlibs_GCJ=no
24378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24379 case `$LD -v 2>&1` in
24380 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24381 ld_shlibs_GCJ=no
24382 cat <<_LT_EOF 1>&2
24384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24385 *** reliably create shared libraries on SCO systems. Therefore, libtool
24386 *** is disabling shared libraries support. We urge you to upgrade GNU
24387 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24388 *** your PATH or compiler configuration so that the native linker is
24389 *** used, and then restart.
24391 _LT_EOF
24394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24395 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24398 else
24399 ld_shlibs_GCJ=no
24402 esac
24405 sunos4*)
24406 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24407 wlarc=
24408 hardcode_direct_GCJ=yes
24409 hardcode_shlibpath_var_GCJ=no
24413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24414 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24415 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24416 else
24417 ld_shlibs_GCJ=no
24420 esac
24422 if test "$ld_shlibs_GCJ" = no; then
24423 runpath_var=
24424 hardcode_libdir_flag_spec_GCJ=
24425 export_dynamic_flag_spec_GCJ=
24426 whole_archive_flag_spec_GCJ=
24428 else
24429 # PORTME fill in a description of your system's linker (not GNU ld)
24430 case $host_os in
24431 aix3*)
24432 allow_undefined_flag_GCJ=unsupported
24433 always_export_symbols_GCJ=yes
24434 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'
24435 # Note: this linker hardcodes the directories in LIBPATH if there
24436 # are no directories specified by -L.
24437 hardcode_minus_L_GCJ=yes
24438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24439 # Neither direct hardcoding nor static linking is supported with a
24440 # broken collect2.
24441 hardcode_direct_GCJ=unsupported
24445 aix4* | aix5*)
24446 if test "$host_cpu" = ia64; then
24447 # On IA64, the linker does run time linking by default, so we don't
24448 # have to do anything special.
24449 aix_use_runtimelinking=no
24450 exp_sym_flag='-Bexport'
24451 no_entry_flag=""
24452 else
24453 # If we're using GNU nm, then we don't want the "-C" option.
24454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24455 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24456 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'
24457 else
24458 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'
24460 aix_use_runtimelinking=no
24462 # Test if we are trying to use run time linking or normal
24463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24464 # need to do runtime linking.
24465 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24466 for ld_flag in $LDFLAGS; do
24467 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24468 aix_use_runtimelinking=yes
24469 break
24471 done
24473 esac
24475 exp_sym_flag='-bexport'
24476 no_entry_flag='-bnoentry'
24479 # When large executables or shared objects are built, AIX ld can
24480 # have problems creating the table of contents. If linking a library
24481 # or program results in "error TOC overflow" add -mminimal-toc to
24482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24485 archive_cmds_GCJ=''
24486 hardcode_direct_GCJ=yes
24487 hardcode_libdir_separator_GCJ=':'
24488 link_all_deplibs_GCJ=yes
24490 if test "$GCC" = yes; then
24491 case $host_os in aix4.[012]|aix4.[012].*)
24492 # We only want to do this on AIX 4.2 and lower, the check
24493 # below for broken collect2 doesn't work under 4.3+
24494 collect2name=`${CC} -print-prog-name=collect2`
24495 if test -f "$collect2name" && \
24496 strings "$collect2name" | grep resolve_lib_name >/dev/null
24497 then
24498 # We have reworked collect2
24499 hardcode_direct_GCJ=yes
24500 else
24501 # We have old collect2
24502 hardcode_direct_GCJ=unsupported
24503 # It fails to find uninstalled libraries when the uninstalled
24504 # path is not listed in the libpath. Setting hardcode_minus_L
24505 # to unsupported forces relinking
24506 hardcode_minus_L_GCJ=yes
24507 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24508 hardcode_libdir_separator_GCJ=
24511 esac
24512 shared_flag='-shared'
24513 if test "$aix_use_runtimelinking" = yes; then
24514 shared_flag="$shared_flag "'${wl}-G'
24516 else
24517 # not using gcc
24518 if test "$host_cpu" = ia64; then
24519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24520 # chokes on -Wl,-G. The following line is correct:
24521 shared_flag='-G'
24522 else
24523 if test "$aix_use_runtimelinking" = yes; then
24524 shared_flag='${wl}-G'
24525 else
24526 shared_flag='${wl}-bM:SRE'
24531 # It seems that -bexpall does not export symbols beginning with
24532 # underscore (_), so it is better to generate a list of symbols to export.
24533 always_export_symbols_GCJ=yes
24534 if test "$aix_use_runtimelinking" = yes; then
24535 # Warning - without using the other runtime loading flags (-brtl),
24536 # -berok will link without error, but may produce a broken library.
24537 allow_undefined_flag_GCJ='-berok'
24538 # Determine the default libpath from the value encoded in an empty executable.
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24547 main ()
24551 return 0;
24553 _ACEOF
24554 rm -f conftest.$ac_objext conftest$ac_exeext
24555 if { (ac_try="$ac_link"
24556 case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24559 esac
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561 (eval "$ac_link") 2>conftest.er1
24562 ac_status=$?
24563 grep -v '^ *+' conftest.er1 >conftest.err
24564 rm -f conftest.er1
24565 cat conftest.err >&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } &&
24568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24569 { (case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_try") 2>&5
24575 ac_status=$?
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest$ac_exeext'
24579 { (case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24582 esac
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_try") 2>&5
24585 ac_status=$?
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); }; }; then
24589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24591 # Check for a 64-bit object if we didn't find anything.
24592 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; }
24593 }'`; fi
24594 else
24595 echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24601 rm -f core conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
24603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24605 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24606 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"
24607 else
24608 if test "$host_cpu" = ia64; then
24609 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24610 allow_undefined_flag_GCJ="-z nodefs"
24611 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"
24612 else
24613 # Determine the default libpath from the value encoded in an empty executable.
24614 cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h. */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h. */
24622 main ()
24626 return 0;
24628 _ACEOF
24629 rm -f conftest.$ac_objext conftest$ac_exeext
24630 if { (ac_try="$ac_link"
24631 case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634 esac
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_link") 2>conftest.er1
24637 ac_status=$?
24638 grep -v '^ *+' conftest.er1 >conftest.err
24639 rm -f conftest.er1
24640 cat conftest.err >&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } &&
24643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24644 { (case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24647 esac
24648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649 (eval "$ac_try") 2>&5
24650 ac_status=$?
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); }; } &&
24653 { ac_try='test -s conftest$ac_exeext'
24654 { (case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657 esac
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_try") 2>&5
24660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24666 # Check for a 64-bit object if we didn't find anything.
24667 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; }
24668 }'`; fi
24669 else
24670 echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24676 rm -f core conftest.err conftest.$ac_objext \
24677 conftest$ac_exeext conftest.$ac_ext
24678 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24680 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24681 # Warning - without using the other run time loading flags,
24682 # -berok will link without error, but may produce a broken library.
24683 no_undefined_flag_GCJ=' ${wl}-bernotok'
24684 allow_undefined_flag_GCJ=' ${wl}-berok'
24685 # Exported symbols can be pulled into shared objects from archives
24686 whole_archive_flag_spec_GCJ='$convenience'
24687 archive_cmds_need_lc_GCJ=yes
24688 # This is similar to how AIX traditionally builds its shared libraries.
24689 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'
24694 amigaos*)
24695 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24697 hardcode_minus_L_GCJ=yes
24698 # see comment about different semantics on the GNU ld section
24699 ld_shlibs_GCJ=no
24702 bsdi[45]*)
24703 export_dynamic_flag_spec_GCJ=-rdynamic
24706 cygwin* | mingw* | pw32*)
24707 # When not using gcc, we currently assume that we are using
24708 # Microsoft Visual C++.
24709 # hardcode_libdir_flag_spec is actually meaningless, as there is
24710 # no search path for DLLs.
24711 hardcode_libdir_flag_spec_GCJ=' '
24712 allow_undefined_flag_GCJ=unsupported
24713 # Tell ltmain to make .lib files, not .a files.
24714 libext=lib
24715 # Tell ltmain to make .dll files, not .so files.
24716 shrext_cmds=".dll"
24717 # FIXME: Setting linknames here is a bad hack.
24718 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24719 # The linker will automatically build a .lib file if we build a DLL.
24720 old_archive_From_new_cmds_GCJ='true'
24721 # FIXME: Should let the user specify the lib program.
24722 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24723 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24724 enable_shared_with_static_runtimes_GCJ=yes
24727 darwin* | rhapsody*)
24728 case $host_os in
24729 rhapsody* | darwin1.[012])
24730 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24732 *) # Darwin 1.3 on
24733 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24734 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24735 else
24736 case ${MACOSX_DEPLOYMENT_TARGET} in
24737 10.[012])
24738 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24740 10.*)
24741 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24743 esac
24746 esac
24747 archive_cmds_need_lc_GCJ=no
24748 hardcode_direct_GCJ=no
24749 hardcode_automatic_GCJ=yes
24750 hardcode_shlibpath_var_GCJ=unsupported
24751 whole_archive_flag_spec_GCJ=''
24752 link_all_deplibs_GCJ=yes
24753 if test "$GCC" = yes ; then
24754 output_verbose_link_cmd='echo'
24755 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24756 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24757 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24758 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}'
24759 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}'
24760 else
24761 case $cc_basename in
24762 xlc*)
24763 output_verbose_link_cmd='echo'
24764 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24765 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24767 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}'
24768 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}'
24771 ld_shlibs_GCJ=no
24773 esac
24777 dgux*)
24778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24780 hardcode_shlibpath_var_GCJ=no
24783 freebsd1*)
24784 ld_shlibs_GCJ=no
24787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24788 # support. Future versions do this automatically, but an explicit c++rt0.o
24789 # does not break anything, and helps significantly (at the cost of a little
24790 # extra space).
24791 freebsd2.2*)
24792 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24794 hardcode_direct_GCJ=yes
24795 hardcode_shlibpath_var_GCJ=no
24798 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24799 freebsd2*)
24800 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24801 hardcode_direct_GCJ=yes
24802 hardcode_minus_L_GCJ=yes
24803 hardcode_shlibpath_var_GCJ=no
24806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24807 freebsd* | kfreebsd*-gnu | dragonfly*)
24808 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24810 hardcode_direct_GCJ=yes
24811 hardcode_shlibpath_var_GCJ=no
24814 hpux9*)
24815 if test "$GCC" = yes; then
24816 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'
24817 else
24818 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'
24820 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24821 hardcode_libdir_separator_GCJ=:
24822 hardcode_direct_GCJ=yes
24824 # hardcode_minus_L: Not really in the search PATH,
24825 # but as the default location of the library.
24826 hardcode_minus_L_GCJ=yes
24827 export_dynamic_flag_spec_GCJ='${wl}-E'
24830 hpux10*)
24831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24832 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24833 else
24834 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24836 if test "$with_gnu_ld" = no; then
24837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24838 hardcode_libdir_separator_GCJ=:
24840 hardcode_direct_GCJ=yes
24841 export_dynamic_flag_spec_GCJ='${wl}-E'
24843 # hardcode_minus_L: Not really in the search PATH,
24844 # but as the default location of the library.
24845 hardcode_minus_L_GCJ=yes
24849 hpux11*)
24850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24851 case $host_cpu in
24852 hppa*64*)
24853 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24855 ia64*)
24856 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24859 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24861 esac
24862 else
24863 case $host_cpu in
24864 hppa*64*)
24865 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24867 ia64*)
24868 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24871 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24873 esac
24875 if test "$with_gnu_ld" = no; then
24876 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24877 hardcode_libdir_separator_GCJ=:
24879 case $host_cpu in
24880 hppa*64*|ia64*)
24881 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24882 hardcode_direct_GCJ=no
24883 hardcode_shlibpath_var_GCJ=no
24886 hardcode_direct_GCJ=yes
24887 export_dynamic_flag_spec_GCJ='${wl}-E'
24889 # hardcode_minus_L: Not really in the search PATH,
24890 # but as the default location of the library.
24891 hardcode_minus_L_GCJ=yes
24893 esac
24897 irix5* | irix6* | nonstopux*)
24898 if test "$GCC" = yes; then
24899 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'
24900 else
24901 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'
24902 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24905 hardcode_libdir_separator_GCJ=:
24906 link_all_deplibs_GCJ=yes
24909 netbsd*)
24910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24912 else
24913 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24915 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24916 hardcode_direct_GCJ=yes
24917 hardcode_shlibpath_var_GCJ=no
24920 newsos6)
24921 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24922 hardcode_direct_GCJ=yes
24923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24924 hardcode_libdir_separator_GCJ=:
24925 hardcode_shlibpath_var_GCJ=no
24928 openbsd*)
24929 hardcode_direct_GCJ=yes
24930 hardcode_shlibpath_var_GCJ=no
24931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24932 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24933 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24935 export_dynamic_flag_spec_GCJ='${wl}-E'
24936 else
24937 case $host_os in
24938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24943 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24946 esac
24950 os2*)
24951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24952 hardcode_minus_L_GCJ=yes
24953 allow_undefined_flag_GCJ=unsupported
24954 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'
24955 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24958 osf3*)
24959 if test "$GCC" = yes; then
24960 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24961 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'
24962 else
24963 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24964 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'
24966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24967 hardcode_libdir_separator_GCJ=:
24970 osf4* | osf5*) # as osf3* with the addition of -msym flag
24971 if test "$GCC" = yes; then
24972 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24973 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'
24974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24975 else
24976 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24977 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'
24978 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~
24979 $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'
24981 # Both c and cxx compiler support -rpath directly
24982 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24984 hardcode_libdir_separator_GCJ=:
24987 solaris*)
24988 no_undefined_flag_GCJ=' -z text'
24989 if test "$GCC" = yes; then
24990 wlarc='${wl}'
24991 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24992 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24993 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24994 else
24995 wlarc=''
24996 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24997 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25001 hardcode_shlibpath_var_GCJ=no
25002 case $host_os in
25003 solaris2.[0-5] | solaris2.[0-5].*) ;;
25005 # The compiler driver will combine linker options so we
25006 # cannot just pass the convience library names through
25007 # without $wl, iff we do not link with $LD.
25008 # Luckily, gcc supports the same syntax we need for Sun Studio.
25009 # Supported since Solaris 2.6 (maybe 2.5.1?)
25010 case $wlarc in
25012 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25014 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' ;;
25015 esac ;;
25016 esac
25017 link_all_deplibs_GCJ=yes
25020 sunos4*)
25021 if test "x$host_vendor" = xsequent; then
25022 # Use $CC to link under sequent, because it throws in some extra .o
25023 # files that make .init and .fini sections work.
25024 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25025 else
25026 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25029 hardcode_direct_GCJ=yes
25030 hardcode_minus_L_GCJ=yes
25031 hardcode_shlibpath_var_GCJ=no
25034 sysv4)
25035 case $host_vendor in
25036 sni)
25037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25038 hardcode_direct_GCJ=yes # is this really true???
25040 siemens)
25041 ## LD is ld it makes a PLAMLIB
25042 ## CC just makes a GrossModule.
25043 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25044 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25045 hardcode_direct_GCJ=no
25047 motorola)
25048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25049 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25051 esac
25052 runpath_var='LD_RUN_PATH'
25053 hardcode_shlibpath_var_GCJ=no
25056 sysv4.3*)
25057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25058 hardcode_shlibpath_var_GCJ=no
25059 export_dynamic_flag_spec_GCJ='-Bexport'
25062 sysv4*MP*)
25063 if test -d /usr/nec; then
25064 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25065 hardcode_shlibpath_var_GCJ=no
25066 runpath_var=LD_RUN_PATH
25067 hardcode_runpath_var=yes
25068 ld_shlibs_GCJ=yes
25072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25073 no_undefined_flag_GCJ='${wl}-z,text'
25074 archive_cmds_need_lc_GCJ=no
25075 hardcode_shlibpath_var_GCJ=no
25076 runpath_var='LD_RUN_PATH'
25078 if test "$GCC" = yes; then
25079 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25080 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25081 else
25082 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25083 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25087 sysv5* | sco3.2v5* | sco5v6*)
25088 # Note: We can NOT use -z defs as we might desire, because we do not
25089 # link with -lc, and that would cause any symbols used from libc to
25090 # always be unresolved, which means just about no library would
25091 # ever link correctly. If we're not using GNU ld we use -z text
25092 # though, which does catch some bad symbols but isn't as heavy-handed
25093 # as -z defs.
25094 no_undefined_flag_GCJ='${wl}-z,text'
25095 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25096 archive_cmds_need_lc_GCJ=no
25097 hardcode_shlibpath_var_GCJ=no
25098 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25099 hardcode_libdir_separator_GCJ=':'
25100 link_all_deplibs_GCJ=yes
25101 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25102 runpath_var='LD_RUN_PATH'
25104 if test "$GCC" = yes; then
25105 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25106 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25107 else
25108 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25109 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25113 uts4*)
25114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25115 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25116 hardcode_shlibpath_var_GCJ=no
25120 ld_shlibs_GCJ=no
25122 esac
25125 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25126 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25127 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25130 # Do we need to explicitly link libc?
25132 case "x$archive_cmds_need_lc_GCJ" in
25133 x|xyes)
25134 # Assume -lc should be added
25135 archive_cmds_need_lc_GCJ=yes
25137 if test "$enable_shared" = yes && test "$GCC" = yes; then
25138 case $archive_cmds_GCJ in
25139 *'~'*)
25140 # FIXME: we may have to deal with multi-command sequences.
25142 '$CC '*)
25143 # Test whether the compiler implicitly links with -lc since on some
25144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25145 # to ld, don't add -lc before -lgcc.
25146 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25147 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25148 $rm conftest*
25149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25152 (eval $ac_compile) 2>&5
25153 ac_status=$?
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } 2>conftest.err; then
25156 soname=conftest
25157 lib=conftest
25158 libobjs=conftest.$ac_objext
25159 deplibs=
25160 wl=$lt_prog_compiler_wl_GCJ
25161 pic_flag=$lt_prog_compiler_pic_GCJ
25162 compiler_flags=-v
25163 linker_flags=-v
25164 verstring=
25165 output_objdir=.
25166 libname=conftest
25167 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25168 allow_undefined_flag_GCJ=
25169 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25170 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }
25174 then
25175 archive_cmds_need_lc_GCJ=no
25176 else
25177 archive_cmds_need_lc_GCJ=yes
25179 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25180 else
25181 cat conftest.err 1>&5
25183 $rm conftest*
25184 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25185 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25187 esac
25190 esac
25192 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25193 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25194 library_names_spec=
25195 libname_spec='lib$name'
25196 soname_spec=
25197 shrext_cmds=".so"
25198 postinstall_cmds=
25199 postuninstall_cmds=
25200 finish_cmds=
25201 finish_eval=
25202 shlibpath_var=
25203 shlibpath_overrides_runpath=unknown
25204 version_type=none
25205 dynamic_linker="$host_os ld.so"
25206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25207 if test "$GCC" = yes; then
25208 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25209 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25210 # if the path contains ";" then we assume it to be the separator
25211 # otherwise default to the standard path separator (i.e. ":") - it is
25212 # assumed that no part of a normal pathname contains ";" but that should
25213 # okay in the real world where ";" in dirpaths is itself problematic.
25214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25215 else
25216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25218 else
25219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25221 need_lib_prefix=unknown
25222 hardcode_into_libs=no
25224 # when you set need_version to no, make sure it does not cause -set_version
25225 # flags to be left without arguments
25226 need_version=unknown
25228 case $host_os in
25229 aix3*)
25230 version_type=linux
25231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25232 shlibpath_var=LIBPATH
25234 # AIX 3 has no versioning support, so we append a major version to the name.
25235 soname_spec='${libname}${release}${shared_ext}$major'
25238 aix4* | aix5*)
25239 version_type=linux
25240 need_lib_prefix=no
25241 need_version=no
25242 hardcode_into_libs=yes
25243 if test "$host_cpu" = ia64; then
25244 # AIX 5 supports IA64
25245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25246 shlibpath_var=LD_LIBRARY_PATH
25247 else
25248 # With GCC up to 2.95.x, collect2 would create an import file
25249 # for dependence libraries. The import file would start with
25250 # the line `#! .'. This would cause the generated library to
25251 # depend on `.', always an invalid library. This was fixed in
25252 # development snapshots of GCC prior to 3.0.
25253 case $host_os in
25254 aix4 | aix4.[01] | aix4.[01].*)
25255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25256 echo ' yes '
25257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25259 else
25260 can_build_shared=no
25263 esac
25264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25265 # soname into executable. Probably we can add versioning support to
25266 # collect2, so additional links can be useful in future.
25267 if test "$aix_use_runtimelinking" = yes; then
25268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25269 # instead of lib<name>.a to let people know that these are not
25270 # typical AIX shared libraries.
25271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25272 else
25273 # We preserve .a as extension for shared libraries through AIX4.2
25274 # and later when we are not doing run time linking.
25275 library_names_spec='${libname}${release}.a $libname.a'
25276 soname_spec='${libname}${release}${shared_ext}$major'
25278 shlibpath_var=LIBPATH
25282 amigaos*)
25283 library_names_spec='$libname.ixlibrary $libname.a'
25284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25285 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'
25288 beos*)
25289 library_names_spec='${libname}${shared_ext}'
25290 dynamic_linker="$host_os ld.so"
25291 shlibpath_var=LIBRARY_PATH
25294 bsdi[45]*)
25295 version_type=linux
25296 need_version=no
25297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25298 soname_spec='${libname}${release}${shared_ext}$major'
25299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25300 shlibpath_var=LD_LIBRARY_PATH
25301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25303 # the default ld.so.conf also contains /usr/contrib/lib and
25304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25305 # libtool to hard-code these into programs
25308 cygwin* | mingw* | pw32*)
25309 version_type=windows
25310 shrext_cmds=".dll"
25311 need_version=no
25312 need_lib_prefix=no
25314 case $GCC,$host_os in
25315 yes,cygwin* | yes,mingw* | yes,pw32*)
25316 library_names_spec='$libname.dll.a'
25317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25318 postinstall_cmds='base_file=`basename \${file}`~
25319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25320 dldir=$destdir/`dirname \$dlpath`~
25321 test -d \$dldir || mkdir -p \$dldir~
25322 $install_prog $dir/$dlname \$dldir/$dlname~
25323 chmod a+x \$dldir/$dlname'
25324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25325 dlpath=$dir/\$dldll~
25326 $rm \$dlpath'
25327 shlibpath_overrides_runpath=yes
25329 case $host_os in
25330 cygwin*)
25331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25335 mingw*)
25336 # MinGW DLLs use traditional 'lib' prefix
25337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25340 # It is most probably a Windows format PATH printed by
25341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25342 # path with ; separators, and with drive letters. We can handle the
25343 # drive letters (cygwin fileutils understands them), so leave them,
25344 # especially as we might pass files found there to a mingw objdump,
25345 # which wouldn't understand a cygwinified path. Ahh.
25346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25347 else
25348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25351 pw32*)
25352 # pw32 DLLs use 'pw' prefix rather than 'lib'
25353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25355 esac
25359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25361 esac
25362 dynamic_linker='Win32 ld.exe'
25363 # FIXME: first we should search . and the directory the executable is in
25364 shlibpath_var=PATH
25367 darwin* | rhapsody*)
25368 dynamic_linker="$host_os dyld"
25369 version_type=darwin
25370 need_lib_prefix=no
25371 need_version=no
25372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25373 soname_spec='${libname}${release}${major}$shared_ext'
25374 shlibpath_overrides_runpath=yes
25375 shlibpath_var=DYLD_LIBRARY_PATH
25376 shrext_cmds='.dylib'
25377 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25378 if test "$GCC" = yes; then
25379 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"`
25380 else
25381 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25386 dgux*)
25387 version_type=linux
25388 need_lib_prefix=no
25389 need_version=no
25390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25391 soname_spec='${libname}${release}${shared_ext}$major'
25392 shlibpath_var=LD_LIBRARY_PATH
25395 freebsd1*)
25396 dynamic_linker=no
25399 kfreebsd*-gnu)
25400 version_type=linux
25401 need_lib_prefix=no
25402 need_version=no
25403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25404 soname_spec='${libname}${release}${shared_ext}$major'
25405 shlibpath_var=LD_LIBRARY_PATH
25406 shlibpath_overrides_runpath=no
25407 hardcode_into_libs=yes
25408 dynamic_linker='GNU ld.so'
25411 freebsd* | dragonfly*)
25412 # DragonFly does not have aout. When/if they implement a new
25413 # versioning mechanism, adjust this.
25414 if test -x /usr/bin/objformat; then
25415 objformat=`/usr/bin/objformat`
25416 else
25417 case $host_os in
25418 freebsd[123]*) objformat=aout ;;
25419 *) objformat=elf ;;
25420 esac
25422 version_type=freebsd-$objformat
25423 case $version_type in
25424 freebsd-elf*)
25425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25426 need_version=no
25427 need_lib_prefix=no
25429 freebsd-*)
25430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25431 need_version=yes
25433 esac
25434 shlibpath_var=LD_LIBRARY_PATH
25435 case $host_os in
25436 freebsd2*)
25437 shlibpath_overrides_runpath=yes
25439 freebsd3.[01]* | freebsdelf3.[01]*)
25440 shlibpath_overrides_runpath=yes
25441 hardcode_into_libs=yes
25443 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25444 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25445 shlibpath_overrides_runpath=no
25446 hardcode_into_libs=yes
25448 freebsd*) # from 4.6 on
25449 shlibpath_overrides_runpath=yes
25450 hardcode_into_libs=yes
25452 esac
25455 gnu*)
25456 version_type=linux
25457 need_lib_prefix=no
25458 need_version=no
25459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25460 soname_spec='${libname}${release}${shared_ext}$major'
25461 shlibpath_var=LD_LIBRARY_PATH
25462 hardcode_into_libs=yes
25465 hpux9* | hpux10* | hpux11*)
25466 # Give a soname corresponding to the major version so that dld.sl refuses to
25467 # link against other versions.
25468 version_type=sunos
25469 need_lib_prefix=no
25470 need_version=no
25471 case $host_cpu in
25472 ia64*)
25473 shrext_cmds='.so'
25474 hardcode_into_libs=yes
25475 dynamic_linker="$host_os dld.so"
25476 shlibpath_var=LD_LIBRARY_PATH
25477 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25479 soname_spec='${libname}${release}${shared_ext}$major'
25480 if test "X$HPUX_IA64_MODE" = X32; then
25481 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25482 else
25483 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25487 hppa*64*)
25488 shrext_cmds='.sl'
25489 hardcode_into_libs=yes
25490 dynamic_linker="$host_os dld.sl"
25491 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25494 soname_spec='${libname}${release}${shared_ext}$major'
25495 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25499 shrext_cmds='.sl'
25500 dynamic_linker="$host_os dld.sl"
25501 shlibpath_var=SHLIB_PATH
25502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25506 esac
25507 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25508 postinstall_cmds='chmod 555 $lib'
25511 interix3*)
25512 version_type=linux
25513 need_lib_prefix=no
25514 need_version=no
25515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25516 soname_spec='${libname}${release}${shared_ext}$major'
25517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25518 shlibpath_var=LD_LIBRARY_PATH
25519 shlibpath_overrides_runpath=no
25520 hardcode_into_libs=yes
25523 irix5* | irix6* | nonstopux*)
25524 case $host_os in
25525 nonstopux*) version_type=nonstopux ;;
25527 if test "$lt_cv_prog_gnu_ld" = yes; then
25528 version_type=linux
25529 else
25530 version_type=irix
25531 fi ;;
25532 esac
25533 need_lib_prefix=no
25534 need_version=no
25535 soname_spec='${libname}${release}${shared_ext}$major'
25536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25537 case $host_os in
25538 irix5* | nonstopux*)
25539 libsuff= shlibsuff=
25542 case $LD in # libtool.m4 will add one of these switches to LD
25543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25544 libsuff= shlibsuff= libmagic=32-bit;;
25545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25546 libsuff=32 shlibsuff=N32 libmagic=N32;;
25547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25549 *) libsuff= shlibsuff= libmagic=never-match;;
25550 esac
25552 esac
25553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25554 shlibpath_overrides_runpath=no
25555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25557 hardcode_into_libs=yes
25560 # No shared lib support for Linux oldld, aout, or coff.
25561 linux*oldld* | linux*aout* | linux*coff*)
25562 dynamic_linker=no
25565 # This must be Linux ELF.
25566 linux*)
25567 version_type=linux
25568 need_lib_prefix=no
25569 need_version=no
25570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25571 soname_spec='${libname}${release}${shared_ext}$major'
25572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25573 shlibpath_var=LD_LIBRARY_PATH
25574 shlibpath_overrides_runpath=no
25575 # This implies no fast_install, which is unacceptable.
25576 # Some rework will be needed to allow for fast_install
25577 # before this can be enabled.
25578 hardcode_into_libs=yes
25580 # Append ld.so.conf contents to the search path
25581 if test -f /etc/ld.so.conf; then
25582 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' ' '`
25583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25586 # We used to test for /lib/ld.so.1 and disable shared libraries on
25587 # powerpc, because MkLinux only supported shared libraries with the
25588 # GNU dynamic linker. Since this was broken with cross compilers,
25589 # most powerpc-linux boxes support dynamic linking these days and
25590 # people can always --disable-shared, the test was removed, and we
25591 # assume the GNU/Linux dynamic linker is in use.
25592 dynamic_linker='GNU/Linux ld.so'
25595 knetbsd*-gnu)
25596 version_type=linux
25597 need_lib_prefix=no
25598 need_version=no
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25600 soname_spec='${libname}${release}${shared_ext}$major'
25601 shlibpath_var=LD_LIBRARY_PATH
25602 shlibpath_overrides_runpath=no
25603 hardcode_into_libs=yes
25604 dynamic_linker='GNU ld.so'
25607 netbsd*)
25608 version_type=sunos
25609 need_lib_prefix=no
25610 need_version=no
25611 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25614 dynamic_linker='NetBSD (a.out) ld.so'
25615 else
25616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25617 soname_spec='${libname}${release}${shared_ext}$major'
25618 dynamic_linker='NetBSD ld.elf_so'
25620 shlibpath_var=LD_LIBRARY_PATH
25621 shlibpath_overrides_runpath=yes
25622 hardcode_into_libs=yes
25625 newsos6)
25626 version_type=linux
25627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25628 shlibpath_var=LD_LIBRARY_PATH
25629 shlibpath_overrides_runpath=yes
25632 nto-qnx*)
25633 version_type=linux
25634 need_lib_prefix=no
25635 need_version=no
25636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25637 soname_spec='${libname}${release}${shared_ext}$major'
25638 shlibpath_var=LD_LIBRARY_PATH
25639 shlibpath_overrides_runpath=yes
25642 openbsd*)
25643 version_type=sunos
25644 sys_lib_dlsearch_path_spec="/usr/lib"
25645 need_lib_prefix=no
25646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25647 case $host_os in
25648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25649 *) need_version=no ;;
25650 esac
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25653 shlibpath_var=LD_LIBRARY_PATH
25654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25655 case $host_os in
25656 openbsd2.[89] | openbsd2.[89].*)
25657 shlibpath_overrides_runpath=no
25660 shlibpath_overrides_runpath=yes
25662 esac
25663 else
25664 shlibpath_overrides_runpath=yes
25668 os2*)
25669 libname_spec='$name'
25670 shrext_cmds=".dll"
25671 need_lib_prefix=no
25672 library_names_spec='$libname${shared_ext} $libname.a'
25673 dynamic_linker='OS/2 ld.exe'
25674 shlibpath_var=LIBPATH
25677 osf3* | osf4* | osf5*)
25678 version_type=osf
25679 need_lib_prefix=no
25680 need_version=no
25681 soname_spec='${libname}${release}${shared_ext}$major'
25682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25683 shlibpath_var=LD_LIBRARY_PATH
25684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25688 solaris*)
25689 version_type=linux
25690 need_lib_prefix=no
25691 need_version=no
25692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25693 soname_spec='${libname}${release}${shared_ext}$major'
25694 shlibpath_var=LD_LIBRARY_PATH
25695 shlibpath_overrides_runpath=yes
25696 hardcode_into_libs=yes
25697 # ldd complains unless libraries are executable
25698 postinstall_cmds='chmod +x $lib'
25701 sunos4*)
25702 version_type=sunos
25703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25705 shlibpath_var=LD_LIBRARY_PATH
25706 shlibpath_overrides_runpath=yes
25707 if test "$with_gnu_ld" = yes; then
25708 need_lib_prefix=no
25710 need_version=yes
25713 sysv4 | sysv4.3*)
25714 version_type=linux
25715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716 soname_spec='${libname}${release}${shared_ext}$major'
25717 shlibpath_var=LD_LIBRARY_PATH
25718 case $host_vendor in
25719 sni)
25720 shlibpath_overrides_runpath=no
25721 need_lib_prefix=no
25722 export_dynamic_flag_spec='${wl}-Blargedynsym'
25723 runpath_var=LD_RUN_PATH
25725 siemens)
25726 need_lib_prefix=no
25728 motorola)
25729 need_lib_prefix=no
25730 need_version=no
25731 shlibpath_overrides_runpath=no
25732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25734 esac
25737 sysv4*MP*)
25738 if test -d /usr/nec ;then
25739 version_type=linux
25740 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25741 soname_spec='$libname${shared_ext}.$major'
25742 shlibpath_var=LD_LIBRARY_PATH
25746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25747 version_type=freebsd-elf
25748 need_lib_prefix=no
25749 need_version=no
25750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25751 soname_spec='${libname}${release}${shared_ext}$major'
25752 shlibpath_var=LD_LIBRARY_PATH
25753 hardcode_into_libs=yes
25754 if test "$with_gnu_ld" = yes; then
25755 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25756 shlibpath_overrides_runpath=no
25757 else
25758 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25759 shlibpath_overrides_runpath=yes
25760 case $host_os in
25761 sco3.2v5*)
25762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25764 esac
25766 sys_lib_dlsearch_path_spec='/usr/lib'
25769 uts4*)
25770 version_type=linux
25771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25772 soname_spec='${libname}${release}${shared_ext}$major'
25773 shlibpath_var=LD_LIBRARY_PATH
25777 dynamic_linker=no
25779 esac
25780 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25781 echo "${ECHO_T}$dynamic_linker" >&6; }
25782 test "$dynamic_linker" = no && can_build_shared=no
25784 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25785 if test "$GCC" = yes; then
25786 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25789 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25790 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25791 hardcode_action_GCJ=
25792 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25793 test -n "$runpath_var_GCJ" || \
25794 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25796 # We can hardcode non-existant directories.
25797 if test "$hardcode_direct_GCJ" != no &&
25798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25799 # have to relink, otherwise we might link with an installed library
25800 # when we should be linking with a yet-to-be-installed one
25801 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25802 test "$hardcode_minus_L_GCJ" != no; then
25803 # Linking always hardcodes the temporary library directory.
25804 hardcode_action_GCJ=relink
25805 else
25806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25807 hardcode_action_GCJ=immediate
25809 else
25810 # We cannot hardcode anything, or else we can only hardcode existing
25811 # directories.
25812 hardcode_action_GCJ=unsupported
25814 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25815 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25817 if test "$hardcode_action_GCJ" = relink; then
25818 # Fast installation is not supported
25819 enable_fast_install=no
25820 elif test "$shlibpath_overrides_runpath" = yes ||
25821 test "$enable_shared" = no; then
25822 # Fast installation is not necessary
25823 enable_fast_install=needless
25827 # The else clause should only fire when bootstrapping the
25828 # libtool distribution, otherwise you forgot to ship ltmain.sh
25829 # with your package, and you will get complaints that there are
25830 # no rules to generate ltmain.sh.
25831 if test -f "$ltmain"; then
25832 # See if we are running on zsh, and set the options which allow our commands through
25833 # without removal of \ escapes.
25834 if test -n "${ZSH_VERSION+set}" ; then
25835 setopt NO_GLOB_SUBST
25837 # Now quote all the things that may contain metacharacters while being
25838 # careful not to overquote the AC_SUBSTed values. We take copies of the
25839 # variables and quote the copies for generation of the libtool script.
25840 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25841 SED SHELL STRIP \
25842 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25843 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25844 deplibs_check_method reload_flag reload_cmds need_locks \
25845 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25846 lt_cv_sys_global_symbol_to_c_name_address \
25847 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25848 old_postinstall_cmds old_postuninstall_cmds \
25849 compiler_GCJ \
25850 CC_GCJ \
25851 LD_GCJ \
25852 lt_prog_compiler_wl_GCJ \
25853 lt_prog_compiler_pic_GCJ \
25854 lt_prog_compiler_static_GCJ \
25855 lt_prog_compiler_no_builtin_flag_GCJ \
25856 export_dynamic_flag_spec_GCJ \
25857 thread_safe_flag_spec_GCJ \
25858 whole_archive_flag_spec_GCJ \
25859 enable_shared_with_static_runtimes_GCJ \
25860 old_archive_cmds_GCJ \
25861 old_archive_from_new_cmds_GCJ \
25862 predep_objects_GCJ \
25863 postdep_objects_GCJ \
25864 predeps_GCJ \
25865 postdeps_GCJ \
25866 compiler_lib_search_path_GCJ \
25867 archive_cmds_GCJ \
25868 archive_expsym_cmds_GCJ \
25869 postinstall_cmds_GCJ \
25870 postuninstall_cmds_GCJ \
25871 old_archive_from_expsyms_cmds_GCJ \
25872 allow_undefined_flag_GCJ \
25873 no_undefined_flag_GCJ \
25874 export_symbols_cmds_GCJ \
25875 hardcode_libdir_flag_spec_GCJ \
25876 hardcode_libdir_flag_spec_ld_GCJ \
25877 hardcode_libdir_separator_GCJ \
25878 hardcode_automatic_GCJ \
25879 module_cmds_GCJ \
25880 module_expsym_cmds_GCJ \
25881 lt_cv_prog_compiler_c_o_GCJ \
25882 exclude_expsyms_GCJ \
25883 include_expsyms_GCJ; do
25885 case $var in
25886 old_archive_cmds_GCJ | \
25887 old_archive_from_new_cmds_GCJ | \
25888 archive_cmds_GCJ | \
25889 archive_expsym_cmds_GCJ | \
25890 module_cmds_GCJ | \
25891 module_expsym_cmds_GCJ | \
25892 old_archive_from_expsyms_cmds_GCJ | \
25893 export_symbols_cmds_GCJ | \
25894 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25895 postinstall_cmds | postuninstall_cmds | \
25896 old_postinstall_cmds | old_postuninstall_cmds | \
25897 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25898 # Double-quote double-evaled strings.
25899 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25904 esac
25905 done
25907 case $lt_echo in
25908 *'\$0 --fallback-echo"')
25909 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25911 esac
25913 cfgfile="$ofile"
25915 cat <<__EOF__ >> "$cfgfile"
25916 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25920 # Shell to use when invoking shell scripts.
25921 SHELL=$lt_SHELL
25923 # Whether or not to build shared libraries.
25924 build_libtool_libs=$enable_shared
25926 # Whether or not to build static libraries.
25927 build_old_libs=$enable_static
25929 # Whether or not to add -lc for building shared libraries.
25930 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25932 # Whether or not to disallow shared libs when runtime libs are static
25933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25935 # Whether or not to optimize for fast installation.
25936 fast_install=$enable_fast_install
25938 # The host system.
25939 host_alias=$host_alias
25940 host=$host
25941 host_os=$host_os
25943 # The build system.
25944 build_alias=$build_alias
25945 build=$build
25946 build_os=$build_os
25948 # An echo program that does not interpret backslashes.
25949 echo=$lt_echo
25951 # The archiver.
25952 AR=$lt_AR
25953 AR_FLAGS=$lt_AR_FLAGS
25955 # A C compiler.
25956 LTCC=$lt_LTCC
25958 # LTCC compiler flags.
25959 LTCFLAGS=$lt_LTCFLAGS
25961 # A language-specific compiler.
25962 CC=$lt_compiler_GCJ
25964 # Is the compiler the GNU C compiler?
25965 with_gcc=$GCC_GCJ
25967 # An ERE matcher.
25968 EGREP=$lt_EGREP
25970 # The linker used to build libraries.
25971 LD=$lt_LD_GCJ
25973 # Whether we need hard or soft links.
25974 LN_S=$lt_LN_S
25976 # A BSD-compatible nm program.
25977 NM=$lt_NM
25979 # A symbol stripping program
25980 STRIP=$lt_STRIP
25982 # Used to examine libraries when file_magic_cmd begins "file"
25983 MAGIC_CMD=$MAGIC_CMD
25985 # Used on cygwin: DLL creation program.
25986 DLLTOOL="$DLLTOOL"
25988 # Used on cygwin: object dumper.
25989 OBJDUMP="$OBJDUMP"
25991 # Used on cygwin: assembler.
25992 AS="$AS"
25994 # The name of the directory that contains temporary libtool files.
25995 objdir=$objdir
25997 # How to create reloadable object files.
25998 reload_flag=$lt_reload_flag
25999 reload_cmds=$lt_reload_cmds
26001 # How to pass a linker flag through the compiler.
26002 wl=$lt_lt_prog_compiler_wl_GCJ
26004 # Object file suffix (normally "o").
26005 objext="$ac_objext"
26007 # Old archive suffix (normally "a").
26008 libext="$libext"
26010 # Shared library suffix (normally ".so").
26011 shrext_cmds='$shrext_cmds'
26013 # Executable file suffix (normally "").
26014 exeext="$exeext"
26016 # Additional compiler flags for building library objects.
26017 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26018 pic_mode=$pic_mode
26020 # What is the maximum length of a command?
26021 max_cmd_len=$lt_cv_sys_max_cmd_len
26023 # Does compiler simultaneously support -c and -o options?
26024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26026 # Must we lock files when doing compilation?
26027 need_locks=$lt_need_locks
26029 # Do we need the lib prefix for modules?
26030 need_lib_prefix=$need_lib_prefix
26032 # Do we need a version for libraries?
26033 need_version=$need_version
26035 # Whether dlopen is supported.
26036 dlopen_support=$enable_dlopen
26038 # Whether dlopen of programs is supported.
26039 dlopen_self=$enable_dlopen_self
26041 # Whether dlopen of statically linked programs is supported.
26042 dlopen_self_static=$enable_dlopen_self_static
26044 # Compiler flag to prevent dynamic linking.
26045 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26047 # Compiler flag to turn off builtin functions.
26048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26050 # Compiler flag to allow reflexive dlopens.
26051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26053 # Compiler flag to generate shared objects directly from archives.
26054 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26056 # Compiler flag to generate thread-safe objects.
26057 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26059 # Library versioning type.
26060 version_type=$version_type
26062 # Format of library name prefix.
26063 libname_spec=$lt_libname_spec
26065 # List of archive names. First name is the real one, the rest are links.
26066 # The last name is the one that the linker finds with -lNAME.
26067 library_names_spec=$lt_library_names_spec
26069 # The coded name of the library, if different from the real name.
26070 soname_spec=$lt_soname_spec
26072 # Commands used to build and install an old-style archive.
26073 RANLIB=$lt_RANLIB
26074 old_archive_cmds=$lt_old_archive_cmds_GCJ
26075 old_postinstall_cmds=$lt_old_postinstall_cmds
26076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26078 # Create an old-style archive from a shared archive.
26079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26081 # Create a temporary old-style archive to link instead of a shared archive.
26082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26084 # Commands used to build and install a shared archive.
26085 archive_cmds=$lt_archive_cmds_GCJ
26086 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26087 postinstall_cmds=$lt_postinstall_cmds
26088 postuninstall_cmds=$lt_postuninstall_cmds
26090 # Commands used to build a loadable module (assumed same as above if empty)
26091 module_cmds=$lt_module_cmds_GCJ
26092 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26094 # Commands to strip libraries.
26095 old_striplib=$lt_old_striplib
26096 striplib=$lt_striplib
26098 # Dependencies to place before the objects being linked to create a
26099 # shared library.
26100 predep_objects=$lt_predep_objects_GCJ
26102 # Dependencies to place after the objects being linked to create a
26103 # shared library.
26104 postdep_objects=$lt_postdep_objects_GCJ
26106 # Dependencies to place before the objects being linked to create a
26107 # shared library.
26108 predeps=$lt_predeps_GCJ
26110 # Dependencies to place after the objects being linked to create a
26111 # shared library.
26112 postdeps=$lt_postdeps_GCJ
26114 # The library search path used internally by the compiler when linking
26115 # a shared library.
26116 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26118 # Method to check whether dependent libraries are shared objects.
26119 deplibs_check_method=$lt_deplibs_check_method
26121 # Command to use when deplibs_check_method == file_magic.
26122 file_magic_cmd=$lt_file_magic_cmd
26124 # Flag that allows shared libraries with undefined symbols to be built.
26125 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26127 # Flag that forces no undefined symbols.
26128 no_undefined_flag=$lt_no_undefined_flag_GCJ
26130 # Commands used to finish a libtool library installation in a directory.
26131 finish_cmds=$lt_finish_cmds
26133 # Same as above, but a single script fragment to be evaled but not shown.
26134 finish_eval=$lt_finish_eval
26136 # Take the output of nm and produce a listing of raw symbols and C names.
26137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26139 # Transform the output of nm in a proper C declaration
26140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26142 # Transform the output of nm in a C name address pair
26143 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26145 # This is the shared library runtime path variable.
26146 runpath_var=$runpath_var
26148 # This is the shared library path variable.
26149 shlibpath_var=$shlibpath_var
26151 # Is shlibpath searched before the hard-coded library search path?
26152 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26154 # How to hardcode a shared library path into an executable.
26155 hardcode_action=$hardcode_action_GCJ
26157 # Whether we should hardcode library paths into libraries.
26158 hardcode_into_libs=$hardcode_into_libs
26160 # Flag to hardcode \$libdir into a binary during linking.
26161 # This must work even if \$libdir does not exist.
26162 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26164 # If ld is used when linking, flag to hardcode \$libdir into
26165 # a binary during linking. This must work even if \$libdir does
26166 # not exist.
26167 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26169 # Whether we need a single -rpath flag with a separated argument.
26170 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26172 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26173 # resulting binary.
26174 hardcode_direct=$hardcode_direct_GCJ
26176 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26177 # resulting binary.
26178 hardcode_minus_L=$hardcode_minus_L_GCJ
26180 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26181 # the resulting binary.
26182 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26184 # Set to yes if building a shared library automatically hardcodes DIR into the library
26185 # and all subsequent libraries and executables linked against it.
26186 hardcode_automatic=$hardcode_automatic_GCJ
26188 # Variables whose values should be saved in libtool wrapper scripts and
26189 # restored at relink time.
26190 variables_saved_for_relink="$variables_saved_for_relink"
26192 # Whether libtool must link a program against all its dependency libraries.
26193 link_all_deplibs=$link_all_deplibs_GCJ
26195 # Compile-time system search path for libraries
26196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26198 # Run-time system search path for libraries
26199 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26201 # Fix the shell variable \$srcfile for the compiler.
26202 fix_srcfile_path="$fix_srcfile_path_GCJ"
26204 # Set to yes if exported symbols are required.
26205 always_export_symbols=$always_export_symbols_GCJ
26207 # The commands to list exported symbols.
26208 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26210 # The commands to extract the exported symbol list from a shared archive.
26211 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26213 # Symbols that should not be listed in the preloaded symbols.
26214 exclude_expsyms=$lt_exclude_expsyms_GCJ
26216 # Symbols that must always be exported.
26217 include_expsyms=$lt_include_expsyms_GCJ
26219 # ### END LIBTOOL TAG CONFIG: $tagname
26221 __EOF__
26224 else
26225 # If there is no Makefile yet, we rely on a make rule to execute
26226 # `config.status --recheck' to rerun these tests and create the
26227 # libtool script then.
26228 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26229 if test -f "$ltmain_in"; then
26230 test -f Makefile && make "$ltmain"
26235 ac_ext=c
26236 ac_cpp='$CPP $CPPFLAGS'
26237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26241 CC="$lt_save_CC"
26243 else
26244 tagname=""
26249 ac_ext=c
26250 ac_cpp='$CPP $CPPFLAGS'
26251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26256 # Source file extension for RC test sources.
26257 ac_ext=rc
26259 # Object file extension for compiled RC test sources.
26260 objext=o
26261 objext_RC=$objext
26263 # Code to be used in simple compile tests
26264 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26266 # Code to be used in simple link tests
26267 lt_simple_link_test_code="$lt_simple_compile_test_code"
26269 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26271 # If no C compiler was specified, use CC.
26272 LTCC=${LTCC-"$CC"}
26274 # If no C compiler flags were specified, use CFLAGS.
26275 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26277 # Allow CC to be a program name with arguments.
26278 compiler=$CC
26281 # save warnings/boilerplate of simple test code
26282 ac_outfile=conftest.$ac_objext
26283 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26284 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26285 _lt_compiler_boilerplate=`cat conftest.err`
26286 $rm conftest*
26288 ac_outfile=conftest.$ac_objext
26289 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26290 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26291 _lt_linker_boilerplate=`cat conftest.err`
26292 $rm conftest*
26295 # Allow CC to be a program name with arguments.
26296 lt_save_CC="$CC"
26297 CC=${RC-"windres"}
26298 compiler=$CC
26299 compiler_RC=$CC
26300 for cc_temp in $compiler""; do
26301 case $cc_temp in
26302 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26303 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26304 \-*) ;;
26305 *) break;;
26306 esac
26307 done
26308 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26310 lt_cv_prog_compiler_c_o_RC=yes
26312 # The else clause should only fire when bootstrapping the
26313 # libtool distribution, otherwise you forgot to ship ltmain.sh
26314 # with your package, and you will get complaints that there are
26315 # no rules to generate ltmain.sh.
26316 if test -f "$ltmain"; then
26317 # See if we are running on zsh, and set the options which allow our commands through
26318 # without removal of \ escapes.
26319 if test -n "${ZSH_VERSION+set}" ; then
26320 setopt NO_GLOB_SUBST
26322 # Now quote all the things that may contain metacharacters while being
26323 # careful not to overquote the AC_SUBSTed values. We take copies of the
26324 # variables and quote the copies for generation of the libtool script.
26325 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26326 SED SHELL STRIP \
26327 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26328 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26329 deplibs_check_method reload_flag reload_cmds need_locks \
26330 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26331 lt_cv_sys_global_symbol_to_c_name_address \
26332 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26333 old_postinstall_cmds old_postuninstall_cmds \
26334 compiler_RC \
26335 CC_RC \
26336 LD_RC \
26337 lt_prog_compiler_wl_RC \
26338 lt_prog_compiler_pic_RC \
26339 lt_prog_compiler_static_RC \
26340 lt_prog_compiler_no_builtin_flag_RC \
26341 export_dynamic_flag_spec_RC \
26342 thread_safe_flag_spec_RC \
26343 whole_archive_flag_spec_RC \
26344 enable_shared_with_static_runtimes_RC \
26345 old_archive_cmds_RC \
26346 old_archive_from_new_cmds_RC \
26347 predep_objects_RC \
26348 postdep_objects_RC \
26349 predeps_RC \
26350 postdeps_RC \
26351 compiler_lib_search_path_RC \
26352 archive_cmds_RC \
26353 archive_expsym_cmds_RC \
26354 postinstall_cmds_RC \
26355 postuninstall_cmds_RC \
26356 old_archive_from_expsyms_cmds_RC \
26357 allow_undefined_flag_RC \
26358 no_undefined_flag_RC \
26359 export_symbols_cmds_RC \
26360 hardcode_libdir_flag_spec_RC \
26361 hardcode_libdir_flag_spec_ld_RC \
26362 hardcode_libdir_separator_RC \
26363 hardcode_automatic_RC \
26364 module_cmds_RC \
26365 module_expsym_cmds_RC \
26366 lt_cv_prog_compiler_c_o_RC \
26367 exclude_expsyms_RC \
26368 include_expsyms_RC; do
26370 case $var in
26371 old_archive_cmds_RC | \
26372 old_archive_from_new_cmds_RC | \
26373 archive_cmds_RC | \
26374 archive_expsym_cmds_RC | \
26375 module_cmds_RC | \
26376 module_expsym_cmds_RC | \
26377 old_archive_from_expsyms_cmds_RC | \
26378 export_symbols_cmds_RC | \
26379 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26380 postinstall_cmds | postuninstall_cmds | \
26381 old_postinstall_cmds | old_postuninstall_cmds | \
26382 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26383 # Double-quote double-evaled strings.
26384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26389 esac
26390 done
26392 case $lt_echo in
26393 *'\$0 --fallback-echo"')
26394 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26396 esac
26398 cfgfile="$ofile"
26400 cat <<__EOF__ >> "$cfgfile"
26401 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26403 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26405 # Shell to use when invoking shell scripts.
26406 SHELL=$lt_SHELL
26408 # Whether or not to build shared libraries.
26409 build_libtool_libs=$enable_shared
26411 # Whether or not to build static libraries.
26412 build_old_libs=$enable_static
26414 # Whether or not to add -lc for building shared libraries.
26415 build_libtool_need_lc=$archive_cmds_need_lc_RC
26417 # Whether or not to disallow shared libs when runtime libs are static
26418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26420 # Whether or not to optimize for fast installation.
26421 fast_install=$enable_fast_install
26423 # The host system.
26424 host_alias=$host_alias
26425 host=$host
26426 host_os=$host_os
26428 # The build system.
26429 build_alias=$build_alias
26430 build=$build
26431 build_os=$build_os
26433 # An echo program that does not interpret backslashes.
26434 echo=$lt_echo
26436 # The archiver.
26437 AR=$lt_AR
26438 AR_FLAGS=$lt_AR_FLAGS
26440 # A C compiler.
26441 LTCC=$lt_LTCC
26443 # LTCC compiler flags.
26444 LTCFLAGS=$lt_LTCFLAGS
26446 # A language-specific compiler.
26447 CC=$lt_compiler_RC
26449 # Is the compiler the GNU C compiler?
26450 with_gcc=$GCC_RC
26452 # An ERE matcher.
26453 EGREP=$lt_EGREP
26455 # The linker used to build libraries.
26456 LD=$lt_LD_RC
26458 # Whether we need hard or soft links.
26459 LN_S=$lt_LN_S
26461 # A BSD-compatible nm program.
26462 NM=$lt_NM
26464 # A symbol stripping program
26465 STRIP=$lt_STRIP
26467 # Used to examine libraries when file_magic_cmd begins "file"
26468 MAGIC_CMD=$MAGIC_CMD
26470 # Used on cygwin: DLL creation program.
26471 DLLTOOL="$DLLTOOL"
26473 # Used on cygwin: object dumper.
26474 OBJDUMP="$OBJDUMP"
26476 # Used on cygwin: assembler.
26477 AS="$AS"
26479 # The name of the directory that contains temporary libtool files.
26480 objdir=$objdir
26482 # How to create reloadable object files.
26483 reload_flag=$lt_reload_flag
26484 reload_cmds=$lt_reload_cmds
26486 # How to pass a linker flag through the compiler.
26487 wl=$lt_lt_prog_compiler_wl_RC
26489 # Object file suffix (normally "o").
26490 objext="$ac_objext"
26492 # Old archive suffix (normally "a").
26493 libext="$libext"
26495 # Shared library suffix (normally ".so").
26496 shrext_cmds='$shrext_cmds'
26498 # Executable file suffix (normally "").
26499 exeext="$exeext"
26501 # Additional compiler flags for building library objects.
26502 pic_flag=$lt_lt_prog_compiler_pic_RC
26503 pic_mode=$pic_mode
26505 # What is the maximum length of a command?
26506 max_cmd_len=$lt_cv_sys_max_cmd_len
26508 # Does compiler simultaneously support -c and -o options?
26509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26511 # Must we lock files when doing compilation?
26512 need_locks=$lt_need_locks
26514 # Do we need the lib prefix for modules?
26515 need_lib_prefix=$need_lib_prefix
26517 # Do we need a version for libraries?
26518 need_version=$need_version
26520 # Whether dlopen is supported.
26521 dlopen_support=$enable_dlopen
26523 # Whether dlopen of programs is supported.
26524 dlopen_self=$enable_dlopen_self
26526 # Whether dlopen of statically linked programs is supported.
26527 dlopen_self_static=$enable_dlopen_self_static
26529 # Compiler flag to prevent dynamic linking.
26530 link_static_flag=$lt_lt_prog_compiler_static_RC
26532 # Compiler flag to turn off builtin functions.
26533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26535 # Compiler flag to allow reflexive dlopens.
26536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26538 # Compiler flag to generate shared objects directly from archives.
26539 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26541 # Compiler flag to generate thread-safe objects.
26542 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26544 # Library versioning type.
26545 version_type=$version_type
26547 # Format of library name prefix.
26548 libname_spec=$lt_libname_spec
26550 # List of archive names. First name is the real one, the rest are links.
26551 # The last name is the one that the linker finds with -lNAME.
26552 library_names_spec=$lt_library_names_spec
26554 # The coded name of the library, if different from the real name.
26555 soname_spec=$lt_soname_spec
26557 # Commands used to build and install an old-style archive.
26558 RANLIB=$lt_RANLIB
26559 old_archive_cmds=$lt_old_archive_cmds_RC
26560 old_postinstall_cmds=$lt_old_postinstall_cmds
26561 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26563 # Create an old-style archive from a shared archive.
26564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26566 # Create a temporary old-style archive to link instead of a shared archive.
26567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26569 # Commands used to build and install a shared archive.
26570 archive_cmds=$lt_archive_cmds_RC
26571 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26572 postinstall_cmds=$lt_postinstall_cmds
26573 postuninstall_cmds=$lt_postuninstall_cmds
26575 # Commands used to build a loadable module (assumed same as above if empty)
26576 module_cmds=$lt_module_cmds_RC
26577 module_expsym_cmds=$lt_module_expsym_cmds_RC
26579 # Commands to strip libraries.
26580 old_striplib=$lt_old_striplib
26581 striplib=$lt_striplib
26583 # Dependencies to place before the objects being linked to create a
26584 # shared library.
26585 predep_objects=$lt_predep_objects_RC
26587 # Dependencies to place after the objects being linked to create a
26588 # shared library.
26589 postdep_objects=$lt_postdep_objects_RC
26591 # Dependencies to place before the objects being linked to create a
26592 # shared library.
26593 predeps=$lt_predeps_RC
26595 # Dependencies to place after the objects being linked to create a
26596 # shared library.
26597 postdeps=$lt_postdeps_RC
26599 # The library search path used internally by the compiler when linking
26600 # a shared library.
26601 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26603 # Method to check whether dependent libraries are shared objects.
26604 deplibs_check_method=$lt_deplibs_check_method
26606 # Command to use when deplibs_check_method == file_magic.
26607 file_magic_cmd=$lt_file_magic_cmd
26609 # Flag that allows shared libraries with undefined symbols to be built.
26610 allow_undefined_flag=$lt_allow_undefined_flag_RC
26612 # Flag that forces no undefined symbols.
26613 no_undefined_flag=$lt_no_undefined_flag_RC
26615 # Commands used to finish a libtool library installation in a directory.
26616 finish_cmds=$lt_finish_cmds
26618 # Same as above, but a single script fragment to be evaled but not shown.
26619 finish_eval=$lt_finish_eval
26621 # Take the output of nm and produce a listing of raw symbols and C names.
26622 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26624 # Transform the output of nm in a proper C declaration
26625 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26627 # Transform the output of nm in a C name address pair
26628 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26630 # This is the shared library runtime path variable.
26631 runpath_var=$runpath_var
26633 # This is the shared library path variable.
26634 shlibpath_var=$shlibpath_var
26636 # Is shlibpath searched before the hard-coded library search path?
26637 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26639 # How to hardcode a shared library path into an executable.
26640 hardcode_action=$hardcode_action_RC
26642 # Whether we should hardcode library paths into libraries.
26643 hardcode_into_libs=$hardcode_into_libs
26645 # Flag to hardcode \$libdir into a binary during linking.
26646 # This must work even if \$libdir does not exist.
26647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26649 # If ld is used when linking, flag to hardcode \$libdir into
26650 # a binary during linking. This must work even if \$libdir does
26651 # not exist.
26652 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26654 # Whether we need a single -rpath flag with a separated argument.
26655 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26657 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26658 # resulting binary.
26659 hardcode_direct=$hardcode_direct_RC
26661 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26662 # resulting binary.
26663 hardcode_minus_L=$hardcode_minus_L_RC
26665 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26666 # the resulting binary.
26667 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26669 # Set to yes if building a shared library automatically hardcodes DIR into the library
26670 # and all subsequent libraries and executables linked against it.
26671 hardcode_automatic=$hardcode_automatic_RC
26673 # Variables whose values should be saved in libtool wrapper scripts and
26674 # restored at relink time.
26675 variables_saved_for_relink="$variables_saved_for_relink"
26677 # Whether libtool must link a program against all its dependency libraries.
26678 link_all_deplibs=$link_all_deplibs_RC
26680 # Compile-time system search path for libraries
26681 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26683 # Run-time system search path for libraries
26684 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26686 # Fix the shell variable \$srcfile for the compiler.
26687 fix_srcfile_path="$fix_srcfile_path_RC"
26689 # Set to yes if exported symbols are required.
26690 always_export_symbols=$always_export_symbols_RC
26692 # The commands to list exported symbols.
26693 export_symbols_cmds=$lt_export_symbols_cmds_RC
26695 # The commands to extract the exported symbol list from a shared archive.
26696 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26698 # Symbols that should not be listed in the preloaded symbols.
26699 exclude_expsyms=$lt_exclude_expsyms_RC
26701 # Symbols that must always be exported.
26702 include_expsyms=$lt_include_expsyms_RC
26704 # ### END LIBTOOL TAG CONFIG: $tagname
26706 __EOF__
26709 else
26710 # If there is no Makefile yet, we rely on a make rule to execute
26711 # `config.status --recheck' to rerun these tests and create the
26712 # libtool script then.
26713 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26714 if test -f "$ltmain_in"; then
26715 test -f Makefile && make "$ltmain"
26720 ac_ext=c
26721 ac_cpp='$CPP $CPPFLAGS'
26722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26726 CC="$lt_save_CC"
26731 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26732 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26733 { (exit 1); exit 1; }; }
26735 esac
26737 # Append the new tag name to the list of available tags.
26738 if test -n "$tagname" ; then
26739 available_tags="$available_tags $tagname"
26742 done
26743 IFS="$lt_save_ifs"
26745 # Now substitute the updated list of available tags.
26746 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26747 mv "${ofile}T" "$ofile"
26748 chmod +x "$ofile"
26749 else
26750 rm -f "${ofile}T"
26751 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26752 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26753 { (exit 1); exit 1; }; }
26759 # This can be used to rebuild libtool when needed
26760 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26762 # Always use our own libtool.
26763 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26765 # Prevent multiple expansion
26787 if test "$lt_cv_dlopen_self" = "yes" ; then
26789 cat >>confdefs.h <<\_ACEOF
26790 #define CAN_DLOPEN_SELF 1
26791 _ACEOF
26795 if test "$WITH_LLVMGCCDIR" = "default" ; then
26796 LLVMGCC="llvm-gcc${EXEEXT}"
26797 LLVMGXX="llvm-g++${EXEEXT}"
26798 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26799 set dummy $LLVMGCC; ac_word=$2
26800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26802 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26804 else
26805 case $LLVMGCC in
26806 [\\/]* | ?:[\\/]*)
26807 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26811 for as_dir in $PATH
26813 IFS=$as_save_IFS
26814 test -z "$as_dir" && as_dir=.
26815 for ac_exec_ext in '' $ac_executable_extensions; do
26816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26817 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26819 break 2
26821 done
26822 done
26823 IFS=$as_save_IFS
26826 esac
26828 LLVMGCC=$ac_cv_path_LLVMGCC
26829 if test -n "$LLVMGCC"; then
26830 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26831 echo "${ECHO_T}$LLVMGCC" >&6; }
26832 else
26833 { echo "$as_me:$LINENO: result: no" >&5
26834 echo "${ECHO_T}no" >&6; }
26838 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26839 set dummy $LLVMGXX; ac_word=$2
26840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26842 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26844 else
26845 case $LLVMGXX in
26846 [\\/]* | ?:[\\/]*)
26847 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26851 for as_dir in $PATH
26853 IFS=$as_save_IFS
26854 test -z "$as_dir" && as_dir=.
26855 for ac_exec_ext in '' $ac_executable_extensions; do
26856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26857 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26859 break 2
26861 done
26862 done
26863 IFS=$as_save_IFS
26866 esac
26868 LLVMGXX=$ac_cv_path_LLVMGXX
26869 if test -n "$LLVMGXX"; then
26870 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26871 echo "${ECHO_T}$LLVMGXX" >&6; }
26872 else
26873 { echo "$as_me:$LINENO: result: no" >&5
26874 echo "${ECHO_T}no" >&6; }
26878 else
26879 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26880 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26881 LLVMGCC=$LLVMGCC
26883 LLVMGXX=$LLVMGXX
26887 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26888 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26890 ICC=no
26891 IXX=no
26892 case $CC in
26893 icc*|icpc*)
26894 ICC=yes
26895 IXX=yes
26899 esac
26901 if test "$GCC" != "yes" && test "$ICC" != "yes"
26902 then
26903 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26904 echo "$as_me: error: gcc|icc required but not found" >&2;}
26905 { (exit 1); exit 1; }; }
26908 if test "$GXX" != "yes" && test "$IXX" != "yes"
26909 then
26910 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26911 echo "$as_me: error: g++|icc required but not found" >&2;}
26912 { (exit 1); exit 1; }; }
26915 if test "$GCC" = "yes"
26916 then
26917 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26918 if test "$gccmajor" -lt "3"
26919 then
26920 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26921 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26922 { (exit 1); exit 1; }; }
26926 if test -z "$llvm_cv_gnu_make_command"
26927 then
26928 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26929 echo "$as_me: error: GNU Make required but not found" >&2;}
26930 { (exit 1); exit 1; }; }
26933 { echo "$as_me:$LINENO: result: ok" >&5
26934 echo "${ECHO_T}ok" >&6; }
26938 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26939 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26940 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26942 else
26943 ac_check_lib_save_LIBS=$LIBS
26944 LIBS="-lelf $LIBS"
26945 cat >conftest.$ac_ext <<_ACEOF
26946 /* confdefs.h. */
26947 _ACEOF
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h. */
26952 /* Override any GCC internal prototype to avoid an error.
26953 Use char because int might match the return type of a GCC
26954 builtin and then its argument prototype would still apply. */
26955 #ifdef __cplusplus
26956 extern "C"
26957 #endif
26958 char elf_begin ();
26960 main ()
26962 return elf_begin ();
26964 return 0;
26966 _ACEOF
26967 rm -f conftest.$ac_objext conftest$ac_exeext
26968 if { (ac_try="$ac_link"
26969 case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972 esac
26973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_link") 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26982 { (case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26985 esac
26986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_try") 2>&5
26988 ac_status=$?
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; } &&
26991 { ac_try='test -s conftest$ac_exeext'
26992 { (case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995 esac
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_try") 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
27001 ac_cv_lib_elf_elf_begin=yes
27002 else
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ac_cv_lib_elf_elf_begin=no
27009 rm -f core conftest.err conftest.$ac_objext \
27010 conftest$ac_exeext conftest.$ac_ext
27011 LIBS=$ac_check_lib_save_LIBS
27013 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27014 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27015 if test $ac_cv_lib_elf_elf_begin = yes; then
27016 cat >>confdefs.h <<_ACEOF
27017 #define HAVE_LIBELF 1
27018 _ACEOF
27020 LIBS="-lelf $LIBS"
27025 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27026 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27027 if test "${ac_cv_lib_m_sin+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029 else
27030 ac_check_lib_save_LIBS=$LIBS
27031 LIBS="-lm $LIBS"
27032 cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h. */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27039 /* Override any GCC internal prototype to avoid an error.
27040 Use char because int might match the return type of a GCC
27041 builtin and then its argument prototype would still apply. */
27042 #ifdef __cplusplus
27043 extern "C"
27044 #endif
27045 char sin ();
27047 main ()
27049 return sin ();
27051 return 0;
27053 _ACEOF
27054 rm -f conftest.$ac_objext conftest$ac_exeext
27055 if { (ac_try="$ac_link"
27056 case "(($ac_try" in
27057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058 *) ac_try_echo=$ac_try;;
27059 esac
27060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27061 (eval "$ac_link") 2>conftest.er1
27062 ac_status=$?
27063 grep -v '^ *+' conftest.er1 >conftest.err
27064 rm -f conftest.er1
27065 cat conftest.err >&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } &&
27068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27072 esac
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; } &&
27078 { ac_try='test -s conftest$ac_exeext'
27079 { (case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27082 esac
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_try") 2>&5
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
27088 ac_cv_lib_m_sin=yes
27089 else
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27093 ac_cv_lib_m_sin=no
27096 rm -f core conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
27098 LIBS=$ac_check_lib_save_LIBS
27100 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27101 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27102 if test $ac_cv_lib_m_sin = yes; then
27103 cat >>confdefs.h <<_ACEOF
27104 #define HAVE_LIBM 1
27105 _ACEOF
27107 LIBS="-lm $LIBS"
27111 if test "$llvm_cv_os_type" = "MingW" ; then
27113 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27114 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27115 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117 else
27118 ac_check_lib_save_LIBS=$LIBS
27119 LIBS="-limagehlp $LIBS"
27120 cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h. */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27129 main ()
27131 return main ();
27133 return 0;
27135 _ACEOF
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (ac_try="$ac_link"
27138 case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27141 esac
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143 (eval "$ac_link") 2>conftest.er1
27144 ac_status=$?
27145 grep -v '^ *+' conftest.er1 >conftest.err
27146 rm -f conftest.er1
27147 cat conftest.err >&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } &&
27150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27151 { (case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27154 esac
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_try") 2>&5
27157 ac_status=$?
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); }; } &&
27160 { ac_try='test -s conftest$ac_exeext'
27161 { (case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27164 esac
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_try") 2>&5
27167 ac_status=$?
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); }; }; then
27170 ac_cv_lib_imagehlp_main=yes
27171 else
27172 echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27175 ac_cv_lib_imagehlp_main=no
27178 rm -f core conftest.err conftest.$ac_objext \
27179 conftest$ac_exeext conftest.$ac_ext
27180 LIBS=$ac_check_lib_save_LIBS
27182 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27183 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27184 if test $ac_cv_lib_imagehlp_main = yes; then
27185 cat >>confdefs.h <<_ACEOF
27186 #define HAVE_LIBIMAGEHLP 1
27187 _ACEOF
27189 LIBS="-limagehlp $LIBS"
27194 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27195 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27196 if test "${ac_cv_lib_psapi_main+set}" = set; then
27197 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 else
27199 ac_check_lib_save_LIBS=$LIBS
27200 LIBS="-lpsapi $LIBS"
27201 cat >conftest.$ac_ext <<_ACEOF
27202 /* confdefs.h. */
27203 _ACEOF
27204 cat confdefs.h >>conftest.$ac_ext
27205 cat >>conftest.$ac_ext <<_ACEOF
27206 /* end confdefs.h. */
27210 main ()
27212 return main ();
27214 return 0;
27216 _ACEOF
27217 rm -f conftest.$ac_objext conftest$ac_exeext
27218 if { (ac_try="$ac_link"
27219 case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27222 esac
27223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224 (eval "$ac_link") 2>conftest.er1
27225 ac_status=$?
27226 grep -v '^ *+' conftest.er1 >conftest.err
27227 rm -f conftest.er1
27228 cat conftest.err >&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } &&
27231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27232 { (case "(($ac_try" in
27233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27235 esac
27236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237 (eval "$ac_try") 2>&5
27238 ac_status=$?
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; } &&
27241 { ac_try='test -s conftest$ac_exeext'
27242 { (case "(($ac_try" in
27243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244 *) ac_try_echo=$ac_try;;
27245 esac
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_try") 2>&5
27248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
27251 ac_cv_lib_psapi_main=yes
27252 else
27253 echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27256 ac_cv_lib_psapi_main=no
27259 rm -f core conftest.err conftest.$ac_objext \
27260 conftest$ac_exeext conftest.$ac_ext
27261 LIBS=$ac_check_lib_save_LIBS
27263 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27264 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27265 if test $ac_cv_lib_psapi_main = yes; then
27266 cat >>confdefs.h <<_ACEOF
27267 #define HAVE_LIBPSAPI 1
27268 _ACEOF
27270 LIBS="-lpsapi $LIBS"
27276 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27277 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27278 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27280 else
27281 ac_func_search_save_LIBS=$LIBS
27282 cat >conftest.$ac_ext <<_ACEOF
27283 /* confdefs.h. */
27284 _ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h. */
27289 /* Override any GCC internal prototype to avoid an error.
27290 Use char because int might match the return type of a GCC
27291 builtin and then its argument prototype would still apply. */
27292 #ifdef __cplusplus
27293 extern "C"
27294 #endif
27295 char lt_dlopen ();
27297 main ()
27299 return lt_dlopen ();
27301 return 0;
27303 _ACEOF
27304 for ac_lib in '' ltdl; do
27305 if test -z "$ac_lib"; then
27306 ac_res="none required"
27307 else
27308 ac_res=-l$ac_lib
27309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27311 rm -f conftest.$ac_objext conftest$ac_exeext
27312 if { (ac_try="$ac_link"
27313 case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27316 esac
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_link") 2>conftest.er1
27319 ac_status=$?
27320 grep -v '^ *+' conftest.er1 >conftest.err
27321 rm -f conftest.er1
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27326 { (case "(($ac_try" in
27327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27328 *) ac_try_echo=$ac_try;;
27329 esac
27330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27331 (eval "$ac_try") 2>&5
27332 ac_status=$?
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; } &&
27335 { ac_try='test -s conftest$ac_exeext'
27336 { (case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27339 esac
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_try") 2>&5
27342 ac_status=$?
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); }; }; then
27345 ac_cv_search_lt_dlopen=$ac_res
27346 else
27347 echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27353 rm -f core conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext
27355 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27356 break
27358 done
27359 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27361 else
27362 ac_cv_search_lt_dlopen=no
27364 rm conftest.$ac_ext
27365 LIBS=$ac_func_search_save_LIBS
27367 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27368 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27369 ac_res=$ac_cv_search_lt_dlopen
27370 if test "$ac_res" != no; then
27371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27373 cat >>confdefs.h <<\_ACEOF
27374 #define HAVE_LT_DLOPEN 1
27375 _ACEOF
27377 else
27378 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27379 not be available" >&5
27380 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27381 not be available" >&2;}
27385 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27386 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27387 if test "${ac_cv_search_dlopen+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390 ac_func_search_save_LIBS=$LIBS
27391 cat >conftest.$ac_ext <<_ACEOF
27392 /* confdefs.h. */
27393 _ACEOF
27394 cat confdefs.h >>conftest.$ac_ext
27395 cat >>conftest.$ac_ext <<_ACEOF
27396 /* end confdefs.h. */
27398 /* Override any GCC internal prototype to avoid an error.
27399 Use char because int might match the return type of a GCC
27400 builtin and then its argument prototype would still apply. */
27401 #ifdef __cplusplus
27402 extern "C"
27403 #endif
27404 char dlopen ();
27406 main ()
27408 return dlopen ();
27410 return 0;
27412 _ACEOF
27413 for ac_lib in '' dl; do
27414 if test -z "$ac_lib"; then
27415 ac_res="none required"
27416 else
27417 ac_res=-l$ac_lib
27418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27420 rm -f conftest.$ac_objext conftest$ac_exeext
27421 if { (ac_try="$ac_link"
27422 case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425 esac
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_link") 2>conftest.er1
27428 ac_status=$?
27429 grep -v '^ *+' conftest.er1 >conftest.err
27430 rm -f conftest.er1
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27438 esac
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
27441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest$ac_exeext'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27448 esac
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
27454 ac_cv_search_dlopen=$ac_res
27455 else
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27462 rm -f core conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext
27464 if test "${ac_cv_search_dlopen+set}" = set; then
27465 break
27467 done
27468 if test "${ac_cv_search_dlopen+set}" = set; then
27470 else
27471 ac_cv_search_dlopen=no
27473 rm conftest.$ac_ext
27474 LIBS=$ac_func_search_save_LIBS
27476 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27477 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27478 ac_res=$ac_cv_search_dlopen
27479 if test "$ac_res" != no; then
27480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27482 cat >>confdefs.h <<\_ACEOF
27483 #define HAVE_DLOPEN 1
27484 _ACEOF
27486 else
27487 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27488 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27492 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27493 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27494 if test "${ac_cv_search_mallinfo+set}" = set; then
27495 echo $ECHO_N "(cached) $ECHO_C" >&6
27496 else
27497 ac_func_search_save_LIBS=$LIBS
27498 cat >conftest.$ac_ext <<_ACEOF
27499 /* confdefs.h. */
27500 _ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h. */
27505 /* Override any GCC internal prototype to avoid an error.
27506 Use char because int might match the return type of a GCC
27507 builtin and then its argument prototype would still apply. */
27508 #ifdef __cplusplus
27509 extern "C"
27510 #endif
27511 char mallinfo ();
27513 main ()
27515 return mallinfo ();
27517 return 0;
27519 _ACEOF
27520 for ac_lib in '' malloc; do
27521 if test -z "$ac_lib"; then
27522 ac_res="none required"
27523 else
27524 ac_res=-l$ac_lib
27525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528 if { (ac_try="$ac_link"
27529 case "(($ac_try" in
27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531 *) ac_try_echo=$ac_try;;
27532 esac
27533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27534 (eval "$ac_link") 2>conftest.er1
27535 ac_status=$?
27536 grep -v '^ *+' conftest.er1 >conftest.err
27537 rm -f conftest.er1
27538 cat conftest.err >&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
27541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27542 { (case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27545 esac
27546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_try") 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; } &&
27551 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27558 ac_status=$?
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; }; then
27561 ac_cv_search_mallinfo=$ac_res
27562 else
27563 echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27569 rm -f core conftest.err conftest.$ac_objext \
27570 conftest$ac_exeext
27571 if test "${ac_cv_search_mallinfo+set}" = set; then
27572 break
27574 done
27575 if test "${ac_cv_search_mallinfo+set}" = set; then
27577 else
27578 ac_cv_search_mallinfo=no
27580 rm conftest.$ac_ext
27581 LIBS=$ac_func_search_save_LIBS
27583 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27584 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27585 ac_res=$ac_cv_search_mallinfo
27586 if test "$ac_res" != no; then
27587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27589 cat >>confdefs.h <<\_ACEOF
27590 #define HAVE_MALLINFO 1
27591 _ACEOF
27596 if test "$ENABLE_THREADS" -eq 1 ; then
27598 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27599 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27600 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27601 echo $ECHO_N "(cached) $ECHO_C" >&6
27602 else
27603 ac_check_lib_save_LIBS=$LIBS
27604 LIBS="-lpthread $LIBS"
27605 cat >conftest.$ac_ext <<_ACEOF
27606 /* confdefs.h. */
27607 _ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h. */
27612 /* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
27615 #ifdef __cplusplus
27616 extern "C"
27617 #endif
27618 char pthread_mutex_init ();
27620 main ()
27622 return pthread_mutex_init ();
27624 return 0;
27626 _ACEOF
27627 rm -f conftest.$ac_objext conftest$ac_exeext
27628 if { (ac_try="$ac_link"
27629 case "(($ac_try" in
27630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631 *) ac_try_echo=$ac_try;;
27632 esac
27633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634 (eval "$ac_link") 2>conftest.er1
27635 ac_status=$?
27636 grep -v '^ *+' conftest.er1 >conftest.err
27637 rm -f conftest.er1
27638 cat conftest.err >&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); } &&
27641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27642 { (case "(($ac_try" in
27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644 *) ac_try_echo=$ac_try;;
27645 esac
27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_try") 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; } &&
27651 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27658 ac_status=$?
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; }; then
27661 ac_cv_lib_pthread_pthread_mutex_init=yes
27662 else
27663 echo "$as_me: failed program was:" >&5
27664 sed 's/^/| /' conftest.$ac_ext >&5
27666 ac_cv_lib_pthread_pthread_mutex_init=no
27669 rm -f core conftest.err conftest.$ac_objext \
27670 conftest$ac_exeext conftest.$ac_ext
27671 LIBS=$ac_check_lib_save_LIBS
27673 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27674 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27675 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27676 cat >>confdefs.h <<_ACEOF
27677 #define HAVE_LIBPTHREAD 1
27678 _ACEOF
27680 LIBS="-lpthread $LIBS"
27684 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27685 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27686 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27688 else
27689 ac_func_search_save_LIBS=$LIBS
27690 cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h. */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27697 /* Override any GCC internal prototype to avoid an error.
27698 Use char because int might match the return type of a GCC
27699 builtin and then its argument prototype would still apply. */
27700 #ifdef __cplusplus
27701 extern "C"
27702 #endif
27703 char pthread_mutex_lock ();
27705 main ()
27707 return pthread_mutex_lock ();
27709 return 0;
27711 _ACEOF
27712 for ac_lib in '' pthread; do
27713 if test -z "$ac_lib"; then
27714 ac_res="none required"
27715 else
27716 ac_res=-l$ac_lib
27717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27719 rm -f conftest.$ac_objext conftest$ac_exeext
27720 if { (ac_try="$ac_link"
27721 case "(($ac_try" in
27722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723 *) ac_try_echo=$ac_try;;
27724 esac
27725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27726 (eval "$ac_link") 2>conftest.er1
27727 ac_status=$?
27728 grep -v '^ *+' conftest.er1 >conftest.err
27729 rm -f conftest.er1
27730 cat conftest.err >&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); } &&
27733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27734 { (case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27737 esac
27738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739 (eval "$ac_try") 2>&5
27740 ac_status=$?
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; } &&
27743 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27750 ac_status=$?
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; }; then
27753 ac_cv_search_pthread_mutex_lock=$ac_res
27754 else
27755 echo "$as_me: failed program was:" >&5
27756 sed 's/^/| /' conftest.$ac_ext >&5
27761 rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext
27763 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27764 break
27766 done
27767 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27769 else
27770 ac_cv_search_pthread_mutex_lock=no
27772 rm conftest.$ac_ext
27773 LIBS=$ac_func_search_save_LIBS
27775 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27776 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27777 ac_res=$ac_cv_search_pthread_mutex_lock
27778 if test "$ac_res" != no; then
27779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27781 cat >>confdefs.h <<\_ACEOF
27782 #define HAVE_PTHREAD_MUTEX_LOCK 1
27783 _ACEOF
27790 # Check whether --with-udis86 was given.
27791 if test "${with_udis86+set}" = set; then
27792 withval=$with_udis86;
27793 USE_UDIS86=1
27795 case "$withval" in
27796 /usr/lib|yes) ;;
27797 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27798 esac
27800 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27801 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27802 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27804 else
27805 ac_check_lib_save_LIBS=$LIBS
27806 LIBS="-ludis86 $LIBS"
27807 cat >conftest.$ac_ext <<_ACEOF
27808 /* confdefs.h. */
27809 _ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h. */
27814 /* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27817 #ifdef __cplusplus
27818 extern "C"
27819 #endif
27820 char ud_init ();
27822 main ()
27824 return ud_init ();
27826 return 0;
27828 _ACEOF
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (ac_try="$ac_link"
27831 case "(($ac_try" in
27832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833 *) ac_try_echo=$ac_try;;
27834 esac
27835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836 (eval "$ac_link") 2>conftest.er1
27837 ac_status=$?
27838 grep -v '^ *+' conftest.er1 >conftest.err
27839 rm -f conftest.er1
27840 cat conftest.err >&5
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); } &&
27843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27844 { (case "(($ac_try" in
27845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846 *) ac_try_echo=$ac_try;;
27847 esac
27848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27849 (eval "$ac_try") 2>&5
27850 ac_status=$?
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); }; } &&
27853 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27860 ac_status=$?
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); }; }; then
27863 ac_cv_lib_udis86_ud_init=yes
27864 else
27865 echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27868 ac_cv_lib_udis86_ud_init=no
27871 rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
27873 LIBS=$ac_check_lib_save_LIBS
27875 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27876 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27877 if test $ac_cv_lib_udis86_ud_init = yes; then
27878 cat >>confdefs.h <<_ACEOF
27879 #define HAVE_LIBUDIS86 1
27880 _ACEOF
27882 LIBS="-ludis86 $LIBS"
27884 else
27886 echo "Error! You need to have libudis86 around."
27887 exit -1
27892 else
27893 USE_UDIS86=0
27898 cat >>confdefs.h <<_ACEOF
27899 #define USE_UDIS86 $USE_UDIS86
27900 _ACEOF
27909 ac_header_dirent=no
27910 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27911 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27912 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27913 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27916 else
27917 cat >conftest.$ac_ext <<_ACEOF
27918 /* confdefs.h. */
27919 _ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h. */
27923 #include <sys/types.h>
27924 #include <$ac_hdr>
27927 main ()
27929 if ((DIR *) 0)
27930 return 0;
27932 return 0;
27934 _ACEOF
27935 rm -f conftest.$ac_objext
27936 if { (ac_try="$ac_compile"
27937 case "(($ac_try" in
27938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939 *) ac_try_echo=$ac_try;;
27940 esac
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942 (eval "$ac_compile") 2>conftest.er1
27943 ac_status=$?
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } &&
27949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27950 { (case "(($ac_try" in
27951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952 *) ac_try_echo=$ac_try;;
27953 esac
27954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27955 (eval "$ac_try") 2>&5
27956 ac_status=$?
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); }; } &&
27959 { ac_try='test -s conftest.$ac_objext'
27960 { (case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963 esac
27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_try") 2>&5
27966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; }; then
27969 eval "$as_ac_Header=yes"
27970 else
27971 echo "$as_me: failed program was:" >&5
27972 sed 's/^/| /' conftest.$ac_ext >&5
27974 eval "$as_ac_Header=no"
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27979 ac_res=`eval echo '${'$as_ac_Header'}'`
27980 { echo "$as_me:$LINENO: result: $ac_res" >&5
27981 echo "${ECHO_T}$ac_res" >&6; }
27982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27983 cat >>confdefs.h <<_ACEOF
27984 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27985 _ACEOF
27987 ac_header_dirent=$ac_hdr; break
27990 done
27991 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27992 if test $ac_header_dirent = dirent.h; then
27993 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27994 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27995 if test "${ac_cv_search_opendir+set}" = set; then
27996 echo $ECHO_N "(cached) $ECHO_C" >&6
27997 else
27998 ac_func_search_save_LIBS=$LIBS
27999 cat >conftest.$ac_ext <<_ACEOF
28000 /* confdefs.h. */
28001 _ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28006 /* Override any GCC internal prototype to avoid an error.
28007 Use char because int might match the return type of a GCC
28008 builtin and then its argument prototype would still apply. */
28009 #ifdef __cplusplus
28010 extern "C"
28011 #endif
28012 char opendir ();
28014 main ()
28016 return opendir ();
28018 return 0;
28020 _ACEOF
28021 for ac_lib in '' dir; do
28022 if test -z "$ac_lib"; then
28023 ac_res="none required"
28024 else
28025 ac_res=-l$ac_lib
28026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28028 rm -f conftest.$ac_objext conftest$ac_exeext
28029 if { (ac_try="$ac_link"
28030 case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28033 esac
28034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035 (eval "$ac_link") 2>conftest.er1
28036 ac_status=$?
28037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } &&
28042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28043 { (case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28046 esac
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_try") 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; } &&
28052 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; }; then
28062 ac_cv_search_opendir=$ac_res
28063 else
28064 echo "$as_me: failed program was:" >&5
28065 sed 's/^/| /' conftest.$ac_ext >&5
28070 rm -f core conftest.err conftest.$ac_objext \
28071 conftest$ac_exeext
28072 if test "${ac_cv_search_opendir+set}" = set; then
28073 break
28075 done
28076 if test "${ac_cv_search_opendir+set}" = set; then
28078 else
28079 ac_cv_search_opendir=no
28081 rm conftest.$ac_ext
28082 LIBS=$ac_func_search_save_LIBS
28084 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28085 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28086 ac_res=$ac_cv_search_opendir
28087 if test "$ac_res" != no; then
28088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28092 else
28093 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28094 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28095 if test "${ac_cv_search_opendir+set}" = set; then
28096 echo $ECHO_N "(cached) $ECHO_C" >&6
28097 else
28098 ac_func_search_save_LIBS=$LIBS
28099 cat >conftest.$ac_ext <<_ACEOF
28100 /* confdefs.h. */
28101 _ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h. */
28106 /* Override any GCC internal prototype to avoid an error.
28107 Use char because int might match the return type of a GCC
28108 builtin and then its argument prototype would still apply. */
28109 #ifdef __cplusplus
28110 extern "C"
28111 #endif
28112 char opendir ();
28114 main ()
28116 return opendir ();
28118 return 0;
28120 _ACEOF
28121 for ac_lib in '' x; do
28122 if test -z "$ac_lib"; then
28123 ac_res="none required"
28124 else
28125 ac_res=-l$ac_lib
28126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28128 rm -f conftest.$ac_objext conftest$ac_exeext
28129 if { (ac_try="$ac_link"
28130 case "(($ac_try" in
28131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28132 *) ac_try_echo=$ac_try;;
28133 esac
28134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28135 (eval "$ac_link") 2>conftest.er1
28136 ac_status=$?
28137 grep -v '^ *+' conftest.er1 >conftest.err
28138 rm -f conftest.er1
28139 cat conftest.err >&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } &&
28142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28143 { (case "(($ac_try" in
28144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 *) ac_try_echo=$ac_try;;
28146 esac
28147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 (eval "$ac_try") 2>&5
28149 ac_status=$?
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; } &&
28152 { ac_try='test -s conftest$ac_exeext'
28153 { (case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156 esac
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_try") 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
28162 ac_cv_search_opendir=$ac_res
28163 else
28164 echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.$ac_ext >&5
28170 rm -f core conftest.err conftest.$ac_objext \
28171 conftest$ac_exeext
28172 if test "${ac_cv_search_opendir+set}" = set; then
28173 break
28175 done
28176 if test "${ac_cv_search_opendir+set}" = set; then
28178 else
28179 ac_cv_search_opendir=no
28181 rm conftest.$ac_ext
28182 LIBS=$ac_func_search_save_LIBS
28184 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28185 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28186 ac_res=$ac_cv_search_opendir
28187 if test "$ac_res" != no; then
28188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28194 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28195 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28196 if test "${ac_cv_header_mmap_anon+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 else
28199 ac_ext=c
28200 ac_cpp='$CPP $CPPFLAGS'
28201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28205 cat >conftest.$ac_ext <<_ACEOF
28206 /* confdefs.h. */
28207 _ACEOF
28208 cat confdefs.h >>conftest.$ac_ext
28209 cat >>conftest.$ac_ext <<_ACEOF
28210 /* end confdefs.h. */
28211 #include <sys/mman.h>
28212 #include <unistd.h>
28213 #include <fcntl.h>
28215 main ()
28217 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28219 return 0;
28221 _ACEOF
28222 rm -f conftest.$ac_objext
28223 if { (ac_try="$ac_compile"
28224 case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28227 esac
28228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229 (eval "$ac_compile") 2>conftest.er1
28230 ac_status=$?
28231 grep -v '^ *+' conftest.er1 >conftest.err
28232 rm -f conftest.er1
28233 cat conftest.err >&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } &&
28236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28237 { (case "(($ac_try" in
28238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239 *) ac_try_echo=$ac_try;;
28240 esac
28241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242 (eval "$ac_try") 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; } &&
28246 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28253 ac_status=$?
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); }; }; then
28256 ac_cv_header_mmap_anon=yes
28257 else
28258 echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28261 ac_cv_header_mmap_anon=no
28264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28265 ac_ext=c
28266 ac_cpp='$CPP $CPPFLAGS'
28267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28273 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28274 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28275 if test "$ac_cv_header_mmap_anon" = yes; then
28277 cat >>confdefs.h <<\_ACEOF
28278 #define HAVE_MMAP_ANONYMOUS 1
28279 _ACEOF
28283 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28284 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28285 if test "${ac_cv_header_stat_broken+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28287 else
28288 cat >conftest.$ac_ext <<_ACEOF
28289 /* confdefs.h. */
28290 _ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28294 #include <sys/types.h>
28295 #include <sys/stat.h>
28297 #if defined S_ISBLK && defined S_IFDIR
28298 # if S_ISBLK (S_IFDIR)
28299 You lose.
28300 # endif
28301 #endif
28303 #if defined S_ISBLK && defined S_IFCHR
28304 # if S_ISBLK (S_IFCHR)
28305 You lose.
28306 # endif
28307 #endif
28309 #if defined S_ISLNK && defined S_IFREG
28310 # if S_ISLNK (S_IFREG)
28311 You lose.
28312 # endif
28313 #endif
28315 #if defined S_ISSOCK && defined S_IFREG
28316 # if S_ISSOCK (S_IFREG)
28317 You lose.
28318 # endif
28319 #endif
28321 _ACEOF
28322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28323 $EGREP "You lose" >/dev/null 2>&1; then
28324 ac_cv_header_stat_broken=yes
28325 else
28326 ac_cv_header_stat_broken=no
28328 rm -f conftest*
28331 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28332 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28333 if test $ac_cv_header_stat_broken = yes; then
28335 cat >>confdefs.h <<\_ACEOF
28336 #define STAT_MACROS_BROKEN 1
28337 _ACEOF
28341 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28343 if test "${ac_cv_header_stdc+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28345 else
28346 cat >conftest.$ac_ext <<_ACEOF
28347 /* confdefs.h. */
28348 _ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h. */
28352 #include <stdlib.h>
28353 #include <stdarg.h>
28354 #include <string.h>
28355 #include <float.h>
28358 main ()
28362 return 0;
28364 _ACEOF
28365 rm -f conftest.$ac_objext
28366 if { (ac_try="$ac_compile"
28367 case "(($ac_try" in
28368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369 *) ac_try_echo=$ac_try;;
28370 esac
28371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372 (eval "$ac_compile") 2>conftest.er1
28373 ac_status=$?
28374 grep -v '^ *+' conftest.er1 >conftest.err
28375 rm -f conftest.er1
28376 cat conftest.err >&5
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); } &&
28379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28380 { (case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28383 esac
28384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385 (eval "$ac_try") 2>&5
28386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; } &&
28389 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; }; then
28399 ac_cv_header_stdc=yes
28400 else
28401 echo "$as_me: failed program was:" >&5
28402 sed 's/^/| /' conftest.$ac_ext >&5
28404 ac_cv_header_stdc=no
28407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28409 if test $ac_cv_header_stdc = yes; then
28410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28411 cat >conftest.$ac_ext <<_ACEOF
28412 /* confdefs.h. */
28413 _ACEOF
28414 cat confdefs.h >>conftest.$ac_ext
28415 cat >>conftest.$ac_ext <<_ACEOF
28416 /* end confdefs.h. */
28417 #include <string.h>
28419 _ACEOF
28420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28421 $EGREP "memchr" >/dev/null 2>&1; then
28423 else
28424 ac_cv_header_stdc=no
28426 rm -f conftest*
28430 if test $ac_cv_header_stdc = yes; then
28431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28432 cat >conftest.$ac_ext <<_ACEOF
28433 /* confdefs.h. */
28434 _ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h. */
28438 #include <stdlib.h>
28440 _ACEOF
28441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28442 $EGREP "free" >/dev/null 2>&1; then
28444 else
28445 ac_cv_header_stdc=no
28447 rm -f conftest*
28451 if test $ac_cv_header_stdc = yes; then
28452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28453 if test "$cross_compiling" = yes; then
28455 else
28456 cat >conftest.$ac_ext <<_ACEOF
28457 /* confdefs.h. */
28458 _ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h. */
28462 #include <ctype.h>
28463 #include <stdlib.h>
28464 #if ((' ' & 0x0FF) == 0x020)
28465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28467 #else
28468 # define ISLOWER(c) \
28469 (('a' <= (c) && (c) <= 'i') \
28470 || ('j' <= (c) && (c) <= 'r') \
28471 || ('s' <= (c) && (c) <= 'z'))
28472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28473 #endif
28475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28477 main ()
28479 int i;
28480 for (i = 0; i < 256; i++)
28481 if (XOR (islower (i), ISLOWER (i))
28482 || toupper (i) != TOUPPER (i))
28483 return 2;
28484 return 0;
28486 _ACEOF
28487 rm -f conftest$ac_exeext
28488 if { (ac_try="$ac_link"
28489 case "(($ac_try" in
28490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491 *) ac_try_echo=$ac_try;;
28492 esac
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494 (eval "$ac_link") 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28498 { (case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28501 esac
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_try") 2>&5
28504 ac_status=$?
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; }; then
28508 else
28509 echo "$as_me: program exited with status $ac_status" >&5
28510 echo "$as_me: failed program was:" >&5
28511 sed 's/^/| /' conftest.$ac_ext >&5
28513 ( exit $ac_status )
28514 ac_cv_header_stdc=no
28516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28522 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28523 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28524 if test $ac_cv_header_stdc = yes; then
28526 cat >>confdefs.h <<\_ACEOF
28527 #define STDC_HEADERS 1
28528 _ACEOF
28532 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28533 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28534 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28536 else
28537 cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h. */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h. */
28543 #include <sys/types.h>
28544 #include <sys/wait.h>
28545 #ifndef WEXITSTATUS
28546 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28547 #endif
28548 #ifndef WIFEXITED
28549 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28550 #endif
28553 main ()
28555 int s;
28556 wait (&s);
28557 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28559 return 0;
28561 _ACEOF
28562 rm -f conftest.$ac_objext
28563 if { (ac_try="$ac_compile"
28564 case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28567 esac
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_compile") 2>conftest.er1
28570 ac_status=$?
28571 grep -v '^ *+' conftest.er1 >conftest.err
28572 rm -f conftest.er1
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
28576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28577 { (case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28580 esac
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_try") 2>&5
28583 ac_status=$?
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; } &&
28586 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28593 ac_status=$?
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; }; then
28596 ac_cv_header_sys_wait_h=yes
28597 else
28598 echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28601 ac_cv_header_sys_wait_h=no
28604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28606 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28607 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28608 if test $ac_cv_header_sys_wait_h = yes; then
28610 cat >>confdefs.h <<\_ACEOF
28611 #define HAVE_SYS_WAIT_H 1
28612 _ACEOF
28616 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28617 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28618 if test "${ac_cv_header_time+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28620 else
28621 cat >conftest.$ac_ext <<_ACEOF
28622 /* confdefs.h. */
28623 _ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h. */
28627 #include <sys/types.h>
28628 #include <sys/time.h>
28629 #include <time.h>
28632 main ()
28634 if ((struct tm *) 0)
28635 return 0;
28637 return 0;
28639 _ACEOF
28640 rm -f conftest.$ac_objext
28641 if { (ac_try="$ac_compile"
28642 case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28645 esac
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_compile") 2>conftest.er1
28648 ac_status=$?
28649 grep -v '^ *+' conftest.er1 >conftest.err
28650 rm -f conftest.er1
28651 cat conftest.err >&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); } &&
28654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28655 { (case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28658 esac
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_try") 2>&5
28661 ac_status=$?
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; } &&
28664 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28671 ac_status=$?
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; }; then
28674 ac_cv_header_time=yes
28675 else
28676 echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28679 ac_cv_header_time=no
28682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28684 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28685 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28686 if test $ac_cv_header_time = yes; then
28688 cat >>confdefs.h <<\_ACEOF
28689 #define TIME_WITH_SYS_TIME 1
28690 _ACEOF
28701 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28710 ac_res=`eval echo '${'$as_ac_Header'}'`
28711 { echo "$as_me:$LINENO: result: $ac_res" >&5
28712 echo "${ECHO_T}$ac_res" >&6; }
28713 else
28714 # Is the header compilable?
28715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28717 cat >conftest.$ac_ext <<_ACEOF
28718 /* confdefs.h. */
28719 _ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h. */
28723 $ac_includes_default
28724 #include <$ac_header>
28725 _ACEOF
28726 rm -f conftest.$ac_objext
28727 if { (ac_try="$ac_compile"
28728 case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731 esac
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_compile") 2>conftest.er1
28734 ac_status=$?
28735 grep -v '^ *+' conftest.er1 >conftest.err
28736 rm -f conftest.er1
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } &&
28740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28741 { (case "(($ac_try" in
28742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28743 *) ac_try_echo=$ac_try;;
28744 esac
28745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28746 (eval "$ac_try") 2>&5
28747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
28760 ac_header_compiler=yes
28761 else
28762 echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28765 ac_header_compiler=no
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28770 echo "${ECHO_T}$ac_header_compiler" >&6; }
28772 # Is the header present?
28773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28775 cat >conftest.$ac_ext <<_ACEOF
28776 /* confdefs.h. */
28777 _ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h. */
28781 #include <$ac_header>
28782 _ACEOF
28783 if { (ac_try="$ac_cpp conftest.$ac_ext"
28784 case "(($ac_try" in
28785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28786 *) ac_try_echo=$ac_try;;
28787 esac
28788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28790 ac_status=$?
28791 grep -v '^ *+' conftest.er1 >conftest.err
28792 rm -f conftest.er1
28793 cat conftest.err >&5
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); } >/dev/null; then
28796 if test -s conftest.err; then
28797 ac_cpp_err=$ac_c_preproc_warn_flag
28798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28799 else
28800 ac_cpp_err=
28802 else
28803 ac_cpp_err=yes
28805 if test -z "$ac_cpp_err"; then
28806 ac_header_preproc=yes
28807 else
28808 echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28811 ac_header_preproc=no
28814 rm -f conftest.err conftest.$ac_ext
28815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28816 echo "${ECHO_T}$ac_header_preproc" >&6; }
28818 # So? What about this header?
28819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28820 yes:no: )
28821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28825 ac_header_preproc=yes
28827 no:yes:* )
28828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28840 ( cat <<\_ASBOX
28841 ## ----------------------------------- ##
28842 ## Report this to llvmbugs@cs.uiuc.edu ##
28843 ## ----------------------------------- ##
28844 _ASBOX
28845 ) | sed "s/^/$as_me: WARNING: /" >&2
28847 esac
28848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28851 echo $ECHO_N "(cached) $ECHO_C" >&6
28852 else
28853 eval "$as_ac_Header=\$ac_header_preproc"
28855 ac_res=`eval echo '${'$as_ac_Header'}'`
28856 { echo "$as_me:$LINENO: result: $ac_res" >&5
28857 echo "${ECHO_T}$ac_res" >&6; }
28860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28861 cat >>confdefs.h <<_ACEOF
28862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28863 _ACEOF
28867 done
28875 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28882 echo $ECHO_N "(cached) $ECHO_C" >&6
28884 ac_res=`eval echo '${'$as_ac_Header'}'`
28885 { echo "$as_me:$LINENO: result: $ac_res" >&5
28886 echo "${ECHO_T}$ac_res" >&6; }
28887 else
28888 # Is the header compilable?
28889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28891 cat >conftest.$ac_ext <<_ACEOF
28892 /* confdefs.h. */
28893 _ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28897 $ac_includes_default
28898 #include <$ac_header>
28899 _ACEOF
28900 rm -f conftest.$ac_objext
28901 if { (ac_try="$ac_compile"
28902 case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28905 esac
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_compile") 2>conftest.er1
28908 ac_status=$?
28909 grep -v '^ *+' conftest.er1 >conftest.err
28910 rm -f conftest.er1
28911 cat conftest.err >&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } &&
28914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28915 { (case "(($ac_try" in
28916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28917 *) ac_try_echo=$ac_try;;
28918 esac
28919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28920 (eval "$ac_try") 2>&5
28921 ac_status=$?
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; } &&
28924 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); }; }; then
28934 ac_header_compiler=yes
28935 else
28936 echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28939 ac_header_compiler=no
28942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28944 echo "${ECHO_T}$ac_header_compiler" >&6; }
28946 # Is the header present?
28947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28949 cat >conftest.$ac_ext <<_ACEOF
28950 /* confdefs.h. */
28951 _ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h. */
28955 #include <$ac_header>
28956 _ACEOF
28957 if { (ac_try="$ac_cpp conftest.$ac_ext"
28958 case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28961 esac
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28964 ac_status=$?
28965 grep -v '^ *+' conftest.er1 >conftest.err
28966 rm -f conftest.er1
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } >/dev/null; then
28970 if test -s conftest.err; then
28971 ac_cpp_err=$ac_c_preproc_warn_flag
28972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28973 else
28974 ac_cpp_err=
28976 else
28977 ac_cpp_err=yes
28979 if test -z "$ac_cpp_err"; then
28980 ac_header_preproc=yes
28981 else
28982 echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28985 ac_header_preproc=no
28988 rm -f conftest.err conftest.$ac_ext
28989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28990 echo "${ECHO_T}$ac_header_preproc" >&6; }
28992 # So? What about this header?
28993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28994 yes:no: )
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28999 ac_header_preproc=yes
29001 no:yes:* )
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29014 ( cat <<\_ASBOX
29015 ## ----------------------------------- ##
29016 ## Report this to llvmbugs@cs.uiuc.edu ##
29017 ## ----------------------------------- ##
29018 _ASBOX
29019 ) | sed "s/^/$as_me: WARNING: /" >&2
29021 esac
29022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29026 else
29027 eval "$as_ac_Header=\$ac_header_preproc"
29029 ac_res=`eval echo '${'$as_ac_Header'}'`
29030 { echo "$as_me:$LINENO: result: $ac_res" >&5
29031 echo "${ECHO_T}$ac_res" >&6; }
29034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29035 cat >>confdefs.h <<_ACEOF
29036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29037 _ACEOF
29041 done
29044 for ac_header in windows.h
29046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29053 ac_res=`eval echo '${'$as_ac_Header'}'`
29054 { echo "$as_me:$LINENO: result: $ac_res" >&5
29055 echo "${ECHO_T}$ac_res" >&6; }
29056 else
29057 # Is the header compilable?
29058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29060 cat >conftest.$ac_ext <<_ACEOF
29061 /* confdefs.h. */
29062 _ACEOF
29063 cat confdefs.h >>conftest.$ac_ext
29064 cat >>conftest.$ac_ext <<_ACEOF
29065 /* end confdefs.h. */
29066 $ac_includes_default
29067 #include <$ac_header>
29068 _ACEOF
29069 rm -f conftest.$ac_objext
29070 if { (ac_try="$ac_compile"
29071 case "(($ac_try" in
29072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29073 *) ac_try_echo=$ac_try;;
29074 esac
29075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29076 (eval "$ac_compile") 2>conftest.er1
29077 ac_status=$?
29078 grep -v '^ *+' conftest.er1 >conftest.err
29079 rm -f conftest.er1
29080 cat conftest.err >&5
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); } &&
29083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29084 { (case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29087 esac
29088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089 (eval "$ac_try") 2>&5
29090 ac_status=$?
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; } &&
29093 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; }; then
29103 ac_header_compiler=yes
29104 else
29105 echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29108 ac_header_compiler=no
29111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29113 echo "${ECHO_T}$ac_header_compiler" >&6; }
29115 # Is the header present?
29116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29118 cat >conftest.$ac_ext <<_ACEOF
29119 /* confdefs.h. */
29120 _ACEOF
29121 cat confdefs.h >>conftest.$ac_ext
29122 cat >>conftest.$ac_ext <<_ACEOF
29123 /* end confdefs.h. */
29124 #include <$ac_header>
29125 _ACEOF
29126 if { (ac_try="$ac_cpp conftest.$ac_ext"
29127 case "(($ac_try" in
29128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 *) ac_try_echo=$ac_try;;
29130 esac
29131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29133 ac_status=$?
29134 grep -v '^ *+' conftest.er1 >conftest.err
29135 rm -f conftest.er1
29136 cat conftest.err >&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); } >/dev/null; then
29139 if test -s conftest.err; then
29140 ac_cpp_err=$ac_c_preproc_warn_flag
29141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29142 else
29143 ac_cpp_err=
29145 else
29146 ac_cpp_err=yes
29148 if test -z "$ac_cpp_err"; then
29149 ac_header_preproc=yes
29150 else
29151 echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29154 ac_header_preproc=no
29157 rm -f conftest.err conftest.$ac_ext
29158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29159 echo "${ECHO_T}$ac_header_preproc" >&6; }
29161 # So? What about this header?
29162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29163 yes:no: )
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29168 ac_header_preproc=yes
29170 no:yes:* )
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29183 ( cat <<\_ASBOX
29184 ## ----------------------------------- ##
29185 ## Report this to llvmbugs@cs.uiuc.edu ##
29186 ## ----------------------------------- ##
29187 _ASBOX
29188 ) | sed "s/^/$as_me: WARNING: /" >&2
29190 esac
29191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29195 else
29196 eval "$as_ac_Header=\$ac_header_preproc"
29198 ac_res=`eval echo '${'$as_ac_Header'}'`
29199 { echo "$as_me:$LINENO: result: $ac_res" >&5
29200 echo "${ECHO_T}$ac_res" >&6; }
29203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29204 cat >>confdefs.h <<_ACEOF
29205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29206 _ACEOF
29210 done
29216 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29223 echo $ECHO_N "(cached) $ECHO_C" >&6
29225 ac_res=`eval echo '${'$as_ac_Header'}'`
29226 { echo "$as_me:$LINENO: result: $ac_res" >&5
29227 echo "${ECHO_T}$ac_res" >&6; }
29228 else
29229 # Is the header compilable?
29230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29232 cat >conftest.$ac_ext <<_ACEOF
29233 /* confdefs.h. */
29234 _ACEOF
29235 cat confdefs.h >>conftest.$ac_ext
29236 cat >>conftest.$ac_ext <<_ACEOF
29237 /* end confdefs.h. */
29238 $ac_includes_default
29239 #include <$ac_header>
29240 _ACEOF
29241 rm -f conftest.$ac_objext
29242 if { (ac_try="$ac_compile"
29243 case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_compile") 2>conftest.er1
29249 ac_status=$?
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
29255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256 { (case "(($ac_try" in
29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258 *) ac_try_echo=$ac_try;;
29259 esac
29260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261 (eval "$ac_try") 2>&5
29262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; } &&
29265 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_header_compiler=yes
29276 else
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_header_compiler=no
29283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285 echo "${ECHO_T}$ac_header_compiler" >&6; }
29287 # Is the header present?
29288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29290 cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h. */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h. */
29296 #include <$ac_header>
29297 _ACEOF
29298 if { (ac_try="$ac_cpp conftest.$ac_ext"
29299 case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29305 ac_status=$?
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } >/dev/null; then
29311 if test -s conftest.err; then
29312 ac_cpp_err=$ac_c_preproc_warn_flag
29313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29314 else
29315 ac_cpp_err=
29317 else
29318 ac_cpp_err=yes
29320 if test -z "$ac_cpp_err"; then
29321 ac_header_preproc=yes
29322 else
29323 echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29326 ac_header_preproc=no
29329 rm -f conftest.err conftest.$ac_ext
29330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29331 echo "${ECHO_T}$ac_header_preproc" >&6; }
29333 # So? What about this header?
29334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29335 yes:no: )
29336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29340 ac_header_preproc=yes
29342 no:yes:* )
29343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29355 ( cat <<\_ASBOX
29356 ## ----------------------------------- ##
29357 ## Report this to llvmbugs@cs.uiuc.edu ##
29358 ## ----------------------------------- ##
29359 _ASBOX
29360 ) | sed "s/^/$as_me: WARNING: /" >&2
29362 esac
29363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367 else
29368 eval "$as_ac_Header=\$ac_header_preproc"
29370 ac_res=`eval echo '${'$as_ac_Header'}'`
29371 { echo "$as_me:$LINENO: result: $ac_res" >&5
29372 echo "${ECHO_T}$ac_res" >&6; }
29375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29376 cat >>confdefs.h <<_ACEOF
29377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29378 _ACEOF
29382 done
29387 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29396 ac_res=`eval echo '${'$as_ac_Header'}'`
29397 { echo "$as_me:$LINENO: result: $ac_res" >&5
29398 echo "${ECHO_T}$ac_res" >&6; }
29399 else
29400 # Is the header compilable?
29401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29403 cat >conftest.$ac_ext <<_ACEOF
29404 /* confdefs.h. */
29405 _ACEOF
29406 cat confdefs.h >>conftest.$ac_ext
29407 cat >>conftest.$ac_ext <<_ACEOF
29408 /* end confdefs.h. */
29409 $ac_includes_default
29410 #include <$ac_header>
29411 _ACEOF
29412 rm -f conftest.$ac_objext
29413 if { (ac_try="$ac_compile"
29414 case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29417 esac
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_compile") 2>conftest.er1
29420 ac_status=$?
29421 grep -v '^ *+' conftest.er1 >conftest.err
29422 rm -f conftest.er1
29423 cat conftest.err >&5
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } &&
29426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29427 { (case "(($ac_try" in
29428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429 *) ac_try_echo=$ac_try;;
29430 esac
29431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29432 (eval "$ac_try") 2>&5
29433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29443 ac_status=$?
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
29446 ac_header_compiler=yes
29447 else
29448 echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29451 ac_header_compiler=no
29454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29456 echo "${ECHO_T}$ac_header_compiler" >&6; }
29458 # Is the header present?
29459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29461 cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h. */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29467 #include <$ac_header>
29468 _ACEOF
29469 if { (ac_try="$ac_cpp conftest.$ac_ext"
29470 case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29473 esac
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29476 ac_status=$?
29477 grep -v '^ *+' conftest.er1 >conftest.err
29478 rm -f conftest.er1
29479 cat conftest.err >&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } >/dev/null; then
29482 if test -s conftest.err; then
29483 ac_cpp_err=$ac_c_preproc_warn_flag
29484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29485 else
29486 ac_cpp_err=
29488 else
29489 ac_cpp_err=yes
29491 if test -z "$ac_cpp_err"; then
29492 ac_header_preproc=yes
29493 else
29494 echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29497 ac_header_preproc=no
29500 rm -f conftest.err conftest.$ac_ext
29501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29502 echo "${ECHO_T}$ac_header_preproc" >&6; }
29504 # So? What about this header?
29505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29506 yes:no: )
29507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29511 ac_header_preproc=yes
29513 no:yes:* )
29514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29526 ( cat <<\_ASBOX
29527 ## ----------------------------------- ##
29528 ## Report this to llvmbugs@cs.uiuc.edu ##
29529 ## ----------------------------------- ##
29530 _ASBOX
29531 ) | sed "s/^/$as_me: WARNING: /" >&2
29533 esac
29534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29537 echo $ECHO_N "(cached) $ECHO_C" >&6
29538 else
29539 eval "$as_ac_Header=\$ac_header_preproc"
29541 ac_res=`eval echo '${'$as_ac_Header'}'`
29542 { echo "$as_me:$LINENO: result: $ac_res" >&5
29543 echo "${ECHO_T}$ac_res" >&6; }
29546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29547 cat >>confdefs.h <<_ACEOF
29548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29549 _ACEOF
29553 done
29555 if test "$ENABLE_THREADS" -eq 1 ; then
29557 for ac_header in pthread.h
29559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29566 ac_res=`eval echo '${'$as_ac_Header'}'`
29567 { echo "$as_me:$LINENO: result: $ac_res" >&5
29568 echo "${ECHO_T}$ac_res" >&6; }
29569 else
29570 # Is the header compilable?
29571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29573 cat >conftest.$ac_ext <<_ACEOF
29574 /* confdefs.h. */
29575 _ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h. */
29579 $ac_includes_default
29580 #include <$ac_header>
29581 _ACEOF
29582 rm -f conftest.$ac_objext
29583 if { (ac_try="$ac_compile"
29584 case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29587 esac
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_compile") 2>conftest.er1
29590 ac_status=$?
29591 grep -v '^ *+' conftest.er1 >conftest.err
29592 rm -f conftest.er1
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597 { (case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29600 esac
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_try") 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
29616 ac_header_compiler=yes
29617 else
29618 echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29621 ac_header_compiler=no
29624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29626 echo "${ECHO_T}$ac_header_compiler" >&6; }
29628 # Is the header present?
29629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29631 cat >conftest.$ac_ext <<_ACEOF
29632 /* confdefs.h. */
29633 _ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h. */
29637 #include <$ac_header>
29638 _ACEOF
29639 if { (ac_try="$ac_cpp conftest.$ac_ext"
29640 case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643 esac
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29646 ac_status=$?
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } >/dev/null; then
29652 if test -s conftest.err; then
29653 ac_cpp_err=$ac_c_preproc_warn_flag
29654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29655 else
29656 ac_cpp_err=
29658 else
29659 ac_cpp_err=yes
29661 if test -z "$ac_cpp_err"; then
29662 ac_header_preproc=yes
29663 else
29664 echo "$as_me: failed program was:" >&5
29665 sed 's/^/| /' conftest.$ac_ext >&5
29667 ac_header_preproc=no
29670 rm -f conftest.err conftest.$ac_ext
29671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29672 echo "${ECHO_T}$ac_header_preproc" >&6; }
29674 # So? What about this header?
29675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29676 yes:no: )
29677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29681 ac_header_preproc=yes
29683 no:yes:* )
29684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29696 ( cat <<\_ASBOX
29697 ## ----------------------------------- ##
29698 ## Report this to llvmbugs@cs.uiuc.edu ##
29699 ## ----------------------------------- ##
29700 _ASBOX
29701 ) | sed "s/^/$as_me: WARNING: /" >&2
29703 esac
29704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29708 else
29709 eval "$as_ac_Header=\$ac_header_preproc"
29711 ac_res=`eval echo '${'$as_ac_Header'}'`
29712 { echo "$as_me:$LINENO: result: $ac_res" >&5
29713 echo "${ECHO_T}$ac_res" >&6; }
29716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29717 cat >>confdefs.h <<_ACEOF
29718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29719 _ACEOF
29720 HAVE_PTHREAD=1
29722 else
29723 HAVE_PTHREAD=0
29727 done
29729 else
29730 HAVE_PTHREAD=0
29736 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29737 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29738 if test "${ac_cv_huge_val_sanity+set}" = set; then
29739 echo $ECHO_N "(cached) $ECHO_C" >&6
29740 else
29742 ac_ext=cpp
29743 ac_cpp='$CXXCPP $CPPFLAGS'
29744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29748 CXXFLAGS=-pedantic
29749 if test "$cross_compiling" = yes; then
29750 ac_cv_huge_val_sanity=yes
29751 else
29752 cat >conftest.$ac_ext <<_ACEOF
29753 /* confdefs.h. */
29754 _ACEOF
29755 cat confdefs.h >>conftest.$ac_ext
29756 cat >>conftest.$ac_ext <<_ACEOF
29757 /* end confdefs.h. */
29758 #include <math.h>
29760 main ()
29762 double x = HUGE_VAL; return x != x;
29764 return 0;
29766 _ACEOF
29767 rm -f conftest$ac_exeext
29768 if { (ac_try="$ac_link"
29769 case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29772 esac
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_link") 2>&5
29775 ac_status=$?
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29781 esac
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 ac_cv_huge_val_sanity=yes
29788 else
29789 echo "$as_me: program exited with status $ac_status" >&5
29790 echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29793 ( exit $ac_status )
29794 ac_cv_huge_val_sanity=no
29796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29800 ac_ext=c
29801 ac_cpp='$CPP $CPPFLAGS'
29802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29808 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29809 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29810 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29813 { echo "$as_me:$LINENO: checking for pid_t" >&5
29814 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29815 if test "${ac_cv_type_pid_t+set}" = set; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29817 else
29818 cat >conftest.$ac_ext <<_ACEOF
29819 /* confdefs.h. */
29820 _ACEOF
29821 cat confdefs.h >>conftest.$ac_ext
29822 cat >>conftest.$ac_ext <<_ACEOF
29823 /* end confdefs.h. */
29824 $ac_includes_default
29825 typedef pid_t ac__type_new_;
29827 main ()
29829 if ((ac__type_new_ *) 0)
29830 return 0;
29831 if (sizeof (ac__type_new_))
29832 return 0;
29834 return 0;
29836 _ACEOF
29837 rm -f conftest.$ac_objext
29838 if { (ac_try="$ac_compile"
29839 case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29842 esac
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_compile") 2>conftest.er1
29845 ac_status=$?
29846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } &&
29851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29852 { (case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29855 esac
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_try") 2>&5
29858 ac_status=$?
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); }; } &&
29861 { ac_try='test -s conftest.$ac_objext'
29862 { (case "(($ac_try" in
29863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864 *) ac_try_echo=$ac_try;;
29865 esac
29866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867 (eval "$ac_try") 2>&5
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
29871 ac_cv_type_pid_t=yes
29872 else
29873 echo "$as_me: failed program was:" >&5
29874 sed 's/^/| /' conftest.$ac_ext >&5
29876 ac_cv_type_pid_t=no
29879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29881 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29882 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29883 if test $ac_cv_type_pid_t = yes; then
29885 else
29887 cat >>confdefs.h <<_ACEOF
29888 #define pid_t int
29889 _ACEOF
29893 { echo "$as_me:$LINENO: checking for size_t" >&5
29894 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29895 if test "${ac_cv_type_size_t+set}" = set; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897 else
29898 cat >conftest.$ac_ext <<_ACEOF
29899 /* confdefs.h. */
29900 _ACEOF
29901 cat confdefs.h >>conftest.$ac_ext
29902 cat >>conftest.$ac_ext <<_ACEOF
29903 /* end confdefs.h. */
29904 $ac_includes_default
29905 typedef size_t ac__type_new_;
29907 main ()
29909 if ((ac__type_new_ *) 0)
29910 return 0;
29911 if (sizeof (ac__type_new_))
29912 return 0;
29914 return 0;
29916 _ACEOF
29917 rm -f conftest.$ac_objext
29918 if { (ac_try="$ac_compile"
29919 case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29922 esac
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_compile") 2>conftest.er1
29925 ac_status=$?
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
29931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29932 { (case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_try") 2>&5
29938 ac_status=$?
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; } &&
29941 { ac_try='test -s conftest.$ac_objext'
29942 { (case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29945 esac
29946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_try") 2>&5
29948 ac_status=$?
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951 ac_cv_type_size_t=yes
29952 else
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ac_cv_type_size_t=no
29959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29961 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29962 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29963 if test $ac_cv_type_size_t = yes; then
29965 else
29967 cat >>confdefs.h <<_ACEOF
29968 #define size_t unsigned int
29969 _ACEOF
29973 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29974 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29975 if test "${ac_cv_type_signal+set}" = set; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977 else
29978 cat >conftest.$ac_ext <<_ACEOF
29979 /* confdefs.h. */
29980 _ACEOF
29981 cat confdefs.h >>conftest.$ac_ext
29982 cat >>conftest.$ac_ext <<_ACEOF
29983 /* end confdefs.h. */
29984 #include <sys/types.h>
29985 #include <signal.h>
29988 main ()
29990 return *(signal (0, 0)) (0) == 1;
29992 return 0;
29994 _ACEOF
29995 rm -f conftest.$ac_objext
29996 if { (ac_try="$ac_compile"
29997 case "(($ac_try" in
29998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999 *) ac_try_echo=$ac_try;;
30000 esac
30001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30002 (eval "$ac_compile") 2>conftest.er1
30003 ac_status=$?
30004 grep -v '^ *+' conftest.er1 >conftest.err
30005 rm -f conftest.er1
30006 cat conftest.err >&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); } &&
30009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
30016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; } &&
30019 { ac_try='test -s conftest.$ac_objext'
30020 { (case "(($ac_try" in
30021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30022 *) ac_try_echo=$ac_try;;
30023 esac
30024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30025 (eval "$ac_try") 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029 ac_cv_type_signal=int
30030 else
30031 echo "$as_me: failed program was:" >&5
30032 sed 's/^/| /' conftest.$ac_ext >&5
30034 ac_cv_type_signal=void
30037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30040 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30042 cat >>confdefs.h <<_ACEOF
30043 #define RETSIGTYPE $ac_cv_type_signal
30044 _ACEOF
30047 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30048 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30049 if test "${ac_cv_struct_tm+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30051 else
30052 cat >conftest.$ac_ext <<_ACEOF
30053 /* confdefs.h. */
30054 _ACEOF
30055 cat confdefs.h >>conftest.$ac_ext
30056 cat >>conftest.$ac_ext <<_ACEOF
30057 /* end confdefs.h. */
30058 #include <sys/types.h>
30059 #include <time.h>
30062 main ()
30064 struct tm *tp; tp->tm_sec;
30066 return 0;
30068 _ACEOF
30069 rm -f conftest.$ac_objext
30070 if { (ac_try="$ac_compile"
30071 case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30074 esac
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_compile") 2>conftest.er1
30077 ac_status=$?
30078 grep -v '^ *+' conftest.er1 >conftest.err
30079 rm -f conftest.er1
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } &&
30083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084 { (case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30087 esac
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_try") 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest.$ac_objext'
30094 { (case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30097 esac
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_try") 2>&5
30100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_struct_tm=time.h
30104 else
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_struct_tm=sys/time.h
30111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30113 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30114 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30115 if test $ac_cv_struct_tm = sys/time.h; then
30117 cat >>confdefs.h <<\_ACEOF
30118 #define TM_IN_SYS_TIME 1
30119 _ACEOF
30123 { echo "$as_me:$LINENO: checking for int64_t" >&5
30124 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30125 if test "${ac_cv_type_int64_t+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30127 else
30128 cat >conftest.$ac_ext <<_ACEOF
30129 /* confdefs.h. */
30130 _ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h. */
30134 $ac_includes_default
30135 typedef int64_t ac__type_new_;
30137 main ()
30139 if ((ac__type_new_ *) 0)
30140 return 0;
30141 if (sizeof (ac__type_new_))
30142 return 0;
30144 return 0;
30146 _ACEOF
30147 rm -f conftest.$ac_objext
30148 if { (ac_try="$ac_compile"
30149 case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30152 esac
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_compile") 2>conftest.er1
30155 ac_status=$?
30156 grep -v '^ *+' conftest.er1 >conftest.err
30157 rm -f conftest.er1
30158 cat conftest.err >&5
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); } &&
30161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30162 { (case "(($ac_try" in
30163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30165 esac
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167 (eval "$ac_try") 2>&5
30168 ac_status=$?
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; } &&
30171 { ac_try='test -s conftest.$ac_objext'
30172 { (case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30175 esac
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_try") 2>&5
30178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; }; then
30181 ac_cv_type_int64_t=yes
30182 else
30183 echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30186 ac_cv_type_int64_t=no
30189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30191 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30192 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30193 if test $ac_cv_type_int64_t = yes; then
30195 cat >>confdefs.h <<_ACEOF
30196 #define HAVE_INT64_T 1
30197 _ACEOF
30200 else
30201 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30202 echo "$as_me: error: Type int64_t required but not found" >&2;}
30203 { (exit 1); exit 1; }; }
30206 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30207 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30208 if test "${ac_cv_type_uint64_t+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30210 else
30211 cat >conftest.$ac_ext <<_ACEOF
30212 /* confdefs.h. */
30213 _ACEOF
30214 cat confdefs.h >>conftest.$ac_ext
30215 cat >>conftest.$ac_ext <<_ACEOF
30216 /* end confdefs.h. */
30217 $ac_includes_default
30218 typedef uint64_t ac__type_new_;
30220 main ()
30222 if ((ac__type_new_ *) 0)
30223 return 0;
30224 if (sizeof (ac__type_new_))
30225 return 0;
30227 return 0;
30229 _ACEOF
30230 rm -f conftest.$ac_objext
30231 if { (ac_try="$ac_compile"
30232 case "(($ac_try" in
30233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234 *) ac_try_echo=$ac_try;;
30235 esac
30236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237 (eval "$ac_compile") 2>conftest.er1
30238 ac_status=$?
30239 grep -v '^ *+' conftest.er1 >conftest.err
30240 rm -f conftest.er1
30241 cat conftest.err >&5
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
30244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30245 { (case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30248 esac
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_try") 2>&5
30251 ac_status=$?
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); }; } &&
30254 { ac_try='test -s conftest.$ac_objext'
30255 { (case "(($ac_try" in
30256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257 *) ac_try_echo=$ac_try;;
30258 esac
30259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260 (eval "$ac_try") 2>&5
30261 ac_status=$?
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; }; then
30264 ac_cv_type_uint64_t=yes
30265 else
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30269 ac_cv_type_uint64_t=no
30272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30274 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30275 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30276 if test $ac_cv_type_uint64_t = yes; then
30278 cat >>confdefs.h <<_ACEOF
30279 #define HAVE_UINT64_T 1
30280 _ACEOF
30283 else
30284 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30285 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30286 if test "${ac_cv_type_u_int64_t+set}" = set; then
30287 echo $ECHO_N "(cached) $ECHO_C" >&6
30288 else
30289 cat >conftest.$ac_ext <<_ACEOF
30290 /* confdefs.h. */
30291 _ACEOF
30292 cat confdefs.h >>conftest.$ac_ext
30293 cat >>conftest.$ac_ext <<_ACEOF
30294 /* end confdefs.h. */
30295 $ac_includes_default
30296 typedef u_int64_t ac__type_new_;
30298 main ()
30300 if ((ac__type_new_ *) 0)
30301 return 0;
30302 if (sizeof (ac__type_new_))
30303 return 0;
30305 return 0;
30307 _ACEOF
30308 rm -f conftest.$ac_objext
30309 if { (ac_try="$ac_compile"
30310 case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30313 esac
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_compile") 2>conftest.er1
30316 ac_status=$?
30317 grep -v '^ *+' conftest.er1 >conftest.err
30318 rm -f conftest.er1
30319 cat conftest.err >&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); } &&
30322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30323 { (case "(($ac_try" in
30324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325 *) ac_try_echo=$ac_try;;
30326 esac
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328 (eval "$ac_try") 2>&5
30329 ac_status=$?
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; } &&
30332 { ac_try='test -s conftest.$ac_objext'
30333 { (case "(($ac_try" in
30334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335 *) ac_try_echo=$ac_try;;
30336 esac
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338 (eval "$ac_try") 2>&5
30339 ac_status=$?
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; }; then
30342 ac_cv_type_u_int64_t=yes
30343 else
30344 echo "$as_me: failed program was:" >&5
30345 sed 's/^/| /' conftest.$ac_ext >&5
30347 ac_cv_type_u_int64_t=no
30350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30352 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30353 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30354 if test $ac_cv_type_u_int64_t = yes; then
30356 cat >>confdefs.h <<_ACEOF
30357 #define HAVE_U_INT64_T 1
30358 _ACEOF
30361 else
30362 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30363 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30364 { (exit 1); exit 1; }; }
30378 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30385 else
30386 cat >conftest.$ac_ext <<_ACEOF
30387 /* confdefs.h. */
30388 _ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h. */
30392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30394 #define $ac_func innocuous_$ac_func
30396 /* System header to define __stub macros and hopefully few prototypes,
30397 which can conflict with char $ac_func (); below.
30398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30399 <limits.h> exists even on freestanding compilers. */
30401 #ifdef __STDC__
30402 # include <limits.h>
30403 #else
30404 # include <assert.h>
30405 #endif
30407 #undef $ac_func
30409 /* Override any GCC internal prototype to avoid an error.
30410 Use char because int might match the return type of a GCC
30411 builtin and then its argument prototype would still apply. */
30412 #ifdef __cplusplus
30413 extern "C"
30414 #endif
30415 char $ac_func ();
30416 /* The GNU C library defines this for functions which it implements
30417 to always fail with ENOSYS. Some functions are actually named
30418 something starting with __ and the normal name is an alias. */
30419 #if defined __stub_$ac_func || defined __stub___$ac_func
30420 choke me
30421 #endif
30424 main ()
30426 return $ac_func ();
30428 return 0;
30430 _ACEOF
30431 rm -f conftest.$ac_objext conftest$ac_exeext
30432 if { (ac_try="$ac_link"
30433 case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30436 esac
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_link") 2>conftest.er1
30439 ac_status=$?
30440 grep -v '^ *+' conftest.er1 >conftest.err
30441 rm -f conftest.er1
30442 cat conftest.err >&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } &&
30445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30446 { (case "(($ac_try" in
30447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448 *) ac_try_echo=$ac_try;;
30449 esac
30450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30451 (eval "$ac_try") 2>&5
30452 ac_status=$?
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); }; } &&
30455 { ac_try='test -s conftest$ac_exeext'
30456 { (case "(($ac_try" in
30457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458 *) ac_try_echo=$ac_try;;
30459 esac
30460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30461 (eval "$ac_try") 2>&5
30462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
30465 eval "$as_ac_var=yes"
30466 else
30467 echo "$as_me: failed program was:" >&5
30468 sed 's/^/| /' conftest.$ac_ext >&5
30470 eval "$as_ac_var=no"
30473 rm -f core conftest.err conftest.$ac_objext \
30474 conftest$ac_exeext conftest.$ac_ext
30476 ac_res=`eval echo '${'$as_ac_var'}'`
30477 { echo "$as_me:$LINENO: result: $ac_res" >&5
30478 echo "${ECHO_T}$ac_res" >&6; }
30479 if test `eval echo '${'$as_ac_var'}'` = yes; then
30480 cat >>confdefs.h <<_ACEOF
30481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30482 _ACEOF
30485 done
30491 for ac_func in powf fmodf strtof round
30493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30497 echo $ECHO_N "(cached) $ECHO_C" >&6
30498 else
30499 cat >conftest.$ac_ext <<_ACEOF
30500 /* confdefs.h. */
30501 _ACEOF
30502 cat confdefs.h >>conftest.$ac_ext
30503 cat >>conftest.$ac_ext <<_ACEOF
30504 /* end confdefs.h. */
30505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30507 #define $ac_func innocuous_$ac_func
30509 /* System header to define __stub macros and hopefully few prototypes,
30510 which can conflict with char $ac_func (); below.
30511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30512 <limits.h> exists even on freestanding compilers. */
30514 #ifdef __STDC__
30515 # include <limits.h>
30516 #else
30517 # include <assert.h>
30518 #endif
30520 #undef $ac_func
30522 /* Override any GCC internal prototype to avoid an error.
30523 Use char because int might match the return type of a GCC
30524 builtin and then its argument prototype would still apply. */
30525 #ifdef __cplusplus
30526 extern "C"
30527 #endif
30528 char $ac_func ();
30529 /* The GNU C library defines this for functions which it implements
30530 to always fail with ENOSYS. Some functions are actually named
30531 something starting with __ and the normal name is an alias. */
30532 #if defined __stub_$ac_func || defined __stub___$ac_func
30533 choke me
30534 #endif
30537 main ()
30539 return $ac_func ();
30541 return 0;
30543 _ACEOF
30544 rm -f conftest.$ac_objext conftest$ac_exeext
30545 if { (ac_try="$ac_link"
30546 case "(($ac_try" in
30547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548 *) ac_try_echo=$ac_try;;
30549 esac
30550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30551 (eval "$ac_link") 2>conftest.er1
30552 ac_status=$?
30553 grep -v '^ *+' conftest.er1 >conftest.err
30554 rm -f conftest.er1
30555 cat conftest.err >&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); } &&
30558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30562 esac
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; } &&
30568 { ac_try='test -s conftest$ac_exeext'
30569 { (case "(($ac_try" in
30570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571 *) ac_try_echo=$ac_try;;
30572 esac
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574 (eval "$ac_try") 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); }; }; then
30578 eval "$as_ac_var=yes"
30579 else
30580 echo "$as_me: failed program was:" >&5
30581 sed 's/^/| /' conftest.$ac_ext >&5
30583 eval "$as_ac_var=no"
30586 rm -f core conftest.err conftest.$ac_objext \
30587 conftest$ac_exeext conftest.$ac_ext
30589 ac_res=`eval echo '${'$as_ac_var'}'`
30590 { echo "$as_me:$LINENO: result: $ac_res" >&5
30591 echo "${ECHO_T}$ac_res" >&6; }
30592 if test `eval echo '${'$as_ac_var'}'` = yes; then
30593 cat >>confdefs.h <<_ACEOF
30594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30595 _ACEOF
30598 done
30605 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30612 else
30613 cat >conftest.$ac_ext <<_ACEOF
30614 /* confdefs.h. */
30615 _ACEOF
30616 cat confdefs.h >>conftest.$ac_ext
30617 cat >>conftest.$ac_ext <<_ACEOF
30618 /* end confdefs.h. */
30619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30621 #define $ac_func innocuous_$ac_func
30623 /* System header to define __stub macros and hopefully few prototypes,
30624 which can conflict with char $ac_func (); below.
30625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30626 <limits.h> exists even on freestanding compilers. */
30628 #ifdef __STDC__
30629 # include <limits.h>
30630 #else
30631 # include <assert.h>
30632 #endif
30634 #undef $ac_func
30636 /* Override any GCC internal prototype to avoid an error.
30637 Use char because int might match the return type of a GCC
30638 builtin and then its argument prototype would still apply. */
30639 #ifdef __cplusplus
30640 extern "C"
30641 #endif
30642 char $ac_func ();
30643 /* The GNU C library defines this for functions which it implements
30644 to always fail with ENOSYS. Some functions are actually named
30645 something starting with __ and the normal name is an alias. */
30646 #if defined __stub_$ac_func || defined __stub___$ac_func
30647 choke me
30648 #endif
30651 main ()
30653 return $ac_func ();
30655 return 0;
30657 _ACEOF
30658 rm -f conftest.$ac_objext conftest$ac_exeext
30659 if { (ac_try="$ac_link"
30660 case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30663 esac
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_link") 2>conftest.er1
30666 ac_status=$?
30667 grep -v '^ *+' conftest.er1 >conftest.err
30668 rm -f conftest.er1
30669 cat conftest.err >&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } &&
30672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30673 { (case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30676 esac
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_try") 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; } &&
30682 { ac_try='test -s conftest$ac_exeext'
30683 { (case "(($ac_try" in
30684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30685 *) ac_try_echo=$ac_try;;
30686 esac
30687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30688 (eval "$ac_try") 2>&5
30689 ac_status=$?
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; }; then
30692 eval "$as_ac_var=yes"
30693 else
30694 echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30697 eval "$as_ac_var=no"
30700 rm -f core conftest.err conftest.$ac_objext \
30701 conftest$ac_exeext conftest.$ac_ext
30703 ac_res=`eval echo '${'$as_ac_var'}'`
30704 { echo "$as_me:$LINENO: result: $ac_res" >&5
30705 echo "${ECHO_T}$ac_res" >&6; }
30706 if test `eval echo '${'$as_ac_var'}'` = yes; then
30707 cat >>confdefs.h <<_ACEOF
30708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30709 _ACEOF
30712 done
30717 for ac_func in isatty mkdtemp mkstemp
30719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30723 echo $ECHO_N "(cached) $ECHO_C" >&6
30724 else
30725 cat >conftest.$ac_ext <<_ACEOF
30726 /* confdefs.h. */
30727 _ACEOF
30728 cat confdefs.h >>conftest.$ac_ext
30729 cat >>conftest.$ac_ext <<_ACEOF
30730 /* end confdefs.h. */
30731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30733 #define $ac_func innocuous_$ac_func
30735 /* System header to define __stub macros and hopefully few prototypes,
30736 which can conflict with char $ac_func (); below.
30737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30738 <limits.h> exists even on freestanding compilers. */
30740 #ifdef __STDC__
30741 # include <limits.h>
30742 #else
30743 # include <assert.h>
30744 #endif
30746 #undef $ac_func
30748 /* Override any GCC internal prototype to avoid an error.
30749 Use char because int might match the return type of a GCC
30750 builtin and then its argument prototype would still apply. */
30751 #ifdef __cplusplus
30752 extern "C"
30753 #endif
30754 char $ac_func ();
30755 /* The GNU C library defines this for functions which it implements
30756 to always fail with ENOSYS. Some functions are actually named
30757 something starting with __ and the normal name is an alias. */
30758 #if defined __stub_$ac_func || defined __stub___$ac_func
30759 choke me
30760 #endif
30763 main ()
30765 return $ac_func ();
30767 return 0;
30769 _ACEOF
30770 rm -f conftest.$ac_objext conftest$ac_exeext
30771 if { (ac_try="$ac_link"
30772 case "(($ac_try" in
30773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30774 *) ac_try_echo=$ac_try;;
30775 esac
30776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30777 (eval "$ac_link") 2>conftest.er1
30778 ac_status=$?
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } &&
30784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30785 { (case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30788 esac
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
30791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; } &&
30794 { ac_try='test -s conftest$ac_exeext'
30795 { (case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798 esac
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_try") 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 eval "$as_ac_var=yes"
30805 else
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.$ac_ext >&5
30809 eval "$as_ac_var=no"
30812 rm -f core conftest.err conftest.$ac_objext \
30813 conftest$ac_exeext conftest.$ac_ext
30815 ac_res=`eval echo '${'$as_ac_var'}'`
30816 { echo "$as_me:$LINENO: result: $ac_res" >&5
30817 echo "${ECHO_T}$ac_res" >&6; }
30818 if test `eval echo '${'$as_ac_var'}'` = yes; then
30819 cat >>confdefs.h <<_ACEOF
30820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30821 _ACEOF
30824 done
30833 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30839 echo $ECHO_N "(cached) $ECHO_C" >&6
30840 else
30841 cat >conftest.$ac_ext <<_ACEOF
30842 /* confdefs.h. */
30843 _ACEOF
30844 cat confdefs.h >>conftest.$ac_ext
30845 cat >>conftest.$ac_ext <<_ACEOF
30846 /* end confdefs.h. */
30847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30849 #define $ac_func innocuous_$ac_func
30851 /* System header to define __stub macros and hopefully few prototypes,
30852 which can conflict with char $ac_func (); below.
30853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30854 <limits.h> exists even on freestanding compilers. */
30856 #ifdef __STDC__
30857 # include <limits.h>
30858 #else
30859 # include <assert.h>
30860 #endif
30862 #undef $ac_func
30864 /* Override any GCC internal prototype to avoid an error.
30865 Use char because int might match the return type of a GCC
30866 builtin and then its argument prototype would still apply. */
30867 #ifdef __cplusplus
30868 extern "C"
30869 #endif
30870 char $ac_func ();
30871 /* The GNU C library defines this for functions which it implements
30872 to always fail with ENOSYS. Some functions are actually named
30873 something starting with __ and the normal name is an alias. */
30874 #if defined __stub_$ac_func || defined __stub___$ac_func
30875 choke me
30876 #endif
30879 main ()
30881 return $ac_func ();
30883 return 0;
30885 _ACEOF
30886 rm -f conftest.$ac_objext conftest$ac_exeext
30887 if { (ac_try="$ac_link"
30888 case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30891 esac
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_link") 2>conftest.er1
30894 ac_status=$?
30895 grep -v '^ *+' conftest.er1 >conftest.err
30896 rm -f conftest.er1
30897 cat conftest.err >&5
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); } &&
30900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30901 { (case "(($ac_try" in
30902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30903 *) ac_try_echo=$ac_try;;
30904 esac
30905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30906 (eval "$ac_try") 2>&5
30907 ac_status=$?
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); }; } &&
30910 { ac_try='test -s conftest$ac_exeext'
30911 { (case "(($ac_try" in
30912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913 *) ac_try_echo=$ac_try;;
30914 esac
30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916 (eval "$ac_try") 2>&5
30917 ac_status=$?
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; }; then
30920 eval "$as_ac_var=yes"
30921 else
30922 echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.$ac_ext >&5
30925 eval "$as_ac_var=no"
30928 rm -f core conftest.err conftest.$ac_objext \
30929 conftest$ac_exeext conftest.$ac_ext
30931 ac_res=`eval echo '${'$as_ac_var'}'`
30932 { echo "$as_me:$LINENO: result: $ac_res" >&5
30933 echo "${ECHO_T}$ac_res" >&6; }
30934 if test `eval echo '${'$as_ac_var'}'` = yes; then
30935 cat >>confdefs.h <<_ACEOF
30936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30937 _ACEOF
30940 done
30946 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30952 echo $ECHO_N "(cached) $ECHO_C" >&6
30953 else
30954 cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h. */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h. */
30960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30962 #define $ac_func innocuous_$ac_func
30964 /* System header to define __stub macros and hopefully few prototypes,
30965 which can conflict with char $ac_func (); below.
30966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30967 <limits.h> exists even on freestanding compilers. */
30969 #ifdef __STDC__
30970 # include <limits.h>
30971 #else
30972 # include <assert.h>
30973 #endif
30975 #undef $ac_func
30977 /* Override any GCC internal prototype to avoid an error.
30978 Use char because int might match the return type of a GCC
30979 builtin and then its argument prototype would still apply. */
30980 #ifdef __cplusplus
30981 extern "C"
30982 #endif
30983 char $ac_func ();
30984 /* The GNU C library defines this for functions which it implements
30985 to always fail with ENOSYS. Some functions are actually named
30986 something starting with __ and the normal name is an alias. */
30987 #if defined __stub_$ac_func || defined __stub___$ac_func
30988 choke me
30989 #endif
30992 main ()
30994 return $ac_func ();
30996 return 0;
30998 _ACEOF
30999 rm -f conftest.$ac_objext conftest$ac_exeext
31000 if { (ac_try="$ac_link"
31001 case "(($ac_try" in
31002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003 *) ac_try_echo=$ac_try;;
31004 esac
31005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006 (eval "$ac_link") 2>conftest.er1
31007 ac_status=$?
31008 grep -v '^ *+' conftest.er1 >conftest.err
31009 rm -f conftest.er1
31010 cat conftest.err >&5
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); } &&
31013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31014 { (case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31017 esac
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_try") 2>&5
31020 ac_status=$?
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; } &&
31023 { ac_try='test -s conftest$ac_exeext'
31024 { (case "(($ac_try" in
31025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026 *) ac_try_echo=$ac_try;;
31027 esac
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029 (eval "$ac_try") 2>&5
31030 ac_status=$?
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 eval "$as_ac_var=yes"
31034 else
31035 echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31038 eval "$as_ac_var=no"
31041 rm -f core conftest.err conftest.$ac_objext \
31042 conftest$ac_exeext conftest.$ac_ext
31044 ac_res=`eval echo '${'$as_ac_var'}'`
31045 { echo "$as_me:$LINENO: result: $ac_res" >&5
31046 echo "${ECHO_T}$ac_res" >&6; }
31047 if test `eval echo '${'$as_ac_var'}'` = yes; then
31048 cat >>confdefs.h <<_ACEOF
31049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31050 _ACEOF
31053 done
31059 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066 else
31067 cat >conftest.$ac_ext <<_ACEOF
31068 /* confdefs.h. */
31069 _ACEOF
31070 cat confdefs.h >>conftest.$ac_ext
31071 cat >>conftest.$ac_ext <<_ACEOF
31072 /* end confdefs.h. */
31073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31075 #define $ac_func innocuous_$ac_func
31077 /* System header to define __stub macros and hopefully few prototypes,
31078 which can conflict with char $ac_func (); below.
31079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31080 <limits.h> exists even on freestanding compilers. */
31082 #ifdef __STDC__
31083 # include <limits.h>
31084 #else
31085 # include <assert.h>
31086 #endif
31088 #undef $ac_func
31090 /* Override any GCC internal prototype to avoid an error.
31091 Use char because int might match the return type of a GCC
31092 builtin and then its argument prototype would still apply. */
31093 #ifdef __cplusplus
31094 extern "C"
31095 #endif
31096 char $ac_func ();
31097 /* The GNU C library defines this for functions which it implements
31098 to always fail with ENOSYS. Some functions are actually named
31099 something starting with __ and the normal name is an alias. */
31100 #if defined __stub_$ac_func || defined __stub___$ac_func
31101 choke me
31102 #endif
31105 main ()
31107 return $ac_func ();
31109 return 0;
31111 _ACEOF
31112 rm -f conftest.$ac_objext conftest$ac_exeext
31113 if { (ac_try="$ac_link"
31114 case "(($ac_try" in
31115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116 *) ac_try_echo=$ac_try;;
31117 esac
31118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119 (eval "$ac_link") 2>conftest.er1
31120 ac_status=$?
31121 grep -v '^ *+' conftest.er1 >conftest.err
31122 rm -f conftest.er1
31123 cat conftest.err >&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); } &&
31126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31130 esac
31131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; } &&
31136 { ac_try='test -s conftest$ac_exeext'
31137 { (case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31140 esac
31141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_try") 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31146 eval "$as_ac_var=yes"
31147 else
31148 echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31151 eval "$as_ac_var=no"
31154 rm -f core conftest.err conftest.$ac_objext \
31155 conftest$ac_exeext conftest.$ac_ext
31157 ac_res=`eval echo '${'$as_ac_var'}'`
31158 { echo "$as_me:$LINENO: result: $ac_res" >&5
31159 echo "${ECHO_T}$ac_res" >&6; }
31160 if test `eval echo '${'$as_ac_var'}'` = yes; then
31161 cat >>confdefs.h <<_ACEOF
31162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31163 _ACEOF
31166 done
31168 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31169 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31170 if test "${llvm_cv_c_printf_a+set}" = set; then
31171 echo $ECHO_N "(cached) $ECHO_C" >&6
31172 else
31173 ac_ext=c
31174 ac_cpp='$CPP $CPPFLAGS'
31175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31179 if test "$cross_compiling" = yes; then
31180 llvmac_cv_c_printf_a=no
31181 else
31182 cat >conftest.$ac_ext <<_ACEOF
31184 /* confdefs.h. */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h. */
31190 #include <stdio.h>
31191 #include <stdlib.h>
31194 main ()
31197 volatile double A, B;
31198 char Buffer[100];
31199 A = 1;
31200 A /= 10.0;
31201 sprintf(Buffer, "%a", A);
31202 B = atof(Buffer);
31203 if (A != B)
31204 return (1);
31205 if (A != 0x1.999999999999ap-4)
31206 return (1);
31207 return (0);
31209 return 0;
31211 _ACEOF
31212 rm -f conftest$ac_exeext
31213 if { (ac_try="$ac_link"
31214 case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31217 esac
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_link") 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31223 { (case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226 esac
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; }; then
31232 llvm_cv_c_printf_a=yes
31233 else
31234 echo "$as_me: program exited with status $ac_status" >&5
31235 echo "$as_me: failed program was:" >&5
31236 sed 's/^/| /' conftest.$ac_ext >&5
31238 ( exit $ac_status )
31239 llvmac_cv_c_printf_a=no
31241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31245 ac_ext=c
31246 ac_cpp='$CPP $CPPFLAGS'
31247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31252 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31253 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31254 if test "$llvm_cv_c_printf_a" = "yes"; then
31256 cat >>confdefs.h <<\_ACEOF
31257 #define HAVE_PRINTF_A 1
31258 _ACEOF
31262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31263 # for constant arguments. Useless!
31264 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31265 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31266 if test "${ac_cv_working_alloca_h+set}" = set; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31268 else
31269 cat >conftest.$ac_ext <<_ACEOF
31270 /* confdefs.h. */
31271 _ACEOF
31272 cat confdefs.h >>conftest.$ac_ext
31273 cat >>conftest.$ac_ext <<_ACEOF
31274 /* end confdefs.h. */
31275 #include <alloca.h>
31277 main ()
31279 char *p = (char *) alloca (2 * sizeof (int));
31280 if (p) return 0;
31282 return 0;
31284 _ACEOF
31285 rm -f conftest.$ac_objext conftest$ac_exeext
31286 if { (ac_try="$ac_link"
31287 case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31290 esac
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_link") 2>conftest.er1
31293 ac_status=$?
31294 grep -v '^ *+' conftest.er1 >conftest.err
31295 rm -f conftest.er1
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
31299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303 esac
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31306 ac_status=$?
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
31309 { ac_try='test -s conftest$ac_exeext'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31313 esac
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
31319 ac_cv_working_alloca_h=yes
31320 else
31321 echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31324 ac_cv_working_alloca_h=no
31327 rm -f core conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
31330 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31331 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31332 if test $ac_cv_working_alloca_h = yes; then
31334 cat >>confdefs.h <<\_ACEOF
31335 #define HAVE_ALLOCA_H 1
31336 _ACEOF
31340 { echo "$as_me:$LINENO: checking for alloca" >&5
31341 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31342 if test "${ac_cv_func_alloca_works+set}" = set; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31344 else
31345 cat >conftest.$ac_ext <<_ACEOF
31346 /* confdefs.h. */
31347 _ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h. */
31351 #ifdef __GNUC__
31352 # define alloca __builtin_alloca
31353 #else
31354 # ifdef _MSC_VER
31355 # include <malloc.h>
31356 # define alloca _alloca
31357 # else
31358 # if HAVE_ALLOCA_H
31359 # include <alloca.h>
31360 # else
31361 # ifdef _AIX
31362 #pragma alloca
31363 # else
31364 # ifndef alloca /* predefined by HP cc +Olibcalls */
31365 char *alloca ();
31366 # endif
31367 # endif
31368 # endif
31369 # endif
31370 #endif
31373 main ()
31375 char *p = (char *) alloca (1);
31376 if (p) return 0;
31378 return 0;
31380 _ACEOF
31381 rm -f conftest.$ac_objext conftest$ac_exeext
31382 if { (ac_try="$ac_link"
31383 case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31386 esac
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_link") 2>conftest.er1
31389 ac_status=$?
31390 grep -v '^ *+' conftest.er1 >conftest.err
31391 rm -f conftest.er1
31392 cat conftest.err >&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
31395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31399 esac
31400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; } &&
31405 { ac_try='test -s conftest$ac_exeext'
31406 { (case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31409 esac
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_try") 2>&5
31412 ac_status=$?
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; }; then
31415 ac_cv_func_alloca_works=yes
31416 else
31417 echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31420 ac_cv_func_alloca_works=no
31423 rm -f core conftest.err conftest.$ac_objext \
31424 conftest$ac_exeext conftest.$ac_ext
31426 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31427 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31429 if test $ac_cv_func_alloca_works = yes; then
31431 cat >>confdefs.h <<\_ACEOF
31432 #define HAVE_ALLOCA 1
31433 _ACEOF
31435 else
31436 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31437 # that cause trouble. Some versions do not even contain alloca or
31438 # contain a buggy version. If you still want to use their alloca,
31439 # use ar to extract alloca.o from them instead of compiling alloca.c.
31441 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31443 cat >>confdefs.h <<\_ACEOF
31444 #define C_ALLOCA 1
31445 _ACEOF
31448 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31449 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31450 if test "${ac_cv_os_cray+set}" = set; then
31451 echo $ECHO_N "(cached) $ECHO_C" >&6
31452 else
31453 cat >conftest.$ac_ext <<_ACEOF
31454 /* confdefs.h. */
31455 _ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h. */
31459 #if defined CRAY && ! defined CRAY2
31460 webecray
31461 #else
31462 wenotbecray
31463 #endif
31465 _ACEOF
31466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31467 $EGREP "webecray" >/dev/null 2>&1; then
31468 ac_cv_os_cray=yes
31469 else
31470 ac_cv_os_cray=no
31472 rm -f conftest*
31475 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31476 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31477 if test $ac_cv_os_cray = yes; then
31478 for ac_func in _getb67 GETB67 getb67; do
31479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31483 echo $ECHO_N "(cached) $ECHO_C" >&6
31484 else
31485 cat >conftest.$ac_ext <<_ACEOF
31486 /* confdefs.h. */
31487 _ACEOF
31488 cat confdefs.h >>conftest.$ac_ext
31489 cat >>conftest.$ac_ext <<_ACEOF
31490 /* end confdefs.h. */
31491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31493 #define $ac_func innocuous_$ac_func
31495 /* System header to define __stub macros and hopefully few prototypes,
31496 which can conflict with char $ac_func (); below.
31497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31498 <limits.h> exists even on freestanding compilers. */
31500 #ifdef __STDC__
31501 # include <limits.h>
31502 #else
31503 # include <assert.h>
31504 #endif
31506 #undef $ac_func
31508 /* Override any GCC internal prototype to avoid an error.
31509 Use char because int might match the return type of a GCC
31510 builtin and then its argument prototype would still apply. */
31511 #ifdef __cplusplus
31512 extern "C"
31513 #endif
31514 char $ac_func ();
31515 /* The GNU C library defines this for functions which it implements
31516 to always fail with ENOSYS. Some functions are actually named
31517 something starting with __ and the normal name is an alias. */
31518 #if defined __stub_$ac_func || defined __stub___$ac_func
31519 choke me
31520 #endif
31523 main ()
31525 return $ac_func ();
31527 return 0;
31529 _ACEOF
31530 rm -f conftest.$ac_objext conftest$ac_exeext
31531 if { (ac_try="$ac_link"
31532 case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535 esac
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_link") 2>conftest.er1
31538 ac_status=$?
31539 grep -v '^ *+' conftest.er1 >conftest.err
31540 rm -f conftest.er1
31541 cat conftest.err >&5
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); } &&
31544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31545 { (case "(($ac_try" in
31546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31547 *) ac_try_echo=$ac_try;;
31548 esac
31549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31550 (eval "$ac_try") 2>&5
31551 ac_status=$?
31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); }; } &&
31554 { ac_try='test -s conftest$ac_exeext'
31555 { (case "(($ac_try" in
31556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31558 esac
31559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_try") 2>&5
31561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; }; then
31564 eval "$as_ac_var=yes"
31565 else
31566 echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31569 eval "$as_ac_var=no"
31572 rm -f core conftest.err conftest.$ac_objext \
31573 conftest$ac_exeext conftest.$ac_ext
31575 ac_res=`eval echo '${'$as_ac_var'}'`
31576 { echo "$as_me:$LINENO: result: $ac_res" >&5
31577 echo "${ECHO_T}$ac_res" >&6; }
31578 if test `eval echo '${'$as_ac_var'}'` = yes; then
31580 cat >>confdefs.h <<_ACEOF
31581 #define CRAY_STACKSEG_END $ac_func
31582 _ACEOF
31584 break
31587 done
31590 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31591 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31592 if test "${ac_cv_c_stack_direction+set}" = set; then
31593 echo $ECHO_N "(cached) $ECHO_C" >&6
31594 else
31595 if test "$cross_compiling" = yes; then
31596 ac_cv_c_stack_direction=0
31597 else
31598 cat >conftest.$ac_ext <<_ACEOF
31599 /* confdefs.h. */
31600 _ACEOF
31601 cat confdefs.h >>conftest.$ac_ext
31602 cat >>conftest.$ac_ext <<_ACEOF
31603 /* end confdefs.h. */
31604 $ac_includes_default
31606 find_stack_direction ()
31608 static char *addr = 0;
31609 auto char dummy;
31610 if (addr == 0)
31612 addr = &dummy;
31613 return find_stack_direction ();
31615 else
31616 return (&dummy > addr) ? 1 : -1;
31620 main ()
31622 return find_stack_direction () < 0;
31624 _ACEOF
31625 rm -f conftest$ac_exeext
31626 if { (ac_try="$ac_link"
31627 case "(($ac_try" in
31628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629 *) ac_try_echo=$ac_try;;
31630 esac
31631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632 (eval "$ac_link") 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31636 { (case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31639 esac
31640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_try") 2>&5
31642 ac_status=$?
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); }; }; then
31645 ac_cv_c_stack_direction=1
31646 else
31647 echo "$as_me: program exited with status $ac_status" >&5
31648 echo "$as_me: failed program was:" >&5
31649 sed 's/^/| /' conftest.$ac_ext >&5
31651 ( exit $ac_status )
31652 ac_cv_c_stack_direction=-1
31654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31659 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31660 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31662 cat >>confdefs.h <<_ACEOF
31663 #define STACK_DIRECTION $ac_cv_c_stack_direction
31664 _ACEOF
31670 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31671 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31672 if test "${ac_cv_func_rand48+set}" = set; then
31673 echo $ECHO_N "(cached) $ECHO_C" >&6
31674 else
31675 ac_ext=cpp
31676 ac_cpp='$CXXCPP $CPPFLAGS'
31677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31681 cat >conftest.$ac_ext <<_ACEOF
31682 /* confdefs.h. */
31683 _ACEOF
31684 cat confdefs.h >>conftest.$ac_ext
31685 cat >>conftest.$ac_ext <<_ACEOF
31686 /* end confdefs.h. */
31687 #include <stdlib.h>
31689 main ()
31691 srand48(0);lrand48();drand48();
31693 return 0;
31695 _ACEOF
31696 rm -f conftest.$ac_objext
31697 if { (ac_try="$ac_compile"
31698 case "(($ac_try" in
31699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700 *) ac_try_echo=$ac_try;;
31701 esac
31702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_compile") 2>conftest.er1
31704 ac_status=$?
31705 grep -v '^ *+' conftest.er1 >conftest.err
31706 rm -f conftest.er1
31707 cat conftest.err >&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } &&
31710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31711 { (case "(($ac_try" in
31712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713 *) ac_try_echo=$ac_try;;
31714 esac
31715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716 (eval "$ac_try") 2>&5
31717 ac_status=$?
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; } &&
31720 { ac_try='test -s conftest.$ac_objext'
31721 { (case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724 esac
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
31727 ac_status=$?
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; }; then
31730 ac_cv_func_rand48=yes
31731 else
31732 echo "$as_me: failed program was:" >&5
31733 sed 's/^/| /' conftest.$ac_ext >&5
31735 ac_cv_func_rand48=no
31738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31739 ac_ext=c
31740 ac_cpp='$CPP $CPPFLAGS'
31741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31746 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31747 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31749 if test "$ac_cv_func_rand48" = "yes" ; then
31751 cat >>confdefs.h <<\_ACEOF
31752 #define HAVE_RAND48 1
31753 _ACEOF
31758 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31759 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31760 if test "${ac_cv_cxx_namespaces+set}" = set; then
31761 echo $ECHO_N "(cached) $ECHO_C" >&6
31762 else
31763 ac_ext=cpp
31764 ac_cpp='$CXXCPP $CPPFLAGS'
31765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31769 cat >conftest.$ac_ext <<_ACEOF
31770 /* confdefs.h. */
31771 _ACEOF
31772 cat confdefs.h >>conftest.$ac_ext
31773 cat >>conftest.$ac_ext <<_ACEOF
31774 /* end confdefs.h. */
31775 namespace Outer { namespace Inner { int i = 0; }}
31777 main ()
31779 using namespace Outer::Inner; return i;
31781 return 0;
31783 _ACEOF
31784 rm -f conftest.$ac_objext
31785 if { (ac_try="$ac_compile"
31786 case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31789 esac
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_compile") 2>conftest.er1
31792 ac_status=$?
31793 grep -v '^ *+' conftest.er1 >conftest.err
31794 rm -f conftest.er1
31795 cat conftest.err >&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); } &&
31798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31799 { (case "(($ac_try" in
31800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31801 *) ac_try_echo=$ac_try;;
31802 esac
31803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31804 (eval "$ac_try") 2>&5
31805 ac_status=$?
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); }; } &&
31808 { ac_try='test -s conftest.$ac_objext'
31809 { (case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31812 esac
31813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
31815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; }; then
31818 ac_cv_cxx_namespaces=yes
31819 else
31820 echo "$as_me: failed program was:" >&5
31821 sed 's/^/| /' conftest.$ac_ext >&5
31823 ac_cv_cxx_namespaces=no
31826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31827 ac_ext=c
31828 ac_cpp='$CPP $CPPFLAGS'
31829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31835 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31836 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31837 if test "$ac_cv_cxx_namespaces" = yes; then
31839 cat >>confdefs.h <<\_ACEOF
31840 #define HAVE_NAMESPACES
31841 _ACEOF
31845 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31846 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31847 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849 else
31851 ac_ext=cpp
31852 ac_cpp='$CXXCPP $CPPFLAGS'
31853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31857 cat >conftest.$ac_ext <<_ACEOF
31858 /* confdefs.h. */
31859 _ACEOF
31860 cat confdefs.h >>conftest.$ac_ext
31861 cat >>conftest.$ac_ext <<_ACEOF
31862 /* end confdefs.h. */
31863 #include <ext/hash_map>
31864 #ifdef HAVE_NAMESPACES
31865 using namespace std;
31866 #endif
31868 main ()
31870 hash_map<int, int> t;
31872 return 0;
31874 _ACEOF
31875 rm -f conftest.$ac_objext
31876 if { (ac_try="$ac_compile"
31877 case "(($ac_try" in
31878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31879 *) ac_try_echo=$ac_try;;
31880 esac
31881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31882 (eval "$ac_compile") 2>conftest.er1
31883 ac_status=$?
31884 grep -v '^ *+' conftest.er1 >conftest.err
31885 rm -f conftest.er1
31886 cat conftest.err >&5
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); } &&
31889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31890 { (case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31893 esac
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895 (eval "$ac_try") 2>&5
31896 ac_status=$?
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); }; } &&
31899 { ac_try='test -s conftest.$ac_objext'
31900 { (case "(($ac_try" in
31901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902 *) ac_try_echo=$ac_try;;
31903 esac
31904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905 (eval "$ac_try") 2>&5
31906 ac_status=$?
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }; }; then
31909 ac_cv_cxx_have_std_ext_hash_map=yes
31910 else
31911 echo "$as_me: failed program was:" >&5
31912 sed 's/^/| /' conftest.$ac_ext >&5
31914 ac_cv_cxx_have_std_ext_hash_map=no
31917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31918 ac_ext=c
31919 ac_cpp='$CPP $CPPFLAGS'
31920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31925 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31926 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31927 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31928 then
31930 cat >>confdefs.h <<\_ACEOF
31931 #define HAVE_STD_EXT_HASH_MAP 1
31932 _ACEOF
31934 else
31936 cat >>confdefs.h <<\_ACEOF
31937 #define HAVE_STD_EXT_HASH_MAP 0
31938 _ACEOF
31942 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31943 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31944 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31945 echo $ECHO_N "(cached) $ECHO_C" >&6
31946 else
31948 ac_ext=cpp
31949 ac_cpp='$CXXCPP $CPPFLAGS'
31950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31954 cat >conftest.$ac_ext <<_ACEOF
31955 /* confdefs.h. */
31956 _ACEOF
31957 cat confdefs.h >>conftest.$ac_ext
31958 cat >>conftest.$ac_ext <<_ACEOF
31959 /* end confdefs.h. */
31960 #include <ext/hash_map>
31961 #ifdef HAVE_NAMESPACES
31962 using namespace __gnu_cxx;
31963 #endif
31965 main ()
31967 hash_map<int,int> t;
31969 return 0;
31971 _ACEOF
31972 rm -f conftest.$ac_objext
31973 if { (ac_try="$ac_compile"
31974 case "(($ac_try" in
31975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976 *) ac_try_echo=$ac_try;;
31977 esac
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979 (eval "$ac_compile") 2>conftest.er1
31980 ac_status=$?
31981 grep -v '^ *+' conftest.er1 >conftest.err
31982 rm -f conftest.er1
31983 cat conftest.err >&5
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
31986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31987 { (case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31990 esac
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_try") 2>&5
31993 ac_status=$?
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; } &&
31996 { ac_try='test -s conftest.$ac_objext'
31997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32000 esac
32001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
32003 ac_status=$?
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; }; then
32006 ac_cv_cxx_have_gnu_ext_hash_map=yes
32007 else
32008 echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32011 ac_cv_cxx_have_gnu_ext_hash_map=no
32014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32015 ac_ext=c
32016 ac_cpp='$CPP $CPPFLAGS'
32017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32022 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32023 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32024 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32025 then
32027 cat >>confdefs.h <<\_ACEOF
32028 #define HAVE_GNU_EXT_HASH_MAP 1
32029 _ACEOF
32031 else
32033 cat >>confdefs.h <<\_ACEOF
32034 #define HAVE_GNU_EXT_HASH_MAP 0
32035 _ACEOF
32039 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32040 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32041 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32042 echo $ECHO_N "(cached) $ECHO_C" >&6
32043 else
32045 ac_ext=cpp
32046 ac_cpp='$CXXCPP $CPPFLAGS'
32047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32051 cat >conftest.$ac_ext <<_ACEOF
32052 /* confdefs.h. */
32053 _ACEOF
32054 cat confdefs.h >>conftest.$ac_ext
32055 cat >>conftest.$ac_ext <<_ACEOF
32056 /* end confdefs.h. */
32057 #include <hash_map>
32059 main ()
32061 hash_map<int,int> t;
32063 return 0;
32065 _ACEOF
32066 rm -f conftest.$ac_objext
32067 if { (ac_try="$ac_compile"
32068 case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32071 esac
32072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_compile") 2>conftest.er1
32074 ac_status=$?
32075 grep -v '^ *+' conftest.er1 >conftest.err
32076 rm -f conftest.er1
32077 cat conftest.err >&5
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); } &&
32080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32081 { (case "(($ac_try" in
32082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32083 *) ac_try_echo=$ac_try;;
32084 esac
32085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32086 (eval "$ac_try") 2>&5
32087 ac_status=$?
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; } &&
32090 { ac_try='test -s conftest.$ac_objext'
32091 { (case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32094 esac
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_try") 2>&5
32097 ac_status=$?
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; }; then
32100 ac_cv_cxx_have_global_hash_map=yes
32101 else
32102 echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32105 ac_cv_cxx_have_global_hash_map=no
32108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32109 ac_ext=c
32110 ac_cpp='$CPP $CPPFLAGS'
32111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32116 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32117 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32118 if test "$ac_cv_cxx_have_global_hash_map" = yes
32119 then
32121 cat >>confdefs.h <<\_ACEOF
32122 #define HAVE_GLOBAL_HASH_MAP 1
32123 _ACEOF
32125 else
32127 cat >>confdefs.h <<\_ACEOF
32128 #define HAVE_GLOBAL_HASH_MAP 0
32129 _ACEOF
32133 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32134 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32135 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32136 echo $ECHO_N "(cached) $ECHO_C" >&6
32137 else
32139 ac_ext=cpp
32140 ac_cpp='$CXXCPP $CPPFLAGS'
32141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32145 cat >conftest.$ac_ext <<_ACEOF
32146 /* confdefs.h. */
32147 _ACEOF
32148 cat confdefs.h >>conftest.$ac_ext
32149 cat >>conftest.$ac_ext <<_ACEOF
32150 /* end confdefs.h. */
32151 #include <ext/hash_set>
32152 #ifdef HAVE_NAMESPACES
32153 using namespace std;
32154 #endif
32156 main ()
32158 hash_set<int> t;
32160 return 0;
32162 _ACEOF
32163 rm -f conftest.$ac_objext
32164 if { (ac_try="$ac_compile"
32165 case "(($ac_try" in
32166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32167 *) ac_try_echo=$ac_try;;
32168 esac
32169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32170 (eval "$ac_compile") 2>conftest.er1
32171 ac_status=$?
32172 grep -v '^ *+' conftest.er1 >conftest.err
32173 rm -f conftest.er1
32174 cat conftest.err >&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); } &&
32177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32178 { (case "(($ac_try" in
32179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32180 *) ac_try_echo=$ac_try;;
32181 esac
32182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32183 (eval "$ac_try") 2>&5
32184 ac_status=$?
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); }; } &&
32187 { ac_try='test -s conftest.$ac_objext'
32188 { (case "(($ac_try" in
32189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190 *) ac_try_echo=$ac_try;;
32191 esac
32192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193 (eval "$ac_try") 2>&5
32194 ac_status=$?
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); }; }; then
32197 ac_cv_cxx_have_std_ext_hash_set=yes
32198 else
32199 echo "$as_me: failed program was:" >&5
32200 sed 's/^/| /' conftest.$ac_ext >&5
32202 ac_cv_cxx_have_std_ext_hash_set=no
32205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206 ac_ext=c
32207 ac_cpp='$CPP $CPPFLAGS'
32208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32213 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32214 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32215 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32216 then
32218 cat >>confdefs.h <<\_ACEOF
32219 #define HAVE_STD_EXT_HASH_SET 1
32220 _ACEOF
32222 else
32224 cat >>confdefs.h <<\_ACEOF
32225 #define HAVE_STD_EXT_HASH_SET 0
32226 _ACEOF
32230 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32231 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32232 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32234 else
32236 ac_ext=cpp
32237 ac_cpp='$CXXCPP $CPPFLAGS'
32238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32242 cat >conftest.$ac_ext <<_ACEOF
32243 /* confdefs.h. */
32244 _ACEOF
32245 cat confdefs.h >>conftest.$ac_ext
32246 cat >>conftest.$ac_ext <<_ACEOF
32247 /* end confdefs.h. */
32248 #include <ext/hash_set>
32249 #ifdef HAVE_NAMESPACES
32250 using namespace __gnu_cxx;
32251 #endif
32253 main ()
32255 hash_set<int> t;
32257 return 0;
32259 _ACEOF
32260 rm -f conftest.$ac_objext
32261 if { (ac_try="$ac_compile"
32262 case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32265 esac
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_compile") 2>conftest.er1
32268 ac_status=$?
32269 grep -v '^ *+' conftest.er1 >conftest.err
32270 rm -f conftest.er1
32271 cat conftest.err >&5
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } &&
32274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32275 { (case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32278 esac
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_try") 2>&5
32281 ac_status=$?
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); }; } &&
32284 { ac_try='test -s conftest.$ac_objext'
32285 { (case "(($ac_try" in
32286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287 *) ac_try_echo=$ac_try;;
32288 esac
32289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290 (eval "$ac_try") 2>&5
32291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32294 ac_cv_cxx_have_gnu_ext_hash_set=yes
32295 else
32296 echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32299 ac_cv_cxx_have_gnu_ext_hash_set=no
32302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32303 ac_ext=c
32304 ac_cpp='$CPP $CPPFLAGS'
32305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32310 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32311 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32312 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32313 then
32315 cat >>confdefs.h <<\_ACEOF
32316 #define HAVE_GNU_EXT_HASH_SET 1
32317 _ACEOF
32319 else
32321 cat >>confdefs.h <<\_ACEOF
32322 #define HAVE_GNU_EXT_HASH_SET 0
32323 _ACEOF
32327 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32328 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32329 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32331 else
32333 ac_ext=cpp
32334 ac_cpp='$CXXCPP $CPPFLAGS'
32335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32339 cat >conftest.$ac_ext <<_ACEOF
32340 /* confdefs.h. */
32341 _ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h. */
32345 #include <hash_set>
32347 main ()
32349 hash_set<int> t; return 0;
32351 return 0;
32353 _ACEOF
32354 rm -f conftest.$ac_objext
32355 if { (ac_try="$ac_compile"
32356 case "(($ac_try" in
32357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358 *) ac_try_echo=$ac_try;;
32359 esac
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_compile") 2>conftest.er1
32362 ac_status=$?
32363 grep -v '^ *+' conftest.er1 >conftest.err
32364 rm -f conftest.er1
32365 cat conftest.err >&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } &&
32368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32369 { (case "(($ac_try" in
32370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371 *) ac_try_echo=$ac_try;;
32372 esac
32373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374 (eval "$ac_try") 2>&5
32375 ac_status=$?
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; } &&
32378 { ac_try='test -s conftest.$ac_objext'
32379 { (case "(($ac_try" in
32380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381 *) ac_try_echo=$ac_try;;
32382 esac
32383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384 (eval "$ac_try") 2>&5
32385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; }; then
32388 ac_cv_cxx_have_global_hash_set=yes
32389 else
32390 echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32393 ac_cv_cxx_have_global_hash_set=no
32396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32397 ac_ext=c
32398 ac_cpp='$CPP $CPPFLAGS'
32399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32404 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32405 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32406 if test "$ac_cv_cxx_have_global_hash_set" = yes
32407 then
32409 cat >>confdefs.h <<\_ACEOF
32410 #define HAVE_GLOBAL_HASH_SET 1
32411 _ACEOF
32413 else
32415 cat >>confdefs.h <<\_ACEOF
32416 #define HAVE_GLOBAL_HASH_SET 0
32417 _ACEOF
32421 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32422 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32423 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32424 echo $ECHO_N "(cached) $ECHO_C" >&6
32425 else
32427 ac_ext=cpp
32428 ac_cpp='$CXXCPP $CPPFLAGS'
32429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32433 cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h. */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32439 #include <iterator>
32440 #ifdef HAVE_NAMESPACES
32441 using namespace std;
32442 #endif
32444 main ()
32446 iterator<int,int,int> t; return 0;
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_cxx_have_std_iterator=yes
32486 else
32487 echo "$as_me: failed program was:" >&5
32488 sed 's/^/| /' conftest.$ac_ext >&5
32490 ac_cv_cxx_have_std_iterator=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
32502 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32503 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32504 if test "$ac_cv_cxx_have_std_iterator" = yes
32505 then
32507 cat >>confdefs.h <<\_ACEOF
32508 #define HAVE_STD_ITERATOR 1
32509 _ACEOF
32511 else
32513 cat >>confdefs.h <<\_ACEOF
32514 #define HAVE_STD_ITERATOR 0
32515 _ACEOF
32519 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32520 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32521 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32522 echo $ECHO_N "(cached) $ECHO_C" >&6
32523 else
32525 ac_ext=cpp
32526 ac_cpp='$CXXCPP $CPPFLAGS'
32527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32531 cat >conftest.$ac_ext <<_ACEOF
32532 /* confdefs.h. */
32533 _ACEOF
32534 cat confdefs.h >>conftest.$ac_ext
32535 cat >>conftest.$ac_ext <<_ACEOF
32536 /* end confdefs.h. */
32537 #include <iterator>
32538 #ifdef HAVE_NAMESPACES
32539 using namespace std;
32540 #endif
32542 main ()
32544 bidirectional_iterator<int,int> t; return 0;
32546 return 0;
32548 _ACEOF
32549 rm -f conftest.$ac_objext
32550 if { (ac_try="$ac_compile"
32551 case "(($ac_try" in
32552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32553 *) ac_try_echo=$ac_try;;
32554 esac
32555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32556 (eval "$ac_compile") 2>conftest.er1
32557 ac_status=$?
32558 grep -v '^ *+' conftest.er1 >conftest.err
32559 rm -f conftest.er1
32560 cat conftest.err >&5
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); } &&
32563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32564 { (case "(($ac_try" in
32565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566 *) ac_try_echo=$ac_try;;
32567 esac
32568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32569 (eval "$ac_try") 2>&5
32570 ac_status=$?
32571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32572 (exit $ac_status); }; } &&
32573 { ac_try='test -s conftest.$ac_objext'
32574 { (case "(($ac_try" in
32575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576 *) ac_try_echo=$ac_try;;
32577 esac
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579 (eval "$ac_try") 2>&5
32580 ac_status=$?
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); }; }; then
32583 ac_cv_cxx_have_bi_iterator=yes
32584 else
32585 echo "$as_me: failed program was:" >&5
32586 sed 's/^/| /' conftest.$ac_ext >&5
32588 ac_cv_cxx_have_bi_iterator=no
32591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32592 ac_ext=c
32593 ac_cpp='$CPP $CPPFLAGS'
32594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32600 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32601 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32602 if test "$ac_cv_cxx_have_bi_iterator" = yes
32603 then
32605 cat >>confdefs.h <<\_ACEOF
32606 #define HAVE_BI_ITERATOR 1
32607 _ACEOF
32609 else
32611 cat >>confdefs.h <<\_ACEOF
32612 #define HAVE_BI_ITERATOR 0
32613 _ACEOF
32617 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32618 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32619 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32620 echo $ECHO_N "(cached) $ECHO_C" >&6
32621 else
32623 ac_ext=cpp
32624 ac_cpp='$CXXCPP $CPPFLAGS'
32625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32629 cat >conftest.$ac_ext <<_ACEOF
32630 /* confdefs.h. */
32631 _ACEOF
32632 cat confdefs.h >>conftest.$ac_ext
32633 cat >>conftest.$ac_ext <<_ACEOF
32634 /* end confdefs.h. */
32635 #include <iterator>
32636 #ifdef HAVE_NAMESPACES
32637 using namespace std;
32638 #endif
32640 main ()
32642 forward_iterator<int,int> t; return 0;
32644 return 0;
32646 _ACEOF
32647 rm -f conftest.$ac_objext
32648 if { (ac_try="$ac_compile"
32649 case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32652 esac
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_compile") 2>conftest.er1
32655 ac_status=$?
32656 grep -v '^ *+' conftest.er1 >conftest.err
32657 rm -f conftest.er1
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } &&
32661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32662 { (case "(($ac_try" in
32663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32664 *) ac_try_echo=$ac_try;;
32665 esac
32666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32667 (eval "$ac_try") 2>&5
32668 ac_status=$?
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); }; } &&
32671 { ac_try='test -s conftest.$ac_objext'
32672 { (case "(($ac_try" in
32673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32675 esac
32676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_try") 2>&5
32678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; }; then
32681 ac_cv_cxx_have_fwd_iterator=yes
32682 else
32683 echo "$as_me: failed program was:" >&5
32684 sed 's/^/| /' conftest.$ac_ext >&5
32686 ac_cv_cxx_have_fwd_iterator=no
32689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32690 ac_ext=c
32691 ac_cpp='$CPP $CPPFLAGS'
32692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32698 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32699 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32700 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32701 then
32703 cat >>confdefs.h <<\_ACEOF
32704 #define HAVE_FWD_ITERATOR 1
32705 _ACEOF
32707 else
32709 cat >>confdefs.h <<\_ACEOF
32710 #define HAVE_FWD_ITERATOR 0
32711 _ACEOF
32716 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32717 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32718 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32719 echo $ECHO_N "(cached) $ECHO_C" >&6
32720 else
32721 ac_ext=cpp
32722 ac_cpp='$CXXCPP $CPPFLAGS'
32723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32727 cat >conftest.$ac_ext <<_ACEOF
32728 /* confdefs.h. */
32729 _ACEOF
32730 cat confdefs.h >>conftest.$ac_ext
32731 cat >>conftest.$ac_ext <<_ACEOF
32732 /* end confdefs.h. */
32733 #include <math.h>
32735 main ()
32737 float f; isnan(f);
32739 return 0;
32741 _ACEOF
32742 rm -f conftest.$ac_objext
32743 if { (ac_try="$ac_compile"
32744 case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32747 esac
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_compile") 2>conftest.er1
32750 ac_status=$?
32751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
32753 cat conftest.err >&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } &&
32756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32757 { (case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32760 esac
32761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_try") 2>&5
32763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; } &&
32766 { ac_try='test -s conftest.$ac_objext'
32767 { (case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32770 esac
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_try") 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 ac_cv_func_isnan_in_math_h=yes
32777 else
32778 echo "$as_me: failed program was:" >&5
32779 sed 's/^/| /' conftest.$ac_ext >&5
32781 ac_cv_func_isnan_in_math_h=no
32784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32785 ac_ext=c
32786 ac_cpp='$CPP $CPPFLAGS'
32787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32792 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32793 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32796 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32798 cat >>confdefs.h <<\_ACEOF
32799 #define HAVE_ISNAN_IN_MATH_H 1
32800 _ACEOF
32804 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32805 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32806 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32807 echo $ECHO_N "(cached) $ECHO_C" >&6
32808 else
32809 ac_ext=cpp
32810 ac_cpp='$CXXCPP $CPPFLAGS'
32811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32815 cat >conftest.$ac_ext <<_ACEOF
32816 /* confdefs.h. */
32817 _ACEOF
32818 cat confdefs.h >>conftest.$ac_ext
32819 cat >>conftest.$ac_ext <<_ACEOF
32820 /* end confdefs.h. */
32821 #include <cmath>
32823 main ()
32825 float f; isnan(f);
32827 return 0;
32829 _ACEOF
32830 rm -f conftest.$ac_objext
32831 if { (ac_try="$ac_compile"
32832 case "(($ac_try" in
32833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32834 *) ac_try_echo=$ac_try;;
32835 esac
32836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32837 (eval "$ac_compile") 2>conftest.er1
32838 ac_status=$?
32839 grep -v '^ *+' conftest.er1 >conftest.err
32840 rm -f conftest.er1
32841 cat conftest.err >&5
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); } &&
32844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32845 { (case "(($ac_try" in
32846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32847 *) ac_try_echo=$ac_try;;
32848 esac
32849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32850 (eval "$ac_try") 2>&5
32851 ac_status=$?
32852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32853 (exit $ac_status); }; } &&
32854 { ac_try='test -s conftest.$ac_objext'
32855 { (case "(($ac_try" in
32856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32857 *) ac_try_echo=$ac_try;;
32858 esac
32859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32860 (eval "$ac_try") 2>&5
32861 ac_status=$?
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32864 ac_cv_func_isnan_in_cmath=yes
32865 else
32866 echo "$as_me: failed program was:" >&5
32867 sed 's/^/| /' conftest.$ac_ext >&5
32869 ac_cv_func_isnan_in_cmath=no
32872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32873 ac_ext=c
32874 ac_cpp='$CPP $CPPFLAGS'
32875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32880 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32881 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32883 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32885 cat >>confdefs.h <<\_ACEOF
32886 #define HAVE_ISNAN_IN_CMATH 1
32887 _ACEOF
32891 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32892 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32893 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32895 else
32896 ac_ext=cpp
32897 ac_cpp='$CXXCPP $CPPFLAGS'
32898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32902 cat >conftest.$ac_ext <<_ACEOF
32903 /* confdefs.h. */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32908 #include <cmath>
32910 main ()
32912 float f; std::isnan(f);
32914 return 0;
32916 _ACEOF
32917 rm -f conftest.$ac_objext
32918 if { (ac_try="$ac_compile"
32919 case "(($ac_try" in
32920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32921 *) ac_try_echo=$ac_try;;
32922 esac
32923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32924 (eval "$ac_compile") 2>conftest.er1
32925 ac_status=$?
32926 grep -v '^ *+' conftest.er1 >conftest.err
32927 rm -f conftest.er1
32928 cat conftest.err >&5
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); } &&
32931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32932 { (case "(($ac_try" in
32933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934 *) ac_try_echo=$ac_try;;
32935 esac
32936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937 (eval "$ac_try") 2>&5
32938 ac_status=$?
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); }; } &&
32941 { ac_try='test -s conftest.$ac_objext'
32942 { (case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32945 esac
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_try") 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 ac_cv_func_std_isnan_in_cmath=yes
32952 else
32953 echo "$as_me: failed program was:" >&5
32954 sed 's/^/| /' conftest.$ac_ext >&5
32956 ac_cv_func_std_isnan_in_cmath=no
32959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32960 ac_ext=c
32961 ac_cpp='$CPP $CPPFLAGS'
32962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32967 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32968 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32970 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32972 cat >>confdefs.h <<\_ACEOF
32973 #define HAVE_STD_ISNAN_IN_CMATH 1
32974 _ACEOF
32979 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32980 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32981 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32983 else
32984 ac_ext=cpp
32985 ac_cpp='$CXXCPP $CPPFLAGS'
32986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32990 cat >conftest.$ac_ext <<_ACEOF
32991 /* confdefs.h. */
32992 _ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h. */
32996 #include <math.h>
32998 main ()
33000 float f; isinf(f);
33002 return 0;
33004 _ACEOF
33005 rm -f conftest.$ac_objext
33006 if { (ac_try="$ac_compile"
33007 case "(($ac_try" in
33008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009 *) ac_try_echo=$ac_try;;
33010 esac
33011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012 (eval "$ac_compile") 2>conftest.er1
33013 ac_status=$?
33014 grep -v '^ *+' conftest.er1 >conftest.err
33015 rm -f conftest.er1
33016 cat conftest.err >&5
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); } &&
33019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33020 { (case "(($ac_try" in
33021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022 *) ac_try_echo=$ac_try;;
33023 esac
33024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025 (eval "$ac_try") 2>&5
33026 ac_status=$?
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; } &&
33029 { ac_try='test -s conftest.$ac_objext'
33030 { (case "(($ac_try" in
33031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032 *) ac_try_echo=$ac_try;;
33033 esac
33034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035 (eval "$ac_try") 2>&5
33036 ac_status=$?
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); }; }; then
33039 ac_cv_func_isinf_in_math_h=yes
33040 else
33041 echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.$ac_ext >&5
33044 ac_cv_func_isinf_in_math_h=no
33047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33048 ac_ext=c
33049 ac_cpp='$CPP $CPPFLAGS'
33050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33055 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33056 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33058 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33060 cat >>confdefs.h <<\_ACEOF
33061 #define HAVE_ISINF_IN_MATH_H 1
33062 _ACEOF
33066 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33067 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33068 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33069 echo $ECHO_N "(cached) $ECHO_C" >&6
33070 else
33071 ac_ext=cpp
33072 ac_cpp='$CXXCPP $CPPFLAGS'
33073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33077 cat >conftest.$ac_ext <<_ACEOF
33078 /* confdefs.h. */
33079 _ACEOF
33080 cat confdefs.h >>conftest.$ac_ext
33081 cat >>conftest.$ac_ext <<_ACEOF
33082 /* end confdefs.h. */
33083 #include <cmath>
33085 main ()
33087 float f; isinf(f);
33089 return 0;
33091 _ACEOF
33092 rm -f conftest.$ac_objext
33093 if { (ac_try="$ac_compile"
33094 case "(($ac_try" in
33095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33096 *) ac_try_echo=$ac_try;;
33097 esac
33098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33099 (eval "$ac_compile") 2>conftest.er1
33100 ac_status=$?
33101 grep -v '^ *+' conftest.er1 >conftest.err
33102 rm -f conftest.er1
33103 cat conftest.err >&5
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); } &&
33106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33107 { (case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33110 esac
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_try") 2>&5
33113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; } &&
33116 { ac_try='test -s conftest.$ac_objext'
33117 { (case "(($ac_try" in
33118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33119 *) ac_try_echo=$ac_try;;
33120 esac
33121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33122 (eval "$ac_try") 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; }; then
33126 ac_cv_func_isinf_in_cmath=yes
33127 else
33128 echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33131 ac_cv_func_isinf_in_cmath=no
33134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33135 ac_ext=c
33136 ac_cpp='$CPP $CPPFLAGS'
33137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33142 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33143 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33145 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33147 cat >>confdefs.h <<\_ACEOF
33148 #define HAVE_ISINF_IN_CMATH 1
33149 _ACEOF
33153 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33154 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33155 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33156 echo $ECHO_N "(cached) $ECHO_C" >&6
33157 else
33158 ac_ext=cpp
33159 ac_cpp='$CXXCPP $CPPFLAGS'
33160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33164 cat >conftest.$ac_ext <<_ACEOF
33165 /* confdefs.h. */
33166 _ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h. */
33170 #include <cmath>
33172 main ()
33174 float f; std::isinf(f)}
33176 return 0;
33178 _ACEOF
33179 rm -f conftest.$ac_objext
33180 if { (ac_try="$ac_compile"
33181 case "(($ac_try" in
33182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183 *) ac_try_echo=$ac_try;;
33184 esac
33185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186 (eval "$ac_compile") 2>conftest.er1
33187 ac_status=$?
33188 grep -v '^ *+' conftest.er1 >conftest.err
33189 rm -f conftest.er1
33190 cat conftest.err >&5
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); } &&
33193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33194 { (case "(($ac_try" in
33195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33197 esac
33198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_try") 2>&5
33200 ac_status=$?
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; } &&
33203 { ac_try='test -s conftest.$ac_objext'
33204 { (case "(($ac_try" in
33205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33206 *) ac_try_echo=$ac_try;;
33207 esac
33208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33209 (eval "$ac_try") 2>&5
33210 ac_status=$?
33211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212 (exit $ac_status); }; }; then
33213 ac_cv_func_std_isinf_in_cmath=yes
33214 else
33215 echo "$as_me: failed program was:" >&5
33216 sed 's/^/| /' conftest.$ac_ext >&5
33218 ac_cv_func_std_isinf_in_cmath=no
33221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33222 ac_ext=c
33223 ac_cpp='$CPP $CPPFLAGS'
33224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33229 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33230 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33232 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33234 cat >>confdefs.h <<\_ACEOF
33235 #define HAVE_STD_ISINF_IN_CMATH 1
33236 _ACEOF
33240 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33241 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33242 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33243 echo $ECHO_N "(cached) $ECHO_C" >&6
33244 else
33245 ac_ext=cpp
33246 ac_cpp='$CXXCPP $CPPFLAGS'
33247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33251 cat >conftest.$ac_ext <<_ACEOF
33252 /* confdefs.h. */
33253 _ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h. */
33257 #include <ieeefp.h>
33259 main ()
33261 float f; finite(f);
33263 return 0;
33265 _ACEOF
33266 rm -f conftest.$ac_objext
33267 if { (ac_try="$ac_compile"
33268 case "(($ac_try" in
33269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33270 *) ac_try_echo=$ac_try;;
33271 esac
33272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33273 (eval "$ac_compile") 2>conftest.er1
33274 ac_status=$?
33275 grep -v '^ *+' conftest.er1 >conftest.err
33276 rm -f conftest.er1
33277 cat conftest.err >&5
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } &&
33280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33281 { (case "(($ac_try" in
33282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33284 esac
33285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286 (eval "$ac_try") 2>&5
33287 ac_status=$?
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; } &&
33290 { ac_try='test -s conftest.$ac_objext'
33291 { (case "(($ac_try" in
33292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293 *) ac_try_echo=$ac_try;;
33294 esac
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296 (eval "$ac_try") 2>&5
33297 ac_status=$?
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
33300 ac_cv_func_finite_in_ieeefp_h=yes
33301 else
33302 echo "$as_me: failed program was:" >&5
33303 sed 's/^/| /' conftest.$ac_ext >&5
33305 ac_cv_func_finite_in_ieeefp_h=no
33308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33309 ac_ext=c
33310 ac_cpp='$CPP $CPPFLAGS'
33311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33316 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33317 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33319 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33321 cat >>confdefs.h <<\_ACEOF
33322 #define HAVE_FINITE_IN_IEEEFP_H 1
33323 _ACEOF
33329 if test "$llvm_cv_platform_type" = "Unix" ; then
33332 for ac_header in stdlib.h unistd.h
33334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33339 echo $ECHO_N "(cached) $ECHO_C" >&6
33341 ac_res=`eval echo '${'$as_ac_Header'}'`
33342 { echo "$as_me:$LINENO: result: $ac_res" >&5
33343 echo "${ECHO_T}$ac_res" >&6; }
33344 else
33345 # Is the header compilable?
33346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33348 cat >conftest.$ac_ext <<_ACEOF
33349 /* confdefs.h. */
33350 _ACEOF
33351 cat confdefs.h >>conftest.$ac_ext
33352 cat >>conftest.$ac_ext <<_ACEOF
33353 /* end confdefs.h. */
33354 $ac_includes_default
33355 #include <$ac_header>
33356 _ACEOF
33357 rm -f conftest.$ac_objext
33358 if { (ac_try="$ac_compile"
33359 case "(($ac_try" in
33360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361 *) ac_try_echo=$ac_try;;
33362 esac
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364 (eval "$ac_compile") 2>conftest.er1
33365 ac_status=$?
33366 grep -v '^ *+' conftest.er1 >conftest.err
33367 rm -f conftest.er1
33368 cat conftest.err >&5
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); } &&
33371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33372 { (case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33375 esac
33376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_try") 2>&5
33378 ac_status=$?
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; } &&
33381 { ac_try='test -s conftest.$ac_objext'
33382 { (case "(($ac_try" in
33383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33384 *) ac_try_echo=$ac_try;;
33385 esac
33386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33387 (eval "$ac_try") 2>&5
33388 ac_status=$?
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); }; }; then
33391 ac_header_compiler=yes
33392 else
33393 echo "$as_me: failed program was:" >&5
33394 sed 's/^/| /' conftest.$ac_ext >&5
33396 ac_header_compiler=no
33399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33401 echo "${ECHO_T}$ac_header_compiler" >&6; }
33403 # Is the header present?
33404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33406 cat >conftest.$ac_ext <<_ACEOF
33407 /* confdefs.h. */
33408 _ACEOF
33409 cat confdefs.h >>conftest.$ac_ext
33410 cat >>conftest.$ac_ext <<_ACEOF
33411 /* end confdefs.h. */
33412 #include <$ac_header>
33413 _ACEOF
33414 if { (ac_try="$ac_cpp conftest.$ac_ext"
33415 case "(($ac_try" in
33416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417 *) ac_try_echo=$ac_try;;
33418 esac
33419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33421 ac_status=$?
33422 grep -v '^ *+' conftest.er1 >conftest.err
33423 rm -f conftest.er1
33424 cat conftest.err >&5
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); } >/dev/null; then
33427 if test -s conftest.err; then
33428 ac_cpp_err=$ac_c_preproc_warn_flag
33429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33430 else
33431 ac_cpp_err=
33433 else
33434 ac_cpp_err=yes
33436 if test -z "$ac_cpp_err"; then
33437 ac_header_preproc=yes
33438 else
33439 echo "$as_me: failed program was:" >&5
33440 sed 's/^/| /' conftest.$ac_ext >&5
33442 ac_header_preproc=no
33445 rm -f conftest.err conftest.$ac_ext
33446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33447 echo "${ECHO_T}$ac_header_preproc" >&6; }
33449 # So? What about this header?
33450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33451 yes:no: )
33452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33456 ac_header_preproc=yes
33458 no:yes:* )
33459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33471 ( cat <<\_ASBOX
33472 ## ----------------------------------- ##
33473 ## Report this to llvmbugs@cs.uiuc.edu ##
33474 ## ----------------------------------- ##
33475 _ASBOX
33476 ) | sed "s/^/$as_me: WARNING: /" >&2
33478 esac
33479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33482 echo $ECHO_N "(cached) $ECHO_C" >&6
33483 else
33484 eval "$as_ac_Header=\$ac_header_preproc"
33486 ac_res=`eval echo '${'$as_ac_Header'}'`
33487 { echo "$as_me:$LINENO: result: $ac_res" >&5
33488 echo "${ECHO_T}$ac_res" >&6; }
33491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33492 cat >>confdefs.h <<_ACEOF
33493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33494 _ACEOF
33498 done
33501 for ac_func in getpagesize
33503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33508 else
33509 cat >conftest.$ac_ext <<_ACEOF
33510 /* confdefs.h. */
33511 _ACEOF
33512 cat confdefs.h >>conftest.$ac_ext
33513 cat >>conftest.$ac_ext <<_ACEOF
33514 /* end confdefs.h. */
33515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33517 #define $ac_func innocuous_$ac_func
33519 /* System header to define __stub macros and hopefully few prototypes,
33520 which can conflict with char $ac_func (); below.
33521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33522 <limits.h> exists even on freestanding compilers. */
33524 #ifdef __STDC__
33525 # include <limits.h>
33526 #else
33527 # include <assert.h>
33528 #endif
33530 #undef $ac_func
33532 /* Override any GCC internal prototype to avoid an error.
33533 Use char because int might match the return type of a GCC
33534 builtin and then its argument prototype would still apply. */
33535 #ifdef __cplusplus
33536 extern "C"
33537 #endif
33538 char $ac_func ();
33539 /* The GNU C library defines this for functions which it implements
33540 to always fail with ENOSYS. Some functions are actually named
33541 something starting with __ and the normal name is an alias. */
33542 #if defined __stub_$ac_func || defined __stub___$ac_func
33543 choke me
33544 #endif
33547 main ()
33549 return $ac_func ();
33551 return 0;
33553 _ACEOF
33554 rm -f conftest.$ac_objext conftest$ac_exeext
33555 if { (ac_try="$ac_link"
33556 case "(($ac_try" in
33557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558 *) ac_try_echo=$ac_try;;
33559 esac
33560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561 (eval "$ac_link") 2>conftest.er1
33562 ac_status=$?
33563 grep -v '^ *+' conftest.er1 >conftest.err
33564 rm -f conftest.er1
33565 cat conftest.err >&5
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); } &&
33568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33569 { (case "(($ac_try" in
33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571 *) ac_try_echo=$ac_try;;
33572 esac
33573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574 (eval "$ac_try") 2>&5
33575 ac_status=$?
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; } &&
33578 { ac_try='test -s conftest$ac_exeext'
33579 { (case "(($ac_try" in
33580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581 *) ac_try_echo=$ac_try;;
33582 esac
33583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584 (eval "$ac_try") 2>&5
33585 ac_status=$?
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); }; }; then
33588 eval "$as_ac_var=yes"
33589 else
33590 echo "$as_me: failed program was:" >&5
33591 sed 's/^/| /' conftest.$ac_ext >&5
33593 eval "$as_ac_var=no"
33596 rm -f core conftest.err conftest.$ac_objext \
33597 conftest$ac_exeext conftest.$ac_ext
33599 ac_res=`eval echo '${'$as_ac_var'}'`
33600 { echo "$as_me:$LINENO: result: $ac_res" >&5
33601 echo "${ECHO_T}$ac_res" >&6; }
33602 if test `eval echo '${'$as_ac_var'}'` = yes; then
33603 cat >>confdefs.h <<_ACEOF
33604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33605 _ACEOF
33608 done
33610 { echo "$as_me:$LINENO: checking for working mmap" >&5
33611 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33612 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614 else
33615 if test "$cross_compiling" = yes; then
33616 ac_cv_func_mmap_fixed_mapped=no
33617 else
33618 cat >conftest.$ac_ext <<_ACEOF
33619 /* confdefs.h. */
33620 _ACEOF
33621 cat confdefs.h >>conftest.$ac_ext
33622 cat >>conftest.$ac_ext <<_ACEOF
33623 /* end confdefs.h. */
33624 $ac_includes_default
33625 /* malloc might have been renamed as rpl_malloc. */
33626 #undef malloc
33628 /* Thanks to Mike Haertel and Jim Avera for this test.
33629 Here is a matrix of mmap possibilities:
33630 mmap private not fixed
33631 mmap private fixed at somewhere currently unmapped
33632 mmap private fixed at somewhere already mapped
33633 mmap shared not fixed
33634 mmap shared fixed at somewhere currently unmapped
33635 mmap shared fixed at somewhere already mapped
33636 For private mappings, we should verify that changes cannot be read()
33637 back from the file, nor mmap's back from the file at a different
33638 address. (There have been systems where private was not correctly
33639 implemented like the infamous i386 svr4.0, and systems where the
33640 VM page cache was not coherent with the file system buffer cache
33641 like early versions of FreeBSD and possibly contemporary NetBSD.)
33642 For shared mappings, we should conversely verify that changes get
33643 propagated back to all the places they're supposed to be.
33645 Grep wants private fixed already mapped.
33646 The main things grep needs to know about mmap are:
33647 * does it exist and is it safe to write into the mmap'd area
33648 * how to use it (BSD variants) */
33650 #include <fcntl.h>
33651 #include <sys/mman.h>
33653 #if !STDC_HEADERS && !HAVE_STDLIB_H
33654 char *malloc ();
33655 #endif
33657 /* This mess was copied from the GNU getpagesize.h. */
33658 #if !HAVE_GETPAGESIZE
33659 /* Assume that all systems that can run configure have sys/param.h. */
33660 # if !HAVE_SYS_PARAM_H
33661 # define HAVE_SYS_PARAM_H 1
33662 # endif
33664 # ifdef _SC_PAGESIZE
33665 # define getpagesize() sysconf(_SC_PAGESIZE)
33666 # else /* no _SC_PAGESIZE */
33667 # if HAVE_SYS_PARAM_H
33668 # include <sys/param.h>
33669 # ifdef EXEC_PAGESIZE
33670 # define getpagesize() EXEC_PAGESIZE
33671 # else /* no EXEC_PAGESIZE */
33672 # ifdef NBPG
33673 # define getpagesize() NBPG * CLSIZE
33674 # ifndef CLSIZE
33675 # define CLSIZE 1
33676 # endif /* no CLSIZE */
33677 # else /* no NBPG */
33678 # ifdef NBPC
33679 # define getpagesize() NBPC
33680 # else /* no NBPC */
33681 # ifdef PAGESIZE
33682 # define getpagesize() PAGESIZE
33683 # endif /* PAGESIZE */
33684 # endif /* no NBPC */
33685 # endif /* no NBPG */
33686 # endif /* no EXEC_PAGESIZE */
33687 # else /* no HAVE_SYS_PARAM_H */
33688 # define getpagesize() 8192 /* punt totally */
33689 # endif /* no HAVE_SYS_PARAM_H */
33690 # endif /* no _SC_PAGESIZE */
33692 #endif /* no HAVE_GETPAGESIZE */
33695 main ()
33697 char *data, *data2, *data3;
33698 int i, pagesize;
33699 int fd;
33701 pagesize = getpagesize ();
33703 /* First, make a file with some known garbage in it. */
33704 data = (char *) malloc (pagesize);
33705 if (!data)
33706 return 1;
33707 for (i = 0; i < pagesize; ++i)
33708 *(data + i) = rand ();
33709 umask (0);
33710 fd = creat ("conftest.mmap", 0600);
33711 if (fd < 0)
33712 return 1;
33713 if (write (fd, data, pagesize) != pagesize)
33714 return 1;
33715 close (fd);
33717 /* Next, try to mmap the file at a fixed address which already has
33718 something else allocated at it. If we can, also make sure that
33719 we see the same garbage. */
33720 fd = open ("conftest.mmap", O_RDWR);
33721 if (fd < 0)
33722 return 1;
33723 data2 = (char *) malloc (2 * pagesize);
33724 if (!data2)
33725 return 1;
33726 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33727 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33728 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33729 return 1;
33730 for (i = 0; i < pagesize; ++i)
33731 if (*(data + i) != *(data2 + i))
33732 return 1;
33734 /* Finally, make sure that changes to the mapped area do not
33735 percolate back to the file as seen by read(). (This is a bug on
33736 some variants of i386 svr4.0.) */
33737 for (i = 0; i < pagesize; ++i)
33738 *(data2 + i) = *(data2 + i) + 1;
33739 data3 = (char *) malloc (pagesize);
33740 if (!data3)
33741 return 1;
33742 if (read (fd, data3, pagesize) != pagesize)
33743 return 1;
33744 for (i = 0; i < pagesize; ++i)
33745 if (*(data + i) != *(data3 + i))
33746 return 1;
33747 close (fd);
33748 return 0;
33750 _ACEOF
33751 rm -f conftest$ac_exeext
33752 if { (ac_try="$ac_link"
33753 case "(($ac_try" in
33754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755 *) ac_try_echo=$ac_try;;
33756 esac
33757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758 (eval "$ac_link") 2>&5
33759 ac_status=$?
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33762 { (case "(($ac_try" in
33763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33764 *) ac_try_echo=$ac_try;;
33765 esac
33766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33767 (eval "$ac_try") 2>&5
33768 ac_status=$?
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; }; then
33771 ac_cv_func_mmap_fixed_mapped=yes
33772 else
33773 echo "$as_me: program exited with status $ac_status" >&5
33774 echo "$as_me: failed program was:" >&5
33775 sed 's/^/| /' conftest.$ac_ext >&5
33777 ( exit $ac_status )
33778 ac_cv_func_mmap_fixed_mapped=no
33780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33785 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33786 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33787 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33789 cat >>confdefs.h <<\_ACEOF
33790 #define HAVE_MMAP 1
33791 _ACEOF
33794 rm -f conftest.mmap
33796 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33797 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33798 if test "${ac_cv_func_mmap_file+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33800 else
33801 ac_ext=c
33802 ac_cpp='$CPP $CPPFLAGS'
33803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33807 if test "$cross_compiling" = yes; then
33808 ac_cv_func_mmap_file=no
33809 else
33810 cat >conftest.$ac_ext <<_ACEOF
33812 /* confdefs.h. */
33813 _ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h. */
33818 #include <sys/types.h>
33819 #include <sys/mman.h>
33820 #include <fcntl.h>
33823 main ()
33826 int fd;
33827 fd = creat ("foo",0777);
33828 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33829 unlink ("foo");
33830 return (fd != (int) MAP_FAILED);
33832 return 0;
33834 _ACEOF
33835 rm -f conftest$ac_exeext
33836 if { (ac_try="$ac_link"
33837 case "(($ac_try" in
33838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33840 esac
33841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_link") 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33846 { (case "(($ac_try" in
33847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848 *) ac_try_echo=$ac_try;;
33849 esac
33850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851 (eval "$ac_try") 2>&5
33852 ac_status=$?
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; }; then
33855 ac_cv_func_mmap_file=yes
33856 else
33857 echo "$as_me: program exited with status $ac_status" >&5
33858 echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33861 ( exit $ac_status )
33862 ac_cv_func_mmap_file=no
33864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33868 ac_ext=c
33869 ac_cpp='$CPP $CPPFLAGS'
33870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33876 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33877 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33878 if test "$ac_cv_func_mmap_file" = yes; then
33880 cat >>confdefs.h <<\_ACEOF
33881 #define HAVE_MMAP_FILE
33882 _ACEOF
33884 MMAP_FILE=yes
33888 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33889 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33890 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33891 echo $ECHO_N "(cached) $ECHO_C" >&6
33892 else
33893 if test "$llvm_cv_os_type" = "Interix" ; then
33894 ac_cv_need_dev_zero_for_mmap=yes
33895 else
33896 ac_cv_need_dev_zero_for_mmap=no
33900 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33901 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33902 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33904 cat >>confdefs.h <<\_ACEOF
33905 #define NEED_DEV_ZERO_FOR_MMAP 1
33906 _ACEOF
33910 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33911 then
33912 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33913 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33915 if test "$ac_cv_func_mmap_file" = "no"
33916 then
33917 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33918 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33924 for ac_func in __dso_handle
33926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33931 else
33932 cat >conftest.$ac_ext <<_ACEOF
33933 /* confdefs.h. */
33934 _ACEOF
33935 cat confdefs.h >>conftest.$ac_ext
33936 cat >>conftest.$ac_ext <<_ACEOF
33937 /* end confdefs.h. */
33938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33940 #define $ac_func innocuous_$ac_func
33942 /* System header to define __stub macros and hopefully few prototypes,
33943 which can conflict with char $ac_func (); below.
33944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33945 <limits.h> exists even on freestanding compilers. */
33947 #ifdef __STDC__
33948 # include <limits.h>
33949 #else
33950 # include <assert.h>
33951 #endif
33953 #undef $ac_func
33955 /* Override any GCC internal prototype to avoid an error.
33956 Use char because int might match the return type of a GCC
33957 builtin and then its argument prototype would still apply. */
33958 #ifdef __cplusplus
33959 extern "C"
33960 #endif
33961 char $ac_func ();
33962 /* The GNU C library defines this for functions which it implements
33963 to always fail with ENOSYS. Some functions are actually named
33964 something starting with __ and the normal name is an alias. */
33965 #if defined __stub_$ac_func || defined __stub___$ac_func
33966 choke me
33967 #endif
33970 main ()
33972 return $ac_func ();
33974 return 0;
33976 _ACEOF
33977 rm -f conftest.$ac_objext conftest$ac_exeext
33978 if { (ac_try="$ac_link"
33979 case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33982 esac
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_link") 2>conftest.er1
33985 ac_status=$?
33986 grep -v '^ *+' conftest.er1 >conftest.err
33987 rm -f conftest.er1
33988 cat conftest.err >&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); } &&
33991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33992 { (case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33995 esac
33996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_try") 2>&5
33998 ac_status=$?
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; } &&
34001 { ac_try='test -s conftest$ac_exeext'
34002 { (case "(($ac_try" in
34003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34004 *) ac_try_echo=$ac_try;;
34005 esac
34006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34007 (eval "$ac_try") 2>&5
34008 ac_status=$?
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); }; }; then
34011 eval "$as_ac_var=yes"
34012 else
34013 echo "$as_me: failed program was:" >&5
34014 sed 's/^/| /' conftest.$ac_ext >&5
34016 eval "$as_ac_var=no"
34019 rm -f core conftest.err conftest.$ac_objext \
34020 conftest$ac_exeext conftest.$ac_ext
34022 ac_res=`eval echo '${'$as_ac_var'}'`
34023 { echo "$as_me:$LINENO: result: $ac_res" >&5
34024 echo "${ECHO_T}$ac_res" >&6; }
34025 if test `eval echo '${'$as_ac_var'}'` = yes; then
34026 cat >>confdefs.h <<_ACEOF
34027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34028 _ACEOF
34031 done
34034 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34035 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34036 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34038 else
34039 llvm_cv_llvmgcc_sanity="no"
34040 if test -x "$LLVMGCC" ; then
34041 cp /dev/null conftest.c
34042 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34043 grep 'target datalayout =' > /dev/null 2>&1
34044 if test $? -eq 0 ; then
34045 llvm_cv_llvmgcc_sanity="yes"
34047 rm conftest.c
34050 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34051 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34053 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34054 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34055 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34056 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34057 LLVMCC1=$llvmcc1path
34059 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34060 LLVMCC1PLUS=$llvmcc1pluspath
34062 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34063 LLVMGCCDIR=$llvmgccdir
34065 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34066 LLVMGCCLIBEXEC=$llvmgcclibexec
34068 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34069 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34070 LLVMGCC_VERSION=$llvmgccversion
34072 LLVMGCC_MAJVERS=$llvmgccmajvers
34074 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34075 LLVMGCC_LANGS=$llvmgcclangs
34077 { echo "$as_me:$LINENO: result: ok" >&5
34078 echo "${ECHO_T}ok" >&6; }
34081 SHLIBEXT=$libltdl_cv_shlibext
34084 # Translate the various configuration directories and other basic
34085 # information into substitutions that will end up in Makefile.config.in
34086 # that these configured values can be used by the makefiles
34087 if test "${prefix}" = "NONE" ; then
34088 prefix="/usr/local"
34090 eval LLVM_PREFIX="${prefix}";
34091 eval LLVM_BINDIR="${prefix}/bin";
34092 eval LLVM_LIBDIR="${prefix}/lib";
34093 eval LLVM_DATADIR="${prefix}/share/llvm";
34094 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34095 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34096 eval LLVM_INCLUDEDIR="${prefix}/include";
34097 eval LLVM_INFODIR="${prefix}/info";
34098 eval LLVM_MANDIR="${prefix}/man";
34099 LLVM_CONFIGTIME=`date`
34111 # Place the various directores into the config.h file as #defines so that we
34112 # can know about the installation paths within LLVM.
34114 cat >>confdefs.h <<_ACEOF
34115 #define LLVM_PREFIX "$LLVM_PREFIX"
34116 _ACEOF
34119 cat >>confdefs.h <<_ACEOF
34120 #define LLVM_BINDIR "$LLVM_BINDIR"
34121 _ACEOF
34124 cat >>confdefs.h <<_ACEOF
34125 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34126 _ACEOF
34129 cat >>confdefs.h <<_ACEOF
34130 #define LLVM_DATADIR "$LLVM_DATADIR"
34131 _ACEOF
34134 cat >>confdefs.h <<_ACEOF
34135 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34136 _ACEOF
34139 cat >>confdefs.h <<_ACEOF
34140 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34141 _ACEOF
34144 cat >>confdefs.h <<_ACEOF
34145 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34146 _ACEOF
34149 cat >>confdefs.h <<_ACEOF
34150 #define LLVM_INFODIR "$LLVM_INFODIR"
34151 _ACEOF
34154 cat >>confdefs.h <<_ACEOF
34155 #define LLVM_MANDIR "$LLVM_MANDIR"
34156 _ACEOF
34159 cat >>confdefs.h <<_ACEOF
34160 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34161 _ACEOF
34164 # Determine which bindings to build.
34165 if test "$BINDINGS_TO_BUILD" = auto ; then
34166 BINDINGS_TO_BUILD=""
34167 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34168 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34171 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34174 # This isn't really configurey, but it avoids having to repeat the list in
34175 # other files.
34176 ALL_BINDINGS=ocaml
34179 # Do any work necessary to ensure that bindings have what they need.
34180 binding_prereqs_failed=0
34181 for a_binding in $BINDINGS_TO_BUILD ; do
34182 case "$a_binding" in
34183 ocaml)
34184 if test "x$OCAMLC" = x ; then
34185 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34186 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34187 binding_prereqs_failed=1
34189 if test "x$OCAMLDEP" = x ; then
34190 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34191 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34192 binding_prereqs_failed=1
34194 if test "x$OCAMLOPT" = x ; then
34195 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34196 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34198 if test "x$with_ocaml_libdir" != xauto ; then
34199 OCAML_LIBDIR=$with_ocaml_libdir
34201 else
34202 ocaml_stdlib="`"$OCAMLC" -where`"
34203 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34204 then
34205 # ocaml stdlib is beneath our prefix; use stdlib
34206 OCAML_LIBDIR=$ocaml_stdlib
34208 else
34209 # ocaml stdlib is outside our prefix; use libdir/ocaml
34210 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34215 esac
34216 done
34217 if test "$binding_prereqs_failed" = 1 ; then
34218 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34219 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34220 { (exit 1); exit 1; }; }
34225 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34227 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34229 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34231 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34233 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34236 ac_config_files="$ac_config_files Makefile.config"
34239 ac_config_files="$ac_config_files llvm.spec"
34242 ac_config_files="$ac_config_files docs/doxygen.cfg"
34245 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34248 ac_config_commands="$ac_config_commands setup"
34250 ac_config_commands="$ac_config_commands Makefile"
34253 ac_config_commands="$ac_config_commands Makefile.common"
34256 ac_config_commands="$ac_config_commands examples/Makefile"
34259 ac_config_commands="$ac_config_commands lib/Makefile"
34262 ac_config_commands="$ac_config_commands runtime/Makefile"
34265 ac_config_commands="$ac_config_commands test/Makefile"
34268 ac_config_commands="$ac_config_commands test/Makefile.tests"
34271 ac_config_commands="$ac_config_commands tools/Makefile"
34274 ac_config_commands="$ac_config_commands utils/Makefile"
34277 ac_config_commands="$ac_config_commands projects/Makefile"
34280 ac_config_commands="$ac_config_commands bindings/Makefile"
34283 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34287 cat >confcache <<\_ACEOF
34288 # This file is a shell script that caches the results of configure
34289 # tests run on this system so they can be shared between configure
34290 # scripts and configure runs, see configure's option --config-cache.
34291 # It is not useful on other systems. If it contains results you don't
34292 # want to keep, you may remove or edit it.
34294 # config.status only pays attention to the cache file if you give it
34295 # the --recheck option to rerun configure.
34297 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34298 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34299 # following values.
34301 _ACEOF
34303 # The following way of writing the cache mishandles newlines in values,
34304 # but we know of no workaround that is simple, portable, and efficient.
34305 # So, we kill variables containing newlines.
34306 # Ultrix sh set writes to stderr and can't be redirected directly,
34307 # and sets the high bit in the cache file unless we assign to the vars.
34309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34310 eval ac_val=\$$ac_var
34311 case $ac_val in #(
34312 *${as_nl}*)
34313 case $ac_var in #(
34314 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34315 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34316 esac
34317 case $ac_var in #(
34318 _ | IFS | as_nl) ;; #(
34319 *) $as_unset $ac_var ;;
34320 esac ;;
34321 esac
34322 done
34324 (set) 2>&1 |
34325 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34326 *${as_nl}ac_space=\ *)
34327 # `set' does not quote correctly, so add quotes (double-quote
34328 # substitution turns \\\\ into \\, and sed turns \\ into \).
34329 sed -n \
34330 "s/'/'\\\\''/g;
34331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34332 ;; #(
34334 # `set' quotes correctly as required by POSIX, so do not add quotes.
34335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34337 esac |
34338 sort
34340 sed '
34341 /^ac_cv_env_/b end
34342 t clear
34343 :clear
34344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34345 t end
34346 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34347 :end' >>confcache
34348 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34349 if test -w "$cache_file"; then
34350 test "x$cache_file" != "x/dev/null" &&
34351 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34352 echo "$as_me: updating cache $cache_file" >&6;}
34353 cat confcache >$cache_file
34354 else
34355 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34356 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34359 rm -f confcache
34361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34362 # Let make expand exec_prefix.
34363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34365 DEFS=-DHAVE_CONFIG_H
34367 ac_libobjs=
34368 ac_ltlibobjs=
34369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34370 # 1. Remove the extension, and $U if already installed.
34371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34372 ac_i=`echo "$ac_i" | sed "$ac_script"`
34373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34374 # will be set to the directory where LIBOBJS objects are built.
34375 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34376 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34377 done
34378 LIBOBJS=$ac_libobjs
34380 LTLIBOBJS=$ac_ltlibobjs
34383 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34384 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34385 Usually this means the macro was only invoked conditionally." >&5
34386 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34387 Usually this means the macro was only invoked conditionally." >&2;}
34388 { (exit 1); exit 1; }; }
34390 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34391 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34392 Usually this means the macro was only invoked conditionally." >&5
34393 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34394 Usually this means the macro was only invoked conditionally." >&2;}
34395 { (exit 1); exit 1; }; }
34398 : ${CONFIG_STATUS=./config.status}
34399 ac_clean_files_save=$ac_clean_files
34400 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34401 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34402 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34403 cat >$CONFIG_STATUS <<_ACEOF
34404 #! $SHELL
34405 # Generated by $as_me.
34406 # Run this file to recreate the current configuration.
34407 # Compiler output produced by configure, useful for debugging
34408 # configure, is in config.log if it exists.
34410 debug=false
34411 ac_cs_recheck=false
34412 ac_cs_silent=false
34413 SHELL=\${CONFIG_SHELL-$SHELL}
34414 _ACEOF
34416 cat >>$CONFIG_STATUS <<\_ACEOF
34417 ## --------------------- ##
34418 ## M4sh Initialization. ##
34419 ## --------------------- ##
34421 # Be Bourne compatible
34422 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34423 emulate sh
34424 NULLCMD=:
34425 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34426 # is contrary to our usage. Disable this feature.
34427 alias -g '${1+"$@"}'='"$@"'
34428 setopt NO_GLOB_SUBST
34429 else
34430 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34432 BIN_SH=xpg4; export BIN_SH # for Tru64
34433 DUALCASE=1; export DUALCASE # for MKS sh
34436 # PATH needs CR
34437 # Avoid depending upon Character Ranges.
34438 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34439 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34440 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34441 as_cr_digits='0123456789'
34442 as_cr_alnum=$as_cr_Letters$as_cr_digits
34444 # The user is always right.
34445 if test "${PATH_SEPARATOR+set}" != set; then
34446 echo "#! /bin/sh" >conf$$.sh
34447 echo "exit 0" >>conf$$.sh
34448 chmod +x conf$$.sh
34449 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34450 PATH_SEPARATOR=';'
34451 else
34452 PATH_SEPARATOR=:
34454 rm -f conf$$.sh
34457 # Support unset when possible.
34458 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34459 as_unset=unset
34460 else
34461 as_unset=false
34465 # IFS
34466 # We need space, tab and new line, in precisely that order. Quoting is
34467 # there to prevent editors from complaining about space-tab.
34468 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34469 # splitting by setting IFS to empty value.)
34470 as_nl='
34472 IFS=" "" $as_nl"
34474 # Find who we are. Look in the path if we contain no directory separator.
34475 case $0 in
34476 *[\\/]* ) as_myself=$0 ;;
34477 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34478 for as_dir in $PATH
34480 IFS=$as_save_IFS
34481 test -z "$as_dir" && as_dir=.
34482 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34483 done
34484 IFS=$as_save_IFS
34487 esac
34488 # We did not find ourselves, most probably we were run as `sh COMMAND'
34489 # in which case we are not to be found in the path.
34490 if test "x$as_myself" = x; then
34491 as_myself=$0
34493 if test ! -f "$as_myself"; then
34494 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34495 { (exit 1); exit 1; }
34498 # Work around bugs in pre-3.0 UWIN ksh.
34499 for as_var in ENV MAIL MAILPATH
34500 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34501 done
34502 PS1='$ '
34503 PS2='> '
34504 PS4='+ '
34506 # NLS nuisances.
34507 for as_var in \
34508 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34509 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34510 LC_TELEPHONE LC_TIME
34512 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34513 eval $as_var=C; export $as_var
34514 else
34515 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34517 done
34519 # Required to use basename.
34520 if expr a : '\(a\)' >/dev/null 2>&1 &&
34521 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34522 as_expr=expr
34523 else
34524 as_expr=false
34527 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34528 as_basename=basename
34529 else
34530 as_basename=false
34534 # Name of the executable.
34535 as_me=`$as_basename -- "$0" ||
34536 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34537 X"$0" : 'X\(//\)$' \| \
34538 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34539 echo X/"$0" |
34540 sed '/^.*\/\([^/][^/]*\)\/*$/{
34541 s//\1/
34544 /^X\/\(\/\/\)$/{
34545 s//\1/
34548 /^X\/\(\/\).*/{
34549 s//\1/
34552 s/.*/./; q'`
34554 # CDPATH.
34555 $as_unset CDPATH
34559 as_lineno_1=$LINENO
34560 as_lineno_2=$LINENO
34561 test "x$as_lineno_1" != "x$as_lineno_2" &&
34562 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34564 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34565 # uniformly replaced by the line number. The first 'sed' inserts a
34566 # line-number line after each line using $LINENO; the second 'sed'
34567 # does the real work. The second script uses 'N' to pair each
34568 # line-number line with the line containing $LINENO, and appends
34569 # trailing '-' during substitution so that $LINENO is not a special
34570 # case at line end.
34571 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34572 # scripts with optimization help from Paolo Bonzini. Blame Lee
34573 # E. McMahon (1931-1989) for sed's syntax. :-)
34574 sed -n '
34576 /[$]LINENO/=
34577 ' <$as_myself |
34578 sed '
34579 s/[$]LINENO.*/&-/
34580 t lineno
34582 :lineno
34584 :loop
34585 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34586 t loop
34587 s/-\n.*//
34588 ' >$as_me.lineno &&
34589 chmod +x "$as_me.lineno" ||
34590 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34591 { (exit 1); exit 1; }; }
34593 # Don't try to exec as it changes $[0], causing all sort of problems
34594 # (the dirname of $[0] is not the place where we might find the
34595 # original and so on. Autoconf is especially sensitive to this).
34596 . "./$as_me.lineno"
34597 # Exit status is that of the last command.
34598 exit
34602 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34603 as_dirname=dirname
34604 else
34605 as_dirname=false
34608 ECHO_C= ECHO_N= ECHO_T=
34609 case `echo -n x` in
34610 -n*)
34611 case `echo 'x\c'` in
34612 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34613 *) ECHO_C='\c';;
34614 esac;;
34616 ECHO_N='-n';;
34617 esac
34619 if expr a : '\(a\)' >/dev/null 2>&1 &&
34620 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34621 as_expr=expr
34622 else
34623 as_expr=false
34626 rm -f conf$$ conf$$.exe conf$$.file
34627 if test -d conf$$.dir; then
34628 rm -f conf$$.dir/conf$$.file
34629 else
34630 rm -f conf$$.dir
34631 mkdir conf$$.dir
34633 echo >conf$$.file
34634 if ln -s conf$$.file conf$$ 2>/dev/null; then
34635 as_ln_s='ln -s'
34636 # ... but there are two gotchas:
34637 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34638 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34639 # In both cases, we have to default to `cp -p'.
34640 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34641 as_ln_s='cp -p'
34642 elif ln conf$$.file conf$$ 2>/dev/null; then
34643 as_ln_s=ln
34644 else
34645 as_ln_s='cp -p'
34647 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34648 rmdir conf$$.dir 2>/dev/null
34650 if mkdir -p . 2>/dev/null; then
34651 as_mkdir_p=:
34652 else
34653 test -d ./-p && rmdir ./-p
34654 as_mkdir_p=false
34657 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34658 # systems may use methods other than mode bits to determine executability.
34659 cat >conf$$.file <<_ASEOF
34660 #! /bin/sh
34661 exit 0
34662 _ASEOF
34663 chmod +x conf$$.file
34664 if test -x conf$$.file >/dev/null 2>&1; then
34665 as_executable_p="test -x"
34666 else
34667 as_executable_p=:
34669 rm -f conf$$.file
34671 # Sed expression to map a string onto a valid CPP name.
34672 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34674 # Sed expression to map a string onto a valid variable name.
34675 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34678 exec 6>&1
34680 # Save the log message, to keep $[0] and so on meaningful, and to
34681 # report actual input values of CONFIG_FILES etc. instead of their
34682 # values after options handling.
34683 ac_log="
34684 This file was extended by llvm $as_me 2.2svn, which was
34685 generated by GNU Autoconf 2.60. Invocation command line was
34687 CONFIG_FILES = $CONFIG_FILES
34688 CONFIG_HEADERS = $CONFIG_HEADERS
34689 CONFIG_LINKS = $CONFIG_LINKS
34690 CONFIG_COMMANDS = $CONFIG_COMMANDS
34691 $ $0 $@
34693 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34696 _ACEOF
34698 cat >>$CONFIG_STATUS <<_ACEOF
34699 # Files that config.status was made for.
34700 config_files="$ac_config_files"
34701 config_headers="$ac_config_headers"
34702 config_commands="$ac_config_commands"
34704 _ACEOF
34706 cat >>$CONFIG_STATUS <<\_ACEOF
34707 ac_cs_usage="\
34708 \`$as_me' instantiates files from templates according to the
34709 current configuration.
34711 Usage: $0 [OPTIONS] [FILE]...
34713 -h, --help print this help, then exit
34714 -V, --version print version number, then exit
34715 -q, --quiet do not print progress messages
34716 -d, --debug don't remove temporary files
34717 --recheck update $as_me by reconfiguring in the same conditions
34718 --file=FILE[:TEMPLATE]
34719 instantiate the configuration file FILE
34720 --header=FILE[:TEMPLATE]
34721 instantiate the configuration header FILE
34723 Configuration files:
34724 $config_files
34726 Configuration headers:
34727 $config_headers
34729 Configuration commands:
34730 $config_commands
34732 Report bugs to <bug-autoconf@gnu.org>."
34734 _ACEOF
34735 cat >>$CONFIG_STATUS <<_ACEOF
34736 ac_cs_version="\\
34737 llvm config.status 2.2svn
34738 configured by $0, generated by GNU Autoconf 2.60,
34739 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34741 Copyright (C) 2006 Free Software Foundation, Inc.
34742 This config.status script is free software; the Free Software Foundation
34743 gives unlimited permission to copy, distribute and modify it."
34745 ac_pwd='$ac_pwd'
34746 srcdir='$srcdir'
34747 INSTALL='$INSTALL'
34748 _ACEOF
34750 cat >>$CONFIG_STATUS <<\_ACEOF
34751 # If no file are specified by the user, then we need to provide default
34752 # value. By we need to know if files were specified by the user.
34753 ac_need_defaults=:
34754 while test $# != 0
34756 case $1 in
34757 --*=*)
34758 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34759 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34760 ac_shift=:
34763 ac_option=$1
34764 ac_optarg=$2
34765 ac_shift=shift
34767 esac
34769 case $ac_option in
34770 # Handling of the options.
34771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34772 ac_cs_recheck=: ;;
34773 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34774 echo "$ac_cs_version"; exit ;;
34775 --debug | --debu | --deb | --de | --d | -d )
34776 debug=: ;;
34777 --file | --fil | --fi | --f )
34778 $ac_shift
34779 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34780 ac_need_defaults=false;;
34781 --header | --heade | --head | --hea )
34782 $ac_shift
34783 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34784 ac_need_defaults=false;;
34785 --he | --h)
34786 # Conflict between --help and --header
34787 { echo "$as_me: error: ambiguous option: $1
34788 Try \`$0 --help' for more information." >&2
34789 { (exit 1); exit 1; }; };;
34790 --help | --hel | -h )
34791 echo "$ac_cs_usage"; exit ;;
34792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34793 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34794 ac_cs_silent=: ;;
34796 # This is an error.
34797 -*) { echo "$as_me: error: unrecognized option: $1
34798 Try \`$0 --help' for more information." >&2
34799 { (exit 1); exit 1; }; } ;;
34801 *) ac_config_targets="$ac_config_targets $1"
34802 ac_need_defaults=false ;;
34804 esac
34805 shift
34806 done
34808 ac_configure_extra_args=
34810 if $ac_cs_silent; then
34811 exec 6>/dev/null
34812 ac_configure_extra_args="$ac_configure_extra_args --silent"
34815 _ACEOF
34816 cat >>$CONFIG_STATUS <<_ACEOF
34817 if \$ac_cs_recheck; then
34818 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34819 CONFIG_SHELL=$SHELL
34820 export CONFIG_SHELL
34821 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34824 _ACEOF
34825 cat >>$CONFIG_STATUS <<\_ACEOF
34826 exec 5>>config.log
34828 echo
34829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34830 ## Running $as_me. ##
34831 _ASBOX
34832 echo "$ac_log"
34833 } >&5
34835 _ACEOF
34836 cat >>$CONFIG_STATUS <<_ACEOF
34838 # INIT-COMMANDS
34840 llvm_src="${srcdir}"
34842 _ACEOF
34844 cat >>$CONFIG_STATUS <<\_ACEOF
34846 # Handling of arguments.
34847 for ac_config_target in $ac_config_targets
34849 case $ac_config_target in
34850 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34851 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34852 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34853 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34854 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34855 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34856 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34857 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34858 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34859 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34860 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34861 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34862 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34863 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34864 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34865 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34866 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34867 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34868 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34869 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34870 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34871 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34873 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34874 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34875 { (exit 1); exit 1; }; };;
34876 esac
34877 done
34880 # If the user did not use the arguments to specify the items to instantiate,
34881 # then the envvar interface is used. Set only those that are not.
34882 # We use the long form for the default assignment because of an extremely
34883 # bizarre bug on SunOS 4.1.3.
34884 if $ac_need_defaults; then
34885 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34886 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34890 # Have a temporary directory for convenience. Make it in the build tree
34891 # simply because there is no reason against having it here, and in addition,
34892 # creating and moving files from /tmp can sometimes cause problems.
34893 # Hook for its removal unless debugging.
34894 # Note that there is a small window in which the directory will not be cleaned:
34895 # after its creation but before its name has been assigned to `$tmp'.
34896 $debug ||
34898 tmp=
34899 trap 'exit_status=$?
34900 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34902 trap '{ (exit 1); exit 1; }' 1 2 13 15
34904 # Create a (secure) tmp directory for tmp files.
34907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34908 test -n "$tmp" && test -d "$tmp"
34909 } ||
34911 tmp=./conf$$-$RANDOM
34912 (umask 077 && mkdir "$tmp")
34913 } ||
34915 echo "$me: cannot create a temporary directory in ." >&2
34916 { (exit 1); exit 1; }
34920 # Set up the sed scripts for CONFIG_FILES section.
34923 # No need to generate the scripts if there are no CONFIG_FILES.
34924 # This happens for instance when ./config.status config.h
34925 if test -n "$CONFIG_FILES"; then
34927 _ACEOF
34931 ac_delim='%!_!# '
34932 for ac_last_try in false false false false false :; do
34933 cat >conf$$subs.sed <<_ACEOF
34934 SHELL!$SHELL$ac_delim
34935 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34936 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34937 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34938 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34939 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34940 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34941 exec_prefix!$exec_prefix$ac_delim
34942 prefix!$prefix$ac_delim
34943 program_transform_name!$program_transform_name$ac_delim
34944 bindir!$bindir$ac_delim
34945 sbindir!$sbindir$ac_delim
34946 libexecdir!$libexecdir$ac_delim
34947 datarootdir!$datarootdir$ac_delim
34948 datadir!$datadir$ac_delim
34949 sysconfdir!$sysconfdir$ac_delim
34950 sharedstatedir!$sharedstatedir$ac_delim
34951 localstatedir!$localstatedir$ac_delim
34952 includedir!$includedir$ac_delim
34953 oldincludedir!$oldincludedir$ac_delim
34954 docdir!$docdir$ac_delim
34955 infodir!$infodir$ac_delim
34956 htmldir!$htmldir$ac_delim
34957 dvidir!$dvidir$ac_delim
34958 pdfdir!$pdfdir$ac_delim
34959 psdir!$psdir$ac_delim
34960 libdir!$libdir$ac_delim
34961 localedir!$localedir$ac_delim
34962 mandir!$mandir$ac_delim
34963 DEFS!$DEFS$ac_delim
34964 ECHO_C!$ECHO_C$ac_delim
34965 ECHO_N!$ECHO_N$ac_delim
34966 ECHO_T!$ECHO_T$ac_delim
34967 LIBS!$LIBS$ac_delim
34968 build_alias!$build_alias$ac_delim
34969 host_alias!$host_alias$ac_delim
34970 target_alias!$target_alias$ac_delim
34971 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34972 subdirs!$subdirs$ac_delim
34973 build!$build$ac_delim
34974 build_cpu!$build_cpu$ac_delim
34975 build_vendor!$build_vendor$ac_delim
34976 build_os!$build_os$ac_delim
34977 host!$host$ac_delim
34978 host_cpu!$host_cpu$ac_delim
34979 host_vendor!$host_vendor$ac_delim
34980 host_os!$host_os$ac_delim
34981 target!$target$ac_delim
34982 target_cpu!$target_cpu$ac_delim
34983 target_vendor!$target_vendor$ac_delim
34984 target_os!$target_os$ac_delim
34985 OS!$OS$ac_delim
34986 LINKALL!$LINKALL$ac_delim
34987 NOLINKALL!$NOLINKALL$ac_delim
34988 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34989 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34990 ARCH!$ARCH$ac_delim
34991 ENDIAN!$ENDIAN$ac_delim
34992 CC!$CC$ac_delim
34993 CFLAGS!$CFLAGS$ac_delim
34994 LDFLAGS!$LDFLAGS$ac_delim
34995 CPPFLAGS!$CPPFLAGS$ac_delim
34996 ac_ct_CC!$ac_ct_CC$ac_delim
34997 EXEEXT!$EXEEXT$ac_delim
34998 OBJEXT!$OBJEXT$ac_delim
34999 CPP!$CPP$ac_delim
35000 GREP!$GREP$ac_delim
35001 EGREP!$EGREP$ac_delim
35002 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35003 BUILD_CC!$BUILD_CC$ac_delim
35004 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35005 CVSBUILD!$CVSBUILD$ac_delim
35006 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35007 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35008 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35009 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35010 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35011 JIT!$JIT$ac_delim
35012 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35013 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35014 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35015 ENABLE_PIC!$ENABLE_PIC$ac_delim
35016 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35017 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35018 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35019 CXX!$CXX$ac_delim
35020 CXXFLAGS!$CXXFLAGS$ac_delim
35021 ac_ct_CXX!$ac_ct_CXX$ac_delim
35022 LEX!$LEX$ac_delim
35023 LEXLIB!$LEXLIB$ac_delim
35024 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35025 FLEX!$FLEX$ac_delim
35026 YACC!$YACC$ac_delim
35027 YFLAGS!$YFLAGS$ac_delim
35028 BISON!$BISON$ac_delim
35029 NM!$NM$ac_delim
35030 ifGNUmake!$ifGNUmake$ac_delim
35031 _ACEOF
35033 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35034 break
35035 elif $ac_last_try; then
35036 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35037 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35038 { (exit 1); exit 1; }; }
35039 else
35040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35042 done
35044 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35045 if test -n "$ac_eof"; then
35046 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35047 ac_eof=`expr $ac_eof + 1`
35050 cat >>$CONFIG_STATUS <<_ACEOF
35051 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35053 _ACEOF
35054 sed '
35055 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35056 s/^/s,@/; s/!/@,|#_!!_#|/
35059 s/'"$ac_delim"'$/,g/; t
35060 s/$/\\/; p
35061 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35062 ' >>$CONFIG_STATUS <conf$$subs.sed
35063 rm -f conf$$subs.sed
35064 cat >>$CONFIG_STATUS <<_ACEOF
35065 CEOF$ac_eof
35066 _ACEOF
35069 ac_delim='%!_!# '
35070 for ac_last_try in false false false false false :; do
35071 cat >conf$$subs.sed <<_ACEOF
35072 LN_S!$LN_S$ac_delim
35073 CMP!$CMP$ac_delim
35074 CP!$CP$ac_delim
35075 DATE!$DATE$ac_delim
35076 FIND!$FIND$ac_delim
35077 MKDIR!$MKDIR$ac_delim
35078 MV!$MV$ac_delim
35079 RANLIB!$RANLIB$ac_delim
35080 RM!$RM$ac_delim
35081 SED!$SED$ac_delim
35082 TAR!$TAR$ac_delim
35083 BINPWD!$BINPWD$ac_delim
35084 GRAPHVIZ!$GRAPHVIZ$ac_delim
35085 DOT!$DOT$ac_delim
35086 GV!$GV$ac_delim
35087 DOTTY!$DOTTY$ac_delim
35088 PERL!$PERL$ac_delim
35089 HAVE_PERL!$HAVE_PERL$ac_delim
35090 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35091 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35092 INSTALL_DATA!$INSTALL_DATA$ac_delim
35093 BZIP2!$BZIP2$ac_delim
35094 DOXYGEN!$DOXYGEN$ac_delim
35095 GROFF!$GROFF$ac_delim
35096 GZIP!$GZIP$ac_delim
35097 POD2HTML!$POD2HTML$ac_delim
35098 POD2MAN!$POD2MAN$ac_delim
35099 RUNTEST!$RUNTEST$ac_delim
35100 TCLSH!$TCLSH$ac_delim
35101 ZIP!$ZIP$ac_delim
35102 OCAMLC!$OCAMLC$ac_delim
35103 OCAMLOPT!$OCAMLOPT$ac_delim
35104 OCAMLDEP!$OCAMLDEP$ac_delim
35105 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35106 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35107 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35108 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35109 LIBADD_DL!$LIBADD_DL$ac_delim
35110 ECHO!$ECHO$ac_delim
35111 AR!$AR$ac_delim
35112 STRIP!$STRIP$ac_delim
35113 CXXCPP!$CXXCPP$ac_delim
35114 F77!$F77$ac_delim
35115 FFLAGS!$FFLAGS$ac_delim
35116 ac_ct_F77!$ac_ct_F77$ac_delim
35117 LIBTOOL!$LIBTOOL$ac_delim
35118 LLVMGCC!$LLVMGCC$ac_delim
35119 LLVMGXX!$LLVMGXX$ac_delim
35120 USE_UDIS86!$USE_UDIS86$ac_delim
35121 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35122 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35123 ALLOCA!$ALLOCA$ac_delim
35124 MMAP_FILE!$MMAP_FILE$ac_delim
35125 LLVMCC1!$LLVMCC1$ac_delim
35126 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35127 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35128 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35129 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35130 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35131 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35132 SHLIBEXT!$SHLIBEXT$ac_delim
35133 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35134 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35135 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35136 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35137 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35138 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35139 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35140 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35141 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35142 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35143 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35144 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35145 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35146 LIBOBJS!$LIBOBJS$ac_delim
35147 LTLIBOBJS!$LTLIBOBJS$ac_delim
35148 _ACEOF
35150 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
35151 break
35152 elif $ac_last_try; then
35153 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35154 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35155 { (exit 1); exit 1; }; }
35156 else
35157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35159 done
35161 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35162 if test -n "$ac_eof"; then
35163 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35164 ac_eof=`expr $ac_eof + 1`
35167 cat >>$CONFIG_STATUS <<_ACEOF
35168 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35170 _ACEOF
35171 sed '
35172 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35173 s/^/s,@/; s/!/@,|#_!!_#|/
35176 s/'"$ac_delim"'$/,g/; t
35177 s/$/\\/; p
35178 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35179 ' >>$CONFIG_STATUS <conf$$subs.sed
35180 rm -f conf$$subs.sed
35181 cat >>$CONFIG_STATUS <<_ACEOF
35182 :end
35183 s/|#_!!_#|//g
35184 CEOF$ac_eof
35185 _ACEOF
35188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35190 # trailing colons and then remove the whole line if VPATH becomes empty
35191 # (actually we leave an empty line to preserve line numbers).
35192 if test "x$srcdir" = x.; then
35193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35194 s/:*\$(srcdir):*/:/
35195 s/:*\${srcdir}:*/:/
35196 s/:*@srcdir@:*/:/
35197 s/^\([^=]*=[ ]*\):*/\1/
35198 s/:*$//
35199 s/^[^=]*=[ ]*$//
35203 cat >>$CONFIG_STATUS <<\_ACEOF
35204 fi # test -n "$CONFIG_FILES"
35207 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35209 case $ac_tag in
35210 :[FHLC]) ac_mode=$ac_tag; continue;;
35211 esac
35212 case $ac_mode$ac_tag in
35213 :[FHL]*:*);;
35214 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35215 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35216 { (exit 1); exit 1; }; };;
35217 :[FH]-) ac_tag=-:-;;
35218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35219 esac
35220 ac_save_IFS=$IFS
35221 IFS=:
35222 set x $ac_tag
35223 IFS=$ac_save_IFS
35224 shift
35225 ac_file=$1
35226 shift
35228 case $ac_mode in
35229 :L) ac_source=$1;;
35230 :[FH])
35231 ac_file_inputs=
35232 for ac_f
35234 case $ac_f in
35235 -) ac_f="$tmp/stdin";;
35236 *) # Look for the file first in the build tree, then in the source tree
35237 # (if the path is not absolute). The absolute path cannot be DOS-style,
35238 # because $ac_f cannot contain `:'.
35239 test -f "$ac_f" ||
35240 case $ac_f in
35241 [\\/$]*) false;;
35242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35243 esac ||
35244 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35245 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35246 { (exit 1); exit 1; }; };;
35247 esac
35248 ac_file_inputs="$ac_file_inputs $ac_f"
35249 done
35251 # Let's still pretend it is `configure' which instantiates (i.e., don't
35252 # use $as_me), people would be surprised to read:
35253 # /* config.h. Generated by config.status. */
35254 configure_input="Generated from "`IFS=:
35255 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35256 if test x"$ac_file" != x-; then
35257 configure_input="$ac_file. $configure_input"
35258 { echo "$as_me:$LINENO: creating $ac_file" >&5
35259 echo "$as_me: creating $ac_file" >&6;}
35262 case $ac_tag in
35263 *:-:* | *:-) cat >"$tmp/stdin";;
35264 esac
35266 esac
35268 ac_dir=`$as_dirname -- "$ac_file" ||
35269 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35270 X"$ac_file" : 'X\(//\)[^/]' \| \
35271 X"$ac_file" : 'X\(//\)$' \| \
35272 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35273 echo X"$ac_file" |
35274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35275 s//\1/
35278 /^X\(\/\/\)[^/].*/{
35279 s//\1/
35282 /^X\(\/\/\)$/{
35283 s//\1/
35286 /^X\(\/\).*/{
35287 s//\1/
35290 s/.*/./; q'`
35291 { as_dir="$ac_dir"
35292 case $as_dir in #(
35293 -*) as_dir=./$as_dir;;
35294 esac
35295 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35296 as_dirs=
35297 while :; do
35298 case $as_dir in #(
35299 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35300 *) as_qdir=$as_dir;;
35301 esac
35302 as_dirs="'$as_qdir' $as_dirs"
35303 as_dir=`$as_dirname -- "$as_dir" ||
35304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35305 X"$as_dir" : 'X\(//\)[^/]' \| \
35306 X"$as_dir" : 'X\(//\)$' \| \
35307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35308 echo X"$as_dir" |
35309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35310 s//\1/
35313 /^X\(\/\/\)[^/].*/{
35314 s//\1/
35317 /^X\(\/\/\)$/{
35318 s//\1/
35321 /^X\(\/\).*/{
35322 s//\1/
35325 s/.*/./; q'`
35326 test -d "$as_dir" && break
35327 done
35328 test -z "$as_dirs" || eval "mkdir $as_dirs"
35329 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35330 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35331 { (exit 1); exit 1; }; }; }
35332 ac_builddir=.
35334 case "$ac_dir" in
35335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35338 # A ".." for each directory in $ac_dir_suffix.
35339 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35340 case $ac_top_builddir_sub in
35341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35343 esac ;;
35344 esac
35345 ac_abs_top_builddir=$ac_pwd
35346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35347 # for backward compatibility:
35348 ac_top_builddir=$ac_top_build_prefix
35350 case $srcdir in
35351 .) # We are building in place.
35352 ac_srcdir=.
35353 ac_top_srcdir=$ac_top_builddir_sub
35354 ac_abs_top_srcdir=$ac_pwd ;;
35355 [\\/]* | ?:[\\/]* ) # Absolute name.
35356 ac_srcdir=$srcdir$ac_dir_suffix;
35357 ac_top_srcdir=$srcdir
35358 ac_abs_top_srcdir=$srcdir ;;
35359 *) # Relative name.
35360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35361 ac_top_srcdir=$ac_top_build_prefix$srcdir
35362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35363 esac
35364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35367 case $ac_mode in
35370 # CONFIG_FILE
35373 case $INSTALL in
35374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35376 esac
35377 _ACEOF
35379 cat >>$CONFIG_STATUS <<\_ACEOF
35380 # If the template does not know about datarootdir, expand it.
35381 # FIXME: This hack should be removed a few years after 2.60.
35382 ac_datarootdir_hack=; ac_datarootdir_seen=
35384 case `sed -n '/datarootdir/ {
35388 /@datadir@/p
35389 /@docdir@/p
35390 /@infodir@/p
35391 /@localedir@/p
35392 /@mandir@/p
35393 ' $ac_file_inputs` in
35394 *datarootdir*) ac_datarootdir_seen=yes;;
35395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35396 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35397 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35398 _ACEOF
35399 cat >>$CONFIG_STATUS <<_ACEOF
35400 ac_datarootdir_hack='
35401 s&@datadir@&$datadir&g
35402 s&@docdir@&$docdir&g
35403 s&@infodir@&$infodir&g
35404 s&@localedir@&$localedir&g
35405 s&@mandir@&$mandir&g
35406 s&\\\${datarootdir}&$datarootdir&g' ;;
35407 esac
35408 _ACEOF
35410 # Neutralize VPATH when `$srcdir' = `.'.
35411 # Shell code in configure.ac might set extrasub.
35412 # FIXME: do we really want to maintain this feature?
35413 cat >>$CONFIG_STATUS <<_ACEOF
35414 sed "$ac_vpsub
35415 $extrasub
35416 _ACEOF
35417 cat >>$CONFIG_STATUS <<\_ACEOF
35419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35420 s&@configure_input@&$configure_input&;t t
35421 s&@top_builddir@&$ac_top_builddir_sub&;t t
35422 s&@srcdir@&$ac_srcdir&;t t
35423 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35424 s&@top_srcdir@&$ac_top_srcdir&;t t
35425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35426 s&@builddir@&$ac_builddir&;t t
35427 s&@abs_builddir@&$ac_abs_builddir&;t t
35428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35429 s&@INSTALL@&$ac_INSTALL&;t t
35430 $ac_datarootdir_hack
35431 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35433 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35434 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35435 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35436 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35437 which seems to be undefined. Please make sure it is defined." >&5
35438 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35439 which seems to be undefined. Please make sure it is defined." >&2;}
35441 rm -f "$tmp/stdin"
35442 case $ac_file in
35443 -) cat "$tmp/out"; rm -f "$tmp/out";;
35444 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35445 esac
35449 # CONFIG_HEADER
35451 _ACEOF
35453 # Transform confdefs.h into a sed script `conftest.defines', that
35454 # substitutes the proper values into config.h.in to produce config.h.
35455 rm -f conftest.defines conftest.tail
35456 # First, append a space to every undef/define line, to ease matching.
35457 echo 's/$/ /' >conftest.defines
35458 # Then, protect against being on the right side of a sed subst, or in
35459 # an unquoted here document, in config.status. If some macros were
35460 # called several times there might be several #defines for the same
35461 # symbol, which is useless. But do not sort them, since the last
35462 # AC_DEFINE must be honored.
35463 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35464 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35465 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35466 # PARAMS is the parameter list in the macro definition--in most cases, it's
35467 # just an empty string.
35468 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35469 ac_dB='\\)[ (].*,\\1define\\2'
35470 ac_dC=' '
35471 ac_dD=' ,'
35473 uniq confdefs.h |
35474 sed -n '
35475 t rset
35476 :rset
35477 s/^[ ]*#[ ]*define[ ][ ]*//
35478 t ok
35481 s/[\\&,]/\\&/g
35482 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35483 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35484 ' >>conftest.defines
35486 # Remove the space that was appended to ease matching.
35487 # Then replace #undef with comments. This is necessary, for
35488 # example, in the case of _POSIX_SOURCE, which is predefined and required
35489 # on some systems where configure will not decide to define it.
35490 # (The regexp can be short, since the line contains either #define or #undef.)
35491 echo 's/ $//
35492 s,^[ #]*u.*,/* & */,' >>conftest.defines
35494 # Break up conftest.defines:
35495 ac_max_sed_lines=50
35497 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35498 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35499 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35500 # et cetera.
35501 ac_in='$ac_file_inputs'
35502 ac_out='"$tmp/out1"'
35503 ac_nxt='"$tmp/out2"'
35505 while :
35507 # Write a here document:
35508 cat >>$CONFIG_STATUS <<_ACEOF
35509 # First, check the format of the line:
35510 cat >"\$tmp/defines.sed" <<\\CEOF
35511 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35512 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35514 :def
35515 _ACEOF
35516 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35517 echo 'CEOF
35518 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35519 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35520 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35521 grep . conftest.tail >/dev/null || break
35522 rm -f conftest.defines
35523 mv conftest.tail conftest.defines
35524 done
35525 rm -f conftest.defines conftest.tail
35527 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35528 cat >>$CONFIG_STATUS <<\_ACEOF
35529 if test x"$ac_file" != x-; then
35530 echo "/* $configure_input */" >"$tmp/config.h"
35531 cat "$ac_result" >>"$tmp/config.h"
35532 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35533 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35534 echo "$as_me: $ac_file is unchanged" >&6;}
35535 else
35536 rm -f $ac_file
35537 mv "$tmp/config.h" $ac_file
35539 else
35540 echo "/* $configure_input */"
35541 cat "$ac_result"
35543 rm -f "$tmp/out12"
35546 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35547 echo "$as_me: executing $ac_file commands" >&6;}
35549 esac
35552 case $ac_file$ac_mode in
35553 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35554 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35555 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35556 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35557 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35558 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35559 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35560 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35561 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35562 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35563 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35564 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35565 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35566 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35567 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35568 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35569 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35570 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35571 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35572 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35573 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35574 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35575 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35576 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35578 esac
35579 done # for ac_tag
35582 { (exit 0); exit 0; }
35583 _ACEOF
35584 chmod +x $CONFIG_STATUS
35585 ac_clean_files=$ac_clean_files_save
35588 # configure is writing to config.log, and then calls config.status.
35589 # config.status does its own redirection, appending to config.log.
35590 # Unfortunately, on DOS this fails, as config.log is still kept open
35591 # by configure, so config.status won't be able to write to it; its
35592 # output is simply discarded. So we exec the FD to /dev/null,
35593 # effectively closing config.log, so it can be properly (re)opened and
35594 # appended to by config.status. When coming back to configure, we
35595 # need to make the FD available again.
35596 if test "$no_create" != yes; then
35597 ac_cs_success=:
35598 ac_config_status_args=
35599 test "$silent" = yes &&
35600 ac_config_status_args="$ac_config_status_args --quiet"
35601 exec 5>/dev/null
35602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35603 exec 5>>config.log
35604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35605 # would make configure fail if this is the last instruction.
35606 $ac_cs_success || { (exit 1); exit 1; }
35610 # CONFIG_SUBDIRS section.
35612 if test "$no_recursion" != yes; then
35614 # Remove --cache-file and --srcdir arguments so they do not pile up.
35615 ac_sub_configure_args=
35616 ac_prev=
35617 eval "set x $ac_configure_args"
35618 shift
35619 for ac_arg
35621 if test -n "$ac_prev"; then
35622 ac_prev=
35623 continue
35625 case $ac_arg in
35626 -cache-file | --cache-file | --cache-fil | --cache-fi \
35627 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35628 ac_prev=cache_file ;;
35629 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35630 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35631 | --c=*)
35633 --config-cache | -C)
35635 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35636 ac_prev=srcdir ;;
35637 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35639 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35640 ac_prev=prefix ;;
35641 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35644 case $ac_arg in
35645 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35646 esac
35647 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35648 esac
35649 done
35651 # Always prepend --prefix to ensure using the same prefix
35652 # in subdir configurations.
35653 ac_arg="--prefix=$prefix"
35654 case $ac_arg in
35655 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35656 esac
35657 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35659 ac_popdir=`pwd`
35660 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35662 # Do not complain, so a configure script can configure whichever
35663 # parts of a large source tree are present.
35664 test -d "$srcdir/$ac_dir" || continue
35666 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35667 echo "$as_me:$LINENO: $ac_msg" >&5
35668 echo "$ac_msg" >&6
35669 { as_dir="$ac_dir"
35670 case $as_dir in #(
35671 -*) as_dir=./$as_dir;;
35672 esac
35673 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35674 as_dirs=
35675 while :; do
35676 case $as_dir in #(
35677 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35678 *) as_qdir=$as_dir;;
35679 esac
35680 as_dirs="'$as_qdir' $as_dirs"
35681 as_dir=`$as_dirname -- "$as_dir" ||
35682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35683 X"$as_dir" : 'X\(//\)[^/]' \| \
35684 X"$as_dir" : 'X\(//\)$' \| \
35685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35686 echo X"$as_dir" |
35687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35688 s//\1/
35691 /^X\(\/\/\)[^/].*/{
35692 s//\1/
35695 /^X\(\/\/\)$/{
35696 s//\1/
35699 /^X\(\/\).*/{
35700 s//\1/
35703 s/.*/./; q'`
35704 test -d "$as_dir" && break
35705 done
35706 test -z "$as_dirs" || eval "mkdir $as_dirs"
35707 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35708 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35709 { (exit 1); exit 1; }; }; }
35710 ac_builddir=.
35712 case "$ac_dir" in
35713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35716 # A ".." for each directory in $ac_dir_suffix.
35717 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35718 case $ac_top_builddir_sub in
35719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35721 esac ;;
35722 esac
35723 ac_abs_top_builddir=$ac_pwd
35724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35725 # for backward compatibility:
35726 ac_top_builddir=$ac_top_build_prefix
35728 case $srcdir in
35729 .) # We are building in place.
35730 ac_srcdir=.
35731 ac_top_srcdir=$ac_top_builddir_sub
35732 ac_abs_top_srcdir=$ac_pwd ;;
35733 [\\/]* | ?:[\\/]* ) # Absolute name.
35734 ac_srcdir=$srcdir$ac_dir_suffix;
35735 ac_top_srcdir=$srcdir
35736 ac_abs_top_srcdir=$srcdir ;;
35737 *) # Relative name.
35738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35739 ac_top_srcdir=$ac_top_build_prefix$srcdir
35740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35741 esac
35742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35745 cd "$ac_dir"
35747 # Check for guested configure; otherwise get Cygnus style configure.
35748 if test -f "$ac_srcdir/configure.gnu"; then
35749 ac_sub_configure=$ac_srcdir/configure.gnu
35750 elif test -f "$ac_srcdir/configure"; then
35751 ac_sub_configure=$ac_srcdir/configure
35752 elif test -f "$ac_srcdir/configure.in"; then
35753 # This should be Cygnus configure.
35754 ac_sub_configure=$ac_aux_dir/configure
35755 else
35756 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35757 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35758 ac_sub_configure=
35761 # The recursion is here.
35762 if test -n "$ac_sub_configure"; then
35763 # Make the cache file name correct relative to the subdirectory.
35764 case $cache_file in
35765 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35766 *) # Relative name.
35767 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35768 esac
35770 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35771 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35772 # The eval makes quoting arguments work.
35773 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35774 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35775 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35776 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35777 { (exit 1); exit 1; }; }
35780 cd "$ac_popdir"
35781 done